@inkeep/agents-manage-api 0.0.0-dev-20251125133229 → 0.0.0-dev-20251125155922
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/dist/{chunk-E6MMKGXH.js → chunk-AZCUT3UE.js} +31 -32
- package/dist/factory.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +7 -5
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { F, u, R, x, T, h, U, L, or, C, Vr, ce, ur, P } from './chunk-SBJLXGYG.js';
|
|
2
2
|
import { loadEnvironmentFiles, createDatabaseClient, getLogger, commonGetErrorResponses, AgentListResponse, PaginationQueryParamsSchema, TenantProjectParamsSchema, listAgents, AgentResponse, TenantProjectIdParamsSchema, getAgentById, createApiError, RelatedAgentInfoListResponse, TenantProjectAgentSubAgentParamsSchema, getAgentSubAgentInfos, AgentWithinContextOfProjectResponse, TenantProjectAgentParamsSchema, getFullAgentDefinition, AgentApiInsertSchema, createAgent, generateId, AgentApiUpdateSchema, updateAgent, ErrorResponseSchema, deleteAgent, AgentWithinContextOfProjectSchema, createFullAgentServerSide, getFullAgent, updateFullAgentServerSide, deleteFullAgent, ApiKeyListResponse, listApiKeysPaginated, ApiKeyResponse, getApiKeyById, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, generateApiKey, createApiKey, ApiKeyApiUpdateSchema, updateApiKey, deleteApiKey, ArtifactComponentListResponse, listArtifactComponentsPaginated, ArtifactComponentResponse, getArtifactComponentById, ArtifactComponentApiInsertSchema, validatePropsAsJsonSchema, createArtifactComponent, ArtifactComponentApiUpdateSchema, updateArtifactComponent, deleteArtifactComponent, ContextConfigListResponse, listContextConfigsPaginated, ContextConfigResponse, TenantProjectAgentIdParamsSchema, getContextConfigById, ContextConfigApiInsertSchema, createContextConfig, commonUpdateErrorResponses, ContextConfigApiUpdateSchema, updateContextConfig, commonDeleteErrorResponses, deleteContextConfig, getConversationHistory, formatMessagesForLLMContext, CredentialStoreListResponseSchema, CreateCredentialInStoreResponseSchema, CreateCredentialInStoreRequestSchema, CredentialReferenceListResponse, listCredentialReferencesPaginated, ListResponseSchema, CredentialReferenceApiSelectSchema, CredentialReferenceResponse, getCredentialReferenceWithResources, CredentialReferenceApiInsertSchema, createCredentialReference, CredentialReferenceApiUpdateSchema, updateCredentialReference, getCredentialReferenceById, getCredentialStoreLookupKeyFromRetrievalParams, deleteCredentialReference, DataComponentListResponse, listDataComponentsPaginated, DataComponentResponse, getDataComponent, DataComponentApiInsertSchema, createDataComponent, DataComponentApiUpdateSchema, updateDataComponent, deleteDataComponent, ExternalAgentListResponse, listExternalAgentsPaginated, ExternalAgentResponse, getExternalAgent, ExternalAgentApiInsertSchema, createExternalAgent, ExternalAgentApiUpdateSchema, updateExternalAgent, deleteExternalAgent, FunctionListResponse, listFunctions, FunctionResponse, getFunction, FunctionApiInsertSchema, upsertFunction, FunctionApiUpdateSchema, deleteFunction, FunctionToolListResponse, listFunctionTools, FunctionToolResponse, getFunctionToolById, FunctionToolApiInsertSchema, createFunctionTool, FunctionToolApiUpdateSchema, updateFunctionTool, deleteFunctionTool, MCPCatalogListResponse, fetchComposioServers, MCPTransportType, ProjectListResponse, TenantParamsSchema, listProjectsPaginated, ProjectResponse, TenantIdParamsSchema, getProject, ProjectApiInsertSchema, createProject, ProjectApiUpdateSchema, updateProject, deleteProject, ArtifactComponentArrayResponse, getArtifactComponentsForAgent, ComponentAssociationListResponse, getAgentsUsingArtifactComponent, SubAgentArtifactComponentResponse, SubAgentArtifactComponentApiInsertSchema, getSubAgentById, isArtifactComponentAssociatedWithAgent, associateArtifactComponentWithAgent, RemovedResponseSchema, removeArtifactComponentFromAgent, ExistsResponseSchema, DataComponentArrayResponse, getDataComponentsForAgent, getAgentsUsingDataComponent, SubAgentDataComponentResponse, SubAgentDataComponentApiInsertSchema, isDataComponentAssociatedWithAgent, associateDataComponentWithAgent, removeDataComponentFromAgent, SubAgentExternalAgentRelationListResponse, listSubAgentExternalAgentRelations, SubAgentExternalAgentRelationResponse, TenantProjectAgentSubAgentIdParamsSchema, getSubAgentExternalAgentRelationById, SubAgentExternalAgentRelationApiInsertSchema, createSubAgentExternalAgentRelation, SubAgentExternalAgentRelationApiUpdateSchema, updateSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelation, SubAgentRelationListResponse, SubAgentRelationQuerySchema, getAgentRelationsBySource, getSubAgentRelationsByTarget, listAgentRelations, SubAgentRelationResponse, getAgentRelationById, SubAgentRelationApiInsertSchema, validateSubAgent, createSubAgentRelation, SubAgentRelationApiUpdateSchema, updateAgentRelation, deleteSubAgentRelation, SubAgentListResponse, listSubAgentsPaginated, SubAgentResponse, SubAgentApiInsertSchema, createSubAgent, SubAgentApiUpdateSchema, updateSubAgent, deleteSubAgent, SubAgentIsDefaultError, SubAgentTeamAgentRelationListResponse, listSubAgentTeamAgentRelations, SubAgentTeamAgentRelationResponse, getSubAgentTeamAgentRelationById, SubAgentTeamAgentRelationApiInsertSchema, createSubAgentTeamAgentRelation, SubAgentTeamAgentRelationApiUpdateSchema, updateSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelation, SubAgentToolRelationListResponse, getAgentToolRelationByAgent, getAgentToolRelationByTool, listAgentToolRelations, SubAgentToolRelationResponse, getAgentToolRelationById, getAgentsForTool, SubAgentToolRelationApiInsertSchema, createAgentToolRelation, SubAgentToolRelationApiUpdateSchema, updateAgentToolRelation, deleteAgentToolRelation, ThirdPartyMCPServerResponse, fetchSingleComposioServer, McpToolListResponse, ToolStatusSchema, listTools, dbResultToMcpTool, McpToolResponse, getToolById, ToolApiInsertSchema, createTool, ToolApiUpdateSchema, updateTool, deleteTool, getPendingInvitationsByEmail, OAuthLoginQuerySchema, OAuthCallbackQuerySchema, CredentialStoreType, projectExists, signTempToken, FullProjectDefinitionResponse, FullProjectDefinitionSchema, createFullProjectServerSide, getFullProject, updateFullProjectServerSide, deleteFullProject, getUserOrganizations, addUserToOrganization, initiateMcpOAuthFlow, exchangeMcpAuthorizationCode, handleApiError, organization, getUserByEmail, member, createDefaultCredentialStores, CredentialStoreRegistry, validateAndGetApiKey } from '@inkeep/agents-core';
|
|
3
3
|
import { createAuth } from '@inkeep/agents-core/auth';
|
|
4
|
-
import { OpenAPIHono, createRoute
|
|
4
|
+
import { z, OpenAPIHono, createRoute } from '@hono/zod-openapi';
|
|
5
5
|
import { Hono } from 'hono';
|
|
6
6
|
import { cors } from 'hono/cors';
|
|
7
7
|
import { HTTPException } from 'hono/http-exception';
|
|
8
8
|
import { requestId } from 'hono/request-id';
|
|
9
9
|
import { pinoLogger } from 'hono-pino';
|
|
10
|
-
import * as z236 from 'zod';
|
|
11
|
-
import { z } from 'zod';
|
|
12
10
|
import { createMiddleware } from 'hono/factory';
|
|
13
11
|
import * as schema from '@inkeep/agents-core/db/schema';
|
|
14
12
|
import { drizzle } from 'drizzle-orm/pglite';
|
|
15
13
|
import { swaggerUI } from '@hono/swagger-ui';
|
|
16
14
|
import { nanoid } from 'nanoid';
|
|
17
15
|
import { StreamableHTTPTransport } from '@hono/mcp';
|
|
16
|
+
import * as z236 from 'zod';
|
|
18
17
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
19
18
|
import { UserOrganizationsResponseSchema, AddUserToOrganizationResponseSchema, AddUserToOrganizationRequestSchema } from '@inkeep/agents-core/auth/validation';
|
|
20
19
|
import { eq, and } from 'drizzle-orm';
|
|
@@ -11015,18 +11014,18 @@ app24.route("/projects/:projectId/mcp-catalog", mcpCatalog_default);
|
|
|
11015
11014
|
app24.route("/projects/:projectId/third-party-mcp-servers", thirdPartyMCPServers_default);
|
|
11016
11015
|
var routes_default = app24;
|
|
11017
11016
|
var invitationsRoutes = new OpenAPIHono();
|
|
11018
|
-
var PendingInvitationSchema = z
|
|
11019
|
-
id: z
|
|
11020
|
-
email: z
|
|
11021
|
-
organizationId: z
|
|
11022
|
-
organizationName: z
|
|
11023
|
-
organizationSlug: z
|
|
11024
|
-
role: z
|
|
11025
|
-
status: z
|
|
11026
|
-
expiresAt: z
|
|
11027
|
-
inviterId: z
|
|
11028
|
-
});
|
|
11029
|
-
var PendingInvitationsResponseSchema = z
|
|
11017
|
+
var PendingInvitationSchema = z.object({
|
|
11018
|
+
id: z.string(),
|
|
11019
|
+
email: z.string(),
|
|
11020
|
+
organizationId: z.string(),
|
|
11021
|
+
organizationName: z.string().nullable(),
|
|
11022
|
+
organizationSlug: z.string().nullable(),
|
|
11023
|
+
role: z.string().nullable(),
|
|
11024
|
+
status: z.string(),
|
|
11025
|
+
expiresAt: z.number(),
|
|
11026
|
+
inviterId: z.string()
|
|
11027
|
+
});
|
|
11028
|
+
var PendingInvitationsResponseSchema = z.array(PendingInvitationSchema);
|
|
11030
11029
|
invitationsRoutes.openapi(
|
|
11031
11030
|
createRoute({
|
|
11032
11031
|
method: "get",
|
|
@@ -11035,8 +11034,8 @@ invitationsRoutes.openapi(
|
|
|
11035
11034
|
summary: "Get pending invitations",
|
|
11036
11035
|
description: "Get all pending (non-expired) invitations for a given email address",
|
|
11037
11036
|
request: {
|
|
11038
|
-
query: z
|
|
11039
|
-
email: z
|
|
11037
|
+
query: z.object({
|
|
11038
|
+
email: z.email().describe("Email address to check for invitations")
|
|
11040
11039
|
})
|
|
11041
11040
|
},
|
|
11042
11041
|
responses: {
|
|
@@ -29109,7 +29108,7 @@ app26.openapi(
|
|
|
29109
29108
|
description: "OAuth not supported or configuration error",
|
|
29110
29109
|
content: {
|
|
29111
29110
|
"text/html": {
|
|
29112
|
-
schema: z
|
|
29111
|
+
schema: z.string()
|
|
29113
29112
|
}
|
|
29114
29113
|
}
|
|
29115
29114
|
},
|
|
@@ -29117,7 +29116,7 @@ app26.openapi(
|
|
|
29117
29116
|
description: "Tool not found",
|
|
29118
29117
|
content: {
|
|
29119
29118
|
"text/html": {
|
|
29120
|
-
schema: z
|
|
29119
|
+
schema: z.string()
|
|
29121
29120
|
}
|
|
29122
29121
|
}
|
|
29123
29122
|
},
|
|
@@ -29125,7 +29124,7 @@ app26.openapi(
|
|
|
29125
29124
|
description: "Internal server error",
|
|
29126
29125
|
content: {
|
|
29127
29126
|
"text/html": {
|
|
29128
|
-
schema: z
|
|
29127
|
+
schema: z.string()
|
|
29129
29128
|
}
|
|
29130
29129
|
}
|
|
29131
29130
|
}
|
|
@@ -29174,7 +29173,7 @@ app26.openapi(
|
|
|
29174
29173
|
description: "OAuth error or invalid request",
|
|
29175
29174
|
content: {
|
|
29176
29175
|
"text/html": {
|
|
29177
|
-
schema: z
|
|
29176
|
+
schema: z.string()
|
|
29178
29177
|
}
|
|
29179
29178
|
}
|
|
29180
29179
|
},
|
|
@@ -29182,7 +29181,7 @@ app26.openapi(
|
|
|
29182
29181
|
description: "Internal server error",
|
|
29183
29182
|
content: {
|
|
29184
29183
|
"text/html": {
|
|
29185
|
-
schema: z
|
|
29184
|
+
schema: z.string()
|
|
29186
29185
|
}
|
|
29187
29186
|
}
|
|
29188
29187
|
}
|
|
@@ -29302,13 +29301,13 @@ var oauth_default = app26;
|
|
|
29302
29301
|
var logger8 = getLogger("playgroundToken");
|
|
29303
29302
|
var app27 = new OpenAPIHono();
|
|
29304
29303
|
app27.use("/", requirePermission({ agent: ["create"] }));
|
|
29305
|
-
var PlaygroundTokenRequestSchema = z
|
|
29306
|
-
projectId: z
|
|
29307
|
-
agentId: z
|
|
29304
|
+
var PlaygroundTokenRequestSchema = z.object({
|
|
29305
|
+
projectId: z.string(),
|
|
29306
|
+
agentId: z.string()
|
|
29308
29307
|
});
|
|
29309
|
-
var PlaygroundTokenResponseSchema = z
|
|
29310
|
-
apiKey: z
|
|
29311
|
-
expiresAt: z
|
|
29308
|
+
var PlaygroundTokenResponseSchema = z.object({
|
|
29309
|
+
apiKey: z.string().describe("Temporary API key for playground use"),
|
|
29310
|
+
expiresAt: z.string().describe("ISO 8601 timestamp when the key expires")
|
|
29312
29311
|
});
|
|
29313
29312
|
app27.openapi(
|
|
29314
29313
|
createRoute({
|
|
@@ -29674,8 +29673,8 @@ userOrganizationsRoutes.openapi(
|
|
|
29674
29673
|
summary: "List user organizations",
|
|
29675
29674
|
description: "Get all organizations associated with a user",
|
|
29676
29675
|
request: {
|
|
29677
|
-
params: z
|
|
29678
|
-
userId: z
|
|
29676
|
+
params: z.object({
|
|
29677
|
+
userId: z.string().describe("User ID")
|
|
29679
29678
|
})
|
|
29680
29679
|
},
|
|
29681
29680
|
responses: {
|
|
@@ -29707,8 +29706,8 @@ userOrganizationsRoutes.openapi(
|
|
|
29707
29706
|
summary: "Add user to organization",
|
|
29708
29707
|
description: "Associate a user with an organization",
|
|
29709
29708
|
request: {
|
|
29710
|
-
params: z
|
|
29711
|
-
userId: z
|
|
29709
|
+
params: z.object({
|
|
29710
|
+
userId: z.string().describe("User ID")
|
|
29712
29711
|
}),
|
|
29713
29712
|
body: {
|
|
29714
29713
|
content: {
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-
|
|
1
|
+
export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-AZCUT3UE.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createAuth0Provider, createManagementHono, env, initializeDefaultUser, dbClient_default } from './chunk-
|
|
2
|
-
export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-
|
|
1
|
+
import { createAuth0Provider, createManagementHono, env, initializeDefaultUser, dbClient_default } from './chunk-AZCUT3UE.js';
|
|
2
|
+
export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-AZCUT3UE.js';
|
|
3
3
|
import { createDefaultCredentialStores, CredentialStoreRegistry } from '@inkeep/agents-core';
|
|
4
4
|
import { createAuth } from '@inkeep/agents-core/auth';
|
|
5
5
|
export { Hono } from 'hono';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-manage-api",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251125155922",
|
|
4
4
|
"description": "Agents Manage API for Inkeep Agent Framework - handles CRUD operations and OAuth",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"@composio/core": "^0.2.4",
|
|
22
22
|
"@hono/node-server": "^1.14.3",
|
|
23
23
|
"@hono/swagger-ui": "^0.5.1",
|
|
24
|
-
"@hono/zod-openapi": "^1.0.2",
|
|
25
24
|
"@modelcontextprotocol/sdk": "^1.17.0",
|
|
26
25
|
"@nangohq/node": "^0.69.5",
|
|
27
26
|
"@nangohq/types": "^0.69.5",
|
|
@@ -33,9 +32,12 @@
|
|
|
33
32
|
"nanoid": "^5.1.5",
|
|
34
33
|
"openid-client": "^6.6.4",
|
|
35
34
|
"pino": "^9.7.0",
|
|
36
|
-
"
|
|
37
|
-
"@inkeep/agents-
|
|
38
|
-
|
|
35
|
+
"@inkeep/agents-core": "^0.0.0-dev-20251125155922",
|
|
36
|
+
"@inkeep/agents-manage-mcp": "^0.0.0-dev-20251125155922"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@hono/zod-openapi": "^1.1.5",
|
|
40
|
+
"zod": "^4.1.11"
|
|
39
41
|
},
|
|
40
42
|
"optionalDependencies": {
|
|
41
43
|
"keytar": "^7.9.0"
|