@inkeep/agents-core 0.0.0-dev-20260109041402 → 0.0.0-dev-20260112224755
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 +39 -39
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/data-access/agents.d.ts +32 -32
- package/dist/data-access/apiKeys.d.ts +12 -12
- package/dist/data-access/artifactComponents.d.ts +6 -6
- package/dist/data-access/contextConfigs.d.ts +8 -8
- package/dist/data-access/conversations.d.ts +12 -12
- package/dist/data-access/dataComponents.d.ts +4 -4
- package/dist/data-access/functionTools.d.ts +4 -4
- package/dist/data-access/messages.d.ts +9 -9
- package/dist/data-access/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/subAgentRelations.d.ts +20 -20
- package/dist/data-access/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/subAgents.d.ts +12 -12
- package/dist/data-access/tasks.d.ts +3 -3
- package/dist/data-access/tools.d.ts +21 -21
- package/dist/db/schema.d.ts +405 -405
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +818 -818
- package/package.json +1 -1
|
@@ -17,11 +17,11 @@ declare const createConversation: (db: DatabaseClient) => (params: ConversationI
|
|
|
17
17
|
id: string;
|
|
18
18
|
createdAt: string;
|
|
19
19
|
updatedAt: string;
|
|
20
|
-
|
|
21
|
-
tenantId: string;
|
|
20
|
+
userId: string | null;
|
|
22
21
|
metadata: ConversationMetadata | null;
|
|
23
22
|
projectId: string;
|
|
24
|
-
|
|
23
|
+
tenantId: string;
|
|
24
|
+
title: string | null;
|
|
25
25
|
activeSubAgentId: string;
|
|
26
26
|
lastContextResolution: string | null;
|
|
27
27
|
}>;
|
|
@@ -68,11 +68,11 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
70
|
updatedAt: string;
|
|
71
|
-
|
|
72
|
-
tenantId: string;
|
|
71
|
+
userId: string | null;
|
|
73
72
|
metadata: ConversationMetadata | null;
|
|
74
73
|
projectId: string;
|
|
75
|
-
|
|
74
|
+
tenantId: string;
|
|
75
|
+
title: string | null;
|
|
76
76
|
activeSubAgentId: string;
|
|
77
77
|
lastContextResolution: string | null;
|
|
78
78
|
} | undefined>;
|
|
@@ -92,11 +92,11 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
92
92
|
id: string;
|
|
93
93
|
createdAt: string;
|
|
94
94
|
updatedAt: string;
|
|
95
|
-
|
|
96
|
-
tenantId: string;
|
|
95
|
+
userId: string | null;
|
|
97
96
|
metadata: ConversationMetadata | null;
|
|
98
97
|
projectId: string;
|
|
99
|
-
|
|
98
|
+
tenantId: string;
|
|
99
|
+
title: string | null;
|
|
100
100
|
activeSubAgentId: string;
|
|
101
101
|
lastContextResolution: string | null;
|
|
102
102
|
}>;
|
|
@@ -118,11 +118,11 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
118
118
|
id: string;
|
|
119
119
|
createdAt: string;
|
|
120
120
|
updatedAt: string;
|
|
121
|
-
|
|
122
|
-
tenantId: string;
|
|
121
|
+
userId: string | null;
|
|
123
122
|
metadata: ConversationMetadata | null;
|
|
124
123
|
projectId: string;
|
|
125
|
-
|
|
124
|
+
tenantId: string;
|
|
125
|
+
title: string | null;
|
|
126
126
|
activeSubAgentId: string;
|
|
127
127
|
lastContextResolution: string | null;
|
|
128
128
|
} | undefined>;
|
|
@@ -66,9 +66,9 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
66
66
|
}) => Promise<{
|
|
67
67
|
id: string;
|
|
68
68
|
createdAt: string;
|
|
69
|
-
tenantId: string;
|
|
70
|
-
projectId: string;
|
|
71
69
|
agentId: string;
|
|
70
|
+
projectId: string;
|
|
71
|
+
tenantId: string;
|
|
72
72
|
subAgentId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
@@ -108,9 +108,9 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
108
108
|
}) => Promise<{
|
|
109
109
|
id: string;
|
|
110
110
|
createdAt: string;
|
|
111
|
-
tenantId: string;
|
|
112
|
-
projectId: string;
|
|
113
111
|
agentId: string;
|
|
112
|
+
projectId: string;
|
|
113
|
+
tenantId: string;
|
|
114
114
|
subAgentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
@@ -58,9 +58,9 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
58
58
|
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
61
|
-
tenantId: string;
|
|
62
|
-
projectId: string;
|
|
63
61
|
agentId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
tenantId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -100,9 +100,9 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
tenantId: string;
|
|
104
|
-
projectId: string;
|
|
105
103
|
agentId: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
tenantId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -12,18 +12,18 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
15
|
metadata: MessageMetadata | null;
|
|
16
|
+
role: string;
|
|
17
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
content: MessageContent;
|
|
18
20
|
conversationId: string;
|
|
19
|
-
role: string;
|
|
20
21
|
fromSubAgentId: string | null;
|
|
21
22
|
toSubAgentId: string | null;
|
|
22
23
|
fromExternalAgentId: string | null;
|
|
23
24
|
toExternalAgentId: string | null;
|
|
24
25
|
fromTeamAgentId: string | null;
|
|
25
26
|
toTeamAgentId: string | null;
|
|
26
|
-
content: MessageContent;
|
|
27
27
|
visibility: string;
|
|
28
28
|
messageType: string;
|
|
29
29
|
taskId: string | null;
|
|
@@ -143,18 +143,18 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
|
|
|
143
143
|
id: string;
|
|
144
144
|
createdAt: string;
|
|
145
145
|
updatedAt: string;
|
|
146
|
-
tenantId: string;
|
|
147
146
|
metadata: MessageMetadata | null;
|
|
147
|
+
role: string;
|
|
148
148
|
projectId: string;
|
|
149
|
+
tenantId: string;
|
|
150
|
+
content: MessageContent;
|
|
149
151
|
conversationId: string;
|
|
150
|
-
role: string;
|
|
151
152
|
fromSubAgentId: string | null;
|
|
152
153
|
toSubAgentId: string | null;
|
|
153
154
|
fromExternalAgentId: string | null;
|
|
154
155
|
toExternalAgentId: string | null;
|
|
155
156
|
fromTeamAgentId: string | null;
|
|
156
157
|
toTeamAgentId: string | null;
|
|
157
|
-
content: MessageContent;
|
|
158
158
|
visibility: string;
|
|
159
159
|
messageType: string;
|
|
160
160
|
taskId: string | null;
|
|
@@ -196,18 +196,18 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
196
196
|
id: string;
|
|
197
197
|
createdAt: string;
|
|
198
198
|
updatedAt: string;
|
|
199
|
-
tenantId: string;
|
|
200
199
|
metadata: MessageMetadata | null;
|
|
200
|
+
role: string;
|
|
201
201
|
projectId: string;
|
|
202
|
+
tenantId: string;
|
|
203
|
+
content: MessageContent;
|
|
202
204
|
conversationId: string;
|
|
203
|
-
role: string;
|
|
204
205
|
fromSubAgentId: string | null;
|
|
205
206
|
toSubAgentId: string | null;
|
|
206
207
|
fromExternalAgentId: string | null;
|
|
207
208
|
toExternalAgentId: string | null;
|
|
208
209
|
fromTeamAgentId: string | null;
|
|
209
210
|
toTeamAgentId: string | null;
|
|
210
|
-
content: MessageContent;
|
|
211
211
|
visibility: string;
|
|
212
212
|
messageType: string;
|
|
213
213
|
taskId: string | null;
|
|
@@ -11,12 +11,12 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
agentId: string;
|
|
17
|
-
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
18
17
|
headers: Record<string, string> | null;
|
|
19
18
|
externalAgentId: string;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
22
22
|
scopes: SubAgentScopeConfig;
|
|
@@ -46,12 +46,12 @@ declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
49
|
agentId: string;
|
|
52
|
-
|
|
50
|
+
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
53
52
|
headers: Record<string, string> | null;
|
|
54
53
|
externalAgentId: string;
|
|
54
|
+
subAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
@@ -59,12 +59,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) =>
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
agentId: string;
|
|
65
|
-
|
|
63
|
+
projectId: string;
|
|
64
|
+
tenantId: string;
|
|
66
65
|
headers: Record<string, string> | null;
|
|
67
66
|
externalAgentId: string;
|
|
67
|
+
subAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -182,12 +182,12 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
182
182
|
id: string;
|
|
183
183
|
createdAt: string;
|
|
184
184
|
updatedAt: string;
|
|
185
|
-
tenantId: string;
|
|
186
|
-
projectId: string;
|
|
187
185
|
agentId: string;
|
|
188
|
-
|
|
186
|
+
projectId: string;
|
|
187
|
+
tenantId: string;
|
|
189
188
|
headers: Record<string, string> | null;
|
|
190
189
|
externalAgentId: string;
|
|
190
|
+
subAgentId: 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: DatabaseClient) =>
|
|
|
199
199
|
id: string;
|
|
200
200
|
createdAt: string;
|
|
201
201
|
updatedAt: string;
|
|
202
|
-
tenantId: string;
|
|
203
|
-
projectId: string;
|
|
204
202
|
agentId: string;
|
|
205
|
-
|
|
203
|
+
projectId: string;
|
|
204
|
+
tenantId: string;
|
|
206
205
|
headers: Record<string, string> | null;
|
|
207
206
|
externalAgentId: string;
|
|
207
|
+
subAgentId: 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: DatabaseClient) => (para
|
|
|
220
220
|
id: string;
|
|
221
221
|
createdAt: string;
|
|
222
222
|
updatedAt: string;
|
|
223
|
-
tenantId: string;
|
|
224
|
-
projectId: string;
|
|
225
223
|
agentId: string;
|
|
226
|
-
|
|
224
|
+
projectId: string;
|
|
225
|
+
tenantId: string;
|
|
227
226
|
headers: Record<string, string> | null;
|
|
228
227
|
externalAgentId: string;
|
|
228
|
+
subAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
231
231
|
scopes: SubAgentScopeConfig;
|
|
@@ -11,9 +11,9 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
agentId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
sourceSubAgentId: string;
|
|
18
18
|
targetSubAgentId: string | null;
|
|
19
19
|
relationType: string | null;
|
|
@@ -46,9 +46,9 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
49
|
agentId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
52
|
sourceSubAgentId: string;
|
|
53
53
|
targetSubAgentId: string | null;
|
|
54
54
|
relationType: string | null;
|
|
@@ -59,9 +59,9 @@ declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
agentId: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
tenantId: string;
|
|
65
65
|
sourceSubAgentId: string;
|
|
66
66
|
targetSubAgentId: string | null;
|
|
67
67
|
relationType: string | null;
|
|
@@ -128,9 +128,9 @@ declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentR
|
|
|
128
128
|
id: string;
|
|
129
129
|
createdAt: string;
|
|
130
130
|
updatedAt: string;
|
|
131
|
-
tenantId: string;
|
|
132
|
-
projectId: string;
|
|
133
131
|
agentId: string;
|
|
132
|
+
projectId: string;
|
|
133
|
+
tenantId: string;
|
|
134
134
|
sourceSubAgentId: string;
|
|
135
135
|
targetSubAgentId: string | null;
|
|
136
136
|
relationType: string | null;
|
|
@@ -147,9 +147,9 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
147
147
|
id: string;
|
|
148
148
|
createdAt: string;
|
|
149
149
|
updatedAt: string;
|
|
150
|
-
tenantId: string;
|
|
151
|
-
projectId: string;
|
|
152
150
|
agentId: string;
|
|
151
|
+
projectId: string;
|
|
152
|
+
tenantId: string;
|
|
153
153
|
sourceSubAgentId: string;
|
|
154
154
|
targetSubAgentId: string | null;
|
|
155
155
|
relationType: string | null;
|
|
@@ -161,9 +161,9 @@ declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentR
|
|
|
161
161
|
id: string;
|
|
162
162
|
createdAt: string;
|
|
163
163
|
updatedAt: string;
|
|
164
|
-
tenantId: string;
|
|
165
|
-
projectId: string;
|
|
166
164
|
agentId: string;
|
|
165
|
+
projectId: string;
|
|
166
|
+
tenantId: string;
|
|
167
167
|
sourceSubAgentId: string;
|
|
168
168
|
targetSubAgentId: string | null;
|
|
169
169
|
relationType: string | null;
|
|
@@ -206,16 +206,16 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
-
tenantId: string;
|
|
210
|
-
projectId: string;
|
|
211
209
|
agentId: string;
|
|
210
|
+
projectId: string;
|
|
211
|
+
tenantId: string;
|
|
212
212
|
toolId: string;
|
|
213
|
-
subAgentId: string;
|
|
214
213
|
headers: Record<string, string> | null;
|
|
215
|
-
selectedTools: string[] | null;
|
|
216
214
|
toolPolicies: Record<string, {
|
|
217
215
|
needsApproval?: boolean;
|
|
218
216
|
}> | null;
|
|
217
|
+
subAgentId: string;
|
|
218
|
+
selectedTools: string[] | null;
|
|
219
219
|
}>;
|
|
220
220
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
221
221
|
scopes: AgentScopeConfig;
|
|
@@ -250,16 +250,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
-
tenantId: string;
|
|
254
|
-
projectId: string;
|
|
255
253
|
agentId: string;
|
|
254
|
+
projectId: string;
|
|
255
|
+
tenantId: string;
|
|
256
256
|
toolId: string;
|
|
257
|
-
subAgentId: string;
|
|
258
257
|
headers: Record<string, string> | null;
|
|
259
|
-
selectedTools: string[] | null;
|
|
260
258
|
toolPolicies: Record<string, {
|
|
261
259
|
needsApproval?: boolean;
|
|
262
260
|
}> | null;
|
|
261
|
+
subAgentId: string;
|
|
262
|
+
selectedTools: string[] | null;
|
|
263
263
|
} | undefined>;
|
|
264
264
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
265
265
|
scopes: SubAgentScopeConfig;
|
|
@@ -11,11 +11,11 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
agentId: string;
|
|
17
|
-
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
18
17
|
headers: Record<string, string> | null;
|
|
18
|
+
subAgentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
@@ -46,11 +46,11 @@ declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
49
|
agentId: string;
|
|
52
|
-
|
|
50
|
+
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
53
52
|
headers: Record<string, string> | null;
|
|
53
|
+
subAgentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
@@ -59,11 +59,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (par
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
agentId: string;
|
|
65
|
-
|
|
63
|
+
projectId: string;
|
|
64
|
+
tenantId: string;
|
|
66
65
|
headers: Record<string, string> | null;
|
|
66
|
+
subAgentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: DatabaseClient) => (params: {
|
|
@@ -212,11 +212,11 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
212
212
|
id: string;
|
|
213
213
|
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
|
-
tenantId: string;
|
|
216
|
-
projectId: string;
|
|
217
215
|
agentId: string;
|
|
218
|
-
|
|
216
|
+
projectId: string;
|
|
217
|
+
tenantId: string;
|
|
219
218
|
headers: Record<string, string> | null;
|
|
219
|
+
subAgentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -229,11 +229,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
-
tenantId: string;
|
|
233
|
-
projectId: string;
|
|
234
232
|
agentId: string;
|
|
235
|
-
|
|
233
|
+
projectId: string;
|
|
234
|
+
tenantId: string;
|
|
236
235
|
headers: Record<string, string> | null;
|
|
236
|
+
subAgentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -250,11 +250,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
-
tenantId: string;
|
|
254
|
-
projectId: string;
|
|
255
253
|
agentId: string;
|
|
256
|
-
|
|
254
|
+
projectId: string;
|
|
255
|
+
tenantId: string;
|
|
257
256
|
headers: Record<string, string> | null;
|
|
257
|
+
subAgentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
|
|
@@ -13,6 +13,9 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
+
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
16
19
|
models: {
|
|
17
20
|
base?: {
|
|
18
21
|
model?: string | undefined;
|
|
@@ -27,13 +30,10 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
27
30
|
providerOptions?: Record<string, any> | undefined;
|
|
28
31
|
} | undefined;
|
|
29
32
|
} | null;
|
|
33
|
+
prompt: string | null;
|
|
30
34
|
stopWhen: {
|
|
31
35
|
stepCountIs?: number | undefined;
|
|
32
36
|
} | null;
|
|
33
|
-
tenantId: string;
|
|
34
|
-
prompt: string | null;
|
|
35
|
-
projectId: string;
|
|
36
|
-
agentId: string;
|
|
37
37
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
@@ -44,6 +44,9 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
46
|
description: string | null;
|
|
47
|
+
agentId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
tenantId: string;
|
|
47
50
|
models: {
|
|
48
51
|
base?: {
|
|
49
52
|
model?: string | undefined;
|
|
@@ -58,13 +61,10 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
58
61
|
providerOptions?: Record<string, any> | undefined;
|
|
59
62
|
} | undefined;
|
|
60
63
|
} | null;
|
|
64
|
+
prompt: string | null;
|
|
61
65
|
stopWhen: {
|
|
62
66
|
stepCountIs?: number | undefined;
|
|
63
67
|
} | null;
|
|
64
|
-
tenantId: string;
|
|
65
|
-
prompt: string | null;
|
|
66
|
-
projectId: string;
|
|
67
|
-
agentId: string;
|
|
68
68
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -113,6 +113,9 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
113
113
|
createdAt: string;
|
|
114
114
|
updatedAt: string;
|
|
115
115
|
description: string | null;
|
|
116
|
+
agentId: string;
|
|
117
|
+
projectId: string;
|
|
118
|
+
tenantId: string;
|
|
116
119
|
models: {
|
|
117
120
|
base?: {
|
|
118
121
|
model?: string | undefined;
|
|
@@ -127,13 +130,10 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
127
130
|
providerOptions?: Record<string, any> | undefined;
|
|
128
131
|
} | undefined;
|
|
129
132
|
} | null;
|
|
133
|
+
prompt: string | null;
|
|
130
134
|
stopWhen: {
|
|
131
135
|
stepCountIs?: number | undefined;
|
|
132
136
|
} | null;
|
|
133
|
-
tenantId: string;
|
|
134
|
-
prompt: string | null;
|
|
135
|
-
projectId: string;
|
|
136
|
-
agentId: string;
|
|
137
137
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -9,12 +9,12 @@ declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promis
|
|
|
9
9
|
id: string;
|
|
10
10
|
createdAt: string;
|
|
11
11
|
updatedAt: string;
|
|
12
|
-
tenantId: string;
|
|
13
12
|
metadata: TaskMetadataConfig | null;
|
|
14
|
-
|
|
13
|
+
status: string;
|
|
15
14
|
agentId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
16
17
|
contextId: string;
|
|
17
|
-
status: string;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
}>;
|
|
20
20
|
declare const getTask: (db: DatabaseClient) => (params: {
|
|
@@ -17,15 +17,15 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
17
17
|
createdAt: string;
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
description: string | null;
|
|
20
|
-
tenantId: string;
|
|
21
20
|
projectId: string;
|
|
22
|
-
|
|
21
|
+
tenantId: string;
|
|
22
|
+
headers: Record<string, string> | null;
|
|
23
23
|
config: {
|
|
24
24
|
type: "mcp";
|
|
25
25
|
mcp: ToolMcpConfig;
|
|
26
26
|
};
|
|
27
|
+
credentialReferenceId: string | null;
|
|
27
28
|
credentialScope: string;
|
|
28
|
-
headers: Record<string, string> | null;
|
|
29
29
|
imageUrl: string | null;
|
|
30
30
|
capabilities: ToolServerCapabilities | null;
|
|
31
31
|
lastError: string | null;
|
|
@@ -66,15 +66,15 @@ declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promis
|
|
|
66
66
|
createdAt: string;
|
|
67
67
|
updatedAt: string;
|
|
68
68
|
description: string | null;
|
|
69
|
-
tenantId: string;
|
|
70
69
|
projectId: string;
|
|
71
|
-
|
|
70
|
+
tenantId: string;
|
|
71
|
+
headers: Record<string, string> | null;
|
|
72
72
|
config: {
|
|
73
73
|
type: "mcp";
|
|
74
74
|
mcp: ToolMcpConfig;
|
|
75
75
|
};
|
|
76
|
+
credentialReferenceId: string | null;
|
|
76
77
|
credentialScope: string;
|
|
77
|
-
headers: Record<string, string> | null;
|
|
78
78
|
imageUrl: string | null;
|
|
79
79
|
capabilities: ToolServerCapabilities | null;
|
|
80
80
|
lastError: string | null;
|
|
@@ -119,16 +119,16 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
119
119
|
id: string;
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
|
-
tenantId: string;
|
|
123
|
-
projectId: string;
|
|
124
122
|
agentId: string;
|
|
123
|
+
projectId: string;
|
|
124
|
+
tenantId: string;
|
|
125
125
|
toolId: string;
|
|
126
|
-
subAgentId: string;
|
|
127
126
|
headers: Record<string, string> | null;
|
|
128
|
-
selectedTools: string[] | null;
|
|
129
127
|
toolPolicies: Record<string, {
|
|
130
128
|
needsApproval?: boolean;
|
|
131
129
|
}> | null;
|
|
130
|
+
subAgentId: string;
|
|
131
|
+
selectedTools: string[] | null;
|
|
132
132
|
}>;
|
|
133
133
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
134
134
|
scopes: AgentScopeConfig;
|
|
@@ -138,16 +138,16 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
|
-
tenantId: string;
|
|
142
|
-
projectId: string;
|
|
143
141
|
agentId: string;
|
|
142
|
+
projectId: string;
|
|
143
|
+
tenantId: string;
|
|
144
144
|
toolId: string;
|
|
145
|
-
subAgentId: string;
|
|
146
145
|
headers: Record<string, string> | null;
|
|
147
|
-
selectedTools: string[] | null;
|
|
148
146
|
toolPolicies: Record<string, {
|
|
149
147
|
needsApproval?: boolean;
|
|
150
148
|
}> | null;
|
|
149
|
+
subAgentId: string;
|
|
150
|
+
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
153
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -166,16 +166,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
166
166
|
id: string;
|
|
167
167
|
createdAt: string;
|
|
168
168
|
updatedAt: string;
|
|
169
|
-
tenantId: string;
|
|
170
|
-
projectId: string;
|
|
171
169
|
agentId: string;
|
|
170
|
+
projectId: string;
|
|
171
|
+
tenantId: string;
|
|
172
172
|
toolId: string;
|
|
173
|
-
subAgentId: string;
|
|
174
173
|
headers: Record<string, string> | null;
|
|
175
|
-
selectedTools: string[] | null;
|
|
176
174
|
toolPolicies: Record<string, {
|
|
177
175
|
needsApproval?: boolean;
|
|
178
176
|
}> | null;
|
|
177
|
+
subAgentId: string;
|
|
178
|
+
selectedTools: string[] | null;
|
|
179
179
|
}>;
|
|
180
180
|
/**
|
|
181
181
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -188,15 +188,15 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
|
188
188
|
createdAt: string;
|
|
189
189
|
updatedAt: string;
|
|
190
190
|
description: string | null;
|
|
191
|
-
tenantId: string;
|
|
192
191
|
projectId: string;
|
|
193
|
-
|
|
192
|
+
tenantId: string;
|
|
193
|
+
headers: Record<string, string> | null;
|
|
194
194
|
config: {
|
|
195
195
|
type: "mcp";
|
|
196
196
|
mcp: ToolMcpConfig;
|
|
197
197
|
};
|
|
198
|
+
credentialReferenceId: string | null;
|
|
198
199
|
credentialScope: string;
|
|
199
|
-
headers: Record<string, string> | null;
|
|
200
200
|
imageUrl: string | null;
|
|
201
201
|
capabilities: ToolServerCapabilities | null;
|
|
202
202
|
lastError: string | null;
|