@inkeep/agents-core 0.69.0 → 0.70.0

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 (36) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/constants/allowed-file-formats.d.ts +6 -1
  5. package/dist/constants/allowed-file-formats.js +256 -24
  6. package/dist/constants/index.d.ts +2 -2
  7. package/dist/constants/index.js +2 -2
  8. package/dist/constants/signoz-queries.d.ts +1 -0
  9. package/dist/constants/signoz-queries.js +2 -1
  10. package/dist/data-access/manage/agents.d.ts +20 -20
  11. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  12. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  13. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  14. package/dist/data-access/manage/functionTools.d.ts +16 -16
  15. package/dist/data-access/manage/skills.d.ts +12 -12
  16. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  17. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  18. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  19. package/dist/data-access/manage/subAgents.d.ts +12 -12
  20. package/dist/data-access/manage/tools.d.ts +33 -33
  21. package/dist/data-access/manage/triggers.d.ts +1 -1
  22. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  23. package/dist/data-access/runtime/apps.d.ts +8 -8
  24. package/dist/data-access/runtime/conversations.d.ts +16 -16
  25. package/dist/data-access/runtime/feedback.d.ts +4 -4
  26. package/dist/data-access/runtime/messages.d.ts +15 -15
  27. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  28. package/dist/data-access/runtime/tasks.d.ts +5 -5
  29. package/dist/db/manage/manage-schema.d.ts +358 -358
  30. package/dist/db/runtime/runtime-schema.d.ts +415 -415
  31. package/dist/middleware/no-auth.d.ts +2 -2
  32. package/dist/utils/error.d.ts +51 -51
  33. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  34. package/dist/validation/schemas/skills.d.ts +58 -58
  35. package/dist/validation/schemas.d.ts +2263 -2263
  36. package/package.json +1 -1
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
+ id: string;
24
+ tenantId: string;
25
+ createdAt: string;
23
26
  name: string;
24
27
  description: string | null;
25
- tenantId: string;
26
28
  projectId: string;
27
- id: string;
28
- createdAt: string;
29
29
  updatedAt: string;
30
- headers: Record<string, string> | null;
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;
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
+ id: string;
82
+ tenantId: string;
83
+ createdAt: string;
81
84
  name: string;
82
85
  description: string | null;
83
- tenantId: string;
84
86
  projectId: string;
85
- id: string;
86
- createdAt: string;
87
87
  updatedAt: string;
88
- headers: Record<string, string> | null;
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;
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- tenantId: string;
139
- projectId: string;
140
138
  id: string;
139
+ tenantId: string;
141
140
  createdAt: string;
142
- updatedAt: string;
141
+ projectId: string;
143
142
  agentId: string;
144
- headers: Record<string, string> | null;
145
- toolId: string;
146
143
  subAgentId: string;
144
+ toolId: string;
145
+ updatedAt: 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;
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
- tenantId: string;
158
- projectId: string;
159
157
  id: string;
158
+ tenantId: string;
160
159
  createdAt: string;
161
- updatedAt: string;
160
+ projectId: string;
162
161
  agentId: string;
163
- headers: Record<string, string> | null;
164
- toolId: string;
165
162
  subAgentId: string;
163
+ toolId: string;
164
+ updatedAt: 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)
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
- tenantId: string;
186
- projectId: string;
187
185
  id: string;
186
+ tenantId: string;
188
187
  createdAt: string;
189
- updatedAt: string;
188
+ projectId: string;
190
189
  agentId: string;
191
- headers: Record<string, string> | null;
192
- toolId: string;
193
190
  subAgentId: string;
191
+ toolId: string;
192
+ updatedAt: 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)
@@ -202,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
+ id: string;
206
+ tenantId: string;
207
+ createdAt: string;
205
208
  name: string;
206
209
  description: string | null;
207
- tenantId: string;
208
210
  projectId: string;
209
- id: string;
210
- createdAt: string;
211
211
  updatedAt: string;
212
- headers: Record<string, string> | null;
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
  tenantId: string;
135
- projectId: string;
136
135
  createdAt: string;
136
+ projectId: string;
137
137
  agentId: string;
138
138
  userId: string;
139
139
  triggerId: string;
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- name: string | null;
12
- tenantId: string;
13
- projectId: string;
14
11
  id: string;
12
+ tenantId: string;
15
13
  createdAt: string;
16
- updatedAt: string;
14
+ name: string | null;
15
+ projectId: string;
17
16
  agentId: string;
17
+ updatedAt: 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
- name: string | null;
26
- tenantId: string;
27
- projectId: string;
28
25
  id: string;
26
+ tenantId: string;
29
27
  createdAt: string;
30
- updatedAt: string;
28
+ name: string | null;
29
+ projectId: string;
31
30
  agentId: string;
31
+ updatedAt: 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;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
- name: string | null;
43
- tenantId: string;
44
- projectId: string;
45
42
  id: string;
43
+ tenantId: string;
46
44
  createdAt: string;
47
- updatedAt: string;
45
+ name: string | null;
46
+ projectId: string;
48
47
  agentId: string;
48
+ updatedAt: 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;
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- name: string | null;
70
- tenantId: string;
71
- projectId: string;
72
69
  id: string;
70
+ tenantId: string;
73
71
  createdAt: string;
74
- updatedAt: string;
72
+ name: string | null;
73
+ projectId: string;
75
74
  agentId: string;
75
+ updatedAt: 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;
@@ -6,15 +6,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  type: AppType;
9
+ id: string;
10
+ tenantId: string | null;
11
+ createdAt: string;
9
12
  name: string;
10
13
  description: string | null;
11
- tenantId: string | null;
12
14
  projectId: string | null;
13
- id: string;
14
- createdAt: string;
15
15
  updatedAt: string;
16
- prompt: string | null;
17
16
  enabled: boolean;
17
+ prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
20
20
  webClient: {
@@ -75,15 +75,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
77
  type: AppType;
78
+ id: string;
79
+ tenantId: string | null;
80
+ createdAt: string;
78
81
  name: string;
79
82
  description: string | null;
80
- tenantId: string | null;
81
83
  projectId: string | null;
82
- id: string;
83
- createdAt: string;
84
84
  updatedAt: string;
85
- prompt: string | null;
86
85
  enabled: boolean;
86
+ prompt: string | null;
87
87
  config: {
88
88
  type: "web_client";
89
89
  webClient: {
@@ -15,14 +15,14 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- title: string | null;
19
- tenantId: string;
20
- projectId: string;
21
18
  id: string;
19
+ tenantId: string;
22
20
  createdAt: string;
23
- updatedAt: string;
24
21
  metadata: ConversationMetadata | null;
22
+ title: string | null;
23
+ projectId: string;
25
24
  agentId: string | null;
25
+ updatedAt: string;
26
26
  userId: string | null;
27
27
  ref: {
28
28
  type: "commit" | "tag" | "branch";
@@ -84,14 +84,14 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
- title: string | null;
88
- tenantId: string;
89
- projectId: string;
90
87
  id: string;
88
+ tenantId: string;
91
89
  createdAt: string;
92
- updatedAt: string;
93
90
  metadata: ConversationMetadata | null;
91
+ title: string | null;
92
+ projectId: string;
94
93
  agentId: string | null;
94
+ updatedAt: string;
95
95
  userId: string | null;
96
96
  ref: {
97
97
  type: "commit" | "tag" | "branch";
@@ -120,14 +120,14 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
- title: string | null;
124
- tenantId: string;
125
- projectId: string;
126
123
  id: string;
124
+ tenantId: string;
127
125
  createdAt: string;
128
- updatedAt: string;
129
126
  metadata: ConversationMetadata | null;
127
+ title: string | null;
128
+ projectId: string;
130
129
  agentId: string | null;
130
+ updatedAt: string;
131
131
  userId: string | null;
132
132
  ref: {
133
133
  type: "commit" | "tag" | "branch";
@@ -152,14 +152,14 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
- title: string | null;
156
- tenantId: string;
157
- projectId: string;
158
155
  id: string;
156
+ tenantId: string;
159
157
  createdAt: string;
160
- updatedAt: string;
161
158
  metadata: ConversationMetadata | null;
159
+ title: string | null;
160
+ projectId: string;
162
161
  agentId: string | null;
162
+ updatedAt: string;
163
163
  userId: string | null;
164
164
  ref: {
165
165
  type: "commit" | "tag" | "branch";
@@ -59,10 +59,10 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
59
59
  }>;
60
60
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
61
  type: "positive" | "negative";
62
- tenantId: string;
63
- projectId: string;
64
62
  id: string;
63
+ tenantId: string;
65
64
  createdAt: string;
65
+ projectId: string;
66
66
  updatedAt: string;
67
67
  conversationId: string;
68
68
  messageId: string | null;
@@ -88,10 +88,10 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
88
88
  feedbackId: string;
89
89
  }) => Promise<{
90
90
  type: "positive" | "negative";
91
- tenantId: string;
92
- projectId: string;
93
91
  id: string;
92
+ tenantId: string;
94
93
  createdAt: string;
94
+ projectId: string;
95
95
  updatedAt: string;
96
96
  conversationId: string;
97
97
  messageId: string | null;
@@ -10,15 +10,15 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- content: MessageContent;
14
- tenantId: string;
15
- projectId: string;
16
13
  id: string;
14
+ tenantId: string;
17
15
  createdAt: string;
18
- updatedAt: string;
19
16
  metadata: MessageMetadata | null;
20
- conversationId: string;
17
+ content: MessageContent;
18
+ projectId: string;
19
+ updatedAt: string;
21
20
  role: string;
21
+ conversationId: string;
22
22
  fromSubAgentId: string | null;
23
23
  toSubAgentId: string | null;
24
24
  fromExternalAgentId: string | null;
@@ -144,15 +144,15 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
144
144
  scopes: ProjectScopeConfig;
145
145
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
146
  }) => Promise<{
147
- content: MessageContent;
148
- tenantId: string;
149
- projectId: string;
150
147
  id: string;
148
+ tenantId: string;
151
149
  createdAt: string;
152
- updatedAt: string;
153
150
  metadata: MessageMetadata | null;
154
- conversationId: string;
151
+ content: MessageContent;
152
+ projectId: string;
153
+ updatedAt: string;
155
154
  role: string;
155
+ conversationId: string;
156
156
  fromSubAgentId: string | null;
157
157
  toSubAgentId: string | null;
158
158
  fromExternalAgentId: string | null;
@@ -197,15 +197,15 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
197
197
  scopes: ProjectScopeConfig;
198
198
  messageId: string;
199
199
  }) => Promise<{
200
- content: MessageContent;
201
- tenantId: string;
202
- projectId: string;
203
200
  id: string;
201
+ tenantId: string;
204
202
  createdAt: string;
205
- updatedAt: string;
206
203
  metadata: MessageMetadata | null;
207
- conversationId: string;
204
+ content: MessageContent;
205
+ projectId: string;
206
+ updatedAt: string;
208
207
  role: string;
208
+ conversationId: string;
209
209
  fromSubAgentId: string | null;
210
210
  toSubAgentId: string | null;
211
211
  fromExternalAgentId: string | null;
@@ -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;
@@ -7,21 +7,21 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
7
7
 
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
- tenantId: string;
11
- projectId: string;
12
- status: string;
13
10
  id: string;
11
+ tenantId: string;
14
12
  createdAt: string;
15
- updatedAt: string;
16
13
  metadata: TaskMetadataConfig | null;
14
+ projectId: string;
17
15
  agentId: string;
16
+ subAgentId: string;
17
+ updatedAt: string;
18
+ status: string;
18
19
  ref: {
19
20
  type: "commit" | "tag" | "branch";
20
21
  name: string;
21
22
  hash: string;
22
23
  } | null;
23
24
  contextId: string;
24
- subAgentId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
27
27
  id: string;