@inkeep/agents-core 0.72.2 → 0.73.1
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-schema.d.ts +235 -235
- package/dist/auth/auth-schema.js +8 -8
- package/dist/auth/auth-types.d.ts +6 -1
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +74 -51
- package/dist/auth/auth.js +18 -4
- package/dist/auth/password-policy.d.ts +7 -3
- package/dist/auth/password-policy.js +6 -4
- 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 +25 -25
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- 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 +8 -8
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/manage/webhookDestinations.d.ts +1 -0
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +10 -10
- package/dist/data-access/runtime/conversations.d.ts +36 -36
- package/dist/data-access/runtime/events.d.ts +4 -4
- package/dist/data-access/runtime/feedback.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +27 -27
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +497 -478
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +445 -445
- 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 +31 -31
- package/dist/validation/schemas.d.ts +2134 -2086
- 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/drizzle/runtime/0042_long_magdalene.sql +8 -0
- package/drizzle/runtime/meta/0042_snapshot.json +6298 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +5 -5
|
@@ -16,23 +16,23 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
+
properties: Record<string, unknown> | null;
|
|
20
|
+
title: string | null;
|
|
19
21
|
createdAt: string;
|
|
20
22
|
updatedAt: string;
|
|
23
|
+
tenantId: string;
|
|
24
|
+
metadata: ConversationMetadata | null;
|
|
25
|
+
projectId: string;
|
|
26
|
+
agentId: string | null;
|
|
27
|
+
userId: string | null;
|
|
28
|
+
activeSubAgentId: string;
|
|
21
29
|
ref: {
|
|
22
30
|
type: "commit" | "tag" | "branch";
|
|
23
31
|
name: string;
|
|
24
32
|
hash: string;
|
|
25
33
|
} | null;
|
|
26
|
-
userId: string | null;
|
|
27
|
-
metadata: ConversationMetadata | null;
|
|
28
|
-
projectId: string;
|
|
29
|
-
tenantId: string;
|
|
30
|
-
properties: Record<string, unknown> | null;
|
|
31
|
-
title: string | null;
|
|
32
|
-
agentId: string | null;
|
|
33
|
-
userProperties: Record<string, unknown> | null;
|
|
34
|
-
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;
|
|
@@ -91,23 +91,23 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
91
91
|
conversationId: string;
|
|
92
92
|
}) => Promise<{
|
|
93
93
|
id: string;
|
|
94
|
+
properties: Record<string, unknown> | null;
|
|
95
|
+
title: string | null;
|
|
94
96
|
createdAt: string;
|
|
95
97
|
updatedAt: string;
|
|
98
|
+
tenantId: string;
|
|
99
|
+
metadata: ConversationMetadata | null;
|
|
100
|
+
projectId: string;
|
|
101
|
+
agentId: string | null;
|
|
102
|
+
userId: string | null;
|
|
103
|
+
activeSubAgentId: string;
|
|
96
104
|
ref: {
|
|
97
105
|
type: "commit" | "tag" | "branch";
|
|
98
106
|
name: string;
|
|
99
107
|
hash: string;
|
|
100
108
|
} | null;
|
|
101
|
-
userId: string | null;
|
|
102
|
-
metadata: ConversationMetadata | null;
|
|
103
|
-
projectId: string;
|
|
104
|
-
tenantId: string;
|
|
105
|
-
properties: Record<string, unknown> | null;
|
|
106
|
-
title: string | null;
|
|
107
|
-
agentId: string | null;
|
|
108
|
-
userProperties: Record<string, unknown> | null;
|
|
109
|
-
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;
|
|
@@ -131,23 +131,23 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
131
131
|
properties?: Record<string, unknown> | null | undefined;
|
|
132
132
|
} | {
|
|
133
133
|
id: string;
|
|
134
|
+
properties: Record<string, unknown> | null;
|
|
135
|
+
title: string | null;
|
|
134
136
|
createdAt: string;
|
|
135
137
|
updatedAt: string;
|
|
138
|
+
tenantId: string;
|
|
139
|
+
metadata: ConversationMetadata | null;
|
|
140
|
+
projectId: string;
|
|
141
|
+
agentId: string | null;
|
|
142
|
+
userId: string | null;
|
|
143
|
+
activeSubAgentId: string;
|
|
136
144
|
ref: {
|
|
137
145
|
type: "commit" | "tag" | "branch";
|
|
138
146
|
name: string;
|
|
139
147
|
hash: string;
|
|
140
148
|
} | null;
|
|
141
|
-
userId: string | null;
|
|
142
|
-
metadata: ConversationMetadata | null;
|
|
143
|
-
projectId: string;
|
|
144
|
-
tenantId: string;
|
|
145
|
-
properties: Record<string, unknown> | null;
|
|
146
|
-
title: string | null;
|
|
147
|
-
agentId: string | null;
|
|
148
|
-
userProperties: Record<string, unknown> | null;
|
|
149
|
-
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
|
|
@@ -165,23 +165,23 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
165
165
|
conversationId: string;
|
|
166
166
|
}) => Promise<{
|
|
167
167
|
id: string;
|
|
168
|
+
properties: Record<string, unknown> | null;
|
|
169
|
+
title: string | null;
|
|
168
170
|
createdAt: string;
|
|
169
171
|
updatedAt: string;
|
|
172
|
+
tenantId: string;
|
|
173
|
+
metadata: ConversationMetadata | null;
|
|
174
|
+
projectId: string;
|
|
175
|
+
agentId: string | null;
|
|
176
|
+
userId: string | null;
|
|
177
|
+
activeSubAgentId: string;
|
|
170
178
|
ref: {
|
|
171
179
|
type: "commit" | "tag" | "branch";
|
|
172
180
|
name: string;
|
|
173
181
|
hash: string;
|
|
174
182
|
} | null;
|
|
175
|
-
userId: string | null;
|
|
176
|
-
metadata: ConversationMetadata | null;
|
|
177
|
-
projectId: string;
|
|
178
|
-
tenantId: string;
|
|
179
|
-
properties: Record<string, unknown> | null;
|
|
180
|
-
title: string | null;
|
|
181
|
-
agentId: string | null;
|
|
182
|
-
userProperties: Record<string, unknown> | null;
|
|
183
|
-
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)
|
|
@@ -7,17 +7,17 @@ import { EventInsert } from "../../types/entities.js";
|
|
|
7
7
|
//#region src/data-access/runtime/events.d.ts
|
|
8
8
|
declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
|
|
9
9
|
row: {
|
|
10
|
-
type: string;
|
|
11
10
|
id: string;
|
|
11
|
+
type: string;
|
|
12
|
+
properties: Record<string, unknown> | null;
|
|
12
13
|
createdAt: string;
|
|
13
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
14
16
|
metadata: Record<string, unknown> | null;
|
|
15
17
|
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
properties: Record<string, unknown> | null;
|
|
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;
|
|
@@ -70,15 +70,15 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
70
70
|
agentId: string | null;
|
|
71
71
|
}[]>;
|
|
72
72
|
declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
|
|
73
|
-
type: "positive" | "negative";
|
|
74
73
|
id: string;
|
|
74
|
+
type: "positive" | "negative";
|
|
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: {
|
|
@@ -100,15 +100,15 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
100
100
|
scopes: ProjectScopeConfig;
|
|
101
101
|
feedbackId: string;
|
|
102
102
|
}) => Promise<{
|
|
103
|
-
type: "positive" | "negative";
|
|
104
103
|
id: string;
|
|
104
|
+
type: "positive" | "negative";
|
|
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 };
|
|
@@ -11,27 +11,27 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
+
properties: Record<string, unknown> | null;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
|
-
metadata: MessageMetadata | null;
|
|
17
|
-
role: string;
|
|
18
|
-
projectId: string;
|
|
19
17
|
tenantId: string;
|
|
20
|
-
|
|
18
|
+
metadata: MessageMetadata | null;
|
|
21
19
|
content: MessageContent;
|
|
20
|
+
projectId: string;
|
|
21
|
+
taskId: string | null;
|
|
22
|
+
visibility: string;
|
|
23
|
+
userProperties: Record<string, unknown> | null;
|
|
24
|
+
conversationId: string;
|
|
25
|
+
role: string;
|
|
22
26
|
fromSubAgentId: string | null;
|
|
23
27
|
toSubAgentId: string | null;
|
|
24
28
|
fromExternalAgentId: string | null;
|
|
25
29
|
toExternalAgentId: string | null;
|
|
26
|
-
taskId: string | null;
|
|
27
|
-
a2aTaskId: string | null;
|
|
28
|
-
conversationId: string;
|
|
29
|
-
userProperties: Record<string, unknown> | null;
|
|
30
30
|
fromTeamAgentId: string | null;
|
|
31
31
|
toTeamAgentId: string | null;
|
|
32
|
-
visibility: string;
|
|
33
32
|
messageType: string;
|
|
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: {
|
|
@@ -155,27 +155,27 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
155
155
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
+
properties: Record<string, unknown> | null;
|
|
158
159
|
createdAt: string;
|
|
159
160
|
updatedAt: string;
|
|
160
|
-
metadata: MessageMetadata | null;
|
|
161
|
-
role: string;
|
|
162
|
-
projectId: string;
|
|
163
161
|
tenantId: string;
|
|
164
|
-
|
|
162
|
+
metadata: MessageMetadata | null;
|
|
165
163
|
content: MessageContent;
|
|
164
|
+
projectId: string;
|
|
165
|
+
taskId: string | null;
|
|
166
|
+
visibility: string;
|
|
167
|
+
userProperties: Record<string, unknown> | null;
|
|
168
|
+
conversationId: string;
|
|
169
|
+
role: string;
|
|
166
170
|
fromSubAgentId: string | null;
|
|
167
171
|
toSubAgentId: string | null;
|
|
168
172
|
fromExternalAgentId: string | null;
|
|
169
173
|
toExternalAgentId: string | null;
|
|
170
|
-
taskId: string | null;
|
|
171
|
-
a2aTaskId: string | null;
|
|
172
|
-
conversationId: string;
|
|
173
|
-
userProperties: Record<string, unknown> | null;
|
|
174
174
|
fromTeamAgentId: string | null;
|
|
175
175
|
toTeamAgentId: string | null;
|
|
176
|
-
visibility: string;
|
|
177
176
|
messageType: string;
|
|
178
177
|
parentMessageId: string | null;
|
|
178
|
+
a2aTaskId: string | null;
|
|
179
179
|
a2aSessionId: string | null;
|
|
180
180
|
}>;
|
|
181
181
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -212,27 +212,27 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
212
212
|
messageId: string;
|
|
213
213
|
}) => Promise<{
|
|
214
214
|
id: string;
|
|
215
|
+
properties: Record<string, unknown> | null;
|
|
215
216
|
createdAt: string;
|
|
216
217
|
updatedAt: string;
|
|
217
|
-
metadata: MessageMetadata | null;
|
|
218
|
-
role: string;
|
|
219
|
-
projectId: string;
|
|
220
218
|
tenantId: string;
|
|
221
|
-
|
|
219
|
+
metadata: MessageMetadata | null;
|
|
222
220
|
content: MessageContent;
|
|
221
|
+
projectId: string;
|
|
222
|
+
taskId: string | null;
|
|
223
|
+
visibility: string;
|
|
224
|
+
userProperties: Record<string, unknown> | null;
|
|
225
|
+
conversationId: string;
|
|
226
|
+
role: string;
|
|
223
227
|
fromSubAgentId: string | null;
|
|
224
228
|
toSubAgentId: string | null;
|
|
225
229
|
fromExternalAgentId: string | null;
|
|
226
230
|
toExternalAgentId: string | null;
|
|
227
|
-
taskId: string | null;
|
|
228
|
-
a2aTaskId: string | null;
|
|
229
|
-
conversationId: string;
|
|
230
|
-
userProperties: Record<string, unknown> | null;
|
|
231
231
|
fromTeamAgentId: string | null;
|
|
232
232
|
toTeamAgentId: string | null;
|
|
233
|
-
visibility: string;
|
|
234
233
|
messageType: string;
|
|
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: "
|
|
43
|
+
status: "running" | "pending" | "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: "
|
|
202
|
+
status: "running" | "pending" | "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: "
|
|
242
|
+
status: "running" | "pending" | "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: "
|
|
295
|
+
status: "running" | "pending" | "completed" | "failed" | "cancelled";
|
|
296
296
|
scheduledFor: string;
|
|
297
297
|
startedAt: string | null;
|
|
298
298
|
completedAt: string | null;
|
|
@@ -16,8 +16,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
|
|
|
16
16
|
userId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
18
|
createdAt: string;
|
|
19
|
-
userId: string;
|
|
20
19
|
tenantId: string;
|
|
20
|
+
userId: string;
|
|
21
21
|
scheduledTriggerId: string;
|
|
22
22
|
}>;
|
|
23
23
|
declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -10,18 +10,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
10
10
|
id: string;
|
|
11
11
|
createdAt: string;
|
|
12
12
|
updatedAt: string;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
metadata: TaskMetadataConfig | null;
|
|
15
|
+
projectId: string;
|
|
16
|
+
agentId: string;
|
|
17
|
+
subAgentId: string;
|
|
18
|
+
contextId: string;
|
|
13
19
|
ref: {
|
|
14
20
|
type: "commit" | "tag" | "branch";
|
|
15
21
|
name: string;
|
|
16
22
|
hash: string;
|
|
17
23
|
} | null;
|
|
18
|
-
metadata: TaskMetadataConfig | null;
|
|
19
24
|
status: string;
|
|
20
|
-
projectId: string;
|
|
21
|
-
tenantId: string;
|
|
22
|
-
agentId: string;
|
|
23
|
-
subAgentId: string;
|
|
24
|
-
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
27
27
|
id: string;
|