@inkeep/agents-core 0.0.0-dev-20260330220743 → 0.0.0-dev-20260330224432

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 (28) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  2. package/dist/auth/auth.d.ts +6 -6
  3. package/dist/auth/permissions.d.ts +13 -13
  4. package/dist/data-access/manage/agents.d.ts +15 -15
  5. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  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 +4 -4
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  11. package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  13. package/dist/data-access/manage/subAgents.d.ts +9 -9
  14. package/dist/data-access/manage/tools.d.ts +21 -21
  15. package/dist/data-access/manage/triggers.d.ts +2 -2
  16. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  17. package/dist/data-access/runtime/apps.d.ts +2 -2
  18. package/dist/data-access/runtime/conversations.d.ts +4 -4
  19. package/dist/data-access/runtime/messages.d.ts +12 -12
  20. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  21. package/dist/data-access/runtime/tasks.d.ts +2 -2
  22. package/dist/db/manage/manage-schema.d.ts +351 -351
  23. package/dist/db/runtime/runtime-schema.d.ts +339 -339
  24. package/dist/utils/error.d.ts +51 -51
  25. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  26. package/dist/validation/schemas/skills.d.ts +8 -8
  27. package/dist/validation/schemas.d.ts +1700 -1700
  28. package/package.json +1 -1
@@ -14,8 +14,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  description: string | null;
17
- projectId: string;
18
- tenantId: string;
19
17
  models: {
20
18
  base?: {
21
19
  model?: string | undefined;
@@ -33,9 +31,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
31
  stopWhen: {
34
32
  stepCountIs?: number | undefined;
35
33
  } | null;
34
+ tenantId: string;
35
+ projectId: string;
36
+ agentId: string;
36
37
  prompt: string | null;
37
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
38
- agentId: string;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
@@ -45,8 +45,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
45
45
  createdAt: string;
46
46
  updatedAt: string;
47
47
  description: string | null;
48
- projectId: string;
49
- tenantId: string;
50
48
  models: {
51
49
  base?: {
52
50
  model?: string | undefined;
@@ -64,9 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
64
62
  stopWhen: {
65
63
  stepCountIs?: number | undefined;
66
64
  } | null;
65
+ tenantId: string;
66
+ projectId: string;
67
+ agentId: string;
67
68
  prompt: string | null;
68
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
69
- agentId: string;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -114,8 +114,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
114
114
  createdAt: string;
115
115
  updatedAt: string;
116
116
  description: string | null;
117
- projectId: string;
118
- tenantId: string;
119
117
  models: {
120
118
  base?: {
121
119
  model?: string | undefined;
@@ -133,9 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
133
131
  stopWhen: {
134
132
  stepCountIs?: number | undefined;
135
133
  } | null;
134
+ tenantId: string;
135
+ projectId: string;
136
+ agentId: string;
136
137
  prompt: string | null;
137
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
138
- agentId: string;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -25,15 +25,15 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
27
  description: string | null;
28
- headers: Record<string, string> | null;
29
- projectId: string;
30
28
  tenantId: string;
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
  createdAt: string;
84
84
  updatedAt: string;
85
85
  description: string | null;
86
- headers: Record<string, string> | null;
87
- projectId: string;
88
86
  tenantId: string;
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
- headers: Record<string, string> | null;
142
- projectId: string;
143
141
  tenantId: string;
142
+ projectId: string;
144
143
  agentId: string;
145
- toolId: string;
146
144
  subAgentId: string;
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
- headers: Record<string, string> | null;
161
- projectId: string;
162
160
  tenantId: string;
161
+ projectId: string;
163
162
  agentId: string;
164
- toolId: string;
165
163
  subAgentId: string;
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
- headers: Record<string, string> | null;
189
- projectId: string;
190
188
  tenantId: string;
189
+ projectId: string;
191
190
  agentId: string;
192
- toolId: string;
193
191
  subAgentId: string;
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
  createdAt: string;
208
208
  updatedAt: string;
209
209
  description: string | null;
210
- headers: Record<string, string> | null;
211
- projectId: string;
212
210
  tenantId: string;
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;
@@ -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: "query" | "header" | "body";
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: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -13,8 +13,8 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  expiresAt: string | null;
16
- projectId: string;
17
16
  tenantId: string;
17
+ projectId: string;
18
18
  agentId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
@@ -27,8 +27,8 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
29
  expiresAt: string | null;
30
- projectId: string;
31
30
  tenantId: string;
31
+ projectId: string;
32
32
  agentId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
@@ -44,8 +44,8 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
46
  expiresAt: string | null;
47
- projectId: string;
48
47
  tenantId: string;
48
+ projectId: string;
49
49
  agentId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
@@ -71,8 +71,8 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
73
  expiresAt: string | null;
74
- projectId: string;
75
74
  tenantId: string;
75
+ projectId: string;
76
76
  agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
@@ -12,8 +12,8 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
12
12
  description: string | null;
13
13
  enabled: boolean;
14
14
  type: AppType;
15
- projectId: string | null;
16
15
  tenantId: string | null;
16
+ projectId: string | null;
17
17
  prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
@@ -71,8 +71,8 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
71
71
  description: string | null;
72
72
  enabled: boolean;
73
73
  type: AppType;
74
- projectId: string | null;
75
74
  tenantId: string | null;
75
+ projectId: string | null;
76
76
  prompt: string | null;
77
77
  config: {
78
78
  type: "web_client";
@@ -26,8 +26,8 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
26
26
  userId: string | null;
27
27
  metadata: ConversationMetadata | null;
28
28
  title: string | null;
29
- projectId: string;
30
29
  tenantId: string;
30
+ projectId: string;
31
31
  agentId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
@@ -95,8 +95,8 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
95
95
  userId: string | null;
96
96
  metadata: ConversationMetadata | null;
97
97
  title: string | null;
98
- projectId: string;
99
98
  tenantId: string;
99
+ projectId: string;
100
100
  agentId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
@@ -131,8 +131,8 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
131
131
  userId: string | null;
132
132
  metadata: ConversationMetadata | null;
133
133
  title: string | null;
134
- projectId: string;
135
134
  tenantId: string;
135
+ projectId: string;
136
136
  agentId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
@@ -163,8 +163,8 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
163
163
  userId: string | null;
164
164
  metadata: ConversationMetadata | null;
165
165
  title: string | null;
166
- projectId: string;
167
166
  tenantId: string;
167
+ projectId: string;
168
168
  agentId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
@@ -15,21 +15,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
15
15
  updatedAt: string;
16
16
  metadata: MessageMetadata | null;
17
17
  role: string;
18
- projectId: string;
19
18
  tenantId: string;
20
19
  content: MessageContent;
21
- conversationId: string;
20
+ projectId: string;
22
21
  fromSubAgentId: string | null;
23
22
  toSubAgentId: string | null;
24
23
  fromExternalAgentId: string | null;
25
24
  toExternalAgentId: string | null;
25
+ taskId: string | null;
26
+ a2aTaskId: string | null;
27
+ conversationId: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -149,21 +149,21 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
149
149
  updatedAt: string;
150
150
  metadata: MessageMetadata | null;
151
151
  role: string;
152
- projectId: string;
153
152
  tenantId: string;
154
153
  content: MessageContent;
155
- conversationId: string;
154
+ projectId: string;
156
155
  fromSubAgentId: string | null;
157
156
  toSubAgentId: string | null;
158
157
  fromExternalAgentId: string | null;
159
158
  toExternalAgentId: string | null;
159
+ taskId: string | null;
160
+ a2aTaskId: string | null;
161
+ conversationId: string;
160
162
  fromTeamAgentId: string | null;
161
163
  toTeamAgentId: string | null;
162
164
  visibility: string;
163
165
  messageType: string;
164
- taskId: string | null;
165
166
  parentMessageId: string | null;
166
- a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -202,21 +202,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
202
202
  updatedAt: string;
203
203
  metadata: MessageMetadata | null;
204
204
  role: string;
205
- projectId: string;
206
205
  tenantId: string;
207
206
  content: MessageContent;
208
- conversationId: string;
207
+ projectId: string;
209
208
  fromSubAgentId: string | null;
210
209
  toSubAgentId: string | null;
211
210
  fromExternalAgentId: string | null;
212
211
  toExternalAgentId: string | null;
212
+ taskId: string | null;
213
+ a2aTaskId: string | null;
214
+ conversationId: string;
213
215
  fromTeamAgentId: string | null;
214
216
  toTeamAgentId: string | null;
215
217
  visibility: string;
216
218
  messageType: string;
217
- taskId: string | null;
218
219
  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;
@@ -194,7 +194,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
194
194
  name: string;
195
195
  hash: string;
196
196
  } | null;
197
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
197
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
198
198
  scheduledFor: string;
199
199
  startedAt: string | null;
200
200
  completedAt: string | null;
@@ -233,7 +233,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
233
233
  name: string;
234
234
  hash: string;
235
235
  } | null;
236
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
236
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
237
237
  scheduledFor: string;
238
238
  startedAt: string | null;
239
239
  completedAt: string | null;
@@ -17,11 +17,11 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
17
17
  } | null;
18
18
  metadata: TaskMetadataConfig | null;
19
19
  status: string;
20
- projectId: string;
21
20
  tenantId: string;
21
+ projectId: string;
22
22
  agentId: string;
23
- contextId: string;
24
23
  subAgentId: string;
24
+ contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
27
27
  id: string;