@inkeep/agents-core 0.0.0-dev-20260326163133 → 0.0.0-dev-20260326201814
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 +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/data-access/index.d.ts +2 -1
- package/dist/data-access/index.js +2 -1
- package/dist/data-access/manage/agentFull.js +10 -5
- package/dist/data-access/manage/agents.d.ts +37 -31
- package/dist/data-access/manage/agents.js +2 -0
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- 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 +14 -14
- package/dist/data-access/manage/skills.d.ts +13 -13
- 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 +18 -18
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/data-access/runtime/workflowExecutions.d.ts +25 -0
- package/dist/data-access/runtime/workflowExecutions.js +32 -0
- package/dist/db/manage/manage-schema.d.ts +377 -357
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +496 -303
- package/dist/db/runtime/runtime-schema.js +16 -2
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/types/entities.d.ts +5 -2
- package/dist/types/index.d.ts +2 -2
- 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.d.ts +2020 -1861
- package/dist/validation/schemas.js +16 -3
- package/drizzle/manage/0013_gorgeous_umar.sql +1 -0
- package/drizzle/manage/meta/0013_snapshot.json +3704 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/drizzle/runtime/0026_graceful_scorpion.sql +15 -0
- package/drizzle/runtime/meta/{0025_snapshot.json → 0026_snapshot.json} +114 -1
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
tenantId: string;
|
|
14
|
-
|
|
15
|
-
agentId: string;
|
|
13
|
+
id: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
id: string;
|
|
48
47
|
tenantId: string;
|
|
49
|
-
|
|
50
|
-
agentId: string;
|
|
48
|
+
id: string;
|
|
51
49
|
createdAt: string;
|
|
52
50
|
updatedAt: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
60
|
tenantId: string;
|
|
62
|
-
|
|
63
|
-
agentId: string;
|
|
61
|
+
id: string;
|
|
64
62
|
createdAt: string;
|
|
65
63
|
updatedAt: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
-
id: string;
|
|
130
129
|
tenantId: string;
|
|
131
|
-
|
|
132
|
-
agentId: string;
|
|
130
|
+
id: string;
|
|
133
131
|
createdAt: string;
|
|
134
132
|
updatedAt: string;
|
|
133
|
+
projectId: string;
|
|
134
|
+
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
-
id: string;
|
|
149
148
|
tenantId: string;
|
|
150
|
-
|
|
151
|
-
agentId: string;
|
|
149
|
+
id: string;
|
|
152
150
|
createdAt: string;
|
|
153
151
|
updatedAt: string;
|
|
152
|
+
projectId: string;
|
|
153
|
+
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
|
-
id: string;
|
|
163
162
|
tenantId: string;
|
|
164
|
-
|
|
165
|
-
agentId: string;
|
|
163
|
+
id: string;
|
|
166
164
|
createdAt: string;
|
|
167
165
|
updatedAt: string;
|
|
166
|
+
projectId: string;
|
|
167
|
+
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
id: string;
|
|
208
207
|
tenantId: string;
|
|
209
|
-
|
|
210
|
-
agentId: string;
|
|
208
|
+
id: string;
|
|
211
209
|
createdAt: string;
|
|
212
210
|
updatedAt: string;
|
|
213
|
-
toolId: string;
|
|
214
211
|
headers: Record<string, string> | null;
|
|
212
|
+
projectId: string;
|
|
213
|
+
agentId: string;
|
|
214
|
+
toolId: string;
|
|
215
|
+
subAgentId: string;
|
|
216
|
+
selectedTools: string[] | null;
|
|
215
217
|
toolPolicies: Record<string, {
|
|
216
218
|
needsApproval?: boolean;
|
|
217
219
|
}> | null;
|
|
218
|
-
subAgentId: string;
|
|
219
|
-
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -248,19 +248,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
id: string;
|
|
252
251
|
tenantId: string;
|
|
253
|
-
|
|
254
|
-
agentId: string;
|
|
252
|
+
id: string;
|
|
255
253
|
createdAt: string;
|
|
256
254
|
updatedAt: string;
|
|
257
|
-
toolId: string;
|
|
258
255
|
headers: Record<string, string> | null;
|
|
256
|
+
projectId: string;
|
|
257
|
+
agentId: string;
|
|
258
|
+
toolId: string;
|
|
259
|
+
subAgentId: string;
|
|
260
|
+
selectedTools: string[] | null;
|
|
259
261
|
toolPolicies: Record<string, {
|
|
260
262
|
needsApproval?: boolean;
|
|
261
263
|
}> | null;
|
|
262
|
-
subAgentId: string;
|
|
263
|
-
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
tenantId: string;
|
|
14
|
-
|
|
15
|
-
agentId: string;
|
|
13
|
+
id: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
16
|
headers: Record<string, string> | null;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -44,26 +44,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
id: string;
|
|
48
47
|
tenantId: string;
|
|
49
|
-
|
|
50
|
-
agentId: string;
|
|
48
|
+
id: string;
|
|
51
49
|
createdAt: string;
|
|
52
50
|
updatedAt: string;
|
|
53
51
|
headers: Record<string, string> | null;
|
|
52
|
+
projectId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
60
|
tenantId: string;
|
|
62
|
-
|
|
63
|
-
agentId: string;
|
|
61
|
+
id: string;
|
|
64
62
|
createdAt: string;
|
|
65
63
|
updatedAt: string;
|
|
66
64
|
headers: Record<string, string> | null;
|
|
65
|
+
projectId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
210
|
headers?: Record<string, string> | null;
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
|
-
id: string;
|
|
214
213
|
tenantId: string;
|
|
215
|
-
|
|
216
|
-
agentId: string;
|
|
214
|
+
id: string;
|
|
217
215
|
createdAt: string;
|
|
218
216
|
updatedAt: string;
|
|
219
217
|
headers: Record<string, string> | null;
|
|
218
|
+
projectId: string;
|
|
219
|
+
agentId: string;
|
|
220
220
|
subAgentId: string;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
227
|
scopes: SubAgentScopeConfig;
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
|
-
id: string;
|
|
231
230
|
tenantId: string;
|
|
232
|
-
|
|
233
|
-
agentId: string;
|
|
231
|
+
id: string;
|
|
234
232
|
createdAt: string;
|
|
235
233
|
updatedAt: string;
|
|
236
234
|
headers: Record<string, string> | null;
|
|
235
|
+
projectId: string;
|
|
236
|
+
agentId: string;
|
|
237
237
|
subAgentId: string;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
248
|
headers?: Record<string, string> | null;
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
id: string;
|
|
252
251
|
tenantId: string;
|
|
253
|
-
|
|
254
|
-
agentId: string;
|
|
252
|
+
id: string;
|
|
255
253
|
createdAt: string;
|
|
256
254
|
updatedAt: string;
|
|
257
255
|
headers: Record<string, string> | null;
|
|
256
|
+
projectId: string;
|
|
257
|
+
agentId: string;
|
|
258
258
|
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
@@ -9,14 +9,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
12
13
|
id: string;
|
|
13
14
|
name: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
14
17
|
description: string | null;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
agentId: string;
|
|
18
|
-
prompt: string | null;
|
|
19
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
20
18
|
models: {
|
|
21
19
|
base?: {
|
|
22
20
|
model?: string | undefined;
|
|
@@ -34,20 +32,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
32
|
stopWhen: {
|
|
35
33
|
stepCountIs?: number | undefined;
|
|
36
34
|
} | null;
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
prompt: string | null;
|
|
36
|
+
projectId: string;
|
|
37
|
+
agentId: string;
|
|
38
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
|
+
tenantId: string;
|
|
43
44
|
id: string;
|
|
44
45
|
name: string;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
updatedAt: string;
|
|
45
48
|
description: string | null;
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
agentId: string;
|
|
49
|
-
prompt: string | null;
|
|
50
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
51
49
|
models: {
|
|
52
50
|
base?: {
|
|
53
51
|
model?: string | undefined;
|
|
@@ -65,8 +63,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
65
63
|
stopWhen: {
|
|
66
64
|
stepCountIs?: number | undefined;
|
|
67
65
|
} | null;
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
prompt: string | null;
|
|
67
|
+
projectId: string;
|
|
68
|
+
agentId: string;
|
|
69
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -109,14 +109,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
|
+
tenantId: string;
|
|
112
113
|
id: string;
|
|
113
114
|
name: string;
|
|
115
|
+
createdAt: string;
|
|
116
|
+
updatedAt: string;
|
|
114
117
|
description: string | null;
|
|
115
|
-
tenantId: string;
|
|
116
|
-
projectId: string;
|
|
117
|
-
agentId: string;
|
|
118
|
-
prompt: string | null;
|
|
119
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
120
118
|
models: {
|
|
121
119
|
base?: {
|
|
122
120
|
model?: string | undefined;
|
|
@@ -134,8 +132,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
134
132
|
stopWhen: {
|
|
135
133
|
stepCountIs?: number | undefined;
|
|
136
134
|
} | null;
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
prompt: string | null;
|
|
136
|
+
projectId: string;
|
|
137
|
+
agentId: string;
|
|
138
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -20,19 +20,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
+
tenantId: string;
|
|
23
24
|
id: string;
|
|
24
25
|
name: string;
|
|
25
|
-
description: string | null;
|
|
26
|
-
tenantId: string;
|
|
27
|
-
projectId: string;
|
|
28
26
|
createdAt: string;
|
|
29
27
|
updatedAt: string;
|
|
28
|
+
description: string | null;
|
|
30
29
|
headers: Record<string, string> | null;
|
|
30
|
+
projectId: string;
|
|
31
|
+
credentialReferenceId: string | null;
|
|
31
32
|
config: {
|
|
32
33
|
type: "mcp";
|
|
33
34
|
mcp: ToolMcpConfig;
|
|
34
35
|
};
|
|
35
|
-
credentialReferenceId: string | null;
|
|
36
36
|
credentialScope: string;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -78,19 +78,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
+
tenantId: string;
|
|
81
82
|
id: string;
|
|
82
83
|
name: string;
|
|
83
|
-
description: string | null;
|
|
84
|
-
tenantId: string;
|
|
85
|
-
projectId: string;
|
|
86
84
|
createdAt: string;
|
|
87
85
|
updatedAt: string;
|
|
86
|
+
description: string | null;
|
|
88
87
|
headers: Record<string, string> | null;
|
|
88
|
+
projectId: string;
|
|
89
|
+
credentialReferenceId: string | null;
|
|
89
90
|
config: {
|
|
90
91
|
type: "mcp";
|
|
91
92
|
mcp: ToolMcpConfig;
|
|
92
93
|
};
|
|
93
|
-
credentialReferenceId: string | null;
|
|
94
94
|
credentialScope: string;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
-
id: string;
|
|
139
138
|
tenantId: string;
|
|
140
|
-
|
|
141
|
-
agentId: string;
|
|
139
|
+
id: string;
|
|
142
140
|
createdAt: string;
|
|
143
141
|
updatedAt: string;
|
|
144
|
-
toolId: string;
|
|
145
142
|
headers: Record<string, string> | null;
|
|
143
|
+
projectId: string;
|
|
144
|
+
agentId: string;
|
|
145
|
+
toolId: string;
|
|
146
|
+
subAgentId: string;
|
|
147
|
+
selectedTools: string[] | null;
|
|
146
148
|
toolPolicies: Record<string, {
|
|
147
149
|
needsApproval?: boolean;
|
|
148
150
|
}> | null;
|
|
149
|
-
subAgentId: string;
|
|
150
|
-
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
-
id: string;
|
|
158
157
|
tenantId: string;
|
|
159
|
-
|
|
160
|
-
agentId: string;
|
|
158
|
+
id: string;
|
|
161
159
|
createdAt: string;
|
|
162
160
|
updatedAt: string;
|
|
163
|
-
toolId: string;
|
|
164
161
|
headers: Record<string, string> | null;
|
|
162
|
+
projectId: string;
|
|
163
|
+
agentId: string;
|
|
164
|
+
toolId: string;
|
|
165
|
+
subAgentId: string;
|
|
166
|
+
selectedTools: string[] | null;
|
|
165
167
|
toolPolicies: Record<string, {
|
|
166
168
|
needsApproval?: boolean;
|
|
167
169
|
}> | null;
|
|
168
|
-
subAgentId: string;
|
|
169
|
-
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
-
id: string;
|
|
186
185
|
tenantId: string;
|
|
187
|
-
|
|
188
|
-
agentId: string;
|
|
186
|
+
id: string;
|
|
189
187
|
createdAt: string;
|
|
190
188
|
updatedAt: string;
|
|
191
|
-
toolId: string;
|
|
192
189
|
headers: Record<string, string> | null;
|
|
190
|
+
projectId: string;
|
|
191
|
+
agentId: string;
|
|
192
|
+
toolId: string;
|
|
193
|
+
subAgentId: string;
|
|
194
|
+
selectedTools: string[] | null;
|
|
193
195
|
toolPolicies: Record<string, {
|
|
194
196
|
needsApproval?: boolean;
|
|
195
197
|
}> | null;
|
|
196
|
-
subAgentId: string;
|
|
197
|
-
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -202,19 +202,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
+
tenantId: string;
|
|
205
206
|
id: string;
|
|
206
207
|
name: string;
|
|
207
|
-
description: string | null;
|
|
208
|
-
tenantId: string;
|
|
209
|
-
projectId: string;
|
|
210
208
|
createdAt: string;
|
|
211
209
|
updatedAt: string;
|
|
210
|
+
description: string | null;
|
|
212
211
|
headers: Record<string, string> | null;
|
|
212
|
+
projectId: string;
|
|
213
|
+
credentialReferenceId: string | null;
|
|
213
214
|
config: {
|
|
214
215
|
type: "mcp";
|
|
215
216
|
mcp: ToolMcpConfig;
|
|
216
217
|
};
|
|
217
|
-
credentialReferenceId: string | null;
|
|
218
218
|
credentialScope: string;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -8,28 +8,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
11
12
|
id: string;
|
|
12
13
|
name: string | null;
|
|
13
|
-
tenantId: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
agentId: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
16
|
expiresAt: string | null;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
22
22
|
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
+
tenantId: string;
|
|
25
26
|
id: string;
|
|
26
27
|
name: string | null;
|
|
27
|
-
tenantId: string;
|
|
28
|
-
projectId: string;
|
|
29
|
-
agentId: string;
|
|
30
28
|
createdAt: string;
|
|
31
29
|
updatedAt: string;
|
|
32
30
|
expiresAt: string | null;
|
|
31
|
+
projectId: string;
|
|
32
|
+
agentId: string;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -39,14 +39,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
+
tenantId: string;
|
|
42
43
|
id: string;
|
|
43
44
|
name: string | null;
|
|
44
|
-
tenantId: string;
|
|
45
|
-
projectId: string;
|
|
46
|
-
agentId: string;
|
|
47
45
|
createdAt: string;
|
|
48
46
|
updatedAt: string;
|
|
49
47
|
expiresAt: string | null;
|
|
48
|
+
projectId: string;
|
|
49
|
+
agentId: string;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -66,14 +66,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
+
tenantId: string;
|
|
69
70
|
id: string;
|
|
70
71
|
name: string | null;
|
|
71
|
-
tenantId: string;
|
|
72
|
-
projectId: string;
|
|
73
|
-
agentId: string;
|
|
74
72
|
createdAt: string;
|
|
75
73
|
updatedAt: string;
|
|
76
74
|
expiresAt: string | null;
|
|
75
|
+
projectId: string;
|
|
76
|
+
agentId: string;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -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
|
+
tenantId: string | null;
|
|
9
10
|
id: string;
|
|
10
11
|
name: string;
|
|
11
|
-
description: string | null;
|
|
12
|
-
tenantId: string | null;
|
|
13
|
-
projectId: string | null;
|
|
14
|
-
prompt: string | null;
|
|
15
12
|
createdAt: string;
|
|
16
13
|
updatedAt: string;
|
|
14
|
+
description: string | null;
|
|
17
15
|
enabled: boolean;
|
|
16
|
+
prompt: string | null;
|
|
17
|
+
projectId: string | null;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
20
20
|
webClient: {
|
|
@@ -54,15 +54,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
54
54
|
}>;
|
|
55
55
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
56
56
|
type: AppType;
|
|
57
|
+
tenantId: string | null;
|
|
57
58
|
id: string;
|
|
58
59
|
name: string;
|
|
59
|
-
description: string | null;
|
|
60
|
-
tenantId: string | null;
|
|
61
|
-
projectId: string | null;
|
|
62
|
-
prompt: string | null;
|
|
63
60
|
createdAt: string;
|
|
64
61
|
updatedAt: string;
|
|
62
|
+
description: string | null;
|
|
65
63
|
enabled: boolean;
|
|
64
|
+
prompt: string | null;
|
|
65
|
+
projectId: string | null;
|
|
66
66
|
config: {
|
|
67
67
|
type: "web_client";
|
|
68
68
|
webClient: {
|
|
@@ -16,20 +16,20 @@ 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
|
-
|
|
22
|
-
|
|
23
|
-
title: string | null;
|
|
20
|
+
userId: string | null;
|
|
21
|
+
id: string;
|
|
24
22
|
createdAt: string;
|
|
25
23
|
updatedAt: string;
|
|
26
|
-
metadata: ConversationMetadata | null;
|
|
27
24
|
ref: {
|
|
28
25
|
type: "commit" | "tag" | "branch";
|
|
29
26
|
name: string;
|
|
30
27
|
hash: string;
|
|
31
28
|
} | null;
|
|
32
|
-
|
|
29
|
+
metadata: ConversationMetadata | null;
|
|
30
|
+
title: string | null;
|
|
31
|
+
projectId: string;
|
|
32
|
+
agentId: string | null;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
@@ -85,20 +85,20 @@ 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
|
-
|
|
91
|
-
|
|
92
|
-
title: string | null;
|
|
89
|
+
userId: string | null;
|
|
90
|
+
id: string;
|
|
93
91
|
createdAt: string;
|
|
94
92
|
updatedAt: string;
|
|
95
|
-
metadata: ConversationMetadata | null;
|
|
96
93
|
ref: {
|
|
97
94
|
type: "commit" | "tag" | "branch";
|
|
98
95
|
name: string;
|
|
99
96
|
hash: string;
|
|
100
97
|
} | null;
|
|
101
|
-
|
|
98
|
+
metadata: ConversationMetadata | null;
|
|
99
|
+
title: string | null;
|
|
100
|
+
projectId: string;
|
|
101
|
+
agentId: string | null;
|
|
102
102
|
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
@@ -121,20 +121,20 @@ 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
|
-
|
|
127
|
-
|
|
128
|
-
title: string | null;
|
|
125
|
+
userId: string | null;
|
|
126
|
+
id: string;
|
|
129
127
|
createdAt: string;
|
|
130
128
|
updatedAt: string;
|
|
131
|
-
metadata: ConversationMetadata | null;
|
|
132
129
|
ref: {
|
|
133
130
|
type: "commit" | "tag" | "branch";
|
|
134
131
|
name: string;
|
|
135
132
|
hash: string;
|
|
136
133
|
} | null;
|
|
137
|
-
|
|
134
|
+
metadata: ConversationMetadata | null;
|
|
135
|
+
title: string | null;
|
|
136
|
+
projectId: string;
|
|
137
|
+
agentId: string | null;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -153,20 +153,20 @@ 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
|
-
|
|
159
|
-
|
|
160
|
-
title: string | null;
|
|
157
|
+
userId: string | null;
|
|
158
|
+
id: string;
|
|
161
159
|
createdAt: string;
|
|
162
160
|
updatedAt: string;
|
|
163
|
-
metadata: ConversationMetadata | null;
|
|
164
161
|
ref: {
|
|
165
162
|
type: "commit" | "tag" | "branch";
|
|
166
163
|
name: string;
|
|
167
164
|
hash: string;
|
|
168
165
|
} | null;
|
|
169
|
-
|
|
166
|
+
metadata: ConversationMetadata | null;
|
|
167
|
+
title: string | null;
|
|
168
|
+
projectId: string;
|
|
169
|
+
agentId: string | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|