@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,16 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 30edaa1d01b0
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
-
import {
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { FunctionTool, FunctionTool$zodSchema } from "./functiontool.js";
|
|
7
8
|
|
|
8
9
|
export type FunctionToolResponse = { data: FunctionTool };
|
|
9
10
|
|
|
10
|
-
export const FunctionToolResponse$zodSchema: z.ZodType<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
> = z.object({
|
|
15
|
-
data: FunctionTool$zodSchema,
|
|
16
|
-
});
|
|
11
|
+
export const FunctionToolResponse$zodSchema: z.ZodType<FunctionToolResponse> = z
|
|
12
|
+
.object({
|
|
13
|
+
data: FunctionTool$zodSchema,
|
|
14
|
+
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d5a3c0fcea52
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
+
import * as z from "zod";
|
|
6
7
|
|
|
7
8
|
export type FunctionToolUpdate = {
|
|
8
9
|
id?: string | undefined;
|
|
@@ -14,8 +15,8 @@ export type FunctionToolUpdate = {
|
|
|
14
15
|
updatedAt?: string | undefined;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
|
-
export const FunctionToolUpdate$zodSchema: z.ZodType<FunctionToolUpdate
|
|
18
|
-
|
|
18
|
+
export const FunctionToolUpdate$zodSchema: z.ZodType<FunctionToolUpdate> = z
|
|
19
|
+
.object({
|
|
19
20
|
agentId: z.string().optional(),
|
|
20
21
|
createdAt: z.string().optional(),
|
|
21
22
|
description: z.string().nullable().optional(),
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b2151ee9fc15
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
+
import * as z from "zod";
|
|
6
7
|
|
|
7
8
|
export type FunctionUpdate = {
|
|
8
9
|
id?: string | undefined;
|
|
@@ -13,7 +14,7 @@ export type FunctionUpdate = {
|
|
|
13
14
|
updatedAt?: string | undefined;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
|
-
export const FunctionUpdate$zodSchema: z.ZodType<FunctionUpdate
|
|
17
|
+
export const FunctionUpdate$zodSchema: z.ZodType<FunctionUpdate> = z.object({
|
|
17
18
|
createdAt: z.string().optional(),
|
|
18
19
|
dependencies: z.any().nullable().optional(),
|
|
19
20
|
executeCode: z.string().optional(),
|
package/src/models/getagentop.ts
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b7c8e69e5b5d
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { AgentResponse, AgentResponse$zodSchema } from "./agentresponse.js";
|
|
8
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
9
|
+
import { Forbidden, Forbidden$zodSchema } from "./forbidden.js";
|
|
10
|
+
import {
|
|
11
|
+
InternalServerError,
|
|
12
|
+
InternalServerError$zodSchema,
|
|
13
|
+
} from "./internalservererror.js";
|
|
14
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
15
|
+
import { Unauthorized, Unauthorized$zodSchema } from "./unauthorized.js";
|
|
16
|
+
import {
|
|
17
|
+
UnprocessableEntity,
|
|
18
|
+
UnprocessableEntity$zodSchema,
|
|
19
|
+
} from "./unprocessableentity.js";
|
|
13
20
|
|
|
14
21
|
export type GetAgentRequest = {
|
|
15
22
|
tenantId: string;
|
|
@@ -17,12 +24,11 @@ export type GetAgentRequest = {
|
|
|
17
24
|
id: string;
|
|
18
25
|
};
|
|
19
26
|
|
|
20
|
-
export const GetAgentRequest$zodSchema: z.ZodType<GetAgentRequest
|
|
21
|
-
z.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
});
|
|
27
|
+
export const GetAgentRequest$zodSchema: z.ZodType<GetAgentRequest> = z.object({
|
|
28
|
+
id: z.string().describe("Resource identifier"),
|
|
29
|
+
projectId: z.string().describe("Project identifier"),
|
|
30
|
+
tenantId: z.string().describe("Tenant identifier"),
|
|
31
|
+
});
|
|
26
32
|
|
|
27
33
|
export type GetAgentResponse = {
|
|
28
34
|
ContentType: string;
|
|
@@ -37,16 +43,17 @@ export type GetAgentResponse = {
|
|
|
37
43
|
InternalServerError?: InternalServerError | undefined;
|
|
38
44
|
};
|
|
39
45
|
|
|
40
|
-
export const GetAgentResponse$zodSchema: z.ZodType<GetAgentResponse
|
|
41
|
-
|
|
46
|
+
export const GetAgentResponse$zodSchema: z.ZodType<GetAgentResponse> = z.object(
|
|
47
|
+
{
|
|
42
48
|
AgentResponse: AgentResponse$zodSchema.optional(),
|
|
43
49
|
BadRequest: BadRequest$zodSchema.optional(),
|
|
44
50
|
ContentType: z.string(),
|
|
45
51
|
Forbidden: Forbidden$zodSchema.optional(),
|
|
46
52
|
InternalServerError: InternalServerError$zodSchema.optional(),
|
|
47
53
|
NotFound: NotFound$zodSchema.optional(),
|
|
48
|
-
RawResponse: z.instanceof
|
|
54
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
49
55
|
StatusCode: z.number().int(),
|
|
50
56
|
Unauthorized: Unauthorized$zodSchema.optional(),
|
|
51
57
|
UnprocessableEntity: UnprocessableEntity$zodSchema.optional(),
|
|
52
|
-
}
|
|
58
|
+
},
|
|
59
|
+
);
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0a1ed8e05275
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
-
import {
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
7
8
|
import {
|
|
8
|
-
|
|
9
|
+
ComponentAssociationListResponse,
|
|
9
10
|
ComponentAssociationListResponse$zodSchema,
|
|
10
|
-
} from
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
} from "./componentassociationlistresponse.js";
|
|
12
|
+
import { Forbidden, Forbidden$zodSchema } from "./forbidden.js";
|
|
13
|
+
import {
|
|
14
|
+
InternalServerError,
|
|
15
|
+
InternalServerError$zodSchema,
|
|
16
|
+
} from "./internalservererror.js";
|
|
17
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
18
|
+
import { Unauthorized, Unauthorized$zodSchema } from "./unauthorized.js";
|
|
19
|
+
import {
|
|
20
|
+
UnprocessableEntity,
|
|
21
|
+
UnprocessableEntity$zodSchema,
|
|
22
|
+
} from "./unprocessableentity.js";
|
|
16
23
|
|
|
17
24
|
export type GetAgentsUsingArtifactComponentRequest = {
|
|
18
25
|
tenantId: string;
|
|
@@ -22,21 +29,21 @@ export type GetAgentsUsingArtifactComponentRequest = {
|
|
|
22
29
|
};
|
|
23
30
|
|
|
24
31
|
export const GetAgentsUsingArtifactComponentRequest$zodSchema: z.ZodType<
|
|
25
|
-
GetAgentsUsingArtifactComponentRequest
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
32
|
+
GetAgentsUsingArtifactComponentRequest
|
|
28
33
|
> = z.object({
|
|
29
|
-
agentId: z.string().describe(
|
|
34
|
+
agentId: z.string().describe("Agent identifier"),
|
|
30
35
|
artifactComponentId: z.string(),
|
|
31
|
-
projectId: z.string().describe(
|
|
32
|
-
tenantId: z.string().describe(
|
|
36
|
+
projectId: z.string().describe("Project identifier"),
|
|
37
|
+
tenantId: z.string().describe("Tenant identifier"),
|
|
33
38
|
});
|
|
34
39
|
|
|
35
40
|
export type GetAgentsUsingArtifactComponentResponse = {
|
|
36
41
|
ContentType: string;
|
|
37
42
|
StatusCode: number;
|
|
38
43
|
RawResponse: Response;
|
|
39
|
-
ComponentAssociationListResponse?:
|
|
44
|
+
ComponentAssociationListResponse?:
|
|
45
|
+
| ComponentAssociationListResponse
|
|
46
|
+
| undefined;
|
|
40
47
|
BadRequest?: BadRequest | undefined;
|
|
41
48
|
Unauthorized?: Unauthorized | undefined;
|
|
42
49
|
Forbidden?: Forbidden | undefined;
|
|
@@ -46,17 +53,16 @@ export type GetAgentsUsingArtifactComponentResponse = {
|
|
|
46
53
|
};
|
|
47
54
|
|
|
48
55
|
export const GetAgentsUsingArtifactComponentResponse$zodSchema: z.ZodType<
|
|
49
|
-
GetAgentsUsingArtifactComponentResponse
|
|
50
|
-
z.ZodTypeDef,
|
|
51
|
-
unknown
|
|
56
|
+
GetAgentsUsingArtifactComponentResponse
|
|
52
57
|
> = z.object({
|
|
53
58
|
BadRequest: BadRequest$zodSchema.optional(),
|
|
54
|
-
ComponentAssociationListResponse: ComponentAssociationListResponse$zodSchema
|
|
59
|
+
ComponentAssociationListResponse: ComponentAssociationListResponse$zodSchema
|
|
60
|
+
.optional(),
|
|
55
61
|
ContentType: z.string(),
|
|
56
62
|
Forbidden: Forbidden$zodSchema.optional(),
|
|
57
63
|
InternalServerError: InternalServerError$zodSchema.optional(),
|
|
58
64
|
NotFound: NotFound$zodSchema.optional(),
|
|
59
|
-
RawResponse: z.instanceof
|
|
65
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
60
66
|
StatusCode: z.number().int(),
|
|
61
67
|
Unauthorized: Unauthorized$zodSchema.optional(),
|
|
62
68
|
UnprocessableEntity: UnprocessableEntity$zodSchema.optional(),
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: fbbe834a121f
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
-
import {
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
7
8
|
import {
|
|
8
|
-
|
|
9
|
+
ComponentAssociationListResponse,
|
|
9
10
|
ComponentAssociationListResponse$zodSchema,
|
|
10
|
-
} from
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
} from "./componentassociationlistresponse.js";
|
|
12
|
+
import { Forbidden, Forbidden$zodSchema } from "./forbidden.js";
|
|
13
|
+
import {
|
|
14
|
+
InternalServerError,
|
|
15
|
+
InternalServerError$zodSchema,
|
|
16
|
+
} from "./internalservererror.js";
|
|
17
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
18
|
+
import { Unauthorized, Unauthorized$zodSchema } from "./unauthorized.js";
|
|
19
|
+
import {
|
|
20
|
+
UnprocessableEntity,
|
|
21
|
+
UnprocessableEntity$zodSchema,
|
|
22
|
+
} from "./unprocessableentity.js";
|
|
16
23
|
|
|
17
24
|
export type GetAgentsUsingDataComponentRequest = {
|
|
18
25
|
tenantId: string;
|
|
@@ -22,21 +29,21 @@ export type GetAgentsUsingDataComponentRequest = {
|
|
|
22
29
|
};
|
|
23
30
|
|
|
24
31
|
export const GetAgentsUsingDataComponentRequest$zodSchema: z.ZodType<
|
|
25
|
-
GetAgentsUsingDataComponentRequest
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
32
|
+
GetAgentsUsingDataComponentRequest
|
|
28
33
|
> = z.object({
|
|
29
|
-
agentId: z.string().describe(
|
|
34
|
+
agentId: z.string().describe("Agent identifier"),
|
|
30
35
|
dataComponentId: z.string(),
|
|
31
|
-
projectId: z.string().describe(
|
|
32
|
-
tenantId: z.string().describe(
|
|
36
|
+
projectId: z.string().describe("Project identifier"),
|
|
37
|
+
tenantId: z.string().describe("Tenant identifier"),
|
|
33
38
|
});
|
|
34
39
|
|
|
35
40
|
export type GetAgentsUsingDataComponentResponse = {
|
|
36
41
|
ContentType: string;
|
|
37
42
|
StatusCode: number;
|
|
38
43
|
RawResponse: Response;
|
|
39
|
-
ComponentAssociationListResponse?:
|
|
44
|
+
ComponentAssociationListResponse?:
|
|
45
|
+
| ComponentAssociationListResponse
|
|
46
|
+
| undefined;
|
|
40
47
|
BadRequest?: BadRequest | undefined;
|
|
41
48
|
Unauthorized?: Unauthorized | undefined;
|
|
42
49
|
Forbidden?: Forbidden | undefined;
|
|
@@ -46,17 +53,16 @@ export type GetAgentsUsingDataComponentResponse = {
|
|
|
46
53
|
};
|
|
47
54
|
|
|
48
55
|
export const GetAgentsUsingDataComponentResponse$zodSchema: z.ZodType<
|
|
49
|
-
GetAgentsUsingDataComponentResponse
|
|
50
|
-
z.ZodTypeDef,
|
|
51
|
-
unknown
|
|
56
|
+
GetAgentsUsingDataComponentResponse
|
|
52
57
|
> = z.object({
|
|
53
58
|
BadRequest: BadRequest$zodSchema.optional(),
|
|
54
|
-
ComponentAssociationListResponse: ComponentAssociationListResponse$zodSchema
|
|
59
|
+
ComponentAssociationListResponse: ComponentAssociationListResponse$zodSchema
|
|
60
|
+
.optional(),
|
|
55
61
|
ContentType: z.string(),
|
|
56
62
|
Forbidden: Forbidden$zodSchema.optional(),
|
|
57
63
|
InternalServerError: InternalServerError$zodSchema.optional(),
|
|
58
64
|
NotFound: NotFound$zodSchema.optional(),
|
|
59
|
-
RawResponse: z.instanceof
|
|
65
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
60
66
|
StatusCode: z.number().int(),
|
|
61
67
|
Unauthorized: Unauthorized$zodSchema.optional(),
|
|
62
68
|
UnprocessableEntity: UnprocessableEntity$zodSchema.optional(),
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1b66164186dc
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export type User = { id: string; email: string; name: string | null };
|
|
9
|
+
|
|
10
|
+
export const User$zodSchema: z.ZodType<User> = z.object({
|
|
11
|
+
email: z.string(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
name: z.string().nullable(),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export type Organization = {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
role: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const Organization$zodSchema: z.ZodType<Organization> = z.object({
|
|
24
|
+
id: z.string(),
|
|
25
|
+
name: z.string(),
|
|
26
|
+
role: z.string(),
|
|
27
|
+
slug: z.string(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* User info with organization
|
|
32
|
+
*/
|
|
33
|
+
export type GetApiCliMeResponseBody = {
|
|
34
|
+
user: User;
|
|
35
|
+
organization: Organization;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const GetApiCliMeResponseBody$zodSchema: z.ZodType<
|
|
39
|
+
GetApiCliMeResponseBody
|
|
40
|
+
> = z.object({
|
|
41
|
+
organization: z.lazy(() => Organization$zodSchema),
|
|
42
|
+
user: z.lazy(() => User$zodSchema),
|
|
43
|
+
}).describe("User info with organization");
|
|
44
|
+
|
|
45
|
+
export type GetApiCliMeResponse = {
|
|
46
|
+
ContentType: string;
|
|
47
|
+
StatusCode: number;
|
|
48
|
+
RawResponse: Response;
|
|
49
|
+
object?: GetApiCliMeResponseBody | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const GetApiCliMeResponse$zodSchema: z.ZodType<GetApiCliMeResponse> = z
|
|
53
|
+
.object({
|
|
54
|
+
ContentType: z.string(),
|
|
55
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
56
|
+
StatusCode: z.number().int(),
|
|
57
|
+
object: z.lazy(() => GetApiCliMeResponseBody$zodSchema).optional(),
|
|
58
|
+
});
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ad4be85bbc1d
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
+
import * as z from "zod";
|
|
6
7
|
|
|
7
8
|
export type GetApiInvitationsPendingRequest = { email: string };
|
|
8
9
|
|
|
9
10
|
export const GetApiInvitationsPendingRequest$zodSchema: z.ZodType<
|
|
10
|
-
GetApiInvitationsPendingRequest
|
|
11
|
-
z.ZodTypeDef,
|
|
12
|
-
unknown
|
|
11
|
+
GetApiInvitationsPendingRequest
|
|
13
12
|
> = z.object({
|
|
14
|
-
email: z.string().describe(
|
|
13
|
+
email: z.string().describe("Email address to check for invitations"),
|
|
15
14
|
});
|
|
16
15
|
|
|
17
16
|
export type GetApiInvitationsPendingResponseBody = {
|
|
@@ -27,9 +26,7 @@ export type GetApiInvitationsPendingResponseBody = {
|
|
|
27
26
|
};
|
|
28
27
|
|
|
29
28
|
export const GetApiInvitationsPendingResponseBody$zodSchema: z.ZodType<
|
|
30
|
-
GetApiInvitationsPendingResponseBody
|
|
31
|
-
z.ZodTypeDef,
|
|
32
|
-
unknown
|
|
29
|
+
GetApiInvitationsPendingResponseBody
|
|
33
30
|
> = z.object({
|
|
34
31
|
email: z.string(),
|
|
35
32
|
expiresAt: z.number(),
|
|
@@ -50,15 +47,12 @@ export type GetApiInvitationsPendingResponse = {
|
|
|
50
47
|
};
|
|
51
48
|
|
|
52
49
|
export const GetApiInvitationsPendingResponse$zodSchema: z.ZodType<
|
|
53
|
-
GetApiInvitationsPendingResponse
|
|
54
|
-
z.ZodTypeDef,
|
|
55
|
-
unknown
|
|
50
|
+
GetApiInvitationsPendingResponse
|
|
56
51
|
> = z.object({
|
|
57
52
|
ContentType: z.string(),
|
|
58
|
-
RawResponse: z.instanceof
|
|
59
|
-
ResponseBodies: z
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
.optional(),
|
|
53
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
54
|
+
ResponseBodies: z.array(
|
|
55
|
+
z.lazy(() => GetApiInvitationsPendingResponseBody$zodSchema),
|
|
56
|
+
).describe("List of pending invitations").optional(),
|
|
63
57
|
StatusCode: z.number().int(),
|
|
64
58
|
});
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ee78b3380f3d
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ApiKeyResponse, ApiKeyResponse$zodSchema } from "./apikeyresponse.js";
|
|
8
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
9
|
+
import { Forbidden, Forbidden$zodSchema } from "./forbidden.js";
|
|
10
|
+
import {
|
|
11
|
+
InternalServerError,
|
|
12
|
+
InternalServerError$zodSchema,
|
|
13
|
+
} from "./internalservererror.js";
|
|
14
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
15
|
+
import { Unauthorized, Unauthorized$zodSchema } from "./unauthorized.js";
|
|
16
|
+
import {
|
|
17
|
+
UnprocessableEntity,
|
|
18
|
+
UnprocessableEntity$zodSchema,
|
|
19
|
+
} from "./unprocessableentity.js";
|
|
13
20
|
|
|
14
21
|
export type GetApiKeyByIdRequest = {
|
|
15
22
|
tenantId: string;
|
|
@@ -17,15 +24,12 @@ export type GetApiKeyByIdRequest = {
|
|
|
17
24
|
id: string;
|
|
18
25
|
};
|
|
19
26
|
|
|
20
|
-
export const GetApiKeyByIdRequest$zodSchema: z.ZodType<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
projectId: z.string().describe('Project identifier'),
|
|
27
|
-
tenantId: z.string().describe('Tenant identifier'),
|
|
28
|
-
});
|
|
27
|
+
export const GetApiKeyByIdRequest$zodSchema: z.ZodType<GetApiKeyByIdRequest> = z
|
|
28
|
+
.object({
|
|
29
|
+
id: z.string().describe("Resource identifier"),
|
|
30
|
+
projectId: z.string().describe("Project identifier"),
|
|
31
|
+
tenantId: z.string().describe("Tenant identifier"),
|
|
32
|
+
});
|
|
29
33
|
|
|
30
34
|
export type GetApiKeyByIdResponse = {
|
|
31
35
|
ContentType: string;
|
|
@@ -40,19 +44,16 @@ export type GetApiKeyByIdResponse = {
|
|
|
40
44
|
InternalServerError?: InternalServerError | undefined;
|
|
41
45
|
};
|
|
42
46
|
|
|
43
|
-
export const GetApiKeyByIdResponse$zodSchema: z.ZodType<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Unauthorized: Unauthorized$zodSchema.optional(),
|
|
57
|
-
UnprocessableEntity: UnprocessableEntity$zodSchema.optional(),
|
|
58
|
-
});
|
|
47
|
+
export const GetApiKeyByIdResponse$zodSchema: z.ZodType<GetApiKeyByIdResponse> =
|
|
48
|
+
z.object({
|
|
49
|
+
ApiKeyResponse: ApiKeyResponse$zodSchema.optional(),
|
|
50
|
+
BadRequest: BadRequest$zodSchema.optional(),
|
|
51
|
+
ContentType: z.string(),
|
|
52
|
+
Forbidden: Forbidden$zodSchema.optional(),
|
|
53
|
+
InternalServerError: InternalServerError$zodSchema.optional(),
|
|
54
|
+
NotFound: NotFound$zodSchema.optional(),
|
|
55
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
56
|
+
StatusCode: z.number().int(),
|
|
57
|
+
Unauthorized: Unauthorized$zodSchema.optional(),
|
|
58
|
+
UnprocessableEntity: UnprocessableEntity$zodSchema.optional(),
|
|
59
|
+
});
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 284395798f79
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
+
import * as z from "zod";
|
|
6
7
|
|
|
7
8
|
export type GetApiUsersUserIdOrganizationsRequest = { userId: string };
|
|
8
9
|
|
|
9
10
|
export const GetApiUsersUserIdOrganizationsRequest$zodSchema: z.ZodType<
|
|
10
|
-
GetApiUsersUserIdOrganizationsRequest
|
|
11
|
-
z.ZodTypeDef,
|
|
12
|
-
unknown
|
|
11
|
+
GetApiUsersUserIdOrganizationsRequest
|
|
13
12
|
> = z.object({
|
|
14
|
-
userId: z.string().describe(
|
|
13
|
+
userId: z.string().describe("User ID"),
|
|
15
14
|
});
|
|
16
15
|
|
|
17
16
|
export type GetApiUsersUserIdOrganizationsResponseBody = {
|
|
@@ -25,9 +24,7 @@ export type GetApiUsersUserIdOrganizationsResponseBody = {
|
|
|
25
24
|
};
|
|
26
25
|
|
|
27
26
|
export const GetApiUsersUserIdOrganizationsResponseBody$zodSchema: z.ZodType<
|
|
28
|
-
GetApiUsersUserIdOrganizationsResponseBody
|
|
29
|
-
z.ZodTypeDef,
|
|
30
|
-
unknown
|
|
27
|
+
GetApiUsersUserIdOrganizationsResponseBody
|
|
31
28
|
> = z.object({
|
|
32
29
|
createdAt: z.string(),
|
|
33
30
|
id: z.string(),
|
|
@@ -42,19 +39,18 @@ export type GetApiUsersUserIdOrganizationsResponse = {
|
|
|
42
39
|
ContentType: string;
|
|
43
40
|
StatusCode: number;
|
|
44
41
|
RawResponse: Response;
|
|
45
|
-
ResponseBodies?:
|
|
42
|
+
ResponseBodies?:
|
|
43
|
+
| Array<GetApiUsersUserIdOrganizationsResponseBody>
|
|
44
|
+
| undefined;
|
|
46
45
|
};
|
|
47
46
|
|
|
48
47
|
export const GetApiUsersUserIdOrganizationsResponse$zodSchema: z.ZodType<
|
|
49
|
-
GetApiUsersUserIdOrganizationsResponse
|
|
50
|
-
z.ZodTypeDef,
|
|
51
|
-
unknown
|
|
48
|
+
GetApiUsersUserIdOrganizationsResponse
|
|
52
49
|
> = z.object({
|
|
53
50
|
ContentType: z.string(),
|
|
54
|
-
RawResponse: z.instanceof
|
|
55
|
-
ResponseBodies: z
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.optional(),
|
|
51
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
52
|
+
ResponseBodies: z.array(
|
|
53
|
+
z.lazy(() => GetApiUsersUserIdOrganizationsResponseBody$zodSchema),
|
|
54
|
+
).describe("List of user organizations").optional(),
|
|
59
55
|
StatusCode: z.number().int(),
|
|
60
56
|
});
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 16bcbccb6586
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
import * as z from
|
|
6
|
+
import * as z from "zod";
|
|
6
7
|
import {
|
|
7
|
-
|
|
8
|
+
ArtifactComponentResponse,
|
|
8
9
|
ArtifactComponentResponse$zodSchema,
|
|
9
|
-
} from
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
} from "./artifactcomponentresponse.js";
|
|
11
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
12
|
+
import { Forbidden, Forbidden$zodSchema } from "./forbidden.js";
|
|
13
|
+
import {
|
|
14
|
+
InternalServerError,
|
|
15
|
+
InternalServerError$zodSchema,
|
|
16
|
+
} from "./internalservererror.js";
|
|
17
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
18
|
+
import { Unauthorized, Unauthorized$zodSchema } from "./unauthorized.js";
|
|
19
|
+
import {
|
|
20
|
+
UnprocessableEntity,
|
|
21
|
+
UnprocessableEntity$zodSchema,
|
|
22
|
+
} from "./unprocessableentity.js";
|
|
16
23
|
|
|
17
24
|
export type GetArtifactComponentByIdRequest = {
|
|
18
25
|
tenantId: string;
|
|
@@ -21,13 +28,11 @@ export type GetArtifactComponentByIdRequest = {
|
|
|
21
28
|
};
|
|
22
29
|
|
|
23
30
|
export const GetArtifactComponentByIdRequest$zodSchema: z.ZodType<
|
|
24
|
-
GetArtifactComponentByIdRequest
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
unknown
|
|
31
|
+
GetArtifactComponentByIdRequest
|
|
27
32
|
> = z.object({
|
|
28
|
-
id: z.string().describe(
|
|
29
|
-
projectId: z.string().describe(
|
|
30
|
-
tenantId: z.string().describe(
|
|
33
|
+
id: z.string().describe("Resource identifier"),
|
|
34
|
+
projectId: z.string().describe("Project identifier"),
|
|
35
|
+
tenantId: z.string().describe("Tenant identifier"),
|
|
31
36
|
});
|
|
32
37
|
|
|
33
38
|
export type GetArtifactComponentByIdResponse = {
|
|
@@ -44,9 +49,7 @@ export type GetArtifactComponentByIdResponse = {
|
|
|
44
49
|
};
|
|
45
50
|
|
|
46
51
|
export const GetArtifactComponentByIdResponse$zodSchema: z.ZodType<
|
|
47
|
-
GetArtifactComponentByIdResponse
|
|
48
|
-
z.ZodTypeDef,
|
|
49
|
-
unknown
|
|
52
|
+
GetArtifactComponentByIdResponse
|
|
50
53
|
> = z.object({
|
|
51
54
|
ArtifactComponentResponse: ArtifactComponentResponse$zodSchema.optional(),
|
|
52
55
|
BadRequest: BadRequest$zodSchema.optional(),
|
|
@@ -54,7 +57,7 @@ export const GetArtifactComponentByIdResponse$zodSchema: z.ZodType<
|
|
|
54
57
|
Forbidden: Forbidden$zodSchema.optional(),
|
|
55
58
|
InternalServerError: InternalServerError$zodSchema.optional(),
|
|
56
59
|
NotFound: NotFound$zodSchema.optional(),
|
|
57
|
-
RawResponse: z.instanceof
|
|
60
|
+
RawResponse: z.custom<Response>(x => x instanceof Response),
|
|
58
61
|
StatusCode: z.number().int(),
|
|
59
62
|
Unauthorized: Unauthorized$zodSchema.optional(),
|
|
60
63
|
UnprocessableEntity: UnprocessableEntity$zodSchema.optional(),
|