@inkeep/agents-core 0.79.0 → 0.79.1
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/permissions.d.ts +9 -9
- package/dist/data-access/index.d.ts +2 -1
- package/dist/data-access/index.js +2 -1
- package/dist/data-access/manage/agents.d.ts +31 -31
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +8 -8
- package/dist/data-access/manage/skills.d.ts +8 -8
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +9 -9
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +32 -32
- package/dist/data-access/runtime/events.d.ts +5 -5
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +24 -24
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/data-access/runtime/toolApprovalDecisions.d.ts +37 -0
- package/dist/data-access/runtime/toolApprovalDecisions.js +76 -0
- package/dist/db/manage/manage-schema.d.ts +506 -506
- package/dist/db/runtime/runtime-schema.d.ts +596 -448
- package/dist/db/runtime/runtime-schema.js +30 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +48 -48
- package/dist/validation/schemas.d.ts +775 -775
- package/drizzle/runtime/0044_productive_bromley.sql +12 -0
- package/drizzle/runtime/meta/0044_snapshot.json +6386 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
|
+
agentId: string;
|
|
15
17
|
projectId: string;
|
|
16
18
|
tenantId: string;
|
|
17
|
-
agentId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
|
+
agentId: string;
|
|
50
52
|
projectId: string;
|
|
51
53
|
tenantId: string;
|
|
52
|
-
agentId: string;
|
|
53
54
|
subAgentId: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
|
+
agentId: string;
|
|
63
65
|
projectId: string;
|
|
64
66
|
tenantId: string;
|
|
65
|
-
agentId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -189,11 +189,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
189
189
|
id: string;
|
|
190
190
|
createdAt: string;
|
|
191
191
|
updatedAt: string;
|
|
192
|
+
headers: Record<string, string> | null;
|
|
193
|
+
agentId: string;
|
|
192
194
|
projectId: string;
|
|
193
195
|
tenantId: string;
|
|
194
|
-
agentId: string;
|
|
195
196
|
subAgentId: string;
|
|
196
|
-
headers: Record<string, string> | null;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -206,11 +206,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
+
headers: Record<string, string> | null;
|
|
210
|
+
agentId: string;
|
|
209
211
|
projectId: string;
|
|
210
212
|
tenantId: string;
|
|
211
|
-
agentId: string;
|
|
212
213
|
subAgentId: string;
|
|
213
|
-
headers: Record<string, string> | null;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
216
216
|
/**
|
|
@@ -227,11 +227,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
227
227
|
id: string;
|
|
228
228
|
createdAt: string;
|
|
229
229
|
updatedAt: string;
|
|
230
|
+
headers: Record<string, string> | null;
|
|
231
|
+
agentId: string;
|
|
230
232
|
projectId: string;
|
|
231
233
|
tenantId: string;
|
|
232
|
-
agentId: string;
|
|
233
234
|
subAgentId: string;
|
|
234
|
-
headers: Record<string, string> | null;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
agentId: string;
|
|
15
16
|
projectId: string;
|
|
16
17
|
tenantId: string;
|
|
17
|
-
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
+
agentId: string;
|
|
50
51
|
projectId: string;
|
|
51
52
|
tenantId: string;
|
|
52
|
-
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
+
agentId: string;
|
|
63
64
|
projectId: string;
|
|
64
65
|
tenantId: string;
|
|
65
|
-
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
+
agentId: string;
|
|
132
133
|
projectId: string;
|
|
133
134
|
tenantId: string;
|
|
134
|
-
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
+
agentId: string;
|
|
151
152
|
projectId: string;
|
|
152
153
|
tenantId: string;
|
|
153
|
-
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
+
agentId: string;
|
|
165
166
|
projectId: string;
|
|
166
167
|
tenantId: string;
|
|
167
|
-
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -207,16 +207,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
|
+
agentId: string;
|
|
210
212
|
projectId: string;
|
|
211
213
|
tenantId: string;
|
|
212
|
-
agentId: string;
|
|
213
214
|
subAgentId: string;
|
|
214
215
|
toolId: string;
|
|
215
|
-
|
|
216
|
+
selectedTools: string[] | null;
|
|
216
217
|
toolPolicies: Record<string, {
|
|
217
218
|
needsApproval?: boolean;
|
|
218
219
|
}> | null;
|
|
219
|
-
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -251,16 +251,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
+
headers: Record<string, string> | null;
|
|
255
|
+
agentId: string;
|
|
254
256
|
projectId: string;
|
|
255
257
|
tenantId: string;
|
|
256
|
-
agentId: string;
|
|
257
258
|
subAgentId: string;
|
|
258
259
|
toolId: string;
|
|
259
|
-
|
|
260
|
+
selectedTools: string[] | null;
|
|
260
261
|
toolPolicies: Record<string, {
|
|
261
262
|
needsApproval?: boolean;
|
|
262
263
|
}> | null;
|
|
263
|
-
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
|
+
agentId: string;
|
|
15
17
|
projectId: string;
|
|
16
18
|
tenantId: string;
|
|
17
|
-
agentId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
|
+
agentId: string;
|
|
50
52
|
projectId: string;
|
|
51
53
|
tenantId: string;
|
|
52
|
-
agentId: string;
|
|
53
54
|
subAgentId: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
|
+
agentId: string;
|
|
63
65
|
projectId: string;
|
|
64
66
|
tenantId: string;
|
|
65
|
-
agentId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -225,11 +225,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
+
headers: Record<string, string> | null;
|
|
229
|
+
agentId: string;
|
|
228
230
|
projectId: string;
|
|
229
231
|
tenantId: string;
|
|
230
|
-
agentId: string;
|
|
231
232
|
subAgentId: string;
|
|
232
|
-
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -242,11 +242,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
242
242
|
id: string;
|
|
243
243
|
createdAt: string;
|
|
244
244
|
updatedAt: string;
|
|
245
|
+
headers: Record<string, string> | null;
|
|
246
|
+
agentId: string;
|
|
245
247
|
projectId: string;
|
|
246
248
|
tenantId: string;
|
|
247
|
-
agentId: string;
|
|
248
249
|
subAgentId: string;
|
|
249
|
-
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -263,11 +263,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
263
263
|
id: string;
|
|
264
264
|
createdAt: string;
|
|
265
265
|
updatedAt: string;
|
|
266
|
+
headers: Record<string, string> | null;
|
|
267
|
+
agentId: string;
|
|
266
268
|
projectId: string;
|
|
267
269
|
tenantId: string;
|
|
268
|
-
agentId: string;
|
|
269
270
|
subAgentId: string;
|
|
270
|
-
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -11,9 +11,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
|
-
description: string | null;
|
|
15
14
|
createdAt: string;
|
|
16
15
|
updatedAt: string;
|
|
16
|
+
description: string | null;
|
|
17
|
+
prompt: string | null;
|
|
18
|
+
agentId: string;
|
|
17
19
|
projectId: string;
|
|
18
20
|
tenantId: string;
|
|
19
21
|
models: {
|
|
@@ -39,8 +41,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
41
|
stopWhen: {
|
|
40
42
|
stepCountIs?: number | undefined;
|
|
41
43
|
} | null;
|
|
42
|
-
agentId: string;
|
|
43
|
-
prompt: string | null;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
outputContract: {
|
|
46
46
|
[x: string]: unknown;
|
|
@@ -57,9 +57,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
}) => Promise<{
|
|
58
58
|
id: string;
|
|
59
59
|
name: string;
|
|
60
|
-
description: string | null;
|
|
61
60
|
createdAt: string;
|
|
62
61
|
updatedAt: string;
|
|
62
|
+
description: string | null;
|
|
63
|
+
prompt: string | null;
|
|
64
|
+
agentId: string;
|
|
63
65
|
projectId: string;
|
|
64
66
|
tenantId: string;
|
|
65
67
|
models: {
|
|
@@ -85,8 +87,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
85
87
|
stopWhen: {
|
|
86
88
|
stepCountIs?: number | undefined;
|
|
87
89
|
} | null;
|
|
88
|
-
agentId: string;
|
|
89
|
-
prompt: string | null;
|
|
90
90
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
91
91
|
outputContract: {
|
|
92
92
|
[x: string]: unknown;
|
|
@@ -156,9 +156,11 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
156
156
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
157
157
|
id: string;
|
|
158
158
|
name: string;
|
|
159
|
-
description: string | null;
|
|
160
159
|
createdAt: string;
|
|
161
160
|
updatedAt: string;
|
|
161
|
+
description: string | null;
|
|
162
|
+
prompt: string | null;
|
|
163
|
+
agentId: string;
|
|
162
164
|
projectId: string;
|
|
163
165
|
tenantId: string;
|
|
164
166
|
models: {
|
|
@@ -184,8 +186,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
184
186
|
stopWhen: {
|
|
185
187
|
stepCountIs?: number | undefined;
|
|
186
188
|
} | null;
|
|
187
|
-
agentId: string;
|
|
188
|
-
prompt: string | null;
|
|
189
189
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
190
190
|
outputContract: {
|
|
191
191
|
[x: string]: unknown;
|
|
@@ -22,12 +22,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
description: string | null;
|
|
26
25
|
createdAt: string;
|
|
27
26
|
updatedAt: string;
|
|
27
|
+
description: string | null;
|
|
28
|
+
headers: Record<string, string> | null;
|
|
28
29
|
projectId: string;
|
|
29
30
|
tenantId: string;
|
|
30
|
-
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
@@ -80,12 +80,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
81
|
id: string;
|
|
82
82
|
name: string;
|
|
83
|
-
description: string | null;
|
|
84
83
|
createdAt: string;
|
|
85
84
|
updatedAt: string;
|
|
85
|
+
description: string | null;
|
|
86
|
+
headers: Record<string, string> | null;
|
|
86
87
|
projectId: string;
|
|
87
88
|
tenantId: string;
|
|
88
|
-
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
|
+
headers: Record<string, string> | null;
|
|
142
|
+
agentId: string;
|
|
141
143
|
projectId: string;
|
|
142
144
|
tenantId: string;
|
|
143
|
-
agentId: string;
|
|
144
145
|
subAgentId: string;
|
|
145
146
|
toolId: string;
|
|
146
|
-
|
|
147
|
+
selectedTools: string[] | null;
|
|
147
148
|
toolPolicies: Record<string, {
|
|
148
149
|
needsApproval?: boolean;
|
|
149
150
|
}> | null;
|
|
150
|
-
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
157
157
|
id: string;
|
|
158
158
|
createdAt: string;
|
|
159
159
|
updatedAt: string;
|
|
160
|
+
headers: Record<string, string> | null;
|
|
161
|
+
agentId: string;
|
|
160
162
|
projectId: string;
|
|
161
163
|
tenantId: string;
|
|
162
|
-
agentId: string;
|
|
163
164
|
subAgentId: string;
|
|
164
165
|
toolId: string;
|
|
165
|
-
|
|
166
|
+
selectedTools: string[] | null;
|
|
166
167
|
toolPolicies: Record<string, {
|
|
167
168
|
needsApproval?: boolean;
|
|
168
169
|
}> | 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)
|
|
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
185
185
|
id: string;
|
|
186
186
|
createdAt: string;
|
|
187
187
|
updatedAt: string;
|
|
188
|
+
headers: Record<string, string> | null;
|
|
189
|
+
agentId: string;
|
|
188
190
|
projectId: string;
|
|
189
191
|
tenantId: string;
|
|
190
|
-
agentId: string;
|
|
191
192
|
subAgentId: string;
|
|
192
193
|
toolId: string;
|
|
193
|
-
|
|
194
|
+
selectedTools: string[] | null;
|
|
194
195
|
toolPolicies: Record<string, {
|
|
195
196
|
needsApproval?: boolean;
|
|
196
197
|
}> | null;
|
|
197
|
-
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -204,12 +204,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
204
204
|
}) => Promise<{
|
|
205
205
|
id: string;
|
|
206
206
|
name: string;
|
|
207
|
-
description: string | null;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
209
|
+
description: string | null;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
210
211
|
projectId: string;
|
|
211
212
|
tenantId: string;
|
|
212
|
-
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
@@ -37,8 +37,8 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
37
37
|
authentication: unknown;
|
|
38
38
|
signingSecretCredentialReferenceId: string | null;
|
|
39
39
|
signatureVerification: {
|
|
40
|
-
algorithm: "
|
|
41
|
-
encoding: "
|
|
40
|
+
algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
|
|
41
|
+
encoding: "base64" | "hex";
|
|
42
42
|
signature: {
|
|
43
43
|
source: "query" | "body" | "header";
|
|
44
44
|
key: string;
|
|
@@ -132,10 +132,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
134
|
createdAt: string;
|
|
135
|
+
userId: string;
|
|
136
|
+
agentId: string;
|
|
135
137
|
projectId: string;
|
|
136
138
|
tenantId: string;
|
|
137
|
-
agentId: string;
|
|
138
|
-
userId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
141
141
|
declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -12,10 +12,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
12
12
|
name: string | null;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
expiresAt: string | null;
|
|
16
|
+
agentId: string;
|
|
15
17
|
projectId: string;
|
|
16
18
|
tenantId: string;
|
|
17
|
-
agentId: string;
|
|
18
|
-
expiresAt: string | null;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
@@ -26,10 +26,10 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
26
26
|
name: string | null;
|
|
27
27
|
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
|
+
expiresAt: string | null;
|
|
30
|
+
agentId: string;
|
|
29
31
|
projectId: string;
|
|
30
32
|
tenantId: string;
|
|
31
|
-
agentId: string;
|
|
32
|
-
expiresAt: string | null;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -43,10 +43,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
43
43
|
name: string | null;
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
+
expiresAt: string | null;
|
|
47
|
+
agentId: string;
|
|
46
48
|
projectId: string;
|
|
47
49
|
tenantId: string;
|
|
48
|
-
agentId: string;
|
|
49
|
-
expiresAt: string | null;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -70,10 +70,10 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
70
70
|
name: string | null;
|
|
71
71
|
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
|
+
expiresAt: string | null;
|
|
74
|
+
agentId: string;
|
|
73
75
|
projectId: string;
|
|
74
76
|
tenantId: string;
|
|
75
|
-
agentId: string;
|
|
76
|
-
expiresAt: string | null;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -5,16 +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
|
+
type: AppType;
|
|
8
9
|
id: string;
|
|
9
10
|
name: string;
|
|
10
|
-
description: string | null;
|
|
11
11
|
createdAt: string;
|
|
12
12
|
updatedAt: string;
|
|
13
|
-
|
|
14
|
-
tenantId: string | null;
|
|
15
|
-
type: AppType;
|
|
13
|
+
description: string | null;
|
|
16
14
|
enabled: boolean;
|
|
17
15
|
prompt: string | null;
|
|
16
|
+
projectId: string | null;
|
|
17
|
+
tenantId: string | null;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
20
20
|
webClient: {
|
|
@@ -74,16 +74,16 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
74
74
|
};
|
|
75
75
|
}>;
|
|
76
76
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
77
|
+
type: AppType;
|
|
77
78
|
id: string;
|
|
78
79
|
name: string;
|
|
79
|
-
description: string | null;
|
|
80
80
|
createdAt: string;
|
|
81
81
|
updatedAt: string;
|
|
82
|
-
|
|
83
|
-
tenantId: string | null;
|
|
84
|
-
type: AppType;
|
|
82
|
+
description: string | null;
|
|
85
83
|
enabled: boolean;
|
|
86
84
|
prompt: string | null;
|
|
85
|
+
projectId: string | null;
|
|
86
|
+
tenantId: string | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "web_client";
|
|
89
89
|
webClient: {
|
|
@@ -17,23 +17,23 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
19
|
id: string;
|
|
20
|
-
metadata: ConversationMetadata | null;
|
|
21
20
|
createdAt: string;
|
|
22
21
|
updatedAt: string;
|
|
23
|
-
projectId: string;
|
|
24
|
-
tenantId: string;
|
|
25
|
-
properties: Record<string, unknown> | null;
|
|
26
|
-
title: string | null;
|
|
27
|
-
agentId: string | null;
|
|
28
|
-
userId: string | null;
|
|
29
22
|
ref: {
|
|
30
23
|
type: "commit" | "tag" | "branch";
|
|
31
24
|
name: string;
|
|
32
25
|
hash: string;
|
|
33
26
|
} | null;
|
|
34
|
-
|
|
27
|
+
userId: string | null;
|
|
28
|
+
metadata: ConversationMetadata | null;
|
|
29
|
+
properties: Record<string, unknown> | null;
|
|
30
|
+
title: string | null;
|
|
31
|
+
agentId: string | null;
|
|
32
|
+
projectId: string;
|
|
33
|
+
tenantId: string;
|
|
35
34
|
activeSubAgentId: string;
|
|
36
35
|
lastContextResolution: string | null;
|
|
36
|
+
userProperties: Record<string, unknown> | null;
|
|
37
37
|
}>;
|
|
38
38
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -92,23 +92,23 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
92
92
|
conversationId: string;
|
|
93
93
|
}) => Promise<{
|
|
94
94
|
id: string;
|
|
95
|
-
metadata: ConversationMetadata | null;
|
|
96
95
|
createdAt: string;
|
|
97
96
|
updatedAt: string;
|
|
98
|
-
projectId: string;
|
|
99
|
-
tenantId: string;
|
|
100
|
-
properties: Record<string, unknown> | null;
|
|
101
|
-
title: string | null;
|
|
102
|
-
agentId: string | null;
|
|
103
|
-
userId: string | null;
|
|
104
97
|
ref: {
|
|
105
98
|
type: "commit" | "tag" | "branch";
|
|
106
99
|
name: string;
|
|
107
100
|
hash: string;
|
|
108
101
|
} | null;
|
|
109
|
-
|
|
102
|
+
userId: string | null;
|
|
103
|
+
metadata: ConversationMetadata | null;
|
|
104
|
+
properties: Record<string, unknown> | null;
|
|
105
|
+
title: string | null;
|
|
106
|
+
agentId: string | null;
|
|
107
|
+
projectId: string;
|
|
108
|
+
tenantId: string;
|
|
110
109
|
activeSubAgentId: string;
|
|
111
110
|
lastContextResolution: string | null;
|
|
111
|
+
userProperties: Record<string, unknown> | null;
|
|
112
112
|
} | undefined>;
|
|
113
113
|
/**
|
|
114
114
|
* Batch-fetch conversations by id within a project scope.
|
|
@@ -147,23 +147,23 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
147
147
|
properties?: Record<string, unknown> | null | undefined;
|
|
148
148
|
} | {
|
|
149
149
|
id: string;
|
|
150
|
-
metadata: ConversationMetadata | null;
|
|
151
150
|
createdAt: string;
|
|
152
151
|
updatedAt: string;
|
|
153
|
-
projectId: string;
|
|
154
|
-
tenantId: string;
|
|
155
|
-
properties: Record<string, unknown> | null;
|
|
156
|
-
title: string | null;
|
|
157
|
-
agentId: string | null;
|
|
158
|
-
userId: string | null;
|
|
159
152
|
ref: {
|
|
160
153
|
type: "commit" | "tag" | "branch";
|
|
161
154
|
name: string;
|
|
162
155
|
hash: string;
|
|
163
156
|
} | null;
|
|
164
|
-
|
|
157
|
+
userId: string | null;
|
|
158
|
+
metadata: ConversationMetadata | null;
|
|
159
|
+
properties: Record<string, unknown> | null;
|
|
160
|
+
title: string | null;
|
|
161
|
+
agentId: string | null;
|
|
162
|
+
projectId: string;
|
|
163
|
+
tenantId: string;
|
|
165
164
|
activeSubAgentId: string;
|
|
166
165
|
lastContextResolution: string | null;
|
|
166
|
+
userProperties: Record<string, unknown> | null;
|
|
167
167
|
}>;
|
|
168
168
|
/**
|
|
169
169
|
* Extract text content from message content object
|
|
@@ -185,23 +185,23 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
185
185
|
conversationId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
|
-
metadata: ConversationMetadata | null;
|
|
189
188
|
createdAt: string;
|
|
190
189
|
updatedAt: string;
|
|
191
|
-
projectId: string;
|
|
192
|
-
tenantId: string;
|
|
193
|
-
properties: Record<string, unknown> | null;
|
|
194
|
-
title: string | null;
|
|
195
|
-
agentId: string | null;
|
|
196
|
-
userId: string | null;
|
|
197
190
|
ref: {
|
|
198
191
|
type: "commit" | "tag" | "branch";
|
|
199
192
|
name: string;
|
|
200
193
|
hash: string;
|
|
201
194
|
} | null;
|
|
202
|
-
|
|
195
|
+
userId: string | null;
|
|
196
|
+
metadata: ConversationMetadata | null;
|
|
197
|
+
properties: Record<string, unknown> | null;
|
|
198
|
+
title: string | null;
|
|
199
|
+
agentId: string | null;
|
|
200
|
+
projectId: string;
|
|
201
|
+
tenantId: string;
|
|
203
202
|
activeSubAgentId: string;
|
|
204
203
|
lastContextResolution: string | null;
|
|
204
|
+
userProperties: Record<string, unknown> | null;
|
|
205
205
|
} | undefined>;
|
|
206
206
|
/**
|
|
207
207
|
* Set active agent for a conversation (upsert operation)
|