@inkeep/agents-core 0.0.0-dev-20260401162720 → 0.0.0-dev-20260401173131
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/data-access/manage/agents.d.ts +20 -20
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- 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 +18 -18
- package/dist/data-access/manage/skills.d.ts +11 -11
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgentRelations.d.ts +32 -32
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +39 -39
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +6 -6
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +445 -445
- package/dist/db/runtime/runtime-schema.d.ts +376 -376
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +37 -37
- package/dist/validation/schemas.d.ts +831 -831
- package/package.json +1 -1
|
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
|
-
headers: Record<string, string> | null;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
12
|
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
18
14
|
agentId: string;
|
|
19
15
|
subAgentId: string;
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
id: string;
|
|
48
|
-
headers: Record<string, string> | null;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
updatedAt: string;
|
|
51
|
-
projectId: string;
|
|
52
47
|
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
53
49
|
agentId: string;
|
|
54
50
|
subAgentId: string;
|
|
51
|
+
id: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
|
-
headers: Record<string, string> | null;
|
|
62
|
-
createdAt: string;
|
|
63
|
-
updatedAt: string;
|
|
64
|
-
projectId: string;
|
|
65
60
|
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
66
62
|
agentId: string;
|
|
67
63
|
subAgentId: string;
|
|
64
|
+
id: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -222,14 +222,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
222
222
|
headers?: Record<string, string> | null;
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
|
-
id: string;
|
|
226
|
-
headers: Record<string, string> | null;
|
|
227
|
-
createdAt: string;
|
|
228
|
-
updatedAt: string;
|
|
229
|
-
projectId: string;
|
|
230
225
|
tenantId: string;
|
|
226
|
+
projectId: string;
|
|
231
227
|
agentId: string;
|
|
232
228
|
subAgentId: string;
|
|
229
|
+
id: string;
|
|
230
|
+
createdAt: string;
|
|
231
|
+
updatedAt: string;
|
|
232
|
+
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -239,14 +239,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
239
239
|
scopes: SubAgentScopeConfig;
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
|
-
id: string;
|
|
243
|
-
headers: Record<string, string> | null;
|
|
244
|
-
createdAt: string;
|
|
245
|
-
updatedAt: string;
|
|
246
|
-
projectId: string;
|
|
247
242
|
tenantId: string;
|
|
243
|
+
projectId: string;
|
|
248
244
|
agentId: string;
|
|
249
245
|
subAgentId: string;
|
|
246
|
+
id: string;
|
|
247
|
+
createdAt: string;
|
|
248
|
+
updatedAt: string;
|
|
249
|
+
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -260,14 +260,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
260
260
|
headers?: Record<string, string> | null;
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
|
-
id: string;
|
|
264
|
-
headers: Record<string, string> | null;
|
|
265
|
-
createdAt: string;
|
|
266
|
-
updatedAt: string;
|
|
267
|
-
projectId: string;
|
|
268
263
|
tenantId: string;
|
|
264
|
+
projectId: string;
|
|
269
265
|
agentId: string;
|
|
270
266
|
subAgentId: string;
|
|
267
|
+
id: string;
|
|
268
|
+
createdAt: string;
|
|
269
|
+
updatedAt: string;
|
|
270
|
+
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,13 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
description: string | null;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
12
16
|
id: string;
|
|
13
17
|
name: string;
|
|
14
|
-
description: string | null;
|
|
15
18
|
createdAt: string;
|
|
16
19
|
updatedAt: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
20
|
models: {
|
|
20
21
|
base?: {
|
|
21
22
|
model?: string | undefined;
|
|
@@ -39,20 +40,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
40
|
stopWhen: {
|
|
40
41
|
stepCountIs?: number | undefined;
|
|
41
42
|
} | null;
|
|
42
|
-
agentId: string;
|
|
43
43
|
prompt: string | null;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
|
+
description: string | null;
|
|
50
|
+
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
49
53
|
id: string;
|
|
50
54
|
name: string;
|
|
51
|
-
description: string | null;
|
|
52
55
|
createdAt: string;
|
|
53
56
|
updatedAt: string;
|
|
54
|
-
projectId: string;
|
|
55
|
-
tenantId: string;
|
|
56
57
|
models: {
|
|
57
58
|
base?: {
|
|
58
59
|
model?: string | undefined;
|
|
@@ -76,7 +77,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
76
77
|
stopWhen: {
|
|
77
78
|
stepCountIs?: number | undefined;
|
|
78
79
|
} | null;
|
|
79
|
-
agentId: string;
|
|
80
80
|
prompt: string | null;
|
|
81
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
82
82
|
}[]>;
|
|
@@ -127,13 +127,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
|
+
description: string | null;
|
|
131
|
+
tenantId: string;
|
|
132
|
+
projectId: string;
|
|
133
|
+
agentId: string;
|
|
130
134
|
id: string;
|
|
131
135
|
name: string;
|
|
132
|
-
description: string | null;
|
|
133
136
|
createdAt: string;
|
|
134
137
|
updatedAt: string;
|
|
135
|
-
projectId: string;
|
|
136
|
-
tenantId: string;
|
|
137
138
|
models: {
|
|
138
139
|
base?: {
|
|
139
140
|
model?: string | undefined;
|
|
@@ -157,7 +158,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
157
158
|
stopWhen: {
|
|
158
159
|
stepCountIs?: number | undefined;
|
|
159
160
|
} | null;
|
|
160
|
-
agentId: string;
|
|
161
161
|
prompt: string | null;
|
|
162
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
163
163
|
}>;
|
|
@@ -20,24 +20,24 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
+
description: string | null;
|
|
24
|
+
tenantId: string;
|
|
25
|
+
projectId: string;
|
|
23
26
|
id: string;
|
|
24
27
|
name: string;
|
|
25
|
-
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
26
31
|
config: {
|
|
27
32
|
type: "mcp";
|
|
28
33
|
mcp: ToolMcpConfig;
|
|
29
34
|
};
|
|
30
35
|
credentialReferenceId: string | null;
|
|
31
36
|
credentialScope: string;
|
|
32
|
-
headers: Record<string, string> | null;
|
|
33
37
|
imageUrl: string | null;
|
|
34
38
|
capabilities: ToolServerCapabilities | null;
|
|
35
39
|
lastError: string | null;
|
|
36
40
|
isWorkApp: boolean;
|
|
37
|
-
createdAt: string;
|
|
38
|
-
updatedAt: string;
|
|
39
|
-
projectId: string;
|
|
40
|
-
tenantId: string;
|
|
41
41
|
} | null>;
|
|
42
42
|
declare const getMcpToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
43
43
|
scopes: ProjectScopeConfig;
|
|
@@ -78,24 +78,24 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
+
description: string | null;
|
|
82
|
+
tenantId: string;
|
|
83
|
+
projectId: string;
|
|
81
84
|
id: string;
|
|
82
85
|
name: string;
|
|
83
|
-
|
|
86
|
+
createdAt: string;
|
|
87
|
+
updatedAt: string;
|
|
88
|
+
headers: Record<string, string> | null;
|
|
84
89
|
config: {
|
|
85
90
|
type: "mcp";
|
|
86
91
|
mcp: ToolMcpConfig;
|
|
87
92
|
};
|
|
88
93
|
credentialReferenceId: string | null;
|
|
89
94
|
credentialScope: string;
|
|
90
|
-
headers: Record<string, string> | null;
|
|
91
95
|
imageUrl: string | null;
|
|
92
96
|
capabilities: ToolServerCapabilities | null;
|
|
93
97
|
lastError: string | null;
|
|
94
98
|
isWorkApp: boolean;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
updatedAt: string;
|
|
97
|
-
projectId: string;
|
|
98
|
-
tenantId: string;
|
|
99
99
|
}>;
|
|
100
100
|
declare const updateTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
101
101
|
scopes: ProjectScopeConfig;
|
|
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
-
id: string;
|
|
139
|
-
headers: Record<string, string> | null;
|
|
140
|
-
createdAt: string;
|
|
141
|
-
updatedAt: string;
|
|
142
|
-
projectId: string;
|
|
143
138
|
tenantId: string;
|
|
144
|
-
|
|
139
|
+
projectId: string;
|
|
145
140
|
agentId: string;
|
|
146
141
|
subAgentId: string;
|
|
147
|
-
|
|
142
|
+
toolId: string;
|
|
143
|
+
id: string;
|
|
144
|
+
createdAt: string;
|
|
145
|
+
updatedAt: string;
|
|
146
|
+
headers: Record<string, string> | null;
|
|
148
147
|
toolPolicies: Record<string, {
|
|
149
148
|
needsApproval?: boolean;
|
|
150
149
|
}> | null;
|
|
150
|
+
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
-
id: string;
|
|
158
|
-
headers: Record<string, string> | null;
|
|
159
|
-
createdAt: string;
|
|
160
|
-
updatedAt: string;
|
|
161
|
-
projectId: string;
|
|
162
157
|
tenantId: string;
|
|
163
|
-
|
|
158
|
+
projectId: string;
|
|
164
159
|
agentId: string;
|
|
165
160
|
subAgentId: string;
|
|
166
|
-
|
|
161
|
+
toolId: string;
|
|
162
|
+
id: string;
|
|
163
|
+
createdAt: string;
|
|
164
|
+
updatedAt: string;
|
|
165
|
+
headers: Record<string, string> | null;
|
|
167
166
|
toolPolicies: Record<string, {
|
|
168
167
|
needsApproval?: boolean;
|
|
169
168
|
}> | null;
|
|
169
|
+
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
-
id: string;
|
|
186
|
-
headers: Record<string, string> | null;
|
|
187
|
-
createdAt: string;
|
|
188
|
-
updatedAt: string;
|
|
189
|
-
projectId: string;
|
|
190
185
|
tenantId: string;
|
|
191
|
-
|
|
186
|
+
projectId: string;
|
|
192
187
|
agentId: string;
|
|
193
188
|
subAgentId: string;
|
|
194
|
-
|
|
189
|
+
toolId: string;
|
|
190
|
+
id: string;
|
|
191
|
+
createdAt: string;
|
|
192
|
+
updatedAt: string;
|
|
193
|
+
headers: Record<string, string> | null;
|
|
195
194
|
toolPolicies: Record<string, {
|
|
196
195
|
needsApproval?: boolean;
|
|
197
196
|
}> | null;
|
|
197
|
+
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -202,24 +202,24 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
+
description: string | null;
|
|
206
|
+
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
205
208
|
id: string;
|
|
206
209
|
name: string;
|
|
207
|
-
|
|
210
|
+
createdAt: string;
|
|
211
|
+
updatedAt: string;
|
|
212
|
+
headers: Record<string, string> | null;
|
|
208
213
|
config: {
|
|
209
214
|
type: "mcp";
|
|
210
215
|
mcp: ToolMcpConfig;
|
|
211
216
|
};
|
|
212
217
|
credentialReferenceId: string | null;
|
|
213
218
|
credentialScope: string;
|
|
214
|
-
headers: Record<string, string> | null;
|
|
215
219
|
imageUrl: string | null;
|
|
216
220
|
capabilities: ToolServerCapabilities | null;
|
|
217
221
|
lastError: string | null;
|
|
218
222
|
isWorkApp: boolean;
|
|
219
|
-
createdAt: string;
|
|
220
|
-
updatedAt: string;
|
|
221
|
-
projectId: string;
|
|
222
|
-
tenantId: string;
|
|
223
223
|
}>;
|
|
224
224
|
//#endregion
|
|
225
225
|
export { addToolToAgent, createTool, dbResultToMcpTool, dbResultToMcpToolSkeleton, deleteTool, getMcpToolById, getToolById, listTools, removeToolFromAgent, updateTool, upsertSubAgentToolRelation, upsertTool };
|
|
@@ -8,13 +8,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
13
|
+
agentId: string;
|
|
11
14
|
id: string;
|
|
12
15
|
name: string | null;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
agentId: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
@@ -22,13 +22,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
22
22
|
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
+
tenantId: string;
|
|
26
|
+
projectId: string;
|
|
27
|
+
agentId: string;
|
|
25
28
|
id: string;
|
|
26
29
|
name: string | null;
|
|
27
30
|
createdAt: string;
|
|
28
31
|
updatedAt: string;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
|
-
agentId: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
@@ -39,13 +39,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
+
tenantId: string;
|
|
43
|
+
projectId: string;
|
|
44
|
+
agentId: string;
|
|
42
45
|
id: string;
|
|
43
46
|
name: string | null;
|
|
44
47
|
createdAt: string;
|
|
45
48
|
updatedAt: string;
|
|
46
|
-
projectId: string;
|
|
47
|
-
tenantId: string;
|
|
48
|
-
agentId: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
@@ -66,13 +66,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
+
tenantId: string;
|
|
70
|
+
projectId: string;
|
|
71
|
+
agentId: string;
|
|
69
72
|
id: string;
|
|
70
73
|
name: string | null;
|
|
71
74
|
createdAt: string;
|
|
72
75
|
updatedAt: string;
|
|
73
|
-
projectId: string;
|
|
74
|
-
tenantId: string;
|
|
75
|
-
agentId: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
@@ -5,9 +5,16 @@ 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
|
+
enabled: boolean;
|
|
9
|
+
type: AppType;
|
|
10
|
+
description: string | null;
|
|
11
|
+
tenantId: string | null;
|
|
12
|
+
projectId: string | null;
|
|
8
13
|
id: string;
|
|
9
14
|
name: string;
|
|
10
|
-
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
prompt: string | null;
|
|
11
18
|
config: {
|
|
12
19
|
type: "web_client";
|
|
13
20
|
webClient: {
|
|
@@ -25,13 +32,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
25
32
|
type: "api";
|
|
26
33
|
api: Record<string, never>;
|
|
27
34
|
};
|
|
28
|
-
createdAt: string;
|
|
29
|
-
updatedAt: string;
|
|
30
|
-
projectId: string | null;
|
|
31
|
-
tenantId: string | null;
|
|
32
|
-
type: AppType;
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
prompt: string | null;
|
|
35
35
|
lastUsedAt: string | null;
|
|
36
36
|
defaultProjectId: string | null;
|
|
37
37
|
defaultAgentId: string | null;
|
|
@@ -61,9 +61,16 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
type: AppType;
|
|
66
|
+
description: string | null;
|
|
67
|
+
tenantId: string | null;
|
|
68
|
+
projectId: string | null;
|
|
64
69
|
id: string;
|
|
65
70
|
name: string;
|
|
66
|
-
|
|
71
|
+
createdAt: string;
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
prompt: string | null;
|
|
67
74
|
config: {
|
|
68
75
|
type: "web_client";
|
|
69
76
|
webClient: {
|
|
@@ -81,13 +88,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
81
88
|
type: "api";
|
|
82
89
|
api: Record<string, never>;
|
|
83
90
|
};
|
|
84
|
-
createdAt: string;
|
|
85
|
-
updatedAt: string;
|
|
86
|
-
projectId: string | null;
|
|
87
|
-
tenantId: string | null;
|
|
88
|
-
type: AppType;
|
|
89
|
-
enabled: boolean;
|
|
90
|
-
prompt: string | null;
|
|
91
91
|
lastUsedAt: string | null;
|
|
92
92
|
defaultProjectId: string | null;
|
|
93
93
|
defaultAgentId: string | null;
|
|
@@ -15,19 +15,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
+
title: string | null;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
agentId: string | null;
|
|
18
22
|
id: string;
|
|
19
23
|
createdAt: string;
|
|
20
24
|
updatedAt: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
tenantId: string;
|
|
23
|
-
title: string | null;
|
|
24
|
-
userId: string | null;
|
|
25
|
-
agentId: string | null;
|
|
26
25
|
ref: {
|
|
27
26
|
type: "commit" | "tag" | "branch";
|
|
28
27
|
name: string;
|
|
29
28
|
hash: string;
|
|
30
29
|
} | null;
|
|
30
|
+
userId: string | null;
|
|
31
31
|
metadata: ConversationMetadata | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
@@ -84,19 +84,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
84
84
|
scopes: ProjectScopeConfig;
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
|
+
title: string | null;
|
|
88
|
+
tenantId: string;
|
|
89
|
+
projectId: string;
|
|
90
|
+
agentId: string | null;
|
|
87
91
|
id: string;
|
|
88
92
|
createdAt: string;
|
|
89
93
|
updatedAt: string;
|
|
90
|
-
projectId: string;
|
|
91
|
-
tenantId: string;
|
|
92
|
-
title: string | null;
|
|
93
|
-
userId: string | null;
|
|
94
|
-
agentId: string | null;
|
|
95
94
|
ref: {
|
|
96
95
|
type: "commit" | "tag" | "branch";
|
|
97
96
|
name: string;
|
|
98
97
|
hash: string;
|
|
99
98
|
} | null;
|
|
99
|
+
userId: string | null;
|
|
100
100
|
metadata: ConversationMetadata | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
@@ -120,19 +120,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
120
120
|
metadata?: ConversationMetadata | null | undefined;
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
|
+
title: string | null;
|
|
124
|
+
tenantId: string;
|
|
125
|
+
projectId: string;
|
|
126
|
+
agentId: string | null;
|
|
123
127
|
id: string;
|
|
124
128
|
createdAt: string;
|
|
125
129
|
updatedAt: string;
|
|
126
|
-
projectId: string;
|
|
127
|
-
tenantId: string;
|
|
128
|
-
title: string | null;
|
|
129
|
-
userId: string | null;
|
|
130
|
-
agentId: string | null;
|
|
131
130
|
ref: {
|
|
132
131
|
type: "commit" | "tag" | "branch";
|
|
133
132
|
name: string;
|
|
134
133
|
hash: string;
|
|
135
134
|
} | null;
|
|
135
|
+
userId: string | null;
|
|
136
136
|
metadata: ConversationMetadata | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
@@ -152,19 +152,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
+
title: string | null;
|
|
156
|
+
tenantId: string;
|
|
157
|
+
projectId: string;
|
|
158
|
+
agentId: string | null;
|
|
155
159
|
id: string;
|
|
156
160
|
createdAt: string;
|
|
157
161
|
updatedAt: string;
|
|
158
|
-
projectId: string;
|
|
159
|
-
tenantId: string;
|
|
160
|
-
title: string | null;
|
|
161
|
-
userId: string | null;
|
|
162
|
-
agentId: string | null;
|
|
163
162
|
ref: {
|
|
164
163
|
type: "commit" | "tag" | "branch";
|
|
165
164
|
name: string;
|
|
166
165
|
hash: string;
|
|
167
166
|
} | null;
|
|
167
|
+
userId: string | null;
|
|
168
168
|
metadata: ConversationMetadata | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
@@ -10,11 +10,11 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
13
15
|
id: string;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
18
|
metadata: MessageMetadata | null;
|
|
19
19
|
role: string;
|
|
20
20
|
content: MessageContent;
|
|
@@ -144,11 +144,11 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
144
144
|
scopes: ProjectScopeConfig;
|
|
145
145
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
146
146
|
}) => Promise<{
|
|
147
|
+
tenantId: string;
|
|
148
|
+
projectId: string;
|
|
147
149
|
id: string;
|
|
148
150
|
createdAt: string;
|
|
149
151
|
updatedAt: string;
|
|
150
|
-
projectId: string;
|
|
151
|
-
tenantId: string;
|
|
152
152
|
metadata: MessageMetadata | null;
|
|
153
153
|
role: string;
|
|
154
154
|
content: MessageContent;
|
|
@@ -197,11 +197,11 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
197
197
|
scopes: ProjectScopeConfig;
|
|
198
198
|
messageId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
+
tenantId: string;
|
|
201
|
+
projectId: string;
|
|
200
202
|
id: string;
|
|
201
203
|
createdAt: string;
|
|
202
204
|
updatedAt: string;
|
|
203
|
-
projectId: string;
|
|
204
|
-
tenantId: string;
|
|
205
205
|
metadata: MessageMetadata | null;
|
|
206
206
|
role: string;
|
|
207
207
|
content: MessageContent;
|
|
@@ -7,13 +7,13 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
|
|
8
8
|
//#region src/data-access/runtime/tasks.d.ts
|
|
9
9
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
10
|
-
id: string;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
updatedAt: string;
|
|
13
|
-
projectId: string;
|
|
14
10
|
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
15
12
|
agentId: string;
|
|
16
13
|
subAgentId: string;
|
|
14
|
+
id: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
17
|
ref: {
|
|
18
18
|
type: "commit" | "tag" | "branch";
|
|
19
19
|
name: string;
|