@inkeep/agents-core 0.0.0-dev-20260325203817 → 0.0.0-dev-20260325213342
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 +108 -108
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +4 -4
- package/dist/constants/context-breakdown.js +5 -0
- package/dist/data-access/manage/agents.d.ts +25 -25
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +16 -16
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +11 -8
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +24 -24
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +347 -330
- package/dist/db/runtime/runtime-schema.js +1 -0
- package/dist/dolt/fk-map.d.ts +5 -0
- package/dist/dolt/fk-map.js +34 -0
- package/dist/dolt/index.d.ts +3 -2
- package/dist/dolt/index.js +3 -2
- package/dist/dolt/resolve-conflicts.d.ts +11 -1
- package/dist/dolt/resolve-conflicts.js +105 -47
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/types/utility.d.ts +1 -0
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +2070 -1994
- package/drizzle/runtime/0025_faulty_kylun.sql +1 -0
- package/drizzle/runtime/meta/0025_snapshot.json +4276 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
13
|
tenantId: string;
|
|
16
14
|
projectId: string;
|
|
17
15
|
agentId: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
createdAt: string;
|
|
49
|
-
updatedAt: string;
|
|
50
48
|
tenantId: string;
|
|
51
49
|
projectId: string;
|
|
52
50
|
agentId: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
updatedAt: string;
|
|
63
61
|
tenantId: string;
|
|
64
62
|
projectId: string;
|
|
65
63
|
agentId: string;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
129
|
id: string;
|
|
130
|
-
createdAt: string;
|
|
131
|
-
updatedAt: string;
|
|
132
130
|
tenantId: string;
|
|
133
131
|
projectId: string;
|
|
134
132
|
agentId: string;
|
|
133
|
+
createdAt: string;
|
|
134
|
+
updatedAt: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
|
-
createdAt: string;
|
|
150
|
-
updatedAt: string;
|
|
151
149
|
tenantId: string;
|
|
152
150
|
projectId: string;
|
|
153
151
|
agentId: string;
|
|
152
|
+
createdAt: string;
|
|
153
|
+
updatedAt: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
id: string;
|
|
163
|
-
createdAt: string;
|
|
164
|
-
updatedAt: string;
|
|
165
163
|
tenantId: string;
|
|
166
164
|
projectId: string;
|
|
167
165
|
agentId: string;
|
|
166
|
+
createdAt: string;
|
|
167
|
+
updatedAt: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -204,18 +204,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
headers: Record<string, string> | null;
|
|
208
207
|
id: string;
|
|
209
|
-
createdAt: string;
|
|
210
|
-
updatedAt: string;
|
|
211
208
|
tenantId: string;
|
|
212
209
|
projectId: string;
|
|
213
210
|
agentId: string;
|
|
214
|
-
|
|
211
|
+
createdAt: string;
|
|
212
|
+
updatedAt: string;
|
|
215
213
|
toolId: string;
|
|
214
|
+
headers: Record<string, string> | null;
|
|
216
215
|
toolPolicies: Record<string, {
|
|
217
216
|
needsApproval?: boolean;
|
|
218
217
|
}> | null;
|
|
218
|
+
subAgentId: string;
|
|
219
219
|
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -248,18 +248,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
headers: Record<string, string> | null;
|
|
252
251
|
id: string;
|
|
253
|
-
createdAt: string;
|
|
254
|
-
updatedAt: string;
|
|
255
252
|
tenantId: string;
|
|
256
253
|
projectId: string;
|
|
257
254
|
agentId: string;
|
|
258
|
-
|
|
255
|
+
createdAt: string;
|
|
256
|
+
updatedAt: string;
|
|
259
257
|
toolId: string;
|
|
258
|
+
headers: Record<string, string> | null;
|
|
260
259
|
toolPolicies: Record<string, {
|
|
261
260
|
needsApproval?: boolean;
|
|
262
261
|
}> | null;
|
|
262
|
+
subAgentId: string;
|
|
263
263
|
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
headers: Record<string, string> | null;
|
|
13
12
|
id: string;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
13
|
tenantId: string;
|
|
17
14
|
projectId: string;
|
|
18
15
|
agentId: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
headers: Record<string, string> | null;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
48
47
|
id: string;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
updatedAt: string;
|
|
51
48
|
tenantId: string;
|
|
52
49
|
projectId: string;
|
|
53
50
|
agentId: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
headers: Record<string, string> | null;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
61
60
|
id: string;
|
|
62
|
-
createdAt: string;
|
|
63
|
-
updatedAt: string;
|
|
64
61
|
tenantId: string;
|
|
65
62
|
projectId: string;
|
|
66
63
|
agentId: string;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
headers: Record<string, string> | null;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
214
213
|
id: string;
|
|
215
|
-
createdAt: string;
|
|
216
|
-
updatedAt: string;
|
|
217
214
|
tenantId: string;
|
|
218
215
|
projectId: string;
|
|
219
216
|
agentId: string;
|
|
217
|
+
createdAt: string;
|
|
218
|
+
updatedAt: string;
|
|
219
|
+
headers: Record<string, string> | null;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
231
230
|
id: string;
|
|
232
|
-
createdAt: string;
|
|
233
|
-
updatedAt: string;
|
|
234
231
|
tenantId: string;
|
|
235
232
|
projectId: string;
|
|
236
233
|
agentId: string;
|
|
234
|
+
createdAt: string;
|
|
235
|
+
updatedAt: string;
|
|
236
|
+
headers: Record<string, string> | null;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
252
251
|
id: string;
|
|
253
|
-
createdAt: string;
|
|
254
|
-
updatedAt: string;
|
|
255
252
|
tenantId: string;
|
|
256
253
|
projectId: string;
|
|
257
254
|
agentId: string;
|
|
255
|
+
createdAt: string;
|
|
256
|
+
updatedAt: string;
|
|
257
|
+
headers: Record<string, string> | null;
|
|
258
258
|
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name: string;
|
|
13
12
|
id: string;
|
|
14
|
-
|
|
15
|
-
updatedAt: string;
|
|
13
|
+
name: string;
|
|
16
14
|
description: string | null;
|
|
17
15
|
tenantId: string;
|
|
18
16
|
projectId: string;
|
|
19
17
|
agentId: string;
|
|
18
|
+
prompt: string | null;
|
|
19
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -34,20 +34,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
34
|
stopWhen: {
|
|
35
35
|
stepCountIs?: number | undefined;
|
|
36
36
|
} | null;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
|
-
name: string;
|
|
44
43
|
id: string;
|
|
45
|
-
|
|
46
|
-
updatedAt: string;
|
|
44
|
+
name: string;
|
|
47
45
|
description: string | null;
|
|
48
46
|
tenantId: string;
|
|
49
47
|
projectId: string;
|
|
50
48
|
agentId: string;
|
|
49
|
+
prompt: string | null;
|
|
50
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
51
51
|
models: {
|
|
52
52
|
base?: {
|
|
53
53
|
model?: string | undefined;
|
|
@@ -65,8 +65,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
65
65
|
stopWhen: {
|
|
66
66
|
stepCountIs?: number | undefined;
|
|
67
67
|
} | null;
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
createdAt: string;
|
|
69
|
+
updatedAt: string;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -109,14 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
|
-
name: string;
|
|
113
112
|
id: string;
|
|
114
|
-
|
|
115
|
-
updatedAt: string;
|
|
113
|
+
name: string;
|
|
116
114
|
description: string | null;
|
|
117
115
|
tenantId: string;
|
|
118
116
|
projectId: string;
|
|
119
117
|
agentId: string;
|
|
118
|
+
prompt: string | null;
|
|
119
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
120
120
|
models: {
|
|
121
121
|
base?: {
|
|
122
122
|
model?: string | undefined;
|
|
@@ -134,8 +134,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
134
134
|
stopWhen: {
|
|
135
135
|
stepCountIs?: number | undefined;
|
|
136
136
|
} | null;
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
createdAt: string;
|
|
138
|
+
updatedAt: string;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -20,14 +20,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
headers: Record<string, string> | null;
|
|
24
|
-
name: string;
|
|
25
23
|
id: string;
|
|
26
|
-
|
|
27
|
-
updatedAt: string;
|
|
24
|
+
name: string;
|
|
28
25
|
description: string | null;
|
|
29
26
|
tenantId: string;
|
|
30
27
|
projectId: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
@@ -78,14 +78,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
headers: Record<string, string> | null;
|
|
82
|
-
name: string;
|
|
83
81
|
id: string;
|
|
84
|
-
|
|
85
|
-
updatedAt: string;
|
|
82
|
+
name: string;
|
|
86
83
|
description: string | null;
|
|
87
84
|
tenantId: string;
|
|
88
85
|
projectId: string;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
updatedAt: string;
|
|
88
|
+
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
@@ -135,18 +135,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
-
headers: Record<string, string> | null;
|
|
139
138
|
id: string;
|
|
140
|
-
createdAt: string;
|
|
141
|
-
updatedAt: string;
|
|
142
139
|
tenantId: string;
|
|
143
140
|
projectId: string;
|
|
144
141
|
agentId: string;
|
|
145
|
-
|
|
142
|
+
createdAt: string;
|
|
143
|
+
updatedAt: string;
|
|
146
144
|
toolId: string;
|
|
145
|
+
headers: Record<string, string> | null;
|
|
147
146
|
toolPolicies: Record<string, {
|
|
148
147
|
needsApproval?: boolean;
|
|
149
148
|
}> | null;
|
|
149
|
+
subAgentId: string;
|
|
150
150
|
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -154,18 +154,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
-
headers: Record<string, string> | null;
|
|
158
157
|
id: string;
|
|
159
|
-
createdAt: string;
|
|
160
|
-
updatedAt: string;
|
|
161
158
|
tenantId: string;
|
|
162
159
|
projectId: string;
|
|
163
160
|
agentId: string;
|
|
164
|
-
|
|
161
|
+
createdAt: string;
|
|
162
|
+
updatedAt: string;
|
|
165
163
|
toolId: string;
|
|
164
|
+
headers: Record<string, string> | null;
|
|
166
165
|
toolPolicies: Record<string, {
|
|
167
166
|
needsApproval?: boolean;
|
|
168
167
|
}> | null;
|
|
168
|
+
subAgentId: string;
|
|
169
169
|
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
@@ -182,18 +182,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
-
headers: Record<string, string> | null;
|
|
186
185
|
id: string;
|
|
187
|
-
createdAt: string;
|
|
188
|
-
updatedAt: string;
|
|
189
186
|
tenantId: string;
|
|
190
187
|
projectId: string;
|
|
191
188
|
agentId: string;
|
|
192
|
-
|
|
189
|
+
createdAt: string;
|
|
190
|
+
updatedAt: string;
|
|
193
191
|
toolId: string;
|
|
192
|
+
headers: Record<string, string> | null;
|
|
194
193
|
toolPolicies: Record<string, {
|
|
195
194
|
needsApproval?: boolean;
|
|
196
195
|
}> | null;
|
|
196
|
+
subAgentId: string;
|
|
197
197
|
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -202,14 +202,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
headers: Record<string, string> | null;
|
|
206
|
-
name: string;
|
|
207
205
|
id: string;
|
|
208
|
-
|
|
209
|
-
updatedAt: string;
|
|
206
|
+
name: string;
|
|
210
207
|
description: string | null;
|
|
211
208
|
tenantId: string;
|
|
212
209
|
projectId: string;
|
|
210
|
+
createdAt: string;
|
|
211
|
+
updatedAt: string;
|
|
212
|
+
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "
|
|
43
|
+
source: "query" | "body" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "
|
|
49
|
+
source: "literal" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -8,28 +8,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
name: string | null;
|
|
12
11
|
id: string;
|
|
13
|
-
|
|
14
|
-
expiresAt: string | null;
|
|
15
|
-
updatedAt: string;
|
|
12
|
+
name: string | null;
|
|
16
13
|
tenantId: string;
|
|
17
14
|
projectId: string;
|
|
18
15
|
agentId: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
expiresAt: string | null;
|
|
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
|
-
name: string | null;
|
|
26
25
|
id: string;
|
|
27
|
-
|
|
28
|
-
expiresAt: string | null;
|
|
29
|
-
updatedAt: string;
|
|
26
|
+
name: string | null;
|
|
30
27
|
tenantId: string;
|
|
31
28
|
projectId: string;
|
|
32
29
|
agentId: string;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
expiresAt: string | null;
|
|
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
|
-
name: string | null;
|
|
43
42
|
id: string;
|
|
44
|
-
|
|
45
|
-
expiresAt: string | null;
|
|
46
|
-
updatedAt: string;
|
|
43
|
+
name: string | null;
|
|
47
44
|
tenantId: string;
|
|
48
45
|
projectId: string;
|
|
49
46
|
agentId: string;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
expiresAt: string | null;
|
|
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
|
-
name: string | null;
|
|
70
69
|
id: string;
|
|
71
|
-
|
|
72
|
-
expiresAt: string | null;
|
|
73
|
-
updatedAt: string;
|
|
70
|
+
name: string | null;
|
|
74
71
|
tenantId: string;
|
|
75
72
|
projectId: string;
|
|
76
73
|
agentId: string;
|
|
74
|
+
createdAt: string;
|
|
75
|
+
updatedAt: string;
|
|
76
|
+
expiresAt: string | null;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -5,14 +5,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
5
5
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
|
-
type: AppType;
|
|
9
|
-
name: string;
|
|
10
8
|
id: string;
|
|
11
|
-
|
|
12
|
-
updatedAt: string;
|
|
9
|
+
name: string;
|
|
13
10
|
description: string | null;
|
|
14
11
|
tenantId: string | null;
|
|
15
12
|
projectId: string | null;
|
|
13
|
+
prompt: string | null;
|
|
14
|
+
type: AppType;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
16
17
|
enabled: boolean;
|
|
17
18
|
config: {
|
|
18
19
|
type: "web_client";
|
|
@@ -52,14 +53,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
52
53
|
};
|
|
53
54
|
}>;
|
|
54
55
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
55
|
-
type: AppType;
|
|
56
|
-
name: string;
|
|
57
56
|
id: string;
|
|
58
|
-
|
|
59
|
-
updatedAt: string;
|
|
57
|
+
name: string;
|
|
60
58
|
description: string | null;
|
|
61
59
|
tenantId: string | null;
|
|
62
60
|
projectId: string | null;
|
|
61
|
+
prompt: string | null;
|
|
62
|
+
type: AppType;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
63
65
|
enabled: boolean;
|
|
64
66
|
config: {
|
|
65
67
|
type: "web_client";
|
|
@@ -109,6 +111,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
109
111
|
type: AppType;
|
|
110
112
|
defaultProjectId: string | null;
|
|
111
113
|
defaultAgentId: string | null;
|
|
114
|
+
prompt: string | null;
|
|
112
115
|
enabled: boolean;
|
|
113
116
|
config: {
|
|
114
117
|
type: "web_client";
|
|
@@ -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
|
-
metadata: ConversationMetadata | null;
|
|
20
|
-
userId: string | null;
|
|
21
19
|
id: string;
|
|
22
|
-
createdAt: string;
|
|
23
|
-
updatedAt: string;
|
|
24
|
-
title: string | null;
|
|
25
20
|
tenantId: string;
|
|
26
21
|
projectId: string;
|
|
27
22
|
agentId: string | null;
|
|
23
|
+
title: string | null;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
metadata: ConversationMetadata | null;
|
|
28
27
|
ref: {
|
|
29
28
|
type: "commit" | "tag" | "branch";
|
|
30
29
|
name: string;
|
|
31
30
|
hash: string;
|
|
32
31
|
} | null;
|
|
32
|
+
userId: 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
|
-
metadata: ConversationMetadata | null;
|
|
89
|
-
userId: string | null;
|
|
90
88
|
id: string;
|
|
91
|
-
createdAt: string;
|
|
92
|
-
updatedAt: string;
|
|
93
|
-
title: string | null;
|
|
94
89
|
tenantId: string;
|
|
95
90
|
projectId: string;
|
|
96
91
|
agentId: string | null;
|
|
92
|
+
title: string | null;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
updatedAt: string;
|
|
95
|
+
metadata: ConversationMetadata | null;
|
|
97
96
|
ref: {
|
|
98
97
|
type: "commit" | "tag" | "branch";
|
|
99
98
|
name: string;
|
|
100
99
|
hash: string;
|
|
101
100
|
} | null;
|
|
101
|
+
userId: 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
|
-
metadata: ConversationMetadata | null;
|
|
125
|
-
userId: string | null;
|
|
126
124
|
id: string;
|
|
127
|
-
createdAt: string;
|
|
128
|
-
updatedAt: string;
|
|
129
|
-
title: string | null;
|
|
130
125
|
tenantId: string;
|
|
131
126
|
projectId: string;
|
|
132
127
|
agentId: string | null;
|
|
128
|
+
title: string | null;
|
|
129
|
+
createdAt: string;
|
|
130
|
+
updatedAt: string;
|
|
131
|
+
metadata: ConversationMetadata | null;
|
|
133
132
|
ref: {
|
|
134
133
|
type: "commit" | "tag" | "branch";
|
|
135
134
|
name: string;
|
|
136
135
|
hash: string;
|
|
137
136
|
} | null;
|
|
137
|
+
userId: 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
|
-
metadata: ConversationMetadata | null;
|
|
157
|
-
userId: string | null;
|
|
158
156
|
id: string;
|
|
159
|
-
createdAt: string;
|
|
160
|
-
updatedAt: string;
|
|
161
|
-
title: string | null;
|
|
162
157
|
tenantId: string;
|
|
163
158
|
projectId: string;
|
|
164
159
|
agentId: string | null;
|
|
160
|
+
title: string | null;
|
|
161
|
+
createdAt: string;
|
|
162
|
+
updatedAt: string;
|
|
163
|
+
metadata: ConversationMetadata | null;
|
|
165
164
|
ref: {
|
|
166
165
|
type: "commit" | "tag" | "branch";
|
|
167
166
|
name: string;
|
|
168
167
|
hash: string;
|
|
169
168
|
} | null;
|
|
169
|
+
userId: string | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|