@orq-ai/node 4.10.2 → 4.11.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (703) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createtool.js +6 -6
  11. package/models/operations/getalltools.js +6 -6
  12. package/models/operations/getevals.js +16 -16
  13. package/models/operations/getv2humanevalsets.js +2 -2
  14. package/models/operations/getv2humanevalsetsid.js +2 -2
  15. package/models/operations/listdatasetdatapoints.js +4 -4
  16. package/models/operations/listdatasets.js +1 -1
  17. package/models/operations/listdatasources.js +1 -1
  18. package/models/operations/patchv2humanevalsetsid.js +2 -2
  19. package/models/operations/postv2feedbackevaluation.js +3 -3
  20. package/models/operations/postv2humanevalsets.js +2 -2
  21. package/models/operations/retrievedatapoint.js +4 -4
  22. package/models/operations/retrievedataset.js +1 -1
  23. package/models/operations/retrievedatasource.js +1 -1
  24. package/models/operations/retrievetool.js +6 -6
  25. package/models/operations/runagent.js +1 -1
  26. package/models/operations/streamrunagent.js +1 -1
  27. package/models/operations/updatedatapoint.js +4 -4
  28. package/models/operations/updatedataset.js +1 -1
  29. package/models/operations/updatedatasource.js +1 -1
  30. package/models/operations/updateeval.js +16 -16
  31. package/models/operations/updatetool.js +7 -7
  32. package/package.json +7 -6
  33. package/src/lib/config.ts +2 -2
  34. package/src/models/components/reasoningpart.ts +1 -1
  35. package/src/models/operations/createdataset.ts +1 -1
  36. package/src/models/operations/createdatasetitem.ts +4 -4
  37. package/src/models/operations/createdatasource.ts +1 -1
  38. package/src/models/operations/createeval.ts +16 -16
  39. package/src/models/operations/createtool.ts +6 -6
  40. package/src/models/operations/getalltools.ts +6 -6
  41. package/src/models/operations/getevals.ts +16 -16
  42. package/src/models/operations/getv2humanevalsets.ts +2 -2
  43. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  44. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  45. package/src/models/operations/listdatasets.ts +1 -1
  46. package/src/models/operations/listdatasources.ts +1 -1
  47. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  48. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  49. package/src/models/operations/postv2humanevalsets.ts +2 -2
  50. package/src/models/operations/retrievedatapoint.ts +4 -4
  51. package/src/models/operations/retrievedataset.ts +1 -1
  52. package/src/models/operations/retrievedatasource.ts +1 -1
  53. package/src/models/operations/retrievetool.ts +6 -6
  54. package/src/models/operations/runagent.ts +1 -1
  55. package/src/models/operations/streamrunagent.ts +1 -1
  56. package/src/models/operations/updatedatapoint.ts +4 -4
  57. package/src/models/operations/updatedataset.ts +1 -1
  58. package/src/models/operations/updatedatasource.ts +1 -1
  59. package/src/models/operations/updateeval.ts +16 -16
  60. package/src/models/operations/updatetool.ts +7 -7
  61. package/packages/orq-rc/examples/postV2FeedbackEvaluationRemove.example.ts +0 -24
  62. package/packages/orq-rc/src/core.ts +0 -13
  63. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -163
  64. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -181
  65. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -178
  66. package/packages/orq-rc/src/funcs/agentsList.ts +0 -186
  67. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +0 -188
  68. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -184
  69. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +0 -183
  70. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -181
  71. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -164
  72. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -205
  73. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -191
  74. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -185
  75. package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -175
  76. package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -175
  77. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +0 -162
  78. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +0 -168
  79. package/packages/orq-rc/src/funcs/apiKeysGet.ts +0 -168
  80. package/packages/orq-rc/src/funcs/apiKeysList.ts +0 -175
  81. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +0 -144
  82. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +0 -171
  83. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -162
  84. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -168
  85. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -167
  86. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -172
  87. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -168
  88. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -183
  89. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -169
  90. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -175
  91. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -176
  92. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -182
  93. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -177
  94. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -180
  95. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -170
  96. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
  97. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -178
  98. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -180
  99. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -177
  100. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -171
  101. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -174
  102. package/packages/orq-rc/src/funcs/evalsGetV2EvaluatorsIdVersions.ts +0 -184
  103. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -182
  104. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -174
  105. package/packages/orq-rc/src/funcs/feedbackPostV2Feedback.ts +0 -174
  106. package/packages/orq-rc/src/funcs/feedbackPostV2FeedbackRemove.ts +0 -169
  107. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -162
  108. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -165
  109. package/packages/orq-rc/src/funcs/filesGet.ts +0 -168
  110. package/packages/orq-rc/src/funcs/filesGetContent.ts +0 -168
  111. package/packages/orq-rc/src/funcs/filesList.ts +0 -171
  112. package/packages/orq-rc/src/funcs/filesUpdate.ts +0 -169
  113. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +0 -163
  114. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +0 -172
  115. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +0 -172
  116. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +0 -170
  117. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +0 -172
  118. package/packages/orq-rc/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +0 -166
  119. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +0 -170
  120. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +0 -165
  121. package/packages/orq-rc/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +0 -166
  122. package/packages/orq-rc/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +0 -164
  123. package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -162
  124. package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -168
  125. package/packages/orq-rc/src/funcs/identitiesList.ts +0 -174
  126. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -173
  127. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -171
  128. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -160
  129. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -172
  130. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -167
  131. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -168
  132. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -175
  133. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -171
  134. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -174
  135. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -174
  136. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -171
  137. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -179
  138. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -172
  139. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -175
  140. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -167
  141. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -174
  142. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -170
  143. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -168
  144. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -165
  145. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -175
  146. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -171
  147. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -164
  148. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -177
  149. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -171
  150. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -169
  151. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -186
  152. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -181
  153. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -180
  154. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -185
  155. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -178
  156. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -178
  157. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -180
  158. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -175
  159. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -169
  160. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -181
  161. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -176
  162. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +0 -168
  163. package/packages/orq-rc/src/funcs/modelsCreate.ts +0 -162
  164. package/packages/orq-rc/src/funcs/modelsCreateAutorouter.ts +0 -163
  165. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +0 -163
  166. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +0 -163
  167. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +0 -163
  168. package/packages/orq-rc/src/funcs/modelsDelete.ts +0 -168
  169. package/packages/orq-rc/src/funcs/modelsDisable.ts +0 -168
  170. package/packages/orq-rc/src/funcs/modelsEnable.ts +0 -163
  171. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +0 -166
  172. package/packages/orq-rc/src/funcs/modelsList.ts +0 -144
  173. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +0 -144
  174. package/packages/orq-rc/src/funcs/modelsUpdate.ts +0 -168
  175. package/packages/orq-rc/src/funcs/modelsUpdateAutorouter.ts +0 -169
  176. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +0 -169
  177. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +0 -169
  178. package/packages/orq-rc/src/funcs/modelsValidate.ts +0 -163
  179. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +0 -164
  180. package/packages/orq-rc/src/funcs/piiDetect.ts +0 -162
  181. package/packages/orq-rc/src/funcs/piiRedact.ts +0 -162
  182. package/packages/orq-rc/src/funcs/piiRestore.ts +0 -162
  183. package/packages/orq-rc/src/funcs/policiesCreate.ts +0 -162
  184. package/packages/orq-rc/src/funcs/policiesDelete.ts +0 -168
  185. package/packages/orq-rc/src/funcs/policiesList.ts +0 -170
  186. package/packages/orq-rc/src/funcs/policiesRetrieve.ts +0 -167
  187. package/packages/orq-rc/src/funcs/policiesUpdate.ts +0 -168
  188. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluation.ts +0 -161
  189. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluationRemove.ts +0 -161
  190. package/packages/orq-rc/src/funcs/projectsCreate.ts +0 -162
  191. package/packages/orq-rc/src/funcs/projectsDelete.ts +0 -168
  192. package/packages/orq-rc/src/funcs/projectsGet.ts +0 -168
  193. package/packages/orq-rc/src/funcs/projectsList.ts +0 -170
  194. package/packages/orq-rc/src/funcs/projectsUpdate.ts +0 -171
  195. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -162
  196. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -174
  197. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -182
  198. package/packages/orq-rc/src/funcs/promptsList.ts +0 -169
  199. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -174
  200. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -167
  201. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -174
  202. package/packages/orq-rc/src/funcs/reportingQuery.ts +0 -162
  203. package/packages/orq-rc/src/funcs/responsesCreate.ts +0 -170
  204. package/packages/orq-rc/src/funcs/responsesGet.ts +0 -167
  205. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -163
  206. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -272
  207. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -262
  208. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -170
  209. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -170
  210. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -163
  211. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -224
  212. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -162
  213. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -220
  214. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -169
  215. package/packages/orq-rc/src/funcs/routerOcr.ts +0 -160
  216. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -162
  217. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +0 -163
  218. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +0 -168
  219. package/packages/orq-rc/src/funcs/routingRulesList.ts +0 -170
  220. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +0 -167
  221. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +0 -168
  222. package/packages/orq-rc/src/funcs/schedulesCreate.ts +0 -185
  223. package/packages/orq-rc/src/funcs/schedulesDelete.ts +0 -184
  224. package/packages/orq-rc/src/funcs/schedulesList.ts +0 -167
  225. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +0 -183
  226. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +0 -190
  227. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +0 -191
  228. package/packages/orq-rc/src/funcs/skillsCreate.ts +0 -162
  229. package/packages/orq-rc/src/funcs/skillsDelete.ts +0 -168
  230. package/packages/orq-rc/src/funcs/skillsGet.ts +0 -168
  231. package/packages/orq-rc/src/funcs/skillsList.ts +0 -170
  232. package/packages/orq-rc/src/funcs/skillsUpdate.ts +0 -171
  233. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -165
  234. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -168
  235. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -184
  236. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -191
  237. package/packages/orq-rc/src/funcs/toolsList.ts +0 -178
  238. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -167
  239. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -177
  240. package/packages/orq-rc/src/hooks/global.ts +0 -44
  241. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  242. package/packages/orq-rc/src/hooks/index.ts +0 -6
  243. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  244. package/packages/orq-rc/src/hooks/types.ts +0 -112
  245. package/packages/orq-rc/src/index.ts +0 -9
  246. package/packages/orq-rc/src/lib/base64.ts +0 -37
  247. package/packages/orq-rc/src/lib/config.ts +0 -64
  248. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  249. package/packages/orq-rc/src/lib/encodings.ts +0 -525
  250. package/packages/orq-rc/src/lib/env.ts +0 -57
  251. package/packages/orq-rc/src/lib/event-streams.ts +0 -165
  252. package/packages/orq-rc/src/lib/files.ts +0 -104
  253. package/packages/orq-rc/src/lib/http.ts +0 -323
  254. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  255. package/packages/orq-rc/src/lib/logger.ts +0 -9
  256. package/packages/orq-rc/src/lib/matchers.ts +0 -346
  257. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  258. package/packages/orq-rc/src/lib/retries.ts +0 -218
  259. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  260. package/packages/orq-rc/src/lib/sdks.ts +0 -406
  261. package/packages/orq-rc/src/lib/security.ts +0 -275
  262. package/packages/orq-rc/src/lib/url.ts +0 -35
  263. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
  264. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
  265. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
  266. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
  267. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
  268. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
  269. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
  270. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
  271. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -520
  272. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -795
  273. package/packages/orq-rc/src/models/components/allprojects.ts +0 -39
  274. package/packages/orq-rc/src/models/components/apikey.ts +0 -169
  275. package/packages/orq-rc/src/models/components/apikeyowner.ts +0 -82
  276. package/packages/orq-rc/src/models/components/apikeystatus.ts +0 -21
  277. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  278. package/packages/orq-rc/src/models/components/autorouterconfig.ts +0 -78
  279. package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +0 -44
  280. package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +0 -60
  281. package/packages/orq-rc/src/models/components/budgetlimit.ts +0 -83
  282. package/packages/orq-rc/src/models/components/conversationparam.ts +0 -51
  283. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -305
  284. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +0 -91
  285. package/packages/orq-rc/src/models/components/createapikeyresponse.ts +0 -49
  286. package/packages/orq-rc/src/models/components/createfilerequest.ts +0 -53
  287. package/packages/orq-rc/src/models/components/createfileresponse.ts +0 -32
  288. package/packages/orq-rc/src/models/components/createidentityrequest.ts +0 -76
  289. package/packages/orq-rc/src/models/components/createidentityresponse.ts +0 -32
  290. package/packages/orq-rc/src/models/components/createmodelparameter.ts +0 -54
  291. package/packages/orq-rc/src/models/components/createprojectrequest.ts +0 -46
  292. package/packages/orq-rc/src/models/components/createprojectresponse.ts +0 -35
  293. package/packages/orq-rc/src/models/components/createskillrequest.ts +0 -70
  294. package/packages/orq-rc/src/models/components/createskillresponse.ts +0 -35
  295. package/packages/orq-rc/src/models/components/datapart.ts +0 -38
  296. package/packages/orq-rc/src/models/components/datapoint.ts +0 -60
  297. package/packages/orq-rc/src/models/components/deleteapikeyresponse.ts +0 -27
  298. package/packages/orq-rc/src/models/components/deletefileresponse.ts +0 -27
  299. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +0 -27
  300. package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +0 -27
  301. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +0 -27
  302. package/packages/orq-rc/src/models/components/detectrequest.ts +0 -56
  303. package/packages/orq-rc/src/models/components/detectresponse.ts +0 -41
  304. package/packages/orq-rc/src/models/components/domain.ts +0 -75
  305. package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +0 -59
  306. package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +0 -48
  307. package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +0 -66
  308. package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +0 -42
  309. package/packages/orq-rc/src/models/components/embeddingorqparams.ts +0 -101
  310. package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +0 -45
  311. package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +0 -39
  312. package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
  313. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
  314. package/packages/orq-rc/src/models/components/evaluatorref.ts +0 -93
  315. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
  316. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
  317. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
  318. package/packages/orq-rc/src/models/components/expression.ts +0 -33
  319. package/packages/orq-rc/src/models/components/expressioninput.ts +0 -29
  320. package/packages/orq-rc/src/models/components/extendedmessage.ts +0 -146
  321. package/packages/orq-rc/src/models/components/fallbackconfig.ts +0 -27
  322. package/packages/orq-rc/src/models/components/file.ts +0 -52
  323. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  324. package/packages/orq-rc/src/models/components/filepart.ts +0 -223
  325. package/packages/orq-rc/src/models/components/filepurpose.ts +0 -21
  326. package/packages/orq-rc/src/models/components/filter.ts +0 -137
  327. package/packages/orq-rc/src/models/components/getagentresponse.ts +0 -348
  328. package/packages/orq-rc/src/models/components/getapikeyresponse.ts +0 -40
  329. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +0 -36
  330. package/packages/orq-rc/src/models/components/getfileresponse.ts +0 -32
  331. package/packages/orq-rc/src/models/components/getprojectresponse.ts +0 -35
  332. package/packages/orq-rc/src/models/components/getskillresponse.ts +0 -35
  333. package/packages/orq-rc/src/models/components/guardrailref.ts +0 -91
  334. package/packages/orq-rc/src/models/components/guardrailrule.ts +0 -66
  335. package/packages/orq-rc/src/models/components/identity.ts +0 -83
  336. package/packages/orq-rc/src/models/components/identitymetrics.ts +0 -45
  337. package/packages/orq-rc/src/models/components/identitysortfield.ts +0 -18
  338. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  339. package/packages/orq-rc/src/models/components/incompletedetails.ts +0 -31
  340. package/packages/orq-rc/src/models/components/index.ts +0 -190
  341. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +0 -45
  342. package/packages/orq-rc/src/models/components/legacytokenfamily.ts +0 -19
  343. package/packages/orq-rc/src/models/components/limits.ts +0 -70
  344. package/packages/orq-rc/src/models/components/listapikeysresponse.ts +0 -56
  345. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +0 -38
  346. package/packages/orq-rc/src/models/components/listfilesresponse.ts +0 -41
  347. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +0 -41
  348. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +0 -53
  349. package/packages/orq-rc/src/models/components/listskillsresponse.ts +0 -53
  350. package/packages/orq-rc/src/models/components/litellmmodel.ts +0 -50
  351. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +0 -97
  352. package/packages/orq-rc/src/models/components/litellmparams.ts +0 -43
  353. package/packages/orq-rc/src/models/components/memoryparam.ts +0 -56
  354. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +0 -82
  355. package/packages/orq-rc/src/models/components/modeldocument.ts +0 -112
  356. package/packages/orq-rc/src/models/components/modelmetadata.ts +0 -720
  357. package/packages/orq-rc/src/models/components/modelparameterdocument.ts +0 -53
  358. package/packages/orq-rc/src/models/components/modelref.ts +0 -70
  359. package/packages/orq-rc/src/models/components/modelsconfig.ts +0 -73
  360. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +0 -36
  361. package/packages/orq-rc/src/models/components/ownertype.ts +0 -17
  362. package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
  363. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
  364. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -70
  365. package/packages/orq-rc/src/models/components/permissionmode.ts +0 -23
  366. package/packages/orq-rc/src/models/components/policy.ts +0 -80
  367. package/packages/orq-rc/src/models/components/policyretryconfig.ts +0 -64
  368. package/packages/orq-rc/src/models/components/price.ts +0 -56
  369. package/packages/orq-rc/src/models/components/pricing.ts +0 -93
  370. package/packages/orq-rc/src/models/components/pricingvariant.ts +0 -90
  371. package/packages/orq-rc/src/models/components/project.ts +0 -108
  372. package/packages/orq-rc/src/models/components/projectscope.ts +0 -70
  373. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
  374. package/packages/orq-rc/src/models/components/publicembeddingdata.ts +0 -60
  375. package/packages/orq-rc/src/models/components/publicembeddingusage.ts +0 -45
  376. package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
  377. package/packages/orq-rc/src/models/components/publicmodelentry.ts +0 -71
  378. package/packages/orq-rc/src/models/components/publicschedule.ts +0 -118
  379. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +0 -39
  380. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +0 -84
  381. package/packages/orq-rc/src/models/components/publicusage.ts +0 -77
  382. package/packages/orq-rc/src/models/components/queryreportrequest.ts +0 -237
  383. package/packages/orq-rc/src/models/components/queryreportresponse.ts +0 -99
  384. package/packages/orq-rc/src/models/components/reasoning.ts +0 -33
  385. package/packages/orq-rc/src/models/components/reasoningparam.ts +0 -30
  386. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
  387. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  388. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  389. package/packages/orq-rc/src/models/components/redactrequest.ts +0 -33
  390. package/packages/orq-rc/src/models/components/redactresponse.ts +0 -41
  391. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  392. package/packages/orq-rc/src/models/components/requestlimit.ts +0 -69
  393. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -324
  394. package/packages/orq-rc/src/models/components/responseerror.ts +0 -33
  395. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +0 -52
  396. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
  397. package/packages/orq-rc/src/models/components/responseidentity.ts +0 -48
  398. package/packages/orq-rc/src/models/components/responsemeta.ts +0 -103
  399. package/packages/orq-rc/src/models/components/responseretryconfig.ts +0 -45
  400. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -97
  401. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
  402. package/packages/orq-rc/src/models/components/responsethread.ts +0 -30
  403. package/packages/orq-rc/src/models/components/restorerequest.ts +0 -38
  404. package/packages/orq-rc/src/models/components/restoreresponse.ts +0 -36
  405. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +0 -32
  406. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
  407. package/packages/orq-rc/src/models/components/routingrule.ts +0 -67
  408. package/packages/orq-rc/src/models/components/security.ts +0 -32
  409. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +0 -43
  410. package/packages/orq-rc/src/models/components/singleproject.ts +0 -56
  411. package/packages/orq-rc/src/models/components/skill.ts +0 -109
  412. package/packages/orq-rc/src/models/components/streamoptions.ts +0 -32
  413. package/packages/orq-rc/src/models/components/telemetry.ts +0 -48
  414. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  415. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  416. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +0 -59
  417. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  418. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -107
  419. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
  420. package/packages/orq-rc/src/models/components/tokenlimit.ts +0 -69
  421. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
  422. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
  423. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -235
  424. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -219
  425. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -205
  426. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
  427. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  428. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
  429. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
  430. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
  431. package/packages/orq-rc/src/models/components/totals.ts +0 -34
  432. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +0 -99
  433. package/packages/orq-rc/src/models/components/updateapikeyresponse.ts +0 -40
  434. package/packages/orq-rc/src/models/components/updatefilerequest.ts +0 -40
  435. package/packages/orq-rc/src/models/components/updatefileresponse.ts +0 -32
  436. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +0 -75
  437. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +0 -32
  438. package/packages/orq-rc/src/models/components/updatemodelparameter.ts +0 -61
  439. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -60
  440. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +0 -35
  441. package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -82
  442. package/packages/orq-rc/src/models/components/updateskillresponse.ts +0 -35
  443. package/packages/orq-rc/src/models/components/userowner.ts +0 -56
  444. package/packages/orq-rc/src/models/components/vertexcapabilities.ts +0 -37
  445. package/packages/orq-rc/src/models/components/vertexconfiguration.ts +0 -45
  446. package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +0 -53
  447. package/packages/orq-rc/src/models/components/vertexparameters.ts +0 -47
  448. package/packages/orq-rc/src/models/components/vertexparamrange.ts +0 -34
  449. package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +0 -34
  450. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  451. package/packages/orq-rc/src/models/errors/createagentschedule.ts +0 -105
  452. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  453. package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
  454. package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
  455. package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
  456. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
  457. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +0 -56
  458. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
  459. package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
  460. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  461. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
  462. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  463. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
  464. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
  465. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
  466. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  467. package/packages/orq-rc/src/models/errors/index.ts +0 -38
  468. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
  469. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  470. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +0 -97
  471. package/packages/orq-rc/src/models/errors/postv2feedback.ts +0 -96
  472. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +0 -51
  473. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  474. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
  475. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +0 -56
  476. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  477. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
  478. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
  479. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +0 -105
  480. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
  481. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +0 -105
  482. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  483. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
  484. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
  485. package/packages/orq-rc/src/models/operations/apikeydelete.ts +0 -39
  486. package/packages/orq-rc/src/models/operations/apikeyget.ts +0 -39
  487. package/packages/orq-rc/src/models/operations/apikeylist.ts +0 -107
  488. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +0 -44
  489. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
  490. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -6380
  491. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -671
  492. package/packages/orq-rc/src/models/operations/createagentschedule.ts +0 -227
  493. package/packages/orq-rc/src/models/operations/createannotation.ts +0 -162
  494. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6399
  495. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
  496. package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3474
  497. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
  498. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2554
  499. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -443
  500. package/packages/orq-rc/src/models/operations/createembedding.ts +0 -219
  501. package/packages/orq-rc/src/models/operations/createeval.ts +0 -4456
  502. package/packages/orq-rc/src/models/operations/createimage.ts +0 -1034
  503. package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
  504. package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
  505. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -958
  506. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
  507. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
  508. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
  509. package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
  510. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5408
  511. package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
  512. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +0 -1506
  513. package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
  514. package/packages/orq-rc/src/models/operations/createtool.ts +0 -2490
  515. package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
  516. package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
  517. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
  518. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +0 -46
  519. package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -82
  520. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
  521. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
  522. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
  523. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
  524. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
  525. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
  526. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -31
  527. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
  528. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
  529. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
  530. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
  531. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
  532. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
  533. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +0 -36
  534. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4968
  535. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -4178
  536. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1276
  537. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4698
  538. package/packages/orq-rc/src/models/operations/filecontent.ts +0 -36
  539. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -36
  540. package/packages/orq-rc/src/models/operations/fileget.ts +0 -32
  541. package/packages/orq-rc/src/models/operations/filelist.ts +0 -45
  542. package/packages/orq-rc/src/models/operations/fileupdate.ts +0 -41
  543. package/packages/orq-rc/src/models/operations/getagentresponse.ts +0 -46
  544. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
  545. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
  546. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
  547. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3176
  548. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1389
  549. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -142
  550. package/packages/orq-rc/src/models/operations/getevals.ts +0 -3346
  551. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
  552. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
  553. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3101
  554. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3146
  555. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
  556. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +0 -234
  557. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +0 -235
  558. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
  559. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
  560. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +0 -124
  561. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +0 -39
  562. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +0 -102
  563. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +0 -94
  564. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +0 -153
  565. package/packages/orq-rc/src/models/operations/index.ts +0 -169
  566. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -801
  567. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1260
  568. package/packages/orq-rc/src/models/operations/listagents.ts +0 -2699
  569. package/packages/orq-rc/src/models/operations/listagentschedules.ts +0 -69
  570. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -289
  571. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -282
  572. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
  573. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
  574. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -241
  575. package/packages/orq-rc/src/models/operations/listidentities.ts +0 -59
  576. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
  577. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -60
  578. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3221
  579. package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +0 -90
  580. package/packages/orq-rc/src/models/operations/modelcreate.ts +0 -184
  581. package/packages/orq-rc/src/models/operations/modelcreateautorouter.ts +0 -151
  582. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +0 -218
  583. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +0 -202
  584. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +0 -144
  585. package/packages/orq-rc/src/models/operations/modeldelete.ts +0 -34
  586. package/packages/orq-rc/src/models/operations/modeldisable.ts +0 -39
  587. package/packages/orq-rc/src/models/operations/modelenable.ts +0 -36
  588. package/packages/orq-rc/src/models/operations/modelupdate.ts +0 -198
  589. package/packages/orq-rc/src/models/operations/modelupdateautorouter.ts +0 -189
  590. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +0 -248
  591. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +0 -236
  592. package/packages/orq-rc/src/models/operations/modelvalidate.ts +0 -57
  593. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +0 -57
  594. package/packages/orq-rc/src/models/operations/parse.ts +0 -784
  595. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +0 -415
  596. package/packages/orq-rc/src/models/operations/policycreate.ts +0 -138
  597. package/packages/orq-rc/src/models/operations/policydelete.ts +0 -39
  598. package/packages/orq-rc/src/models/operations/policyget.ts +0 -110
  599. package/packages/orq-rc/src/models/operations/policylist.ts +0 -94
  600. package/packages/orq-rc/src/models/operations/policyupdate.ts +0 -174
  601. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +0 -100
  602. package/packages/orq-rc/src/models/operations/postv2feedback.ts +0 -214
  603. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +0 -321
  604. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +0 -43
  605. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +0 -135
  606. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +0 -365
  607. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
  608. package/packages/orq-rc/src/models/operations/projectdelete.ts +0 -39
  609. package/packages/orq-rc/src/models/operations/projectget.ts +0 -39
  610. package/packages/orq-rc/src/models/operations/projectlist.ts +0 -58
  611. package/packages/orq-rc/src/models/operations/projectupdate.ts +0 -44
  612. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -2754
  613. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +0 -162
  614. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
  615. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
  616. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
  617. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -39
  618. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
  619. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
  620. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
  621. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +0 -225
  622. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1370
  623. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +0 -124
  624. package/packages/orq-rc/src/models/operations/routingruledelete.ts +0 -39
  625. package/packages/orq-rc/src/models/operations/routingruleget.ts +0 -102
  626. package/packages/orq-rc/src/models/operations/routingrulelist.ts +0 -94
  627. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +0 -154
  628. package/packages/orq-rc/src/models/operations/runagent.ts +0 -4954
  629. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
  630. package/packages/orq-rc/src/models/operations/skilldelete.ts +0 -39
  631. package/packages/orq-rc/src/models/operations/skillget.ts +0 -40
  632. package/packages/orq-rc/src/models/operations/skilllist.ts +0 -61
  633. package/packages/orq-rc/src/models/operations/skillupdate.ts +0 -44
  634. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -693
  635. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5126
  636. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +0 -86
  637. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -6704
  638. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +0 -241
  639. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
  640. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
  641. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
  642. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
  643. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -3819
  644. package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -40
  645. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
  646. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
  647. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
  648. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -188
  649. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5490
  650. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2801
  651. package/packages/orq-rc/src/sdk/agents.ts +0 -216
  652. package/packages/orq-rc/src/sdk/annotations.ts +0 -45
  653. package/packages/orq-rc/src/sdk/apikeys.ts +0 -116
  654. package/packages/orq-rc/src/sdk/audio.ts +0 -25
  655. package/packages/orq-rc/src/sdk/chat.ts +0 -13
  656. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  657. package/packages/orq-rc/src/sdk/completions.ts +0 -32
  658. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  659. package/packages/orq-rc/src/sdk/deployments.ts +0 -82
  660. package/packages/orq-rc/src/sdk/edits.ts +0 -27
  661. package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
  662. package/packages/orq-rc/src/sdk/evals.ts +0 -102
  663. package/packages/orq-rc/src/sdk/feedback.ts +0 -33
  664. package/packages/orq-rc/src/sdk/files.ts +0 -115
  665. package/packages/orq-rc/src/sdk/generations.ts +0 -27
  666. package/packages/orq-rc/src/sdk/guardrailrules.ts +0 -99
  667. package/packages/orq-rc/src/sdk/humanreviewsets.ts +0 -84
  668. package/packages/orq-rc/src/sdk/identities.ts +0 -100
  669. package/packages/orq-rc/src/sdk/images.ts +0 -25
  670. package/packages/orq-rc/src/sdk/index.ts +0 -5
  671. package/packages/orq-rc/src/sdk/knowledge.ts +0 -312
  672. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  673. package/packages/orq-rc/src/sdk/models.ts +0 -330
  674. package/packages/orq-rc/src/sdk/moderations.ts +0 -24
  675. package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
  676. package/packages/orq-rc/src/sdk/orqresponses.ts +0 -53
  677. package/packages/orq-rc/src/sdk/pii.ts +0 -63
  678. package/packages/orq-rc/src/sdk/policies.ts +0 -99
  679. package/packages/orq-rc/src/sdk/projects.ts +0 -100
  680. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  681. package/packages/orq-rc/src/sdk/reporting.ts +0 -27
  682. package/packages/orq-rc/src/sdk/rerank.ts +0 -27
  683. package/packages/orq-rc/src/sdk/responses.ts +0 -47
  684. package/packages/orq-rc/src/sdk/router.ts +0 -66
  685. package/packages/orq-rc/src/sdk/routingrules.ts +0 -99
  686. package/packages/orq-rc/src/sdk/schedules.ts +0 -117
  687. package/packages/orq-rc/src/sdk/sdk.ts +0 -189
  688. package/packages/orq-rc/src/sdk/skills.ts +0 -100
  689. package/packages/orq-rc/src/sdk/speech.ts +0 -27
  690. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  691. package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
  692. package/packages/orq-rc/src/sdk/translations.ts +0 -24
  693. package/packages/orq-rc/src/sdk/variations.ts +0 -27
  694. package/packages/orq-rc/src/types/async.ts +0 -69
  695. package/packages/orq-rc/src/types/blobs.ts +0 -32
  696. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  697. package/packages/orq-rc/src/types/enums.ts +0 -45
  698. package/packages/orq-rc/src/types/fp.ts +0 -50
  699. package/packages/orq-rc/src/types/index.ts +0 -11
  700. package/packages/orq-rc/src/types/operations.ts +0 -105
  701. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  702. package/packages/orq-rc/src/types/streams.ts +0 -21
  703. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
@@ -1,2490 +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 CreateToolRequestBodyToolsRequestStatus = {
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 CreateToolRequestBodyToolsRequestStatus = ClosedEnum<
28
- typeof CreateToolRequestBodyToolsRequestStatus
29
- >;
30
-
31
- /**
32
- * The type must be "object"
33
- */
34
- export const CreateToolRequestBodyToolsRequest5CodeToolType = {
35
- Object: "object",
36
- } as const;
37
- /**
38
- * The type must be "object"
39
- */
40
- export type CreateToolRequestBodyToolsRequest5CodeToolType = ClosedEnum<
41
- typeof CreateToolRequestBodyToolsRequest5CodeToolType
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 CreateToolRequestBodyParameters = {
48
- /**
49
- * The type must be "object"
50
- */
51
- type: CreateToolRequestBodyToolsRequest5CodeToolType;
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 RequestBodyLanguage = {
64
- Python: "python",
65
- } as const;
66
- export type RequestBodyLanguage = ClosedEnum<typeof RequestBodyLanguage>;
67
-
68
- export type RequestBodyCodeTool = {
69
- /**
70
- * 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.
71
- */
72
- parameters?: CreateToolRequestBodyParameters | undefined;
73
- language: RequestBodyLanguage;
74
- /**
75
- * The code to execute.
76
- */
77
- code: string;
78
- };
79
-
80
- /**
81
- * Executes code snippets in a sandboxed environment, currently supporting Python.
82
- */
83
- export type RequestBodyCodeExecutionTool = {
84
- /**
85
- * Entity storage path.
86
- *
87
- * @remarks
88
- *
89
- * 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`.
90
- *
91
- * 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.
92
- */
93
- path: string;
94
- /**
95
- * Unique key of the tool as it will be displayed in the UI
96
- */
97
- key: string;
98
- /**
99
- * 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.
100
- */
101
- displayName?: string | undefined;
102
- /**
103
- * 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.
104
- */
105
- description: string;
106
- /**
107
- * 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.
108
- */
109
- status?: CreateToolRequestBodyToolsRequestStatus | undefined;
110
- type: "code";
111
- codeTool: RequestBodyCodeTool;
112
- };
113
-
114
- /**
115
- * 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.
116
- */
117
- export const CreateToolRequestBodyToolsStatus = {
118
- Live: "live",
119
- Draft: "draft",
120
- Pending: "pending",
121
- Published: "published",
122
- } as const;
123
- /**
124
- * 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.
125
- */
126
- export type CreateToolRequestBodyToolsStatus = ClosedEnum<
127
- typeof CreateToolRequestBodyToolsStatus
128
- >;
129
-
130
- export type RequestBodyHeaders = {
131
- value: string;
132
- encrypted?: boolean | undefined;
133
- };
134
-
135
- /**
136
- * The connection type used by the MCP server
137
- */
138
- export const RequestBodyConnectionType = {
139
- Http: "http",
140
- Sse: "sse",
141
- } as const;
142
- /**
143
- * The connection type used by the MCP server
144
- */
145
- export type RequestBodyConnectionType = ClosedEnum<
146
- typeof RequestBodyConnectionType
147
- >;
148
-
149
- export type RequestBodyMcp = {
150
- /**
151
- * The MCP server URL (cached for execution)
152
- */
153
- serverUrl: string;
154
- /**
155
- * HTTP headers for MCP server requests with encryption support
156
- */
157
- headers?: { [k: string]: RequestBodyHeaders } | undefined;
158
- /**
159
- * The connection type used by the MCP server
160
- */
161
- connectionType: RequestBodyConnectionType;
162
- };
163
-
164
- /**
165
- * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
166
- */
167
- export type RequestBodyMCPTool = {
168
- /**
169
- * Entity storage path.
170
- *
171
- * @remarks
172
- *
173
- * 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`.
174
- *
175
- * 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.
176
- */
177
- path: string;
178
- /**
179
- * Unique key of the tool as it will be displayed in the UI
180
- */
181
- key: string;
182
- /**
183
- * 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.
184
- */
185
- displayName?: string | undefined;
186
- /**
187
- * 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.
188
- */
189
- description: string;
190
- /**
191
- * 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.
192
- */
193
- status?: CreateToolRequestBodyToolsStatus | undefined;
194
- type: "mcp";
195
- mcp: RequestBodyMcp;
196
- discoveryVariables?: { [k: string]: string } | undefined;
197
- };
198
-
199
- /**
200
- * 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.
201
- */
202
- export const CreateToolRequestBodyStatus = {
203
- Live: "live",
204
- Draft: "draft",
205
- Pending: "pending",
206
- Published: "published",
207
- } as const;
208
- /**
209
- * 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.
210
- */
211
- export type CreateToolRequestBodyStatus = ClosedEnum<
212
- typeof CreateToolRequestBodyStatus
213
- >;
214
-
215
- /**
216
- * The HTTP method to use.
217
- */
218
- export const RequestBodyMethod = {
219
- Get: "GET",
220
- Post: "POST",
221
- Put: "PUT",
222
- Delete: "DELETE",
223
- } as const;
224
- /**
225
- * The HTTP method to use.
226
- */
227
- export type RequestBodyMethod = ClosedEnum<typeof RequestBodyMethod>;
228
-
229
- export type CreateToolHeaders2 = {
230
- value: string;
231
- encrypted?: boolean | undefined;
232
- };
233
-
234
- export type CreateToolRequestBodyHeaders = CreateToolHeaders2 | string;
235
-
236
- /**
237
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
238
- */
239
- export type RequestBodyBlueprint = {
240
- /**
241
- * The URL to send the request to.
242
- */
243
- url: string;
244
- /**
245
- * The HTTP method to use.
246
- */
247
- method: RequestBodyMethod;
248
- /**
249
- * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
250
- */
251
- headers?: { [k: string]: CreateToolHeaders2 | string } | undefined;
252
- /**
253
- * The body to send with the request.
254
- */
255
- body?: { [k: string]: any } | undefined;
256
- };
257
-
258
- /**
259
- * The type of the argument.
260
- */
261
- export const CreateToolRequestBodyToolsRequest3Type = {
262
- String: "string",
263
- Number: "number",
264
- Boolean: "boolean",
265
- } as const;
266
- /**
267
- * The type of the argument.
268
- */
269
- export type CreateToolRequestBodyToolsRequest3Type = ClosedEnum<
270
- typeof CreateToolRequestBodyToolsRequest3Type
271
- >;
272
-
273
- /**
274
- * The default value of the argument.
275
- */
276
- export type RequestBodyDefaultValue = string | number | boolean;
277
-
278
- export type RequestBodyArguments = {
279
- /**
280
- * The type of the argument.
281
- */
282
- type: CreateToolRequestBodyToolsRequest3Type;
283
- /**
284
- * A description of the argument.
285
- */
286
- description: string;
287
- /**
288
- * 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.
289
- */
290
- sendToModel?: boolean | undefined;
291
- /**
292
- * The default value of the argument.
293
- */
294
- defaultValue?: string | number | boolean | undefined;
295
- };
296
-
297
- export type RequestBodyHttp = {
298
- /**
299
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
300
- */
301
- blueprint: RequestBodyBlueprint;
302
- /**
303
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
304
- */
305
- arguments?: { [k: string]: RequestBodyArguments } | undefined;
306
- };
307
-
308
- /**
309
- * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
310
- */
311
- export type RequestBodyHTTPTool = {
312
- /**
313
- * Entity storage path.
314
- *
315
- * @remarks
316
- *
317
- * 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`.
318
- *
319
- * 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.
320
- */
321
- path: string;
322
- /**
323
- * Unique key of the tool as it will be displayed in the UI
324
- */
325
- key: string;
326
- /**
327
- * 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.
328
- */
329
- displayName?: string | undefined;
330
- /**
331
- * 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.
332
- */
333
- description: string;
334
- /**
335
- * 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.
336
- */
337
- status?: CreateToolRequestBodyStatus | undefined;
338
- type: "http";
339
- http: RequestBodyHttp;
340
- };
341
-
342
- /**
343
- * 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.
344
- */
345
- export const RequestBodyStatus = {
346
- Live: "live",
347
- Draft: "draft",
348
- Pending: "pending",
349
- Published: "published",
350
- } as const;
351
- /**
352
- * 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.
353
- */
354
- export type RequestBodyStatus = ClosedEnum<typeof RequestBodyStatus>;
355
-
356
- /**
357
- * 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.
358
- */
359
- export type RequestBodySchema = {
360
- /**
361
- * The JSON Schema type
362
- */
363
- type: string;
364
- /**
365
- * The properties of the JSON Schema object
366
- */
367
- properties: { [k: string]: any };
368
- /**
369
- * Array of required property names
370
- */
371
- required: Array<string>;
372
- additionalProperties?: { [k: string]: any } | undefined;
373
- };
374
-
375
- export type RequestBodyJsonSchema = {
376
- /**
377
- * 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.
378
- */
379
- name: string;
380
- /**
381
- * A description of what the response format is for. This will be shown to the user.
382
- */
383
- description: string;
384
- /**
385
- * 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.
386
- */
387
- schema: RequestBodySchema;
388
- /**
389
- * 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.
390
- */
391
- strict?: boolean | undefined;
392
- };
393
-
394
- /**
395
- * A tool that enforces structured output format using JSON Schema for consistent response formatting.
396
- */
397
- export type RequestBodyJSONSchemaTool = {
398
- /**
399
- * Entity storage path.
400
- *
401
- * @remarks
402
- *
403
- * 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`.
404
- *
405
- * 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.
406
- */
407
- path: string;
408
- /**
409
- * Unique key of the tool as it will be displayed in the UI
410
- */
411
- key: string;
412
- /**
413
- * 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.
414
- */
415
- displayName?: string | undefined;
416
- /**
417
- * 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.
418
- */
419
- description: string;
420
- /**
421
- * 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.
422
- */
423
- status?: RequestBodyStatus | undefined;
424
- type: "json_schema";
425
- jsonSchema: RequestBodyJsonSchema;
426
- };
427
-
428
- /**
429
- * 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.
430
- */
431
- export const CreateToolRequestBodyToolsRequest1Status = {
432
- Live: "live",
433
- Draft: "draft",
434
- Pending: "pending",
435
- Published: "published",
436
- } as const;
437
- /**
438
- * 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.
439
- */
440
- export type CreateToolRequestBodyToolsRequest1Status = ClosedEnum<
441
- typeof CreateToolRequestBodyToolsRequest1Status
442
- >;
443
-
444
- /**
445
- * The type must be "object"
446
- */
447
- export const CreateToolRequestBodyToolsRequest1Type = {
448
- Object: "object",
449
- } as const;
450
- /**
451
- * The type must be "object"
452
- */
453
- export type CreateToolRequestBodyToolsRequest1Type = ClosedEnum<
454
- typeof CreateToolRequestBodyToolsRequest1Type
455
- >;
456
-
457
- /**
458
- * 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.
459
- */
460
- export type RequestBodyParameters = {
461
- /**
462
- * The type must be "object"
463
- */
464
- type: CreateToolRequestBodyToolsRequest1Type;
465
- /**
466
- * The properties of the function parameters
467
- */
468
- properties: { [k: string]: any };
469
- /**
470
- * Array of required parameter names
471
- */
472
- required: Array<string>;
473
- additionalProperties?: { [k: string]: any } | undefined;
474
- };
475
-
476
- export type RequestBodyFunction = {
477
- /**
478
- * 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.
479
- */
480
- name: string;
481
- /**
482
- * A description of what the function does, used by the model to choose when and how to call the function.
483
- */
484
- description?: string | undefined;
485
- /**
486
- * 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.
487
- */
488
- strict?: boolean | undefined;
489
- /**
490
- * 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.
491
- */
492
- parameters?: RequestBodyParameters | undefined;
493
- };
494
-
495
- /**
496
- * A custom function tool that allows the model to call predefined functions with structured parameters.
497
- */
498
- export type RequestBodyFunctionTool = {
499
- /**
500
- * Entity storage path.
501
- *
502
- * @remarks
503
- *
504
- * 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`.
505
- *
506
- * 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.
507
- */
508
- path: string;
509
- /**
510
- * Unique key of the tool as it will be displayed in the UI
511
- */
512
- key: string;
513
- /**
514
- * 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.
515
- */
516
- displayName?: string | undefined;
517
- /**
518
- * 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.
519
- */
520
- description: string;
521
- /**
522
- * 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.
523
- */
524
- status?: CreateToolRequestBodyToolsRequest1Status | undefined;
525
- type: "function";
526
- function: RequestBodyFunction;
527
- };
528
-
529
- /**
530
- * The tool to create
531
- */
532
- export type CreateToolRequestBody =
533
- | RequestBodyFunctionTool
534
- | RequestBodyJSONSchemaTool
535
- | RequestBodyHTTPTool
536
- | RequestBodyMCPTool
537
- | RequestBodyCodeExecutionTool;
538
-
539
- /**
540
- * 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.
541
- */
542
- export const CreateToolResponseBodyToolsResponse200Status = {
543
- Live: "live",
544
- Draft: "draft",
545
- Pending: "pending",
546
- Published: "published",
547
- } as const;
548
- /**
549
- * 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.
550
- */
551
- export type CreateToolResponseBodyToolsResponse200Status = ClosedEnum<
552
- typeof CreateToolResponseBodyToolsResponse200Status
553
- >;
554
-
555
- /**
556
- * The type must be "object"
557
- */
558
- export const CreateToolResponseBodyToolsResponse200ApplicationJson5Type = {
559
- Object: "object",
560
- } as const;
561
- /**
562
- * The type must be "object"
563
- */
564
- export type CreateToolResponseBodyToolsResponse200ApplicationJson5Type =
565
- ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson5Type>;
566
-
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
- export type CreateToolResponseBodyParameters = {
571
- /**
572
- * The type must be "object"
573
- */
574
- type: CreateToolResponseBodyToolsResponse200ApplicationJson5Type;
575
- /**
576
- * The properties of the function parameters
577
- */
578
- properties: { [k: string]: any };
579
- /**
580
- * Array of required parameter names
581
- */
582
- required: Array<string>;
583
- additionalProperties?: { [k: string]: any } | undefined;
584
- };
585
-
586
- export const ResponseBodyLanguage = {
587
- Python: "python",
588
- } as const;
589
- export type ResponseBodyLanguage = ClosedEnum<typeof ResponseBodyLanguage>;
590
-
591
- export type ResponseBodyCodeTool = {
592
- /**
593
- * 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.
594
- */
595
- parameters?: CreateToolResponseBodyParameters | undefined;
596
- language: ResponseBodyLanguage;
597
- /**
598
- * The code to execute.
599
- */
600
- code: string;
601
- };
602
-
603
- /**
604
- * Executes code snippets in a sandboxed environment, currently supporting Python.
605
- */
606
- export type ResponseBodyCodeExecutionTool = {
607
- id: string;
608
- /**
609
- * Entity storage path.
610
- *
611
- * @remarks
612
- *
613
- * 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`.
614
- *
615
- * 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.
616
- */
617
- path: string;
618
- /**
619
- * Unique key of the tool as it will be displayed in the UI
620
- */
621
- key: string;
622
- /**
623
- * 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.
624
- */
625
- displayName?: string | undefined;
626
- /**
627
- * 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.
628
- */
629
- description: string;
630
- /**
631
- * The id of the user that created the tool
632
- */
633
- createdById?: string | undefined;
634
- /**
635
- * The id of the user that last updated the tool
636
- */
637
- updatedById?: string | undefined;
638
- projectId: string;
639
- workspaceId: string;
640
- created: string;
641
- updated: string;
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
- status: CreateToolResponseBodyToolsResponse200Status;
646
- type: "code";
647
- codeTool: ResponseBodyCodeTool;
648
- };
649
-
650
- /**
651
- * 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.
652
- */
653
- export const CreateToolResponseBodyToolsResponseStatus = {
654
- Live: "live",
655
- Draft: "draft",
656
- Pending: "pending",
657
- Published: "published",
658
- } as const;
659
- /**
660
- * 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.
661
- */
662
- export type CreateToolResponseBodyToolsResponseStatus = ClosedEnum<
663
- typeof CreateToolResponseBodyToolsResponseStatus
664
- >;
665
-
666
- export type ResponseBodyHeaders = {
667
- value: string;
668
- encrypted: boolean;
669
- };
670
-
671
- export const CreateToolResponseBodyToolsResponse200ApplicationJson4Type = {
672
- Object: "object",
673
- } as const;
674
- export type CreateToolResponseBodyToolsResponse200ApplicationJson4Type =
675
- ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type>;
676
-
677
- export type CreateToolResponseBodySchema = {
678
- type: CreateToolResponseBodyToolsResponse200ApplicationJson4Type;
679
- properties?: { [k: string]: any } | undefined;
680
- required?: Array<string> | undefined;
681
- };
682
-
683
- export type ResponseBodyTools = {
684
- id: string;
685
- name: string;
686
- description?: string | undefined;
687
- schema: CreateToolResponseBodySchema;
688
- };
689
-
690
- /**
691
- * The connection type used by the MCP server
692
- */
693
- export const ResponseBodyConnectionType = {
694
- Http: "http",
695
- Sse: "sse",
696
- } as const;
697
- /**
698
- * The connection type used by the MCP server
699
- */
700
- export type ResponseBodyConnectionType = ClosedEnum<
701
- typeof ResponseBodyConnectionType
702
- >;
703
-
704
- export type ResponseBodyMcp = {
705
- /**
706
- * The MCP server URL (cached for execution)
707
- */
708
- serverUrl: string;
709
- /**
710
- * HTTP headers for MCP server requests with encryption support
711
- */
712
- headers?: { [k: string]: ResponseBodyHeaders } | undefined;
713
- /**
714
- * Array of tools available from the MCP server
715
- */
716
- tools: Array<ResponseBodyTools>;
717
- /**
718
- * The connection type used by the MCP server
719
- */
720
- connectionType: ResponseBodyConnectionType;
721
- /**
722
- * Names of template variables detected in server_url and headers. Used by the FE to prompt for one-time values on sync/refresh.
723
- */
724
- templateVariables?: Array<string> | null | undefined;
725
- };
726
-
727
- /**
728
- * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
729
- */
730
- export type ResponseBodyMCPTool = {
731
- id: string;
732
- /**
733
- * Entity storage path.
734
- *
735
- * @remarks
736
- *
737
- * 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`.
738
- *
739
- * 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.
740
- */
741
- path: string;
742
- /**
743
- * Unique key of the tool as it will be displayed in the UI
744
- */
745
- key: string;
746
- /**
747
- * 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.
748
- */
749
- displayName?: string | undefined;
750
- /**
751
- * 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.
752
- */
753
- description: string;
754
- /**
755
- * The id of the user that created the tool
756
- */
757
- createdById?: string | undefined;
758
- /**
759
- * The id of the user that last updated the tool
760
- */
761
- updatedById?: string | undefined;
762
- projectId: string;
763
- workspaceId: string;
764
- created: string;
765
- updated: string;
766
- /**
767
- * 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.
768
- */
769
- status: CreateToolResponseBodyToolsResponseStatus;
770
- type: "mcp";
771
- mcp: ResponseBodyMcp;
772
- };
773
-
774
- /**
775
- * 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.
776
- */
777
- export const CreateToolResponseBodyToolsStatus = {
778
- Live: "live",
779
- Draft: "draft",
780
- Pending: "pending",
781
- Published: "published",
782
- } as const;
783
- /**
784
- * 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.
785
- */
786
- export type CreateToolResponseBodyToolsStatus = ClosedEnum<
787
- typeof CreateToolResponseBodyToolsStatus
788
- >;
789
-
790
- /**
791
- * The HTTP method to use.
792
- */
793
- export const CreateToolResponseBodyMethod = {
794
- Get: "GET",
795
- Post: "POST",
796
- Put: "PUT",
797
- Delete: "DELETE",
798
- } as const;
799
- /**
800
- * The HTTP method to use.
801
- */
802
- export type CreateToolResponseBodyMethod = ClosedEnum<
803
- typeof CreateToolResponseBodyMethod
804
- >;
805
-
806
- export type CreateToolHeadersTools2 = {
807
- value: string;
808
- encrypted: boolean;
809
- };
810
-
811
- export type CreateToolResponseBodyHeaders = CreateToolHeadersTools2 | string;
812
-
813
- /**
814
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
815
- */
816
- export type ResponseBodyBlueprint = {
817
- /**
818
- * The URL to send the request to.
819
- */
820
- url: string;
821
- /**
822
- * The HTTP method to use.
823
- */
824
- method: CreateToolResponseBodyMethod;
825
- /**
826
- * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
827
- */
828
- headers?: { [k: string]: CreateToolHeadersTools2 | string } | undefined;
829
- /**
830
- * The body to send with the request.
831
- */
832
- body?: { [k: string]: any } | undefined;
833
- };
834
-
835
- /**
836
- * The type of the argument.
837
- */
838
- export const CreateToolResponseBodyToolsResponse200ApplicationJson3Type = {
839
- String: "string",
840
- Number: "number",
841
- Boolean: "boolean",
842
- } as const;
843
- /**
844
- * The type of the argument.
845
- */
846
- export type CreateToolResponseBodyToolsResponse200ApplicationJson3Type =
847
- ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson3Type>;
848
-
849
- /**
850
- * The default value of the argument.
851
- */
852
- export type ResponseBodyDefaultValue = string | number | boolean;
853
-
854
- export type ResponseBodyArguments = {
855
- /**
856
- * The type of the argument.
857
- */
858
- type: CreateToolResponseBodyToolsResponse200ApplicationJson3Type;
859
- /**
860
- * A description of the argument.
861
- */
862
- description: string;
863
- /**
864
- * 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.
865
- */
866
- sendToModel: boolean;
867
- /**
868
- * The default value of the argument.
869
- */
870
- defaultValue?: string | number | boolean | undefined;
871
- };
872
-
873
- export type CreateToolResponseBodyHttp = {
874
- /**
875
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
876
- */
877
- blueprint: ResponseBodyBlueprint;
878
- /**
879
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
880
- */
881
- arguments?: { [k: string]: ResponseBodyArguments } | undefined;
882
- };
883
-
884
- /**
885
- * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
886
- */
887
- export type ResponseBodyHTTPTool = {
888
- id: string;
889
- /**
890
- * Entity storage path.
891
- *
892
- * @remarks
893
- *
894
- * 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`.
895
- *
896
- * 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.
897
- */
898
- path: string;
899
- /**
900
- * Unique key of the tool as it will be displayed in the UI
901
- */
902
- key: string;
903
- /**
904
- * 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.
905
- */
906
- displayName?: string | undefined;
907
- /**
908
- * 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.
909
- */
910
- description: string;
911
- /**
912
- * The id of the user that created the tool
913
- */
914
- createdById?: string | undefined;
915
- /**
916
- * The id of the user that last updated the tool
917
- */
918
- updatedById?: string | undefined;
919
- projectId: string;
920
- workspaceId: string;
921
- created: string;
922
- updated: string;
923
- /**
924
- * 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.
925
- */
926
- status: CreateToolResponseBodyToolsStatus;
927
- type: "http";
928
- http: CreateToolResponseBodyHttp;
929
- };
930
-
931
- /**
932
- * 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.
933
- */
934
- export const CreateToolResponseBodyStatus = {
935
- Live: "live",
936
- Draft: "draft",
937
- Pending: "pending",
938
- Published: "published",
939
- } as const;
940
- /**
941
- * 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.
942
- */
943
- export type CreateToolResponseBodyStatus = ClosedEnum<
944
- typeof CreateToolResponseBodyStatus
945
- >;
946
-
947
- /**
948
- * 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.
949
- */
950
- export type ResponseBodySchema = {
951
- /**
952
- * The JSON Schema type
953
- */
954
- type: string;
955
- /**
956
- * The properties of the JSON Schema object
957
- */
958
- properties: { [k: string]: any };
959
- /**
960
- * Array of required property names
961
- */
962
- required: Array<string>;
963
- additionalProperties?: { [k: string]: any } | undefined;
964
- };
965
-
966
- export type ResponseBodyJsonSchema = {
967
- /**
968
- * 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.
969
- */
970
- name: string;
971
- /**
972
- * A description of what the response format is for. This will be shown to the user.
973
- */
974
- description: string;
975
- /**
976
- * 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.
977
- */
978
- schema: ResponseBodySchema;
979
- /**
980
- * 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.
981
- */
982
- strict?: boolean | undefined;
983
- };
984
-
985
- /**
986
- * A tool that enforces structured output format using JSON Schema for consistent response formatting.
987
- */
988
- export type ResponseBodyJSONSchemaTool = {
989
- id: string;
990
- /**
991
- * Entity storage path.
992
- *
993
- * @remarks
994
- *
995
- * 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`.
996
- *
997
- * 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.
998
- */
999
- path: string;
1000
- /**
1001
- * Unique key of the tool as it will be displayed in the UI
1002
- */
1003
- key: string;
1004
- /**
1005
- * 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.
1006
- */
1007
- displayName?: string | undefined;
1008
- /**
1009
- * 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.
1010
- */
1011
- description: string;
1012
- /**
1013
- * The id of the user that created the tool
1014
- */
1015
- createdById?: string | undefined;
1016
- /**
1017
- * The id of the user that last updated the tool
1018
- */
1019
- updatedById?: string | undefined;
1020
- projectId: string;
1021
- workspaceId: string;
1022
- created: string;
1023
- updated: string;
1024
- /**
1025
- * 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.
1026
- */
1027
- status: CreateToolResponseBodyStatus;
1028
- type: "json_schema";
1029
- jsonSchema: ResponseBodyJsonSchema;
1030
- };
1031
-
1032
- /**
1033
- * 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.
1034
- */
1035
- export const ResponseBodyStatus = {
1036
- Live: "live",
1037
- Draft: "draft",
1038
- Pending: "pending",
1039
- Published: "published",
1040
- } as const;
1041
- /**
1042
- * 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.
1043
- */
1044
- export type ResponseBodyStatus = ClosedEnum<typeof ResponseBodyStatus>;
1045
-
1046
- /**
1047
- * The type must be "object"
1048
- */
1049
- export const CreateToolResponseBodyToolsResponse200ApplicationJson1Type = {
1050
- Object: "object",
1051
- } as const;
1052
- /**
1053
- * The type must be "object"
1054
- */
1055
- export type CreateToolResponseBodyToolsResponse200ApplicationJson1Type =
1056
- ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson1Type>;
1057
-
1058
- /**
1059
- * 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.
1060
- */
1061
- export type ResponseBodyParameters = {
1062
- /**
1063
- * The type must be "object"
1064
- */
1065
- type: CreateToolResponseBodyToolsResponse200ApplicationJson1Type;
1066
- /**
1067
- * The properties of the function parameters
1068
- */
1069
- properties: { [k: string]: any };
1070
- /**
1071
- * Array of required parameter names
1072
- */
1073
- required: Array<string>;
1074
- additionalProperties?: { [k: string]: any } | undefined;
1075
- };
1076
-
1077
- export type CreateToolResponseBodyFunction = {
1078
- /**
1079
- * 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.
1080
- */
1081
- name: string;
1082
- /**
1083
- * A description of what the function does, used by the model to choose when and how to call the function.
1084
- */
1085
- description?: string | undefined;
1086
- /**
1087
- * 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.
1088
- */
1089
- strict?: boolean | undefined;
1090
- /**
1091
- * 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.
1092
- */
1093
- parameters?: ResponseBodyParameters | undefined;
1094
- };
1095
-
1096
- /**
1097
- * A custom function tool that allows the model to call predefined functions with structured parameters.
1098
- */
1099
- export type ResponseBodyFunctionTool = {
1100
- id: string;
1101
- /**
1102
- * Entity storage path.
1103
- *
1104
- * @remarks
1105
- *
1106
- * 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`.
1107
- *
1108
- * 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.
1109
- */
1110
- path: string;
1111
- /**
1112
- * Unique key of the tool as it will be displayed in the UI
1113
- */
1114
- key: string;
1115
- /**
1116
- * 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.
1117
- */
1118
- displayName?: string | undefined;
1119
- /**
1120
- * 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.
1121
- */
1122
- description: string;
1123
- /**
1124
- * The id of the user that created the tool
1125
- */
1126
- createdById?: string | undefined;
1127
- /**
1128
- * The id of the user that last updated the tool
1129
- */
1130
- updatedById?: string | undefined;
1131
- projectId: string;
1132
- workspaceId: string;
1133
- created: string;
1134
- updated: string;
1135
- /**
1136
- * 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.
1137
- */
1138
- status: ResponseBodyStatus;
1139
- type: "function";
1140
- function: CreateToolResponseBodyFunction;
1141
- };
1142
-
1143
- /**
1144
- * Successfully created the tool.
1145
- */
1146
- export type CreateToolResponseBody =
1147
- | ResponseBodyFunctionTool
1148
- | ResponseBodyJSONSchemaTool
1149
- | ResponseBodyHTTPTool
1150
- | ResponseBodyMCPTool
1151
- | ResponseBodyCodeExecutionTool;
1152
-
1153
- /** @internal */
1154
- export const CreateToolRequestBodyToolsRequestStatus$outboundSchema:
1155
- z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequestStatus> = z
1156
- .nativeEnum(CreateToolRequestBodyToolsRequestStatus);
1157
-
1158
- /** @internal */
1159
- export const CreateToolRequestBodyToolsRequest5CodeToolType$outboundSchema:
1160
- z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest5CodeToolType> = z
1161
- .nativeEnum(CreateToolRequestBodyToolsRequest5CodeToolType);
1162
-
1163
- /** @internal */
1164
- export type CreateToolRequestBodyParameters$Outbound = {
1165
- type: string;
1166
- properties: { [k: string]: any };
1167
- required: Array<string>;
1168
- [additionalProperties: string]: unknown;
1169
- };
1170
-
1171
- /** @internal */
1172
- export const CreateToolRequestBodyParameters$outboundSchema: z.ZodType<
1173
- CreateToolRequestBodyParameters$Outbound,
1174
- z.ZodTypeDef,
1175
- CreateToolRequestBodyParameters
1176
- > = z.object({
1177
- type: CreateToolRequestBodyToolsRequest5CodeToolType$outboundSchema,
1178
- properties: z.record(z.any()),
1179
- required: z.array(z.string()),
1180
- additionalProperties: z.record(z.any()).optional(),
1181
- }).transform((v) => {
1182
- return {
1183
- ...v.additionalProperties,
1184
- ...remap$(v, {
1185
- additionalProperties: null,
1186
- }),
1187
- };
1188
- });
1189
-
1190
- export function createToolRequestBodyParametersToJSON(
1191
- createToolRequestBodyParameters: CreateToolRequestBodyParameters,
1192
- ): string {
1193
- return JSON.stringify(
1194
- CreateToolRequestBodyParameters$outboundSchema.parse(
1195
- createToolRequestBodyParameters,
1196
- ),
1197
- );
1198
- }
1199
-
1200
- /** @internal */
1201
- export const RequestBodyLanguage$outboundSchema: z.ZodNativeEnum<
1202
- typeof RequestBodyLanguage
1203
- > = z.nativeEnum(RequestBodyLanguage);
1204
-
1205
- /** @internal */
1206
- export type RequestBodyCodeTool$Outbound = {
1207
- parameters?: CreateToolRequestBodyParameters$Outbound | undefined;
1208
- language: string;
1209
- code: string;
1210
- };
1211
-
1212
- /** @internal */
1213
- export const RequestBodyCodeTool$outboundSchema: z.ZodType<
1214
- RequestBodyCodeTool$Outbound,
1215
- z.ZodTypeDef,
1216
- RequestBodyCodeTool
1217
- > = z.object({
1218
- parameters: z.lazy(() => CreateToolRequestBodyParameters$outboundSchema)
1219
- .optional(),
1220
- language: RequestBodyLanguage$outboundSchema,
1221
- code: z.string(),
1222
- });
1223
-
1224
- export function requestBodyCodeToolToJSON(
1225
- requestBodyCodeTool: RequestBodyCodeTool,
1226
- ): string {
1227
- return JSON.stringify(
1228
- RequestBodyCodeTool$outboundSchema.parse(requestBodyCodeTool),
1229
- );
1230
- }
1231
-
1232
- /** @internal */
1233
- export type RequestBodyCodeExecutionTool$Outbound = {
1234
- path: string;
1235
- key: string;
1236
- display_name?: string | undefined;
1237
- description: string;
1238
- status: string;
1239
- type: "code";
1240
- code_tool: RequestBodyCodeTool$Outbound;
1241
- };
1242
-
1243
- /** @internal */
1244
- export const RequestBodyCodeExecutionTool$outboundSchema: z.ZodType<
1245
- RequestBodyCodeExecutionTool$Outbound,
1246
- z.ZodTypeDef,
1247
- RequestBodyCodeExecutionTool
1248
- > = z.object({
1249
- path: z.string(),
1250
- key: z.string(),
1251
- displayName: z.string().optional(),
1252
- description: z.string(),
1253
- status: CreateToolRequestBodyToolsRequestStatus$outboundSchema.default(
1254
- "live",
1255
- ),
1256
- type: z.literal("code"),
1257
- codeTool: z.lazy(() => RequestBodyCodeTool$outboundSchema),
1258
- }).transform((v) => {
1259
- return remap$(v, {
1260
- displayName: "display_name",
1261
- codeTool: "code_tool",
1262
- });
1263
- });
1264
-
1265
- export function requestBodyCodeExecutionToolToJSON(
1266
- requestBodyCodeExecutionTool: RequestBodyCodeExecutionTool,
1267
- ): string {
1268
- return JSON.stringify(
1269
- RequestBodyCodeExecutionTool$outboundSchema.parse(
1270
- requestBodyCodeExecutionTool,
1271
- ),
1272
- );
1273
- }
1274
-
1275
- /** @internal */
1276
- export const CreateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
1277
- typeof CreateToolRequestBodyToolsStatus
1278
- > = z.nativeEnum(CreateToolRequestBodyToolsStatus);
1279
-
1280
- /** @internal */
1281
- export type RequestBodyHeaders$Outbound = {
1282
- value: string;
1283
- encrypted: boolean;
1284
- };
1285
-
1286
- /** @internal */
1287
- export const RequestBodyHeaders$outboundSchema: z.ZodType<
1288
- RequestBodyHeaders$Outbound,
1289
- z.ZodTypeDef,
1290
- RequestBodyHeaders
1291
- > = z.object({
1292
- value: z.string(),
1293
- encrypted: z.boolean().default(false),
1294
- });
1295
-
1296
- export function requestBodyHeadersToJSON(
1297
- requestBodyHeaders: RequestBodyHeaders,
1298
- ): string {
1299
- return JSON.stringify(
1300
- RequestBodyHeaders$outboundSchema.parse(requestBodyHeaders),
1301
- );
1302
- }
1303
-
1304
- /** @internal */
1305
- export const RequestBodyConnectionType$outboundSchema: z.ZodNativeEnum<
1306
- typeof RequestBodyConnectionType
1307
- > = z.nativeEnum(RequestBodyConnectionType);
1308
-
1309
- /** @internal */
1310
- export type RequestBodyMcp$Outbound = {
1311
- server_url: string;
1312
- headers?: { [k: string]: RequestBodyHeaders$Outbound } | undefined;
1313
- connection_type: string;
1314
- };
1315
-
1316
- /** @internal */
1317
- export const RequestBodyMcp$outboundSchema: z.ZodType<
1318
- RequestBodyMcp$Outbound,
1319
- z.ZodTypeDef,
1320
- RequestBodyMcp
1321
- > = z.object({
1322
- serverUrl: z.string(),
1323
- headers: z.record(z.lazy(() => RequestBodyHeaders$outboundSchema)).optional(),
1324
- connectionType: RequestBodyConnectionType$outboundSchema,
1325
- }).transform((v) => {
1326
- return remap$(v, {
1327
- serverUrl: "server_url",
1328
- connectionType: "connection_type",
1329
- });
1330
- });
1331
-
1332
- export function requestBodyMcpToJSON(requestBodyMcp: RequestBodyMcp): string {
1333
- return JSON.stringify(RequestBodyMcp$outboundSchema.parse(requestBodyMcp));
1334
- }
1335
-
1336
- /** @internal */
1337
- export type RequestBodyMCPTool$Outbound = {
1338
- path: string;
1339
- key: string;
1340
- display_name?: string | undefined;
1341
- description: string;
1342
- status: string;
1343
- type: "mcp";
1344
- mcp: RequestBodyMcp$Outbound;
1345
- discovery_variables?: { [k: string]: string } | undefined;
1346
- };
1347
-
1348
- /** @internal */
1349
- export const RequestBodyMCPTool$outboundSchema: z.ZodType<
1350
- RequestBodyMCPTool$Outbound,
1351
- z.ZodTypeDef,
1352
- RequestBodyMCPTool
1353
- > = z.object({
1354
- path: z.string(),
1355
- key: z.string(),
1356
- displayName: z.string().optional(),
1357
- description: z.string(),
1358
- status: CreateToolRequestBodyToolsStatus$outboundSchema.default("live"),
1359
- type: z.literal("mcp"),
1360
- mcp: z.lazy(() => RequestBodyMcp$outboundSchema),
1361
- discoveryVariables: z.record(z.string()).optional(),
1362
- }).transform((v) => {
1363
- return remap$(v, {
1364
- displayName: "display_name",
1365
- discoveryVariables: "discovery_variables",
1366
- });
1367
- });
1368
-
1369
- export function requestBodyMCPToolToJSON(
1370
- requestBodyMCPTool: RequestBodyMCPTool,
1371
- ): string {
1372
- return JSON.stringify(
1373
- RequestBodyMCPTool$outboundSchema.parse(requestBodyMCPTool),
1374
- );
1375
- }
1376
-
1377
- /** @internal */
1378
- export const CreateToolRequestBodyStatus$outboundSchema: z.ZodNativeEnum<
1379
- typeof CreateToolRequestBodyStatus
1380
- > = z.nativeEnum(CreateToolRequestBodyStatus);
1381
-
1382
- /** @internal */
1383
- export const RequestBodyMethod$outboundSchema: z.ZodNativeEnum<
1384
- typeof RequestBodyMethod
1385
- > = z.nativeEnum(RequestBodyMethod);
1386
-
1387
- /** @internal */
1388
- export type CreateToolHeaders2$Outbound = {
1389
- value: string;
1390
- encrypted: boolean;
1391
- };
1392
-
1393
- /** @internal */
1394
- export const CreateToolHeaders2$outboundSchema: z.ZodType<
1395
- CreateToolHeaders2$Outbound,
1396
- z.ZodTypeDef,
1397
- CreateToolHeaders2
1398
- > = z.object({
1399
- value: z.string(),
1400
- encrypted: z.boolean().default(false),
1401
- });
1402
-
1403
- export function createToolHeaders2ToJSON(
1404
- createToolHeaders2: CreateToolHeaders2,
1405
- ): string {
1406
- return JSON.stringify(
1407
- CreateToolHeaders2$outboundSchema.parse(createToolHeaders2),
1408
- );
1409
- }
1410
-
1411
- /** @internal */
1412
- export type CreateToolRequestBodyHeaders$Outbound =
1413
- | CreateToolHeaders2$Outbound
1414
- | string;
1415
-
1416
- /** @internal */
1417
- export const CreateToolRequestBodyHeaders$outboundSchema: z.ZodType<
1418
- CreateToolRequestBodyHeaders$Outbound,
1419
- z.ZodTypeDef,
1420
- CreateToolRequestBodyHeaders
1421
- > = z.union([z.lazy(() => CreateToolHeaders2$outboundSchema), z.string()]);
1422
-
1423
- export function createToolRequestBodyHeadersToJSON(
1424
- createToolRequestBodyHeaders: CreateToolRequestBodyHeaders,
1425
- ): string {
1426
- return JSON.stringify(
1427
- CreateToolRequestBodyHeaders$outboundSchema.parse(
1428
- createToolRequestBodyHeaders,
1429
- ),
1430
- );
1431
- }
1432
-
1433
- /** @internal */
1434
- export type RequestBodyBlueprint$Outbound = {
1435
- url: string;
1436
- method: string;
1437
- headers?: { [k: string]: CreateToolHeaders2$Outbound | string } | undefined;
1438
- body?: { [k: string]: any } | undefined;
1439
- };
1440
-
1441
- /** @internal */
1442
- export const RequestBodyBlueprint$outboundSchema: z.ZodType<
1443
- RequestBodyBlueprint$Outbound,
1444
- z.ZodTypeDef,
1445
- RequestBodyBlueprint
1446
- > = z.object({
1447
- url: z.string(),
1448
- method: RequestBodyMethod$outboundSchema,
1449
- headers: z.record(
1450
- z.union([z.lazy(() => CreateToolHeaders2$outboundSchema), z.string()]),
1451
- ).optional(),
1452
- body: z.record(z.any()).optional(),
1453
- });
1454
-
1455
- export function requestBodyBlueprintToJSON(
1456
- requestBodyBlueprint: RequestBodyBlueprint,
1457
- ): string {
1458
- return JSON.stringify(
1459
- RequestBodyBlueprint$outboundSchema.parse(requestBodyBlueprint),
1460
- );
1461
- }
1462
-
1463
- /** @internal */
1464
- export const CreateToolRequestBodyToolsRequest3Type$outboundSchema:
1465
- z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest3Type> = z.nativeEnum(
1466
- CreateToolRequestBodyToolsRequest3Type,
1467
- );
1468
-
1469
- /** @internal */
1470
- export type RequestBodyDefaultValue$Outbound = string | number | boolean;
1471
-
1472
- /** @internal */
1473
- export const RequestBodyDefaultValue$outboundSchema: z.ZodType<
1474
- RequestBodyDefaultValue$Outbound,
1475
- z.ZodTypeDef,
1476
- RequestBodyDefaultValue
1477
- > = z.union([z.string(), z.number(), z.boolean()]);
1478
-
1479
- export function requestBodyDefaultValueToJSON(
1480
- requestBodyDefaultValue: RequestBodyDefaultValue,
1481
- ): string {
1482
- return JSON.stringify(
1483
- RequestBodyDefaultValue$outboundSchema.parse(requestBodyDefaultValue),
1484
- );
1485
- }
1486
-
1487
- /** @internal */
1488
- export type RequestBodyArguments$Outbound = {
1489
- type: string;
1490
- description: string;
1491
- send_to_model: boolean;
1492
- default_value?: string | number | boolean | undefined;
1493
- };
1494
-
1495
- /** @internal */
1496
- export const RequestBodyArguments$outboundSchema: z.ZodType<
1497
- RequestBodyArguments$Outbound,
1498
- z.ZodTypeDef,
1499
- RequestBodyArguments
1500
- > = z.object({
1501
- type: CreateToolRequestBodyToolsRequest3Type$outboundSchema,
1502
- description: z.string(),
1503
- sendToModel: z.boolean().default(true),
1504
- defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
1505
- }).transform((v) => {
1506
- return remap$(v, {
1507
- sendToModel: "send_to_model",
1508
- defaultValue: "default_value",
1509
- });
1510
- });
1511
-
1512
- export function requestBodyArgumentsToJSON(
1513
- requestBodyArguments: RequestBodyArguments,
1514
- ): string {
1515
- return JSON.stringify(
1516
- RequestBodyArguments$outboundSchema.parse(requestBodyArguments),
1517
- );
1518
- }
1519
-
1520
- /** @internal */
1521
- export type RequestBodyHttp$Outbound = {
1522
- blueprint: RequestBodyBlueprint$Outbound;
1523
- arguments?: { [k: string]: RequestBodyArguments$Outbound } | undefined;
1524
- };
1525
-
1526
- /** @internal */
1527
- export const RequestBodyHttp$outboundSchema: z.ZodType<
1528
- RequestBodyHttp$Outbound,
1529
- z.ZodTypeDef,
1530
- RequestBodyHttp
1531
- > = z.object({
1532
- blueprint: z.lazy(() => RequestBodyBlueprint$outboundSchema),
1533
- arguments: z.record(z.lazy(() => RequestBodyArguments$outboundSchema))
1534
- .optional(),
1535
- });
1536
-
1537
- export function requestBodyHttpToJSON(
1538
- requestBodyHttp: RequestBodyHttp,
1539
- ): string {
1540
- return JSON.stringify(RequestBodyHttp$outboundSchema.parse(requestBodyHttp));
1541
- }
1542
-
1543
- /** @internal */
1544
- export type RequestBodyHTTPTool$Outbound = {
1545
- path: string;
1546
- key: string;
1547
- display_name?: string | undefined;
1548
- description: string;
1549
- status: string;
1550
- type: "http";
1551
- http: RequestBodyHttp$Outbound;
1552
- };
1553
-
1554
- /** @internal */
1555
- export const RequestBodyHTTPTool$outboundSchema: z.ZodType<
1556
- RequestBodyHTTPTool$Outbound,
1557
- z.ZodTypeDef,
1558
- RequestBodyHTTPTool
1559
- > = z.object({
1560
- path: z.string(),
1561
- key: z.string(),
1562
- displayName: z.string().optional(),
1563
- description: z.string(),
1564
- status: CreateToolRequestBodyStatus$outboundSchema.default("live"),
1565
- type: z.literal("http"),
1566
- http: z.lazy(() => RequestBodyHttp$outboundSchema),
1567
- }).transform((v) => {
1568
- return remap$(v, {
1569
- displayName: "display_name",
1570
- });
1571
- });
1572
-
1573
- export function requestBodyHTTPToolToJSON(
1574
- requestBodyHTTPTool: RequestBodyHTTPTool,
1575
- ): string {
1576
- return JSON.stringify(
1577
- RequestBodyHTTPTool$outboundSchema.parse(requestBodyHTTPTool),
1578
- );
1579
- }
1580
-
1581
- /** @internal */
1582
- export const RequestBodyStatus$outboundSchema: z.ZodNativeEnum<
1583
- typeof RequestBodyStatus
1584
- > = z.nativeEnum(RequestBodyStatus);
1585
-
1586
- /** @internal */
1587
- export type RequestBodySchema$Outbound = {
1588
- type: string;
1589
- properties: { [k: string]: any };
1590
- required: Array<string>;
1591
- [additionalProperties: string]: unknown;
1592
- };
1593
-
1594
- /** @internal */
1595
- export const RequestBodySchema$outboundSchema: z.ZodType<
1596
- RequestBodySchema$Outbound,
1597
- z.ZodTypeDef,
1598
- RequestBodySchema
1599
- > = z.object({
1600
- type: z.string(),
1601
- properties: z.record(z.any()),
1602
- required: z.array(z.string()),
1603
- additionalProperties: z.record(z.any()).optional(),
1604
- }).transform((v) => {
1605
- return {
1606
- ...v.additionalProperties,
1607
- ...remap$(v, {
1608
- additionalProperties: null,
1609
- }),
1610
- };
1611
- });
1612
-
1613
- export function requestBodySchemaToJSON(
1614
- requestBodySchema: RequestBodySchema,
1615
- ): string {
1616
- return JSON.stringify(
1617
- RequestBodySchema$outboundSchema.parse(requestBodySchema),
1618
- );
1619
- }
1620
-
1621
- /** @internal */
1622
- export type RequestBodyJsonSchema$Outbound = {
1623
- name: string;
1624
- description: string;
1625
- schema: RequestBodySchema$Outbound;
1626
- strict?: boolean | undefined;
1627
- };
1628
-
1629
- /** @internal */
1630
- export const RequestBodyJsonSchema$outboundSchema: z.ZodType<
1631
- RequestBodyJsonSchema$Outbound,
1632
- z.ZodTypeDef,
1633
- RequestBodyJsonSchema
1634
- > = z.object({
1635
- name: z.string(),
1636
- description: z.string(),
1637
- schema: z.lazy(() => RequestBodySchema$outboundSchema),
1638
- strict: z.boolean().optional(),
1639
- });
1640
-
1641
- export function requestBodyJsonSchemaToJSON(
1642
- requestBodyJsonSchema: RequestBodyJsonSchema,
1643
- ): string {
1644
- return JSON.stringify(
1645
- RequestBodyJsonSchema$outboundSchema.parse(requestBodyJsonSchema),
1646
- );
1647
- }
1648
-
1649
- /** @internal */
1650
- export type RequestBodyJSONSchemaTool$Outbound = {
1651
- path: string;
1652
- key: string;
1653
- display_name?: string | undefined;
1654
- description: string;
1655
- status: string;
1656
- type: "json_schema";
1657
- json_schema: RequestBodyJsonSchema$Outbound;
1658
- };
1659
-
1660
- /** @internal */
1661
- export const RequestBodyJSONSchemaTool$outboundSchema: z.ZodType<
1662
- RequestBodyJSONSchemaTool$Outbound,
1663
- z.ZodTypeDef,
1664
- RequestBodyJSONSchemaTool
1665
- > = z.object({
1666
- path: z.string(),
1667
- key: z.string(),
1668
- displayName: z.string().optional(),
1669
- description: z.string(),
1670
- status: RequestBodyStatus$outboundSchema.default("live"),
1671
- type: z.literal("json_schema"),
1672
- jsonSchema: z.lazy(() => RequestBodyJsonSchema$outboundSchema),
1673
- }).transform((v) => {
1674
- return remap$(v, {
1675
- displayName: "display_name",
1676
- jsonSchema: "json_schema",
1677
- });
1678
- });
1679
-
1680
- export function requestBodyJSONSchemaToolToJSON(
1681
- requestBodyJSONSchemaTool: RequestBodyJSONSchemaTool,
1682
- ): string {
1683
- return JSON.stringify(
1684
- RequestBodyJSONSchemaTool$outboundSchema.parse(requestBodyJSONSchemaTool),
1685
- );
1686
- }
1687
-
1688
- /** @internal */
1689
- export const CreateToolRequestBodyToolsRequest1Status$outboundSchema:
1690
- z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest1Status> = z
1691
- .nativeEnum(CreateToolRequestBodyToolsRequest1Status);
1692
-
1693
- /** @internal */
1694
- export const CreateToolRequestBodyToolsRequest1Type$outboundSchema:
1695
- z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest1Type> = z.nativeEnum(
1696
- CreateToolRequestBodyToolsRequest1Type,
1697
- );
1698
-
1699
- /** @internal */
1700
- export type RequestBodyParameters$Outbound = {
1701
- type: string;
1702
- properties: { [k: string]: any };
1703
- required: Array<string>;
1704
- [additionalProperties: string]: unknown;
1705
- };
1706
-
1707
- /** @internal */
1708
- export const RequestBodyParameters$outboundSchema: z.ZodType<
1709
- RequestBodyParameters$Outbound,
1710
- z.ZodTypeDef,
1711
- RequestBodyParameters
1712
- > = z.object({
1713
- type: CreateToolRequestBodyToolsRequest1Type$outboundSchema,
1714
- properties: z.record(z.any()),
1715
- required: z.array(z.string()),
1716
- additionalProperties: z.record(z.any()).optional(),
1717
- }).transform((v) => {
1718
- return {
1719
- ...v.additionalProperties,
1720
- ...remap$(v, {
1721
- additionalProperties: null,
1722
- }),
1723
- };
1724
- });
1725
-
1726
- export function requestBodyParametersToJSON(
1727
- requestBodyParameters: RequestBodyParameters,
1728
- ): string {
1729
- return JSON.stringify(
1730
- RequestBodyParameters$outboundSchema.parse(requestBodyParameters),
1731
- );
1732
- }
1733
-
1734
- /** @internal */
1735
- export type RequestBodyFunction$Outbound = {
1736
- name: string;
1737
- description?: string | undefined;
1738
- strict?: boolean | undefined;
1739
- parameters?: RequestBodyParameters$Outbound | undefined;
1740
- };
1741
-
1742
- /** @internal */
1743
- export const RequestBodyFunction$outboundSchema: z.ZodType<
1744
- RequestBodyFunction$Outbound,
1745
- z.ZodTypeDef,
1746
- RequestBodyFunction
1747
- > = z.object({
1748
- name: z.string(),
1749
- description: z.string().optional(),
1750
- strict: z.boolean().optional(),
1751
- parameters: z.lazy(() => RequestBodyParameters$outboundSchema).optional(),
1752
- });
1753
-
1754
- export function requestBodyFunctionToJSON(
1755
- requestBodyFunction: RequestBodyFunction,
1756
- ): string {
1757
- return JSON.stringify(
1758
- RequestBodyFunction$outboundSchema.parse(requestBodyFunction),
1759
- );
1760
- }
1761
-
1762
- /** @internal */
1763
- export type RequestBodyFunctionTool$Outbound = {
1764
- path: string;
1765
- key: string;
1766
- display_name?: string | undefined;
1767
- description: string;
1768
- status: string;
1769
- type: "function";
1770
- function: RequestBodyFunction$Outbound;
1771
- };
1772
-
1773
- /** @internal */
1774
- export const RequestBodyFunctionTool$outboundSchema: z.ZodType<
1775
- RequestBodyFunctionTool$Outbound,
1776
- z.ZodTypeDef,
1777
- RequestBodyFunctionTool
1778
- > = z.object({
1779
- path: z.string(),
1780
- key: z.string(),
1781
- displayName: z.string().optional(),
1782
- description: z.string(),
1783
- status: CreateToolRequestBodyToolsRequest1Status$outboundSchema.default(
1784
- "live",
1785
- ),
1786
- type: z.literal("function"),
1787
- function: z.lazy(() => RequestBodyFunction$outboundSchema),
1788
- }).transform((v) => {
1789
- return remap$(v, {
1790
- displayName: "display_name",
1791
- });
1792
- });
1793
-
1794
- export function requestBodyFunctionToolToJSON(
1795
- requestBodyFunctionTool: RequestBodyFunctionTool,
1796
- ): string {
1797
- return JSON.stringify(
1798
- RequestBodyFunctionTool$outboundSchema.parse(requestBodyFunctionTool),
1799
- );
1800
- }
1801
-
1802
- /** @internal */
1803
- export type CreateToolRequestBody$Outbound =
1804
- | RequestBodyFunctionTool$Outbound
1805
- | RequestBodyJSONSchemaTool$Outbound
1806
- | RequestBodyHTTPTool$Outbound
1807
- | RequestBodyMCPTool$Outbound
1808
- | RequestBodyCodeExecutionTool$Outbound;
1809
-
1810
- /** @internal */
1811
- export const CreateToolRequestBody$outboundSchema: z.ZodType<
1812
- CreateToolRequestBody$Outbound,
1813
- z.ZodTypeDef,
1814
- CreateToolRequestBody
1815
- > = z.union([
1816
- z.lazy(() => RequestBodyFunctionTool$outboundSchema),
1817
- z.lazy(() => RequestBodyJSONSchemaTool$outboundSchema),
1818
- z.lazy(() => RequestBodyHTTPTool$outboundSchema),
1819
- z.lazy(() => RequestBodyMCPTool$outboundSchema),
1820
- z.lazy(() => RequestBodyCodeExecutionTool$outboundSchema),
1821
- ]);
1822
-
1823
- export function createToolRequestBodyToJSON(
1824
- createToolRequestBody: CreateToolRequestBody,
1825
- ): string {
1826
- return JSON.stringify(
1827
- CreateToolRequestBody$outboundSchema.parse(createToolRequestBody),
1828
- );
1829
- }
1830
-
1831
- /** @internal */
1832
- export const CreateToolResponseBodyToolsResponse200Status$inboundSchema:
1833
- z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200Status> = z
1834
- .nativeEnum(CreateToolResponseBodyToolsResponse200Status);
1835
-
1836
- /** @internal */
1837
- export const CreateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema:
1838
- z.ZodNativeEnum<
1839
- typeof CreateToolResponseBodyToolsResponse200ApplicationJson5Type
1840
- > = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson5Type);
1841
-
1842
- /** @internal */
1843
- export const CreateToolResponseBodyParameters$inboundSchema: z.ZodType<
1844
- CreateToolResponseBodyParameters,
1845
- z.ZodTypeDef,
1846
- unknown
1847
- > = collectExtraKeys$(
1848
- z.object({
1849
- type:
1850
- CreateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema,
1851
- properties: z.record(z.any()),
1852
- required: z.array(z.string()),
1853
- }).catchall(z.any()),
1854
- "additionalProperties",
1855
- true,
1856
- );
1857
-
1858
- export function createToolResponseBodyParametersFromJSON(
1859
- jsonString: string,
1860
- ): SafeParseResult<CreateToolResponseBodyParameters, SDKValidationError> {
1861
- return safeParse(
1862
- jsonString,
1863
- (x) => CreateToolResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
1864
- `Failed to parse 'CreateToolResponseBodyParameters' from JSON`,
1865
- );
1866
- }
1867
-
1868
- /** @internal */
1869
- export const ResponseBodyLanguage$inboundSchema: z.ZodNativeEnum<
1870
- typeof ResponseBodyLanguage
1871
- > = z.nativeEnum(ResponseBodyLanguage);
1872
-
1873
- /** @internal */
1874
- export const ResponseBodyCodeTool$inboundSchema: z.ZodType<
1875
- ResponseBodyCodeTool,
1876
- z.ZodTypeDef,
1877
- unknown
1878
- > = z.object({
1879
- parameters: z.lazy(() => CreateToolResponseBodyParameters$inboundSchema)
1880
- .optional(),
1881
- language: ResponseBodyLanguage$inboundSchema,
1882
- code: z.string(),
1883
- });
1884
-
1885
- export function responseBodyCodeToolFromJSON(
1886
- jsonString: string,
1887
- ): SafeParseResult<ResponseBodyCodeTool, SDKValidationError> {
1888
- return safeParse(
1889
- jsonString,
1890
- (x) => ResponseBodyCodeTool$inboundSchema.parse(JSON.parse(x)),
1891
- `Failed to parse 'ResponseBodyCodeTool' from JSON`,
1892
- );
1893
- }
1894
-
1895
- /** @internal */
1896
- export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1897
- ResponseBodyCodeExecutionTool,
1898
- z.ZodTypeDef,
1899
- unknown
1900
- > = z.object({
1901
- _id: z.string().default("tool_01KT9EQS9GA9XJZGD5HKVZW8KS"),
1902
- path: z.string(),
1903
- key: z.string(),
1904
- display_name: z.string().optional(),
1905
- description: z.string(),
1906
- created_by_id: z.string().optional(),
1907
- updated_by_id: z.string().optional(),
1908
- project_id: z.string(),
1909
- workspace_id: z.string(),
1910
- created: z.string(),
1911
- updated: z.string(),
1912
- status: CreateToolResponseBodyToolsResponse200Status$inboundSchema.default(
1913
- "live",
1914
- ),
1915
- type: z.literal("code"),
1916
- code_tool: z.lazy(() => ResponseBodyCodeTool$inboundSchema),
1917
- }).transform((v) => {
1918
- return remap$(v, {
1919
- "_id": "id",
1920
- "display_name": "displayName",
1921
- "created_by_id": "createdById",
1922
- "updated_by_id": "updatedById",
1923
- "project_id": "projectId",
1924
- "workspace_id": "workspaceId",
1925
- "code_tool": "codeTool",
1926
- });
1927
- });
1928
-
1929
- export function responseBodyCodeExecutionToolFromJSON(
1930
- jsonString: string,
1931
- ): SafeParseResult<ResponseBodyCodeExecutionTool, SDKValidationError> {
1932
- return safeParse(
1933
- jsonString,
1934
- (x) => ResponseBodyCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
1935
- `Failed to parse 'ResponseBodyCodeExecutionTool' from JSON`,
1936
- );
1937
- }
1938
-
1939
- /** @internal */
1940
- export const CreateToolResponseBodyToolsResponseStatus$inboundSchema:
1941
- z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponseStatus> = z
1942
- .nativeEnum(CreateToolResponseBodyToolsResponseStatus);
1943
-
1944
- /** @internal */
1945
- export const ResponseBodyHeaders$inboundSchema: z.ZodType<
1946
- ResponseBodyHeaders,
1947
- z.ZodTypeDef,
1948
- unknown
1949
- > = z.object({
1950
- value: z.string(),
1951
- encrypted: z.boolean().default(false),
1952
- });
1953
-
1954
- export function responseBodyHeadersFromJSON(
1955
- jsonString: string,
1956
- ): SafeParseResult<ResponseBodyHeaders, SDKValidationError> {
1957
- return safeParse(
1958
- jsonString,
1959
- (x) => ResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
1960
- `Failed to parse 'ResponseBodyHeaders' from JSON`,
1961
- );
1962
- }
1963
-
1964
- /** @internal */
1965
- export const CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema:
1966
- z.ZodNativeEnum<
1967
- typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type
1968
- > = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson4Type);
1969
-
1970
- /** @internal */
1971
- export const CreateToolResponseBodySchema$inboundSchema: z.ZodType<
1972
- CreateToolResponseBodySchema,
1973
- z.ZodTypeDef,
1974
- unknown
1975
- > = z.object({
1976
- type:
1977
- CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema,
1978
- properties: z.record(z.any()).optional(),
1979
- required: z.array(z.string()).optional(),
1980
- });
1981
-
1982
- export function createToolResponseBodySchemaFromJSON(
1983
- jsonString: string,
1984
- ): SafeParseResult<CreateToolResponseBodySchema, SDKValidationError> {
1985
- return safeParse(
1986
- jsonString,
1987
- (x) => CreateToolResponseBodySchema$inboundSchema.parse(JSON.parse(x)),
1988
- `Failed to parse 'CreateToolResponseBodySchema' from JSON`,
1989
- );
1990
- }
1991
-
1992
- /** @internal */
1993
- export const ResponseBodyTools$inboundSchema: z.ZodType<
1994
- ResponseBodyTools,
1995
- z.ZodTypeDef,
1996
- unknown
1997
- > = z.object({
1998
- id: z.string().default("01KT9EQS9E3GNAJEDGMZHH5DDG"),
1999
- name: z.string(),
2000
- description: z.string().optional(),
2001
- schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
2002
- });
2003
-
2004
- export function responseBodyToolsFromJSON(
2005
- jsonString: string,
2006
- ): SafeParseResult<ResponseBodyTools, SDKValidationError> {
2007
- return safeParse(
2008
- jsonString,
2009
- (x) => ResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
2010
- `Failed to parse 'ResponseBodyTools' from JSON`,
2011
- );
2012
- }
2013
-
2014
- /** @internal */
2015
- export const ResponseBodyConnectionType$inboundSchema: z.ZodNativeEnum<
2016
- typeof ResponseBodyConnectionType
2017
- > = z.nativeEnum(ResponseBodyConnectionType);
2018
-
2019
- /** @internal */
2020
- export const ResponseBodyMcp$inboundSchema: z.ZodType<
2021
- ResponseBodyMcp,
2022
- z.ZodTypeDef,
2023
- unknown
2024
- > = z.object({
2025
- server_url: z.string(),
2026
- headers: z.record(z.lazy(() => ResponseBodyHeaders$inboundSchema)).optional(),
2027
- tools: z.array(z.lazy(() => ResponseBodyTools$inboundSchema)),
2028
- connection_type: ResponseBodyConnectionType$inboundSchema,
2029
- template_variables: z.nullable(z.array(z.string())).optional(),
2030
- }).transform((v) => {
2031
- return remap$(v, {
2032
- "server_url": "serverUrl",
2033
- "connection_type": "connectionType",
2034
- "template_variables": "templateVariables",
2035
- });
2036
- });
2037
-
2038
- export function responseBodyMcpFromJSON(
2039
- jsonString: string,
2040
- ): SafeParseResult<ResponseBodyMcp, SDKValidationError> {
2041
- return safeParse(
2042
- jsonString,
2043
- (x) => ResponseBodyMcp$inboundSchema.parse(JSON.parse(x)),
2044
- `Failed to parse 'ResponseBodyMcp' from JSON`,
2045
- );
2046
- }
2047
-
2048
- /** @internal */
2049
- export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
2050
- ResponseBodyMCPTool,
2051
- z.ZodTypeDef,
2052
- unknown
2053
- > = z.object({
2054
- _id: z.string().default("tool_01KT9EQS9C7PJ7TN14Z1PXABHN"),
2055
- path: z.string(),
2056
- key: z.string(),
2057
- display_name: z.string().optional(),
2058
- description: z.string(),
2059
- created_by_id: z.string().optional(),
2060
- updated_by_id: z.string().optional(),
2061
- project_id: z.string(),
2062
- workspace_id: z.string(),
2063
- created: z.string(),
2064
- updated: z.string(),
2065
- status: CreateToolResponseBodyToolsResponseStatus$inboundSchema.default(
2066
- "live",
2067
- ),
2068
- type: z.literal("mcp"),
2069
- mcp: z.lazy(() => ResponseBodyMcp$inboundSchema),
2070
- }).transform((v) => {
2071
- return remap$(v, {
2072
- "_id": "id",
2073
- "display_name": "displayName",
2074
- "created_by_id": "createdById",
2075
- "updated_by_id": "updatedById",
2076
- "project_id": "projectId",
2077
- "workspace_id": "workspaceId",
2078
- });
2079
- });
2080
-
2081
- export function responseBodyMCPToolFromJSON(
2082
- jsonString: string,
2083
- ): SafeParseResult<ResponseBodyMCPTool, SDKValidationError> {
2084
- return safeParse(
2085
- jsonString,
2086
- (x) => ResponseBodyMCPTool$inboundSchema.parse(JSON.parse(x)),
2087
- `Failed to parse 'ResponseBodyMCPTool' from JSON`,
2088
- );
2089
- }
2090
-
2091
- /** @internal */
2092
- export const CreateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
2093
- typeof CreateToolResponseBodyToolsStatus
2094
- > = z.nativeEnum(CreateToolResponseBodyToolsStatus);
2095
-
2096
- /** @internal */
2097
- export const CreateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
2098
- typeof CreateToolResponseBodyMethod
2099
- > = z.nativeEnum(CreateToolResponseBodyMethod);
2100
-
2101
- /** @internal */
2102
- export const CreateToolHeadersTools2$inboundSchema: z.ZodType<
2103
- CreateToolHeadersTools2,
2104
- z.ZodTypeDef,
2105
- unknown
2106
- > = z.object({
2107
- value: z.string(),
2108
- encrypted: z.boolean().default(false),
2109
- });
2110
-
2111
- export function createToolHeadersTools2FromJSON(
2112
- jsonString: string,
2113
- ): SafeParseResult<CreateToolHeadersTools2, SDKValidationError> {
2114
- return safeParse(
2115
- jsonString,
2116
- (x) => CreateToolHeadersTools2$inboundSchema.parse(JSON.parse(x)),
2117
- `Failed to parse 'CreateToolHeadersTools2' from JSON`,
2118
- );
2119
- }
2120
-
2121
- /** @internal */
2122
- export const CreateToolResponseBodyHeaders$inboundSchema: z.ZodType<
2123
- CreateToolResponseBodyHeaders,
2124
- z.ZodTypeDef,
2125
- unknown
2126
- > = z.union([z.lazy(() => CreateToolHeadersTools2$inboundSchema), z.string()]);
2127
-
2128
- export function createToolResponseBodyHeadersFromJSON(
2129
- jsonString: string,
2130
- ): SafeParseResult<CreateToolResponseBodyHeaders, SDKValidationError> {
2131
- return safeParse(
2132
- jsonString,
2133
- (x) => CreateToolResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
2134
- `Failed to parse 'CreateToolResponseBodyHeaders' from JSON`,
2135
- );
2136
- }
2137
-
2138
- /** @internal */
2139
- export const ResponseBodyBlueprint$inboundSchema: z.ZodType<
2140
- ResponseBodyBlueprint,
2141
- z.ZodTypeDef,
2142
- unknown
2143
- > = z.object({
2144
- url: z.string(),
2145
- method: CreateToolResponseBodyMethod$inboundSchema,
2146
- headers: z.record(
2147
- z.union([z.lazy(() => CreateToolHeadersTools2$inboundSchema), z.string()]),
2148
- ).optional(),
2149
- body: z.record(z.any()).optional(),
2150
- });
2151
-
2152
- export function responseBodyBlueprintFromJSON(
2153
- jsonString: string,
2154
- ): SafeParseResult<ResponseBodyBlueprint, SDKValidationError> {
2155
- return safeParse(
2156
- jsonString,
2157
- (x) => ResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
2158
- `Failed to parse 'ResponseBodyBlueprint' from JSON`,
2159
- );
2160
- }
2161
-
2162
- /** @internal */
2163
- export const CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema:
2164
- z.ZodNativeEnum<
2165
- typeof CreateToolResponseBodyToolsResponse200ApplicationJson3Type
2166
- > = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson3Type);
2167
-
2168
- /** @internal */
2169
- export const ResponseBodyDefaultValue$inboundSchema: z.ZodType<
2170
- ResponseBodyDefaultValue,
2171
- z.ZodTypeDef,
2172
- unknown
2173
- > = z.union([z.string(), z.number(), z.boolean()]);
2174
-
2175
- export function responseBodyDefaultValueFromJSON(
2176
- jsonString: string,
2177
- ): SafeParseResult<ResponseBodyDefaultValue, SDKValidationError> {
2178
- return safeParse(
2179
- jsonString,
2180
- (x) => ResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
2181
- `Failed to parse 'ResponseBodyDefaultValue' from JSON`,
2182
- );
2183
- }
2184
-
2185
- /** @internal */
2186
- export const ResponseBodyArguments$inboundSchema: z.ZodType<
2187
- ResponseBodyArguments,
2188
- z.ZodTypeDef,
2189
- unknown
2190
- > = z.object({
2191
- type:
2192
- CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema,
2193
- description: z.string(),
2194
- send_to_model: z.boolean().default(true),
2195
- default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
2196
- }).transform((v) => {
2197
- return remap$(v, {
2198
- "send_to_model": "sendToModel",
2199
- "default_value": "defaultValue",
2200
- });
2201
- });
2202
-
2203
- export function responseBodyArgumentsFromJSON(
2204
- jsonString: string,
2205
- ): SafeParseResult<ResponseBodyArguments, SDKValidationError> {
2206
- return safeParse(
2207
- jsonString,
2208
- (x) => ResponseBodyArguments$inboundSchema.parse(JSON.parse(x)),
2209
- `Failed to parse 'ResponseBodyArguments' from JSON`,
2210
- );
2211
- }
2212
-
2213
- /** @internal */
2214
- export const CreateToolResponseBodyHttp$inboundSchema: z.ZodType<
2215
- CreateToolResponseBodyHttp,
2216
- z.ZodTypeDef,
2217
- unknown
2218
- > = z.object({
2219
- blueprint: z.lazy(() => ResponseBodyBlueprint$inboundSchema),
2220
- arguments: z.record(z.lazy(() => ResponseBodyArguments$inboundSchema))
2221
- .optional(),
2222
- });
2223
-
2224
- export function createToolResponseBodyHttpFromJSON(
2225
- jsonString: string,
2226
- ): SafeParseResult<CreateToolResponseBodyHttp, SDKValidationError> {
2227
- return safeParse(
2228
- jsonString,
2229
- (x) => CreateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)),
2230
- `Failed to parse 'CreateToolResponseBodyHttp' from JSON`,
2231
- );
2232
- }
2233
-
2234
- /** @internal */
2235
- export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
2236
- ResponseBodyHTTPTool,
2237
- z.ZodTypeDef,
2238
- unknown
2239
- > = z.object({
2240
- _id: z.string().default("tool_01KT9EQS97MVSW9685Z5EDBP8G"),
2241
- path: z.string(),
2242
- key: z.string(),
2243
- display_name: z.string().optional(),
2244
- description: z.string(),
2245
- created_by_id: z.string().optional(),
2246
- updated_by_id: z.string().optional(),
2247
- project_id: z.string(),
2248
- workspace_id: z.string(),
2249
- created: z.string(),
2250
- updated: z.string(),
2251
- status: CreateToolResponseBodyToolsStatus$inboundSchema.default("live"),
2252
- type: z.literal("http"),
2253
- http: z.lazy(() => CreateToolResponseBodyHttp$inboundSchema),
2254
- }).transform((v) => {
2255
- return remap$(v, {
2256
- "_id": "id",
2257
- "display_name": "displayName",
2258
- "created_by_id": "createdById",
2259
- "updated_by_id": "updatedById",
2260
- "project_id": "projectId",
2261
- "workspace_id": "workspaceId",
2262
- });
2263
- });
2264
-
2265
- export function responseBodyHTTPToolFromJSON(
2266
- jsonString: string,
2267
- ): SafeParseResult<ResponseBodyHTTPTool, SDKValidationError> {
2268
- return safeParse(
2269
- jsonString,
2270
- (x) => ResponseBodyHTTPTool$inboundSchema.parse(JSON.parse(x)),
2271
- `Failed to parse 'ResponseBodyHTTPTool' from JSON`,
2272
- );
2273
- }
2274
-
2275
- /** @internal */
2276
- export const CreateToolResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
2277
- typeof CreateToolResponseBodyStatus
2278
- > = z.nativeEnum(CreateToolResponseBodyStatus);
2279
-
2280
- /** @internal */
2281
- export const ResponseBodySchema$inboundSchema: z.ZodType<
2282
- ResponseBodySchema,
2283
- z.ZodTypeDef,
2284
- unknown
2285
- > = collectExtraKeys$(
2286
- z.object({
2287
- type: z.string(),
2288
- properties: z.record(z.any()),
2289
- required: z.array(z.string()),
2290
- }).catchall(z.any()),
2291
- "additionalProperties",
2292
- true,
2293
- );
2294
-
2295
- export function responseBodySchemaFromJSON(
2296
- jsonString: string,
2297
- ): SafeParseResult<ResponseBodySchema, SDKValidationError> {
2298
- return safeParse(
2299
- jsonString,
2300
- (x) => ResponseBodySchema$inboundSchema.parse(JSON.parse(x)),
2301
- `Failed to parse 'ResponseBodySchema' from JSON`,
2302
- );
2303
- }
2304
-
2305
- /** @internal */
2306
- export const ResponseBodyJsonSchema$inboundSchema: z.ZodType<
2307
- ResponseBodyJsonSchema,
2308
- z.ZodTypeDef,
2309
- unknown
2310
- > = z.object({
2311
- name: z.string(),
2312
- description: z.string(),
2313
- schema: z.lazy(() => ResponseBodySchema$inboundSchema),
2314
- strict: z.boolean().optional(),
2315
- });
2316
-
2317
- export function responseBodyJsonSchemaFromJSON(
2318
- jsonString: string,
2319
- ): SafeParseResult<ResponseBodyJsonSchema, SDKValidationError> {
2320
- return safeParse(
2321
- jsonString,
2322
- (x) => ResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
2323
- `Failed to parse 'ResponseBodyJsonSchema' from JSON`,
2324
- );
2325
- }
2326
-
2327
- /** @internal */
2328
- export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2329
- ResponseBodyJSONSchemaTool,
2330
- z.ZodTypeDef,
2331
- unknown
2332
- > = z.object({
2333
- _id: z.string().default("tool_01KT9EQS949CJMW02FV8GB5RWQ"),
2334
- path: z.string(),
2335
- key: z.string(),
2336
- display_name: z.string().optional(),
2337
- description: z.string(),
2338
- created_by_id: z.string().optional(),
2339
- updated_by_id: z.string().optional(),
2340
- project_id: z.string(),
2341
- workspace_id: z.string(),
2342
- created: z.string(),
2343
- updated: z.string(),
2344
- status: CreateToolResponseBodyStatus$inboundSchema.default("live"),
2345
- type: z.literal("json_schema"),
2346
- json_schema: z.lazy(() => ResponseBodyJsonSchema$inboundSchema),
2347
- }).transform((v) => {
2348
- return remap$(v, {
2349
- "_id": "id",
2350
- "display_name": "displayName",
2351
- "created_by_id": "createdById",
2352
- "updated_by_id": "updatedById",
2353
- "project_id": "projectId",
2354
- "workspace_id": "workspaceId",
2355
- "json_schema": "jsonSchema",
2356
- });
2357
- });
2358
-
2359
- export function responseBodyJSONSchemaToolFromJSON(
2360
- jsonString: string,
2361
- ): SafeParseResult<ResponseBodyJSONSchemaTool, SDKValidationError> {
2362
- return safeParse(
2363
- jsonString,
2364
- (x) => ResponseBodyJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
2365
- `Failed to parse 'ResponseBodyJSONSchemaTool' from JSON`,
2366
- );
2367
- }
2368
-
2369
- /** @internal */
2370
- export const ResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
2371
- typeof ResponseBodyStatus
2372
- > = z.nativeEnum(ResponseBodyStatus);
2373
-
2374
- /** @internal */
2375
- export const CreateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema:
2376
- z.ZodNativeEnum<
2377
- typeof CreateToolResponseBodyToolsResponse200ApplicationJson1Type
2378
- > = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson1Type);
2379
-
2380
- /** @internal */
2381
- export const ResponseBodyParameters$inboundSchema: z.ZodType<
2382
- ResponseBodyParameters,
2383
- z.ZodTypeDef,
2384
- unknown
2385
- > = collectExtraKeys$(
2386
- z.object({
2387
- type:
2388
- CreateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema,
2389
- properties: z.record(z.any()),
2390
- required: z.array(z.string()),
2391
- }).catchall(z.any()),
2392
- "additionalProperties",
2393
- true,
2394
- );
2395
-
2396
- export function responseBodyParametersFromJSON(
2397
- jsonString: string,
2398
- ): SafeParseResult<ResponseBodyParameters, SDKValidationError> {
2399
- return safeParse(
2400
- jsonString,
2401
- (x) => ResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
2402
- `Failed to parse 'ResponseBodyParameters' from JSON`,
2403
- );
2404
- }
2405
-
2406
- /** @internal */
2407
- export const CreateToolResponseBodyFunction$inboundSchema: z.ZodType<
2408
- CreateToolResponseBodyFunction,
2409
- z.ZodTypeDef,
2410
- unknown
2411
- > = z.object({
2412
- name: z.string(),
2413
- description: z.string().optional(),
2414
- strict: z.boolean().optional(),
2415
- parameters: z.lazy(() => ResponseBodyParameters$inboundSchema).optional(),
2416
- });
2417
-
2418
- export function createToolResponseBodyFunctionFromJSON(
2419
- jsonString: string,
2420
- ): SafeParseResult<CreateToolResponseBodyFunction, SDKValidationError> {
2421
- return safeParse(
2422
- jsonString,
2423
- (x) => CreateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
2424
- `Failed to parse 'CreateToolResponseBodyFunction' from JSON`,
2425
- );
2426
- }
2427
-
2428
- /** @internal */
2429
- export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
2430
- ResponseBodyFunctionTool,
2431
- z.ZodTypeDef,
2432
- unknown
2433
- > = z.object({
2434
- _id: z.string().default("tool_01KT9EQS9157PXKZ352BNEKF0G"),
2435
- path: z.string(),
2436
- key: z.string(),
2437
- display_name: z.string().optional(),
2438
- description: z.string(),
2439
- created_by_id: z.string().optional(),
2440
- updated_by_id: z.string().optional(),
2441
- project_id: z.string(),
2442
- workspace_id: z.string(),
2443
- created: z.string(),
2444
- updated: z.string(),
2445
- status: ResponseBodyStatus$inboundSchema.default("live"),
2446
- type: z.literal("function"),
2447
- function: z.lazy(() => CreateToolResponseBodyFunction$inboundSchema),
2448
- }).transform((v) => {
2449
- return remap$(v, {
2450
- "_id": "id",
2451
- "display_name": "displayName",
2452
- "created_by_id": "createdById",
2453
- "updated_by_id": "updatedById",
2454
- "project_id": "projectId",
2455
- "workspace_id": "workspaceId",
2456
- });
2457
- });
2458
-
2459
- export function responseBodyFunctionToolFromJSON(
2460
- jsonString: string,
2461
- ): SafeParseResult<ResponseBodyFunctionTool, SDKValidationError> {
2462
- return safeParse(
2463
- jsonString,
2464
- (x) => ResponseBodyFunctionTool$inboundSchema.parse(JSON.parse(x)),
2465
- `Failed to parse 'ResponseBodyFunctionTool' from JSON`,
2466
- );
2467
- }
2468
-
2469
- /** @internal */
2470
- export const CreateToolResponseBody$inboundSchema: z.ZodType<
2471
- CreateToolResponseBody,
2472
- z.ZodTypeDef,
2473
- unknown
2474
- > = z.union([
2475
- z.lazy(() => ResponseBodyFunctionTool$inboundSchema),
2476
- z.lazy(() => ResponseBodyJSONSchemaTool$inboundSchema),
2477
- z.lazy(() => ResponseBodyHTTPTool$inboundSchema),
2478
- z.lazy(() => ResponseBodyMCPTool$inboundSchema),
2479
- z.lazy(() => ResponseBodyCodeExecutionTool$inboundSchema),
2480
- ]);
2481
-
2482
- export function createToolResponseBodyFromJSON(
2483
- jsonString: string,
2484
- ): SafeParseResult<CreateToolResponseBody, SDKValidationError> {
2485
- return safeParse(
2486
- jsonString,
2487
- (x) => CreateToolResponseBody$inboundSchema.parse(JSON.parse(x)),
2488
- `Failed to parse 'CreateToolResponseBody' from JSON`,
2489
- );
2490
- }