@inkeep/agents-core 0.80.0 → 0.80.3
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 +227 -227
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/constants/otel-attributes.d.ts +3 -0
- package/dist/constants/otel-attributes.js +4 -1
- package/dist/data-access/manage/agents.d.ts +29 -29
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/skills.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +34 -34
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +27 -27
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +24 -24
- package/dist/data-access/runtime/apps.d.ts +14 -14
- 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 +27 -27
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +2 -2
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +502 -502
- package/dist/db/runtime/runtime-schema.d.ts +452 -452
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +34 -34
- package/dist/validation/schemas.d.ts +2197 -2193
- package/dist/validation/schemas.js +1 -0
- package/package.json +1 -1
|
@@ -17,23 +17,23 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
19
|
id: string;
|
|
20
|
-
|
|
20
|
+
properties: Record<string, unknown> | null;
|
|
21
|
+
title: string | null;
|
|
21
22
|
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
tenantId: string;
|
|
25
|
+
projectId: string;
|
|
22
26
|
metadata: ConversationMetadata | null;
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
agentId: string | null;
|
|
28
|
+
userId: string | null;
|
|
25
29
|
ref: {
|
|
26
30
|
type: "commit" | "tag" | "branch";
|
|
27
31
|
name: string;
|
|
28
32
|
hash: string;
|
|
29
33
|
} | null;
|
|
30
|
-
|
|
31
|
-
projectId: string;
|
|
32
|
-
updatedAt: string;
|
|
33
|
-
userId: string | null;
|
|
34
|
+
userProperties: Record<string, unknown> | null;
|
|
34
35
|
activeSubAgentId: string;
|
|
35
36
|
lastContextResolution: string | null;
|
|
36
|
-
userProperties: Record<string, unknown> | null;
|
|
37
37
|
}>;
|
|
38
38
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -92,23 +92,23 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
92
92
|
conversationId: string;
|
|
93
93
|
}) => Promise<{
|
|
94
94
|
id: string;
|
|
95
|
-
|
|
95
|
+
properties: Record<string, unknown> | null;
|
|
96
|
+
title: string | null;
|
|
96
97
|
createdAt: string;
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
tenantId: string;
|
|
100
|
+
projectId: string;
|
|
97
101
|
metadata: ConversationMetadata | null;
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
agentId: string | null;
|
|
103
|
+
userId: string | null;
|
|
100
104
|
ref: {
|
|
101
105
|
type: "commit" | "tag" | "branch";
|
|
102
106
|
name: string;
|
|
103
107
|
hash: string;
|
|
104
108
|
} | null;
|
|
105
|
-
|
|
106
|
-
projectId: string;
|
|
107
|
-
updatedAt: string;
|
|
108
|
-
userId: string | null;
|
|
109
|
+
userProperties: Record<string, unknown> | null;
|
|
109
110
|
activeSubAgentId: string;
|
|
110
111
|
lastContextResolution: string | null;
|
|
111
|
-
userProperties: Record<string, unknown> | null;
|
|
112
112
|
} | undefined>;
|
|
113
113
|
/**
|
|
114
114
|
* Batch-fetch conversations by id within a project scope.
|
|
@@ -147,23 +147,23 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
147
147
|
properties?: Record<string, unknown> | null | undefined;
|
|
148
148
|
} | {
|
|
149
149
|
id: string;
|
|
150
|
-
|
|
150
|
+
properties: Record<string, unknown> | null;
|
|
151
|
+
title: string | null;
|
|
151
152
|
createdAt: string;
|
|
153
|
+
updatedAt: string;
|
|
154
|
+
tenantId: string;
|
|
155
|
+
projectId: string;
|
|
152
156
|
metadata: ConversationMetadata | null;
|
|
153
|
-
|
|
154
|
-
|
|
157
|
+
agentId: string | null;
|
|
158
|
+
userId: string | null;
|
|
155
159
|
ref: {
|
|
156
160
|
type: "commit" | "tag" | "branch";
|
|
157
161
|
name: string;
|
|
158
162
|
hash: string;
|
|
159
163
|
} | null;
|
|
160
|
-
|
|
161
|
-
projectId: string;
|
|
162
|
-
updatedAt: string;
|
|
163
|
-
userId: string | null;
|
|
164
|
+
userProperties: Record<string, unknown> | null;
|
|
164
165
|
activeSubAgentId: string;
|
|
165
166
|
lastContextResolution: string | null;
|
|
166
|
-
userProperties: Record<string, unknown> | null;
|
|
167
167
|
}>;
|
|
168
168
|
/**
|
|
169
169
|
* Extract text content from message content object
|
|
@@ -185,23 +185,23 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
185
185
|
conversationId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
|
-
|
|
188
|
+
properties: Record<string, unknown> | null;
|
|
189
|
+
title: string | null;
|
|
189
190
|
createdAt: string;
|
|
191
|
+
updatedAt: string;
|
|
192
|
+
tenantId: string;
|
|
193
|
+
projectId: string;
|
|
190
194
|
metadata: ConversationMetadata | null;
|
|
191
|
-
|
|
192
|
-
|
|
195
|
+
agentId: string | null;
|
|
196
|
+
userId: string | null;
|
|
193
197
|
ref: {
|
|
194
198
|
type: "commit" | "tag" | "branch";
|
|
195
199
|
name: string;
|
|
196
200
|
hash: string;
|
|
197
201
|
} | null;
|
|
198
|
-
|
|
199
|
-
projectId: string;
|
|
200
|
-
updatedAt: string;
|
|
201
|
-
userId: string | null;
|
|
202
|
+
userProperties: Record<string, unknown> | null;
|
|
202
203
|
activeSubAgentId: string;
|
|
203
204
|
lastContextResolution: string | null;
|
|
204
|
-
userProperties: Record<string, unknown> | null;
|
|
205
205
|
} | undefined>;
|
|
206
206
|
/**
|
|
207
207
|
* 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;
|
|
10
11
|
id: string;
|
|
11
|
-
|
|
12
|
+
properties: Record<string, unknown> | null;
|
|
12
13
|
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
13
17
|
metadata: Record<string, unknown> | null;
|
|
14
|
-
type: string;
|
|
15
|
-
properties: Record<string, unknown> | null;
|
|
16
18
|
agentId: string | null;
|
|
17
|
-
projectId: string;
|
|
18
|
-
updatedAt: string;
|
|
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";
|
|
73
74
|
id: string;
|
|
74
|
-
tenantId: string;
|
|
75
75
|
createdAt: string;
|
|
76
|
-
type: "positive" | "negative";
|
|
77
|
-
projectId: string;
|
|
78
76
|
updatedAt: string;
|
|
77
|
+
tenantId: string;
|
|
78
|
+
projectId: string;
|
|
79
|
+
details: string | null;
|
|
79
80
|
conversationId: string;
|
|
80
81
|
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";
|
|
103
104
|
id: string;
|
|
104
|
-
tenantId: string;
|
|
105
105
|
createdAt: string;
|
|
106
|
-
type: "positive" | "negative";
|
|
107
|
-
projectId: string;
|
|
108
106
|
updatedAt: string;
|
|
107
|
+
tenantId: string;
|
|
108
|
+
projectId: string;
|
|
109
|
+
details: string | null;
|
|
109
110
|
conversationId: string;
|
|
110
111
|
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
|
-
|
|
14
|
+
properties: Record<string, unknown> | null;
|
|
15
15
|
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
16
19
|
metadata: MessageMetadata | null;
|
|
17
|
-
properties: Record<string, unknown> | null;
|
|
18
20
|
content: MessageContent;
|
|
19
|
-
projectId: string;
|
|
20
|
-
updatedAt: string;
|
|
21
|
-
conversationId: string;
|
|
22
|
-
userProperties: Record<string, unknown> | null;
|
|
23
|
-
role: string;
|
|
24
21
|
fromSubAgentId: string | null;
|
|
25
22
|
toSubAgentId: string | null;
|
|
26
23
|
fromExternalAgentId: string | null;
|
|
27
24
|
toExternalAgentId: string | null;
|
|
25
|
+
taskId: string | null;
|
|
26
|
+
a2aTaskId: string | null;
|
|
27
|
+
conversationId: string;
|
|
28
|
+
role: string;
|
|
29
|
+
userProperties: Record<string, unknown> | null;
|
|
28
30
|
fromTeamAgentId: string | null;
|
|
29
31
|
toTeamAgentId: string | null;
|
|
30
32
|
visibility: string;
|
|
31
33
|
messageType: string;
|
|
32
|
-
taskId: string | null;
|
|
33
34
|
parentMessageId: string | null;
|
|
34
|
-
a2aTaskId: string | null;
|
|
35
35
|
a2aSessionId: string | null;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -184,27 +184,27 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
184
184
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
185
185
|
}) => Promise<{
|
|
186
186
|
id: string;
|
|
187
|
-
|
|
187
|
+
properties: Record<string, unknown> | null;
|
|
188
188
|
createdAt: string;
|
|
189
|
+
updatedAt: string;
|
|
190
|
+
tenantId: string;
|
|
191
|
+
projectId: string;
|
|
189
192
|
metadata: MessageMetadata | null;
|
|
190
|
-
properties: Record<string, unknown> | null;
|
|
191
193
|
content: MessageContent;
|
|
192
|
-
projectId: string;
|
|
193
|
-
updatedAt: string;
|
|
194
|
-
conversationId: string;
|
|
195
|
-
userProperties: Record<string, unknown> | null;
|
|
196
|
-
role: string;
|
|
197
194
|
fromSubAgentId: string | null;
|
|
198
195
|
toSubAgentId: string | null;
|
|
199
196
|
fromExternalAgentId: string | null;
|
|
200
197
|
toExternalAgentId: string | null;
|
|
198
|
+
taskId: string | null;
|
|
199
|
+
a2aTaskId: string | null;
|
|
200
|
+
conversationId: string;
|
|
201
|
+
role: string;
|
|
202
|
+
userProperties: Record<string, unknown> | null;
|
|
201
203
|
fromTeamAgentId: string | null;
|
|
202
204
|
toTeamAgentId: string | null;
|
|
203
205
|
visibility: string;
|
|
204
206
|
messageType: string;
|
|
205
|
-
taskId: string | null;
|
|
206
207
|
parentMessageId: string | null;
|
|
207
|
-
a2aTaskId: string | null;
|
|
208
208
|
a2aSessionId: string | null;
|
|
209
209
|
}>;
|
|
210
210
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -241,27 +241,27 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
241
241
|
messageId: string;
|
|
242
242
|
}) => Promise<{
|
|
243
243
|
id: string;
|
|
244
|
-
|
|
244
|
+
properties: Record<string, unknown> | null;
|
|
245
245
|
createdAt: string;
|
|
246
|
+
updatedAt: string;
|
|
247
|
+
tenantId: string;
|
|
248
|
+
projectId: string;
|
|
246
249
|
metadata: MessageMetadata | null;
|
|
247
|
-
properties: Record<string, unknown> | null;
|
|
248
250
|
content: MessageContent;
|
|
249
|
-
projectId: string;
|
|
250
|
-
updatedAt: string;
|
|
251
|
-
conversationId: string;
|
|
252
|
-
userProperties: Record<string, unknown> | null;
|
|
253
|
-
role: string;
|
|
254
251
|
fromSubAgentId: string | null;
|
|
255
252
|
toSubAgentId: string | null;
|
|
256
253
|
fromExternalAgentId: string | null;
|
|
257
254
|
toExternalAgentId: string | null;
|
|
255
|
+
taskId: string | null;
|
|
256
|
+
a2aTaskId: string | null;
|
|
257
|
+
conversationId: string;
|
|
258
|
+
role: string;
|
|
259
|
+
userProperties: Record<string, unknown> | null;
|
|
258
260
|
fromTeamAgentId: string | null;
|
|
259
261
|
toTeamAgentId: string | null;
|
|
260
262
|
visibility: string;
|
|
261
263
|
messageType: string;
|
|
262
|
-
taskId: string | null;
|
|
263
264
|
parentMessageId: string | null;
|
|
264
|
-
a2aTaskId: string | null;
|
|
265
265
|
a2aSessionId: string | null;
|
|
266
266
|
}>;
|
|
267
267
|
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" | "failed" | "running" | "completed" | "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" | "failed" | "running" | "completed" | "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" | "failed" | "running" | "completed" | "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" | "failed" | "running" | "completed" | "cancelled";
|
|
296
296
|
scheduledFor: string;
|
|
297
297
|
startedAt: string | null;
|
|
298
298
|
completedAt: string | null;
|
|
@@ -320,7 +320,7 @@ declare const listScheduledTriggerInvocationsByDatasetRunId: (db: AgentsRunDatab
|
|
|
320
320
|
name: string;
|
|
321
321
|
hash: string;
|
|
322
322
|
} | null;
|
|
323
|
-
status: "pending" | "
|
|
323
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
324
324
|
scheduledFor: string;
|
|
325
325
|
startedAt: string | null;
|
|
326
326
|
completedAt: string | null;
|
|
@@ -15,10 +15,10 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
|
|
|
15
15
|
scheduledTriggerId: string;
|
|
16
16
|
userId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
tenantId: string;
|
|
19
18
|
createdAt: string;
|
|
20
|
-
|
|
19
|
+
tenantId: string;
|
|
21
20
|
userId: string;
|
|
21
|
+
scheduledTriggerId: string;
|
|
22
22
|
}>;
|
|
23
23
|
declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
|
|
24
24
|
tenantId: string;
|
|
@@ -8,19 +8,19 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
8
8
|
//#region src/data-access/runtime/tasks.d.ts
|
|
9
9
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
10
10
|
id: string;
|
|
11
|
-
tenantId: string;
|
|
12
11
|
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
13
15
|
metadata: TaskMetadataConfig | null;
|
|
16
|
+
agentId: string;
|
|
17
|
+
subAgentId: string;
|
|
14
18
|
ref: {
|
|
15
19
|
type: "commit" | "tag" | "branch";
|
|
16
20
|
name: string;
|
|
17
21
|
hash: string;
|
|
18
22
|
} | null;
|
|
19
23
|
status: string;
|
|
20
|
-
agentId: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
subAgentId: string;
|
|
23
|
-
updatedAt: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|