@inkeep/agents-core 0.67.1 → 0.67.3

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 (30) hide show
  1. package/dist/auth/auth-schema.d.ts +108 -108
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/data-access/manage/agents.d.ts +24 -24
  5. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  6. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  7. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  8. package/dist/data-access/manage/functionTools.d.ts +6 -6
  9. package/dist/data-access/manage/skills.d.ts +8 -8
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  11. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  13. package/dist/data-access/manage/subAgents.d.ts +12 -12
  14. package/dist/data-access/manage/tools.d.ts +18 -18
  15. package/dist/data-access/manage/triggers.d.ts +1 -1
  16. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  17. package/dist/data-access/runtime/apps.d.ts +6 -6
  18. package/dist/data-access/runtime/conversations.d.ts +12 -12
  19. package/dist/data-access/runtime/feedback.d.ts +6 -6
  20. package/dist/data-access/runtime/messages.d.ts +21 -21
  21. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  22. package/dist/data-access/runtime/tasks.d.ts +3 -3
  23. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  24. package/dist/db/manage/manage-schema.d.ts +453 -453
  25. package/dist/db/runtime/runtime-schema.d.ts +407 -407
  26. package/dist/utils/error.d.ts +51 -51
  27. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  28. package/dist/validation/schemas/skills.d.ts +45 -45
  29. package/dist/validation/schemas.d.ts +1875 -1875
  30. package/package.json +1 -1
@@ -25,15 +25,15 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
25
25
  description: string | null;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
- projectId: string;
29
28
  tenantId: string;
30
- headers: Record<string, string> | null;
29
+ projectId: string;
30
+ credentialReferenceId: string | null;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
34
34
  };
35
- credentialReferenceId: string | null;
36
35
  credentialScope: string;
36
+ headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
39
39
  lastError: string | null;
@@ -83,15 +83,15 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
83
83
  description: string | null;
84
84
  createdAt: string;
85
85
  updatedAt: string;
86
- projectId: string;
87
86
  tenantId: string;
88
- headers: Record<string, string> | null;
87
+ projectId: string;
88
+ credentialReferenceId: string | null;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
92
92
  };
93
- credentialReferenceId: string | null;
94
93
  credentialScope: string;
94
+ headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- projectId: string;
142
141
  tenantId: string;
142
+ projectId: string;
143
143
  agentId: string;
144
144
  subAgentId: string;
145
- headers: Record<string, string> | null;
146
145
  toolId: string;
146
+ headers: Record<string, string> | null;
147
+ selectedTools: string[] | null;
147
148
  toolPolicies: Record<string, {
148
149
  needsApproval?: boolean;
149
150
  }> | null;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- projectId: string;
161
160
  tenantId: string;
161
+ projectId: string;
162
162
  agentId: string;
163
163
  subAgentId: string;
164
- headers: Record<string, string> | null;
165
164
  toolId: string;
165
+ headers: Record<string, string> | null;
166
+ selectedTools: string[] | null;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- projectId: string;
189
188
  tenantId: string;
189
+ projectId: string;
190
190
  agentId: string;
191
191
  subAgentId: string;
192
- headers: Record<string, string> | null;
193
192
  toolId: string;
193
+ headers: Record<string, string> | null;
194
+ selectedTools: string[] | null;
194
195
  toolPolicies: Record<string, {
195
196
  needsApproval?: boolean;
196
197
  }> | null;
197
- selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -207,15 +207,15 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
207
207
  description: string | null;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- projectId: string;
211
210
  tenantId: string;
212
- headers: Record<string, string> | null;
211
+ projectId: string;
212
+ credentialReferenceId: string | null;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
216
216
  };
217
- credentialReferenceId: string | null;
218
217
  credentialScope: string;
218
+ headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;
@@ -132,8 +132,8 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
132
132
  userId: string;
133
133
  }) => Promise<{
134
134
  createdAt: string;
135
- projectId: string;
136
135
  tenantId: string;
136
+ projectId: string;
137
137
  agentId: string;
138
138
  userId: string;
139
139
  triggerId: string;
@@ -12,28 +12,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
12
12
  name: string | null;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- projectId: string;
16
15
  tenantId: string;
16
+ projectId: string;
17
17
  agentId: string;
18
+ expiresAt: string | null;
18
19
  publicId: string;
19
20
  keyHash: string;
20
21
  keyPrefix: string;
21
22
  lastUsedAt: string | null;
22
- expiresAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
26
26
  name: string | null;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
- projectId: string;
30
29
  tenantId: string;
30
+ projectId: string;
31
31
  agentId: string;
32
+ expiresAt: string | null;
32
33
  publicId: string;
33
34
  keyHash: string;
34
35
  keyPrefix: string;
35
36
  lastUsedAt: string | null;
36
- expiresAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
@@ -43,14 +43,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
43
43
  name: string | null;
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
- projectId: string;
47
46
  tenantId: string;
47
+ projectId: string;
48
48
  agentId: string;
49
+ expiresAt: string | null;
49
50
  publicId: string;
50
51
  keyHash: string;
51
52
  keyPrefix: string;
52
53
  lastUsedAt: string | null;
53
- expiresAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -70,14 +70,14 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
70
70
  name: string | null;
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
- projectId: string;
74
73
  tenantId: string;
74
+ projectId: string;
75
75
  agentId: string;
76
+ expiresAt: string | null;
76
77
  publicId: string;
77
78
  keyHash: string;
78
79
  keyPrefix: string;
79
80
  lastUsedAt: string | null;
80
- expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -8,13 +8,13 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
8
8
  id: string;
9
9
  name: string;
10
10
  description: string | null;
11
+ type: AppType;
11
12
  createdAt: string;
12
13
  updatedAt: string;
13
- projectId: string | null;
14
14
  tenantId: string | null;
15
- type: AppType;
16
- prompt: string | null;
15
+ projectId: string | null;
17
16
  enabled: boolean;
17
+ prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
20
20
  webClient: {
@@ -64,13 +64,13 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
64
64
  id: string;
65
65
  name: string;
66
66
  description: string | null;
67
+ type: AppType;
67
68
  createdAt: string;
68
69
  updatedAt: string;
69
- projectId: string | null;
70
70
  tenantId: string | null;
71
- type: AppType;
72
- prompt: string | null;
71
+ projectId: string | null;
73
72
  enabled: boolean;
73
+ prompt: string | null;
74
74
  config: {
75
75
  type: "web_client";
76
76
  webClient: {
@@ -16,17 +16,17 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
18
  id: string;
19
- metadata: ConversationMetadata | null;
20
19
  ref: {
21
20
  type: "commit" | "tag" | "branch";
22
21
  name: string;
23
22
  hash: string;
24
23
  } | null;
24
+ title: string | null;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- projectId: string;
28
27
  tenantId: string;
29
- title: string | null;
28
+ metadata: ConversationMetadata | null;
29
+ projectId: string;
30
30
  agentId: string | null;
31
31
  userId: string | null;
32
32
  activeSubAgentId: string;
@@ -85,17 +85,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
87
  id: string;
88
- metadata: ConversationMetadata | null;
89
88
  ref: {
90
89
  type: "commit" | "tag" | "branch";
91
90
  name: string;
92
91
  hash: string;
93
92
  } | null;
93
+ title: string | null;
94
94
  createdAt: string;
95
95
  updatedAt: string;
96
- projectId: string;
97
96
  tenantId: string;
98
- title: string | null;
97
+ metadata: ConversationMetadata | null;
98
+ projectId: string;
99
99
  agentId: string | null;
100
100
  userId: string | null;
101
101
  activeSubAgentId: string;
@@ -121,17 +121,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
123
  id: string;
124
- metadata: ConversationMetadata | null;
125
124
  ref: {
126
125
  type: "commit" | "tag" | "branch";
127
126
  name: string;
128
127
  hash: string;
129
128
  } | null;
129
+ title: string | null;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- projectId: string;
133
132
  tenantId: string;
134
- title: string | null;
133
+ metadata: ConversationMetadata | null;
134
+ projectId: string;
135
135
  agentId: string | null;
136
136
  userId: string | null;
137
137
  activeSubAgentId: string;
@@ -153,17 +153,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
155
  id: string;
156
- metadata: ConversationMetadata | null;
157
156
  ref: {
158
157
  type: "commit" | "tag" | "branch";
159
158
  name: string;
160
159
  hash: string;
161
160
  } | null;
161
+ title: string | null;
162
162
  createdAt: string;
163
163
  updatedAt: string;
164
- projectId: string;
165
164
  tenantId: string;
166
- title: string | null;
165
+ metadata: ConversationMetadata | null;
166
+ projectId: string;
167
167
  agentId: string | null;
168
168
  userId: string | null;
169
169
  activeSubAgentId: string;
@@ -59,14 +59,14 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
59
59
  }>;
60
60
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
61
  id: string;
62
+ type: "positive" | "negative";
62
63
  createdAt: string;
63
64
  updatedAt: string;
64
- projectId: string;
65
65
  tenantId: string;
66
- type: "positive" | "negative";
67
- details: string | null;
66
+ projectId: string;
68
67
  conversationId: string;
69
68
  messageId: string | null;
69
+ details: string | null;
70
70
  }>;
71
71
  declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
72
72
  scopes: ProjectScopeConfig;
@@ -88,14 +88,14 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
88
88
  feedbackId: string;
89
89
  }) => Promise<{
90
90
  id: string;
91
+ type: "positive" | "negative";
91
92
  createdAt: string;
92
93
  updatedAt: string;
93
- projectId: string;
94
94
  tenantId: string;
95
- type: "positive" | "negative";
96
- details: string | null;
95
+ projectId: string;
97
96
  conversationId: string;
98
97
  messageId: string | null;
98
+ details: string | null;
99
99
  }>;
100
100
  //#endregion
101
101
  export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };
@@ -11,25 +11,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
- content: MessageContent;
15
- metadata: MessageMetadata | null;
16
14
  createdAt: string;
17
15
  updatedAt: string;
18
- projectId: string;
19
16
  tenantId: string;
17
+ metadata: MessageMetadata | null;
18
+ content: MessageContent;
19
+ projectId: string;
20
+ role: string;
21
+ conversationId: string;
20
22
  fromSubAgentId: string | null;
21
23
  toSubAgentId: string | null;
22
24
  fromExternalAgentId: string | null;
23
25
  toExternalAgentId: string | null;
24
- taskId: string | null;
25
- a2aTaskId: string | null;
26
- conversationId: string;
27
- role: string;
28
26
  fromTeamAgentId: string | null;
29
27
  toTeamAgentId: string | null;
30
28
  visibility: string;
31
29
  messageType: string;
30
+ taskId: string | null;
32
31
  parentMessageId: string | null;
32
+ a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -145,25 +145,25 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
145
145
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
146
  }) => Promise<{
147
147
  id: string;
148
- content: MessageContent;
149
- metadata: MessageMetadata | null;
150
148
  createdAt: string;
151
149
  updatedAt: string;
152
- projectId: string;
153
150
  tenantId: string;
151
+ metadata: MessageMetadata | null;
152
+ content: MessageContent;
153
+ projectId: string;
154
+ role: string;
155
+ conversationId: string;
154
156
  fromSubAgentId: string | null;
155
157
  toSubAgentId: string | null;
156
158
  fromExternalAgentId: string | null;
157
159
  toExternalAgentId: string | null;
158
- taskId: string | null;
159
- a2aTaskId: string | null;
160
- conversationId: string;
161
- role: string;
162
160
  fromTeamAgentId: string | null;
163
161
  toTeamAgentId: string | null;
164
162
  visibility: string;
165
163
  messageType: string;
164
+ taskId: string | null;
166
165
  parentMessageId: string | null;
166
+ a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -198,25 +198,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
198
198
  messageId: string;
199
199
  }) => Promise<{
200
200
  id: string;
201
- content: MessageContent;
202
- metadata: MessageMetadata | null;
203
201
  createdAt: string;
204
202
  updatedAt: string;
205
- projectId: string;
206
203
  tenantId: string;
204
+ metadata: MessageMetadata | null;
205
+ content: MessageContent;
206
+ projectId: string;
207
+ role: string;
208
+ conversationId: string;
207
209
  fromSubAgentId: string | null;
208
210
  toSubAgentId: string | null;
209
211
  fromExternalAgentId: string | null;
210
212
  toExternalAgentId: string | null;
211
- taskId: string | null;
212
- a2aTaskId: string | null;
213
- conversationId: string;
214
- role: string;
215
213
  fromTeamAgentId: string | null;
216
214
  toTeamAgentId: string | null;
217
215
  visibility: string;
218
216
  messageType: string;
217
+ taskId: string | null;
219
218
  parentMessageId: string | null;
219
+ a2aTaskId: string | null;
220
220
  a2aSessionId: string | null;
221
221
  }>;
222
222
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
43
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
43
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
44
44
  scheduledFor: string;
45
45
  startedAt: string | null;
46
46
  completedAt: string | null;
@@ -199,7 +199,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
199
199
  name: string;
200
200
  hash: string;
201
201
  } | null;
202
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
202
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
203
203
  scheduledFor: string;
204
204
  startedAt: string | null;
205
205
  completedAt: string | null;
@@ -239,7 +239,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
239
239
  name: string;
240
240
  hash: string;
241
241
  } | null;
242
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
242
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
243
243
  scheduledFor: string;
244
244
  startedAt: string | null;
245
245
  completedAt: string | null;
@@ -292,7 +292,7 @@ declare const listScheduledTriggerInvocationsByTriggerId: (db: AgentsRunDatabase
292
292
  name: string;
293
293
  hash: string;
294
294
  } | null;
295
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
295
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
296
296
  scheduledFor: string;
297
297
  startedAt: string | null;
298
298
  completedAt: string | null;
@@ -8,7 +8,6 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
10
  id: string;
11
- metadata: TaskMetadataConfig | null;
12
11
  ref: {
13
12
  type: "commit" | "tag" | "branch";
14
13
  name: string;
@@ -16,11 +15,12 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
16
15
  } | null;
17
16
  createdAt: string;
18
17
  updatedAt: string;
19
- projectId: string;
20
18
  tenantId: string;
19
+ metadata: TaskMetadataConfig | null;
20
+ projectId: string;
21
21
  agentId: string;
22
- status: string;
23
22
  subAgentId: string;
23
+ status: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
@@ -1,4 +1,4 @@
1
- import * as drizzle_orm_pg_core1263 from "drizzle-orm/pg-core";
1
+ import * as drizzle_orm_pg_core606 from "drizzle-orm/pg-core";
2
2
 
3
3
  //#region src/db/manage/dolt-safe-jsonb.d.ts
4
4
  declare function encodeBackslashes(value: unknown): unknown;
@@ -7,6 +7,6 @@ declare function decodeBackslashes(value: unknown): unknown;
7
7
  * Drop-in replacement for drizzle-orm's `jsonb()`.
8
8
  * Encodes backslashes on write and decodes on read to work around the Doltgres bug.
9
9
  */
10
- declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core1263.jsonb>;
10
+ declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core606.jsonb>;
11
11
  //#endregion
12
12
  export { decodeBackslashes, encodeBackslashes, jsonb };