@inkeep/agents-core 0.68.2 → 0.68.4
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-types.d.ts +10 -2
- package/dist/auth/auth-types.js +2 -0
- package/dist/auth/auth-validation-schemas.d.ts +137 -137
- package/dist/auth/auth.js +15 -5
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +20 -20
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +4 -4
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +8 -8
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +6 -6
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +12 -12
- package/dist/data-access/runtime/feedback.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +21 -21
- package/dist/data-access/runtime/organizations.js +1 -0
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +413 -413
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/schemas/skills.d.ts +17 -17
- package/dist/validation/schemas.d.ts +1522 -1522
- package/package.json +1 -1
|
@@ -12,28 +12,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
12
12
|
name: string | null;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
agentId: 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
25
|
id: string;
|
|
26
26
|
name: string | null;
|
|
27
27
|
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
|
-
projectId: string;
|
|
30
29
|
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
31
31
|
agentId: 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;
|
|
@@ -43,14 +43,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
43
43
|
name: string | null;
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
-
projectId: string;
|
|
47
46
|
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
48
48
|
agentId: 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;
|
|
@@ -70,14 +70,14 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
70
70
|
name: string | null;
|
|
71
71
|
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
|
-
projectId: string;
|
|
74
73
|
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
75
75
|
agentId: 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;
|
|
@@ -8,11 +8,11 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
10
10
|
description: string | null;
|
|
11
|
+
type: AppType;
|
|
11
12
|
createdAt: string;
|
|
12
13
|
updatedAt: string;
|
|
13
|
-
projectId: string | null;
|
|
14
14
|
tenantId: string | null;
|
|
15
|
-
|
|
15
|
+
projectId: string | null;
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
prompt: string | null;
|
|
18
18
|
config: {
|
|
@@ -69,11 +69,11 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
69
69
|
id: string;
|
|
70
70
|
name: string;
|
|
71
71
|
description: string | null;
|
|
72
|
+
type: AppType;
|
|
72
73
|
createdAt: string;
|
|
73
74
|
updatedAt: string;
|
|
74
|
-
projectId: string | null;
|
|
75
75
|
tenantId: string | null;
|
|
76
|
-
|
|
76
|
+
projectId: string | null;
|
|
77
77
|
enabled: boolean;
|
|
78
78
|
prompt: string | null;
|
|
79
79
|
config: {
|
|
@@ -16,12 +16,12 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
|
|
19
|
+
title: string | null;
|
|
20
20
|
createdAt: string;
|
|
21
21
|
updatedAt: string;
|
|
22
|
-
projectId: string;
|
|
23
22
|
tenantId: string;
|
|
24
|
-
|
|
23
|
+
metadata: ConversationMetadata | null;
|
|
24
|
+
projectId: string;
|
|
25
25
|
agentId: string | null;
|
|
26
26
|
userId: string | null;
|
|
27
27
|
ref: {
|
|
@@ -85,12 +85,12 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
87
|
id: string;
|
|
88
|
-
|
|
88
|
+
title: string | null;
|
|
89
89
|
createdAt: string;
|
|
90
90
|
updatedAt: string;
|
|
91
|
-
projectId: string;
|
|
92
91
|
tenantId: string;
|
|
93
|
-
|
|
92
|
+
metadata: ConversationMetadata | null;
|
|
93
|
+
projectId: string;
|
|
94
94
|
agentId: string | null;
|
|
95
95
|
userId: string | null;
|
|
96
96
|
ref: {
|
|
@@ -121,12 +121,12 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
123
|
id: string;
|
|
124
|
-
|
|
124
|
+
title: string | null;
|
|
125
125
|
createdAt: string;
|
|
126
126
|
updatedAt: string;
|
|
127
|
-
projectId: string;
|
|
128
127
|
tenantId: string;
|
|
129
|
-
|
|
128
|
+
metadata: ConversationMetadata | null;
|
|
129
|
+
projectId: string;
|
|
130
130
|
agentId: string | null;
|
|
131
131
|
userId: string | null;
|
|
132
132
|
ref: {
|
|
@@ -153,12 +153,12 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
155
|
id: string;
|
|
156
|
-
|
|
156
|
+
title: string | null;
|
|
157
157
|
createdAt: string;
|
|
158
158
|
updatedAt: string;
|
|
159
|
-
projectId: string;
|
|
160
159
|
tenantId: string;
|
|
161
|
-
|
|
160
|
+
metadata: ConversationMetadata | null;
|
|
161
|
+
projectId: string;
|
|
162
162
|
agentId: string | null;
|
|
163
163
|
userId: string | null;
|
|
164
164
|
ref: {
|
|
@@ -59,14 +59,14 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
59
59
|
}>;
|
|
60
60
|
declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
|
|
61
61
|
id: string;
|
|
62
|
+
type: "positive" | "negative";
|
|
62
63
|
createdAt: string;
|
|
63
64
|
updatedAt: string;
|
|
64
|
-
projectId: string;
|
|
65
65
|
tenantId: string;
|
|
66
|
-
|
|
67
|
-
details: string | null;
|
|
66
|
+
projectId: string;
|
|
68
67
|
conversationId: string;
|
|
69
68
|
messageId: string | null;
|
|
69
|
+
details: string | null;
|
|
70
70
|
}>;
|
|
71
71
|
declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
72
72
|
scopes: ProjectScopeConfig;
|
|
@@ -88,14 +88,14 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
88
88
|
feedbackId: string;
|
|
89
89
|
}) => Promise<{
|
|
90
90
|
id: string;
|
|
91
|
+
type: "positive" | "negative";
|
|
91
92
|
createdAt: string;
|
|
92
93
|
updatedAt: string;
|
|
93
|
-
projectId: string;
|
|
94
94
|
tenantId: string;
|
|
95
|
-
|
|
96
|
-
details: string | null;
|
|
95
|
+
projectId: string;
|
|
97
96
|
conversationId: string;
|
|
98
97
|
messageId: string | null;
|
|
98
|
+
details: string | null;
|
|
99
99
|
}>;
|
|
100
100
|
//#endregion
|
|
101
101
|
export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };
|
|
@@ -11,25 +11,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
-
content: MessageContent;
|
|
15
|
-
metadata: MessageMetadata | null;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
|
-
projectId: string;
|
|
19
16
|
tenantId: string;
|
|
17
|
+
metadata: MessageMetadata | null;
|
|
18
|
+
content: MessageContent;
|
|
19
|
+
projectId: string;
|
|
20
|
+
role: string;
|
|
21
|
+
conversationId: string;
|
|
20
22
|
fromSubAgentId: string | null;
|
|
21
23
|
toSubAgentId: string | null;
|
|
22
24
|
fromExternalAgentId: string | null;
|
|
23
25
|
toExternalAgentId: string | null;
|
|
24
|
-
taskId: string | null;
|
|
25
|
-
a2aTaskId: string | null;
|
|
26
|
-
conversationId: string;
|
|
27
|
-
role: string;
|
|
28
26
|
fromTeamAgentId: string | null;
|
|
29
27
|
toTeamAgentId: string | null;
|
|
30
28
|
visibility: string;
|
|
31
29
|
messageType: string;
|
|
30
|
+
taskId: string | null;
|
|
32
31
|
parentMessageId: string | null;
|
|
32
|
+
a2aTaskId: string | null;
|
|
33
33
|
a2aSessionId: string | null;
|
|
34
34
|
} | undefined>;
|
|
35
35
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -145,25 +145,25 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
145
145
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
146
146
|
}) => Promise<{
|
|
147
147
|
id: string;
|
|
148
|
-
content: MessageContent;
|
|
149
|
-
metadata: MessageMetadata | null;
|
|
150
148
|
createdAt: string;
|
|
151
149
|
updatedAt: string;
|
|
152
|
-
projectId: string;
|
|
153
150
|
tenantId: string;
|
|
151
|
+
metadata: MessageMetadata | null;
|
|
152
|
+
content: MessageContent;
|
|
153
|
+
projectId: string;
|
|
154
|
+
role: string;
|
|
155
|
+
conversationId: string;
|
|
154
156
|
fromSubAgentId: string | null;
|
|
155
157
|
toSubAgentId: string | null;
|
|
156
158
|
fromExternalAgentId: string | null;
|
|
157
159
|
toExternalAgentId: string | null;
|
|
158
|
-
taskId: string | null;
|
|
159
|
-
a2aTaskId: string | null;
|
|
160
|
-
conversationId: string;
|
|
161
|
-
role: string;
|
|
162
160
|
fromTeamAgentId: string | null;
|
|
163
161
|
toTeamAgentId: string | null;
|
|
164
162
|
visibility: string;
|
|
165
163
|
messageType: string;
|
|
164
|
+
taskId: string | null;
|
|
166
165
|
parentMessageId: string | null;
|
|
166
|
+
a2aTaskId: string | null;
|
|
167
167
|
a2aSessionId: string | null;
|
|
168
168
|
}>;
|
|
169
169
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -198,25 +198,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
198
198
|
messageId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
200
|
id: string;
|
|
201
|
-
content: MessageContent;
|
|
202
|
-
metadata: MessageMetadata | null;
|
|
203
201
|
createdAt: string;
|
|
204
202
|
updatedAt: string;
|
|
205
|
-
projectId: string;
|
|
206
203
|
tenantId: string;
|
|
204
|
+
metadata: MessageMetadata | null;
|
|
205
|
+
content: MessageContent;
|
|
206
|
+
projectId: string;
|
|
207
|
+
role: string;
|
|
208
|
+
conversationId: string;
|
|
207
209
|
fromSubAgentId: string | null;
|
|
208
210
|
toSubAgentId: string | null;
|
|
209
211
|
fromExternalAgentId: string | null;
|
|
210
212
|
toExternalAgentId: string | null;
|
|
211
|
-
taskId: string | null;
|
|
212
|
-
a2aTaskId: string | null;
|
|
213
|
-
conversationId: string;
|
|
214
|
-
role: string;
|
|
215
213
|
fromTeamAgentId: string | null;
|
|
216
214
|
toTeamAgentId: string | null;
|
|
217
215
|
visibility: string;
|
|
218
216
|
messageType: string;
|
|
217
|
+
taskId: string | null;
|
|
219
218
|
parentMessageId: string | null;
|
|
219
|
+
a2aTaskId: string | null;
|
|
220
220
|
a2aSessionId: string | null;
|
|
221
221
|
}>;
|
|
222
222
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -163,6 +163,7 @@ function allowedMethodsToMethodOptions(methods, ssoProviders) {
|
|
|
163
163
|
const options = [];
|
|
164
164
|
for (const m of methods) if (m.method === "email-password") options.push({ method: "email-password" });
|
|
165
165
|
else if (m.method === "google") options.push({ method: "google" });
|
|
166
|
+
else if (m.method === "microsoft") options.push({ method: "microsoft" });
|
|
166
167
|
else if (m.method === "sso") {
|
|
167
168
|
if (!m.enabled) continue;
|
|
168
169
|
const provider = ssoProviders.find((p) => p.providerId === m.providerId);
|
|
@@ -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;
|
|
@@ -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
|
-
metadata: TaskMetadataConfig | null;
|
|
12
11
|
createdAt: string;
|
|
13
12
|
updatedAt: string;
|
|
14
|
-
projectId: string;
|
|
15
13
|
tenantId: string;
|
|
14
|
+
metadata: TaskMetadataConfig | null;
|
|
15
|
+
projectId: string;
|
|
16
16
|
agentId: string;
|
|
17
17
|
subAgentId: string;
|
|
18
|
-
status: string;
|
|
19
18
|
ref: {
|
|
20
19
|
type: "commit" | "tag" | "branch";
|
|
21
20
|
name: string;
|
|
22
21
|
hash: string;
|
|
23
22
|
} | null;
|
|
23
|
+
status: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|