@inkeep/agents-core 0.0.0-dev-20260223184719 → 0.0.0-dev-20260223201726
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 +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +57 -57
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +3 -3
- package/dist/data-access/manage/agentFull.d.ts +2 -1
- package/dist/data-access/manage/agents.d.ts +23 -22
- package/dist/data-access/manage/artifactComponents.d.ts +10 -9
- package/dist/data-access/manage/contextConfigs.d.ts +10 -9
- package/dist/data-access/manage/credentialReferences.d.ts +2 -1
- package/dist/data-access/manage/dataComponents.d.ts +6 -5
- package/dist/data-access/manage/evalConfig.d.ts +2 -1
- package/dist/data-access/manage/externalAgents.d.ts +2 -1
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/functions.d.ts +2 -2
- package/dist/data-access/manage/projectFull.d.ts +2 -1
- package/dist/data-access/manage/projects.d.ts +2 -1
- package/dist/data-access/manage/scheduledTriggers.d.ts +2 -2
- package/dist/data-access/manage/scheduledWorkflows.d.ts +2 -2
- package/dist/data-access/manage/scope-helpers.d.ts +15 -22
- package/dist/data-access/manage/scope-helpers.js +15 -12
- package/dist/data-access/manage/skills.d.ts +15 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +26 -25
- package/dist/data-access/manage/subAgentRelations.d.ts +22 -21
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +20 -19
- package/dist/data-access/manage/subAgents.d.ts +17 -16
- package/dist/data-access/manage/tools.d.ts +20 -19
- package/dist/data-access/manage/triggers.d.ts +3 -3
- package/dist/data-access/runtime/apiKeys.d.ts +18 -17
- package/dist/data-access/runtime/cascade-delete.d.ts +1 -1
- package/dist/data-access/runtime/contextCache.d.ts +2 -2
- package/dist/data-access/runtime/conversations.d.ts +33 -32
- package/dist/data-access/runtime/evalRuns.d.ts +2 -1
- package/dist/data-access/runtime/ledgerArtifacts.d.ts +1 -1
- package/dist/data-access/runtime/messages.d.ts +20 -19
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +2 -2
- package/dist/data-access/runtime/tasks.d.ts +9 -9
- package/dist/data-access/runtime/triggerInvocations.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +447 -447
- package/dist/db/manage/scope-definitions.d.ts +31 -0
- package/dist/db/manage/scope-definitions.js +31 -0
- package/dist/db/runtime/runtime-schema.d.ts +296 -296
- package/dist/dolt/branches-api.d.ts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/types/index.d.ts +2 -1
- package/dist/types/utility.d.ts +2 -11
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1824 -1824
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AgentScopeConfig,
|
|
1
|
+
import { AgentScopeConfig, SubAgentScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { ConversationHistoryConfig, PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
3
4
|
import "../../index.js";
|
|
4
5
|
import { SubAgentTeamAgentRelationInsert } from "../../types/entities.js";
|
|
@@ -9,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
10
|
relationId: string;
|
|
10
11
|
}) => Promise<{
|
|
11
12
|
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
13
|
tenantId: string;
|
|
15
14
|
projectId: string;
|
|
15
|
+
agentId: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
16
18
|
headers: Record<string, string> | null;
|
|
17
19
|
subAgentId: string;
|
|
18
|
-
agentId: string;
|
|
19
20
|
targetAgentId: string;
|
|
20
21
|
} | undefined>;
|
|
21
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,26 +45,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
44
45
|
scopes: SubAgentScopeConfig;
|
|
45
46
|
}) => Promise<{
|
|
46
47
|
id: string;
|
|
47
|
-
createdAt: string;
|
|
48
|
-
updatedAt: string;
|
|
49
48
|
tenantId: string;
|
|
50
49
|
projectId: string;
|
|
50
|
+
agentId: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
51
53
|
headers: Record<string, string> | null;
|
|
52
54
|
subAgentId: string;
|
|
53
|
-
agentId: string;
|
|
54
55
|
targetAgentId: string;
|
|
55
56
|
}[]>;
|
|
56
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
58
|
scopes: AgentScopeConfig;
|
|
58
59
|
}) => Promise<{
|
|
59
60
|
id: string;
|
|
60
|
-
createdAt: string;
|
|
61
|
-
updatedAt: string;
|
|
62
61
|
tenantId: string;
|
|
63
62
|
projectId: string;
|
|
63
|
+
agentId: string;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
64
66
|
headers: Record<string, string> | null;
|
|
65
67
|
subAgentId: string;
|
|
66
|
-
agentId: string;
|
|
67
68
|
targetAgentId: string;
|
|
68
69
|
}[]>;
|
|
69
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -210,13 +211,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
211
|
};
|
|
211
212
|
}) => Promise<{
|
|
212
213
|
id: string;
|
|
213
|
-
createdAt: string;
|
|
214
|
-
updatedAt: string;
|
|
215
214
|
tenantId: string;
|
|
216
215
|
projectId: string;
|
|
216
|
+
agentId: string;
|
|
217
|
+
createdAt: string;
|
|
218
|
+
updatedAt: string;
|
|
217
219
|
headers: Record<string, string> | null;
|
|
218
220
|
subAgentId: string;
|
|
219
|
-
agentId: string;
|
|
220
221
|
targetAgentId: string;
|
|
221
222
|
}>;
|
|
222
223
|
/**
|
|
@@ -227,13 +228,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
228
|
targetAgentId: string;
|
|
228
229
|
}) => Promise<{
|
|
229
230
|
id: string;
|
|
230
|
-
createdAt: string;
|
|
231
|
-
updatedAt: string;
|
|
232
231
|
tenantId: string;
|
|
233
232
|
projectId: string;
|
|
233
|
+
agentId: string;
|
|
234
|
+
createdAt: string;
|
|
235
|
+
updatedAt: string;
|
|
234
236
|
headers: Record<string, string> | null;
|
|
235
237
|
subAgentId: string;
|
|
236
|
-
agentId: string;
|
|
237
238
|
targetAgentId: string;
|
|
238
239
|
} | undefined>;
|
|
239
240
|
/**
|
|
@@ -248,13 +249,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
249
|
};
|
|
249
250
|
}) => Promise<{
|
|
250
251
|
id: string;
|
|
251
|
-
createdAt: string;
|
|
252
|
-
updatedAt: string;
|
|
253
252
|
tenantId: string;
|
|
254
253
|
projectId: string;
|
|
254
|
+
agentId: string;
|
|
255
|
+
createdAt: string;
|
|
256
|
+
updatedAt: string;
|
|
255
257
|
headers: Record<string, string> | null;
|
|
256
258
|
subAgentId: string;
|
|
257
|
-
agentId: string;
|
|
258
259
|
targetAgentId: string;
|
|
259
260
|
}>;
|
|
260
261
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AgentScopeConfig
|
|
1
|
+
import { AgentScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { ConversationHistoryConfig, PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
3
4
|
import "../../index.js";
|
|
4
5
|
import { SubAgentInsert, SubAgentSelect, SubAgentUpdate } from "../../types/entities.js";
|
|
@@ -10,11 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
11
|
}) => Promise<{
|
|
11
12
|
id: string;
|
|
12
13
|
name: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
14
|
description: string | null;
|
|
16
15
|
tenantId: string;
|
|
17
16
|
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
|
+
prompt: string | null;
|
|
19
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
18
20
|
models: {
|
|
19
21
|
base?: {
|
|
20
22
|
model?: string | undefined;
|
|
@@ -32,20 +34,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
32
34
|
stopWhen: {
|
|
33
35
|
stepCountIs?: number | undefined;
|
|
34
36
|
} | null;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
agentId: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
38
39
|
} | undefined>;
|
|
39
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
41
|
scopes: AgentScopeConfig;
|
|
41
42
|
}) => Promise<{
|
|
42
43
|
id: string;
|
|
43
44
|
name: string;
|
|
44
|
-
createdAt: string;
|
|
45
|
-
updatedAt: string;
|
|
46
45
|
description: string | null;
|
|
47
46
|
tenantId: string;
|
|
48
47
|
projectId: string;
|
|
48
|
+
agentId: string;
|
|
49
|
+
prompt: string | null;
|
|
50
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
49
51
|
models: {
|
|
50
52
|
base?: {
|
|
51
53
|
model?: string | undefined;
|
|
@@ -63,9 +65,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
65
|
stopWhen: {
|
|
64
66
|
stepCountIs?: number | undefined;
|
|
65
67
|
} | null;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
agentId: string;
|
|
68
|
+
createdAt: string;
|
|
69
|
+
updatedAt: string;
|
|
69
70
|
}[]>;
|
|
70
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
72
|
scopes: AgentScopeConfig;
|
|
@@ -110,11 +111,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
110
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
112
|
id: string;
|
|
112
113
|
name: string;
|
|
113
|
-
createdAt: string;
|
|
114
|
-
updatedAt: string;
|
|
115
114
|
description: string | null;
|
|
116
115
|
tenantId: string;
|
|
117
116
|
projectId: string;
|
|
117
|
+
agentId: string;
|
|
118
|
+
prompt: string | null;
|
|
119
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
118
120
|
models: {
|
|
119
121
|
base?: {
|
|
120
122
|
model?: string | undefined;
|
|
@@ -132,9 +134,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
132
134
|
stopWhen: {
|
|
133
135
|
stepCountIs?: number | undefined;
|
|
134
136
|
} | null;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
agentId: string;
|
|
137
|
+
createdAt: string;
|
|
138
|
+
updatedAt: string;
|
|
138
139
|
}>;
|
|
139
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
140
141
|
scopes: AgentScopeConfig;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AgentScopeConfig,
|
|
1
|
+
import { AgentScopeConfig, ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { PaginationConfig, ToolMcpConfig, ToolServerCapabilities } from "../../types/utility.js";
|
|
2
3
|
import "../../types/index.js";
|
|
3
4
|
import { CredentialStoreRegistry } from "../../credential-stores/CredentialStoreRegistry.js";
|
|
4
5
|
import "../../credential-stores/index.js";
|
|
@@ -20,11 +21,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
21
|
}) => Promise<{
|
|
21
22
|
id: string;
|
|
22
23
|
name: string;
|
|
23
|
-
createdAt: string;
|
|
24
|
-
updatedAt: string;
|
|
25
24
|
description: string | null;
|
|
26
25
|
tenantId: string;
|
|
27
26
|
projectId: string;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
updatedAt: string;
|
|
28
29
|
headers: Record<string, string> | null;
|
|
29
30
|
config: {
|
|
30
31
|
type: "mcp";
|
|
@@ -78,11 +79,11 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
79
80
|
id: string;
|
|
80
81
|
name: string;
|
|
81
|
-
createdAt: string;
|
|
82
|
-
updatedAt: string;
|
|
83
82
|
description: string | null;
|
|
84
83
|
tenantId: string;
|
|
85
84
|
projectId: string;
|
|
85
|
+
createdAt: string;
|
|
86
|
+
updatedAt: string;
|
|
86
87
|
headers: Record<string, string> | null;
|
|
87
88
|
config: {
|
|
88
89
|
type: "mcp";
|
|
@@ -134,17 +135,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
135
|
}> | null;
|
|
135
136
|
}) => Promise<{
|
|
136
137
|
id: string;
|
|
137
|
-
createdAt: string;
|
|
138
|
-
updatedAt: string;
|
|
139
138
|
tenantId: string;
|
|
140
139
|
projectId: string;
|
|
141
|
-
headers: Record<string, string> | null;
|
|
142
|
-
subAgentId: string;
|
|
143
140
|
agentId: string;
|
|
141
|
+
createdAt: string;
|
|
142
|
+
updatedAt: string;
|
|
144
143
|
toolId: string;
|
|
144
|
+
headers: Record<string, string> | null;
|
|
145
145
|
toolPolicies: Record<string, {
|
|
146
146
|
needsApproval?: boolean;
|
|
147
147
|
}> | null;
|
|
148
|
+
subAgentId: string;
|
|
148
149
|
selectedTools: string[] | null;
|
|
149
150
|
}>;
|
|
150
151
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -153,17 +154,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
153
154
|
toolId: string;
|
|
154
155
|
}) => Promise<{
|
|
155
156
|
id: string;
|
|
156
|
-
createdAt: string;
|
|
157
|
-
updatedAt: string;
|
|
158
157
|
tenantId: string;
|
|
159
158
|
projectId: string;
|
|
160
|
-
headers: Record<string, string> | null;
|
|
161
|
-
subAgentId: string;
|
|
162
159
|
agentId: string;
|
|
160
|
+
createdAt: string;
|
|
161
|
+
updatedAt: string;
|
|
163
162
|
toolId: string;
|
|
163
|
+
headers: Record<string, string> | null;
|
|
164
164
|
toolPolicies: Record<string, {
|
|
165
165
|
needsApproval?: boolean;
|
|
166
166
|
}> | null;
|
|
167
|
+
subAgentId: string;
|
|
167
168
|
selectedTools: string[] | null;
|
|
168
169
|
}>;
|
|
169
170
|
/**
|
|
@@ -181,17 +182,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
181
182
|
relationId?: string;
|
|
182
183
|
}) => Promise<{
|
|
183
184
|
id: string;
|
|
184
|
-
createdAt: string;
|
|
185
|
-
updatedAt: string;
|
|
186
185
|
tenantId: string;
|
|
187
186
|
projectId: string;
|
|
188
|
-
headers: Record<string, string> | null;
|
|
189
|
-
subAgentId: string;
|
|
190
187
|
agentId: string;
|
|
188
|
+
createdAt: string;
|
|
189
|
+
updatedAt: string;
|
|
191
190
|
toolId: string;
|
|
191
|
+
headers: Record<string, string> | null;
|
|
192
192
|
toolPolicies: Record<string, {
|
|
193
193
|
needsApproval?: boolean;
|
|
194
194
|
}> | null;
|
|
195
|
+
subAgentId: string;
|
|
195
196
|
selectedTools: string[] | null;
|
|
196
197
|
}>;
|
|
197
198
|
/**
|
|
@@ -202,11 +203,11 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
202
203
|
}) => Promise<{
|
|
203
204
|
id: string;
|
|
204
205
|
name: string;
|
|
205
|
-
createdAt: string;
|
|
206
|
-
updatedAt: string;
|
|
207
206
|
description: string | null;
|
|
208
207
|
tenantId: string;
|
|
209
208
|
projectId: string;
|
|
209
|
+
createdAt: string;
|
|
210
|
+
updatedAt: string;
|
|
210
211
|
headers: Record<string, string> | null;
|
|
211
212
|
config: {
|
|
212
213
|
type: "mcp";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AgentScopeConfig
|
|
1
|
+
import { AgentScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
3
4
|
import { TriggerInsert, TriggerSelect, TriggerUpdate } from "../../types/entities.js";
|
|
4
5
|
|
|
5
6
|
//#region src/data-access/manage/triggers.d.ts
|
|
6
|
-
|
|
7
7
|
/**
|
|
8
8
|
* Get a trigger by ID (agent-scoped)
|
|
9
9
|
*/
|
|
@@ -46,7 +46,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { ApiKeyCreateResult, CreateApiKeyParams, PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
3
4
|
import { ApiKeyInsert, ApiKeySelect, ApiKeyUpdate } from "../../types/entities.js";
|
|
4
5
|
|
|
@@ -9,30 +10,30 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
10
|
}) => Promise<{
|
|
10
11
|
id: string;
|
|
11
12
|
name: string | null;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
expiresAt: string | null;
|
|
15
13
|
tenantId: string;
|
|
16
14
|
projectId: string;
|
|
17
15
|
agentId: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
expiresAt: string | null;
|
|
19
|
+
lastUsedAt: string | null;
|
|
18
20
|
publicId: string;
|
|
19
21
|
keyHash: string;
|
|
20
22
|
keyPrefix: string;
|
|
21
|
-
lastUsedAt: string | null;
|
|
22
23
|
} | undefined>;
|
|
23
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
25
|
id: string;
|
|
25
26
|
name: string | null;
|
|
26
|
-
createdAt: string;
|
|
27
|
-
updatedAt: string;
|
|
28
|
-
expiresAt: string | null;
|
|
29
27
|
tenantId: string;
|
|
30
28
|
projectId: string;
|
|
31
29
|
agentId: string;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
expiresAt: string | null;
|
|
33
|
+
lastUsedAt: string | null;
|
|
32
34
|
publicId: string;
|
|
33
35
|
keyHash: string;
|
|
34
36
|
keyPrefix: string;
|
|
35
|
-
lastUsedAt: string | null;
|
|
36
37
|
} | undefined>;
|
|
37
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
39
|
scopes: ProjectScopeConfig;
|
|
@@ -40,16 +41,16 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
40
41
|
}) => Promise<{
|
|
41
42
|
id: string;
|
|
42
43
|
name: string | null;
|
|
43
|
-
createdAt: string;
|
|
44
|
-
updatedAt: string;
|
|
45
|
-
expiresAt: string | null;
|
|
46
44
|
tenantId: string;
|
|
47
45
|
projectId: string;
|
|
48
46
|
agentId: string;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
expiresAt: string | null;
|
|
50
|
+
lastUsedAt: string | null;
|
|
49
51
|
publicId: string;
|
|
50
52
|
keyHash: string;
|
|
51
53
|
keyPrefix: string;
|
|
52
|
-
lastUsedAt: string | null;
|
|
53
54
|
}[]>;
|
|
54
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
55
56
|
scopes: ProjectScopeConfig;
|
|
@@ -67,16 +68,16 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
67
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
69
|
id: string;
|
|
69
70
|
name: string | null;
|
|
70
|
-
createdAt: string;
|
|
71
|
-
updatedAt: string;
|
|
72
|
-
expiresAt: string | null;
|
|
73
71
|
tenantId: string;
|
|
74
72
|
projectId: string;
|
|
75
73
|
agentId: string;
|
|
74
|
+
createdAt: string;
|
|
75
|
+
updatedAt: string;
|
|
76
|
+
expiresAt: string | null;
|
|
77
|
+
lastUsedAt: string | null;
|
|
76
78
|
publicId: string;
|
|
77
79
|
keyHash: string;
|
|
78
80
|
keyPrefix: string;
|
|
79
|
-
lastUsedAt: string | null;
|
|
80
81
|
}>;
|
|
81
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
82
83
|
scopes: ProjectScopeConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentScopeConfig, ProjectScopeConfig } from "../../
|
|
1
|
+
import { AgentScopeConfig, ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
4
4
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ProjectScopeConfig } from "../../
|
|
1
|
+
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import "../../types/utility.js";
|
|
2
3
|
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
3
4
|
import { ContextCacheInsert, ContextCacheSelect } from "../../types/entities.js";
|
|
4
5
|
|
|
5
6
|
//#region src/data-access/runtime/contextCache.d.ts
|
|
6
|
-
|
|
7
7
|
/**
|
|
8
8
|
* Get cached context data for a conversation with optional request hash validation
|
|
9
9
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ResolvedRef } from "../../validation/dolt-schemas.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
3
|
+
import { ConversationHistoryConfig, ConversationMetadata, PaginationConfig } from "../../types/utility.js";
|
|
3
4
|
import "../../types/index.js";
|
|
4
5
|
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
5
6
|
import "../../index.js";
|
|
@@ -16,19 +17,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
17
|
}>;
|
|
17
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
19
|
id: string;
|
|
20
|
+
tenantId: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
agentId: string | null;
|
|
23
|
+
title: string | null;
|
|
19
24
|
createdAt: string;
|
|
20
25
|
updatedAt: string;
|
|
26
|
+
metadata: ConversationMetadata | null;
|
|
27
|
+
userId: string | null;
|
|
21
28
|
ref: {
|
|
22
|
-
type: "
|
|
29
|
+
type: "commit" | "tag" | "branch";
|
|
23
30
|
name: string;
|
|
24
31
|
hash: string;
|
|
25
32
|
} | null;
|
|
26
|
-
userId: string | null;
|
|
27
|
-
metadata: ConversationMetadata | null;
|
|
28
|
-
title: string | null;
|
|
29
|
-
tenantId: string;
|
|
30
|
-
projectId: string;
|
|
31
|
-
agentId: string | null;
|
|
32
33
|
activeSubAgentId: string;
|
|
33
34
|
lastContextResolution: string | null;
|
|
34
35
|
}>;
|
|
@@ -43,7 +44,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
43
44
|
agentId: string | null;
|
|
44
45
|
activeSubAgentId: string;
|
|
45
46
|
ref: {
|
|
46
|
-
type: "
|
|
47
|
+
type: "commit" | "tag" | "branch";
|
|
47
48
|
name: string;
|
|
48
49
|
hash: string;
|
|
49
50
|
} | null;
|
|
@@ -69,7 +70,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
|
|
|
69
70
|
agentId: string | null;
|
|
70
71
|
activeSubAgentId: string;
|
|
71
72
|
ref: {
|
|
72
|
-
type: "
|
|
73
|
+
type: "commit" | "tag" | "branch";
|
|
73
74
|
name: string;
|
|
74
75
|
hash: string;
|
|
75
76
|
} | null;
|
|
@@ -85,19 +86,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
86
|
conversationId: string;
|
|
86
87
|
}) => Promise<{
|
|
87
88
|
id: string;
|
|
89
|
+
tenantId: string;
|
|
90
|
+
projectId: string;
|
|
91
|
+
agentId: string | null;
|
|
92
|
+
title: string | null;
|
|
88
93
|
createdAt: string;
|
|
89
94
|
updatedAt: string;
|
|
95
|
+
metadata: ConversationMetadata | null;
|
|
96
|
+
userId: string | null;
|
|
90
97
|
ref: {
|
|
91
|
-
type: "
|
|
98
|
+
type: "commit" | "tag" | "branch";
|
|
92
99
|
name: string;
|
|
93
100
|
hash: string;
|
|
94
101
|
} | null;
|
|
95
|
-
userId: string | null;
|
|
96
|
-
metadata: ConversationMetadata | null;
|
|
97
|
-
title: string | null;
|
|
98
|
-
tenantId: string;
|
|
99
|
-
projectId: string;
|
|
100
|
-
agentId: string | null;
|
|
101
102
|
activeSubAgentId: string;
|
|
102
103
|
lastContextResolution: string | null;
|
|
103
104
|
} | undefined>;
|
|
@@ -107,7 +108,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
107
108
|
tenantId: string;
|
|
108
109
|
id: string;
|
|
109
110
|
ref: {
|
|
110
|
-
type: "
|
|
111
|
+
type: "commit" | "tag" | "branch";
|
|
111
112
|
name: string;
|
|
112
113
|
hash: string;
|
|
113
114
|
};
|
|
@@ -121,19 +122,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
122
|
contextConfigId?: string | undefined;
|
|
122
123
|
} | {
|
|
123
124
|
id: string;
|
|
125
|
+
tenantId: string;
|
|
126
|
+
projectId: string;
|
|
127
|
+
agentId: string | null;
|
|
128
|
+
title: string | null;
|
|
124
129
|
createdAt: string;
|
|
125
130
|
updatedAt: string;
|
|
131
|
+
metadata: ConversationMetadata | null;
|
|
132
|
+
userId: string | null;
|
|
126
133
|
ref: {
|
|
127
|
-
type: "
|
|
134
|
+
type: "commit" | "tag" | "branch";
|
|
128
135
|
name: string;
|
|
129
136
|
hash: string;
|
|
130
137
|
} | null;
|
|
131
|
-
userId: string | null;
|
|
132
|
-
metadata: ConversationMetadata | null;
|
|
133
|
-
title: string | null;
|
|
134
|
-
tenantId: string;
|
|
135
|
-
projectId: string;
|
|
136
|
-
agentId: string | null;
|
|
137
138
|
activeSubAgentId: string;
|
|
138
139
|
lastContextResolution: string | null;
|
|
139
140
|
}>;
|
|
@@ -153,19 +154,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
154
|
conversationId: string;
|
|
154
155
|
}) => Promise<{
|
|
155
156
|
id: string;
|
|
157
|
+
tenantId: string;
|
|
158
|
+
projectId: string;
|
|
159
|
+
agentId: string | null;
|
|
160
|
+
title: string | null;
|
|
156
161
|
createdAt: string;
|
|
157
162
|
updatedAt: string;
|
|
163
|
+
metadata: ConversationMetadata | null;
|
|
164
|
+
userId: string | null;
|
|
158
165
|
ref: {
|
|
159
|
-
type: "
|
|
166
|
+
type: "commit" | "tag" | "branch";
|
|
160
167
|
name: string;
|
|
161
168
|
hash: string;
|
|
162
169
|
} | null;
|
|
163
|
-
userId: string | null;
|
|
164
|
-
metadata: ConversationMetadata | null;
|
|
165
|
-
title: string | null;
|
|
166
|
-
tenantId: string;
|
|
167
|
-
projectId: string;
|
|
168
|
-
agentId: string | null;
|
|
169
170
|
activeSubAgentId: string;
|
|
170
171
|
lastContextResolution: string | null;
|
|
171
172
|
} | undefined>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { EvaluationJobFilterCriteria, Filter } from "../../types/utility.js";
|
|
2
3
|
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
3
4
|
import { ConversationSelect, DatasetRunConversationRelationInsert, DatasetRunConversationRelationSelect, DatasetRunInsert, DatasetRunSelect, EvaluationResultInsert, EvaluationResultSelect, EvaluationResultUpdate, EvaluationRunInsert, EvaluationRunSelect, EvaluationRunUpdate } from "../../types/entities.js";
|
|
4
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Artifact } from "../../types/a2a.js";
|
|
2
|
-
import { ProjectScopeConfig } from "../../
|
|
2
|
+
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
3
3
|
import "../../types/index.js";
|
|
4
4
|
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
5
5
|
import { LedgerArtifactSelect } from "../../types/entities.js";
|