@inkeep/agents-core 0.35.6 → 0.35.8
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/auth/auth.d.ts +1399 -5
- package/dist/auth/auth.js +20 -21
- package/dist/auth/permissions.d.ts +18 -18
- package/dist/index.d.ts +2 -2
- package/package.json +10 -6
package/dist/auth/auth.js
CHANGED
|
@@ -31,26 +31,6 @@ async function registerSSOProvider(dbClient, provider) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
function createAuth(config) {
|
|
34
|
-
const plugins = [
|
|
35
|
-
sso(),
|
|
36
|
-
organization({
|
|
37
|
-
allowUserToCreateOrganization: true,
|
|
38
|
-
ac,
|
|
39
|
-
roles: {
|
|
40
|
-
member: memberRole,
|
|
41
|
-
admin: adminRole,
|
|
42
|
-
owner: ownerRole
|
|
43
|
-
},
|
|
44
|
-
async sendInvitationEmail(data) {
|
|
45
|
-
console.log("\u{1F4E7} Invitation created:", {
|
|
46
|
-
email: data.email,
|
|
47
|
-
invitedBy: data.inviter.user.name || data.inviter.user.email,
|
|
48
|
-
organization: data.organization.name,
|
|
49
|
-
invitationId: data.id
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
})
|
|
53
|
-
];
|
|
54
34
|
const auth2 = betterAuth({
|
|
55
35
|
baseURL: config.baseURL,
|
|
56
36
|
secret: config.secret,
|
|
@@ -77,7 +57,26 @@ function createAuth(config) {
|
|
|
77
57
|
}
|
|
78
58
|
},
|
|
79
59
|
trustedOrigins: ["http://localhost:3000", "http://localhost:3002", config.baseURL],
|
|
80
|
-
plugins
|
|
60
|
+
plugins: [
|
|
61
|
+
sso(),
|
|
62
|
+
organization({
|
|
63
|
+
allowUserToCreateOrganization: true,
|
|
64
|
+
ac,
|
|
65
|
+
roles: {
|
|
66
|
+
member: memberRole,
|
|
67
|
+
admin: adminRole,
|
|
68
|
+
owner: ownerRole
|
|
69
|
+
},
|
|
70
|
+
async sendInvitationEmail(data) {
|
|
71
|
+
console.log("\u{1F4E7} Invitation created:", {
|
|
72
|
+
email: data.email,
|
|
73
|
+
invitedBy: data.inviter.user.name || data.inviter.user.email,
|
|
74
|
+
organization: data.organization.name,
|
|
75
|
+
invitationId: data.id
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
]
|
|
81
80
|
});
|
|
82
81
|
if (config.ssoProviders?.length) {
|
|
83
82
|
const providers = config.ssoProviders;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins from 'better-auth/plugins';
|
|
2
2
|
|
|
3
3
|
declare const ac: {
|
|
4
|
-
newRole<K extends "function" | "organization" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "member" | "invitation" | "team">(statements:
|
|
4
|
+
newRole<K extends "function" | "organization" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "member" | "invitation" | "team">(statements: better_auth_plugins.Subset<K, {
|
|
5
5
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
6
6
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
7
7
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -19,7 +19,7 @@ declare const ac: {
|
|
|
19
19
|
readonly team: readonly ["create", "update", "delete"];
|
|
20
20
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
21
21
|
}>): {
|
|
22
|
-
authorize<K_1 extends K>(request: K_1 extends infer T extends K_2 ? { [key in T]?:
|
|
22
|
+
authorize<K_1 extends K>(request: K_1 extends infer T extends K_2 ? { [key in T]?: better_auth_plugins.Subset<K, {
|
|
23
23
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
24
24
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
25
25
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -37,7 +37,7 @@ declare const ac: {
|
|
|
37
37
|
readonly team: readonly ["create", "update", "delete"];
|
|
38
38
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
39
39
|
}>[key] | {
|
|
40
|
-
actions:
|
|
40
|
+
actions: better_auth_plugins.Subset<K, {
|
|
41
41
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
42
42
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
43
43
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -56,8 +56,8 @@ declare const ac: {
|
|
|
56
56
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
57
57
|
}>[key];
|
|
58
58
|
connector: "OR" | "AND";
|
|
59
|
-
} | undefined; } : never, connector?: "OR" | "AND"):
|
|
60
|
-
statements:
|
|
59
|
+
} | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
|
|
60
|
+
statements: better_auth_plugins.Subset<K, {
|
|
61
61
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
62
62
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
63
63
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -96,7 +96,7 @@ declare const ac: {
|
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
98
|
declare const memberRole: {
|
|
99
|
-
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
99
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
100
100
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
101
101
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
102
102
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -114,7 +114,7 @@ declare const memberRole: {
|
|
|
114
114
|
readonly team: readonly ["create", "update", "delete"];
|
|
115
115
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
116
116
|
}>[key] | {
|
|
117
|
-
actions:
|
|
117
|
+
actions: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
118
118
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
119
119
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
120
120
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -133,8 +133,8 @@ declare const memberRole: {
|
|
|
133
133
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
134
134
|
}>[key];
|
|
135
135
|
connector: "OR" | "AND";
|
|
136
|
-
} | undefined; } : never, connector?: "OR" | "AND"):
|
|
137
|
-
statements:
|
|
136
|
+
} | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
|
|
137
|
+
statements: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
138
138
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
139
139
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
140
140
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -154,7 +154,7 @@ declare const memberRole: {
|
|
|
154
154
|
}>;
|
|
155
155
|
};
|
|
156
156
|
declare const adminRole: {
|
|
157
|
-
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
157
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
158
158
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
159
159
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
160
160
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -172,7 +172,7 @@ declare const adminRole: {
|
|
|
172
172
|
readonly team: readonly ["create", "update", "delete"];
|
|
173
173
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
174
174
|
}>[key] | {
|
|
175
|
-
actions:
|
|
175
|
+
actions: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
176
176
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
177
177
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
178
178
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -191,8 +191,8 @@ declare const adminRole: {
|
|
|
191
191
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
192
192
|
}>[key];
|
|
193
193
|
connector: "OR" | "AND";
|
|
194
|
-
} | undefined; } : never, connector?: "OR" | "AND"):
|
|
195
|
-
statements:
|
|
194
|
+
} | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
|
|
195
|
+
statements: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
196
196
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
197
197
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
198
198
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -212,7 +212,7 @@ declare const adminRole: {
|
|
|
212
212
|
}>;
|
|
213
213
|
};
|
|
214
214
|
declare const ownerRole: {
|
|
215
|
-
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
215
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
216
216
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
217
217
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
218
218
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -230,7 +230,7 @@ declare const ownerRole: {
|
|
|
230
230
|
readonly team: readonly ["create", "update", "delete"];
|
|
231
231
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
232
232
|
}>[key] | {
|
|
233
|
-
actions:
|
|
233
|
+
actions: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
234
234
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
235
235
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
236
236
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
@@ -249,8 +249,8 @@ declare const ownerRole: {
|
|
|
249
249
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
250
250
|
}>[key];
|
|
251
251
|
connector: "OR" | "AND";
|
|
252
|
-
} | undefined; } : never, connector?: "OR" | "AND"):
|
|
253
|
-
statements:
|
|
252
|
+
} | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
|
|
253
|
+
statements: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
254
254
|
readonly project: readonly ["create", "read", "update", "delete"];
|
|
255
255
|
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
256
256
|
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
|
|
|
2
2
|
import { r as PinoLogger, s as getLogger } from './auth-detection-CGqhPDnj.js';
|
|
3
3
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-CGqhPDnj.js';
|
|
4
4
|
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, schemaValidationDefaults } from './constants/schema-validation/index.js';
|
|
5
|
-
import
|
|
5
|
+
import zod__default, { z } from 'zod';
|
|
6
6
|
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext, az as PrebuiltMCPServerSchema } from './utility-C4QAannk.js';
|
|
7
7
|
export { bb as A2AError, bH as A2ARequest, bI as A2AResponse, aM as APIKeySecurityScheme, bW as AgentApiInsert, e3 as AgentApiInsertSchema, bV as AgentApiSelect, e2 as AgentApiSelectSchema, bX as AgentApiUpdate, e4 as AgentApiUpdateSchema, aI as AgentCapabilities, aW as AgentCard, dy as AgentConversationHistoryConfig, e0 as AgentInsertSchema, gN as AgentListResponse, aJ as AgentProvider, gx as AgentResponse, d$ as AgentSelectSchema, aK as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e1 as AgentUpdateSchema, h4 as AgentWithinContextOfProjectResponse, gh as AgentWithinContextOfProjectSchema, f7 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fc as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fd as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fb as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f9 as ApiKeyInsertSchema, gR as ApiKeyListResponse, gB as ApiKeyResponse, f8 as ApiKeySelectSchema, fa as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eV as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eU as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eW as ArtifactComponentApiUpdateSchema, he as ArtifactComponentArrayResponse, eS as ArtifactComponentInsertSchema, gW as ArtifactComponentListResponse, gG as ArtifactComponentResponse, eR as ArtifactComponentSelectSchema, eT as ArtifactComponentUpdateSchema, aP as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, gd as CanUseItemSchema, br as CancelTaskRequest, bC as CancelTaskResponse, bB as CancelTaskSuccessResponse, aQ as ClientCredentialsOAuthFlow, h6 as ComponentAssociationListResponse, fp as ComponentAssociationSchema, b9 as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eC as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eB as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eD as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, ez as ContextCacheInsertSchema, ey as ContextCacheSelectSchema, cr as ContextCacheUpdate, eA as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fN as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fM as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fO as ContextConfigApiUpdateSchema, fK as ContextConfigInsertSchema, gQ as ContextConfigListResponse, gA as ContextConfigResponse, fJ as ContextConfigSelectSchema, fL as ContextConfigUpdateSchema, cg as ConversationApiInsert, eq as ConversationApiInsertSchema, cf as ConversationApiSelect, ep as ConversationApiSelectSchema, ch as ConversationApiUpdate, er as ConversationApiUpdateSchema, en as ConversationInsertSchema, gZ as ConversationListResponse, gJ as ConversationResponse, dx as ConversationScopeOptions, em as ConversationSelectSchema, eo as ConversationUpdateSchema, fm as CreateCredentialInStoreRequestSchema, fn as CreateCredentialInStoreResponseSchema, fi as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fh as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fj as CredentialReferenceApiUpdateSchema, ff as CredentialReferenceInsertSchema, gS as CredentialReferenceListResponse, gC as CredentialReferenceResponse, fe as CredentialReferenceSelectSchema, fg as CredentialReferenceUpdateSchema, fl as CredentialStoreListResponseSchema, fk as CredentialStoreSchema, cw as DataComponentApiInsert, eJ as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eI as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eK as DataComponentApiUpdateSchema, hd as DataComponentArrayResponse, eG as DataComponentBaseSchema, eF as DataComponentInsertSchema, gV as DataComponentListResponse, gF as DataComponentResponse, eE as DataComponentSelectSchema, eH as DataComponentUpdateSchema, aG as DataPart, gl as ErrorResponseSchema, gm as ExistsResponseSchema, cO as ExternalAgentApiInsert, f5 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f4 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f6 as ExternalAgentApiUpdateSchema, f2 as ExternalAgentInsertSchema, gP as ExternalAgentListResponse, gz as ExternalAgentResponse, f1 as ExternalAgentSelectSchema, f3 as ExternalAgentUpdateSchema, bU as ExternalSubAgentRelationApiInsert, d_ as ExternalSubAgentRelationApiInsertSchema, bT as ExternalSubAgentRelationInsert, dZ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fH as FetchConfigSchema, cp as FetchDefinition, fI as FetchDefinitionSchema, aC as FileBase, aF as FilePart, aD as FileWithBytes, aE as FileWithUri, df as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h3 as FullProjectDefinitionResponse, gu as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cc as FunctionApiSelect, j as FunctionApiSelectSchema, cd as FunctionApiUpdate, k as FunctionApiUpdateSchema, ca as FunctionInsert, fF as FunctionInsertSchema, gT as FunctionListResponse, gD as FunctionResponse, c9 as FunctionSelect, fE as FunctionSelectSchema, fC as FunctionToolApiInsertSchema, ce as FunctionToolApiSelect, fB as FunctionToolApiSelectSchema, fD as FunctionToolApiUpdateSchema, dL as FunctionToolConfig, dK as FunctionToolConfigSchema, fz as FunctionToolInsertSchema, gU as FunctionToolListResponse, gE as FunctionToolResponse, fy as FunctionToolSelectSchema, fA as FunctionToolUpdateSchema, cb as FunctionUpdate, fG as FunctionUpdateSchema, bt as GetTaskPushNotificationConfigRequest, bG as GetTaskPushNotificationConfigResponse, bF as GetTaskPushNotificationConfigSuccessResponse, bq as GetTaskRequest, bA as GetTaskResponse, bz as GetTaskSuccessResponse, aN as HTTPAuthSecurityScheme, hf as HeadersScopeSchema, aR as ImplicitOAuthFlow, b4 as InternalError, ba as InvalidAgentResponseError, b3 as InvalidParamsError, b1 as InvalidRequestError, b0 as JSONParseError, bl as JSONRPCError, bn as JSONRPCErrorResponse, bj as JSONRPCMessage, bk as JSONRPCRequest, bm as JSONRPCResult, dd as LedgerArtifactApiInsert, g9 as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g8 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, ga as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g6 as LedgerArtifactInsertSchema, g5 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g7 as LedgerArtifactUpdateSchema, gj as ListResponseSchema, hp as MCPCatalogListResponse, dH as MCPServerType, ft as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ej as McpToolDefinitionSchema, h8 as McpToolListResponse, h7 as McpToolResponse, fs as McpToolSchema, dC as McpTransportConfig, eh as McpTransportConfigSchema, aX as Message, ck as MessageApiInsert, ew as MessageApiInsertSchema, cj as MessageApiSelect, ev as MessageApiSelectSchema, cl as MessageApiUpdate, ex as MessageApiUpdateSchema, et as MessageInsertSchema, g_ as MessageListResponse, ds as MessageMode, bJ as MessagePart, gK as MessageResponse, dr as MessageRole, ci as MessageSelect, es as MessageSelectSchema, bh as MessageSendConfiguration, bi as MessageSendParams, dq as MessageType, eu as MessageUpdateSchema, b2 as MethodNotFoundError, dI as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dt as Models, aT as OAuth2SecurityScheme, fr as OAuthCallbackQuerySchema, aO as OAuthFlows, fq as OAuthLoginQuerySchema, aU as OpenIdConnectSecurityScheme, dn as Pagination, ho as PaginationQueryParamsSchema, gi as PaginationSchema, P as Part, aA as PartBase, aS as PasswordOAuthFlow, dl as ProjectApiInsert, gs as ProjectApiInsertSchema, dk as ProjectApiSelect, gr as ProjectApiSelectSchema, dm as ProjectApiUpdate, gt as ProjectApiUpdateSchema, gp as ProjectInsertSchema, gL as ProjectListResponse, dJ as ProjectModelSchema, du as ProjectModels, gv as ProjectResponse, go as ProjectSelectSchema, gq as ProjectUpdateSchema, bc as PushNotificationAuthenticationInfo, bd as PushNotificationConfig, b7 as PushNotificationNotSupportedError, h5 as RelatedAgentInfoListResponse, fo as RelatedAgentInfoSchema, gn as RemovedResponseSchema, aV as SecurityScheme, aL as SecuritySchemeBase, bo as SendMessageRequest, bw as SendMessageResponse, bv as SendMessageSuccessResponse, bp as SendStreamingMessageRequest, by as SendStreamingMessageResponse, bx as SendStreamingMessageSuccessResponse, bs as SetTaskPushNotificationConfigRequest, bE as SetTaskPushNotificationConfigResponse, bD as SetTaskPushNotificationConfigSuccessResponse, gk as SingleResponseSchema, dw as StatusComponent, gb as StatusComponentSchema, gc as StatusUpdateSchema, dv as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bM as SubAgentApiInsert, dQ as SubAgentApiInsertSchema, bL as SubAgentApiSelect, dP as SubAgentApiSelectSchema, bN as SubAgentApiUpdate, dR as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, e$ as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e_ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f0 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eY as SubAgentArtifactComponentInsertSchema, h2 as SubAgentArtifactComponentListResponse, h0 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eX as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, eZ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eP as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eO as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eQ as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eM as SubAgentDataComponentInsertSchema, h1 as SubAgentDataComponentListResponse, g$ as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eL as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eN as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, fZ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fY as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f_ as SubAgentExternalAgentRelationApiUpdateSchema, fW as SubAgentExternalAgentRelationInsertSchema, hc as SubAgentExternalAgentRelationListResponse, hb as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fV as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fX as SubAgentExternalAgentRelationUpdateSchema, dN as SubAgentInsertSchema, gM as SubAgentListResponse, bQ as SubAgentRelationApiInsert, dW as SubAgentRelationApiInsertSchema, bP as SubAgentRelationApiSelect, dV as SubAgentRelationApiSelectSchema, bR as SubAgentRelationApiUpdate, dX as SubAgentRelationApiUpdateSchema, dT as SubAgentRelationInsertSchema, gX as SubAgentRelationListResponse, bS as SubAgentRelationQuery, dY as SubAgentRelationQuerySchema, gH as SubAgentRelationResponse, bO as SubAgentRelationSelect, dS as SubAgentRelationSelectSchema, dU as SubAgentRelationUpdateSchema, gw as SubAgentResponse, dM as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g3 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g2 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g4 as SubAgentTeamAgentRelationApiUpdateSchema, g0 as SubAgentTeamAgentRelationInsertSchema, ha as SubAgentTeamAgentRelationListResponse, h9 as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, f$ as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g1 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fT as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fS as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fU as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fQ as SubAgentToolRelationInsertSchema, gY as SubAgentToolRelationListResponse, gI as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fP as SubAgentToolRelationSelectSchema, fR as SubAgentToolRelationUpdateSchema, dO as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, aZ as Task, b_ as TaskApiInsert, e9 as TaskApiInsertSchema, bZ as TaskApiSelect, e8 as TaskApiSelectSchema, b$ as TaskApiUpdate, ea as TaskApiUpdateSchema, bK as TaskArtifact, a$ as TaskArtifactUpdateEvent, bf as TaskIdParams, e6 as TaskInsertSchema, b6 as TaskNotCancelableError, b5 as TaskNotFoundError, be as TaskPushNotificationConfig, bg as TaskQueryParams, c4 as TaskRelationApiInsert, ef as TaskRelationApiInsertSchema, c3 as TaskRelationApiSelect, ee as TaskRelationApiSelectSchema, c5 as TaskRelationApiUpdate, eg as TaskRelationApiUpdateSchema, c1 as TaskRelationInsert, ec as TaskRelationInsertSchema, c0 as TaskRelationSelect, eb as TaskRelationSelectSchema, c2 as TaskRelationUpdate, ed as TaskRelationUpdateSchema, bu as TaskResubscriptionRequest, e5 as TaskSelectSchema, aH as TaskState, aY as TaskStatus, a_ as TaskStatusUpdateEvent, bY as TaskUpdate, e7 as TaskUpdateSchema, gg as TeamAgentSchema, hh as TenantIdParamsSchema, hg as TenantParamsSchema, hl as TenantProjectAgentIdParamsSchema, hk as TenantProjectAgentParamsSchema, hn as TenantProjectAgentSubAgentIdParamsSchema, hm as TenantProjectAgentSubAgentParamsSchema, hj as TenantProjectIdParamsSchema, hi as TenantProjectParamsSchema, aB as TextPart, hq as ThirdPartyMCPServerResponse, c7 as ToolApiInsert, fw as ToolApiInsertSchema, c6 as ToolApiSelect, fv as ToolApiSelectSchema, c8 as ToolApiUpdate, fx as ToolApiUpdateSchema, dj as ToolDefinition, el as ToolInsertSchema, gO as ToolListResponse, gy as ToolResponse, ek as ToolSelectSchema, ei as ToolStatusSchema, fu as ToolUpdateSchema, b8 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, ge as canDelegateToExternalAgentSchema, gf as canDelegateToTeamAgentSchema } from './utility-C4QAannk.js';
|
|
8
8
|
import { CredentialStoreRegistry } from './credential-stores/index.js';
|
|
@@ -4425,7 +4425,7 @@ declare function verifyAuthorizationHeader(authHeader: string | undefined): Prom
|
|
|
4425
4425
|
* Handles all Composio-specific operations for MCP server integration
|
|
4426
4426
|
*/
|
|
4427
4427
|
|
|
4428
|
-
type PrebuiltMCPServer =
|
|
4428
|
+
type PrebuiltMCPServer = zod__default.infer<typeof PrebuiltMCPServerSchema>;
|
|
4429
4429
|
/**
|
|
4430
4430
|
* Extract server ID from a Composio MCP URL
|
|
4431
4431
|
* Example: https://backend.composio.dev/v3/mcp/1234-1234-1234?user_id=... -> 1234-1234-1234
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.8",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -74,9 +74,8 @@
|
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@composio/core": "^0.2.4",
|
|
76
76
|
"@electric-sql/pglite": "^0.3.13",
|
|
77
|
-
"@better-auth/sso": "^1.
|
|
77
|
+
"@better-auth/sso": "^1.4.0",
|
|
78
78
|
"@hono/node-server": "^1.14.3",
|
|
79
|
-
"@hono/zod-openapi": "^1.0.2",
|
|
80
79
|
"@modelcontextprotocol/sdk": "^1.17.2",
|
|
81
80
|
"@nangohq/node": "^0.69.5",
|
|
82
81
|
"@nangohq/types": "^0.69.5",
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
"ai": "5.0.11",
|
|
93
92
|
"ajv": "^8.17.1",
|
|
94
93
|
"ajv-formats": "^3.0.1",
|
|
95
|
-
"better-auth": "^1.
|
|
94
|
+
"better-auth": "^1.4.0",
|
|
96
95
|
"dotenv": "^17.2.1",
|
|
97
96
|
"dotenv-expand": "^12.0.3",
|
|
98
97
|
"drizzle-orm": "^0.44.4",
|
|
@@ -106,13 +105,17 @@
|
|
|
106
105
|
"pg": "^8.16.3",
|
|
107
106
|
"pino": "^9.11.0",
|
|
108
107
|
"pino-pretty": "^13.1.1",
|
|
109
|
-
"ts-pattern": "^5.7.1"
|
|
108
|
+
"ts-pattern": "^5.7.1"
|
|
109
|
+
},
|
|
110
|
+
"peerDependencies": {
|
|
111
|
+
"@hono/zod-openapi": "^1.0.2",
|
|
110
112
|
"zod": "^4.1.11"
|
|
111
113
|
},
|
|
112
114
|
"optionalDependencies": {
|
|
113
115
|
"keytar": "^7.9.0"
|
|
114
116
|
},
|
|
115
117
|
"devDependencies": {
|
|
118
|
+
"@hono/zod-openapi": "^1.0.2",
|
|
116
119
|
"@types/jmespath": "^0.15.2",
|
|
117
120
|
"@types/node": "^20.11.24",
|
|
118
121
|
"@types/pg": "^8.15.6",
|
|
@@ -121,7 +124,8 @@
|
|
|
121
124
|
"drizzle-kit": "^0.31.6",
|
|
122
125
|
"tsx": "^4.19.2",
|
|
123
126
|
"typescript": "^5.9.2",
|
|
124
|
-
"vitest": "^3.2.4"
|
|
127
|
+
"vitest": "^3.2.4",
|
|
128
|
+
"zod": "^4.1.11"
|
|
125
129
|
},
|
|
126
130
|
"engines": {
|
|
127
131
|
"node": ">=22.0.0"
|