@inkeep/agents-core 0.57.0 → 0.58.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 +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +135 -135
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- 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 +4 -4
- package/dist/data-access/manage/functionTools.d.ts +20 -20
- package/dist/data-access/manage/skills.d.ts +19 -19
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- 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 +36 -36
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/apiKeys.js +1 -8
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +451 -451
- package/dist/db/runtime/runtime-schema.d.ts +303 -303
- package/dist/validation/schemas.d.ts +1825 -1827
- package/dist/validation/schemas.js +2 -1
- package/package.json +2 -2
|
@@ -120,14 +120,7 @@ const validateAndGetApiKey = async (key, db) => {
|
|
|
120
120
|
if (!apiKey) return null;
|
|
121
121
|
if (!await validateApiKey(key, apiKey.keyHash)) return null;
|
|
122
122
|
if (isApiKeyExpired(apiKey.expiresAt)) return null;
|
|
123
|
-
await
|
|
124
|
-
scopes: {
|
|
125
|
-
tenantId: apiKey.tenantId,
|
|
126
|
-
projectId: apiKey.projectId
|
|
127
|
-
},
|
|
128
|
-
id: apiKey.id,
|
|
129
|
-
data: { lastUsedAt: (/* @__PURE__ */ new Date()).toISOString() }
|
|
130
|
-
});
|
|
123
|
+
await updateApiKeyLastUsed(db)(apiKey.id);
|
|
131
124
|
return apiKey;
|
|
132
125
|
};
|
|
133
126
|
|
|
@@ -16,15 +16,15 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
total: number;
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
|
-
id: string;
|
|
20
19
|
tenantId: string;
|
|
21
|
-
createdAt: string;
|
|
22
|
-
metadata: ConversationMetadata | null;
|
|
23
|
-
title: string | null;
|
|
24
|
-
updatedAt: string;
|
|
25
20
|
projectId: string;
|
|
26
21
|
agentId: string | null;
|
|
22
|
+
title: string | null;
|
|
27
23
|
userId: string | null;
|
|
24
|
+
id: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
28
28
|
ref: {
|
|
29
29
|
type: "commit" | "tag" | "branch";
|
|
30
30
|
name: string;
|
|
@@ -85,15 +85,15 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
scopes: ProjectScopeConfig;
|
|
86
86
|
conversationId: string;
|
|
87
87
|
}) => Promise<{
|
|
88
|
-
id: string;
|
|
89
88
|
tenantId: string;
|
|
90
|
-
createdAt: string;
|
|
91
|
-
metadata: ConversationMetadata | null;
|
|
92
|
-
title: string | null;
|
|
93
|
-
updatedAt: string;
|
|
94
89
|
projectId: string;
|
|
95
90
|
agentId: string | null;
|
|
91
|
+
title: string | null;
|
|
96
92
|
userId: string | null;
|
|
93
|
+
id: string;
|
|
94
|
+
createdAt: string;
|
|
95
|
+
updatedAt: string;
|
|
96
|
+
metadata: ConversationMetadata | null;
|
|
97
97
|
ref: {
|
|
98
98
|
type: "commit" | "tag" | "branch";
|
|
99
99
|
name: string;
|
|
@@ -121,15 +121,15 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
metadata?: ConversationMetadata | null | undefined;
|
|
122
122
|
contextConfigId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
|
-
id: string;
|
|
125
124
|
tenantId: string;
|
|
126
|
-
createdAt: string;
|
|
127
|
-
metadata: ConversationMetadata | null;
|
|
128
|
-
title: string | null;
|
|
129
|
-
updatedAt: string;
|
|
130
125
|
projectId: string;
|
|
131
126
|
agentId: string | null;
|
|
127
|
+
title: string | null;
|
|
132
128
|
userId: string | null;
|
|
129
|
+
id: string;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
metadata: ConversationMetadata | null;
|
|
133
133
|
ref: {
|
|
134
134
|
type: "commit" | "tag" | "branch";
|
|
135
135
|
name: string;
|
|
@@ -153,15 +153,15 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
scopes: ProjectScopeConfig;
|
|
154
154
|
conversationId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
-
id: string;
|
|
157
156
|
tenantId: string;
|
|
158
|
-
createdAt: string;
|
|
159
|
-
metadata: ConversationMetadata | null;
|
|
160
|
-
title: string | null;
|
|
161
|
-
updatedAt: string;
|
|
162
157
|
projectId: string;
|
|
163
158
|
agentId: string | null;
|
|
159
|
+
title: string | null;
|
|
164
160
|
userId: string | null;
|
|
161
|
+
id: string;
|
|
162
|
+
createdAt: string;
|
|
163
|
+
updatedAt: string;
|
|
164
|
+
metadata: ConversationMetadata | null;
|
|
165
165
|
ref: {
|
|
166
166
|
type: "commit" | "tag" | "branch";
|
|
167
167
|
name: string;
|
|
@@ -10,21 +10,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
id: string;
|
|
14
13
|
tenantId: string;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
metadata: MessageMetadata | null;
|
|
17
|
-
content: MessageContent;
|
|
18
|
-
updatedAt: string;
|
|
19
14
|
projectId: string;
|
|
15
|
+
content: MessageContent;
|
|
20
16
|
fromSubAgentId: string | null;
|
|
21
17
|
toSubAgentId: string | null;
|
|
22
18
|
fromExternalAgentId: string | null;
|
|
23
19
|
toExternalAgentId: string | null;
|
|
24
20
|
taskId: string | null;
|
|
25
21
|
a2aTaskId: string | null;
|
|
26
|
-
|
|
22
|
+
id: string;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
metadata: MessageMetadata | null;
|
|
27
26
|
role: string;
|
|
27
|
+
conversationId: string;
|
|
28
28
|
fromTeamAgentId: string | null;
|
|
29
29
|
toTeamAgentId: string | null;
|
|
30
30
|
visibility: string;
|
|
@@ -141,21 +141,21 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
141
141
|
id: string;
|
|
142
142
|
}[]>;
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
|
-
id: string;
|
|
145
144
|
tenantId: string;
|
|
146
|
-
createdAt: string;
|
|
147
|
-
metadata: MessageMetadata | null;
|
|
148
|
-
content: MessageContent;
|
|
149
|
-
updatedAt: string;
|
|
150
145
|
projectId: string;
|
|
146
|
+
content: MessageContent;
|
|
151
147
|
fromSubAgentId: string | null;
|
|
152
148
|
toSubAgentId: string | null;
|
|
153
149
|
fromExternalAgentId: string | null;
|
|
154
150
|
toExternalAgentId: string | null;
|
|
155
151
|
taskId: string | null;
|
|
156
152
|
a2aTaskId: string | null;
|
|
157
|
-
|
|
153
|
+
id: string;
|
|
154
|
+
createdAt: string;
|
|
155
|
+
updatedAt: string;
|
|
156
|
+
metadata: MessageMetadata | null;
|
|
158
157
|
role: string;
|
|
158
|
+
conversationId: string;
|
|
159
159
|
fromTeamAgentId: string | null;
|
|
160
160
|
toTeamAgentId: string | null;
|
|
161
161
|
visibility: string;
|
|
@@ -194,21 +194,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
194
194
|
scopes: ProjectScopeConfig;
|
|
195
195
|
messageId: string;
|
|
196
196
|
}) => Promise<{
|
|
197
|
-
id: string;
|
|
198
197
|
tenantId: string;
|
|
199
|
-
createdAt: string;
|
|
200
|
-
metadata: MessageMetadata | null;
|
|
201
|
-
content: MessageContent;
|
|
202
|
-
updatedAt: string;
|
|
203
198
|
projectId: string;
|
|
199
|
+
content: MessageContent;
|
|
204
200
|
fromSubAgentId: string | null;
|
|
205
201
|
toSubAgentId: string | null;
|
|
206
202
|
fromExternalAgentId: string | null;
|
|
207
203
|
toExternalAgentId: string | null;
|
|
208
204
|
taskId: string | null;
|
|
209
205
|
a2aTaskId: string | null;
|
|
210
|
-
|
|
206
|
+
id: string;
|
|
207
|
+
createdAt: string;
|
|
208
|
+
updatedAt: string;
|
|
209
|
+
metadata: MessageMetadata | null;
|
|
211
210
|
role: string;
|
|
211
|
+
conversationId: string;
|
|
212
212
|
fromTeamAgentId: string | null;
|
|
213
213
|
toTeamAgentId: string | null;
|
|
214
214
|
visibility: string;
|
|
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
34
34
|
}) => Promise<{
|
|
35
35
|
data: {
|
|
36
36
|
scheduledTriggerId: string;
|
|
37
|
-
status: "pending" | "
|
|
37
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
38
38
|
scheduledFor: string;
|
|
39
39
|
startedAt: string | null;
|
|
40
40
|
completedAt: string | null;
|
|
@@ -174,7 +174,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
|
|
|
174
174
|
}) => Promise<{
|
|
175
175
|
data: {
|
|
176
176
|
scheduledTriggerId: string;
|
|
177
|
-
status: "pending" | "
|
|
177
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
178
178
|
scheduledFor: string;
|
|
179
179
|
startedAt: string | null;
|
|
180
180
|
completedAt: string | null;
|
|
@@ -208,7 +208,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
|
|
|
208
208
|
}) => Promise<{
|
|
209
209
|
data: {
|
|
210
210
|
scheduledTriggerId: string;
|
|
211
|
-
status: "pending" | "
|
|
211
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
212
212
|
scheduledFor: string;
|
|
213
213
|
startedAt: string | null;
|
|
214
214
|
completedAt: string | null;
|
|
@@ -6,21 +6,21 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
6
6
|
|
|
7
7
|
//#region src/data-access/runtime/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
|
-
id: string;
|
|
10
9
|
tenantId: string;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
metadata: TaskMetadataConfig | null;
|
|
13
|
-
updatedAt: string;
|
|
14
10
|
projectId: string;
|
|
15
11
|
agentId: string;
|
|
16
12
|
subAgentId: string;
|
|
17
13
|
status: string;
|
|
18
|
-
|
|
14
|
+
id: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
metadata: TaskMetadataConfig | null;
|
|
19
18
|
ref: {
|
|
20
19
|
type: "commit" | "tag" | "branch";
|
|
21
20
|
name: string;
|
|
22
21
|
hash: string;
|
|
23
22
|
} | null;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|