@inkeep/agents-core 0.0.0-dev-20260204091343 → 0.0.0-dev-20260204160325

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/auth/auth.d.ts +18 -18
  2. package/dist/auth/authz/index.d.ts +2 -2
  3. package/dist/auth/authz/index.js +2 -2
  4. package/dist/auth/authz/permissions.d.ts +16 -1
  5. package/dist/auth/authz/permissions.js +26 -1
  6. package/dist/auth/permissions.d.ts +9 -9
  7. package/dist/client-exports.d.ts +2 -3
  8. package/dist/constants/otel-attributes.d.ts +1 -0
  9. package/dist/constants/otel-attributes.js +1 -0
  10. package/dist/data-access/index.d.ts +2 -2
  11. package/dist/data-access/index.js +4 -4
  12. package/dist/data-access/manage/agents.d.ts +38 -21
  13. package/dist/data-access/manage/agents.js +33 -2
  14. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  15. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  16. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  17. package/dist/data-access/manage/functionTools.d.ts +14 -14
  18. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  19. package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
  20. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  21. package/dist/data-access/manage/subAgents.d.ts +12 -12
  22. package/dist/data-access/manage/tools.d.ts +27 -27
  23. package/dist/data-access/manage/tools.js +1 -1
  24. package/dist/data-access/manage/triggers.d.ts +2 -2
  25. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  26. package/dist/data-access/runtime/conversations.d.ts +20 -20
  27. package/dist/data-access/runtime/messages.d.ts +21 -21
  28. package/dist/data-access/runtime/tasks.d.ts +5 -5
  29. package/dist/db/manage/manage-schema.d.ts +382 -382
  30. package/dist/db/runtime/runtime-schema.d.ts +232 -232
  31. package/dist/dolt/branch.js +1 -1
  32. package/dist/dolt/branches-api.js +1 -1
  33. package/dist/dolt/index.js +3 -3
  34. package/dist/dolt/migrate-all-branches.js +1 -1
  35. package/dist/dolt/ref-helpers.js +1 -1
  36. package/dist/dolt/ref-scope.js +1 -1
  37. package/dist/index.d.ts +3 -3
  38. package/dist/index.js +11 -11
  39. package/dist/utils/temp-jwt.d.ts +2 -1
  40. package/dist/utils/temp-jwt.js +3 -2
  41. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  42. package/dist/validation/schemas.d.ts +496 -496
  43. package/package.json +1 -1
@@ -18,19 +18,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- tenantId: string;
22
- projectId: string;
21
+ headers: Record<string, string> | null;
23
22
  id: string;
23
+ createdAt: string;
24
+ updatedAt: string;
24
25
  name: string;
26
+ tenantId: string;
27
+ projectId: string;
25
28
  description: string | null;
26
29
  config: {
27
30
  type: "mcp";
28
31
  mcp: ToolMcpConfig;
29
32
  };
30
33
  credentialReferenceId: string | null;
31
- createdAt: string;
32
- updatedAt: string;
33
- headers: Record<string, string> | null;
34
34
  credentialScope: string;
35
35
  imageUrl: string | null;
36
36
  capabilities: ToolServerCapabilities | null;
@@ -76,19 +76,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
76
76
  };
77
77
  }>;
78
78
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
- tenantId: string;
80
- projectId: string;
79
+ headers: Record<string, string> | null;
81
80
  id: string;
81
+ createdAt: string;
82
+ updatedAt: string;
82
83
  name: string;
84
+ tenantId: string;
85
+ projectId: string;
83
86
  description: string | null;
84
87
  config: {
85
88
  type: "mcp";
86
89
  mcp: ToolMcpConfig;
87
90
  };
88
91
  credentialReferenceId: string | null;
89
- createdAt: string;
90
- updatedAt: string;
91
- headers: Record<string, string> | null;
92
92
  credentialScope: string;
93
93
  imageUrl: string | null;
94
94
  capabilities: ToolServerCapabilities | null;
@@ -133,14 +133,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
133
  needsApproval?: boolean;
134
134
  }> | null;
135
135
  }) => Promise<{
136
- tenantId: string;
137
- projectId: string;
136
+ headers: Record<string, string> | null;
138
137
  id: string;
139
- agentId: string;
140
138
  createdAt: string;
141
139
  updatedAt: string;
140
+ tenantId: string;
141
+ projectId: string;
142
+ agentId: string;
142
143
  toolId: string;
143
- headers: Record<string, string> | null;
144
144
  toolPolicies: Record<string, {
145
145
  needsApproval?: boolean;
146
146
  }> | null;
@@ -152,14 +152,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
152
152
  subAgentId: string;
153
153
  toolId: string;
154
154
  }) => Promise<{
155
- tenantId: string;
156
- projectId: string;
155
+ headers: Record<string, string> | null;
157
156
  id: string;
158
- agentId: string;
159
157
  createdAt: string;
160
158
  updatedAt: string;
159
+ tenantId: string;
160
+ projectId: string;
161
+ agentId: string;
161
162
  toolId: string;
162
- headers: Record<string, string> | null;
163
163
  toolPolicies: Record<string, {
164
164
  needsApproval?: boolean;
165
165
  }> | null;
@@ -180,14 +180,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
180
180
  }> | null;
181
181
  relationId?: string;
182
182
  }) => Promise<{
183
- tenantId: string;
184
- projectId: string;
183
+ headers: Record<string, string> | null;
185
184
  id: string;
186
- agentId: string;
187
185
  createdAt: string;
188
186
  updatedAt: string;
187
+ tenantId: string;
188
+ projectId: string;
189
+ agentId: string;
189
190
  toolId: string;
190
- headers: Record<string, string> | null;
191
191
  toolPolicies: Record<string, {
192
192
  needsApproval?: boolean;
193
193
  }> | null;
@@ -200,19 +200,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
200
200
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
201
201
  data: ToolInsert;
202
202
  }) => Promise<{
203
- tenantId: string;
204
- projectId: string;
203
+ headers: Record<string, string> | null;
205
204
  id: string;
205
+ createdAt: string;
206
+ updatedAt: string;
206
207
  name: string;
208
+ tenantId: string;
209
+ projectId: string;
207
210
  description: string | null;
208
211
  config: {
209
212
  type: "mcp";
210
213
  mcp: ToolMcpConfig;
211
214
  };
212
215
  credentialReferenceId: string | null;
213
- createdAt: string;
214
- updatedAt: string;
215
- headers: Record<string, string> | null;
216
216
  credentialScope: string;
217
217
  imageUrl: string | null;
218
218
  capabilities: ToolServerCapabilities | null;
@@ -8,8 +8,8 @@ import { CredentialStuffer } from "../../credential-stuffer/CredentialStuffer.js
8
8
  import "../../credential-stuffer/index.js";
9
9
  import { createAgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
10
10
  import { generateId } from "../../utils/conversations.js";
11
- import { updateAgentToolRelation } from "./subAgentRelations.js";
12
11
  import { getActiveBranch } from "../../dolt/schema-sync.js";
12
+ import { updateAgentToolRelation } from "./subAgentRelations.js";
13
13
  import { toISODateString } from "../../utils/date.js";
14
14
  import { McpClient } from "../../utils/mcp-client.js";
15
15
  import { buildComposioMCPUrl } from "../../utils/third-party-mcp-servers/composio-client.js";
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "query" | "body" | "header";
43
+ source: "body" | "query" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "body" | "header";
49
+ source: "body" | "header" | "literal";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- tenantId: string;
11
- projectId: string;
12
10
  id: string;
11
+ createdAt: string;
12
+ updatedAt: string;
13
13
  name: string | null;
14
+ expiresAt: string | null;
15
+ tenantId: string;
16
+ projectId: string;
14
17
  agentId: string;
15
18
  publicId: string;
16
19
  keyHash: string;
17
20
  keyPrefix: string;
18
21
  lastUsedAt: string | null;
19
- expiresAt: string | null;
20
- createdAt: string;
21
- updatedAt: string;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
- tenantId: string;
25
- projectId: string;
26
24
  id: string;
25
+ createdAt: string;
26
+ updatedAt: string;
27
27
  name: string | null;
28
+ expiresAt: string | null;
29
+ tenantId: string;
30
+ projectId: string;
28
31
  agentId: string;
29
32
  publicId: string;
30
33
  keyHash: string;
31
34
  keyPrefix: string;
32
35
  lastUsedAt: string | null;
33
- expiresAt: string | null;
34
- createdAt: string;
35
- updatedAt: string;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- tenantId: string;
42
- projectId: string;
43
41
  id: string;
42
+ createdAt: string;
43
+ updatedAt: string;
44
44
  name: string | null;
45
+ expiresAt: string | null;
46
+ tenantId: string;
47
+ projectId: string;
45
48
  agentId: string;
46
49
  publicId: string;
47
50
  keyHash: string;
48
51
  keyPrefix: string;
49
52
  lastUsedAt: string | null;
50
- expiresAt: string | null;
51
- createdAt: string;
52
- updatedAt: string;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
- tenantId: string;
69
- projectId: string;
70
68
  id: string;
69
+ createdAt: string;
70
+ updatedAt: string;
71
71
  name: string | null;
72
+ expiresAt: string | null;
73
+ tenantId: string;
74
+ projectId: string;
72
75
  agentId: string;
73
76
  publicId: string;
74
77
  keyHash: string;
75
78
  keyPrefix: string;
76
79
  lastUsedAt: string | null;
77
- expiresAt: string | null;
78
- createdAt: string;
79
- updatedAt: string;
80
80
  }>;
81
81
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;
@@ -15,15 +15,15 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
+ metadata: ConversationMetadata | null;
19
+ id: string;
20
+ userId: string | null;
21
+ createdAt: string;
22
+ updatedAt: string;
18
23
  tenantId: string;
19
24
  projectId: string;
20
- id: string;
21
25
  title: string | null;
22
26
  agentId: string | null;
23
- createdAt: string;
24
- updatedAt: string;
25
- userId: string | null;
26
- metadata: ConversationMetadata | null;
27
27
  ref: {
28
28
  type: "tag" | "commit" | "branch";
29
29
  name: string;
@@ -84,15 +84,15 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
+ metadata: ConversationMetadata | null;
88
+ id: string;
89
+ userId: string | null;
90
+ createdAt: string;
91
+ updatedAt: string;
87
92
  tenantId: string;
88
93
  projectId: string;
89
- id: string;
90
94
  title: string | null;
91
95
  agentId: string | null;
92
- createdAt: string;
93
- updatedAt: string;
94
- userId: string | null;
95
- metadata: ConversationMetadata | null;
96
96
  ref: {
97
97
  type: "tag" | "commit" | "branch";
98
98
  name: string;
@@ -120,15 +120,15 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
+ metadata: ConversationMetadata | null;
124
+ id: string;
125
+ userId: string | null;
126
+ createdAt: string;
127
+ updatedAt: string;
123
128
  tenantId: string;
124
129
  projectId: string;
125
- id: string;
126
130
  title: string | null;
127
131
  agentId: string | null;
128
- createdAt: string;
129
- updatedAt: string;
130
- userId: string | null;
131
- metadata: ConversationMetadata | null;
132
132
  ref: {
133
133
  type: "tag" | "commit" | "branch";
134
134
  name: string;
@@ -152,15 +152,15 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
+ metadata: ConversationMetadata | null;
156
+ id: string;
157
+ userId: string | null;
158
+ createdAt: string;
159
+ updatedAt: string;
155
160
  tenantId: string;
156
161
  projectId: string;
157
- id: string;
158
162
  title: string | null;
159
163
  agentId: string | null;
160
- createdAt: string;
161
- updatedAt: string;
162
- userId: string | null;
163
- metadata: ConversationMetadata | null;
164
164
  ref: {
165
165
  type: "tag" | "commit" | "branch";
166
166
  name: string;
@@ -9,26 +9,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  scopes: ProjectScopeConfig;
10
10
  messageId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
12
+ metadata: MessageMetadata | null;
14
13
  id: string;
14
+ role: string;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
- metadata: MessageMetadata | null;
17
+ tenantId: string;
18
+ projectId: string;
18
19
  content: MessageContent;
19
- role: string;
20
- conversationId: string;
21
20
  fromSubAgentId: string | null;
22
21
  toSubAgentId: string | null;
23
22
  fromExternalAgentId: string | null;
24
23
  toExternalAgentId: string | null;
24
+ taskId: string | null;
25
+ a2aTaskId: string | null;
26
+ conversationId: string;
25
27
  fromTeamAgentId: string | null;
26
28
  toTeamAgentId: string | null;
27
29
  visibility: string;
28
30
  messageType: string;
29
- taskId: string | null;
30
31
  parentMessageId: string | null;
31
- a2aTaskId: string | null;
32
32
  a2aSessionId: string | null;
33
33
  } | undefined>;
34
34
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -140,26 +140,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
140
140
  id: string;
141
141
  }[]>;
142
142
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
- tenantId: string;
144
- projectId: string;
143
+ metadata: MessageMetadata | null;
145
144
  id: string;
145
+ role: string;
146
146
  createdAt: string;
147
147
  updatedAt: string;
148
- metadata: MessageMetadata | null;
148
+ tenantId: string;
149
+ projectId: string;
149
150
  content: MessageContent;
150
- role: string;
151
- conversationId: string;
152
151
  fromSubAgentId: string | null;
153
152
  toSubAgentId: string | null;
154
153
  fromExternalAgentId: string | null;
155
154
  toExternalAgentId: string | null;
155
+ taskId: string | null;
156
+ a2aTaskId: string | null;
157
+ conversationId: string;
156
158
  fromTeamAgentId: string | null;
157
159
  toTeamAgentId: string | null;
158
160
  visibility: string;
159
161
  messageType: string;
160
- taskId: string | null;
161
162
  parentMessageId: string | null;
162
- a2aTaskId: string | null;
163
163
  a2aSessionId: string | null;
164
164
  }>;
165
165
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -193,26 +193,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
193
193
  scopes: ProjectScopeConfig;
194
194
  messageId: string;
195
195
  }) => Promise<{
196
- tenantId: string;
197
- projectId: string;
196
+ metadata: MessageMetadata | null;
198
197
  id: string;
198
+ role: string;
199
199
  createdAt: string;
200
200
  updatedAt: string;
201
- metadata: MessageMetadata | null;
201
+ tenantId: string;
202
+ projectId: string;
202
203
  content: MessageContent;
203
- role: string;
204
- conversationId: string;
205
204
  fromSubAgentId: string | null;
206
205
  toSubAgentId: string | null;
207
206
  fromExternalAgentId: string | null;
208
207
  toExternalAgentId: string | null;
208
+ taskId: string | null;
209
+ a2aTaskId: string | null;
210
+ conversationId: string;
209
211
  fromTeamAgentId: string | null;
210
212
  toTeamAgentId: string | null;
211
213
  visibility: string;
212
214
  messageType: string;
213
- taskId: string | null;
214
215
  parentMessageId: string | null;
215
- a2aTaskId: string | null;
216
216
  a2aSessionId: string | null;
217
217
  }>;
218
218
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -6,19 +6,19 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
- tenantId: string;
10
- projectId: string;
9
+ metadata: TaskMetadataConfig | null;
11
10
  id: string;
12
- agentId: string;
13
11
  createdAt: string;
14
12
  updatedAt: string;
15
- metadata: TaskMetadataConfig | null;
13
+ status: string;
14
+ tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
16
17
  ref: {
17
18
  type: "tag" | "commit" | "branch";
18
19
  name: string;
19
20
  hash: string;
20
21
  } | null;
21
- status: string;
22
22
  subAgentId: string;
23
23
  contextId: string;
24
24
  }>;