@inkeep/agents-core 0.0.0-dev-20260414161812 → 0.0.0-dev-20260414181624
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-validation-schemas.d.ts +154 -154
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/data-access/manage/agents.d.ts +20 -20
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/skills.d.ts +9 -9
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +30 -15
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +18 -18
- 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 +362 -362
- package/dist/db/runtime/runtime-schema.d.ts +393 -383
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/utility.d.ts +5 -4
- 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 +37 -37
- package/dist/validation/schemas.d.ts +2296 -2198
- package/dist/validation/schemas.js +20 -4
- package/package.json +1 -1
|
@@ -6,15 +6,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
8
|
type: AppType;
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
id: string;
|
|
11
9
|
name: string;
|
|
10
|
+
id: string;
|
|
12
11
|
createdAt: string;
|
|
13
12
|
updatedAt: string;
|
|
13
|
+
projectId: string | null;
|
|
14
|
+
tenantId: string | null;
|
|
14
15
|
description: string | null;
|
|
16
|
+
enabled: boolean;
|
|
15
17
|
prompt: string | null;
|
|
16
|
-
tenantId: string | null;
|
|
17
|
-
projectId: string | null;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
20
20
|
webClient: {
|
|
@@ -22,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
22
22
|
publicKeys: {
|
|
23
23
|
kid: string;
|
|
24
24
|
publicKey: string;
|
|
25
|
-
algorithm: "
|
|
25
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
26
26
|
addedAt: string;
|
|
27
27
|
}[];
|
|
28
28
|
allowAnonymous: boolean;
|
|
@@ -31,10 +31,15 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
31
31
|
} | {
|
|
32
32
|
type: "api";
|
|
33
33
|
api: Record<string, never>;
|
|
34
|
+
} | {
|
|
35
|
+
type: "support_copilot";
|
|
36
|
+
supportCopilot: {
|
|
37
|
+
credentialReferenceIds: string[];
|
|
38
|
+
};
|
|
34
39
|
};
|
|
35
|
-
defaultAgentId: string | null;
|
|
36
|
-
defaultProjectId: string | null;
|
|
37
40
|
lastUsedAt: string | null;
|
|
41
|
+
defaultProjectId: string | null;
|
|
42
|
+
defaultAgentId: string | null;
|
|
38
43
|
} | undefined>;
|
|
39
44
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
40
45
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -62,15 +67,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
62
67
|
}>;
|
|
63
68
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
64
69
|
type: AppType;
|
|
65
|
-
enabled: boolean;
|
|
66
|
-
id: string;
|
|
67
70
|
name: string;
|
|
71
|
+
id: string;
|
|
68
72
|
createdAt: string;
|
|
69
73
|
updatedAt: string;
|
|
74
|
+
projectId: string | null;
|
|
75
|
+
tenantId: string | null;
|
|
70
76
|
description: string | null;
|
|
77
|
+
enabled: boolean;
|
|
71
78
|
prompt: string | null;
|
|
72
|
-
tenantId: string | null;
|
|
73
|
-
projectId: string | null;
|
|
74
79
|
config: {
|
|
75
80
|
type: "web_client";
|
|
76
81
|
webClient: {
|
|
@@ -78,7 +83,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
78
83
|
publicKeys: {
|
|
79
84
|
kid: string;
|
|
80
85
|
publicKey: string;
|
|
81
|
-
algorithm: "
|
|
86
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
82
87
|
addedAt: string;
|
|
83
88
|
}[];
|
|
84
89
|
allowAnonymous: boolean;
|
|
@@ -87,10 +92,15 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
87
92
|
} | {
|
|
88
93
|
type: "api";
|
|
89
94
|
api: Record<string, never>;
|
|
95
|
+
} | {
|
|
96
|
+
type: "support_copilot";
|
|
97
|
+
supportCopilot: {
|
|
98
|
+
credentialReferenceIds: string[];
|
|
99
|
+
};
|
|
90
100
|
};
|
|
91
|
-
defaultAgentId: string | null;
|
|
92
|
-
defaultProjectId: string | null;
|
|
93
101
|
lastUsedAt: string | null;
|
|
102
|
+
defaultProjectId: string | null;
|
|
103
|
+
defaultAgentId: string | null;
|
|
94
104
|
}>;
|
|
95
105
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
96
106
|
scopes: TenantScopeConfig;
|
|
@@ -148,7 +158,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
148
158
|
publicKeys: {
|
|
149
159
|
kid: string;
|
|
150
160
|
publicKey: string;
|
|
151
|
-
algorithm: "
|
|
161
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
152
162
|
addedAt: string;
|
|
153
163
|
}[];
|
|
154
164
|
allowAnonymous: boolean;
|
|
@@ -157,6 +167,11 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
157
167
|
} | {
|
|
158
168
|
type: "api";
|
|
159
169
|
api: Record<string, never>;
|
|
170
|
+
} | {
|
|
171
|
+
type: "support_copilot";
|
|
172
|
+
supportCopilot: {
|
|
173
|
+
credentialReferenceIds: string[];
|
|
174
|
+
};
|
|
160
175
|
};
|
|
161
176
|
lastUsedAt: string | null;
|
|
162
177
|
}>;
|
|
@@ -18,17 +18,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
18
18
|
id: string;
|
|
19
19
|
createdAt: string;
|
|
20
20
|
updatedAt: string;
|
|
21
|
+
agentId: string | null;
|
|
22
|
+
projectId: string;
|
|
23
|
+
tenantId: string;
|
|
24
|
+
title: string | null;
|
|
25
|
+
metadata: ConversationMetadata | null;
|
|
21
26
|
ref: {
|
|
22
27
|
type: "commit" | "tag" | "branch";
|
|
23
28
|
name: string;
|
|
24
29
|
hash: string;
|
|
25
30
|
} | null;
|
|
26
31
|
userId: string | null;
|
|
27
|
-
metadata: ConversationMetadata | null;
|
|
28
|
-
tenantId: string;
|
|
29
|
-
title: string | null;
|
|
30
|
-
agentId: string | null;
|
|
31
|
-
projectId: string;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -87,17 +87,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
87
87
|
id: string;
|
|
88
88
|
createdAt: string;
|
|
89
89
|
updatedAt: string;
|
|
90
|
+
agentId: string | null;
|
|
91
|
+
projectId: string;
|
|
92
|
+
tenantId: string;
|
|
93
|
+
title: string | null;
|
|
94
|
+
metadata: ConversationMetadata | null;
|
|
90
95
|
ref: {
|
|
91
96
|
type: "commit" | "tag" | "branch";
|
|
92
97
|
name: string;
|
|
93
98
|
hash: string;
|
|
94
99
|
} | null;
|
|
95
100
|
userId: string | null;
|
|
96
|
-
metadata: ConversationMetadata | null;
|
|
97
|
-
tenantId: string;
|
|
98
|
-
title: string | null;
|
|
99
|
-
agentId: string | null;
|
|
100
|
-
projectId: string;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -123,17 +123,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
123
123
|
id: string;
|
|
124
124
|
createdAt: string;
|
|
125
125
|
updatedAt: string;
|
|
126
|
+
agentId: string | null;
|
|
127
|
+
projectId: string;
|
|
128
|
+
tenantId: string;
|
|
129
|
+
title: string | null;
|
|
130
|
+
metadata: ConversationMetadata | null;
|
|
126
131
|
ref: {
|
|
127
132
|
type: "commit" | "tag" | "branch";
|
|
128
133
|
name: string;
|
|
129
134
|
hash: string;
|
|
130
135
|
} | null;
|
|
131
136
|
userId: string | null;
|
|
132
|
-
metadata: ConversationMetadata | null;
|
|
133
|
-
tenantId: string;
|
|
134
|
-
title: string | null;
|
|
135
|
-
agentId: string | null;
|
|
136
|
-
projectId: string;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -155,17 +155,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
155
155
|
id: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
|
+
agentId: string | null;
|
|
159
|
+
projectId: string;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
title: string | null;
|
|
162
|
+
metadata: ConversationMetadata | null;
|
|
158
163
|
ref: {
|
|
159
164
|
type: "commit" | "tag" | "branch";
|
|
160
165
|
name: string;
|
|
161
166
|
hash: string;
|
|
162
167
|
} | null;
|
|
163
168
|
userId: string | null;
|
|
164
|
-
metadata: ConversationMetadata | null;
|
|
165
|
-
tenantId: string;
|
|
166
|
-
title: string | null;
|
|
167
|
-
agentId: string | null;
|
|
168
|
-
projectId: string;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -62,11 +62,11 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
|
|
|
62
62
|
id: string;
|
|
63
63
|
createdAt: string;
|
|
64
64
|
updatedAt: string;
|
|
65
|
-
tenantId: string;
|
|
66
65
|
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
67
|
+
details: string | null;
|
|
67
68
|
conversationId: string;
|
|
68
69
|
messageId: string | null;
|
|
69
|
-
details: string | null;
|
|
70
70
|
}>;
|
|
71
71
|
declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
72
72
|
scopes: ProjectScopeConfig;
|
|
@@ -91,11 +91,11 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
91
91
|
id: string;
|
|
92
92
|
createdAt: string;
|
|
93
93
|
updatedAt: string;
|
|
94
|
-
tenantId: string;
|
|
95
94
|
projectId: string;
|
|
95
|
+
tenantId: string;
|
|
96
|
+
details: string | null;
|
|
96
97
|
conversationId: string;
|
|
97
98
|
messageId: string | null;
|
|
98
|
-
details: string | null;
|
|
99
99
|
}>;
|
|
100
100
|
//#endregion
|
|
101
101
|
export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };
|
|
@@ -13,23 +13,23 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
13
13
|
id: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
|
|
17
|
-
role: string;
|
|
16
|
+
projectId: string;
|
|
18
17
|
tenantId: string;
|
|
18
|
+
metadata: MessageMetadata | null;
|
|
19
19
|
content: MessageContent;
|
|
20
|
-
projectId: string;
|
|
21
|
-
conversationId: string;
|
|
22
20
|
fromSubAgentId: string | null;
|
|
23
21
|
toSubAgentId: string | null;
|
|
24
22
|
fromExternalAgentId: string | null;
|
|
25
23
|
toExternalAgentId: string | null;
|
|
24
|
+
taskId: string | null;
|
|
25
|
+
a2aTaskId: string | null;
|
|
26
|
+
role: string;
|
|
27
|
+
conversationId: string;
|
|
26
28
|
fromTeamAgentId: string | null;
|
|
27
29
|
toTeamAgentId: string | null;
|
|
28
30
|
visibility: string;
|
|
29
31
|
messageType: string;
|
|
30
|
-
taskId: string | null;
|
|
31
32
|
parentMessageId: string | null;
|
|
32
|
-
a2aTaskId: string | null;
|
|
33
33
|
a2aSessionId: string | null;
|
|
34
34
|
} | undefined>;
|
|
35
35
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -147,23 +147,23 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
147
147
|
id: string;
|
|
148
148
|
createdAt: string;
|
|
149
149
|
updatedAt: string;
|
|
150
|
-
|
|
151
|
-
role: string;
|
|
150
|
+
projectId: string;
|
|
152
151
|
tenantId: string;
|
|
152
|
+
metadata: MessageMetadata | null;
|
|
153
153
|
content: MessageContent;
|
|
154
|
-
projectId: string;
|
|
155
|
-
conversationId: string;
|
|
156
154
|
fromSubAgentId: string | null;
|
|
157
155
|
toSubAgentId: string | null;
|
|
158
156
|
fromExternalAgentId: string | null;
|
|
159
157
|
toExternalAgentId: string | null;
|
|
158
|
+
taskId: string | null;
|
|
159
|
+
a2aTaskId: string | null;
|
|
160
|
+
role: string;
|
|
161
|
+
conversationId: string;
|
|
160
162
|
fromTeamAgentId: string | null;
|
|
161
163
|
toTeamAgentId: string | null;
|
|
162
164
|
visibility: string;
|
|
163
165
|
messageType: string;
|
|
164
|
-
taskId: string | null;
|
|
165
166
|
parentMessageId: string | null;
|
|
166
|
-
a2aTaskId: string | null;
|
|
167
167
|
a2aSessionId: string | null;
|
|
168
168
|
}>;
|
|
169
169
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -200,23 +200,23 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
200
200
|
id: string;
|
|
201
201
|
createdAt: string;
|
|
202
202
|
updatedAt: string;
|
|
203
|
-
|
|
204
|
-
role: string;
|
|
203
|
+
projectId: string;
|
|
205
204
|
tenantId: string;
|
|
205
|
+
metadata: MessageMetadata | null;
|
|
206
206
|
content: MessageContent;
|
|
207
|
-
projectId: string;
|
|
208
|
-
conversationId: string;
|
|
209
207
|
fromSubAgentId: string | null;
|
|
210
208
|
toSubAgentId: string | null;
|
|
211
209
|
fromExternalAgentId: string | null;
|
|
212
210
|
toExternalAgentId: string | null;
|
|
211
|
+
taskId: string | null;
|
|
212
|
+
a2aTaskId: string | null;
|
|
213
|
+
role: string;
|
|
214
|
+
conversationId: string;
|
|
213
215
|
fromTeamAgentId: string | null;
|
|
214
216
|
toTeamAgentId: string | null;
|
|
215
217
|
visibility: string;
|
|
216
218
|
messageType: string;
|
|
217
|
-
taskId: string | null;
|
|
218
219
|
parentMessageId: string | null;
|
|
219
|
-
a2aTaskId: string | null;
|
|
220
220
|
a2aSessionId: string | null;
|
|
221
221
|
}>;
|
|
222
222
|
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;
|
|
@@ -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,17 +10,17 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
10
10
|
id: string;
|
|
11
11
|
createdAt: string;
|
|
12
12
|
updatedAt: string;
|
|
13
|
+
agentId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
metadata: TaskMetadataConfig | null;
|
|
17
|
+
status: string;
|
|
18
|
+
subAgentId: 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
|
-
status: string;
|
|
20
|
-
tenantId: string;
|
|
21
|
-
agentId: string;
|
|
22
|
-
projectId: string;
|
|
23
|
-
subAgentId: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|