@inkeep/agents-core 0.0.0-dev-20260204182014 → 0.0.0-dev-20260204185956
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.d.ts +54 -54
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +4 -3
- package/dist/data-access/index.d.ts +1 -3
- package/dist/data-access/index.js +1 -3
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +380 -600
- package/dist/db/manage/manage-schema.js +2 -27
- package/dist/db/runtime/runtime-schema.d.ts +234 -1147
- package/dist/db/runtime/runtime-schema.js +2 -98
- package/dist/index.d.ts +5 -10
- package/dist/index.js +4 -9
- package/dist/types/entities.d.ts +2 -8
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.d.ts +1 -4
- package/dist/utils/index.js +1 -4
- package/dist/utils/trigger-auth.d.ts +1 -1
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas.d.ts +1352 -3912
- package/dist/validation/schemas.js +3 -65
- package/drizzle/manage/meta/_journal.json +0 -7
- package/drizzle/runtime/meta/_journal.json +0 -14
- package/package.json +1 -1
- package/dist/auth/create-test-users.d.ts +0 -1
- package/dist/auth/create-test-users.js +0 -102
- package/dist/data-access/manage/workAppConfigs.d.ts +0 -228
- package/dist/data-access/manage/workAppConfigs.js +0 -120
- package/dist/data-access/runtime/workAppSlack.d.ts +0 -45
- package/dist/data-access/runtime/workAppSlack.js +0 -154
- package/dist/utils/slack-link-token.d.ts +0 -60
- package/dist/utils/slack-link-token.js +0 -124
- package/dist/utils/slack-user-token.d.ts +0 -87
- package/dist/utils/slack-user-token.js +0 -156
- package/dist/utils/sse-parser.d.ts +0 -35
- package/dist/utils/sse-parser.js +0 -71
- package/drizzle/manage/0007_whole_skreet.sql +0 -17
- package/drizzle/manage/meta/0007_snapshot.json +0 -3265
- package/drizzle/runtime/0011_grey_energizer.sql +0 -131
- package/drizzle/runtime/0012_salty_zuras.sql +0 -6
- package/drizzle/runtime/meta/0011_snapshot.json +0 -3747
- package/drizzle/runtime/meta/0012_snapshot.json +0 -3747
|
@@ -9,10 +9,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
headersSchema: unknown;
|
|
13
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
14
12
|
createdAt: string;
|
|
15
13
|
updatedAt: string;
|
|
14
|
+
headersSchema: unknown;
|
|
15
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
16
16
|
agentId: string;
|
|
17
17
|
projectId: string;
|
|
18
18
|
tenantId: string;
|
|
@@ -21,10 +21,10 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
id: string;
|
|
24
|
-
headersSchema: unknown;
|
|
25
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
26
24
|
createdAt: string;
|
|
27
25
|
updatedAt: string;
|
|
26
|
+
headersSchema: unknown;
|
|
27
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
28
28
|
agentId: string;
|
|
29
29
|
projectId: string;
|
|
30
30
|
tenantId: string;
|
|
@@ -43,10 +43,10 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
43
43
|
}>;
|
|
44
44
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
45
45
|
id: string;
|
|
46
|
-
headersSchema: unknown;
|
|
47
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
48
46
|
createdAt: string;
|
|
49
47
|
updatedAt: string;
|
|
48
|
+
headersSchema: unknown;
|
|
49
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
50
50
|
agentId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: string;
|
|
@@ -83,10 +83,10 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
83
83
|
data: ContextConfigInsert;
|
|
84
84
|
}) => Promise<{
|
|
85
85
|
id: string;
|
|
86
|
-
headersSchema: unknown;
|
|
87
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
88
86
|
createdAt: string;
|
|
89
87
|
updatedAt: string;
|
|
88
|
+
headersSchema: unknown;
|
|
89
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
90
90
|
agentId: string;
|
|
91
91
|
projectId: string;
|
|
92
92
|
tenantId: string;
|
|
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
69
69
|
agentId: string;
|
|
70
70
|
projectId: string;
|
|
71
71
|
tenantId: string;
|
|
72
|
-
subAgentId: string;
|
|
73
72
|
dataComponentId: string;
|
|
73
|
+
subAgentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
76
76
|
* Remove association between data component and agent
|
|
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
111
111
|
agentId: string;
|
|
112
112
|
projectId: string;
|
|
113
113
|
tenantId: string;
|
|
114
|
-
subAgentId: string;
|
|
115
114
|
dataComponentId: string;
|
|
115
|
+
subAgentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
118
118
|
* Count data components for a tenant/project
|
|
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
id: string;
|
|
57
|
-
createdAt: string;
|
|
58
57
|
name: string;
|
|
58
|
+
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
|
+
description: string | null;
|
|
60
61
|
agentId: string;
|
|
61
62
|
projectId: string;
|
|
62
63
|
tenantId: string;
|
|
63
|
-
description: string | null;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -96,13 +96,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
id: string;
|
|
99
|
-
createdAt: string;
|
|
100
99
|
name: string;
|
|
100
|
+
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
|
+
description: string | null;
|
|
102
103
|
agentId: string;
|
|
103
104
|
projectId: string;
|
|
104
105
|
tenantId: string;
|
|
105
|
-
description: string | null;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -167,10 +167,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
167
167
|
agentId: string;
|
|
168
168
|
projectId: string;
|
|
169
169
|
tenantId: string;
|
|
170
|
+
subAgentId: string;
|
|
170
171
|
toolPolicies: Record<string, {
|
|
171
172
|
needsApproval?: boolean;
|
|
172
173
|
}> | null;
|
|
173
|
-
subAgentId: string;
|
|
174
174
|
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
@@ -232,10 +232,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
232
232
|
agentId: string;
|
|
233
233
|
projectId: string;
|
|
234
234
|
tenantId: string;
|
|
235
|
+
subAgentId: string;
|
|
235
236
|
toolPolicies: Record<string, {
|
|
236
237
|
needsApproval?: boolean;
|
|
237
238
|
}> | null;
|
|
238
|
-
subAgentId: string;
|
|
239
239
|
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|
|
@@ -11,12 +11,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
headers: Record<string, string> | null;
|
|
14
15
|
agentId: string;
|
|
15
16
|
projectId: string;
|
|
16
17
|
tenantId: string;
|
|
17
|
-
headers: Record<string, string> | null;
|
|
18
|
-
externalAgentId: string;
|
|
19
18
|
subAgentId: string;
|
|
19
|
+
externalAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: SubAgentScopeConfig;
|
|
@@ -46,12 +46,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
+
headers: Record<string, string> | null;
|
|
49
50
|
agentId: string;
|
|
50
51
|
projectId: string;
|
|
51
52
|
tenantId: string;
|
|
52
|
-
headers: Record<string, string> | null;
|
|
53
|
-
externalAgentId: string;
|
|
54
53
|
subAgentId: string;
|
|
54
|
+
externalAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
@@ -59,12 +59,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
+
headers: Record<string, string> | null;
|
|
62
63
|
agentId: string;
|
|
63
64
|
projectId: string;
|
|
64
65
|
tenantId: string;
|
|
65
|
-
headers: Record<string, string> | null;
|
|
66
|
-
externalAgentId: string;
|
|
67
66
|
subAgentId: string;
|
|
67
|
+
externalAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -182,12 +182,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
182
182
|
id: string;
|
|
183
183
|
createdAt: string;
|
|
184
184
|
updatedAt: string;
|
|
185
|
+
headers: Record<string, string> | null;
|
|
185
186
|
agentId: string;
|
|
186
187
|
projectId: string;
|
|
187
188
|
tenantId: string;
|
|
188
|
-
headers: Record<string, string> | null;
|
|
189
|
-
externalAgentId: string;
|
|
190
189
|
subAgentId: string;
|
|
190
|
+
externalAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
193
193
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -199,12 +199,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
199
199
|
id: string;
|
|
200
200
|
createdAt: string;
|
|
201
201
|
updatedAt: string;
|
|
202
|
+
headers: Record<string, string> | null;
|
|
202
203
|
agentId: string;
|
|
203
204
|
projectId: string;
|
|
204
205
|
tenantId: string;
|
|
205
|
-
headers: Record<string, string> | null;
|
|
206
|
-
externalAgentId: string;
|
|
207
206
|
subAgentId: string;
|
|
207
|
+
externalAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
209
209
|
/**
|
|
210
210
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -220,12 +220,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
220
220
|
id: string;
|
|
221
221
|
createdAt: string;
|
|
222
222
|
updatedAt: string;
|
|
223
|
+
headers: Record<string, string> | null;
|
|
223
224
|
agentId: string;
|
|
224
225
|
projectId: string;
|
|
225
226
|
tenantId: string;
|
|
226
|
-
headers: Record<string, string> | null;
|
|
227
|
-
externalAgentId: string;
|
|
228
227
|
subAgentId: string;
|
|
228
|
+
externalAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
231
231
|
scopes: SubAgentScopeConfig;
|
|
@@ -206,16 +206,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
+
headers: Record<string, string> | null;
|
|
209
210
|
agentId: string;
|
|
210
211
|
projectId: string;
|
|
211
212
|
tenantId: string;
|
|
212
|
-
headers: Record<string, string> | null;
|
|
213
213
|
toolId: string;
|
|
214
|
+
subAgentId: string;
|
|
215
|
+
selectedTools: string[] | null;
|
|
214
216
|
toolPolicies: Record<string, {
|
|
215
217
|
needsApproval?: boolean;
|
|
216
218
|
}> | null;
|
|
217
|
-
subAgentId: string;
|
|
218
|
-
selectedTools: string[] | null;
|
|
219
219
|
}>;
|
|
220
220
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
221
221
|
scopes: AgentScopeConfig;
|
|
@@ -250,16 +250,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
+
headers: Record<string, string> | null;
|
|
253
254
|
agentId: string;
|
|
254
255
|
projectId: string;
|
|
255
256
|
tenantId: string;
|
|
256
|
-
headers: Record<string, string> | null;
|
|
257
257
|
toolId: string;
|
|
258
|
+
subAgentId: string;
|
|
259
|
+
selectedTools: string[] | null;
|
|
258
260
|
toolPolicies: Record<string, {
|
|
259
261
|
needsApproval?: boolean;
|
|
260
262
|
}> | null;
|
|
261
|
-
subAgentId: string;
|
|
262
|
-
selectedTools: string[] | null;
|
|
263
263
|
} | undefined>;
|
|
264
264
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
265
265
|
scopes: SubAgentScopeConfig;
|
|
@@ -11,10 +11,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
headers: Record<string, string> | null;
|
|
14
15
|
agentId: string;
|
|
15
16
|
projectId: string;
|
|
16
17
|
tenantId: string;
|
|
17
|
-
headers: Record<string, string> | null;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
@@ -46,10 +46,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
+
headers: Record<string, string> | null;
|
|
49
50
|
agentId: string;
|
|
50
51
|
projectId: string;
|
|
51
52
|
tenantId: string;
|
|
52
|
-
headers: Record<string, string> | null;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
@@ -59,10 +59,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
+
headers: Record<string, string> | null;
|
|
62
63
|
agentId: string;
|
|
63
64
|
projectId: string;
|
|
64
65
|
tenantId: string;
|
|
65
|
-
headers: Record<string, string> | null;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
@@ -212,10 +212,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
212
212
|
id: string;
|
|
213
213
|
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
|
+
headers: Record<string, string> | null;
|
|
215
216
|
agentId: string;
|
|
216
217
|
projectId: string;
|
|
217
218
|
tenantId: string;
|
|
218
|
-
headers: Record<string, string> | null;
|
|
219
219
|
subAgentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
@@ -229,10 +229,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
+
headers: Record<string, string> | null;
|
|
232
233
|
agentId: string;
|
|
233
234
|
projectId: string;
|
|
234
235
|
tenantId: string;
|
|
235
|
-
headers: Record<string, string> | null;
|
|
236
236
|
subAgentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
@@ -250,10 +250,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
+
headers: Record<string, string> | null;
|
|
253
254
|
agentId: string;
|
|
254
255
|
projectId: string;
|
|
255
256
|
tenantId: string;
|
|
256
|
-
headers: Record<string, string> | null;
|
|
257
257
|
subAgentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
@@ -9,13 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
12
|
name: string;
|
|
13
|
+
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
description: string | null;
|
|
15
16
|
agentId: string;
|
|
16
17
|
projectId: string;
|
|
17
18
|
tenantId: string;
|
|
18
|
-
description: string | null;
|
|
19
19
|
models: {
|
|
20
20
|
base?: {
|
|
21
21
|
model?: string | undefined;
|
|
@@ -40,13 +40,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
|
-
createdAt: string;
|
|
44
43
|
name: string;
|
|
44
|
+
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
+
description: string | null;
|
|
46
47
|
agentId: string;
|
|
47
48
|
projectId: string;
|
|
48
49
|
tenantId: string;
|
|
49
|
-
description: string | null;
|
|
50
50
|
models: {
|
|
51
51
|
base?: {
|
|
52
52
|
model?: string | undefined;
|
|
@@ -109,13 +109,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
111
|
id: string;
|
|
112
|
-
createdAt: string;
|
|
113
112
|
name: string;
|
|
113
|
+
createdAt: string;
|
|
114
114
|
updatedAt: string;
|
|
115
|
+
description: string | null;
|
|
115
116
|
agentId: string;
|
|
116
117
|
projectId: string;
|
|
117
118
|
tenantId: string;
|
|
118
|
-
description: string | null;
|
|
119
119
|
models: {
|
|
120
120
|
base?: {
|
|
121
121
|
model?: string | undefined;
|
|
@@ -19,13 +19,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
19
19
|
toolId: string;
|
|
20
20
|
}) => Promise<{
|
|
21
21
|
id: string;
|
|
22
|
-
createdAt: string;
|
|
23
22
|
name: string;
|
|
23
|
+
createdAt: string;
|
|
24
24
|
updatedAt: string;
|
|
25
|
-
projectId: string;
|
|
26
|
-
tenantId: string;
|
|
27
25
|
description: string | null;
|
|
28
26
|
headers: Record<string, string> | null;
|
|
27
|
+
projectId: string;
|
|
28
|
+
tenantId: string;
|
|
29
29
|
config: {
|
|
30
30
|
type: "mcp";
|
|
31
31
|
mcp: ToolMcpConfig;
|
|
@@ -77,13 +77,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
77
77
|
}>;
|
|
78
78
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
79
79
|
id: string;
|
|
80
|
-
createdAt: string;
|
|
81
80
|
name: string;
|
|
81
|
+
createdAt: string;
|
|
82
82
|
updatedAt: string;
|
|
83
|
-
projectId: string;
|
|
84
|
-
tenantId: string;
|
|
85
83
|
description: string | null;
|
|
86
84
|
headers: Record<string, string> | null;
|
|
85
|
+
projectId: string;
|
|
86
|
+
tenantId: string;
|
|
87
87
|
config: {
|
|
88
88
|
type: "mcp";
|
|
89
89
|
mcp: ToolMcpConfig;
|
|
@@ -136,16 +136,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
id: string;
|
|
137
137
|
createdAt: string;
|
|
138
138
|
updatedAt: string;
|
|
139
|
+
headers: Record<string, string> | null;
|
|
139
140
|
agentId: string;
|
|
140
141
|
projectId: string;
|
|
141
142
|
tenantId: string;
|
|
142
|
-
headers: Record<string, string> | null;
|
|
143
143
|
toolId: string;
|
|
144
|
+
subAgentId: string;
|
|
145
|
+
selectedTools: string[] | null;
|
|
144
146
|
toolPolicies: Record<string, {
|
|
145
147
|
needsApproval?: boolean;
|
|
146
148
|
}> | null;
|
|
147
|
-
subAgentId: string;
|
|
148
|
-
selectedTools: string[] | null;
|
|
149
149
|
}>;
|
|
150
150
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
151
151
|
scopes: AgentScopeConfig;
|
|
@@ -155,16 +155,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
id: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
|
+
headers: Record<string, string> | null;
|
|
158
159
|
agentId: string;
|
|
159
160
|
projectId: string;
|
|
160
161
|
tenantId: string;
|
|
161
|
-
headers: Record<string, string> | null;
|
|
162
162
|
toolId: string;
|
|
163
|
+
subAgentId: string;
|
|
164
|
+
selectedTools: string[] | null;
|
|
163
165
|
toolPolicies: Record<string, {
|
|
164
166
|
needsApproval?: boolean;
|
|
165
167
|
}> | null;
|
|
166
|
-
subAgentId: string;
|
|
167
|
-
selectedTools: string[] | null;
|
|
168
168
|
}>;
|
|
169
169
|
/**
|
|
170
170
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -183,16 +183,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
id: string;
|
|
184
184
|
createdAt: string;
|
|
185
185
|
updatedAt: string;
|
|
186
|
+
headers: Record<string, string> | null;
|
|
186
187
|
agentId: string;
|
|
187
188
|
projectId: string;
|
|
188
189
|
tenantId: string;
|
|
189
|
-
headers: Record<string, string> | null;
|
|
190
190
|
toolId: string;
|
|
191
|
+
subAgentId: string;
|
|
192
|
+
selectedTools: string[] | null;
|
|
191
193
|
toolPolicies: Record<string, {
|
|
192
194
|
needsApproval?: boolean;
|
|
193
195
|
}> | null;
|
|
194
|
-
subAgentId: string;
|
|
195
|
-
selectedTools: string[] | null;
|
|
196
196
|
}>;
|
|
197
197
|
/**
|
|
198
198
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -201,13 +201,13 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
201
201
|
data: ToolInsert;
|
|
202
202
|
}) => Promise<{
|
|
203
203
|
id: string;
|
|
204
|
-
createdAt: string;
|
|
205
204
|
name: string;
|
|
205
|
+
createdAt: string;
|
|
206
206
|
updatedAt: string;
|
|
207
|
-
projectId: string;
|
|
208
|
-
tenantId: string;
|
|
209
207
|
description: string | null;
|
|
210
208
|
headers: Record<string, string> | null;
|
|
209
|
+
projectId: string;
|
|
210
|
+
tenantId: string;
|
|
211
211
|
config: {
|
|
212
212
|
type: "mcp";
|
|
213
213
|
mcp: ToolMcpConfig;
|
|
@@ -8,13 +8,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
10
|
id: string;
|
|
11
|
-
createdAt: string;
|
|
12
11
|
name: string | null;
|
|
12
|
+
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
expiresAt: string | null;
|
|
14
15
|
agentId: string;
|
|
15
16
|
projectId: string;
|
|
16
17
|
tenantId: string;
|
|
17
|
-
expiresAt: string | null;
|
|
18
18
|
publicId: string;
|
|
19
19
|
keyHash: string;
|
|
20
20
|
keyPrefix: string;
|
|
@@ -22,13 +22,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
-
createdAt: string;
|
|
26
25
|
name: string | null;
|
|
26
|
+
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
|
+
expiresAt: string | null;
|
|
28
29
|
agentId: string;
|
|
29
30
|
projectId: string;
|
|
30
31
|
tenantId: string;
|
|
31
|
-
expiresAt: string | null;
|
|
32
32
|
publicId: string;
|
|
33
33
|
keyHash: string;
|
|
34
34
|
keyPrefix: string;
|
|
@@ -39,13 +39,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
41
|
id: string;
|
|
42
|
-
createdAt: string;
|
|
43
42
|
name: string | null;
|
|
43
|
+
createdAt: string;
|
|
44
44
|
updatedAt: string;
|
|
45
|
+
expiresAt: string | null;
|
|
45
46
|
agentId: string;
|
|
46
47
|
projectId: string;
|
|
47
48
|
tenantId: string;
|
|
48
|
-
expiresAt: string | null;
|
|
49
49
|
publicId: string;
|
|
50
50
|
keyHash: string;
|
|
51
51
|
keyPrefix: string;
|
|
@@ -66,13 +66,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
-
createdAt: string;
|
|
70
69
|
name: string | null;
|
|
70
|
+
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
|
+
expiresAt: string | null;
|
|
72
73
|
agentId: string;
|
|
73
74
|
projectId: string;
|
|
74
75
|
tenantId: string;
|
|
75
|
-
expiresAt: string | null;
|
|
76
76
|
publicId: string;
|
|
77
77
|
keyHash: string;
|
|
78
78
|
keyPrefix: string;
|
|
@@ -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;
|
|
26
21
|
ref: {
|
|
27
22
|
type: "tag" | "commit" | "branch";
|
|
28
23
|
name: string;
|
|
29
24
|
hash: string;
|
|
30
25
|
} | null;
|
|
31
26
|
userId: string | null;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
28
|
+
agentId: string | null;
|
|
29
|
+
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
title: string | null;
|
|
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;
|
|
95
90
|
ref: {
|
|
96
91
|
type: "tag" | "commit" | "branch";
|
|
97
92
|
name: string;
|
|
98
93
|
hash: string;
|
|
99
94
|
} | null;
|
|
100
95
|
userId: string | null;
|
|
96
|
+
metadata: ConversationMetadata | null;
|
|
97
|
+
agentId: string | null;
|
|
98
|
+
projectId: string;
|
|
99
|
+
tenantId: string;
|
|
100
|
+
title: string | null;
|
|
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;
|
|
131
126
|
ref: {
|
|
132
127
|
type: "tag" | "commit" | "branch";
|
|
133
128
|
name: string;
|
|
134
129
|
hash: string;
|
|
135
130
|
} | null;
|
|
136
131
|
userId: string | null;
|
|
132
|
+
metadata: ConversationMetadata | null;
|
|
133
|
+
agentId: string | null;
|
|
134
|
+
projectId: string;
|
|
135
|
+
tenantId: string;
|
|
136
|
+
title: string | null;
|
|
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;
|
|
163
158
|
ref: {
|
|
164
159
|
type: "tag" | "commit" | "branch";
|
|
165
160
|
name: string;
|
|
166
161
|
hash: string;
|
|
167
162
|
} | null;
|
|
168
163
|
userId: string | null;
|
|
164
|
+
metadata: ConversationMetadata | null;
|
|
165
|
+
agentId: string | null;
|
|
166
|
+
projectId: string;
|
|
167
|
+
tenantId: string;
|
|
168
|
+
title: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|