@inkeep/agents-core 0.72.2 → 0.73.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.
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/data-access/manage/agents.d.ts +15 -15
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/skills.d.ts +5 -5
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +9 -9
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +3 -3
- package/dist/data-access/manage/webhookDestinations.d.ts +1 -0
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/apps.d.ts +9 -9
- package/dist/data-access/runtime/conversations.d.ts +12 -12
- package/dist/data-access/runtime/events.d.ts +3 -3
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +400 -381
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +419 -419
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +32 -32
- package/dist/validation/schemas.d.ts +1849 -1801
- package/dist/validation/schemas.js +36 -12
- package/drizzle/manage/0020_typical_mandrill.sql +1 -0
- package/drizzle/manage/meta/0020_snapshot.json +4093 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -10,8 +10,11 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
10
10
|
name: string;
|
|
11
11
|
createdAt: string;
|
|
12
12
|
updatedAt: string;
|
|
13
|
+
prompt: string | null;
|
|
13
14
|
description: string | null;
|
|
14
15
|
enabled: boolean;
|
|
16
|
+
tenantId: string | null;
|
|
17
|
+
projectId: string | null;
|
|
15
18
|
config: {
|
|
16
19
|
type: "web_client";
|
|
17
20
|
webClient: {
|
|
@@ -19,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
19
22
|
publicKeys: {
|
|
20
23
|
kid: string;
|
|
21
24
|
publicKey: string;
|
|
22
|
-
algorithm: "
|
|
25
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
23
26
|
addedAt: string;
|
|
24
27
|
}[];
|
|
25
28
|
allowAnonymous: boolean;
|
|
@@ -42,9 +45,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
42
45
|
}[] | undefined;
|
|
43
46
|
};
|
|
44
47
|
};
|
|
45
|
-
projectId: string | null;
|
|
46
|
-
tenantId: string | null;
|
|
47
|
-
prompt: string | null;
|
|
48
48
|
lastUsedAt: string | null;
|
|
49
49
|
defaultProjectId: string | null;
|
|
50
50
|
defaultAgentId: string | null;
|
|
@@ -79,8 +79,11 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
79
79
|
name: string;
|
|
80
80
|
createdAt: string;
|
|
81
81
|
updatedAt: string;
|
|
82
|
+
prompt: string | null;
|
|
82
83
|
description: string | null;
|
|
83
84
|
enabled: boolean;
|
|
85
|
+
tenantId: string | null;
|
|
86
|
+
projectId: string | null;
|
|
84
87
|
config: {
|
|
85
88
|
type: "web_client";
|
|
86
89
|
webClient: {
|
|
@@ -88,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
88
91
|
publicKeys: {
|
|
89
92
|
kid: string;
|
|
90
93
|
publicKey: string;
|
|
91
|
-
algorithm: "
|
|
94
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
92
95
|
addedAt: string;
|
|
93
96
|
}[];
|
|
94
97
|
allowAnonymous: boolean;
|
|
@@ -111,9 +114,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
111
114
|
}[] | undefined;
|
|
112
115
|
};
|
|
113
116
|
};
|
|
114
|
-
projectId: string | null;
|
|
115
|
-
tenantId: string | null;
|
|
116
|
-
prompt: string | null;
|
|
117
117
|
lastUsedAt: string | null;
|
|
118
118
|
defaultProjectId: string | null;
|
|
119
119
|
defaultAgentId: string | null;
|
|
@@ -174,7 +174,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
174
174
|
publicKeys: {
|
|
175
175
|
kid: string;
|
|
176
176
|
publicKey: string;
|
|
177
|
-
algorithm: "
|
|
177
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
178
178
|
addedAt: string;
|
|
179
179
|
}[];
|
|
180
180
|
allowAnonymous: boolean;
|
|
@@ -25,14 +25,14 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
25
25
|
} | null;
|
|
26
26
|
userId: string | null;
|
|
27
27
|
metadata: ConversationMetadata | null;
|
|
28
|
-
projectId: string;
|
|
29
|
-
tenantId: string;
|
|
30
28
|
properties: Record<string, unknown> | null;
|
|
31
29
|
title: string | null;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
projectId: string;
|
|
32
32
|
agentId: string | null;
|
|
33
|
-
userProperties: Record<string, unknown> | null;
|
|
34
33
|
activeSubAgentId: string;
|
|
35
34
|
lastContextResolution: string | null;
|
|
35
|
+
userProperties: Record<string, unknown> | null;
|
|
36
36
|
}>;
|
|
37
37
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
@@ -100,14 +100,14 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
100
100
|
} | null;
|
|
101
101
|
userId: string | null;
|
|
102
102
|
metadata: ConversationMetadata | null;
|
|
103
|
-
projectId: string;
|
|
104
|
-
tenantId: string;
|
|
105
103
|
properties: Record<string, unknown> | null;
|
|
106
104
|
title: string | null;
|
|
105
|
+
tenantId: string;
|
|
106
|
+
projectId: string;
|
|
107
107
|
agentId: string | null;
|
|
108
|
-
userProperties: Record<string, unknown> | null;
|
|
109
108
|
activeSubAgentId: string;
|
|
110
109
|
lastContextResolution: string | null;
|
|
110
|
+
userProperties: Record<string, unknown> | null;
|
|
111
111
|
} | undefined>;
|
|
112
112
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
113
113
|
activeSubAgentId: string;
|
|
@@ -140,14 +140,14 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
140
140
|
} | null;
|
|
141
141
|
userId: string | null;
|
|
142
142
|
metadata: ConversationMetadata | null;
|
|
143
|
-
projectId: string;
|
|
144
|
-
tenantId: string;
|
|
145
143
|
properties: Record<string, unknown> | null;
|
|
146
144
|
title: string | null;
|
|
145
|
+
tenantId: string;
|
|
146
|
+
projectId: string;
|
|
147
147
|
agentId: string | null;
|
|
148
|
-
userProperties: Record<string, unknown> | null;
|
|
149
148
|
activeSubAgentId: string;
|
|
150
149
|
lastContextResolution: string | null;
|
|
150
|
+
userProperties: Record<string, unknown> | null;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
153
|
* Get conversation history with filtering and context management
|
|
@@ -174,14 +174,14 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
174
174
|
} | null;
|
|
175
175
|
userId: string | null;
|
|
176
176
|
metadata: ConversationMetadata | null;
|
|
177
|
-
projectId: string;
|
|
178
|
-
tenantId: string;
|
|
179
177
|
properties: Record<string, unknown> | null;
|
|
180
178
|
title: string | null;
|
|
179
|
+
tenantId: string;
|
|
180
|
+
projectId: string;
|
|
181
181
|
agentId: string | null;
|
|
182
|
-
userProperties: Record<string, unknown> | null;
|
|
183
182
|
activeSubAgentId: string;
|
|
184
183
|
lastContextResolution: string | null;
|
|
184
|
+
userProperties: Record<string, unknown> | null;
|
|
185
185
|
} | undefined>;
|
|
186
186
|
/**
|
|
187
187
|
* Set active agent for a conversation (upsert operation)
|
|
@@ -12,12 +12,12 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
metadata: Record<string, unknown> | null;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
15
|
properties: Record<string, unknown> | null;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
18
|
agentId: string | null;
|
|
19
|
-
conversationId: string | null;
|
|
20
19
|
userProperties: Record<string, unknown> | null;
|
|
20
|
+
conversationId: string | null;
|
|
21
21
|
messageId: string | null;
|
|
22
22
|
serverMetadata: {
|
|
23
23
|
[k: string]: unknown;
|
|
@@ -74,11 +74,11 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
|
|
|
74
74
|
id: string;
|
|
75
75
|
createdAt: string;
|
|
76
76
|
updatedAt: string;
|
|
77
|
-
projectId: string;
|
|
78
77
|
tenantId: string;
|
|
79
|
-
|
|
78
|
+
projectId: string;
|
|
80
79
|
conversationId: string;
|
|
81
80
|
messageId: string | null;
|
|
81
|
+
details: string | null;
|
|
82
82
|
}>;
|
|
83
83
|
declare const createFeedbackBulk: (db: AgentsRunDatabaseClient) => (items: FeedbackInsert[]) => Promise<(typeof feedback.$inferSelect)[]>;
|
|
84
84
|
declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -104,11 +104,11 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
104
104
|
id: string;
|
|
105
105
|
createdAt: string;
|
|
106
106
|
updatedAt: string;
|
|
107
|
-
projectId: string;
|
|
108
107
|
tenantId: string;
|
|
109
|
-
|
|
108
|
+
projectId: string;
|
|
110
109
|
conversationId: string;
|
|
111
110
|
messageId: string | null;
|
|
111
|
+
details: string | null;
|
|
112
112
|
}>;
|
|
113
113
|
//#endregion
|
|
114
114
|
export { createFeedback, createFeedbackBulk, deleteFeedback, getFeedbackById, getFeedbackByIds, listFeedback, listFeedbackByConversation, updateFeedback };
|
|
@@ -15,23 +15,23 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
metadata: MessageMetadata | null;
|
|
17
17
|
role: string;
|
|
18
|
-
projectId: string;
|
|
19
|
-
tenantId: string;
|
|
20
18
|
properties: Record<string, unknown> | null;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
projectId: string;
|
|
21
21
|
content: MessageContent;
|
|
22
|
+
userProperties: Record<string, unknown> | null;
|
|
23
|
+
conversationId: string;
|
|
22
24
|
fromSubAgentId: string | null;
|
|
23
25
|
toSubAgentId: string | null;
|
|
24
26
|
fromExternalAgentId: string | null;
|
|
25
27
|
toExternalAgentId: string | null;
|
|
26
|
-
taskId: string | null;
|
|
27
|
-
a2aTaskId: string | null;
|
|
28
|
-
conversationId: string;
|
|
29
|
-
userProperties: Record<string, unknown> | null;
|
|
30
28
|
fromTeamAgentId: string | null;
|
|
31
29
|
toTeamAgentId: string | null;
|
|
32
30
|
visibility: string;
|
|
33
31
|
messageType: string;
|
|
32
|
+
taskId: string | null;
|
|
34
33
|
parentMessageId: string | null;
|
|
34
|
+
a2aTaskId: string | null;
|
|
35
35
|
a2aSessionId: string | null;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -159,23 +159,23 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
159
159
|
updatedAt: string;
|
|
160
160
|
metadata: MessageMetadata | null;
|
|
161
161
|
role: string;
|
|
162
|
-
projectId: string;
|
|
163
|
-
tenantId: string;
|
|
164
162
|
properties: Record<string, unknown> | null;
|
|
163
|
+
tenantId: string;
|
|
164
|
+
projectId: string;
|
|
165
165
|
content: MessageContent;
|
|
166
|
+
userProperties: Record<string, unknown> | null;
|
|
167
|
+
conversationId: string;
|
|
166
168
|
fromSubAgentId: string | null;
|
|
167
169
|
toSubAgentId: string | null;
|
|
168
170
|
fromExternalAgentId: string | null;
|
|
169
171
|
toExternalAgentId: string | null;
|
|
170
|
-
taskId: string | null;
|
|
171
|
-
a2aTaskId: string | null;
|
|
172
|
-
conversationId: string;
|
|
173
|
-
userProperties: Record<string, unknown> | null;
|
|
174
172
|
fromTeamAgentId: string | null;
|
|
175
173
|
toTeamAgentId: string | null;
|
|
176
174
|
visibility: string;
|
|
177
175
|
messageType: string;
|
|
176
|
+
taskId: string | null;
|
|
178
177
|
parentMessageId: string | null;
|
|
178
|
+
a2aTaskId: string | null;
|
|
179
179
|
a2aSessionId: string | null;
|
|
180
180
|
}>;
|
|
181
181
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -216,23 +216,23 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
216
216
|
updatedAt: string;
|
|
217
217
|
metadata: MessageMetadata | null;
|
|
218
218
|
role: string;
|
|
219
|
-
projectId: string;
|
|
220
|
-
tenantId: string;
|
|
221
219
|
properties: Record<string, unknown> | null;
|
|
220
|
+
tenantId: string;
|
|
221
|
+
projectId: string;
|
|
222
222
|
content: MessageContent;
|
|
223
|
+
userProperties: Record<string, unknown> | null;
|
|
224
|
+
conversationId: string;
|
|
223
225
|
fromSubAgentId: string | null;
|
|
224
226
|
toSubAgentId: string | null;
|
|
225
227
|
fromExternalAgentId: string | null;
|
|
226
228
|
toExternalAgentId: string | null;
|
|
227
|
-
taskId: string | null;
|
|
228
|
-
a2aTaskId: string | null;
|
|
229
|
-
conversationId: string;
|
|
230
|
-
userProperties: Record<string, unknown> | null;
|
|
231
229
|
fromTeamAgentId: string | null;
|
|
232
230
|
toTeamAgentId: string | null;
|
|
233
231
|
visibility: string;
|
|
234
232
|
messageType: string;
|
|
233
|
+
taskId: string | null;
|
|
235
234
|
parentMessageId: string | null;
|
|
235
|
+
a2aTaskId: string | null;
|
|
236
236
|
a2aSessionId: string | null;
|
|
237
237
|
}>;
|
|
238
238
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
295
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
296
296
|
scheduledFor: string;
|
|
297
297
|
startedAt: string | null;
|
|
298
298
|
completedAt: string | null;
|
|
@@ -17,8 +17,8 @@ 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
23
|
subAgentId: string;
|
|
24
24
|
contextId: string;
|