@orq-ai/node 4.10.8 → 4.11.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (756) hide show
  1. package/README.md +40 -36
  2. package/funcs/guardrailRulesList.js +4 -0
  3. package/funcs/guardrailRulesList.js.map +1 -1
  4. package/funcs/guardrailRulesListUsedGuardrails.d.ts +17 -0
  5. package/funcs/guardrailRulesListUsedGuardrails.d.ts.map +1 -0
  6. package/funcs/guardrailRulesListUsedGuardrails.js +105 -0
  7. package/funcs/guardrailRulesListUsedGuardrails.js.map +1 -0
  8. package/funcs/routingRulesList.js +3 -0
  9. package/funcs/routingRulesList.js.map +1 -1
  10. package/funcs/routingRulesListUsedModels.d.ts +17 -0
  11. package/funcs/routingRulesListUsedModels.d.ts.map +1 -0
  12. package/funcs/routingRulesListUsedModels.js +105 -0
  13. package/funcs/routingRulesListUsedModels.js.map +1 -0
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +2 -2
  16. package/lib/config.js +2 -2
  17. package/lib/config.js.map +1 -1
  18. package/models/components/reasoningpart.js +1 -1
  19. package/models/operations/createdataset.js +1 -1
  20. package/models/operations/createdatasetitem.js +4 -4
  21. package/models/operations/createdatasource.js +1 -1
  22. package/models/operations/createeval.js +16 -16
  23. package/models/operations/createtool.js +6 -6
  24. package/models/operations/getalltools.js +6 -6
  25. package/models/operations/getevals.js +16 -16
  26. package/models/operations/getv2humanevalsets.js +2 -2
  27. package/models/operations/getv2humanevalsetsid.js +2 -2
  28. package/models/operations/guardrailrulelist.d.ts +35 -0
  29. package/models/operations/guardrailrulelist.d.ts.map +1 -1
  30. package/models/operations/guardrailrulelist.js +18 -1
  31. package/models/operations/guardrailrulelist.js.map +1 -1
  32. package/models/operations/guardrailrulelistusedguardrails.d.ts +14 -0
  33. package/models/operations/guardrailrulelistusedguardrails.d.ts.map +1 -0
  34. package/models/operations/guardrailrulelistusedguardrails.js +56 -0
  35. package/models/operations/guardrailrulelistusedguardrails.js.map +1 -0
  36. package/models/operations/index.d.ts +2 -0
  37. package/models/operations/index.d.ts.map +1 -1
  38. package/models/operations/index.js +2 -0
  39. package/models/operations/index.js.map +1 -1
  40. package/models/operations/listdatasetdatapoints.js +4 -4
  41. package/models/operations/listdatasets.js +1 -1
  42. package/models/operations/listdatasources.js +1 -1
  43. package/models/operations/patchv2humanevalsetsid.js +2 -2
  44. package/models/operations/postv2feedbackevaluation.js +3 -3
  45. package/models/operations/postv2humanevalsets.js +2 -2
  46. package/models/operations/retrievedatapoint.js +4 -4
  47. package/models/operations/retrievedataset.js +1 -1
  48. package/models/operations/retrievedatasource.js +1 -1
  49. package/models/operations/retrievetool.js +6 -6
  50. package/models/operations/routingrulelist.d.ts +15 -0
  51. package/models/operations/routingrulelist.d.ts.map +1 -1
  52. package/models/operations/routingrulelist.js +3 -0
  53. package/models/operations/routingrulelist.js.map +1 -1
  54. package/models/operations/routingrulelistusedmodels.d.ts +14 -0
  55. package/models/operations/routingrulelistusedmodels.d.ts.map +1 -0
  56. package/models/operations/routingrulelistusedmodels.js +51 -0
  57. package/models/operations/routingrulelistusedmodels.js.map +1 -0
  58. package/models/operations/runagent.js +1 -1
  59. package/models/operations/streamrunagent.js +1 -1
  60. package/models/operations/updatedatapoint.js +4 -4
  61. package/models/operations/updatedataset.js +1 -1
  62. package/models/operations/updatedatasource.js +1 -1
  63. package/models/operations/updateeval.js +16 -16
  64. package/models/operations/updatetool.js +7 -7
  65. package/package.json +11 -10
  66. package/sdk/feedback.d.ts +2 -2
  67. package/sdk/feedback.js +2 -2
  68. package/sdk/guardrailrules.d.ts +7 -0
  69. package/sdk/guardrailrules.d.ts.map +1 -1
  70. package/sdk/guardrailrules.js +10 -0
  71. package/sdk/guardrailrules.js.map +1 -1
  72. package/sdk/routingrules.d.ts +7 -0
  73. package/sdk/routingrules.d.ts.map +1 -1
  74. package/sdk/routingrules.js +10 -0
  75. package/sdk/routingrules.js.map +1 -1
  76. package/src/funcs/guardrailRulesList.ts +4 -0
  77. package/{packages/orq-rc/src/funcs/modelsListLitellm.ts → src/funcs/guardrailRulesListUsedGuardrails.ts} +15 -12
  78. package/src/funcs/routingRulesList.ts +3 -0
  79. package/{packages/orq-rc/src/funcs/modelsList.ts → src/funcs/routingRulesListUsedModels.ts} +9 -9
  80. package/src/lib/config.ts +2 -2
  81. package/src/models/components/reasoningpart.ts +1 -1
  82. package/src/models/operations/createdataset.ts +1 -1
  83. package/src/models/operations/createdatasetitem.ts +4 -4
  84. package/src/models/operations/createdatasource.ts +1 -1
  85. package/src/models/operations/createeval.ts +16 -16
  86. package/src/models/operations/createtool.ts +6 -6
  87. package/src/models/operations/getalltools.ts +6 -6
  88. package/src/models/operations/getevals.ts +16 -16
  89. package/src/models/operations/getv2humanevalsets.ts +2 -2
  90. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  91. package/src/models/operations/guardrailrulelist.ts +44 -0
  92. package/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
  93. package/src/models/operations/index.ts +2 -0
  94. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  95. package/src/models/operations/listdatasets.ts +1 -1
  96. package/src/models/operations/listdatasources.ts +1 -1
  97. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  98. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  99. package/src/models/operations/postv2humanevalsets.ts +2 -2
  100. package/src/models/operations/retrievedatapoint.ts +4 -4
  101. package/src/models/operations/retrievedataset.ts +1 -1
  102. package/src/models/operations/retrievedatasource.ts +1 -1
  103. package/src/models/operations/retrievetool.ts +6 -6
  104. package/src/models/operations/routingrulelist.ts +18 -0
  105. package/src/models/operations/routingrulelistusedmodels.ts +37 -0
  106. package/src/models/operations/runagent.ts +1 -1
  107. package/src/models/operations/streamrunagent.ts +1 -1
  108. package/src/models/operations/updatedatapoint.ts +4 -4
  109. package/src/models/operations/updatedataset.ts +1 -1
  110. package/src/models/operations/updatedatasource.ts +1 -1
  111. package/src/models/operations/updateeval.ts +16 -16
  112. package/src/models/operations/updatetool.ts +7 -7
  113. package/src/sdk/feedback.ts +2 -2
  114. package/src/sdk/guardrailrules.ts +16 -0
  115. package/src/sdk/routingrules.ts +16 -0
  116. package/packages/orq-rc/examples/postV2FeedbackEvaluationRemove.example.ts +0 -24
  117. package/packages/orq-rc/src/core.ts +0 -13
  118. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -163
  119. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -181
  120. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -178
  121. package/packages/orq-rc/src/funcs/agentsList.ts +0 -186
  122. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +0 -188
  123. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -184
  124. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +0 -183
  125. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -181
  126. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -164
  127. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -205
  128. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -191
  129. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -185
  130. package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -175
  131. package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -175
  132. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +0 -162
  133. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +0 -168
  134. package/packages/orq-rc/src/funcs/apiKeysGet.ts +0 -168
  135. package/packages/orq-rc/src/funcs/apiKeysList.ts +0 -175
  136. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +0 -144
  137. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +0 -171
  138. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -162
  139. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -168
  140. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -167
  141. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -172
  142. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -168
  143. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -183
  144. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -169
  145. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -175
  146. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -176
  147. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -182
  148. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -177
  149. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -180
  150. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -170
  151. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
  152. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -178
  153. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -180
  154. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -177
  155. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -171
  156. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -174
  157. package/packages/orq-rc/src/funcs/evalsGetV2EvaluatorsIdVersions.ts +0 -184
  158. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -182
  159. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -174
  160. package/packages/orq-rc/src/funcs/feedbackPostV2Feedback.ts +0 -174
  161. package/packages/orq-rc/src/funcs/feedbackPostV2FeedbackRemove.ts +0 -169
  162. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -162
  163. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -168
  164. package/packages/orq-rc/src/funcs/filesGet.ts +0 -168
  165. package/packages/orq-rc/src/funcs/filesGetContent.ts +0 -168
  166. package/packages/orq-rc/src/funcs/filesList.ts +0 -171
  167. package/packages/orq-rc/src/funcs/filesUpdate.ts +0 -169
  168. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +0 -163
  169. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +0 -172
  170. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +0 -172
  171. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +0 -170
  172. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +0 -172
  173. package/packages/orq-rc/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +0 -166
  174. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +0 -170
  175. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +0 -165
  176. package/packages/orq-rc/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +0 -166
  177. package/packages/orq-rc/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +0 -164
  178. package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -162
  179. package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -168
  180. package/packages/orq-rc/src/funcs/identitiesList.ts +0 -174
  181. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -173
  182. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -171
  183. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -160
  184. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -172
  185. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -167
  186. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -168
  187. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -175
  188. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -171
  189. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -174
  190. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -174
  191. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -171
  192. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -179
  193. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -172
  194. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -175
  195. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -167
  196. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -174
  197. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -170
  198. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -168
  199. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -165
  200. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -175
  201. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -171
  202. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -164
  203. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -177
  204. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -171
  205. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -169
  206. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -186
  207. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -181
  208. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -180
  209. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -185
  210. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -178
  211. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -178
  212. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -180
  213. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -175
  214. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -169
  215. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -181
  216. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -176
  217. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +0 -168
  218. package/packages/orq-rc/src/funcs/modelsCreate.ts +0 -162
  219. package/packages/orq-rc/src/funcs/modelsCreateAutorouter.ts +0 -163
  220. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +0 -163
  221. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +0 -163
  222. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +0 -163
  223. package/packages/orq-rc/src/funcs/modelsDelete.ts +0 -168
  224. package/packages/orq-rc/src/funcs/modelsDisable.ts +0 -168
  225. package/packages/orq-rc/src/funcs/modelsEnable.ts +0 -163
  226. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +0 -166
  227. package/packages/orq-rc/src/funcs/modelsUpdate.ts +0 -168
  228. package/packages/orq-rc/src/funcs/modelsUpdateAutorouter.ts +0 -169
  229. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +0 -169
  230. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +0 -169
  231. package/packages/orq-rc/src/funcs/modelsValidate.ts +0 -163
  232. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +0 -164
  233. package/packages/orq-rc/src/funcs/piiDetect.ts +0 -162
  234. package/packages/orq-rc/src/funcs/piiRedact.ts +0 -162
  235. package/packages/orq-rc/src/funcs/piiRestore.ts +0 -162
  236. package/packages/orq-rc/src/funcs/policiesCreate.ts +0 -162
  237. package/packages/orq-rc/src/funcs/policiesDelete.ts +0 -168
  238. package/packages/orq-rc/src/funcs/policiesList.ts +0 -170
  239. package/packages/orq-rc/src/funcs/policiesRetrieve.ts +0 -167
  240. package/packages/orq-rc/src/funcs/policiesUpdate.ts +0 -168
  241. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluation.ts +0 -161
  242. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluationRemove.ts +0 -161
  243. package/packages/orq-rc/src/funcs/projectsCreate.ts +0 -162
  244. package/packages/orq-rc/src/funcs/projectsDelete.ts +0 -168
  245. package/packages/orq-rc/src/funcs/projectsGet.ts +0 -168
  246. package/packages/orq-rc/src/funcs/projectsList.ts +0 -170
  247. package/packages/orq-rc/src/funcs/projectsUpdate.ts +0 -171
  248. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -162
  249. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -174
  250. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -182
  251. package/packages/orq-rc/src/funcs/promptsList.ts +0 -169
  252. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -174
  253. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -167
  254. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -174
  255. package/packages/orq-rc/src/funcs/reportingQuery.ts +0 -162
  256. package/packages/orq-rc/src/funcs/responsesCreate.ts +0 -170
  257. package/packages/orq-rc/src/funcs/responsesGet.ts +0 -167
  258. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -163
  259. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -272
  260. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -262
  261. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -170
  262. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -170
  263. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -163
  264. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -224
  265. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -162
  266. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -220
  267. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -169
  268. package/packages/orq-rc/src/funcs/routerOcr.ts +0 -160
  269. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -162
  270. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +0 -163
  271. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +0 -168
  272. package/packages/orq-rc/src/funcs/routingRulesList.ts +0 -170
  273. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +0 -167
  274. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +0 -168
  275. package/packages/orq-rc/src/funcs/schedulesCreate.ts +0 -185
  276. package/packages/orq-rc/src/funcs/schedulesDelete.ts +0 -184
  277. package/packages/orq-rc/src/funcs/schedulesList.ts +0 -167
  278. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +0 -183
  279. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +0 -190
  280. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +0 -191
  281. package/packages/orq-rc/src/funcs/skillsCreate.ts +0 -162
  282. package/packages/orq-rc/src/funcs/skillsDelete.ts +0 -168
  283. package/packages/orq-rc/src/funcs/skillsGet.ts +0 -168
  284. package/packages/orq-rc/src/funcs/skillsList.ts +0 -170
  285. package/packages/orq-rc/src/funcs/skillsUpdate.ts +0 -171
  286. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -165
  287. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -168
  288. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -184
  289. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -191
  290. package/packages/orq-rc/src/funcs/toolsList.ts +0 -178
  291. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -167
  292. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -177
  293. package/packages/orq-rc/src/hooks/global.ts +0 -44
  294. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  295. package/packages/orq-rc/src/hooks/index.ts +0 -6
  296. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  297. package/packages/orq-rc/src/hooks/types.ts +0 -112
  298. package/packages/orq-rc/src/index.ts +0 -9
  299. package/packages/orq-rc/src/lib/base64.ts +0 -37
  300. package/packages/orq-rc/src/lib/config.ts +0 -64
  301. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  302. package/packages/orq-rc/src/lib/encodings.ts +0 -525
  303. package/packages/orq-rc/src/lib/env.ts +0 -57
  304. package/packages/orq-rc/src/lib/event-streams.ts +0 -165
  305. package/packages/orq-rc/src/lib/files.ts +0 -104
  306. package/packages/orq-rc/src/lib/http.ts +0 -323
  307. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  308. package/packages/orq-rc/src/lib/logger.ts +0 -9
  309. package/packages/orq-rc/src/lib/matchers.ts +0 -346
  310. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  311. package/packages/orq-rc/src/lib/retries.ts +0 -218
  312. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  313. package/packages/orq-rc/src/lib/sdks.ts +0 -406
  314. package/packages/orq-rc/src/lib/security.ts +0 -275
  315. package/packages/orq-rc/src/lib/url.ts +0 -35
  316. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
  317. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
  318. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
  319. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
  320. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
  321. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
  322. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
  323. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
  324. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -520
  325. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -795
  326. package/packages/orq-rc/src/models/components/allprojects.ts +0 -39
  327. package/packages/orq-rc/src/models/components/apikey.ts +0 -169
  328. package/packages/orq-rc/src/models/components/apikeyowner.ts +0 -82
  329. package/packages/orq-rc/src/models/components/apikeystatus.ts +0 -21
  330. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  331. package/packages/orq-rc/src/models/components/autorouterconfig.ts +0 -78
  332. package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +0 -44
  333. package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +0 -60
  334. package/packages/orq-rc/src/models/components/budgetlimit.ts +0 -83
  335. package/packages/orq-rc/src/models/components/conversationparam.ts +0 -51
  336. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -305
  337. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +0 -91
  338. package/packages/orq-rc/src/models/components/createapikeyresponse.ts +0 -49
  339. package/packages/orq-rc/src/models/components/createfilerequest.ts +0 -62
  340. package/packages/orq-rc/src/models/components/createfileresponse.ts +0 -35
  341. package/packages/orq-rc/src/models/components/createidentityrequest.ts +0 -100
  342. package/packages/orq-rc/src/models/components/createidentityresponse.ts +0 -35
  343. package/packages/orq-rc/src/models/components/createmodelparameter.ts +0 -54
  344. package/packages/orq-rc/src/models/components/createprojectrequest.ts +0 -46
  345. package/packages/orq-rc/src/models/components/createprojectresponse.ts +0 -35
  346. package/packages/orq-rc/src/models/components/createskillrequest.ts +0 -70
  347. package/packages/orq-rc/src/models/components/createskillresponse.ts +0 -35
  348. package/packages/orq-rc/src/models/components/datapart.ts +0 -38
  349. package/packages/orq-rc/src/models/components/datapoint.ts +0 -60
  350. package/packages/orq-rc/src/models/components/deleteapikeyresponse.ts +0 -27
  351. package/packages/orq-rc/src/models/components/deletefileresponse.ts +0 -27
  352. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +0 -27
  353. package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +0 -27
  354. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +0 -27
  355. package/packages/orq-rc/src/models/components/detectrequest.ts +0 -56
  356. package/packages/orq-rc/src/models/components/detectresponse.ts +0 -41
  357. package/packages/orq-rc/src/models/components/domain.ts +0 -75
  358. package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +0 -59
  359. package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +0 -48
  360. package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +0 -66
  361. package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +0 -42
  362. package/packages/orq-rc/src/models/components/embeddingorqparams.ts +0 -101
  363. package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +0 -45
  364. package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +0 -39
  365. package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
  366. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
  367. package/packages/orq-rc/src/models/components/evaluatorref.ts +0 -93
  368. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
  369. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
  370. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
  371. package/packages/orq-rc/src/models/components/expression.ts +0 -33
  372. package/packages/orq-rc/src/models/components/expressioninput.ts +0 -29
  373. package/packages/orq-rc/src/models/components/extendedmessage.ts +0 -146
  374. package/packages/orq-rc/src/models/components/fallbackconfig.ts +0 -27
  375. package/packages/orq-rc/src/models/components/file.ts +0 -64
  376. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  377. package/packages/orq-rc/src/models/components/filepart.ts +0 -223
  378. package/packages/orq-rc/src/models/components/filepurpose.ts +0 -21
  379. package/packages/orq-rc/src/models/components/filter.ts +0 -137
  380. package/packages/orq-rc/src/models/components/getagentresponse.ts +0 -348
  381. package/packages/orq-rc/src/models/components/getapikeyresponse.ts +0 -40
  382. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +0 -39
  383. package/packages/orq-rc/src/models/components/getfileresponse.ts +0 -35
  384. package/packages/orq-rc/src/models/components/getprojectresponse.ts +0 -35
  385. package/packages/orq-rc/src/models/components/getskillresponse.ts +0 -35
  386. package/packages/orq-rc/src/models/components/guardrailref.ts +0 -91
  387. package/packages/orq-rc/src/models/components/guardrailrule.ts +0 -66
  388. package/packages/orq-rc/src/models/components/identity.ts +0 -128
  389. package/packages/orq-rc/src/models/components/identitymetrics.ts +0 -57
  390. package/packages/orq-rc/src/models/components/identitysortfield.ts +0 -18
  391. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  392. package/packages/orq-rc/src/models/components/incompletedetails.ts +0 -31
  393. package/packages/orq-rc/src/models/components/index.ts +0 -190
  394. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +0 -45
  395. package/packages/orq-rc/src/models/components/legacytokenfamily.ts +0 -19
  396. package/packages/orq-rc/src/models/components/limits.ts +0 -70
  397. package/packages/orq-rc/src/models/components/listapikeysresponse.ts +0 -56
  398. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +0 -38
  399. package/packages/orq-rc/src/models/components/listfilesresponse.ts +0 -50
  400. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +0 -53
  401. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +0 -53
  402. package/packages/orq-rc/src/models/components/listskillsresponse.ts +0 -53
  403. package/packages/orq-rc/src/models/components/litellmmodel.ts +0 -50
  404. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +0 -97
  405. package/packages/orq-rc/src/models/components/litellmparams.ts +0 -43
  406. package/packages/orq-rc/src/models/components/memoryparam.ts +0 -56
  407. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +0 -82
  408. package/packages/orq-rc/src/models/components/modeldocument.ts +0 -112
  409. package/packages/orq-rc/src/models/components/modelmetadata.ts +0 -720
  410. package/packages/orq-rc/src/models/components/modelparameterdocument.ts +0 -53
  411. package/packages/orq-rc/src/models/components/modelref.ts +0 -70
  412. package/packages/orq-rc/src/models/components/modelsconfig.ts +0 -73
  413. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +0 -36
  414. package/packages/orq-rc/src/models/components/ownertype.ts +0 -17
  415. package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
  416. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
  417. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -70
  418. package/packages/orq-rc/src/models/components/permissionmode.ts +0 -23
  419. package/packages/orq-rc/src/models/components/policy.ts +0 -80
  420. package/packages/orq-rc/src/models/components/policyretryconfig.ts +0 -64
  421. package/packages/orq-rc/src/models/components/price.ts +0 -56
  422. package/packages/orq-rc/src/models/components/pricing.ts +0 -93
  423. package/packages/orq-rc/src/models/components/pricingvariant.ts +0 -90
  424. package/packages/orq-rc/src/models/components/project.ts +0 -108
  425. package/packages/orq-rc/src/models/components/projectscope.ts +0 -70
  426. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
  427. package/packages/orq-rc/src/models/components/publicembeddingdata.ts +0 -60
  428. package/packages/orq-rc/src/models/components/publicembeddingusage.ts +0 -45
  429. package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
  430. package/packages/orq-rc/src/models/components/publicmodelentry.ts +0 -71
  431. package/packages/orq-rc/src/models/components/publicschedule.ts +0 -118
  432. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +0 -39
  433. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +0 -84
  434. package/packages/orq-rc/src/models/components/publicusage.ts +0 -77
  435. package/packages/orq-rc/src/models/components/queryreportrequest.ts +0 -237
  436. package/packages/orq-rc/src/models/components/queryreportresponse.ts +0 -99
  437. package/packages/orq-rc/src/models/components/reasoning.ts +0 -33
  438. package/packages/orq-rc/src/models/components/reasoningparam.ts +0 -30
  439. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
  440. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  441. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  442. package/packages/orq-rc/src/models/components/redactrequest.ts +0 -33
  443. package/packages/orq-rc/src/models/components/redactresponse.ts +0 -41
  444. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  445. package/packages/orq-rc/src/models/components/requestlimit.ts +0 -69
  446. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -324
  447. package/packages/orq-rc/src/models/components/responseerror.ts +0 -33
  448. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +0 -52
  449. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
  450. package/packages/orq-rc/src/models/components/responseidentity.ts +0 -48
  451. package/packages/orq-rc/src/models/components/responsemeta.ts +0 -103
  452. package/packages/orq-rc/src/models/components/responseretryconfig.ts +0 -45
  453. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -97
  454. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
  455. package/packages/orq-rc/src/models/components/responsethread.ts +0 -30
  456. package/packages/orq-rc/src/models/components/restorerequest.ts +0 -38
  457. package/packages/orq-rc/src/models/components/restoreresponse.ts +0 -36
  458. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +0 -35
  459. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
  460. package/packages/orq-rc/src/models/components/routingrule.ts +0 -67
  461. package/packages/orq-rc/src/models/components/security.ts +0 -32
  462. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +0 -43
  463. package/packages/orq-rc/src/models/components/singleproject.ts +0 -59
  464. package/packages/orq-rc/src/models/components/skill.ts +0 -109
  465. package/packages/orq-rc/src/models/components/streamoptions.ts +0 -32
  466. package/packages/orq-rc/src/models/components/telemetry.ts +0 -48
  467. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  468. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  469. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +0 -59
  470. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  471. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -107
  472. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
  473. package/packages/orq-rc/src/models/components/tokenlimit.ts +0 -69
  474. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
  475. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
  476. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -235
  477. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -219
  478. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -205
  479. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
  480. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  481. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
  482. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
  483. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
  484. package/packages/orq-rc/src/models/components/totals.ts +0 -34
  485. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +0 -92
  486. package/packages/orq-rc/src/models/components/updateapikeyresponse.ts +0 -40
  487. package/packages/orq-rc/src/models/components/updatefilerequest.ts +0 -39
  488. package/packages/orq-rc/src/models/components/updatefileresponse.ts +0 -35
  489. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +0 -90
  490. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +0 -35
  491. package/packages/orq-rc/src/models/components/updatemodelparameter.ts +0 -61
  492. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -49
  493. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +0 -35
  494. package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -75
  495. package/packages/orq-rc/src/models/components/updateskillresponse.ts +0 -35
  496. package/packages/orq-rc/src/models/components/userowner.ts +0 -59
  497. package/packages/orq-rc/src/models/components/vertexcapabilities.ts +0 -37
  498. package/packages/orq-rc/src/models/components/vertexconfiguration.ts +0 -45
  499. package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +0 -53
  500. package/packages/orq-rc/src/models/components/vertexparameters.ts +0 -47
  501. package/packages/orq-rc/src/models/components/vertexparamrange.ts +0 -34
  502. package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +0 -34
  503. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  504. package/packages/orq-rc/src/models/errors/createagentschedule.ts +0 -105
  505. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  506. package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
  507. package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
  508. package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
  509. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
  510. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +0 -56
  511. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
  512. package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
  513. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  514. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
  515. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  516. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
  517. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
  518. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
  519. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  520. package/packages/orq-rc/src/models/errors/index.ts +0 -38
  521. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
  522. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  523. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +0 -97
  524. package/packages/orq-rc/src/models/errors/postv2feedback.ts +0 -96
  525. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +0 -51
  526. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  527. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
  528. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +0 -56
  529. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  530. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
  531. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
  532. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +0 -105
  533. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
  534. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +0 -105
  535. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  536. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
  537. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
  538. package/packages/orq-rc/src/models/operations/apikeydelete.ts +0 -39
  539. package/packages/orq-rc/src/models/operations/apikeyget.ts +0 -39
  540. package/packages/orq-rc/src/models/operations/apikeylist.ts +0 -107
  541. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +0 -44
  542. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
  543. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -6380
  544. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -671
  545. package/packages/orq-rc/src/models/operations/createagentschedule.ts +0 -227
  546. package/packages/orq-rc/src/models/operations/createannotation.ts +0 -162
  547. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6399
  548. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
  549. package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3474
  550. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
  551. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2554
  552. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -443
  553. package/packages/orq-rc/src/models/operations/createembedding.ts +0 -219
  554. package/packages/orq-rc/src/models/operations/createeval.ts +0 -4456
  555. package/packages/orq-rc/src/models/operations/createimage.ts +0 -1034
  556. package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
  557. package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
  558. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -958
  559. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
  560. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
  561. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
  562. package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
  563. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5409
  564. package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
  565. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +0 -1506
  566. package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
  567. package/packages/orq-rc/src/models/operations/createtool.ts +0 -2490
  568. package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
  569. package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
  570. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
  571. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +0 -46
  572. package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -82
  573. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
  574. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
  575. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
  576. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
  577. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
  578. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
  579. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
  580. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
  581. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
  582. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
  583. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
  584. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
  585. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
  586. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +0 -36
  587. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4968
  588. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -4179
  589. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1277
  590. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4699
  591. package/packages/orq-rc/src/models/operations/filecontent.ts +0 -39
  592. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -39
  593. package/packages/orq-rc/src/models/operations/fileget.ts +0 -35
  594. package/packages/orq-rc/src/models/operations/filelist.ts +0 -60
  595. package/packages/orq-rc/src/models/operations/fileupdate.ts +0 -44
  596. package/packages/orq-rc/src/models/operations/getagentresponse.ts +0 -46
  597. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
  598. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
  599. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
  600. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3177
  601. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1389
  602. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -142
  603. package/packages/orq-rc/src/models/operations/getevals.ts +0 -3346
  604. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
  605. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
  606. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3102
  607. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3147
  608. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
  609. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +0 -234
  610. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +0 -235
  611. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
  612. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
  613. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +0 -124
  614. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +0 -39
  615. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +0 -102
  616. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +0 -94
  617. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +0 -153
  618. package/packages/orq-rc/src/models/operations/index.ts +0 -169
  619. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -801
  620. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1260
  621. package/packages/orq-rc/src/models/operations/listagents.ts +0 -2699
  622. package/packages/orq-rc/src/models/operations/listagentschedules.ts +0 -69
  623. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -289
  624. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -282
  625. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
  626. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
  627. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -241
  628. package/packages/orq-rc/src/models/operations/listidentities.ts +0 -83
  629. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
  630. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -60
  631. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3222
  632. package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +0 -90
  633. package/packages/orq-rc/src/models/operations/modelcreate.ts +0 -184
  634. package/packages/orq-rc/src/models/operations/modelcreateautorouter.ts +0 -151
  635. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +0 -218
  636. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +0 -202
  637. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +0 -144
  638. package/packages/orq-rc/src/models/operations/modeldelete.ts +0 -34
  639. package/packages/orq-rc/src/models/operations/modeldisable.ts +0 -39
  640. package/packages/orq-rc/src/models/operations/modelenable.ts +0 -36
  641. package/packages/orq-rc/src/models/operations/modelupdate.ts +0 -198
  642. package/packages/orq-rc/src/models/operations/modelupdateautorouter.ts +0 -189
  643. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +0 -248
  644. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +0 -236
  645. package/packages/orq-rc/src/models/operations/modelvalidate.ts +0 -57
  646. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +0 -57
  647. package/packages/orq-rc/src/models/operations/parse.ts +0 -784
  648. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +0 -415
  649. package/packages/orq-rc/src/models/operations/policycreate.ts +0 -138
  650. package/packages/orq-rc/src/models/operations/policydelete.ts +0 -39
  651. package/packages/orq-rc/src/models/operations/policyget.ts +0 -110
  652. package/packages/orq-rc/src/models/operations/policylist.ts +0 -94
  653. package/packages/orq-rc/src/models/operations/policyupdate.ts +0 -174
  654. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +0 -100
  655. package/packages/orq-rc/src/models/operations/postv2feedback.ts +0 -214
  656. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +0 -321
  657. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +0 -43
  658. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +0 -135
  659. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +0 -365
  660. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
  661. package/packages/orq-rc/src/models/operations/projectdelete.ts +0 -39
  662. package/packages/orq-rc/src/models/operations/projectget.ts +0 -39
  663. package/packages/orq-rc/src/models/operations/projectlist.ts +0 -58
  664. package/packages/orq-rc/src/models/operations/projectupdate.ts +0 -44
  665. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -2754
  666. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +0 -162
  667. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
  668. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
  669. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
  670. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -45
  671. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
  672. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
  673. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
  674. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +0 -225
  675. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1370
  676. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +0 -124
  677. package/packages/orq-rc/src/models/operations/routingruledelete.ts +0 -39
  678. package/packages/orq-rc/src/models/operations/routingruleget.ts +0 -102
  679. package/packages/orq-rc/src/models/operations/routingrulelist.ts +0 -94
  680. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +0 -154
  681. package/packages/orq-rc/src/models/operations/runagent.ts +0 -4954
  682. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
  683. package/packages/orq-rc/src/models/operations/skilldelete.ts +0 -39
  684. package/packages/orq-rc/src/models/operations/skillget.ts +0 -40
  685. package/packages/orq-rc/src/models/operations/skilllist.ts +0 -61
  686. package/packages/orq-rc/src/models/operations/skillupdate.ts +0 -44
  687. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -693
  688. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5126
  689. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +0 -86
  690. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -6704
  691. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +0 -241
  692. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
  693. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
  694. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
  695. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
  696. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -3819
  697. package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -43
  698. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
  699. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
  700. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
  701. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -188
  702. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5491
  703. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2801
  704. package/packages/orq-rc/src/sdk/agents.ts +0 -216
  705. package/packages/orq-rc/src/sdk/annotations.ts +0 -45
  706. package/packages/orq-rc/src/sdk/apikeys.ts +0 -116
  707. package/packages/orq-rc/src/sdk/audio.ts +0 -25
  708. package/packages/orq-rc/src/sdk/chat.ts +0 -13
  709. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  710. package/packages/orq-rc/src/sdk/completions.ts +0 -32
  711. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  712. package/packages/orq-rc/src/sdk/deployments.ts +0 -82
  713. package/packages/orq-rc/src/sdk/edits.ts +0 -27
  714. package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
  715. package/packages/orq-rc/src/sdk/evals.ts +0 -102
  716. package/packages/orq-rc/src/sdk/feedback.ts +0 -33
  717. package/packages/orq-rc/src/sdk/files.ts +0 -118
  718. package/packages/orq-rc/src/sdk/generations.ts +0 -27
  719. package/packages/orq-rc/src/sdk/guardrailrules.ts +0 -99
  720. package/packages/orq-rc/src/sdk/humanreviewsets.ts +0 -84
  721. package/packages/orq-rc/src/sdk/identities.ts +0 -100
  722. package/packages/orq-rc/src/sdk/images.ts +0 -25
  723. package/packages/orq-rc/src/sdk/index.ts +0 -5
  724. package/packages/orq-rc/src/sdk/knowledge.ts +0 -312
  725. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  726. package/packages/orq-rc/src/sdk/models.ts +0 -330
  727. package/packages/orq-rc/src/sdk/moderations.ts +0 -24
  728. package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
  729. package/packages/orq-rc/src/sdk/orqresponses.ts +0 -53
  730. package/packages/orq-rc/src/sdk/pii.ts +0 -63
  731. package/packages/orq-rc/src/sdk/policies.ts +0 -99
  732. package/packages/orq-rc/src/sdk/projects.ts +0 -100
  733. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  734. package/packages/orq-rc/src/sdk/reporting.ts +0 -27
  735. package/packages/orq-rc/src/sdk/rerank.ts +0 -27
  736. package/packages/orq-rc/src/sdk/responses.ts +0 -47
  737. package/packages/orq-rc/src/sdk/router.ts +0 -66
  738. package/packages/orq-rc/src/sdk/routingrules.ts +0 -99
  739. package/packages/orq-rc/src/sdk/schedules.ts +0 -117
  740. package/packages/orq-rc/src/sdk/sdk.ts +0 -189
  741. package/packages/orq-rc/src/sdk/skills.ts +0 -100
  742. package/packages/orq-rc/src/sdk/speech.ts +0 -27
  743. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  744. package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
  745. package/packages/orq-rc/src/sdk/translations.ts +0 -24
  746. package/packages/orq-rc/src/sdk/variations.ts +0 -27
  747. package/packages/orq-rc/src/types/async.ts +0 -69
  748. package/packages/orq-rc/src/types/blobs.ts +0 -32
  749. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  750. package/packages/orq-rc/src/types/enums.ts +0 -45
  751. package/packages/orq-rc/src/types/fp.ts +0 -50
  752. package/packages/orq-rc/src/types/index.ts +0 -11
  753. package/packages/orq-rc/src/types/operations.ts +0 -105
  754. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  755. package/packages/orq-rc/src/types/streams.ts +0 -21
  756. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
@@ -1,2801 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import {
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.
97
- *
98
- * @remarks
99
- *
100
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
101
- *
102
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
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.
218
- *
219
- * @remarks
220
- *
221
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
222
- *
223
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
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.
377
- *
378
- * @remarks
379
- *
380
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
381
- *
382
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
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.
476
- *
477
- * @remarks
478
- *
479
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
480
- *
481
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
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.
588
- *
589
- * @remarks
590
- *
591
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
592
- *
593
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
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.
716
- *
717
- * @remarks
718
- *
719
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
720
- *
721
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
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.
840
- *
841
- * @remarks
842
- *
843
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
844
- *
845
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
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.
999
- *
1000
- * @remarks
1001
- *
1002
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
1003
- *
1004
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
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.
1100
- *
1101
- * @remarks
1102
- *
1103
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
1104
- *
1105
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
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.
1213
- *
1214
- * @remarks
1215
- *
1216
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
1217
- *
1218
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
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("01KTB6K5WQD68A2C8J5DCER5JX"),
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_01KTB6K5WC3Q99A2633CMH2CA4"),
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("01KTB6K5WB2CMBWCSAVRD6PRWA"),
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_01KTB6K5W97K4FEVBJHNCGKPPT"),
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_01KTB6K5W73Q0JZFPEBGVTCSCN"),
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_01KTB6K5W5PXA26S32K325Z0C6"),
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_01KTB6K5W4F1R4G1BKXMCE0CM7"),
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
- }