@inkeep/agents-core 0.0.0-dev-20260218210419 → 0.0.0-dev-20260218225303
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 +83 -83
- package/dist/auth/auth-validation-schemas.d.ts +131 -131
- package/dist/client-exports.d.ts +2 -2
- package/dist/data-access/manage/agents.d.ts +21 -21
- package/dist/data-access/manage/agents.js +2 -2
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +2 -2
- package/dist/data-access/manage/skills.d.ts +1 -1
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +4 -4
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +305 -305
- package/package.json +1 -1
package/dist/client-exports.d.ts
CHANGED
|
@@ -19,8 +19,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
19
19
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
20
20
|
id: z.ZodString;
|
|
21
21
|
name: z.ZodString;
|
|
22
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
23
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
24
22
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
23
|
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
26
24
|
models: z.ZodOptional<z.ZodObject<{
|
|
@@ -46,6 +44,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
46
44
|
}, {
|
|
47
45
|
stepCountIs?: number | undefined;
|
|
48
46
|
}>>>>;
|
|
47
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
48
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
49
49
|
type: z.ZodLiteral<"internal">;
|
|
50
50
|
canUse: z.ZodArray<z.ZodObject<{
|
|
51
51
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
|
@@ -13,10 +13,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
-
defaultSubAgentId: string | null;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
projectId: string;
|
|
19
|
-
prompt: string | null;
|
|
20
16
|
models: {
|
|
21
17
|
base?: {
|
|
22
18
|
model?: string | undefined;
|
|
@@ -34,7 +30,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
30
|
stopWhen: {
|
|
35
31
|
transferCountIs?: number | undefined;
|
|
36
32
|
} | null;
|
|
33
|
+
tenantId: string;
|
|
34
|
+
defaultSubAgentId: string | null;
|
|
37
35
|
contextConfigId: string | null;
|
|
36
|
+
prompt: string | null;
|
|
38
37
|
statusUpdates: {
|
|
39
38
|
enabled?: boolean | undefined;
|
|
40
39
|
numEvents?: number | undefined;
|
|
@@ -50,6 +49,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
50
49
|
} | undefined;
|
|
51
50
|
}[] | undefined;
|
|
52
51
|
} | null;
|
|
52
|
+
projectId: string;
|
|
53
53
|
} | null>;
|
|
54
54
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -59,10 +59,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
59
59
|
createdAt: string;
|
|
60
60
|
updatedAt: string;
|
|
61
61
|
description: string | null;
|
|
62
|
-
defaultSubAgentId: string | null;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
prompt: string | null;
|
|
66
62
|
models: {
|
|
67
63
|
base?: {
|
|
68
64
|
model?: string | undefined;
|
|
@@ -80,7 +76,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
80
76
|
stopWhen: {
|
|
81
77
|
transferCountIs?: number | undefined;
|
|
82
78
|
} | null;
|
|
79
|
+
tenantId: string;
|
|
80
|
+
defaultSubAgentId: string | null;
|
|
83
81
|
contextConfigId: string | null;
|
|
82
|
+
prompt: string | null;
|
|
84
83
|
statusUpdates: {
|
|
85
84
|
enabled?: boolean | undefined;
|
|
86
85
|
numEvents?: number | undefined;
|
|
@@ -96,17 +95,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
96
95
|
} | undefined;
|
|
97
96
|
}[] | undefined;
|
|
98
97
|
} | null;
|
|
98
|
+
projectId: string;
|
|
99
99
|
defaultSubAgent: {
|
|
100
100
|
id: string;
|
|
101
101
|
name: string;
|
|
102
102
|
createdAt: string;
|
|
103
103
|
updatedAt: string;
|
|
104
104
|
description: string | null;
|
|
105
|
-
tenantId: string;
|
|
106
|
-
projectId: string;
|
|
107
|
-
agentId: string;
|
|
108
|
-
prompt: string | null;
|
|
109
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
110
105
|
models: {
|
|
111
106
|
base?: {
|
|
112
107
|
model?: string | undefined;
|
|
@@ -124,6 +119,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
124
119
|
stopWhen: {
|
|
125
120
|
stepCountIs?: number | undefined;
|
|
126
121
|
} | null;
|
|
122
|
+
tenantId: string;
|
|
123
|
+
prompt: string | null;
|
|
124
|
+
projectId: string;
|
|
125
|
+
agentId: string;
|
|
126
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
129
129
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -134,10 +134,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
134
|
createdAt: string;
|
|
135
135
|
updatedAt: string;
|
|
136
136
|
description: string | null;
|
|
137
|
-
defaultSubAgentId: string | null;
|
|
138
|
-
tenantId: string;
|
|
139
|
-
projectId: string;
|
|
140
|
-
prompt: string | null;
|
|
141
137
|
models: {
|
|
142
138
|
base?: {
|
|
143
139
|
model?: string | undefined;
|
|
@@ -155,7 +151,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
155
151
|
stopWhen: {
|
|
156
152
|
transferCountIs?: number | undefined;
|
|
157
153
|
} | null;
|
|
154
|
+
tenantId: string;
|
|
155
|
+
defaultSubAgentId: string | null;
|
|
158
156
|
contextConfigId: string | null;
|
|
157
|
+
prompt: string | null;
|
|
159
158
|
statusUpdates: {
|
|
160
159
|
enabled?: boolean | undefined;
|
|
161
160
|
numEvents?: number | undefined;
|
|
@@ -171,6 +170,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
171
170
|
} | undefined;
|
|
172
171
|
}[] | undefined;
|
|
173
172
|
} | null;
|
|
173
|
+
projectId: string;
|
|
174
174
|
}[]>;
|
|
175
175
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
176
176
|
scopes: ProjectScopeConfig;
|
|
@@ -250,10 +250,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
250
250
|
createdAt: string;
|
|
251
251
|
updatedAt: string;
|
|
252
252
|
description: string | null;
|
|
253
|
-
defaultSubAgentId: string | null;
|
|
254
|
-
tenantId: string;
|
|
255
|
-
projectId: string;
|
|
256
|
-
prompt: string | null;
|
|
257
253
|
models: {
|
|
258
254
|
base?: {
|
|
259
255
|
model?: string | undefined;
|
|
@@ -271,7 +267,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
271
267
|
stopWhen: {
|
|
272
268
|
transferCountIs?: number | undefined;
|
|
273
269
|
} | null;
|
|
270
|
+
tenantId: string;
|
|
271
|
+
defaultSubAgentId: string | null;
|
|
274
272
|
contextConfigId: string | null;
|
|
273
|
+
prompt: string | null;
|
|
275
274
|
statusUpdates: {
|
|
276
275
|
enabled?: boolean | undefined;
|
|
277
276
|
numEvents?: number | undefined;
|
|
@@ -287,6 +286,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
287
286
|
} | undefined;
|
|
288
287
|
}[] | undefined;
|
|
289
288
|
} | null;
|
|
289
|
+
projectId: string;
|
|
290
290
|
}>;
|
|
291
291
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
292
292
|
scopes: AgentScopeConfig;
|
|
@@ -260,8 +260,8 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
260
260
|
agentToolRelationId: subAgentFunctionToolRelations.id,
|
|
261
261
|
toolPolicies: subAgentFunctionToolRelations.toolPolicies
|
|
262
262
|
}).from(subAgentFunctionToolRelations).innerJoin(functionTools, and(eq(subAgentFunctionToolRelations.functionToolId, functionTools.id), eq(subAgentFunctionToolRelations.tenantId, functionTools.tenantId), eq(subAgentFunctionToolRelations.projectId, functionTools.projectId), eq(subAgentFunctionToolRelations.agentId, functionTools.agentId))).where(and(eq(subAgentFunctionToolRelations.tenantId, tenantId), eq(subAgentFunctionToolRelations.projectId, projectId), eq(subAgentFunctionToolRelations.agentId, agentId), eq(subAgentFunctionToolRelations.subAgentId, agent$1.id)));
|
|
263
|
-
const agentDataComponentIds = (await db.query.subAgentDataComponents.findMany({ where: and(eq(subAgentDataComponents.tenantId, tenantId), eq(subAgentDataComponents.subAgentId, agent$1.id)) })).map((rel) => rel.dataComponentId);
|
|
264
|
-
const agentArtifactComponentIds = (await db.query.subAgentArtifactComponents.findMany({ where: and(eq(subAgentArtifactComponents.tenantId, tenantId), eq(subAgentArtifactComponents.subAgentId, agent$1.id)) })).map((rel) => rel.artifactComponentId);
|
|
263
|
+
const agentDataComponentIds = (await db.query.subAgentDataComponents.findMany({ where: and(eq(subAgentDataComponents.tenantId, tenantId), eq(subAgentDataComponents.projectId, projectId), eq(subAgentDataComponents.agentId, agentId), eq(subAgentDataComponents.subAgentId, agent$1.id)) })).map((rel) => rel.dataComponentId);
|
|
264
|
+
const agentArtifactComponentIds = (await db.query.subAgentArtifactComponents.findMany({ where: and(eq(subAgentArtifactComponents.tenantId, tenantId), eq(subAgentArtifactComponents.projectId, projectId), eq(subAgentArtifactComponents.agentId, agentId), eq(subAgentArtifactComponents.subAgentId, agent$1.id)) })).map((rel) => rel.artifactComponentId);
|
|
265
265
|
const mcpToolCanUse = subAgentTools.map((tool) => ({
|
|
266
266
|
agentToolRelationId: tool.agentToolRelationId,
|
|
267
267
|
toolId: tool.id,
|
|
@@ -13,9 +13,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
tenantId: string;
|
|
15
15
|
projectId: string;
|
|
16
|
-
agentId: string;
|
|
17
16
|
headersSchema: unknown;
|
|
18
17
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
18
|
+
agentId: string;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
@@ -25,9 +25,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
25
25
|
updatedAt: string;
|
|
26
26
|
tenantId: string;
|
|
27
27
|
projectId: string;
|
|
28
|
-
agentId: string;
|
|
29
28
|
headersSchema: unknown;
|
|
30
29
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
30
|
+
agentId: string;
|
|
31
31
|
}[]>;
|
|
32
32
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: AgentScopeConfig;
|
|
@@ -47,9 +47,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
47
47
|
updatedAt: string;
|
|
48
48
|
tenantId: string;
|
|
49
49
|
projectId: string;
|
|
50
|
-
agentId: string;
|
|
51
50
|
headersSchema: unknown;
|
|
52
51
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
52
|
+
agentId: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -87,9 +87,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
87
87
|
updatedAt: string;
|
|
88
88
|
tenantId: string;
|
|
89
89
|
projectId: string;
|
|
90
|
-
agentId: string;
|
|
91
90
|
headersSchema: unknown;
|
|
92
91
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
92
|
+
agentId: string;
|
|
93
93
|
}>;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -167,10 +167,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
167
167
|
tenantId: string;
|
|
168
168
|
projectId: string;
|
|
169
169
|
agentId: 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
|
tenantId: string;
|
|
233
233
|
projectId: string;
|
|
234
234
|
agentId: 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
|
|
@@ -96,10 +96,10 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
96
96
|
tenantId: string;
|
|
97
97
|
projectId: string;
|
|
98
98
|
agentId: string;
|
|
99
|
+
skillId: string;
|
|
99
100
|
index: number;
|
|
100
101
|
alwaysLoaded: boolean;
|
|
101
102
|
subAgentId: string;
|
|
102
|
-
skillId: string;
|
|
103
103
|
}>;
|
|
104
104
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
105
105
|
scopes: AgentScopeConfig;
|
|
@@ -14,9 +14,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
14
14
|
tenantId: string;
|
|
15
15
|
projectId: string;
|
|
16
16
|
agentId: string;
|
|
17
|
+
subAgentId: string;
|
|
17
18
|
headers: Record<string, string> | null;
|
|
18
19
|
externalAgentId: string;
|
|
19
|
-
subAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: SubAgentScopeConfig;
|
|
@@ -49,9 +49,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
49
49
|
tenantId: string;
|
|
50
50
|
projectId: string;
|
|
51
51
|
agentId: string;
|
|
52
|
+
subAgentId: string;
|
|
52
53
|
headers: Record<string, string> | null;
|
|
53
54
|
externalAgentId: string;
|
|
54
|
-
subAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
@@ -62,9 +62,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
62
62
|
tenantId: string;
|
|
63
63
|
projectId: string;
|
|
64
64
|
agentId: string;
|
|
65
|
+
subAgentId: string;
|
|
65
66
|
headers: Record<string, string> | null;
|
|
66
67
|
externalAgentId: string;
|
|
67
|
-
subAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -185,9 +185,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
185
185
|
tenantId: string;
|
|
186
186
|
projectId: string;
|
|
187
187
|
agentId: string;
|
|
188
|
+
subAgentId: string;
|
|
188
189
|
headers: Record<string, string> | null;
|
|
189
190
|
externalAgentId: string;
|
|
190
|
-
subAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
193
193
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -202,9 +202,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
202
202
|
tenantId: string;
|
|
203
203
|
projectId: string;
|
|
204
204
|
agentId: string;
|
|
205
|
+
subAgentId: string;
|
|
205
206
|
headers: Record<string, string> | null;
|
|
206
207
|
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)
|
|
@@ -223,9 +223,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
223
223
|
tenantId: string;
|
|
224
224
|
projectId: string;
|
|
225
225
|
agentId: string;
|
|
226
|
+
subAgentId: string;
|
|
226
227
|
headers: Record<string, string> | null;
|
|
227
228
|
externalAgentId: string;
|
|
228
|
-
subAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
231
231
|
scopes: SubAgentScopeConfig;
|
|
@@ -210,12 +210,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
210
210
|
projectId: string;
|
|
211
211
|
agentId: string;
|
|
212
212
|
toolId: string;
|
|
213
|
+
subAgentId: string;
|
|
213
214
|
headers: Record<string, string> | null;
|
|
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;
|
|
@@ -254,12 +254,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
254
254
|
projectId: string;
|
|
255
255
|
agentId: string;
|
|
256
256
|
toolId: string;
|
|
257
|
+
subAgentId: string;
|
|
257
258
|
headers: Record<string, string> | null;
|
|
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;
|
|
@@ -14,8 +14,8 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
14
14
|
tenantId: string;
|
|
15
15
|
projectId: string;
|
|
16
16
|
agentId: string;
|
|
17
|
-
headers: Record<string, string> | null;
|
|
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: {
|
|
@@ -49,8 +49,8 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
49
49
|
tenantId: string;
|
|
50
50
|
projectId: string;
|
|
51
51
|
agentId: string;
|
|
52
|
-
headers: Record<string, string> | null;
|
|
53
52
|
subAgentId: string;
|
|
53
|
+
headers: Record<string, string> | null;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -62,8 +62,8 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
62
62
|
tenantId: string;
|
|
63
63
|
projectId: string;
|
|
64
64
|
agentId: string;
|
|
65
|
-
headers: Record<string, string> | null;
|
|
66
65
|
subAgentId: string;
|
|
66
|
+
headers: Record<string, string> | null;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -215,8 +215,8 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
215
215
|
tenantId: string;
|
|
216
216
|
projectId: string;
|
|
217
217
|
agentId: string;
|
|
218
|
-
headers: Record<string, string> | null;
|
|
219
218
|
subAgentId: string;
|
|
219
|
+
headers: Record<string, string> | null;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -232,8 +232,8 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
232
232
|
tenantId: string;
|
|
233
233
|
projectId: string;
|
|
234
234
|
agentId: string;
|
|
235
|
-
headers: Record<string, string> | null;
|
|
236
235
|
subAgentId: string;
|
|
236
|
+
headers: Record<string, string> | null;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -253,8 +253,8 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
253
253
|
tenantId: string;
|
|
254
254
|
projectId: string;
|
|
255
255
|
agentId: string;
|
|
256
|
-
headers: Record<string, string> | null;
|
|
257
256
|
subAgentId: string;
|
|
257
|
+
headers: Record<string, string> | null;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -13,11 +13,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
agentId: string;
|
|
19
|
-
prompt: string | null;
|
|
20
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
21
16
|
models: {
|
|
22
17
|
base?: {
|
|
23
18
|
model?: string | undefined;
|
|
@@ -35,6 +30,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
35
30
|
stopWhen: {
|
|
36
31
|
stepCountIs?: number | undefined;
|
|
37
32
|
} | null;
|
|
33
|
+
tenantId: string;
|
|
34
|
+
prompt: string | null;
|
|
35
|
+
projectId: string;
|
|
36
|
+
agentId: string;
|
|
37
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
@@ -44,11 +44,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
46
|
description: string | null;
|
|
47
|
-
tenantId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
agentId: string;
|
|
50
|
-
prompt: string | null;
|
|
51
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
52
47
|
models: {
|
|
53
48
|
base?: {
|
|
54
49
|
model?: string | undefined;
|
|
@@ -66,6 +61,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
66
61
|
stopWhen: {
|
|
67
62
|
stepCountIs?: number | undefined;
|
|
68
63
|
} | null;
|
|
64
|
+
tenantId: string;
|
|
65
|
+
prompt: string | null;
|
|
66
|
+
projectId: string;
|
|
67
|
+
agentId: string;
|
|
68
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -113,11 +113,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
113
113
|
createdAt: string;
|
|
114
114
|
updatedAt: string;
|
|
115
115
|
description: string | null;
|
|
116
|
-
tenantId: string;
|
|
117
|
-
projectId: string;
|
|
118
|
-
agentId: string;
|
|
119
|
-
prompt: string | null;
|
|
120
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
121
116
|
models: {
|
|
122
117
|
base?: {
|
|
123
118
|
model?: string | undefined;
|
|
@@ -135,6 +130,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
135
130
|
stopWhen: {
|
|
136
131
|
stepCountIs?: number | undefined;
|
|
137
132
|
} | null;
|
|
133
|
+
tenantId: string;
|
|
134
|
+
prompt: string | null;
|
|
135
|
+
projectId: string;
|
|
136
|
+
agentId: string;
|
|
137
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
140
140
|
scopes: AgentScopeConfig;
|
|
@@ -25,13 +25,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
25
25
|
description: string | null;
|
|
26
26
|
tenantId: string;
|
|
27
27
|
projectId: string;
|
|
28
|
-
|
|
28
|
+
credentialReferenceId: string | null;
|
|
29
29
|
config: {
|
|
30
30
|
type: "mcp";
|
|
31
31
|
mcp: ToolMcpConfig;
|
|
32
32
|
};
|
|
33
|
-
credentialReferenceId: string | null;
|
|
34
33
|
credentialScope: string;
|
|
34
|
+
headers: Record<string, string> | null;
|
|
35
35
|
imageUrl: string | null;
|
|
36
36
|
capabilities: ToolServerCapabilities | null;
|
|
37
37
|
lastError: string | null;
|
|
@@ -83,13 +83,13 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
83
83
|
description: string | null;
|
|
84
84
|
tenantId: string;
|
|
85
85
|
projectId: string;
|
|
86
|
-
|
|
86
|
+
credentialReferenceId: string | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "mcp";
|
|
89
89
|
mcp: ToolMcpConfig;
|
|
90
90
|
};
|
|
91
|
-
credentialReferenceId: string | null;
|
|
92
91
|
credentialScope: string;
|
|
92
|
+
headers: Record<string, string> | null;
|
|
93
93
|
imageUrl: string | null;
|
|
94
94
|
capabilities: ToolServerCapabilities | null;
|
|
95
95
|
lastError: string | null;
|
|
@@ -140,12 +140,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
140
140
|
projectId: string;
|
|
141
141
|
agentId: string;
|
|
142
142
|
toolId: string;
|
|
143
|
+
subAgentId: string;
|
|
143
144
|
headers: Record<string, string> | null;
|
|
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;
|
|
@@ -159,12 +159,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
159
159
|
projectId: string;
|
|
160
160
|
agentId: string;
|
|
161
161
|
toolId: string;
|
|
162
|
+
subAgentId: string;
|
|
162
163
|
headers: Record<string, string> | null;
|
|
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)
|
|
@@ -187,12 +187,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
187
187
|
projectId: string;
|
|
188
188
|
agentId: string;
|
|
189
189
|
toolId: string;
|
|
190
|
+
subAgentId: string;
|
|
190
191
|
headers: Record<string, string> | null;
|
|
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)
|
|
@@ -207,13 +207,13 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
207
207
|
description: string | null;
|
|
208
208
|
tenantId: string;
|
|
209
209
|
projectId: string;
|
|
210
|
-
|
|
210
|
+
credentialReferenceId: string | null;
|
|
211
211
|
config: {
|
|
212
212
|
type: "mcp";
|
|
213
213
|
mcp: ToolMcpConfig;
|
|
214
214
|
};
|
|
215
|
-
credentialReferenceId: string | null;
|
|
216
215
|
credentialScope: string;
|
|
216
|
+
headers: Record<string, string> | null;
|
|
217
217
|
imageUrl: string | null;
|
|
218
218
|
capabilities: ToolServerCapabilities | null;
|
|
219
219
|
lastError: string | null;
|
|
@@ -15,10 +15,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
-
lastUsedAt: string | null;
|
|
19
18
|
publicId: string;
|
|
20
19
|
keyHash: string;
|
|
21
20
|
keyPrefix: string;
|
|
21
|
+
lastUsedAt: string | null;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
24
|
id: string;
|
|
@@ -29,10 +29,10 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
29
29
|
tenantId: string;
|
|
30
30
|
projectId: string;
|
|
31
31
|
agentId: string;
|
|
32
|
-
lastUsedAt: string | null;
|
|
33
32
|
publicId: string;
|
|
34
33
|
keyHash: string;
|
|
35
34
|
keyPrefix: string;
|
|
35
|
+
lastUsedAt: string | null;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
@@ -46,10 +46,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
46
46
|
tenantId: string;
|
|
47
47
|
projectId: string;
|
|
48
48
|
agentId: string;
|
|
49
|
-
lastUsedAt: string | null;
|
|
50
49
|
publicId: string;
|
|
51
50
|
keyHash: string;
|
|
52
51
|
keyPrefix: string;
|
|
52
|
+
lastUsedAt: string | null;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -73,10 +73,10 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
73
73
|
tenantId: string;
|
|
74
74
|
projectId: string;
|
|
75
75
|
agentId: string;
|
|
76
|
-
lastUsedAt: string | null;
|
|
77
76
|
publicId: string;
|
|
78
77
|
keyHash: string;
|
|
79
78
|
keyPrefix: string;
|
|
79
|
+
lastUsedAt: string | null;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|
|
@@ -25,10 +25,10 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
25
25
|
} | null;
|
|
26
26
|
userId: string | null;
|
|
27
27
|
metadata: ConversationMetadata | null;
|
|
28
|
+
title: string | null;
|
|
28
29
|
tenantId: string;
|
|
29
30
|
projectId: string;
|
|
30
31
|
agentId: string | null;
|
|
31
|
-
title: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -94,10 +94,10 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
94
94
|
} | null;
|
|
95
95
|
userId: string | null;
|
|
96
96
|
metadata: ConversationMetadata | null;
|
|
97
|
+
title: string | null;
|
|
97
98
|
tenantId: string;
|
|
98
99
|
projectId: string;
|
|
99
100
|
agentId: string | null;
|
|
100
|
-
title: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -130,10 +130,10 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
130
130
|
} | null;
|
|
131
131
|
userId: string | null;
|
|
132
132
|
metadata: ConversationMetadata | null;
|
|
133
|
+
title: string | null;
|
|
133
134
|
tenantId: string;
|
|
134
135
|
projectId: string;
|
|
135
136
|
agentId: string | null;
|
|
136
|
-
title: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -162,10 +162,10 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
162
162
|
} | null;
|
|
163
163
|
userId: string | null;
|
|
164
164
|
metadata: ConversationMetadata | null;
|
|
165
|
+
title: string | null;
|
|
165
166
|
tenantId: string;
|
|
166
167
|
projectId: string;
|
|
167
168
|
agentId: string | null;
|
|
168
|
-
title: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_zod361 from "drizzle-zod";
|
|
3
3
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
|
4
4
|
|
|
5
5
|
//#region src/validation/drizzle-schema-helpers.d.ts
|
|
6
|
-
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
7
|
-
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
6
|
+
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod361.BuildSchema<"select", T["_"]["columns"], drizzle_zod361.BuildRefine<T["_"]["columns"], undefined>, undefined>;
|
|
7
|
+
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod361.BuildSchema<"insert", T["_"]["columns"], drizzle_zod361.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
|
|
8
8
|
declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
|
|
9
9
|
declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
|
|
10
10
|
/**
|