@inkeep/agents-core 0.74.0 → 0.74.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/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +26 -26
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +20 -20
- package/dist/data-access/manage/skills.d.ts +15 -15
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/manage/triggers.d.ts +6 -6
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +13 -13
- package/dist/data-access/runtime/conversations.d.ts +32 -32
- package/dist/data-access/runtime/events.d.ts +5 -5
- package/dist/data-access/runtime/feedback.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +24 -24
- 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 +5 -5
- package/dist/db/manage/manage-schema.d.ts +387 -387
- package/dist/db/runtime/runtime-schema.d.ts +419 -419
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +63 -63
- package/dist/validation/schemas.d.ts +2503 -2503
- package/package.json +1 -1
|
@@ -15,24 +15,24 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
-
properties: Record<string, unknown> | null;
|
|
19
|
-
title: string | null;
|
|
20
|
-
tenantId: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
agentId: string | null;
|
|
23
18
|
id: string;
|
|
24
19
|
createdAt: string;
|
|
25
20
|
updatedAt: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
tenantId: string;
|
|
23
|
+
metadata: ConversationMetadata | null;
|
|
24
|
+
properties: Record<string, unknown> | null;
|
|
25
|
+
title: string | null;
|
|
26
|
+
agentId: string | null;
|
|
27
|
+
userId: string | null;
|
|
26
28
|
ref: {
|
|
27
29
|
type: "commit" | "tag" | "branch";
|
|
28
30
|
name: string;
|
|
29
31
|
hash: string;
|
|
30
32
|
} | null;
|
|
31
|
-
userId: string | null;
|
|
32
|
-
metadata: ConversationMetadata | 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;
|
|
@@ -90,24 +90,24 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
90
90
|
scopes: ProjectScopeConfig;
|
|
91
91
|
conversationId: string;
|
|
92
92
|
}) => Promise<{
|
|
93
|
-
properties: Record<string, unknown> | null;
|
|
94
|
-
title: string | null;
|
|
95
|
-
tenantId: string;
|
|
96
|
-
projectId: string;
|
|
97
|
-
agentId: string | null;
|
|
98
93
|
id: string;
|
|
99
94
|
createdAt: string;
|
|
100
95
|
updatedAt: string;
|
|
96
|
+
projectId: string;
|
|
97
|
+
tenantId: string;
|
|
98
|
+
metadata: ConversationMetadata | null;
|
|
99
|
+
properties: Record<string, unknown> | null;
|
|
100
|
+
title: string | null;
|
|
101
|
+
agentId: string | null;
|
|
102
|
+
userId: string | null;
|
|
101
103
|
ref: {
|
|
102
104
|
type: "commit" | "tag" | "branch";
|
|
103
105
|
name: string;
|
|
104
106
|
hash: string;
|
|
105
107
|
} | null;
|
|
106
|
-
userId: string | null;
|
|
107
|
-
metadata: ConversationMetadata | 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;
|
|
@@ -130,24 +130,24 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
130
130
|
userProperties?: Record<string, unknown> | null | undefined;
|
|
131
131
|
properties?: Record<string, unknown> | null | undefined;
|
|
132
132
|
} | {
|
|
133
|
-
properties: Record<string, unknown> | null;
|
|
134
|
-
title: string | null;
|
|
135
|
-
tenantId: string;
|
|
136
|
-
projectId: string;
|
|
137
|
-
agentId: string | null;
|
|
138
133
|
id: string;
|
|
139
134
|
createdAt: string;
|
|
140
135
|
updatedAt: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
tenantId: string;
|
|
138
|
+
metadata: ConversationMetadata | null;
|
|
139
|
+
properties: Record<string, unknown> | null;
|
|
140
|
+
title: string | null;
|
|
141
|
+
agentId: string | null;
|
|
142
|
+
userId: string | null;
|
|
141
143
|
ref: {
|
|
142
144
|
type: "commit" | "tag" | "branch";
|
|
143
145
|
name: string;
|
|
144
146
|
hash: string;
|
|
145
147
|
} | null;
|
|
146
|
-
userId: string | null;
|
|
147
|
-
metadata: ConversationMetadata | 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
|
|
@@ -164,24 +164,24 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
164
164
|
scopes: ProjectScopeConfig;
|
|
165
165
|
conversationId: string;
|
|
166
166
|
}) => Promise<{
|
|
167
|
-
properties: Record<string, unknown> | null;
|
|
168
|
-
title: string | null;
|
|
169
|
-
tenantId: string;
|
|
170
|
-
projectId: string;
|
|
171
|
-
agentId: string | null;
|
|
172
167
|
id: string;
|
|
173
168
|
createdAt: string;
|
|
174
169
|
updatedAt: string;
|
|
170
|
+
projectId: string;
|
|
171
|
+
tenantId: string;
|
|
172
|
+
metadata: ConversationMetadata | null;
|
|
173
|
+
properties: Record<string, unknown> | null;
|
|
174
|
+
title: string | null;
|
|
175
|
+
agentId: string | null;
|
|
176
|
+
userId: string | null;
|
|
175
177
|
ref: {
|
|
176
178
|
type: "commit" | "tag" | "branch";
|
|
177
179
|
name: string;
|
|
178
180
|
hash: string;
|
|
179
181
|
} | null;
|
|
180
|
-
userId: string | null;
|
|
181
|
-
metadata: ConversationMetadata | 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)
|
|
@@ -7,15 +7,15 @@ 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
|
-
properties: Record<string, unknown> | null;
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
agentId: string | null;
|
|
15
10
|
id: string;
|
|
16
11
|
createdAt: string;
|
|
17
12
|
updatedAt: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
tenantId: string;
|
|
18
15
|
metadata: Record<string, unknown> | null;
|
|
16
|
+
type: string;
|
|
17
|
+
properties: Record<string, unknown> | null;
|
|
18
|
+
agentId: string | null;
|
|
19
19
|
conversationId: string | null;
|
|
20
20
|
userProperties: Record<string, unknown> | null;
|
|
21
21
|
messageId: string | null;
|
|
@@ -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
|
-
tenantId: string;
|
|
75
|
-
projectId: string;
|
|
76
73
|
id: string;
|
|
77
74
|
createdAt: string;
|
|
78
75
|
updatedAt: string;
|
|
79
|
-
|
|
76
|
+
projectId: string;
|
|
77
|
+
tenantId: string;
|
|
78
|
+
type: "positive" | "negative";
|
|
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
|
-
tenantId: string;
|
|
105
|
-
projectId: string;
|
|
106
103
|
id: string;
|
|
107
104
|
createdAt: string;
|
|
108
105
|
updatedAt: string;
|
|
109
|
-
|
|
106
|
+
projectId: string;
|
|
107
|
+
tenantId: string;
|
|
108
|
+
type: "positive" | "negative";
|
|
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 };
|
|
@@ -10,28 +10,28 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
properties: Record<string, unknown> | null;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
13
|
id: string;
|
|
14
|
+
content: MessageContent;
|
|
17
15
|
createdAt: string;
|
|
18
16
|
updatedAt: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
metadata: MessageMetadata | null;
|
|
20
|
+
properties: Record<string, unknown> | null;
|
|
21
|
+
conversationId: string;
|
|
20
22
|
role: string;
|
|
21
|
-
|
|
23
|
+
userProperties: Record<string, unknown> | null;
|
|
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: {
|
|
@@ -154,28 +154,28 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
154
154
|
scopes: ProjectScopeConfig;
|
|
155
155
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
156
156
|
}) => Promise<{
|
|
157
|
-
properties: Record<string, unknown> | null;
|
|
158
|
-
tenantId: string;
|
|
159
|
-
projectId: string;
|
|
160
157
|
id: string;
|
|
158
|
+
content: MessageContent;
|
|
161
159
|
createdAt: string;
|
|
162
160
|
updatedAt: string;
|
|
161
|
+
projectId: string;
|
|
162
|
+
tenantId: string;
|
|
163
163
|
metadata: MessageMetadata | null;
|
|
164
|
+
properties: Record<string, unknown> | null;
|
|
165
|
+
conversationId: string;
|
|
164
166
|
role: string;
|
|
165
|
-
|
|
167
|
+
userProperties: Record<string, unknown> | null;
|
|
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: {
|
|
@@ -211,28 +211,28 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
211
211
|
scopes: ProjectScopeConfig;
|
|
212
212
|
messageId: string;
|
|
213
213
|
}) => Promise<{
|
|
214
|
-
properties: Record<string, unknown> | null;
|
|
215
|
-
tenantId: string;
|
|
216
|
-
projectId: string;
|
|
217
214
|
id: string;
|
|
215
|
+
content: MessageContent;
|
|
218
216
|
createdAt: string;
|
|
219
217
|
updatedAt: string;
|
|
218
|
+
projectId: string;
|
|
219
|
+
tenantId: string;
|
|
220
220
|
metadata: MessageMetadata | null;
|
|
221
|
+
properties: Record<string, unknown> | null;
|
|
222
|
+
conversationId: string;
|
|
221
223
|
role: string;
|
|
222
|
-
|
|
224
|
+
userProperties: Record<string, unknown> | null;
|
|
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;
|
|
@@ -15,8 +15,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
|
|
|
15
15
|
scheduledTriggerId: string;
|
|
16
16
|
userId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
tenantId: string;
|
|
19
18
|
createdAt: string;
|
|
19
|
+
tenantId: string;
|
|
20
20
|
userId: string;
|
|
21
21
|
scheduledTriggerId: string;
|
|
22
22
|
}>;
|
|
@@ -7,19 +7,19 @@ 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
|
-
agentId: string;
|
|
13
|
-
subAgentId: string;
|
|
14
10
|
id: string;
|
|
15
11
|
createdAt: string;
|
|
16
12
|
updatedAt: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
metadata: TaskMetadataConfig | null;
|
|
16
|
+
agentId: string;
|
|
17
|
+
subAgentId: string;
|
|
17
18
|
ref: {
|
|
18
19
|
type: "commit" | "tag" | "branch";
|
|
19
20
|
name: string;
|
|
20
21
|
hash: string;
|
|
21
22
|
} | null;
|
|
22
|
-
metadata: TaskMetadataConfig | null;
|
|
23
23
|
status: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|