@inkeep/agents-manage-mcp 0.39.4 → 0.40.0

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 (530) hide show
  1. package/.vscode/settings.json +5 -0
  2. package/README.md +38 -139
  3. package/dist/index.d.cts.map +1 -1
  4. package/dist/index.d.ts +27 -16
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +7775 -6996
  7. package/dist/index.js.map +1 -1
  8. package/manifest.json +61 -6
  9. package/package.json +12 -12
  10. package/scripts/fetch-openapi.mjs +22 -40
  11. package/scripts/generate.mjs +33 -66
  12. package/src/core.ts +3 -1
  13. package/src/funcs/agentArtifactComponentRelationsAssociateArtifactComponentWithAgent.ts +94 -78
  14. package/src/funcs/agentArtifactComponentRelationsCheckArtifactComponentAgentAssociation.ts +98 -81
  15. package/src/funcs/agentArtifactComponentRelationsGetAgentsUsingArtifactComponent.ts +94 -78
  16. package/src/funcs/agentArtifactComponentRelationsGetArtifactComponentsForAgent.ts +91 -76
  17. package/src/funcs/agentArtifactComponentRelationsRemoveArtifactComponentFromAgent.ts +96 -80
  18. package/src/funcs/agentDataComponentRelationsAssociateDataComponentWithAgent.ts +92 -77
  19. package/src/funcs/agentDataComponentRelationsCheckDataComponentAgentAssociation.ts +95 -79
  20. package/src/funcs/agentDataComponentRelationsGetAgentsUsingDataComponent.ts +91 -76
  21. package/src/funcs/agentDataComponentRelationsGetDataComponentsForAgent.ts +91 -76
  22. package/src/funcs/agentDataComponentRelationsRemoveDataComponentFromAgent.ts +93 -78
  23. package/src/funcs/agentGetFullAgentDefinition.ts +89 -74
  24. package/src/funcs/agentGetRelatedAgentInfos.ts +91 -76
  25. package/src/funcs/agentsCreateAgent.ts +88 -73
  26. package/src/funcs/agentsDeleteAgent.ts +74 -58
  27. package/src/funcs/agentsGetAgent.ts +90 -73
  28. package/src/funcs/agentsListAgents.ts +89 -74
  29. package/src/funcs/agentsUpdateAgent.ts +92 -75
  30. package/src/funcs/apiKeysCreateAPIKey.ts +88 -73
  31. package/src/funcs/apiKeysDeleteAPIKey.ts +74 -58
  32. package/src/funcs/apiKeysGetAPIKeyById.ts +90 -73
  33. package/src/funcs/apiKeysListAPIKeys.ts +90 -75
  34. package/src/funcs/apiKeysUpdateAPIKey.ts +92 -75
  35. package/src/funcs/artifactComponentCreateArtifactComponent.ts +89 -74
  36. package/src/funcs/artifactComponentDeleteArtifactComponent.ts +74 -60
  37. package/src/funcs/artifactComponentGetArtifactComponentById.ts +89 -74
  38. package/src/funcs/artifactComponentListArtifactComponents.ts +90 -75
  39. package/src/funcs/artifactComponentUpdateArtifactComponent.ts +91 -76
  40. package/src/funcs/cliGetApiCliMe.ts +144 -0
  41. package/src/funcs/contextConfigCreateContextConfig.ts +91 -76
  42. package/src/funcs/contextConfigDeleteContextConfig.ts +87 -73
  43. package/src/funcs/contextConfigGetContextConfigById.ts +91 -76
  44. package/src/funcs/contextConfigListContextConfigs.ts +92 -77
  45. package/src/funcs/contextConfigUpdateContextConfig.ts +93 -78
  46. package/src/funcs/conversationsGetConversation.ts +92 -77
  47. package/src/funcs/credentialCreateCredential.ts +90 -73
  48. package/src/funcs/credentialDeleteCredential.ts +73 -59
  49. package/src/funcs/credentialGetCredentialById.ts +89 -74
  50. package/src/funcs/credentialListCredentials.ts +91 -74
  51. package/src/funcs/credentialStoreCreateCredentialInStore.ts +91 -76
  52. package/src/funcs/credentialStoreListCredentialStores.ts +87 -72
  53. package/src/funcs/credentialUpdateCredential.ts +91 -76
  54. package/src/funcs/dataComponentCreateDataComponent.ts +90 -73
  55. package/src/funcs/dataComponentDeleteDataComponent.ts +74 -60
  56. package/src/funcs/dataComponentGetDataComponentById.ts +89 -74
  57. package/src/funcs/dataComponentListDataComponents.ts +91 -74
  58. package/src/funcs/dataComponentUpdateDataComponent.ts +91 -76
  59. package/src/funcs/externalAgentsCreateExternalAgent.ts +90 -73
  60. package/src/funcs/externalAgentsDeleteExternalAgent.ts +74 -60
  61. package/src/funcs/externalAgentsGetExternalAgentById.ts +89 -74
  62. package/src/funcs/externalAgentsListExternalAgents.ts +91 -74
  63. package/src/funcs/externalAgentsUpdateExternalAgent.ts +91 -76
  64. package/src/funcs/fullAgentCreateFullAgent.ts +89 -74
  65. package/src/funcs/fullAgentDeleteFullAgent.ts +86 -70
  66. package/src/funcs/fullAgentGetFullAgent.ts +90 -73
  67. package/src/funcs/fullAgentUpdateFullAgent.ts +92 -75
  68. package/src/funcs/fullProjectCreateFullProject.ts +87 -72
  69. package/src/funcs/fullProjectDeleteFullProject.ts +82 -68
  70. package/src/funcs/fullProjectGetFullProject.ts +86 -71
  71. package/src/funcs/fullProjectUpdateFullProject.ts +88 -73
  72. package/src/funcs/functionToolsCreateFunctionTool.ts +91 -76
  73. package/src/funcs/functionToolsDeleteFunctionTool.ts +87 -73
  74. package/src/funcs/functionToolsGetFunctionTool.ts +91 -76
  75. package/src/funcs/functionToolsListFunctionTools.ts +92 -77
  76. package/src/funcs/functionToolsUpdateFunctionTool.ts +93 -78
  77. package/src/funcs/functionsCreateFunction.ts +90 -73
  78. package/src/funcs/functionsDeleteFunction.ts +86 -70
  79. package/src/funcs/functionsGetFunction.ts +90 -73
  80. package/src/funcs/functionsListFunctions.ts +91 -74
  81. package/src/funcs/functionsUpdateFunction.ts +92 -75
  82. package/src/funcs/health.ts +61 -45
  83. package/src/funcs/invitationsGetApiInvitationsPending.ts +60 -52
  84. package/src/funcs/mcpCatalogListMCPCatalog.ts +88 -71
  85. package/src/funcs/oAuthInitiateOauthLoginPublic.ts +74 -62
  86. package/src/funcs/oAuthOauthCallback.ts +73 -61
  87. package/src/funcs/playgroundCreatePlaygroundToken.ts +75 -62
  88. package/src/funcs/projectsCreateProject.ts +87 -72
  89. package/src/funcs/projectsDeleteProject.ts +86 -71
  90. package/src/funcs/projectsGetProjectById.ts +86 -71
  91. package/src/funcs/projectsListProjects.ts +87 -72
  92. package/src/funcs/projectsUpdateProject.ts +88 -73
  93. package/src/funcs/subAgentCreateSubagent.ts +91 -76
  94. package/src/funcs/subAgentDeleteSubagent.ts +77 -61
  95. package/src/funcs/subAgentExternalAgentRelationsCreateSubAgentExternalAgentRelation.ts +95 -79
  96. package/src/funcs/subAgentExternalAgentRelationsDeleteSubAgentExternalAgentRelation.ts +80 -65
  97. package/src/funcs/subAgentExternalAgentRelationsGetSubAgentExternalAgentRelationById.ts +95 -79
  98. package/src/funcs/subAgentExternalAgentRelationsListSubAgentExternalAgentRelations.ts +96 -80
  99. package/src/funcs/subAgentExternalAgentRelationsUpdateSubAgentExternalAgentRelation.ts +97 -81
  100. package/src/funcs/subAgentGetSubagentById.ts +91 -76
  101. package/src/funcs/subAgentListSubagents.ts +92 -77
  102. package/src/funcs/subAgentRelationsCreateSubAgentRelation.ts +91 -76
  103. package/src/funcs/subAgentRelationsDeleteSubAgentRelation.ts +76 -62
  104. package/src/funcs/subAgentRelationsGetSubAgentRelationById.ts +91 -76
  105. package/src/funcs/subAgentRelationsListSubAgentRelations.ts +96 -81
  106. package/src/funcs/subAgentRelationsUpdateSubAgentRelation.ts +93 -78
  107. package/src/funcs/subAgentTeamAgentRelationsCreateSubAgentTeamAgentRelation.ts +93 -78
  108. package/src/funcs/subAgentTeamAgentRelationsDeleteSubAgentTeamAgentRelation.ts +78 -64
  109. package/src/funcs/subAgentTeamAgentRelationsGetSubAgentTeamAgentRelationById.ts +93 -78
  110. package/src/funcs/subAgentTeamAgentRelationsListSubAgentTeamAgentRelations.ts +94 -79
  111. package/src/funcs/subAgentTeamAgentRelationsUpdateSubAgentTeamAgentRelation.ts +95 -80
  112. package/src/funcs/subAgentToolRelationsCreateSubagentToolRelation.ts +91 -76
  113. package/src/funcs/subAgentToolRelationsDeleteSubagentToolRelation.ts +76 -62
  114. package/src/funcs/subAgentToolRelationsGetSubagentToolRelation.ts +91 -76
  115. package/src/funcs/subAgentToolRelationsGetSubagentsForTool.ts +94 -79
  116. package/src/funcs/subAgentToolRelationsListSubagentToolRelations.ts +94 -79
  117. package/src/funcs/subAgentToolRelationsUpdateSubagentToolRelation.ts +93 -78
  118. package/src/funcs/subAgentUpdateSubagent.ts +93 -78
  119. package/src/funcs/thirdPartyMCPServersGetOauthRedirectUrl.ts +209 -0
  120. package/src/funcs/thirdPartyMCPServersGetThirdPartyMCPServer.ts +89 -74
  121. package/src/funcs/toolsCreateTool.ts +88 -73
  122. package/src/funcs/toolsDeleteTool.ts +97 -58
  123. package/src/funcs/toolsGetTool.ts +90 -73
  124. package/src/funcs/toolsGetUserCredentialForTool.ts +211 -0
  125. package/src/funcs/toolsListTools.ts +90 -75
  126. package/src/funcs/toolsUpdateTool.ts +92 -75
  127. package/src/funcs/userOrganizationsGetApiUsersUserIdOrganizations.ts +62 -52
  128. package/src/funcs/userOrganizationsPostApiUsersUserIdOrganizations.ts +64 -54
  129. package/src/hooks/hooks.ts +25 -14
  130. package/src/hooks/registration.ts +5 -4
  131. package/src/hooks/types.ts +18 -8
  132. package/src/index.ts +2 -1
  133. package/src/lib/base64.ts +8 -3
  134. package/src/lib/config.ts +19 -11
  135. package/src/lib/dlv.ts +3 -2
  136. package/src/lib/encodings.ts +118 -87
  137. package/src/lib/env.ts +17 -7
  138. package/src/lib/files.ts +29 -28
  139. package/src/lib/http.ts +66 -46
  140. package/src/lib/is-plain-object.ts +2 -1
  141. package/src/lib/logger.ts +1 -0
  142. package/src/lib/matchers.ts +111 -94
  143. package/src/lib/primitives.ts +14 -8
  144. package/src/lib/result.ts +4 -1
  145. package/src/lib/retries.ts +26 -18
  146. package/src/lib/schemas.ts +20 -26
  147. package/src/lib/sdks.ts +115 -85
  148. package/src/lib/security.ts +90 -46
  149. package/src/lib/url.ts +10 -5
  150. package/src/mcp-server/cli/start/command.ts +54 -41
  151. package/src/mcp-server/cli/start/impl.ts +52 -38
  152. package/src/mcp-server/cli.ts +2 -1
  153. package/src/mcp-server/console-logger.ts +27 -12
  154. package/src/mcp-server/extensions.ts +11 -6
  155. package/src/mcp-server/mcp-server.ts +8 -7
  156. package/src/mcp-server/prompts.ts +64 -51
  157. package/src/mcp-server/resources.ts +54 -35
  158. package/src/mcp-server/scopes.ts +1 -0
  159. package/src/mcp-server/server.ts +25 -6
  160. package/src/mcp-server/shared.ts +35 -24
  161. package/src/mcp-server/tools/agentArtifactComponentRelationsAssociateArtifactComponentWithAgent.ts +34 -33
  162. package/src/mcp-server/tools/agentArtifactComponentRelationsCheckArtifactComponentAgentAssociation.ts +34 -33
  163. package/src/mcp-server/tools/agentArtifactComponentRelationsGetAgentsUsingArtifactComponent.ts +34 -32
  164. package/src/mcp-server/tools/agentArtifactComponentRelationsGetArtifactComponentsForAgent.ts +34 -32
  165. package/src/mcp-server/tools/agentArtifactComponentRelationsRemoveArtifactComponentFromAgent.ts +34 -32
  166. package/src/mcp-server/tools/agentDataComponentRelationsAssociateDataComponentWithAgent.ts +33 -32
  167. package/src/mcp-server/tools/agentDataComponentRelationsCheckDataComponentAgentAssociation.ts +34 -32
  168. package/src/mcp-server/tools/agentDataComponentRelationsGetAgentsUsingDataComponent.ts +33 -32
  169. package/src/mcp-server/tools/agentDataComponentRelationsGetDataComponentsForAgent.ts +33 -32
  170. package/src/mcp-server/tools/agentDataComponentRelationsRemoveDataComponentFromAgent.ts +33 -32
  171. package/src/mcp-server/tools/agentGetFullAgentDefinition.ts +16 -13
  172. package/src/mcp-server/tools/agentGetRelatedAgentInfos.ts +16 -13
  173. package/src/mcp-server/tools/agentsCreateAgent.ts +16 -13
  174. package/src/mcp-server/tools/agentsDeleteAgent.ts +16 -13
  175. package/src/mcp-server/tools/agentsGetAgent.ts +16 -13
  176. package/src/mcp-server/tools/agentsListAgents.ts +16 -13
  177. package/src/mcp-server/tools/agentsUpdateAgent.ts +16 -13
  178. package/src/mcp-server/tools/apiKeysCreateAPIKey.ts +16 -13
  179. package/src/mcp-server/tools/apiKeysDeleteAPIKey.ts +16 -13
  180. package/src/mcp-server/tools/apiKeysGetAPIKeyById.ts +16 -13
  181. package/src/mcp-server/tools/apiKeysListAPIKeys.ts +16 -13
  182. package/src/mcp-server/tools/apiKeysUpdateAPIKey.ts +16 -13
  183. package/src/mcp-server/tools/artifactComponentCreateArtifactComponent.ts +19 -14
  184. package/src/mcp-server/tools/artifactComponentDeleteArtifactComponent.ts +19 -14
  185. package/src/mcp-server/tools/artifactComponentGetArtifactComponentById.ts +15 -12
  186. package/src/mcp-server/tools/artifactComponentListArtifactComponents.ts +19 -14
  187. package/src/mcp-server/tools/artifactComponentUpdateArtifactComponent.ts +19 -14
  188. package/src/mcp-server/tools/cliGetApiCliMe.ts +38 -0
  189. package/src/mcp-server/tools/contextConfigCreateContextConfig.ts +19 -14
  190. package/src/mcp-server/tools/contextConfigDeleteContextConfig.ts +19 -14
  191. package/src/mcp-server/tools/contextConfigGetContextConfigById.ts +19 -14
  192. package/src/mcp-server/tools/contextConfigListContextConfigs.ts +32 -28
  193. package/src/mcp-server/tools/contextConfigUpdateContextConfig.ts +19 -14
  194. package/src/mcp-server/tools/conversationsGetConversation.ts +16 -13
  195. package/src/mcp-server/tools/credentialCreateCredential.ts +16 -13
  196. package/src/mcp-server/tools/credentialDeleteCredential.ts +16 -13
  197. package/src/mcp-server/tools/credentialGetCredentialById.ts +16 -13
  198. package/src/mcp-server/tools/credentialListCredentials.ts +16 -13
  199. package/src/mcp-server/tools/credentialStoreCreateCredentialInStore.ts +19 -14
  200. package/src/mcp-server/tools/credentialStoreListCredentialStores.ts +19 -14
  201. package/src/mcp-server/tools/credentialUpdateCredential.ts +16 -13
  202. package/src/mcp-server/tools/dataComponentCreateDataComponent.ts +19 -14
  203. package/src/mcp-server/tools/dataComponentDeleteDataComponent.ts +19 -14
  204. package/src/mcp-server/tools/dataComponentGetDataComponentById.ts +19 -14
  205. package/src/mcp-server/tools/dataComponentListDataComponents.ts +32 -28
  206. package/src/mcp-server/tools/dataComponentUpdateDataComponent.ts +19 -14
  207. package/src/mcp-server/tools/externalAgentsCreateExternalAgent.ts +19 -14
  208. package/src/mcp-server/tools/externalAgentsDeleteExternalAgent.ts +19 -14
  209. package/src/mcp-server/tools/externalAgentsGetExternalAgentById.ts +19 -14
  210. package/src/mcp-server/tools/externalAgentsListExternalAgents.ts +19 -14
  211. package/src/mcp-server/tools/externalAgentsUpdateExternalAgent.ts +19 -14
  212. package/src/mcp-server/tools/fullAgentCreateFullAgent.ts +16 -13
  213. package/src/mcp-server/tools/fullAgentDeleteFullAgent.ts +16 -13
  214. package/src/mcp-server/tools/fullAgentGetFullAgent.ts +16 -13
  215. package/src/mcp-server/tools/fullAgentUpdateFullAgent.ts +16 -13
  216. package/src/mcp-server/tools/fullProjectCreateFullProject.ts +16 -13
  217. package/src/mcp-server/tools/fullProjectDeleteFullProject.ts +16 -13
  218. package/src/mcp-server/tools/fullProjectGetFullProject.ts +16 -13
  219. package/src/mcp-server/tools/fullProjectUpdateFullProject.ts +16 -13
  220. package/src/mcp-server/tools/functionToolsCreateFunctionTool.ts +32 -28
  221. package/src/mcp-server/tools/functionToolsDeleteFunctionTool.ts +32 -28
  222. package/src/mcp-server/tools/functionToolsGetFunctionTool.ts +16 -13
  223. package/src/mcp-server/tools/functionToolsListFunctionTools.ts +32 -28
  224. package/src/mcp-server/tools/functionToolsUpdateFunctionTool.ts +32 -28
  225. package/src/mcp-server/tools/functionsCreateFunction.ts +16 -13
  226. package/src/mcp-server/tools/functionsDeleteFunction.ts +16 -13
  227. package/src/mcp-server/tools/functionsGetFunction.ts +16 -13
  228. package/src/mcp-server/tools/functionsListFunctions.ts +16 -13
  229. package/src/mcp-server/tools/functionsUpdateFunction.ts +16 -13
  230. package/src/mcp-server/tools/health.ts +14 -12
  231. package/src/mcp-server/tools/invitationsGetApiInvitationsPending.ts +19 -14
  232. package/src/mcp-server/tools/mcpCatalogListMCPCatalog.ts +16 -13
  233. package/src/mcp-server/tools/oAuthInitiateOauthLoginPublic.ts +16 -13
  234. package/src/mcp-server/tools/oAuthOauthCallback.ts +16 -13
  235. package/src/mcp-server/tools/projectsCreateProject.ts +16 -13
  236. package/src/mcp-server/tools/projectsDeleteProject.ts +16 -13
  237. package/src/mcp-server/tools/projectsGetProjectById.ts +16 -13
  238. package/src/mcp-server/tools/projectsListProjects.ts +16 -13
  239. package/src/mcp-server/tools/projectsUpdateProject.ts +16 -13
  240. package/src/mcp-server/tools/subAgentCreateSubagent.ts +16 -13
  241. package/src/mcp-server/tools/subAgentDeleteSubagent.ts +16 -13
  242. package/src/mcp-server/tools/subAgentExternalAgentRelationsCreateSubAgentExternalAgentRelation.ts +34 -33
  243. package/src/mcp-server/tools/subAgentExternalAgentRelationsDeleteSubAgentExternalAgentRelation.ts +34 -33
  244. package/src/mcp-server/tools/subAgentExternalAgentRelationsGetSubAgentExternalAgentRelationById.ts +34 -33
  245. package/src/mcp-server/tools/subAgentExternalAgentRelationsListSubAgentExternalAgentRelations.ts +34 -31
  246. package/src/mcp-server/tools/subAgentExternalAgentRelationsUpdateSubAgentExternalAgentRelation.ts +34 -33
  247. package/src/mcp-server/tools/subAgentGetSubagentById.ts +16 -13
  248. package/src/mcp-server/tools/subAgentListSubagents.ts +16 -13
  249. package/src/mcp-server/tools/subAgentRelationsCreateSubAgentRelation.ts +19 -14
  250. package/src/mcp-server/tools/subAgentRelationsDeleteSubAgentRelation.ts +19 -14
  251. package/src/mcp-server/tools/subAgentRelationsGetSubAgentRelationById.ts +19 -14
  252. package/src/mcp-server/tools/subAgentRelationsListSubAgentRelations.ts +19 -14
  253. package/src/mcp-server/tools/subAgentRelationsUpdateSubAgentRelation.ts +19 -14
  254. package/src/mcp-server/tools/subAgentTeamAgentRelationsCreateSubAgentTeamAgentRelation.ts +33 -32
  255. package/src/mcp-server/tools/subAgentTeamAgentRelationsDeleteSubAgentTeamAgentRelation.ts +33 -32
  256. package/src/mcp-server/tools/subAgentTeamAgentRelationsGetSubAgentTeamAgentRelationById.ts +34 -32
  257. package/src/mcp-server/tools/subAgentTeamAgentRelationsListSubAgentTeamAgentRelations.ts +33 -32
  258. package/src/mcp-server/tools/subAgentTeamAgentRelationsUpdateSubAgentTeamAgentRelation.ts +33 -32
  259. package/src/mcp-server/tools/subAgentToolRelationsCreateSubagentToolRelation.ts +33 -30
  260. package/src/mcp-server/tools/subAgentToolRelationsDeleteSubagentToolRelation.ts +33 -30
  261. package/src/mcp-server/tools/subAgentToolRelationsGetSubagentToolRelation.ts +20 -16
  262. package/src/mcp-server/tools/subAgentToolRelationsGetSubagentsForTool.ts +19 -14
  263. package/src/mcp-server/tools/subAgentToolRelationsListSubagentToolRelations.ts +33 -30
  264. package/src/mcp-server/tools/subAgentToolRelationsUpdateSubagentToolRelation.ts +33 -30
  265. package/src/mcp-server/tools/subAgentUpdateSubagent.ts +16 -13
  266. package/src/mcp-server/tools/thirdPartyMCPServersGetOauthRedirectUrl.ts +47 -0
  267. package/src/mcp-server/tools/thirdPartyMCPServersGetThirdPartyMCPServer.ts +15 -12
  268. package/src/mcp-server/tools/toolsCreateTool.ts +16 -13
  269. package/src/mcp-server/tools/toolsDeleteTool.ts +16 -13
  270. package/src/mcp-server/tools/toolsGetTool.ts +16 -13
  271. package/src/mcp-server/tools/toolsGetUserCredentialForTool.ts +43 -0
  272. package/src/mcp-server/tools/toolsListTools.ts +16 -13
  273. package/src/mcp-server/tools/toolsUpdateTool.ts +16 -13
  274. package/src/mcp-server/tools/userOrganizationsGetApiUsersUserIdOrganizations.ts +33 -30
  275. package/src/mcp-server/tools/userOrganizationsPostApiUsersUserIdOrganizations.ts +33 -30
  276. package/src/mcp-server/tools.ts +111 -79
  277. package/src/models/agent.ts +3 -2
  278. package/src/models/agentcreate.ts +3 -2
  279. package/src/models/agentlistresponse.ts +6 -5
  280. package/src/models/agentresponse.ts +4 -3
  281. package/src/models/agentstopwhen.ts +3 -2
  282. package/src/models/agentupdate.ts +3 -2
  283. package/src/models/agentwithincontextofproject.ts +30 -21
  284. package/src/models/agentwithincontextofprojectresponse.ts +5 -6
  285. package/src/models/apikey.ts +3 -2
  286. package/src/models/apikeycreate.ts +3 -2
  287. package/src/models/apikeylistresponse.ts +6 -5
  288. package/src/models/apikeyresponse.ts +4 -3
  289. package/src/models/apikeyupdate.ts +3 -2
  290. package/src/models/artifactcomponent.ts +6 -5
  291. package/src/models/artifactcomponentarrayresponse.ts +7 -5
  292. package/src/models/artifactcomponentcreate.ts +5 -6
  293. package/src/models/artifactcomponentlistresponse.ts +8 -6
  294. package/src/models/artifactcomponentresponse.ts +7 -5
  295. package/src/models/artifactcomponentupdate.ts +5 -6
  296. package/src/models/associateartifactcomponentwithagentop.ts +36 -32
  297. package/src/models/associatedatacomponentwithagentop.ts +28 -25
  298. package/src/models/badrequest.ts +28 -16
  299. package/src/models/candelegatetoexternalagent.ts +4 -5
  300. package/src/models/candelegatetoteamagent.ts +4 -5
  301. package/src/models/canuseitem.ts +9 -10
  302. package/src/models/checkartifactcomponentagentassociationop.ts +33 -31
  303. package/src/models/checkdatacomponentagentassociationop.ts +22 -19
  304. package/src/models/componentassociation.ts +7 -9
  305. package/src/models/componentassociationlistresponse.ts +5 -6
  306. package/src/models/contextconfig.ts +5 -6
  307. package/src/models/contextconfigcreate.ts +15 -13
  308. package/src/models/contextconfiglistresponse.ts +5 -6
  309. package/src/models/contextconfigresponse.ts +7 -9
  310. package/src/models/contextconfigupdate.ts +15 -13
  311. package/src/models/conversationwithformattedmessagesresponse.ts +5 -8
  312. package/src/models/createagentop.ts +23 -16
  313. package/src/models/createapikeyop.ts +41 -40
  314. package/src/models/createartifactcomponentop.ts +23 -20
  315. package/src/models/createcontextconfigop.ts +26 -20
  316. package/src/models/createcredentialinstoreop.ts +26 -22
  317. package/src/models/createcredentialinstorerequest.ts +4 -5
  318. package/src/models/createcredentialinstoreresponse.ts +4 -7
  319. package/src/models/createcredentialop.ts +23 -20
  320. package/src/models/createdatacomponentop.ts +25 -19
  321. package/src/models/createexternalagentop.ts +25 -19
  322. package/src/models/createfullagentop.ts +29 -23
  323. package/src/models/createfullprojectop.ts +25 -21
  324. package/src/models/createfunctionop.ts +27 -22
  325. package/src/models/createfunctiontoolop.ts +26 -20
  326. package/src/models/createplaygroundtokenop.ts +17 -30
  327. package/src/models/createprojectop.ts +39 -35
  328. package/src/models/createsubagentexternalagentrelationop.ts +30 -24
  329. package/src/models/createsubagentop.ts +28 -23
  330. package/src/models/createsubagentrelationop.ts +24 -21
  331. package/src/models/createsubagentteamagentrelationop.ts +30 -24
  332. package/src/models/createsubagenttoolrelationop.ts +26 -22
  333. package/src/models/createtoolop.ts +26 -16
  334. package/src/models/credentialreference.ts +35 -14
  335. package/src/models/credentialreferencecreate.ts +25 -7
  336. package/src/models/credentialreferencelistresponse.ts +8 -6
  337. package/src/models/credentialreferenceresponse.ts +7 -5
  338. package/src/models/credentialreferenceupdate.ts +25 -7
  339. package/src/models/credentialstore.ts +20 -10
  340. package/src/models/credentialstorelistresponse.ts +7 -5
  341. package/src/models/datacomponent.ts +5 -4
  342. package/src/models/datacomponentarrayresponse.ts +4 -5
  343. package/src/models/datacomponentcreate.ts +6 -5
  344. package/src/models/datacomponentlistresponse.ts +5 -6
  345. package/src/models/datacomponentresponse.ts +7 -9
  346. package/src/models/datacomponentupdate.ts +6 -5
  347. package/src/models/deleteagentop.ts +11 -10
  348. package/src/models/deleteapikeyop.ts +15 -17
  349. package/src/models/deleteartifactcomponentop.ts +9 -12
  350. package/src/models/deletecontextconfigop.ts +21 -18
  351. package/src/models/deletecredentialop.ts +9 -12
  352. package/src/models/deletedatacomponentop.ts +9 -12
  353. package/src/models/deleteexternalagentop.ts +9 -12
  354. package/src/models/deletefullagentop.ts +20 -17
  355. package/src/models/deletefullprojectop.ts +19 -16
  356. package/src/models/deletefunctionop.ts +22 -20
  357. package/src/models/deletefunctiontoolop.ts +21 -18
  358. package/src/models/deleteprojectop.ts +33 -32
  359. package/src/models/deletesubagentexternalagentrelationop.ts +11 -14
  360. package/src/models/deletesubagentop.ts +12 -16
  361. package/src/models/deletesubagentrelationop.ts +10 -13
  362. package/src/models/deletesubagentteamagentrelationop.ts +11 -14
  363. package/src/models/deletesubagenttoolrelationop.ts +10 -13
  364. package/src/models/deletetoolop.ts +34 -12
  365. package/src/models/errorresponse.ts +3 -2
  366. package/src/models/errors/apierror.ts +5 -4
  367. package/src/models/errors/httpclienterrors.ts +8 -7
  368. package/src/models/errors/sdkvalidationerror.ts +7 -58
  369. package/src/models/existsresponse.ts +3 -2
  370. package/src/models/externalagent.ts +5 -4
  371. package/src/models/externalagentcreate.ts +6 -5
  372. package/src/models/externalagentlistresponse.ts +5 -6
  373. package/src/models/externalagentresponse.ts +7 -9
  374. package/src/models/externalagentupdate.ts +6 -5
  375. package/src/models/forbidden.ts +28 -16
  376. package/src/models/fullagentagentinsert.ts +50 -39
  377. package/src/models/fullprojectdefinition.ts +52 -38
  378. package/src/models/fullprojectdefinitionresponse.ts +5 -6
  379. package/src/models/function.ts +3 -2
  380. package/src/models/functioncreate.ts +3 -2
  381. package/src/models/functionlistresponse.ts +9 -11
  382. package/src/models/functionresponse.ts +7 -5
  383. package/src/models/functiontool.ts +3 -2
  384. package/src/models/functiontoolcreate.ts +4 -3
  385. package/src/models/functiontoollistresponse.ts +5 -6
  386. package/src/models/functiontoolresponse.ts +7 -9
  387. package/src/models/functiontoolupdate.ts +4 -3
  388. package/src/models/functionupdate.ts +3 -2
  389. package/src/models/getagentop.ts +25 -18
  390. package/src/models/getagentsusingartifactcomponentop.ts +27 -21
  391. package/src/models/getagentsusingdatacomponentop.ts +27 -21
  392. package/src/models/getapiclimeop.ts +58 -0
  393. package/src/models/getapiinvitationspendingop.ts +10 -16
  394. package/src/models/getapikeybyidop.ts +34 -33
  395. package/src/models/getapiusersuseridorganizationsop.ts +13 -17
  396. package/src/models/getartifactcomponentbyidop.ts +22 -19
  397. package/src/models/getartifactcomponentsforagentop.ts +25 -21
  398. package/src/models/getcontextconfigbyidop.ts +23 -20
  399. package/src/models/getconversationop.ts +25 -20
  400. package/src/models/getcredentialbyidop.ts +22 -19
  401. package/src/models/getdatacomponentbyidop.ts +22 -19
  402. package/src/models/getdatacomponentsforagentop.ts +23 -20
  403. package/src/models/getexternalagentbyidop.ts +22 -19
  404. package/src/models/getfullagentdefinitionop.ts +27 -21
  405. package/src/models/getfullagentop.ts +38 -31
  406. package/src/models/getfullprojectop.ts +25 -22
  407. package/src/models/getfunctionop.ts +26 -16
  408. package/src/models/getfunctiontoolop.ts +23 -20
  409. package/src/models/getoauthredirecturlop.ts +111 -0
  410. package/src/models/getprojectbyidop.ts +25 -20
  411. package/src/models/getrelatedagentinfosop.ts +25 -21
  412. package/src/models/getsubagentbyidop.ts +25 -19
  413. package/src/models/getsubagentexternalagentrelationbyidop.ts +29 -23
  414. package/src/models/getsubagentrelationbyidop.ts +23 -20
  415. package/src/models/getsubagentsfortoolop.ts +27 -21
  416. package/src/models/getsubagentteamagentrelationbyidop.ts +29 -23
  417. package/src/models/getsubagenttoolrelationop.ts +25 -21
  418. package/src/models/getthirdpartymcpserverop.ts +43 -22
  419. package/src/models/gettoolop.ts +34 -25
  420. package/src/models/getusercredentialfortoolop.ts +64 -0
  421. package/src/models/healthop.ts +4 -3
  422. package/src/models/initiateoauthloginpublicop.ts +11 -13
  423. package/src/models/internalservererror.ts +34 -20
  424. package/src/models/listagentsop.ts +25 -15
  425. package/src/models/listapikeysop.ts +26 -16
  426. package/src/models/listartifactcomponentsop.ts +23 -19
  427. package/src/models/listcontextconfigsop.ts +22 -19
  428. package/src/models/listcredentialsop.ts +23 -19
  429. package/src/models/listcredentialstoresop.ts +21 -18
  430. package/src/models/listdatacomponentsop.ts +21 -18
  431. package/src/models/listexternalagentsop.ts +21 -18
  432. package/src/models/listfunctionsop.ts +36 -35
  433. package/src/models/listfunctiontoolsop.ts +22 -19
  434. package/src/models/listmcpcatalogop.ts +23 -21
  435. package/src/models/listprojectsop.ts +34 -27
  436. package/src/models/listsubagentexternalagentrelationsop.ts +26 -21
  437. package/src/models/listsubagentrelationsop.ts +24 -20
  438. package/src/models/listsubagentsop.ts +37 -36
  439. package/src/models/listsubagentteamagentrelationsop.ts +28 -22
  440. package/src/models/listsubagenttoolrelationsop.ts +27 -21
  441. package/src/models/listtoolsop.ts +41 -18
  442. package/src/models/mcpcataloglistresponse.ts +19 -13
  443. package/src/models/mcptool.ts +54 -25
  444. package/src/models/mcptoollistresponse.ts +6 -5
  445. package/src/models/mcptoolresponse.ts +6 -6
  446. package/src/models/model.ts +4 -3
  447. package/src/models/modelsettings.ts +4 -3
  448. package/src/models/notfound.ts +28 -16
  449. package/src/models/oauthcallbackop.ts +20 -22
  450. package/src/models/pagination.ts +3 -2
  451. package/src/models/postapiusersuseridorganizationsop.ts +18 -25
  452. package/src/models/project.ts +7 -6
  453. package/src/models/projectcreate.ts +7 -6
  454. package/src/models/projectlistresponse.ts +6 -5
  455. package/src/models/projectmodel.ts +4 -3
  456. package/src/models/projectresponse.ts +6 -6
  457. package/src/models/projectupdate.ts +7 -6
  458. package/src/models/relatedagentinfo.ts +8 -6
  459. package/src/models/relatedagentinfolistresponse.ts +8 -6
  460. package/src/models/removeartifactcomponentfromagentop.ts +25 -19
  461. package/src/models/removedatacomponentfromagentop.ts +25 -19
  462. package/src/models/removedresponse.ts +6 -6
  463. package/src/models/security.ts +9 -12
  464. package/src/models/statuscomponent.ts +17 -11
  465. package/src/models/statusupdate.ts +7 -3
  466. package/src/models/stopwhen.ts +3 -2
  467. package/src/models/subagent.ts +7 -6
  468. package/src/models/subagentartifactcomponentresponse.ts +4 -7
  469. package/src/models/subagentcreate.ts +8 -7
  470. package/src/models/subagentdatacomponentresponse.ts +4 -7
  471. package/src/models/subagentexternalagentrelation.ts +3 -4
  472. package/src/models/subagentexternalagentrelationcreate.ts +4 -5
  473. package/src/models/subagentexternalagentrelationlistresponse.ts +6 -7
  474. package/src/models/subagentexternalagentrelationresponse.ts +5 -6
  475. package/src/models/subagentexternalagentrelationupdate.ts +4 -5
  476. package/src/models/subagentlistresponse.ts +9 -11
  477. package/src/models/subagentrelation.ts +6 -4
  478. package/src/models/subagentrelationcreate.ts +15 -8
  479. package/src/models/subagentrelationlistresponse.ts +8 -6
  480. package/src/models/subagentrelationresponse.ts +7 -5
  481. package/src/models/subagentrelationupdate.ts +15 -8
  482. package/src/models/subagentresponse.ts +7 -5
  483. package/src/models/subagentteamagentrelation.ts +3 -4
  484. package/src/models/subagentteamagentrelationcreate.ts +4 -5
  485. package/src/models/subagentteamagentrelationlistresponse.ts +6 -7
  486. package/src/models/subagentteamagentrelationresponse.ts +5 -6
  487. package/src/models/subagentteamagentrelationupdate.ts +4 -5
  488. package/src/models/subagenttoolrelation.ts +13 -15
  489. package/src/models/subagenttoolrelationcreate.ts +13 -13
  490. package/src/models/subagenttoolrelationlistresponse.ts +6 -7
  491. package/src/models/subagenttoolrelationresponse.ts +5 -6
  492. package/src/models/subagenttoolrelationupdate.ts +13 -13
  493. package/src/models/subagentupdate.ts +8 -7
  494. package/src/models/teamagent.ts +3 -2
  495. package/src/models/thirdpartymcpserverresponse.ts +19 -13
  496. package/src/models/toolcreate.ts +43 -24
  497. package/src/models/toolupdate.ts +43 -24
  498. package/src/models/unauthorized.ts +26 -13
  499. package/src/models/unprocessableentity.ts +34 -20
  500. package/src/models/updateagentop.ts +24 -17
  501. package/src/models/updateapikeyop.ts +34 -30
  502. package/src/models/updateartifactcomponentop.ts +24 -21
  503. package/src/models/updatecontextconfigop.ts +27 -21
  504. package/src/models/updatecredentialop.ts +24 -21
  505. package/src/models/updatedatacomponentop.ts +26 -20
  506. package/src/models/updateexternalagentop.ts +26 -20
  507. package/src/models/updatefullagentop.ts +29 -23
  508. package/src/models/updatefullprojectop.ts +25 -21
  509. package/src/models/updatefunctionop.ts +28 -23
  510. package/src/models/updatefunctiontoolop.ts +27 -21
  511. package/src/models/updateprojectop.ts +38 -34
  512. package/src/models/updatesubagentexternalagentrelationop.ts +31 -25
  513. package/src/models/updatesubagentop.ts +29 -24
  514. package/src/models/updatesubagentrelationop.ts +25 -22
  515. package/src/models/updatesubagentteamagentrelationop.ts +31 -25
  516. package/src/models/updatesubagenttoolrelationop.ts +27 -23
  517. package/src/models/updatetoolop.ts +27 -17
  518. package/src/types/async.ts +24 -9
  519. package/src/types/bigint.ts +88 -0
  520. package/src/types/blobs.ts +5 -4
  521. package/src/types/enums.ts +2 -1
  522. package/src/types/fp.ts +4 -1
  523. package/src/types/rfcdate.ts +8 -5
  524. package/src/types/streams.ts +8 -5
  525. package/src/zod-int.ts +9 -0
  526. package/tsconfig.json +3 -2
  527. package/openapi.json +0 -17114
  528. package/scripts/watch-and-fetch.mjs +0 -72
  529. package/src/hooks/auth-hook.ts +0 -32
  530. package/src/http-server.ts +0 -34
@@ -1,24 +1,29 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 63ca2f2d1ef8
3
4
  */
4
5
 
5
- import type { InkeepAgentsCore } from '../core.js';
6
- import * as M from '../lib/matchers.js';
7
- import { compactMap } from '../lib/primitives.js';
8
- import type { RequestOptions } from '../lib/sdks.js';
9
- import { pathToFunc } from '../lib/url.js';
10
- import type { APIError } from '../models/errors/apierror.js';
11
- import type {
6
+ import { InkeepAgentsManageCore } from "../core.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import { APIError } from "../models/errors/apierror.js";
13
+ import {
12
14
  ConnectionError,
13
15
  InvalidRequestError,
14
16
  RequestAbortedError,
15
17
  RequestTimeoutError,
16
18
  UnexpectedClientError,
17
- } from '../models/errors/httpclienterrors.js';
18
- import type { SDKValidationError } from '../models/errors/sdkvalidationerror.js';
19
- import { type HealthResponse, HealthResponse$zodSchema } from '../models/healthop.js';
20
- import { type APICall, APIPromise } from '../types/async.js';
21
- import type { Result } from '../types/fp.js';
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import {
22
+ HealthResponse,
23
+ HealthResponse$zodSchema,
24
+ } from "../models/healthop.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
22
27
 
23
28
  /**
24
29
  * Health check
@@ -27,8 +32,8 @@ import type { Result } from '../types/fp.js';
27
32
  * Check if the management service is healthy
28
33
  */
29
34
  export function health(
30
- client$: InkeepAgentsCore,
31
- options?: RequestOptions
35
+ client$: InkeepAgentsManageCore,
36
+ options?: RequestOptions,
32
37
  ): APIPromise<
33
38
  Result<
34
39
  HealthResponse,
@@ -41,12 +46,15 @@ export function health(
41
46
  | ConnectionError
42
47
  >
43
48
  > {
44
- return new APIPromise($do(client$, options));
49
+ return new APIPromise($do(
50
+ client$,
51
+ options,
52
+ ));
45
53
  }
46
54
 
47
55
  async function $do(
48
- client$: InkeepAgentsCore,
49
- options?: RequestOptions
56
+ client$: InkeepAgentsManageCore,
57
+ options?: RequestOptions,
50
58
  ): Promise<
51
59
  [
52
60
  Result<
@@ -62,39 +70,45 @@ async function $do(
62
70
  APICall,
63
71
  ]
64
72
  > {
65
- const path$ = pathToFunc('/health')();
73
+ const path$ = pathToFunc("/health")();
66
74
 
67
- const headers$ = new Headers(
68
- compactMap({
69
- Accept: '*/*',
70
- })
71
- );
75
+ const headers$ = new Headers(compactMap({
76
+ Accept: "*/*",
77
+ }));
78
+ const securityInput = await extractSecurity(client$._options.security);
79
+ const requestSecurity = resolveGlobalSecurity(securityInput);
72
80
 
73
81
  const context = {
74
82
  options: client$._options,
75
- baseURL: options?.serverURL ?? client$._baseURL ?? '',
76
- operationID: 'health',
83
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
84
+ operationID: "health",
77
85
  oAuth2Scopes: null,
78
- resolvedSecurity: null,
79
- securitySource: null,
80
- retryConfig: options?.retries || client$._options.retryConfig || { strategy: 'none' },
81
- retryCodes: options?.retryCodes || ['429', '500', '502', '503', '504'],
86
+ resolvedSecurity: requestSecurity,
87
+ securitySource: client$._options.security,
88
+ retryConfig: options?.retries
89
+ || client$._options.retryConfig
90
+ || { strategy: "none" },
91
+ retryCodes: options?.retryCodes || [
92
+ "429",
93
+ "500",
94
+ "502",
95
+ "503",
96
+ "504",
97
+ ],
82
98
  };
83
99
 
84
- const requestRes = client$._createRequest(
85
- context,
86
- {
87
- method: 'GET',
88
- baseURL: options?.serverURL,
89
- path: path$,
90
- headers: headers$,
91
- userAgent: client$._options.userAgent,
92
- timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1,
93
- },
94
- options
95
- );
100
+ const requestRes = client$._createRequest(context, {
101
+ security: requestSecurity,
102
+ method: "GET",
103
+ baseURL: options?.serverURL,
104
+ path: path$,
105
+ headers: headers$,
106
+ userAgent: client$._options.userAgent,
107
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs
108
+ || -1,
109
+ }, options);
96
110
  if (!requestRes.ok) {
97
- return [requestRes, { status: 'invalid' }];
111
+ return [requestRes, { status: "invalid" }];
98
112
  }
99
113
  const req$ = requestRes.value;
100
114
 
@@ -105,7 +119,7 @@ async function $do(
105
119
  retryCodes: context.retryCodes,
106
120
  });
107
121
  if (!doResult.ok) {
108
- return [doResult, { status: 'request-error', request: req$ }];
122
+ return [doResult, { status: "request-error", request: req$ }];
109
123
  }
110
124
  const response = doResult.value;
111
125
  const responseFields$ = {
@@ -121,7 +135,9 @@ async function $do(
121
135
  | RequestAbortedError
122
136
  | RequestTimeoutError
123
137
  | ConnectionError
124
- >(M.nil(204, HealthResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
138
+ >(
139
+ M.nil(204, HealthResponse$zodSchema),
140
+ )(response, req$, { extraFields: responseFields$ });
125
141
 
126
- return [result$, { status: 'complete', request: req$, response }];
142
+ return [result$, { status: "complete", request: req$, response }];
127
143
  }
@@ -1,32 +1,33 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 294c9e6567ea
3
4
  */
4
5
 
5
- import { InkeepAgentsCore } from '../core.js';
6
- import { encodeFormQuery } from '../lib/encodings.js';
7
- import * as M from '../lib/matchers.js';
8
- import { compactMap } from '../lib/primitives.js';
9
- import { safeParse } from '../lib/schemas.js';
10
- import { RequestOptions } from '../lib/sdks.js';
11
- import { extractSecurity, resolveGlobalSecurity } from '../lib/security.js';
12
- import { pathToFunc } from '../lib/url.js';
13
- import { APIError } from '../models/errors/apierror.js';
6
+ import { InkeepAgentsManageCore } from "../core.js";
7
+ import { encodeFormQuery } from "../lib/encodings.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import { APIError } from "../models/errors/apierror.js";
14
15
  import {
15
16
  ConnectionError,
16
17
  InvalidRequestError,
17
18
  RequestAbortedError,
18
19
  RequestTimeoutError,
19
20
  UnexpectedClientError,
20
- } from '../models/errors/httpclienterrors.js';
21
- import { SDKValidationError } from '../models/errors/sdkvalidationerror.js';
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
23
  import {
23
24
  GetApiInvitationsPendingRequest,
24
25
  GetApiInvitationsPendingRequest$zodSchema,
25
26
  GetApiInvitationsPendingResponse,
26
27
  GetApiInvitationsPendingResponse$zodSchema,
27
- } from '../models/getapiinvitationspendingop.js';
28
- import { APICall, APIPromise } from '../types/async.js';
29
- import { Result } from '../types/fp.js';
28
+ } from "../models/getapiinvitationspendingop.js";
29
+ import { APICall, APIPromise } from "../types/async.js";
30
+ import { Result } from "../types/fp.js";
30
31
 
31
32
  /**
32
33
  * Get pending invitations
@@ -35,9 +36,9 @@ import { Result } from '../types/fp.js';
35
36
  * Get all pending (non-expired) invitations for a given email address
36
37
  */
37
38
  export function invitationsGetApiInvitationsPending(
38
- client$: InkeepAgentsCore,
39
+ client$: InkeepAgentsManageCore,
39
40
  request: GetApiInvitationsPendingRequest,
40
- options?: RequestOptions
41
+ options?: RequestOptions,
41
42
  ): APIPromise<
42
43
  Result<
43
44
  GetApiInvitationsPendingResponse,
@@ -50,13 +51,17 @@ export function invitationsGetApiInvitationsPending(
50
51
  | ConnectionError
51
52
  >
52
53
  > {
53
- return new APIPromise($do(client$, request, options));
54
+ return new APIPromise($do(
55
+ client$,
56
+ request,
57
+ options,
58
+ ));
54
59
  }
55
60
 
56
61
  async function $do(
57
- client$: InkeepAgentsCore,
62
+ client$: InkeepAgentsManageCore,
58
63
  request: GetApiInvitationsPendingRequest,
59
- options?: RequestOptions
64
+ options?: RequestOptions,
60
65
  ): Promise<
61
66
  [
62
67
  Result<
@@ -75,54 +80,57 @@ async function $do(
75
80
  const parsed$ = safeParse(
76
81
  request,
77
82
  (value$) => GetApiInvitationsPendingRequest$zodSchema.parse(value$),
78
- 'Input validation failed'
83
+ "Input validation failed",
79
84
  );
80
85
  if (!parsed$.ok) {
81
- return [parsed$, { status: 'invalid' }];
86
+ return [parsed$, { status: "invalid" }];
82
87
  }
83
88
  const payload$ = parsed$.value;
84
89
  const body$ = null;
85
- const path$ = pathToFunc('/api/invitations/pending')();
90
+ const path$ = pathToFunc("/api/invitations/pending")();
86
91
  const query$ = encodeFormQuery({
87
- email: payload$.email,
92
+ "email": payload$.email,
88
93
  });
89
94
 
90
- const headers$ = new Headers(
91
- compactMap({
92
- Accept: 'application/json',
93
- })
94
- );
95
+ const headers$ = new Headers(compactMap({
96
+ Accept: "application/json",
97
+ }));
95
98
  const securityInput = await extractSecurity(client$._options.security);
96
99
  const requestSecurity = resolveGlobalSecurity(securityInput);
97
100
 
98
101
  const context = {
99
102
  options: client$._options,
100
- baseURL: options?.serverURL ?? client$._baseURL ?? '',
101
- operationID: 'get_/api/invitations/pending',
103
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
104
+ operationID: "get_/api/invitations/pending",
102
105
  oAuth2Scopes: null,
103
106
  resolvedSecurity: requestSecurity,
104
107
  securitySource: client$._options.security,
105
- retryConfig: options?.retries || client$._options.retryConfig || { strategy: 'none' },
106
- retryCodes: options?.retryCodes || ['429', '500', '502', '503', '504'],
108
+ retryConfig: options?.retries
109
+ || client$._options.retryConfig
110
+ || { strategy: "none" },
111
+ retryCodes: options?.retryCodes || [
112
+ "429",
113
+ "500",
114
+ "502",
115
+ "503",
116
+ "504",
117
+ ],
107
118
  };
108
119
 
109
- const requestRes = client$._createRequest(
110
- context,
111
- {
112
- security: requestSecurity,
113
- method: 'GET',
114
- baseURL: options?.serverURL,
115
- path: path$,
116
- headers: headers$,
117
- query: query$,
118
- body: body$,
119
- userAgent: client$._options.userAgent,
120
- timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1,
121
- },
122
- options
123
- );
120
+ const requestRes = client$._createRequest(context, {
121
+ security: requestSecurity,
122
+ method: "GET",
123
+ baseURL: options?.serverURL,
124
+ path: path$,
125
+ headers: headers$,
126
+ query: query$,
127
+ body: body$,
128
+ userAgent: client$._options.userAgent,
129
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs
130
+ || -1,
131
+ }, options);
124
132
  if (!requestRes.ok) {
125
- return [requestRes, { status: 'invalid' }];
133
+ return [requestRes, { status: "invalid" }];
126
134
  }
127
135
  const req$ = requestRes.value;
128
136
 
@@ -133,7 +141,7 @@ async function $do(
133
141
  retryCodes: context.retryCodes,
134
142
  });
135
143
  if (!doResult.ok) {
136
- return [doResult, { status: 'request-error', request: req$ }];
144
+ return [doResult, { status: "request-error", request: req$ }];
137
145
  }
138
146
  const response = doResult.value;
139
147
  const responseFields$ = {
@@ -151,9 +159,9 @@ async function $do(
151
159
  | ConnectionError
152
160
  >(
153
161
  M.json(200, GetApiInvitationsPendingResponse$zodSchema, {
154
- key: 'ResponseBodies',
155
- })
162
+ key: "ResponseBodies",
163
+ }),
156
164
  )(response, req$, { extraFields: responseFields$ });
157
165
 
158
- return [result$, { status: 'complete', request: req$, response }];
166
+ return [result$, { status: "complete", request: req$, response }];
159
167
  }
@@ -1,35 +1,37 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ad19456d9b78
3
4
  */
4
5
 
5
- import type { InkeepAgentsCore } from '../core.js';
6
- import { encodeSimple } from '../lib/encodings.js';
7
- import * as M from '../lib/matchers.js';
8
- import { compactMap } from '../lib/primitives.js';
9
- import { safeParse } from '../lib/schemas.js';
10
- import type { RequestOptions } from '../lib/sdks.js';
11
- import { pathToFunc } from '../lib/url.js';
12
- import type { APIError } from '../models/errors/apierror.js';
13
- import type {
6
+ import { InkeepAgentsManageCore } from "../core.js";
7
+ import { encodeSimple } from "../lib/encodings.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import { APIError } from "../models/errors/apierror.js";
15
+ import {
14
16
  ConnectionError,
15
17
  InvalidRequestError,
16
18
  RequestAbortedError,
17
19
  RequestTimeoutError,
18
20
  UnexpectedClientError,
19
- } from '../models/errors/httpclienterrors.js';
20
- import type { SDKValidationError } from '../models/errors/sdkvalidationerror.js';
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
23
  import {
22
- type ListMcpCatalogRequest,
24
+ ListMcpCatalogRequest,
23
25
  ListMcpCatalogRequest$zodSchema,
24
- type ListMcpCatalogResponse,
26
+ ListMcpCatalogResponse,
25
27
  ListMcpCatalogResponse$zodSchema,
26
- } from '../models/listmcpcatalogop.js';
27
- import { type APICall, APIPromise } from '../types/async.js';
28
- import type { Result } from '../types/fp.js';
28
+ } from "../models/listmcpcatalogop.js";
29
+ import { APICall, APIPromise } from "../types/async.js";
30
+ import { Result } from "../types/fp.js";
29
31
 
30
32
  export enum ListMcpCatalogAcceptEnum {
31
- applicationJsonAccept = 'application/json',
32
- applicationProblemPlusJsonAccept = 'application/problem+json',
33
+ applicationJsonAccept = "application/json",
34
+ applicationProblemPlusJsonAccept = "application/problem+json",
33
35
  }
34
36
 
35
37
  /**
@@ -39,9 +41,9 @@ export enum ListMcpCatalogAcceptEnum {
39
41
  * Get a list of available prebuilt MCP servers. If COMPOSIO_API_KEY is configured, also includes Composio servers for the tenant/project.
40
42
  */
41
43
  export function mcpCatalogListMCPCatalog(
42
- client$: InkeepAgentsCore,
44
+ client$: InkeepAgentsManageCore,
43
45
  request: ListMcpCatalogRequest,
44
- options?: RequestOptions
46
+ options?: RequestOptions,
45
47
  ): APIPromise<
46
48
  Result<
47
49
  ListMcpCatalogResponse,
@@ -54,15 +56,19 @@ export function mcpCatalogListMCPCatalog(
54
56
  | ConnectionError
55
57
  >
56
58
  > {
57
- return new APIPromise($do(client$, request, options));
59
+ return new APIPromise($do(
60
+ client$,
61
+ request,
62
+ options,
63
+ ));
58
64
  }
59
65
 
60
66
  async function $do(
61
- client$: InkeepAgentsCore,
67
+ client$: InkeepAgentsManageCore,
62
68
  request: ListMcpCatalogRequest,
63
69
  options?: RequestOptions & {
64
70
  acceptHeaderOverride?: ListMcpCatalogAcceptEnum;
65
- }
71
+ },
66
72
  ): Promise<
67
73
  [
68
74
  Result<
@@ -81,58 +87,69 @@ async function $do(
81
87
  const parsed$ = safeParse(
82
88
  request,
83
89
  (value$) => ListMcpCatalogRequest$zodSchema.parse(value$),
84
- 'Input validation failed'
90
+ "Input validation failed",
85
91
  );
86
92
  if (!parsed$.ok) {
87
- return [parsed$, { status: 'invalid' }];
93
+ return [parsed$, { status: "invalid" }];
88
94
  }
89
95
  const payload$ = parsed$.value;
90
96
  const body$ = null;
91
97
 
92
98
  const pathParams$ = {
93
- projectId: encodeSimple('projectId', payload$.projectId, {
99
+ projectId: encodeSimple("projectId", payload$.projectId, {
94
100
  explode: false,
95
- charEncoding: 'percent',
101
+ charEncoding: "percent",
96
102
  }),
97
- tenantId: encodeSimple('tenantId', payload$.tenantId, {
103
+ tenantId: encodeSimple("tenantId", payload$.tenantId, {
98
104
  explode: false,
99
- charEncoding: 'percent',
105
+ charEncoding: "percent",
100
106
  }),
101
107
  };
102
- const path$ = pathToFunc('/tenants/{tenantId}/projects/{projectId}/mcp-catalog')(pathParams$);
103
-
104
- const headers$ = new Headers(
105
- compactMap({
106
- Accept: options?.acceptHeaderOverride || 'application/json;q=1, application/problem+json;q=0',
107
- })
108
+ const path$ = pathToFunc(
109
+ "/tenants/{tenantId}/projects/{projectId}/mcp-catalog",
110
+ )(
111
+ pathParams$,
108
112
  );
109
113
 
114
+ const headers$ = new Headers(compactMap({
115
+ Accept: options?.acceptHeaderOverride
116
+ || "application/json;q=1, application/problem+json;q=0",
117
+ }));
118
+ const securityInput = await extractSecurity(client$._options.security);
119
+ const requestSecurity = resolveGlobalSecurity(securityInput);
120
+
110
121
  const context = {
111
122
  options: client$._options,
112
- baseURL: options?.serverURL ?? client$._baseURL ?? '',
113
- operationID: 'list-mcp-catalog',
123
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
124
+ operationID: "list-mcp-catalog",
114
125
  oAuth2Scopes: null,
115
- resolvedSecurity: null,
116
- securitySource: null,
117
- retryConfig: options?.retries || client$._options.retryConfig || { strategy: 'none' },
118
- retryCodes: options?.retryCodes || ['429', '500', '502', '503', '504'],
126
+ resolvedSecurity: requestSecurity,
127
+ securitySource: client$._options.security,
128
+ retryConfig: options?.retries
129
+ || client$._options.retryConfig
130
+ || { strategy: "none" },
131
+ retryCodes: options?.retryCodes || [
132
+ "429",
133
+ "500",
134
+ "502",
135
+ "503",
136
+ "504",
137
+ ],
119
138
  };
120
139
 
121
- const requestRes = client$._createRequest(
122
- context,
123
- {
124
- method: 'GET',
125
- baseURL: options?.serverURL,
126
- path: path$,
127
- headers: headers$,
128
- body: body$,
129
- userAgent: client$._options.userAgent,
130
- timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1,
131
- },
132
- options
133
- );
140
+ const requestRes = client$._createRequest(context, {
141
+ security: requestSecurity,
142
+ method: "GET",
143
+ baseURL: options?.serverURL,
144
+ path: path$,
145
+ headers: headers$,
146
+ body: body$,
147
+ userAgent: client$._options.userAgent,
148
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs
149
+ || -1,
150
+ }, options);
134
151
  if (!requestRes.ok) {
135
- return [requestRes, { status: 'invalid' }];
152
+ return [requestRes, { status: "invalid" }];
136
153
  }
137
154
  const req$ = requestRes.value;
138
155
 
@@ -143,7 +160,7 @@ async function $do(
143
160
  retryCodes: context.retryCodes,
144
161
  });
145
162
  if (!doResult.ok) {
146
- return [doResult, { status: 'request-error', request: req$ }];
163
+ return [doResult, { status: "request-error", request: req$ }];
147
164
  }
148
165
  const response = doResult.value;
149
166
  const responseFields$ = {
@@ -161,33 +178,33 @@ async function $do(
161
178
  | ConnectionError
162
179
  >(
163
180
  M.json(200, ListMcpCatalogResponse$zodSchema, {
164
- key: 'MCPCatalogListResponse',
181
+ key: "MCPCatalogListResponse",
165
182
  }),
166
183
  M.json(400, ListMcpCatalogResponse$zodSchema, {
167
- ctype: 'application/problem+json',
168
- key: 'BadRequest',
184
+ ctype: "application/problem+json",
185
+ key: "BadRequest",
169
186
  }),
170
187
  M.json(401, ListMcpCatalogResponse$zodSchema, {
171
- ctype: 'application/problem+json',
172
- key: 'Unauthorized',
188
+ ctype: "application/problem+json",
189
+ key: "Unauthorized",
173
190
  }),
174
191
  M.json(403, ListMcpCatalogResponse$zodSchema, {
175
- ctype: 'application/problem+json',
176
- key: 'Forbidden',
192
+ ctype: "application/problem+json",
193
+ key: "Forbidden",
177
194
  }),
178
195
  M.json(404, ListMcpCatalogResponse$zodSchema, {
179
- ctype: 'application/problem+json',
180
- key: 'NotFound',
196
+ ctype: "application/problem+json",
197
+ key: "NotFound",
181
198
  }),
182
199
  M.json(422, ListMcpCatalogResponse$zodSchema, {
183
- ctype: 'application/problem+json',
184
- key: 'UnprocessableEntity',
200
+ ctype: "application/problem+json",
201
+ key: "UnprocessableEntity",
185
202
  }),
186
203
  M.json(500, ListMcpCatalogResponse$zodSchema, {
187
- ctype: 'application/problem+json',
188
- key: 'InternalServerError',
189
- })
204
+ ctype: "application/problem+json",
205
+ key: "InternalServerError",
206
+ }),
190
207
  )(response, req$, { extraFields: responseFields$ });
191
208
 
192
- return [result$, { status: 'complete', request: req$, response }];
209
+ return [result$, { status: "complete", request: req$, response }];
193
210
  }