@inkeep/agents-manage-mcp 0.39.5 → 0.41.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.
- package/.vscode/settings.json +5 -0
- package/README.md +38 -139
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +27 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8462 -6978
- package/dist/index.js.map +1 -1
- package/manifest.json +61 -6
- package/package.json +12 -12
- package/scripts/fetch-openapi.mjs +22 -40
- package/scripts/generate.mjs +33 -66
- package/src/core.ts +3 -1
- package/src/funcs/agentArtifactComponentRelationsAssociateArtifactComponentWithAgent.ts +94 -78
- package/src/funcs/agentArtifactComponentRelationsCheckArtifactComponentAgentAssociation.ts +98 -81
- package/src/funcs/agentArtifactComponentRelationsGetAgentsUsingArtifactComponent.ts +94 -78
- package/src/funcs/agentArtifactComponentRelationsGetArtifactComponentsForAgent.ts +91 -76
- package/src/funcs/agentArtifactComponentRelationsRemoveArtifactComponentFromAgent.ts +96 -80
- package/src/funcs/agentDataComponentRelationsAssociateDataComponentWithAgent.ts +92 -77
- package/src/funcs/agentDataComponentRelationsCheckDataComponentAgentAssociation.ts +95 -79
- package/src/funcs/agentDataComponentRelationsGetAgentsUsingDataComponent.ts +91 -76
- package/src/funcs/agentDataComponentRelationsGetDataComponentsForAgent.ts +91 -76
- package/src/funcs/agentDataComponentRelationsRemoveDataComponentFromAgent.ts +93 -78
- package/src/funcs/agentGetFullAgentDefinition.ts +89 -74
- package/src/funcs/agentGetRelatedAgentInfos.ts +91 -76
- package/src/funcs/agentsCreateAgent.ts +88 -73
- package/src/funcs/agentsDeleteAgent.ts +74 -58
- package/src/funcs/agentsGetAgent.ts +90 -73
- package/src/funcs/agentsListAgents.ts +89 -74
- package/src/funcs/agentsUpdateAgent.ts +92 -75
- package/src/funcs/apiKeysCreateAPIKey.ts +88 -73
- package/src/funcs/apiKeysDeleteAPIKey.ts +74 -58
- package/src/funcs/apiKeysGetAPIKeyById.ts +90 -73
- package/src/funcs/apiKeysListAPIKeys.ts +90 -75
- package/src/funcs/apiKeysUpdateAPIKey.ts +92 -75
- package/src/funcs/artifactComponentCreateArtifactComponent.ts +89 -74
- package/src/funcs/artifactComponentDeleteArtifactComponent.ts +74 -60
- package/src/funcs/artifactComponentGetArtifactComponentById.ts +89 -74
- package/src/funcs/artifactComponentListArtifactComponents.ts +90 -75
- package/src/funcs/artifactComponentUpdateArtifactComponent.ts +91 -76
- package/src/funcs/cliGetApiCliMe.ts +144 -0
- package/src/funcs/contextConfigCreateContextConfig.ts +91 -76
- package/src/funcs/contextConfigDeleteContextConfig.ts +87 -73
- package/src/funcs/contextConfigGetContextConfigById.ts +91 -76
- package/src/funcs/contextConfigListContextConfigs.ts +92 -77
- package/src/funcs/contextConfigUpdateContextConfig.ts +93 -78
- package/src/funcs/conversationsGetConversation.ts +92 -77
- package/src/funcs/credentialCreateCredential.ts +90 -73
- package/src/funcs/credentialDeleteCredential.ts +73 -59
- package/src/funcs/credentialGetCredentialById.ts +89 -74
- package/src/funcs/credentialListCredentials.ts +91 -74
- package/src/funcs/credentialStoreCreateCredentialInStore.ts +91 -76
- package/src/funcs/credentialStoreListCredentialStores.ts +87 -72
- package/src/funcs/credentialUpdateCredential.ts +91 -76
- package/src/funcs/dataComponentCreateDataComponent.ts +90 -73
- package/src/funcs/dataComponentDeleteDataComponent.ts +74 -60
- package/src/funcs/dataComponentGetDataComponentById.ts +89 -74
- package/src/funcs/dataComponentListDataComponents.ts +91 -74
- package/src/funcs/dataComponentUpdateDataComponent.ts +91 -76
- package/src/funcs/externalAgentsCreateExternalAgent.ts +90 -73
- package/src/funcs/externalAgentsDeleteExternalAgent.ts +74 -60
- package/src/funcs/externalAgentsGetExternalAgentById.ts +89 -74
- package/src/funcs/externalAgentsListExternalAgents.ts +91 -74
- package/src/funcs/externalAgentsUpdateExternalAgent.ts +91 -76
- package/src/funcs/fullAgentCreateFullAgent.ts +89 -74
- package/src/funcs/fullAgentDeleteFullAgent.ts +86 -70
- package/src/funcs/fullAgentGetFullAgent.ts +90 -73
- package/src/funcs/fullAgentUpdateFullAgent.ts +92 -75
- package/src/funcs/fullProjectCreateFullProject.ts +87 -72
- package/src/funcs/fullProjectDeleteFullProject.ts +82 -68
- package/src/funcs/fullProjectGetFullProject.ts +86 -71
- package/src/funcs/fullProjectUpdateFullProject.ts +88 -73
- package/src/funcs/functionToolsCreateFunctionTool.ts +91 -76
- package/src/funcs/functionToolsDeleteFunctionTool.ts +87 -73
- package/src/funcs/functionToolsGetFunctionTool.ts +91 -76
- package/src/funcs/functionToolsListFunctionTools.ts +92 -77
- package/src/funcs/functionToolsUpdateFunctionTool.ts +93 -78
- package/src/funcs/functionsCreateFunction.ts +90 -73
- package/src/funcs/functionsDeleteFunction.ts +86 -70
- package/src/funcs/functionsGetFunction.ts +90 -73
- package/src/funcs/functionsListFunctions.ts +91 -74
- package/src/funcs/functionsUpdateFunction.ts +92 -75
- package/src/funcs/health.ts +61 -45
- package/src/funcs/invitationsGetApiInvitationsPending.ts +60 -52
- package/src/funcs/mcpCatalogListMCPCatalog.ts +88 -71
- package/src/funcs/oAuthInitiateOauthLoginPublic.ts +74 -62
- package/src/funcs/oAuthOauthCallback.ts +73 -61
- package/src/funcs/playgroundCreatePlaygroundToken.ts +75 -62
- package/src/funcs/projectsCreateProject.ts +87 -72
- package/src/funcs/projectsDeleteProject.ts +86 -71
- package/src/funcs/projectsGetProjectById.ts +86 -71
- package/src/funcs/projectsListProjects.ts +87 -72
- package/src/funcs/projectsUpdateProject.ts +88 -73
- package/src/funcs/subAgentCreateSubagent.ts +91 -76
- package/src/funcs/subAgentDeleteSubagent.ts +77 -61
- package/src/funcs/subAgentExternalAgentRelationsCreateSubAgentExternalAgentRelation.ts +95 -79
- package/src/funcs/subAgentExternalAgentRelationsDeleteSubAgentExternalAgentRelation.ts +80 -65
- package/src/funcs/subAgentExternalAgentRelationsGetSubAgentExternalAgentRelationById.ts +95 -79
- package/src/funcs/subAgentExternalAgentRelationsListSubAgentExternalAgentRelations.ts +96 -80
- package/src/funcs/subAgentExternalAgentRelationsUpdateSubAgentExternalAgentRelation.ts +97 -81
- package/src/funcs/subAgentGetSubagentById.ts +91 -76
- package/src/funcs/subAgentListSubagents.ts +92 -77
- package/src/funcs/subAgentRelationsCreateSubAgentRelation.ts +91 -76
- package/src/funcs/subAgentRelationsDeleteSubAgentRelation.ts +76 -62
- package/src/funcs/subAgentRelationsGetSubAgentRelationById.ts +91 -76
- package/src/funcs/subAgentRelationsListSubAgentRelations.ts +96 -81
- package/src/funcs/subAgentRelationsUpdateSubAgentRelation.ts +93 -78
- package/src/funcs/subAgentTeamAgentRelationsCreateSubAgentTeamAgentRelation.ts +93 -78
- package/src/funcs/subAgentTeamAgentRelationsDeleteSubAgentTeamAgentRelation.ts +78 -64
- package/src/funcs/subAgentTeamAgentRelationsGetSubAgentTeamAgentRelationById.ts +93 -78
- package/src/funcs/subAgentTeamAgentRelationsListSubAgentTeamAgentRelations.ts +94 -79
- package/src/funcs/subAgentTeamAgentRelationsUpdateSubAgentTeamAgentRelation.ts +95 -80
- package/src/funcs/subAgentToolRelationsCreateSubagentToolRelation.ts +91 -76
- package/src/funcs/subAgentToolRelationsDeleteSubagentToolRelation.ts +76 -62
- package/src/funcs/subAgentToolRelationsGetSubagentToolRelation.ts +91 -76
- package/src/funcs/subAgentToolRelationsGetSubagentsForTool.ts +94 -79
- package/src/funcs/subAgentToolRelationsListSubagentToolRelations.ts +94 -79
- package/src/funcs/subAgentToolRelationsUpdateSubagentToolRelation.ts +93 -78
- package/src/funcs/subAgentUpdateSubagent.ts +93 -78
- package/src/funcs/thirdPartyMCPServersGetOauthRedirectUrl.ts +209 -0
- package/src/funcs/thirdPartyMCPServersGetThirdPartyMCPServer.ts +89 -74
- package/src/funcs/toolsCreateTool.ts +88 -73
- package/src/funcs/toolsDeleteTool.ts +97 -58
- package/src/funcs/toolsGetTool.ts +90 -73
- package/src/funcs/toolsGetUserCredentialForTool.ts +211 -0
- package/src/funcs/toolsListTools.ts +90 -75
- package/src/funcs/toolsUpdateTool.ts +92 -75
- package/src/funcs/userOrganizationsGetApiUsersUserIdOrganizations.ts +62 -52
- package/src/funcs/userOrganizationsPostApiUsersUserIdOrganizations.ts +64 -54
- package/src/hooks/header-forwarding-hook.ts +4 -2
- package/src/hooks/hooks.ts +25 -14
- package/src/hooks/registration.ts +5 -4
- package/src/hooks/types.ts +18 -8
- package/src/index.ts +2 -1
- package/src/lib/base64.ts +8 -3
- package/src/lib/config.ts +19 -11
- package/src/lib/dlv.ts +3 -2
- package/src/lib/encodings.ts +118 -87
- package/src/lib/env.ts +17 -7
- package/src/lib/files.ts +29 -28
- package/src/lib/http.ts +66 -46
- package/src/lib/is-plain-object.ts +2 -1
- package/src/lib/logger.ts +1 -0
- package/src/lib/matchers.ts +111 -94
- package/src/lib/primitives.ts +14 -8
- package/src/lib/result.ts +4 -1
- package/src/lib/retries.ts +26 -18
- package/src/lib/schemas.ts +20 -26
- package/src/lib/sdks.ts +115 -85
- package/src/lib/security.ts +90 -46
- package/src/lib/url.ts +10 -5
- package/src/mcp-server/cli/start/command.ts +54 -41
- package/src/mcp-server/cli/start/impl.ts +52 -38
- package/src/mcp-server/cli.ts +2 -1
- package/src/mcp-server/console-logger.ts +27 -12
- package/src/mcp-server/extensions.ts +11 -6
- package/src/mcp-server/mcp-server.ts +8 -7
- package/src/mcp-server/prompts.ts +64 -51
- package/src/mcp-server/resources.ts +54 -35
- package/src/mcp-server/scopes.ts +1 -0
- package/src/mcp-server/server.ts +25 -6
- package/src/mcp-server/shared.ts +35 -24
- package/src/mcp-server/tools/agentArtifactComponentRelationsAssociateArtifactComponentWithAgent.ts +34 -33
- package/src/mcp-server/tools/agentArtifactComponentRelationsCheckArtifactComponentAgentAssociation.ts +34 -33
- package/src/mcp-server/tools/agentArtifactComponentRelationsGetAgentsUsingArtifactComponent.ts +34 -32
- package/src/mcp-server/tools/agentArtifactComponentRelationsGetArtifactComponentsForAgent.ts +34 -32
- package/src/mcp-server/tools/agentArtifactComponentRelationsRemoveArtifactComponentFromAgent.ts +34 -32
- package/src/mcp-server/tools/agentDataComponentRelationsAssociateDataComponentWithAgent.ts +33 -32
- package/src/mcp-server/tools/agentDataComponentRelationsCheckDataComponentAgentAssociation.ts +34 -32
- package/src/mcp-server/tools/agentDataComponentRelationsGetAgentsUsingDataComponent.ts +33 -32
- package/src/mcp-server/tools/agentDataComponentRelationsGetDataComponentsForAgent.ts +33 -32
- package/src/mcp-server/tools/agentDataComponentRelationsRemoveDataComponentFromAgent.ts +33 -32
- package/src/mcp-server/tools/agentGetFullAgentDefinition.ts +16 -13
- package/src/mcp-server/tools/agentGetRelatedAgentInfos.ts +16 -13
- package/src/mcp-server/tools/agentsCreateAgent.ts +16 -13
- package/src/mcp-server/tools/agentsDeleteAgent.ts +16 -13
- package/src/mcp-server/tools/agentsGetAgent.ts +16 -13
- package/src/mcp-server/tools/agentsListAgents.ts +16 -13
- package/src/mcp-server/tools/agentsUpdateAgent.ts +16 -13
- package/src/mcp-server/tools/apiKeysCreateAPIKey.ts +16 -13
- package/src/mcp-server/tools/apiKeysDeleteAPIKey.ts +16 -13
- package/src/mcp-server/tools/apiKeysGetAPIKeyById.ts +16 -13
- package/src/mcp-server/tools/apiKeysListAPIKeys.ts +16 -13
- package/src/mcp-server/tools/apiKeysUpdateAPIKey.ts +16 -13
- package/src/mcp-server/tools/artifactComponentCreateArtifactComponent.ts +19 -14
- package/src/mcp-server/tools/artifactComponentDeleteArtifactComponent.ts +19 -14
- package/src/mcp-server/tools/artifactComponentGetArtifactComponentById.ts +15 -12
- package/src/mcp-server/tools/artifactComponentListArtifactComponents.ts +19 -14
- package/src/mcp-server/tools/artifactComponentUpdateArtifactComponent.ts +19 -14
- package/src/mcp-server/tools/cliGetApiCliMe.ts +38 -0
- package/src/mcp-server/tools/contextConfigCreateContextConfig.ts +19 -14
- package/src/mcp-server/tools/contextConfigDeleteContextConfig.ts +19 -14
- package/src/mcp-server/tools/contextConfigGetContextConfigById.ts +19 -14
- package/src/mcp-server/tools/contextConfigListContextConfigs.ts +32 -28
- package/src/mcp-server/tools/contextConfigUpdateContextConfig.ts +19 -14
- package/src/mcp-server/tools/conversationsGetConversation.ts +16 -13
- package/src/mcp-server/tools/credentialCreateCredential.ts +16 -13
- package/src/mcp-server/tools/credentialDeleteCredential.ts +16 -13
- package/src/mcp-server/tools/credentialGetCredentialById.ts +16 -13
- package/src/mcp-server/tools/credentialListCredentials.ts +16 -13
- package/src/mcp-server/tools/credentialStoreCreateCredentialInStore.ts +19 -14
- package/src/mcp-server/tools/credentialStoreListCredentialStores.ts +19 -14
- package/src/mcp-server/tools/credentialUpdateCredential.ts +16 -13
- package/src/mcp-server/tools/dataComponentCreateDataComponent.ts +19 -14
- package/src/mcp-server/tools/dataComponentDeleteDataComponent.ts +19 -14
- package/src/mcp-server/tools/dataComponentGetDataComponentById.ts +19 -14
- package/src/mcp-server/tools/dataComponentListDataComponents.ts +32 -28
- package/src/mcp-server/tools/dataComponentUpdateDataComponent.ts +19 -14
- package/src/mcp-server/tools/externalAgentsCreateExternalAgent.ts +19 -14
- package/src/mcp-server/tools/externalAgentsDeleteExternalAgent.ts +19 -14
- package/src/mcp-server/tools/externalAgentsGetExternalAgentById.ts +19 -14
- package/src/mcp-server/tools/externalAgentsListExternalAgents.ts +19 -14
- package/src/mcp-server/tools/externalAgentsUpdateExternalAgent.ts +19 -14
- package/src/mcp-server/tools/fullAgentCreateFullAgent.ts +16 -13
- package/src/mcp-server/tools/fullAgentDeleteFullAgent.ts +16 -13
- package/src/mcp-server/tools/fullAgentGetFullAgent.ts +16 -13
- package/src/mcp-server/tools/fullAgentUpdateFullAgent.ts +16 -13
- package/src/mcp-server/tools/fullProjectCreateFullProject.ts +16 -13
- package/src/mcp-server/tools/fullProjectDeleteFullProject.ts +16 -13
- package/src/mcp-server/tools/fullProjectGetFullProject.ts +16 -13
- package/src/mcp-server/tools/fullProjectUpdateFullProject.ts +16 -13
- package/src/mcp-server/tools/functionToolsCreateFunctionTool.ts +32 -28
- package/src/mcp-server/tools/functionToolsDeleteFunctionTool.ts +32 -28
- package/src/mcp-server/tools/functionToolsGetFunctionTool.ts +16 -13
- package/src/mcp-server/tools/functionToolsListFunctionTools.ts +32 -28
- package/src/mcp-server/tools/functionToolsUpdateFunctionTool.ts +32 -28
- package/src/mcp-server/tools/functionsCreateFunction.ts +16 -13
- package/src/mcp-server/tools/functionsDeleteFunction.ts +16 -13
- package/src/mcp-server/tools/functionsGetFunction.ts +16 -13
- package/src/mcp-server/tools/functionsListFunctions.ts +16 -13
- package/src/mcp-server/tools/functionsUpdateFunction.ts +16 -13
- package/src/mcp-server/tools/health.ts +14 -12
- package/src/mcp-server/tools/invitationsGetApiInvitationsPending.ts +19 -14
- package/src/mcp-server/tools/mcpCatalogListMCPCatalog.ts +16 -13
- package/src/mcp-server/tools/oAuthInitiateOauthLoginPublic.ts +16 -13
- package/src/mcp-server/tools/oAuthOauthCallback.ts +16 -13
- package/src/mcp-server/tools/projectsCreateProject.ts +16 -13
- package/src/mcp-server/tools/projectsDeleteProject.ts +16 -13
- package/src/mcp-server/tools/projectsGetProjectById.ts +16 -13
- package/src/mcp-server/tools/projectsListProjects.ts +16 -13
- package/src/mcp-server/tools/projectsUpdateProject.ts +16 -13
- package/src/mcp-server/tools/subAgentCreateSubagent.ts +16 -13
- package/src/mcp-server/tools/subAgentDeleteSubagent.ts +16 -13
- package/src/mcp-server/tools/subAgentExternalAgentRelationsCreateSubAgentExternalAgentRelation.ts +34 -33
- package/src/mcp-server/tools/subAgentExternalAgentRelationsDeleteSubAgentExternalAgentRelation.ts +34 -33
- package/src/mcp-server/tools/subAgentExternalAgentRelationsGetSubAgentExternalAgentRelationById.ts +34 -33
- package/src/mcp-server/tools/subAgentExternalAgentRelationsListSubAgentExternalAgentRelations.ts +34 -31
- package/src/mcp-server/tools/subAgentExternalAgentRelationsUpdateSubAgentExternalAgentRelation.ts +34 -33
- package/src/mcp-server/tools/subAgentGetSubagentById.ts +16 -13
- package/src/mcp-server/tools/subAgentListSubagents.ts +16 -13
- package/src/mcp-server/tools/subAgentRelationsCreateSubAgentRelation.ts +19 -14
- package/src/mcp-server/tools/subAgentRelationsDeleteSubAgentRelation.ts +19 -14
- package/src/mcp-server/tools/subAgentRelationsGetSubAgentRelationById.ts +19 -14
- package/src/mcp-server/tools/subAgentRelationsListSubAgentRelations.ts +19 -14
- package/src/mcp-server/tools/subAgentRelationsUpdateSubAgentRelation.ts +19 -14
- package/src/mcp-server/tools/subAgentTeamAgentRelationsCreateSubAgentTeamAgentRelation.ts +33 -32
- package/src/mcp-server/tools/subAgentTeamAgentRelationsDeleteSubAgentTeamAgentRelation.ts +33 -32
- package/src/mcp-server/tools/subAgentTeamAgentRelationsGetSubAgentTeamAgentRelationById.ts +34 -32
- package/src/mcp-server/tools/subAgentTeamAgentRelationsListSubAgentTeamAgentRelations.ts +33 -32
- package/src/mcp-server/tools/subAgentTeamAgentRelationsUpdateSubAgentTeamAgentRelation.ts +33 -32
- package/src/mcp-server/tools/subAgentToolRelationsCreateSubagentToolRelation.ts +33 -30
- package/src/mcp-server/tools/subAgentToolRelationsDeleteSubagentToolRelation.ts +33 -30
- package/src/mcp-server/tools/subAgentToolRelationsGetSubagentToolRelation.ts +20 -16
- package/src/mcp-server/tools/subAgentToolRelationsGetSubagentsForTool.ts +19 -14
- package/src/mcp-server/tools/subAgentToolRelationsListSubagentToolRelations.ts +33 -30
- package/src/mcp-server/tools/subAgentToolRelationsUpdateSubagentToolRelation.ts +33 -30
- package/src/mcp-server/tools/subAgentUpdateSubagent.ts +16 -13
- package/src/mcp-server/tools/thirdPartyMCPServersGetOauthRedirectUrl.ts +47 -0
- package/src/mcp-server/tools/thirdPartyMCPServersGetThirdPartyMCPServer.ts +15 -12
- package/src/mcp-server/tools/toolsCreateTool.ts +16 -13
- package/src/mcp-server/tools/toolsDeleteTool.ts +16 -13
- package/src/mcp-server/tools/toolsGetTool.ts +16 -13
- package/src/mcp-server/tools/toolsGetUserCredentialForTool.ts +43 -0
- package/src/mcp-server/tools/toolsListTools.ts +16 -13
- package/src/mcp-server/tools/toolsUpdateTool.ts +16 -13
- package/src/mcp-server/tools/userOrganizationsGetApiUsersUserIdOrganizations.ts +33 -30
- package/src/mcp-server/tools/userOrganizationsPostApiUsersUserIdOrganizations.ts +33 -30
- package/src/mcp-server/tools.ts +111 -79
- package/src/models/agent.ts +3 -2
- package/src/models/agentcreate.ts +3 -2
- package/src/models/agentlistresponse.ts +6 -5
- package/src/models/agentresponse.ts +4 -3
- package/src/models/agentstopwhen.ts +3 -2
- package/src/models/agentupdate.ts +3 -2
- package/src/models/agentwithincontextofproject.ts +30 -21
- package/src/models/agentwithincontextofprojectresponse.ts +5 -6
- package/src/models/apikey.ts +3 -2
- package/src/models/apikeycreate.ts +3 -2
- package/src/models/apikeylistresponse.ts +6 -5
- package/src/models/apikeyresponse.ts +4 -3
- package/src/models/apikeyupdate.ts +3 -2
- package/src/models/artifactcomponent.ts +6 -5
- package/src/models/artifactcomponentarrayresponse.ts +7 -5
- package/src/models/artifactcomponentcreate.ts +5 -6
- package/src/models/artifactcomponentlistresponse.ts +8 -6
- package/src/models/artifactcomponentresponse.ts +7 -5
- package/src/models/artifactcomponentupdate.ts +5 -6
- package/src/models/associateartifactcomponentwithagentop.ts +36 -32
- package/src/models/associatedatacomponentwithagentop.ts +28 -25
- package/src/models/badrequest.ts +28 -16
- package/src/models/candelegatetoexternalagent.ts +4 -5
- package/src/models/candelegatetoteamagent.ts +4 -5
- package/src/models/canuseitem.ts +9 -10
- package/src/models/checkartifactcomponentagentassociationop.ts +33 -31
- package/src/models/checkdatacomponentagentassociationop.ts +22 -19
- package/src/models/componentassociation.ts +7 -9
- package/src/models/componentassociationlistresponse.ts +5 -6
- package/src/models/contextconfig.ts +5 -6
- package/src/models/contextconfigcreate.ts +15 -13
- package/src/models/contextconfiglistresponse.ts +5 -6
- package/src/models/contextconfigresponse.ts +7 -9
- package/src/models/contextconfigupdate.ts +15 -13
- package/src/models/conversationwithformattedmessagesresponse.ts +5 -8
- package/src/models/createagentop.ts +23 -16
- package/src/models/createapikeyop.ts +41 -40
- package/src/models/createartifactcomponentop.ts +23 -20
- package/src/models/createcontextconfigop.ts +26 -20
- package/src/models/createcredentialinstoreop.ts +26 -22
- package/src/models/createcredentialinstorerequest.ts +4 -5
- package/src/models/createcredentialinstoreresponse.ts +4 -7
- package/src/models/createcredentialop.ts +23 -20
- package/src/models/createdatacomponentop.ts +25 -19
- package/src/models/createexternalagentop.ts +25 -19
- package/src/models/createfullagentop.ts +29 -23
- package/src/models/createfullprojectop.ts +25 -21
- package/src/models/createfunctionop.ts +27 -22
- package/src/models/createfunctiontoolop.ts +26 -20
- package/src/models/createplaygroundtokenop.ts +17 -30
- package/src/models/createprojectop.ts +39 -35
- package/src/models/createsubagentexternalagentrelationop.ts +30 -24
- package/src/models/createsubagentop.ts +28 -23
- package/src/models/createsubagentrelationop.ts +24 -21
- package/src/models/createsubagentteamagentrelationop.ts +30 -24
- package/src/models/createsubagenttoolrelationop.ts +26 -22
- package/src/models/createtoolop.ts +26 -16
- package/src/models/credentialreference.ts +35 -14
- package/src/models/credentialreferencecreate.ts +25 -7
- package/src/models/credentialreferencelistresponse.ts +8 -6
- package/src/models/credentialreferenceresponse.ts +7 -5
- package/src/models/credentialreferenceupdate.ts +25 -7
- package/src/models/credentialstore.ts +20 -10
- package/src/models/credentialstorelistresponse.ts +7 -5
- package/src/models/datacomponent.ts +5 -4
- package/src/models/datacomponentarrayresponse.ts +4 -5
- package/src/models/datacomponentcreate.ts +6 -5
- package/src/models/datacomponentlistresponse.ts +5 -6
- package/src/models/datacomponentresponse.ts +7 -9
- package/src/models/datacomponentupdate.ts +6 -5
- package/src/models/deleteagentop.ts +11 -10
- package/src/models/deleteapikeyop.ts +15 -17
- package/src/models/deleteartifactcomponentop.ts +9 -12
- package/src/models/deletecontextconfigop.ts +21 -18
- package/src/models/deletecredentialop.ts +9 -12
- package/src/models/deletedatacomponentop.ts +9 -12
- package/src/models/deleteexternalagentop.ts +9 -12
- package/src/models/deletefullagentop.ts +20 -17
- package/src/models/deletefullprojectop.ts +19 -16
- package/src/models/deletefunctionop.ts +22 -20
- package/src/models/deletefunctiontoolop.ts +21 -18
- package/src/models/deleteprojectop.ts +33 -32
- package/src/models/deletesubagentexternalagentrelationop.ts +11 -14
- package/src/models/deletesubagentop.ts +12 -16
- package/src/models/deletesubagentrelationop.ts +10 -13
- package/src/models/deletesubagentteamagentrelationop.ts +11 -14
- package/src/models/deletesubagenttoolrelationop.ts +10 -13
- package/src/models/deletetoolop.ts +34 -12
- package/src/models/errorresponse.ts +3 -2
- package/src/models/errors/apierror.ts +5 -4
- package/src/models/errors/httpclienterrors.ts +8 -7
- package/src/models/errors/sdkvalidationerror.ts +7 -58
- package/src/models/existsresponse.ts +3 -2
- package/src/models/externalagent.ts +5 -4
- package/src/models/externalagentcreate.ts +6 -5
- package/src/models/externalagentlistresponse.ts +5 -6
- package/src/models/externalagentresponse.ts +7 -9
- package/src/models/externalagentupdate.ts +6 -5
- package/src/models/forbidden.ts +28 -16
- package/src/models/fullagentagentinsert.ts +50 -39
- package/src/models/fullprojectdefinition.ts +52 -38
- package/src/models/fullprojectdefinitionresponse.ts +5 -6
- package/src/models/function.ts +3 -2
- package/src/models/functioncreate.ts +3 -2
- package/src/models/functionlistresponse.ts +9 -11
- package/src/models/functionresponse.ts +7 -5
- package/src/models/functiontool.ts +3 -2
- package/src/models/functiontoolcreate.ts +4 -3
- package/src/models/functiontoollistresponse.ts +5 -6
- package/src/models/functiontoolresponse.ts +7 -9
- package/src/models/functiontoolupdate.ts +4 -3
- package/src/models/functionupdate.ts +3 -2
- package/src/models/getagentop.ts +25 -18
- package/src/models/getagentsusingartifactcomponentop.ts +27 -21
- package/src/models/getagentsusingdatacomponentop.ts +27 -21
- package/src/models/getapiclimeop.ts +58 -0
- package/src/models/getapiinvitationspendingop.ts +10 -16
- package/src/models/getapikeybyidop.ts +34 -33
- package/src/models/getapiusersuseridorganizationsop.ts +13 -17
- package/src/models/getartifactcomponentbyidop.ts +22 -19
- package/src/models/getartifactcomponentsforagentop.ts +25 -21
- package/src/models/getcontextconfigbyidop.ts +23 -20
- package/src/models/getconversationop.ts +25 -20
- package/src/models/getcredentialbyidop.ts +22 -19
- package/src/models/getdatacomponentbyidop.ts +22 -19
- package/src/models/getdatacomponentsforagentop.ts +23 -20
- package/src/models/getexternalagentbyidop.ts +22 -19
- package/src/models/getfullagentdefinitionop.ts +27 -21
- package/src/models/getfullagentop.ts +38 -31
- package/src/models/getfullprojectop.ts +25 -22
- package/src/models/getfunctionop.ts +26 -16
- package/src/models/getfunctiontoolop.ts +23 -20
- package/src/models/getoauthredirecturlop.ts +111 -0
- package/src/models/getprojectbyidop.ts +25 -20
- package/src/models/getrelatedagentinfosop.ts +25 -21
- package/src/models/getsubagentbyidop.ts +25 -19
- package/src/models/getsubagentexternalagentrelationbyidop.ts +29 -23
- package/src/models/getsubagentrelationbyidop.ts +23 -20
- package/src/models/getsubagentsfortoolop.ts +27 -21
- package/src/models/getsubagentteamagentrelationbyidop.ts +29 -23
- package/src/models/getsubagenttoolrelationop.ts +25 -21
- package/src/models/getthirdpartymcpserverop.ts +43 -22
- package/src/models/gettoolop.ts +34 -25
- package/src/models/getusercredentialfortoolop.ts +64 -0
- package/src/models/healthop.ts +4 -3
- package/src/models/initiateoauthloginpublicop.ts +11 -13
- package/src/models/internalservererror.ts +34 -20
- package/src/models/listagentsop.ts +25 -15
- package/src/models/listapikeysop.ts +26 -16
- package/src/models/listartifactcomponentsop.ts +23 -19
- package/src/models/listcontextconfigsop.ts +22 -19
- package/src/models/listcredentialsop.ts +23 -19
- package/src/models/listcredentialstoresop.ts +21 -18
- package/src/models/listdatacomponentsop.ts +21 -18
- package/src/models/listexternalagentsop.ts +21 -18
- package/src/models/listfunctionsop.ts +36 -35
- package/src/models/listfunctiontoolsop.ts +22 -19
- package/src/models/listmcpcatalogop.ts +23 -21
- package/src/models/listprojectsop.ts +34 -27
- package/src/models/listsubagentexternalagentrelationsop.ts +26 -21
- package/src/models/listsubagentrelationsop.ts +24 -20
- package/src/models/listsubagentsop.ts +37 -36
- package/src/models/listsubagentteamagentrelationsop.ts +28 -22
- package/src/models/listsubagenttoolrelationsop.ts +27 -21
- package/src/models/listtoolsop.ts +41 -18
- package/src/models/mcpcataloglistresponse.ts +19 -13
- package/src/models/mcptool.ts +54 -25
- package/src/models/mcptoollistresponse.ts +6 -5
- package/src/models/mcptoolresponse.ts +6 -6
- package/src/models/model.ts +4 -3
- package/src/models/modelsettings.ts +4 -3
- package/src/models/notfound.ts +28 -16
- package/src/models/oauthcallbackop.ts +20 -22
- package/src/models/pagination.ts +3 -2
- package/src/models/postapiusersuseridorganizationsop.ts +18 -25
- package/src/models/project.ts +7 -6
- package/src/models/projectcreate.ts +7 -6
- package/src/models/projectlistresponse.ts +6 -5
- package/src/models/projectmodel.ts +4 -3
- package/src/models/projectresponse.ts +6 -6
- package/src/models/projectupdate.ts +7 -6
- package/src/models/relatedagentinfo.ts +8 -6
- package/src/models/relatedagentinfolistresponse.ts +8 -6
- package/src/models/removeartifactcomponentfromagentop.ts +25 -19
- package/src/models/removedatacomponentfromagentop.ts +25 -19
- package/src/models/removedresponse.ts +6 -6
- package/src/models/security.ts +9 -12
- package/src/models/statuscomponent.ts +17 -11
- package/src/models/statusupdate.ts +7 -3
- package/src/models/stopwhen.ts +3 -2
- package/src/models/subagent.ts +7 -6
- package/src/models/subagentartifactcomponentresponse.ts +4 -7
- package/src/models/subagentcreate.ts +8 -7
- package/src/models/subagentdatacomponentresponse.ts +4 -7
- package/src/models/subagentexternalagentrelation.ts +3 -4
- package/src/models/subagentexternalagentrelationcreate.ts +4 -5
- package/src/models/subagentexternalagentrelationlistresponse.ts +6 -7
- package/src/models/subagentexternalagentrelationresponse.ts +5 -6
- package/src/models/subagentexternalagentrelationupdate.ts +4 -5
- package/src/models/subagentlistresponse.ts +9 -11
- package/src/models/subagentrelation.ts +6 -4
- package/src/models/subagentrelationcreate.ts +15 -8
- package/src/models/subagentrelationlistresponse.ts +8 -6
- package/src/models/subagentrelationresponse.ts +7 -5
- package/src/models/subagentrelationupdate.ts +15 -8
- package/src/models/subagentresponse.ts +7 -5
- package/src/models/subagentteamagentrelation.ts +3 -4
- package/src/models/subagentteamagentrelationcreate.ts +4 -5
- package/src/models/subagentteamagentrelationlistresponse.ts +6 -7
- package/src/models/subagentteamagentrelationresponse.ts +5 -6
- package/src/models/subagentteamagentrelationupdate.ts +4 -5
- package/src/models/subagenttoolrelation.ts +13 -15
- package/src/models/subagenttoolrelationcreate.ts +13 -13
- package/src/models/subagenttoolrelationlistresponse.ts +6 -7
- package/src/models/subagenttoolrelationresponse.ts +5 -6
- package/src/models/subagenttoolrelationupdate.ts +13 -13
- package/src/models/subagentupdate.ts +8 -7
- package/src/models/teamagent.ts +3 -2
- package/src/models/thirdpartymcpserverresponse.ts +19 -13
- package/src/models/toolcreate.ts +43 -24
- package/src/models/toolupdate.ts +43 -24
- package/src/models/unauthorized.ts +26 -13
- package/src/models/unprocessableentity.ts +34 -20
- package/src/models/updateagentop.ts +24 -17
- package/src/models/updateapikeyop.ts +34 -30
- package/src/models/updateartifactcomponentop.ts +24 -21
- package/src/models/updatecontextconfigop.ts +27 -21
- package/src/models/updatecredentialop.ts +24 -21
- package/src/models/updatedatacomponentop.ts +26 -20
- package/src/models/updateexternalagentop.ts +26 -20
- package/src/models/updatefullagentop.ts +29 -23
- package/src/models/updatefullprojectop.ts +25 -21
- package/src/models/updatefunctionop.ts +28 -23
- package/src/models/updatefunctiontoolop.ts +27 -21
- package/src/models/updateprojectop.ts +38 -34
- package/src/models/updatesubagentexternalagentrelationop.ts +31 -25
- package/src/models/updatesubagentop.ts +29 -24
- package/src/models/updatesubagentrelationop.ts +25 -22
- package/src/models/updatesubagentteamagentrelationop.ts +31 -25
- package/src/models/updatesubagenttoolrelationop.ts +27 -23
- package/src/models/updatetoolop.ts +27 -17
- package/src/types/async.ts +24 -9
- package/src/types/bigint.ts +88 -0
- package/src/types/blobs.ts +5 -4
- package/src/types/enums.ts +2 -1
- package/src/types/fp.ts +4 -1
- package/src/types/rfcdate.ts +8 -5
- package/src/types/streams.ts +8 -5
- package/src/zod-int.ts +9 -0
- package/tsconfig.json +3 -2
- package/openapi.json +0 -17114
- package/scripts/watch-and-fetch.mjs +0 -72
- package/src/hooks/auth-hook.ts +0 -32
- package/src/http-server.ts +0 -34
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4c45c12f24f0
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { type InternalServerError, InternalServerError$zodSchema } from './internalservererror.js';
|
|
9
|
-
import { type NotFound, NotFound$zodSchema } from './notfound.js';
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
8
|
+
import { Forbidden, Forbidden$zodSchema } from "./forbidden.js";
|
|
10
9
|
import {
|
|
11
|
-
|
|
10
|
+
InternalServerError,
|
|
11
|
+
InternalServerError$zodSchema,
|
|
12
|
+
} from "./internalservererror.js";
|
|
13
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
14
|
+
import {
|
|
15
|
+
SubAgentRelationResponse,
|
|
12
16
|
SubAgentRelationResponse$zodSchema,
|
|
13
|
-
} from
|
|
17
|
+
} from "./subagentrelationresponse.js";
|
|
14
18
|
import {
|
|
15
|
-
|
|
19
|
+
SubAgentRelationUpdate,
|
|
16
20
|
SubAgentRelationUpdate$zodSchema,
|
|
17
|
-
} from
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
21
|
+
} from "./subagentrelationupdate.js";
|
|
22
|
+
import { Unauthorized, Unauthorized$zodSchema } from "./unauthorized.js";
|
|
23
|
+
import {
|
|
24
|
+
UnprocessableEntity,
|
|
25
|
+
UnprocessableEntity$zodSchema,
|
|
26
|
+
} from "./unprocessableentity.js";
|
|
20
27
|
|
|
21
28
|
export type UpdateSubAgentRelationRequest = {
|
|
22
29
|
tenantId: string;
|
|
@@ -27,15 +34,13 @@ export type UpdateSubAgentRelationRequest = {
|
|
|
27
34
|
};
|
|
28
35
|
|
|
29
36
|
export const UpdateSubAgentRelationRequest$zodSchema: z.ZodType<
|
|
30
|
-
UpdateSubAgentRelationRequest
|
|
31
|
-
z.ZodTypeDef,
|
|
32
|
-
unknown
|
|
37
|
+
UpdateSubAgentRelationRequest
|
|
33
38
|
> = z.object({
|
|
34
|
-
agentId: z.string().describe(
|
|
39
|
+
agentId: z.string().describe("Agent identifier"),
|
|
35
40
|
body: SubAgentRelationUpdate$zodSchema.optional(),
|
|
36
|
-
id: z.string().describe(
|
|
37
|
-
projectId: z.string().describe(
|
|
38
|
-
tenantId: z.string().describe(
|
|
41
|
+
id: z.string().describe("Resource identifier"),
|
|
42
|
+
projectId: z.string().describe("Project identifier"),
|
|
43
|
+
tenantId: z.string().describe("Tenant identifier"),
|
|
39
44
|
});
|
|
40
45
|
|
|
41
46
|
export type UpdateSubAgentRelationResponse = {
|
|
@@ -52,16 +57,14 @@ export type UpdateSubAgentRelationResponse = {
|
|
|
52
57
|
};
|
|
53
58
|
|
|
54
59
|
export const UpdateSubAgentRelationResponse$zodSchema: z.ZodType<
|
|
55
|
-
UpdateSubAgentRelationResponse
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
unknown
|
|
60
|
+
UpdateSubAgentRelationResponse
|
|
58
61
|
> = z.object({
|
|
59
62
|
BadRequest: BadRequest$zodSchema.optional(),
|
|
60
63
|
ContentType: z.string(),
|
|
61
64
|
Forbidden: Forbidden$zodSchema.optional(),
|
|
62
65
|
InternalServerError: InternalServerError$zodSchema.optional(),
|
|
63
66
|
NotFound: NotFound$zodSchema.optional(),
|
|
64
|
-
RawResponse: z.instanceof
|
|
67
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
65
68
|
StatusCode: z.number().int(),
|
|
66
69
|
SubAgentRelationResponse: SubAgentRelationResponse$zodSchema.optional(),
|
|
67
70
|
Unauthorized: Unauthorized$zodSchema.optional(),
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c4485c0e3f20
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { type InternalServerError, InternalServerError$zodSchema } from './internalservererror.js';
|
|
9
|
-
import { type NotFound, NotFound$zodSchema } from './notfound.js';
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
8
|
+
import { Forbidden, Forbidden$zodSchema } from "./forbidden.js";
|
|
10
9
|
import {
|
|
11
|
-
|
|
10
|
+
InternalServerError,
|
|
11
|
+
InternalServerError$zodSchema,
|
|
12
|
+
} from "./internalservererror.js";
|
|
13
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
14
|
+
import {
|
|
15
|
+
SubAgentTeamAgentRelationResponse,
|
|
12
16
|
SubAgentTeamAgentRelationResponse$zodSchema,
|
|
13
|
-
} from
|
|
17
|
+
} from "./subagentteamagentrelationresponse.js";
|
|
14
18
|
import {
|
|
15
|
-
|
|
19
|
+
SubAgentTeamAgentRelationUpdate,
|
|
16
20
|
SubAgentTeamAgentRelationUpdate$zodSchema,
|
|
17
|
-
} from
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
21
|
+
} from "./subagentteamagentrelationupdate.js";
|
|
22
|
+
import { Unauthorized, Unauthorized$zodSchema } from "./unauthorized.js";
|
|
23
|
+
import {
|
|
24
|
+
UnprocessableEntity,
|
|
25
|
+
UnprocessableEntity$zodSchema,
|
|
26
|
+
} from "./unprocessableentity.js";
|
|
20
27
|
|
|
21
28
|
export type UpdateSubAgentTeamAgentRelationRequest = {
|
|
22
29
|
tenantId: string;
|
|
@@ -28,23 +35,23 @@ export type UpdateSubAgentTeamAgentRelationRequest = {
|
|
|
28
35
|
};
|
|
29
36
|
|
|
30
37
|
export const UpdateSubAgentTeamAgentRelationRequest$zodSchema: z.ZodType<
|
|
31
|
-
UpdateSubAgentTeamAgentRelationRequest
|
|
32
|
-
z.ZodTypeDef,
|
|
33
|
-
unknown
|
|
38
|
+
UpdateSubAgentTeamAgentRelationRequest
|
|
34
39
|
> = z.object({
|
|
35
|
-
agentId: z.string().describe(
|
|
40
|
+
agentId: z.string().describe("Agent identifier"),
|
|
36
41
|
body: SubAgentTeamAgentRelationUpdate$zodSchema.optional(),
|
|
37
|
-
id: z.string().describe(
|
|
38
|
-
projectId: z.string().describe(
|
|
39
|
-
subAgentId: z.string().describe(
|
|
40
|
-
tenantId: z.string().describe(
|
|
42
|
+
id: z.string().describe("Resource identifier"),
|
|
43
|
+
projectId: z.string().describe("Project identifier"),
|
|
44
|
+
subAgentId: z.string().describe("Sub-agent identifier"),
|
|
45
|
+
tenantId: z.string().describe("Tenant identifier"),
|
|
41
46
|
});
|
|
42
47
|
|
|
43
48
|
export type UpdateSubAgentTeamAgentRelationResponse = {
|
|
44
49
|
ContentType: string;
|
|
45
50
|
StatusCode: number;
|
|
46
51
|
RawResponse: Response;
|
|
47
|
-
SubAgentTeamAgentRelationResponse?:
|
|
52
|
+
SubAgentTeamAgentRelationResponse?:
|
|
53
|
+
| SubAgentTeamAgentRelationResponse
|
|
54
|
+
| undefined;
|
|
48
55
|
BadRequest?: BadRequest | undefined;
|
|
49
56
|
Unauthorized?: Unauthorized | undefined;
|
|
50
57
|
Forbidden?: Forbidden | undefined;
|
|
@@ -54,18 +61,17 @@ export type UpdateSubAgentTeamAgentRelationResponse = {
|
|
|
54
61
|
};
|
|
55
62
|
|
|
56
63
|
export const UpdateSubAgentTeamAgentRelationResponse$zodSchema: z.ZodType<
|
|
57
|
-
UpdateSubAgentTeamAgentRelationResponse
|
|
58
|
-
z.ZodTypeDef,
|
|
59
|
-
unknown
|
|
64
|
+
UpdateSubAgentTeamAgentRelationResponse
|
|
60
65
|
> = z.object({
|
|
61
66
|
BadRequest: BadRequest$zodSchema.optional(),
|
|
62
67
|
ContentType: z.string(),
|
|
63
68
|
Forbidden: Forbidden$zodSchema.optional(),
|
|
64
69
|
InternalServerError: InternalServerError$zodSchema.optional(),
|
|
65
70
|
NotFound: NotFound$zodSchema.optional(),
|
|
66
|
-
RawResponse: z.instanceof
|
|
71
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
67
72
|
StatusCode: z.number().int(),
|
|
68
|
-
SubAgentTeamAgentRelationResponse: SubAgentTeamAgentRelationResponse$zodSchema
|
|
73
|
+
SubAgentTeamAgentRelationResponse: SubAgentTeamAgentRelationResponse$zodSchema
|
|
74
|
+
.optional(),
|
|
69
75
|
Unauthorized: Unauthorized$zodSchema.optional(),
|
|
70
76
|
UnprocessableEntity: UnprocessableEntity$zodSchema.optional(),
|
|
71
77
|
});
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e524c7560667
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { type InternalServerError, InternalServerError$zodSchema } from './internalservererror.js';
|
|
9
|
-
import { type NotFound, NotFound$zodSchema } from './notfound.js';
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
8
|
+
import { Forbidden, Forbidden$zodSchema } from "./forbidden.js";
|
|
10
9
|
import {
|
|
11
|
-
|
|
10
|
+
InternalServerError,
|
|
11
|
+
InternalServerError$zodSchema,
|
|
12
|
+
} from "./internalservererror.js";
|
|
13
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
14
|
+
import {
|
|
15
|
+
SubAgentToolRelationResponse,
|
|
12
16
|
SubAgentToolRelationResponse$zodSchema,
|
|
13
|
-
} from
|
|
17
|
+
} from "./subagenttoolrelationresponse.js";
|
|
14
18
|
import {
|
|
15
|
-
|
|
19
|
+
SubAgentToolRelationUpdate,
|
|
16
20
|
SubAgentToolRelationUpdate$zodSchema,
|
|
17
|
-
} from
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
21
|
+
} from "./subagenttoolrelationupdate.js";
|
|
22
|
+
import { Unauthorized, Unauthorized$zodSchema } from "./unauthorized.js";
|
|
23
|
+
import {
|
|
24
|
+
UnprocessableEntity,
|
|
25
|
+
UnprocessableEntity$zodSchema,
|
|
26
|
+
} from "./unprocessableentity.js";
|
|
20
27
|
|
|
21
28
|
export type UpdateSubagentToolRelationRequest = {
|
|
22
29
|
tenantId: string;
|
|
@@ -27,15 +34,13 @@ export type UpdateSubagentToolRelationRequest = {
|
|
|
27
34
|
};
|
|
28
35
|
|
|
29
36
|
export const UpdateSubagentToolRelationRequest$zodSchema: z.ZodType<
|
|
30
|
-
UpdateSubagentToolRelationRequest
|
|
31
|
-
z.ZodTypeDef,
|
|
32
|
-
unknown
|
|
37
|
+
UpdateSubagentToolRelationRequest
|
|
33
38
|
> = z.object({
|
|
34
|
-
agentId: z.string().describe(
|
|
39
|
+
agentId: z.string().describe("Agent identifier"),
|
|
35
40
|
body: SubAgentToolRelationUpdate$zodSchema.optional(),
|
|
36
|
-
id: z.string().describe(
|
|
37
|
-
projectId: z.string().describe(
|
|
38
|
-
tenantId: z.string().describe(
|
|
41
|
+
id: z.string().describe("Resource identifier"),
|
|
42
|
+
projectId: z.string().describe("Project identifier"),
|
|
43
|
+
tenantId: z.string().describe("Tenant identifier"),
|
|
39
44
|
});
|
|
40
45
|
|
|
41
46
|
export type UpdateSubagentToolRelationResponse = {
|
|
@@ -52,18 +57,17 @@ export type UpdateSubagentToolRelationResponse = {
|
|
|
52
57
|
};
|
|
53
58
|
|
|
54
59
|
export const UpdateSubagentToolRelationResponse$zodSchema: z.ZodType<
|
|
55
|
-
UpdateSubagentToolRelationResponse
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
unknown
|
|
60
|
+
UpdateSubagentToolRelationResponse
|
|
58
61
|
> = z.object({
|
|
59
62
|
BadRequest: BadRequest$zodSchema.optional(),
|
|
60
63
|
ContentType: z.string(),
|
|
61
64
|
Forbidden: Forbidden$zodSchema.optional(),
|
|
62
65
|
InternalServerError: InternalServerError$zodSchema.optional(),
|
|
63
66
|
NotFound: NotFound$zodSchema.optional(),
|
|
64
|
-
RawResponse: z.instanceof
|
|
67
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
65
68
|
StatusCode: z.number().int(),
|
|
66
|
-
SubAgentToolRelationResponse: SubAgentToolRelationResponse$zodSchema
|
|
69
|
+
SubAgentToolRelationResponse: SubAgentToolRelationResponse$zodSchema
|
|
70
|
+
.optional(),
|
|
67
71
|
Unauthorized: Unauthorized$zodSchema.optional(),
|
|
68
72
|
UnprocessableEntity: UnprocessableEntity$zodSchema.optional(),
|
|
69
73
|
});
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2d9a249465b3
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
8
|
+
import { Forbidden, Forbidden$zodSchema } from "./forbidden.js";
|
|
9
|
+
import {
|
|
10
|
+
InternalServerError,
|
|
11
|
+
InternalServerError$zodSchema,
|
|
12
|
+
} from "./internalservererror.js";
|
|
13
|
+
import {
|
|
14
|
+
McpToolResponse,
|
|
15
|
+
McpToolResponse$zodSchema,
|
|
16
|
+
} from "./mcptoolresponse.js";
|
|
17
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
18
|
+
import { ToolUpdate, ToolUpdate$zodSchema } from "./toolupdate.js";
|
|
19
|
+
import { Unauthorized, Unauthorized$zodSchema } from "./unauthorized.js";
|
|
20
|
+
import {
|
|
21
|
+
UnprocessableEntity,
|
|
22
|
+
UnprocessableEntity$zodSchema,
|
|
23
|
+
} from "./unprocessableentity.js";
|
|
14
24
|
|
|
15
25
|
export type UpdateToolRequest = {
|
|
16
26
|
tenantId: string;
|
|
@@ -19,12 +29,12 @@ export type UpdateToolRequest = {
|
|
|
19
29
|
body?: ToolUpdate | undefined;
|
|
20
30
|
};
|
|
21
31
|
|
|
22
|
-
export const UpdateToolRequest$zodSchema: z.ZodType<UpdateToolRequest
|
|
23
|
-
|
|
32
|
+
export const UpdateToolRequest$zodSchema: z.ZodType<UpdateToolRequest> = z
|
|
33
|
+
.object({
|
|
24
34
|
body: ToolUpdate$zodSchema.optional(),
|
|
25
|
-
id: z.string().describe(
|
|
26
|
-
projectId: z.string().describe(
|
|
27
|
-
tenantId: z.string().describe(
|
|
35
|
+
id: z.string().describe("Resource identifier"),
|
|
36
|
+
projectId: z.string().describe("Project identifier"),
|
|
37
|
+
tenantId: z.string().describe("Tenant identifier"),
|
|
28
38
|
});
|
|
29
39
|
|
|
30
40
|
export type UpdateToolResponse = {
|
|
@@ -40,15 +50,15 @@ export type UpdateToolResponse = {
|
|
|
40
50
|
InternalServerError?: InternalServerError | undefined;
|
|
41
51
|
};
|
|
42
52
|
|
|
43
|
-
export const UpdateToolResponse$zodSchema: z.ZodType<UpdateToolResponse
|
|
44
|
-
|
|
53
|
+
export const UpdateToolResponse$zodSchema: z.ZodType<UpdateToolResponse> = z
|
|
54
|
+
.object({
|
|
45
55
|
BadRequest: BadRequest$zodSchema.optional(),
|
|
46
56
|
ContentType: z.string(),
|
|
47
57
|
Forbidden: Forbidden$zodSchema.optional(),
|
|
48
58
|
InternalServerError: InternalServerError$zodSchema.optional(),
|
|
49
59
|
McpToolResponse: McpToolResponse$zodSchema.optional(),
|
|
50
60
|
NotFound: NotFound$zodSchema.optional(),
|
|
51
|
-
RawResponse: z.instanceof
|
|
61
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
52
62
|
StatusCode: z.number().int(),
|
|
53
63
|
Unauthorized: Unauthorized$zodSchema.optional(),
|
|
54
64
|
UnprocessableEntity: UnprocessableEntity$zodSchema.optional(),
|
package/src/types/async.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 62fbdb43613d
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
export type APICall =
|
|
6
7
|
| {
|
|
7
|
-
status:
|
|
8
|
+
status: "complete";
|
|
8
9
|
request: Request;
|
|
9
10
|
response: Response;
|
|
10
11
|
}
|
|
11
12
|
| {
|
|
12
|
-
status:
|
|
13
|
+
status: "request-error";
|
|
13
14
|
request: Request;
|
|
14
15
|
response?: undefined;
|
|
15
16
|
}
|
|
16
17
|
| {
|
|
17
|
-
status:
|
|
18
|
+
status: "invalid";
|
|
18
19
|
request?: undefined;
|
|
19
20
|
response?: undefined;
|
|
20
21
|
};
|
|
@@ -23,23 +24,37 @@ export class APIPromise<T> implements Promise<T> {
|
|
|
23
24
|
readonly #promise: Promise<[T, APICall]>;
|
|
24
25
|
readonly #unwrapped: Promise<T>;
|
|
25
26
|
|
|
26
|
-
readonly [Symbol.toStringTag] =
|
|
27
|
+
readonly [Symbol.toStringTag] = "APIPromise";
|
|
27
28
|
|
|
28
29
|
constructor(p: [T, APICall] | Promise<[T, APICall]>) {
|
|
29
30
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
30
31
|
this.#unwrapped =
|
|
31
|
-
p instanceof Promise
|
|
32
|
+
p instanceof Promise
|
|
33
|
+
? this.#promise.then(([value]) => value)
|
|
34
|
+
: Promise.resolve(p[0]);
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
then<TResult1 = T, TResult2 = never>(
|
|
35
|
-
onfulfilled?:
|
|
36
|
-
|
|
38
|
+
onfulfilled?:
|
|
39
|
+
| ((value: T) => TResult1 | PromiseLike<TResult1>)
|
|
40
|
+
| null
|
|
41
|
+
| undefined,
|
|
42
|
+
onrejected?:
|
|
43
|
+
| ((reason: any) => TResult2 | PromiseLike<TResult2>)
|
|
44
|
+
| null
|
|
45
|
+
| undefined,
|
|
37
46
|
): Promise<TResult1 | TResult2> {
|
|
38
|
-
return this.#promise.then(
|
|
47
|
+
return this.#promise.then(
|
|
48
|
+
onfulfilled ? ([value]) => onfulfilled(value) : void 0,
|
|
49
|
+
onrejected,
|
|
50
|
+
);
|
|
39
51
|
}
|
|
40
52
|
|
|
41
53
|
catch<TResult = never>(
|
|
42
|
-
onrejected?:
|
|
54
|
+
onrejected?:
|
|
55
|
+
| ((reason: any) => TResult | PromiseLike<TResult>)
|
|
56
|
+
| null
|
|
57
|
+
| undefined,
|
|
43
58
|
): Promise<T | TResult> {
|
|
44
59
|
return this.#unwrapped.catch(onrejected);
|
|
45
60
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5083a5741147
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
|
|
8
|
+
export function bigint(): z.ZodType<bigint | string> {
|
|
9
|
+
return z.union([
|
|
10
|
+
z.bigint().transform((v) => String(v)),
|
|
11
|
+
z.string().transform((v, ctx) => {
|
|
12
|
+
try {
|
|
13
|
+
return BigInt(v);
|
|
14
|
+
} catch {
|
|
15
|
+
ctx.addIssue({
|
|
16
|
+
code: z.ZodIssueCode.custom,
|
|
17
|
+
message: "Invalid bigint value",
|
|
18
|
+
});
|
|
19
|
+
return z.NEVER;
|
|
20
|
+
}
|
|
21
|
+
}),
|
|
22
|
+
z.number().transform((v) => BigInt(Math.trunc(v))),
|
|
23
|
+
z.union([z.null(), z.undefined()]).transform(() => BigInt(0)),
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function bigintOptional(): z.ZodType<bigint | string | undefined> {
|
|
28
|
+
return z.union([
|
|
29
|
+
z.bigint().transform((v) => String(v)),
|
|
30
|
+
z.string().transform((v, ctx) => {
|
|
31
|
+
try {
|
|
32
|
+
return BigInt(v);
|
|
33
|
+
} catch {
|
|
34
|
+
ctx.addIssue({
|
|
35
|
+
code: z.ZodIssueCode.custom,
|
|
36
|
+
message: "Invalid bigint value",
|
|
37
|
+
});
|
|
38
|
+
return z.NEVER;
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
z.number().transform((v) => BigInt(Math.trunc(v))),
|
|
42
|
+
z.undefined(),
|
|
43
|
+
z.null().transform(() => undefined),
|
|
44
|
+
]);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function bigintNullable(): z.ZodType<bigint | string | null> {
|
|
48
|
+
return z.union([
|
|
49
|
+
z.bigint().transform((v) => String(v)),
|
|
50
|
+
z.string().transform((v, ctx) => {
|
|
51
|
+
try {
|
|
52
|
+
return BigInt(v);
|
|
53
|
+
} catch {
|
|
54
|
+
ctx.addIssue({
|
|
55
|
+
code: z.ZodIssueCode.custom,
|
|
56
|
+
message: "Invalid bigint value",
|
|
57
|
+
});
|
|
58
|
+
return z.NEVER;
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
z.number().transform((v) => BigInt(Math.trunc(v))),
|
|
62
|
+
z.null(),
|
|
63
|
+
z.undefined().transform(() => null),
|
|
64
|
+
]);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function bigintConst<T extends bigint>(value: T): z.ZodType<T> {
|
|
68
|
+
return z
|
|
69
|
+
.union([
|
|
70
|
+
z.bigint(),
|
|
71
|
+
z.string().transform((v, ctx) => {
|
|
72
|
+
try {
|
|
73
|
+
return BigInt(v);
|
|
74
|
+
} catch {
|
|
75
|
+
ctx.addIssue({
|
|
76
|
+
code: z.ZodIssueCode.custom,
|
|
77
|
+
message: "Invalid bigint value",
|
|
78
|
+
});
|
|
79
|
+
return z.NEVER;
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
z.number().transform((v) => BigInt(Math.trunc(v))),
|
|
83
|
+
])
|
|
84
|
+
.refine((v) => v === value, {
|
|
85
|
+
message: `Value must be ${value}`,
|
|
86
|
+
})
|
|
87
|
+
.transform(() => value as T);
|
|
88
|
+
}
|
package/src/types/blobs.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c01bbb585612
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
export function isBlobLike(val: unknown): val is Blob {
|
|
@@ -7,17 +8,17 @@ export function isBlobLike(val: unknown): val is Blob {
|
|
|
7
8
|
return true;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
if (typeof val !==
|
|
11
|
+
if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
|
|
11
12
|
return false;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
const name = val[Symbol.toStringTag];
|
|
15
|
-
if (typeof name !==
|
|
16
|
+
if (typeof name !== "string") {
|
|
16
17
|
return false;
|
|
17
18
|
}
|
|
18
|
-
if (name !==
|
|
19
|
+
if (name !== "Blob" && name !== "File") {
|
|
19
20
|
return false;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
return
|
|
23
|
+
return "stream" in val && typeof val.stream === "function";
|
|
23
24
|
}
|
package/src/types/enums.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 01734e97bbec
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
declare const __brand: unique symbol;
|
|
6
|
-
export type Unrecognized<T> = T & { [__brand]:
|
|
7
|
+
export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
|
|
7
8
|
|
|
8
9
|
export function catchUnrecognizedEnum<T>(value: T): Unrecognized<T> {
|
|
9
10
|
return value as Unrecognized<T>;
|
package/src/types/fp.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f87b41f6f169
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -38,7 +39,9 @@ export function unwrap<T>(r: Result<T, unknown>): T {
|
|
|
38
39
|
* unwrapAsync is a convenience function for resolving a value from a Promise
|
|
39
40
|
* of a result or rejecting if an error occurred.
|
|
40
41
|
*/
|
|
41
|
-
export async function unwrapAsync<T>(
|
|
42
|
+
export async function unwrapAsync<T>(
|
|
43
|
+
pr: Promise<Result<T, unknown>>,
|
|
44
|
+
): Promise<T> {
|
|
42
45
|
const r = await pr;
|
|
43
46
|
if (!r.ok) {
|
|
44
47
|
throw r.error;
|
package/src/types/rfcdate.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 168be426fc6a
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
const dateRE = /^\d{4}-\d{2}-\d{2}$/;
|
|
@@ -25,19 +26,21 @@ export class RFCDate {
|
|
|
25
26
|
* new RFCDate(new Date())
|
|
26
27
|
*/
|
|
27
28
|
constructor(date: Date | string) {
|
|
28
|
-
if (typeof date ===
|
|
29
|
-
throw new RangeError(
|
|
29
|
+
if (typeof date === "string" && !dateRE.test(date)) {
|
|
30
|
+
throw new RangeError(
|
|
31
|
+
"RFCDate: date strings must be in the format YYYY-MM-DD: " + date,
|
|
32
|
+
);
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
const value = new Date(date);
|
|
33
36
|
if (isNaN(+value)) {
|
|
34
|
-
throw new RangeError(
|
|
37
|
+
throw new RangeError("RFCDate: invalid date provided: " + date);
|
|
35
38
|
}
|
|
36
39
|
|
|
37
|
-
this.serialized = value.toISOString().slice(0,
|
|
40
|
+
this.serialized = value.toISOString().slice(0, "YYYY-MM-DD".length);
|
|
38
41
|
if (!dateRE.test(this.serialized)) {
|
|
39
42
|
throw new TypeError(
|
|
40
|
-
`RFCDate: failed to build valid date with given value: ${date} serialized to ${this.serialized}
|
|
43
|
+
`RFCDate: failed to build valid date with given value: ${date} serialized to ${this.serialized}`,
|
|
41
44
|
);
|
|
42
45
|
}
|
|
43
46
|
}
|
package/src/types/streams.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8158938bbafc
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
export function isReadableStream<T = Uint8Array>(
|
|
6
|
-
|
|
6
|
+
export function isReadableStream<T = Uint8Array>(
|
|
7
|
+
val: unknown,
|
|
8
|
+
): val is ReadableStream<T> {
|
|
9
|
+
if (typeof val !== "object" || val === null) {
|
|
7
10
|
return false;
|
|
8
11
|
}
|
|
9
12
|
|
|
@@ -12,8 +15,8 @@ export function isReadableStream<T = Uint8Array>(val: unknown): val is ReadableS
|
|
|
12
15
|
|
|
13
16
|
// ReadableStream has methods like getReader, cancel, and tee
|
|
14
17
|
return (
|
|
15
|
-
typeof stream.getReader ===
|
|
16
|
-
typeof stream.cancel ===
|
|
17
|
-
typeof stream.tee ===
|
|
18
|
+
typeof stream.getReader === "function" &&
|
|
19
|
+
typeof stream.cancel === "function" &&
|
|
20
|
+
typeof stream.tee === "function"
|
|
18
21
|
);
|
|
19
22
|
}
|
package/src/zod-int.ts
ADDED
package/tsconfig.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
1
3
|
{
|
|
2
4
|
"compilerOptions": {
|
|
3
5
|
"allowJs": true,
|
|
@@ -26,8 +28,7 @@
|
|
|
26
28
|
"sourceMap": true,
|
|
27
29
|
"strict": true,
|
|
28
30
|
"target": "es2022",
|
|
29
|
-
"
|
|
30
|
-
"useUnknownInCatchVariables": true
|
|
31
|
+
"useUnknownInCatchVariables": true,
|
|
31
32
|
},
|
|
32
33
|
"exclude": ["node_modules"],
|
|
33
34
|
"include": ["src/**/*.ts"]
|