@inkeep/agents-core 0.0.0-dev-20260122102020 → 0.0.0-dev-20260122105802
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 +104 -104
- package/dist/auth/auth-validation-schemas.d.ts +146 -146
- package/dist/auth/auth.d.ts +22 -22
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +20 -20
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.js +1 -1
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +32 -32
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +27 -27
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +299 -299
- package/dist/db/runtime/runtime-schema.d.ts +181 -181
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/render-validation.js +19 -0
- package/dist/validation/schemas.d.ts +1257 -1257
- package/package.json +1 -1
|
@@ -8,15 +8,15 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
11
|
id: string;
|
|
14
|
-
agentId: string;
|
|
15
12
|
createdAt: string;
|
|
16
13
|
updatedAt: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
agentId: string;
|
|
17
|
+
relationType: string | null;
|
|
17
18
|
sourceSubAgentId: string;
|
|
18
19
|
targetSubAgentId: string | null;
|
|
19
|
-
relationType: string | null;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
@@ -43,28 +43,28 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
43
43
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
46
|
id: string;
|
|
49
|
-
agentId: string;
|
|
50
47
|
createdAt: string;
|
|
51
48
|
updatedAt: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
tenantId: string;
|
|
51
|
+
agentId: string;
|
|
52
|
+
relationType: string | null;
|
|
52
53
|
sourceSubAgentId: string;
|
|
53
54
|
targetSubAgentId: string | null;
|
|
54
|
-
relationType: string | null;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
tenantId: string;
|
|
60
|
-
projectId: string;
|
|
61
59
|
id: string;
|
|
62
|
-
agentId: string;
|
|
63
60
|
createdAt: string;
|
|
64
61
|
updatedAt: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
agentId: string;
|
|
65
|
+
relationType: string | null;
|
|
65
66
|
sourceSubAgentId: string;
|
|
66
67
|
targetSubAgentId: string | null;
|
|
67
|
-
relationType: string | null;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -125,15 +125,15 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
125
125
|
}[];
|
|
126
126
|
}>;
|
|
127
127
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
128
|
-
tenantId: string;
|
|
129
|
-
projectId: string;
|
|
130
128
|
id: string;
|
|
131
|
-
agentId: string;
|
|
132
129
|
createdAt: string;
|
|
133
130
|
updatedAt: string;
|
|
131
|
+
projectId: string;
|
|
132
|
+
tenantId: string;
|
|
133
|
+
agentId: string;
|
|
134
|
+
relationType: string | null;
|
|
134
135
|
sourceSubAgentId: string;
|
|
135
136
|
targetSubAgentId: string | null;
|
|
136
|
-
relationType: string | null;
|
|
137
137
|
}>;
|
|
138
138
|
/**
|
|
139
139
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -144,29 +144,29 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
144
144
|
targetSubAgentId?: string;
|
|
145
145
|
relationType: string;
|
|
146
146
|
}) => Promise<{
|
|
147
|
-
tenantId: string;
|
|
148
|
-
projectId: string;
|
|
149
147
|
id: string;
|
|
150
|
-
agentId: string;
|
|
151
148
|
createdAt: string;
|
|
152
149
|
updatedAt: string;
|
|
150
|
+
projectId: string;
|
|
151
|
+
tenantId: string;
|
|
152
|
+
agentId: string;
|
|
153
|
+
relationType: string | null;
|
|
153
154
|
sourceSubAgentId: string;
|
|
154
155
|
targetSubAgentId: string | null;
|
|
155
|
-
relationType: string | null;
|
|
156
156
|
} | undefined>;
|
|
157
157
|
/**
|
|
158
158
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
159
159
|
*/
|
|
160
160
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
161
|
-
tenantId: string;
|
|
162
|
-
projectId: string;
|
|
163
161
|
id: string;
|
|
164
|
-
agentId: string;
|
|
165
162
|
createdAt: string;
|
|
166
163
|
updatedAt: string;
|
|
164
|
+
projectId: string;
|
|
165
|
+
tenantId: string;
|
|
166
|
+
agentId: string;
|
|
167
|
+
relationType: string | null;
|
|
167
168
|
sourceSubAgentId: string;
|
|
168
169
|
targetSubAgentId: string | null;
|
|
169
|
-
relationType: string | null;
|
|
170
170
|
}>;
|
|
171
171
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
172
172
|
scopes: AgentScopeConfig;
|
|
@@ -203,18 +203,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
203
203
|
}> | null;
|
|
204
204
|
};
|
|
205
205
|
}) => Promise<{
|
|
206
|
-
tenantId: string;
|
|
207
|
-
projectId: string;
|
|
208
206
|
id: string;
|
|
209
|
-
agentId: string;
|
|
210
207
|
createdAt: string;
|
|
211
208
|
updatedAt: string;
|
|
209
|
+
projectId: string;
|
|
210
|
+
tenantId: string;
|
|
212
211
|
toolId: string;
|
|
212
|
+
agentId: string;
|
|
213
|
+
subAgentId: string;
|
|
213
214
|
headers: Record<string, string> | null;
|
|
214
215
|
toolPolicies: Record<string, {
|
|
215
216
|
needsApproval?: boolean;
|
|
216
217
|
}> | null;
|
|
217
|
-
subAgentId: string;
|
|
218
218
|
selectedTools: string[] | null;
|
|
219
219
|
}>;
|
|
220
220
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -247,18 +247,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
247
247
|
scopes: SubAgentScopeConfig;
|
|
248
248
|
relationId: string;
|
|
249
249
|
}) => Promise<{
|
|
250
|
-
tenantId: string;
|
|
251
|
-
projectId: string;
|
|
252
250
|
id: string;
|
|
253
|
-
agentId: string;
|
|
254
251
|
createdAt: string;
|
|
255
252
|
updatedAt: string;
|
|
253
|
+
projectId: string;
|
|
254
|
+
tenantId: string;
|
|
256
255
|
toolId: string;
|
|
256
|
+
agentId: string;
|
|
257
|
+
subAgentId: string;
|
|
257
258
|
headers: Record<string, string> | null;
|
|
258
259
|
toolPolicies: Record<string, {
|
|
259
260
|
needsApproval?: boolean;
|
|
260
261
|
}> | null;
|
|
261
|
-
subAgentId: string;
|
|
262
262
|
selectedTools: string[] | null;
|
|
263
263
|
} | undefined>;
|
|
264
264
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -8,14 +8,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
11
|
id: string;
|
|
14
|
-
agentId: string;
|
|
15
12
|
createdAt: string;
|
|
16
13
|
updatedAt: string;
|
|
17
|
-
|
|
14
|
+
projectId: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
agentId: string;
|
|
18
17
|
subAgentId: string;
|
|
18
|
+
headers: Record<string, string> | null;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -43,27 +43,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
43
43
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
46
|
id: string;
|
|
49
|
-
agentId: string;
|
|
50
47
|
createdAt: string;
|
|
51
48
|
updatedAt: string;
|
|
52
|
-
|
|
49
|
+
projectId: string;
|
|
50
|
+
tenantId: string;
|
|
51
|
+
agentId: string;
|
|
53
52
|
subAgentId: string;
|
|
53
|
+
headers: Record<string, string> | null;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
tenantId: string;
|
|
60
|
-
projectId: string;
|
|
61
59
|
id: string;
|
|
62
|
-
agentId: string;
|
|
63
60
|
createdAt: string;
|
|
64
61
|
updatedAt: string;
|
|
65
|
-
|
|
62
|
+
projectId: string;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
agentId: string;
|
|
66
65
|
subAgentId: string;
|
|
66
|
+
headers: Record<string, string> | null;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -209,14 +209,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
209
209
|
headers?: Record<string, string> | null;
|
|
210
210
|
};
|
|
211
211
|
}) => Promise<{
|
|
212
|
-
tenantId: string;
|
|
213
|
-
projectId: string;
|
|
214
212
|
id: string;
|
|
215
|
-
agentId: string;
|
|
216
213
|
createdAt: string;
|
|
217
214
|
updatedAt: string;
|
|
218
|
-
|
|
215
|
+
projectId: string;
|
|
216
|
+
tenantId: string;
|
|
217
|
+
agentId: string;
|
|
219
218
|
subAgentId: string;
|
|
219
|
+
headers: Record<string, string> | null;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -226,14 +226,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
226
226
|
scopes: SubAgentScopeConfig;
|
|
227
227
|
targetAgentId: string;
|
|
228
228
|
}) => Promise<{
|
|
229
|
-
tenantId: string;
|
|
230
|
-
projectId: string;
|
|
231
229
|
id: string;
|
|
232
|
-
agentId: string;
|
|
233
230
|
createdAt: string;
|
|
234
231
|
updatedAt: string;
|
|
235
|
-
|
|
232
|
+
projectId: string;
|
|
233
|
+
tenantId: string;
|
|
234
|
+
agentId: string;
|
|
236
235
|
subAgentId: string;
|
|
236
|
+
headers: Record<string, string> | null;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -247,14 +247,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
247
247
|
headers?: Record<string, string> | null;
|
|
248
248
|
};
|
|
249
249
|
}) => Promise<{
|
|
250
|
-
tenantId: string;
|
|
251
|
-
projectId: string;
|
|
252
250
|
id: string;
|
|
253
|
-
agentId: string;
|
|
254
251
|
createdAt: string;
|
|
255
252
|
updatedAt: string;
|
|
256
|
-
|
|
253
|
+
projectId: string;
|
|
254
|
+
tenantId: string;
|
|
255
|
+
agentId: string;
|
|
257
256
|
subAgentId: string;
|
|
257
|
+
headers: Record<string, string> | null;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -8,15 +8,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
11
|
id: string;
|
|
14
12
|
name: string;
|
|
15
13
|
description: string | null;
|
|
16
|
-
prompt: string | null;
|
|
17
|
-
agentId: string;
|
|
18
14
|
createdAt: string;
|
|
19
15
|
updatedAt: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
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;
|
|
35
|
+
agentId: string;
|
|
36
|
+
prompt: string | null;
|
|
37
37
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
tenantId: string;
|
|
43
|
-
projectId: string;
|
|
44
42
|
id: string;
|
|
45
43
|
name: string;
|
|
46
44
|
description: string | null;
|
|
47
|
-
prompt: string | null;
|
|
48
|
-
agentId: string;
|
|
49
45
|
createdAt: string;
|
|
50
46
|
updatedAt: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
tenantId: string;
|
|
51
49
|
models: {
|
|
52
50
|
base?: {
|
|
53
51
|
model?: string | undefined;
|
|
@@ -65,6 +63,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
65
63
|
stopWhen: {
|
|
66
64
|
stepCountIs?: number | undefined;
|
|
67
65
|
} | null;
|
|
66
|
+
agentId: string;
|
|
67
|
+
prompt: string | null;
|
|
68
68
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -108,15 +108,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
-
tenantId: string;
|
|
112
|
-
projectId: string;
|
|
113
111
|
id: string;
|
|
114
112
|
name: string;
|
|
115
113
|
description: string | null;
|
|
116
|
-
prompt: string | null;
|
|
117
|
-
agentId: string;
|
|
118
114
|
createdAt: string;
|
|
119
115
|
updatedAt: string;
|
|
116
|
+
projectId: string;
|
|
117
|
+
tenantId: string;
|
|
120
118
|
models: {
|
|
121
119
|
base?: {
|
|
122
120
|
model?: string | undefined;
|
|
@@ -134,6 +132,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
134
132
|
stopWhen: {
|
|
135
133
|
stepCountIs?: number | undefined;
|
|
136
134
|
} | null;
|
|
135
|
+
agentId: string;
|
|
136
|
+
prompt: string | null;
|
|
137
137
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -12,19 +12,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
12
12
|
scopes: ProjectScopeConfig;
|
|
13
13
|
toolId: string;
|
|
14
14
|
}) => Promise<{
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
id: string;
|
|
18
16
|
name: string;
|
|
19
17
|
description: string | null;
|
|
20
|
-
config: {
|
|
21
|
-
type: "mcp";
|
|
22
|
-
mcp: ToolMcpConfig;
|
|
23
|
-
};
|
|
24
18
|
credentialReferenceId: string | null;
|
|
25
19
|
createdAt: string;
|
|
26
20
|
updatedAt: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
tenantId: string;
|
|
27
23
|
headers: Record<string, string> | null;
|
|
24
|
+
config: {
|
|
25
|
+
type: "mcp";
|
|
26
|
+
mcp: ToolMcpConfig;
|
|
27
|
+
};
|
|
28
28
|
credentialScope: string;
|
|
29
29
|
imageUrl: string | null;
|
|
30
30
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -68,19 +68,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
68
68
|
};
|
|
69
69
|
}>;
|
|
70
70
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
71
|
-
tenantId: string;
|
|
72
|
-
projectId: string;
|
|
73
71
|
id: string;
|
|
74
72
|
name: string;
|
|
75
73
|
description: string | null;
|
|
76
|
-
config: {
|
|
77
|
-
type: "mcp";
|
|
78
|
-
mcp: ToolMcpConfig;
|
|
79
|
-
};
|
|
80
74
|
credentialReferenceId: string | null;
|
|
81
75
|
createdAt: string;
|
|
82
76
|
updatedAt: string;
|
|
77
|
+
projectId: string;
|
|
78
|
+
tenantId: string;
|
|
83
79
|
headers: Record<string, string> | null;
|
|
80
|
+
config: {
|
|
81
|
+
type: "mcp";
|
|
82
|
+
mcp: ToolMcpConfig;
|
|
83
|
+
};
|
|
84
84
|
credentialScope: string;
|
|
85
85
|
imageUrl: string | null;
|
|
86
86
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -123,18 +123,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
123
123
|
needsApproval?: boolean;
|
|
124
124
|
}> | null;
|
|
125
125
|
}) => Promise<{
|
|
126
|
-
tenantId: string;
|
|
127
|
-
projectId: string;
|
|
128
126
|
id: string;
|
|
129
|
-
agentId: string;
|
|
130
127
|
createdAt: string;
|
|
131
128
|
updatedAt: string;
|
|
129
|
+
projectId: string;
|
|
130
|
+
tenantId: string;
|
|
132
131
|
toolId: string;
|
|
132
|
+
agentId: string;
|
|
133
|
+
subAgentId: string;
|
|
133
134
|
headers: Record<string, string> | null;
|
|
134
135
|
toolPolicies: Record<string, {
|
|
135
136
|
needsApproval?: boolean;
|
|
136
137
|
}> | null;
|
|
137
|
-
subAgentId: string;
|
|
138
138
|
selectedTools: string[] | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -142,18 +142,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
142
142
|
subAgentId: string;
|
|
143
143
|
toolId: string;
|
|
144
144
|
}) => Promise<{
|
|
145
|
-
tenantId: string;
|
|
146
|
-
projectId: string;
|
|
147
145
|
id: string;
|
|
148
|
-
agentId: string;
|
|
149
146
|
createdAt: string;
|
|
150
147
|
updatedAt: string;
|
|
148
|
+
projectId: string;
|
|
149
|
+
tenantId: string;
|
|
151
150
|
toolId: string;
|
|
151
|
+
agentId: string;
|
|
152
|
+
subAgentId: string;
|
|
152
153
|
headers: Record<string, string> | null;
|
|
153
154
|
toolPolicies: Record<string, {
|
|
154
155
|
needsApproval?: boolean;
|
|
155
156
|
}> | null;
|
|
156
|
-
subAgentId: string;
|
|
157
157
|
selectedTools: string[] | null;
|
|
158
158
|
}>;
|
|
159
159
|
/**
|
|
@@ -170,18 +170,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
170
170
|
}> | null;
|
|
171
171
|
relationId?: string;
|
|
172
172
|
}) => Promise<{
|
|
173
|
-
tenantId: string;
|
|
174
|
-
projectId: string;
|
|
175
173
|
id: string;
|
|
176
|
-
agentId: string;
|
|
177
174
|
createdAt: string;
|
|
178
175
|
updatedAt: string;
|
|
176
|
+
projectId: string;
|
|
177
|
+
tenantId: string;
|
|
179
178
|
toolId: string;
|
|
179
|
+
agentId: string;
|
|
180
|
+
subAgentId: string;
|
|
180
181
|
headers: Record<string, string> | null;
|
|
181
182
|
toolPolicies: Record<string, {
|
|
182
183
|
needsApproval?: boolean;
|
|
183
184
|
}> | null;
|
|
184
|
-
subAgentId: string;
|
|
185
185
|
selectedTools: string[] | null;
|
|
186
186
|
}>;
|
|
187
187
|
/**
|
|
@@ -190,19 +190,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
190
190
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
191
191
|
data: ToolInsert;
|
|
192
192
|
}) => Promise<{
|
|
193
|
-
tenantId: string;
|
|
194
|
-
projectId: string;
|
|
195
193
|
id: string;
|
|
196
194
|
name: string;
|
|
197
195
|
description: string | null;
|
|
198
|
-
config: {
|
|
199
|
-
type: "mcp";
|
|
200
|
-
mcp: ToolMcpConfig;
|
|
201
|
-
};
|
|
202
196
|
credentialReferenceId: string | null;
|
|
203
197
|
createdAt: string;
|
|
204
198
|
updatedAt: string;
|
|
199
|
+
projectId: string;
|
|
200
|
+
tenantId: string;
|
|
205
201
|
headers: Record<string, string> | null;
|
|
202
|
+
config: {
|
|
203
|
+
type: "mcp";
|
|
204
|
+
mcp: ToolMcpConfig;
|
|
205
|
+
};
|
|
206
206
|
credentialScope: string;
|
|
207
207
|
imageUrl: string | null;
|
|
208
208
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
tenantId: string;
|
|
11
|
-
projectId: string;
|
|
12
10
|
id: string;
|
|
13
11
|
name: string | null;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
tenantId: string;
|
|
14
16
|
agentId: string;
|
|
17
|
+
expiresAt: string | null;
|
|
15
18
|
publicId: string;
|
|
16
19
|
keyHash: string;
|
|
17
20
|
keyPrefix: string;
|
|
18
21
|
lastUsedAt: string | null;
|
|
19
|
-
expiresAt: string | null;
|
|
20
|
-
createdAt: string;
|
|
21
|
-
updatedAt: string;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
|
-
tenantId: string;
|
|
25
|
-
projectId: string;
|
|
26
24
|
id: string;
|
|
27
25
|
name: string | null;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
tenantId: string;
|
|
28
30
|
agentId: string;
|
|
31
|
+
expiresAt: string | null;
|
|
29
32
|
publicId: string;
|
|
30
33
|
keyHash: string;
|
|
31
34
|
keyPrefix: string;
|
|
32
35
|
lastUsedAt: string | null;
|
|
33
|
-
expiresAt: string | null;
|
|
34
|
-
createdAt: string;
|
|
35
|
-
updatedAt: string;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
|
-
tenantId: string;
|
|
42
|
-
projectId: string;
|
|
43
41
|
id: string;
|
|
44
42
|
name: string | null;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
projectId: string;
|
|
46
|
+
tenantId: string;
|
|
45
47
|
agentId: string;
|
|
48
|
+
expiresAt: string | null;
|
|
46
49
|
publicId: string;
|
|
47
50
|
keyHash: string;
|
|
48
51
|
keyPrefix: string;
|
|
49
52
|
lastUsedAt: string | null;
|
|
50
|
-
expiresAt: string | null;
|
|
51
|
-
createdAt: string;
|
|
52
|
-
updatedAt: string;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
|
-
tenantId: string;
|
|
69
|
-
projectId: string;
|
|
70
68
|
id: string;
|
|
71
69
|
name: string | null;
|
|
70
|
+
createdAt: string;
|
|
71
|
+
updatedAt: string;
|
|
72
|
+
projectId: string;
|
|
73
|
+
tenantId: string;
|
|
72
74
|
agentId: string;
|
|
75
|
+
expiresAt: string | null;
|
|
73
76
|
publicId: string;
|
|
74
77
|
keyHash: string;
|
|
75
78
|
keyPrefix: string;
|
|
76
79
|
lastUsedAt: string | null;
|
|
77
|
-
expiresAt: string | null;
|
|
78
|
-
createdAt: string;
|
|
79
|
-
updatedAt: string;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|