@inkeep/agents-core 0.65.1 → 0.65.2
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/manage/agents.d.ts +30 -30
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.js +1 -1
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +21 -21
- 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 +16 -16
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/feedback.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-client.js +15 -3
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-client.js +7 -1
- package/dist/db/runtime/runtime-schema.d.ts +405 -405
- package/dist/dolt/merge.js +7 -9
- package/dist/dolt/ref-scope.js +9 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/utils/error.d.ts +58 -52
- package/dist/utils/error.js +63 -21
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/logger.d.ts +21 -2
- package/dist/utils/logger.js +67 -11
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +49 -49
- package/dist/validation/schemas.d.ts +803 -803
- package/drizzle/runtime/meta/_journal.json +2 -2
- package/package.json +1 -1
|
@@ -9,11 +9,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
id: string;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
@@ -44,11 +44,11 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
id: string;
|
|
48
47
|
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
id: string;
|
|
49
50
|
createdAt: string;
|
|
50
51
|
updatedAt: string;
|
|
51
|
-
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
@@ -57,11 +57,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
60
|
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
62
|
+
id: string;
|
|
62
63
|
createdAt: string;
|
|
63
64
|
updatedAt: string;
|
|
64
|
-
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
@@ -126,11 +126,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
-
id: string;
|
|
130
129
|
tenantId: string;
|
|
130
|
+
projectId: string;
|
|
131
|
+
id: string;
|
|
131
132
|
createdAt: string;
|
|
132
133
|
updatedAt: string;
|
|
133
|
-
projectId: string;
|
|
134
134
|
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
@@ -145,11 +145,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
-
id: string;
|
|
149
148
|
tenantId: string;
|
|
149
|
+
projectId: string;
|
|
150
|
+
id: string;
|
|
150
151
|
createdAt: string;
|
|
151
152
|
updatedAt: string;
|
|
152
|
-
projectId: string;
|
|
153
153
|
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
@@ -159,11 +159,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
|
-
id: string;
|
|
163
162
|
tenantId: string;
|
|
163
|
+
projectId: string;
|
|
164
|
+
id: string;
|
|
164
165
|
createdAt: string;
|
|
165
166
|
updatedAt: string;
|
|
166
|
-
projectId: string;
|
|
167
167
|
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
@@ -204,18 +204,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
id: string;
|
|
208
207
|
tenantId: string;
|
|
208
|
+
projectId: string;
|
|
209
|
+
id: string;
|
|
209
210
|
createdAt: string;
|
|
210
211
|
updatedAt: string;
|
|
211
|
-
projectId: string;
|
|
212
212
|
agentId: string;
|
|
213
|
+
subAgentId: string;
|
|
213
214
|
toolId: string;
|
|
214
215
|
headers: Record<string, string> | null;
|
|
215
216
|
toolPolicies: Record<string, {
|
|
216
217
|
needsApproval?: boolean;
|
|
217
218
|
}> | 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
|
-
id: string;
|
|
252
251
|
tenantId: string;
|
|
252
|
+
projectId: string;
|
|
253
|
+
id: string;
|
|
253
254
|
createdAt: string;
|
|
254
255
|
updatedAt: string;
|
|
255
|
-
projectId: string;
|
|
256
256
|
agentId: string;
|
|
257
|
+
subAgentId: string;
|
|
257
258
|
toolId: string;
|
|
258
259
|
headers: Record<string, string> | null;
|
|
259
260
|
toolPolicies: Record<string, {
|
|
260
261
|
needsApproval?: boolean;
|
|
261
262
|
}> | null;
|
|
262
|
-
subAgentId: string;
|
|
263
263
|
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
id: string;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
-
headers: Record<string, string> | null;
|
|
19
18
|
subAgentId: 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
47
|
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
id: string;
|
|
49
50
|
createdAt: string;
|
|
50
51
|
updatedAt: string;
|
|
51
|
-
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
|
-
headers: Record<string, string> | null;
|
|
54
53
|
subAgentId: 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
60
|
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
62
|
+
id: string;
|
|
62
63
|
createdAt: string;
|
|
63
64
|
updatedAt: string;
|
|
64
|
-
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
|
-
headers: Record<string, string> | null;
|
|
67
66
|
subAgentId: 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
225
|
tenantId: string;
|
|
226
|
+
projectId: string;
|
|
227
|
+
id: string;
|
|
227
228
|
createdAt: string;
|
|
228
229
|
updatedAt: string;
|
|
229
|
-
projectId: string;
|
|
230
230
|
agentId: string;
|
|
231
|
-
headers: Record<string, string> | null;
|
|
232
231
|
subAgentId: 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
242
|
tenantId: string;
|
|
243
|
+
projectId: string;
|
|
244
|
+
id: string;
|
|
244
245
|
createdAt: string;
|
|
245
246
|
updatedAt: string;
|
|
246
|
-
projectId: string;
|
|
247
247
|
agentId: string;
|
|
248
|
-
headers: Record<string, string> | null;
|
|
249
248
|
subAgentId: 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
263
|
tenantId: string;
|
|
264
|
+
projectId: string;
|
|
265
|
+
id: string;
|
|
265
266
|
createdAt: string;
|
|
266
267
|
updatedAt: string;
|
|
267
|
-
projectId: string;
|
|
268
268
|
agentId: string;
|
|
269
|
-
headers: Record<string, string> | null;
|
|
270
269
|
subAgentId: string;
|
|
270
|
+
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,11 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
description: string | null;
|
|
13
|
-
id: string;
|
|
14
12
|
tenantId: string;
|
|
15
|
-
|
|
13
|
+
projectId: string;
|
|
14
|
+
id: string;
|
|
16
15
|
name: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
description: string | null;
|
|
17
19
|
models: {
|
|
18
20
|
base?: {
|
|
19
21
|
model?: string | undefined;
|
|
@@ -37,20 +39,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
37
39
|
stopWhen: {
|
|
38
40
|
stepCountIs?: number | undefined;
|
|
39
41
|
} | null;
|
|
40
|
-
updatedAt: string;
|
|
41
|
-
projectId: string;
|
|
42
|
-
prompt: string | null;
|
|
43
42
|
agentId: string;
|
|
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
|
-
id: string;
|
|
51
49
|
tenantId: string;
|
|
52
|
-
|
|
50
|
+
projectId: string;
|
|
51
|
+
id: string;
|
|
53
52
|
name: string;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
description: string | null;
|
|
54
56
|
models: {
|
|
55
57
|
base?: {
|
|
56
58
|
model?: string | undefined;
|
|
@@ -74,10 +76,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
74
76
|
stopWhen: {
|
|
75
77
|
stepCountIs?: number | undefined;
|
|
76
78
|
} | null;
|
|
77
|
-
updatedAt: string;
|
|
78
|
-
projectId: string;
|
|
79
|
-
prompt: string | null;
|
|
80
79
|
agentId: string;
|
|
80
|
+
prompt: string | null;
|
|
81
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -127,11 +127,13 @@ 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
|
-
id: string;
|
|
132
130
|
tenantId: string;
|
|
133
|
-
|
|
131
|
+
projectId: string;
|
|
132
|
+
id: string;
|
|
134
133
|
name: string;
|
|
134
|
+
createdAt: string;
|
|
135
|
+
updatedAt: string;
|
|
136
|
+
description: string | null;
|
|
135
137
|
models: {
|
|
136
138
|
base?: {
|
|
137
139
|
model?: string | undefined;
|
|
@@ -155,10 +157,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
155
157
|
stopWhen: {
|
|
156
158
|
stepCountIs?: number | undefined;
|
|
157
159
|
} | null;
|
|
158
|
-
updatedAt: string;
|
|
159
|
-
projectId: string;
|
|
160
|
-
prompt: string | null;
|
|
161
160
|
agentId: string;
|
|
161
|
+
prompt: string | null;
|
|
162
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
163
163
|
}>;
|
|
164
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -20,13 +20,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
description: string | null;
|
|
24
|
-
id: string;
|
|
25
23
|
tenantId: string;
|
|
26
|
-
|
|
24
|
+
projectId: string;
|
|
25
|
+
id: string;
|
|
27
26
|
name: string;
|
|
27
|
+
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
|
-
|
|
29
|
+
description: string | null;
|
|
30
30
|
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
@@ -78,13 +78,13 @@ 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
|
-
id: string;
|
|
83
81
|
tenantId: string;
|
|
84
|
-
|
|
82
|
+
projectId: string;
|
|
83
|
+
id: string;
|
|
85
84
|
name: string;
|
|
85
|
+
createdAt: string;
|
|
86
86
|
updatedAt: string;
|
|
87
|
-
|
|
87
|
+
description: string | null;
|
|
88
88
|
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
@@ -135,18 +135,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
-
id: string;
|
|
139
138
|
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
140
|
+
id: string;
|
|
140
141
|
createdAt: string;
|
|
141
142
|
updatedAt: string;
|
|
142
|
-
projectId: string;
|
|
143
143
|
agentId: string;
|
|
144
|
+
subAgentId: string;
|
|
144
145
|
toolId: string;
|
|
145
146
|
headers: Record<string, string> | null;
|
|
146
147
|
toolPolicies: Record<string, {
|
|
147
148
|
needsApproval?: boolean;
|
|
148
149
|
}> | 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
|
-
id: string;
|
|
158
157
|
tenantId: string;
|
|
158
|
+
projectId: string;
|
|
159
|
+
id: string;
|
|
159
160
|
createdAt: string;
|
|
160
161
|
updatedAt: string;
|
|
161
|
-
projectId: string;
|
|
162
162
|
agentId: string;
|
|
163
|
+
subAgentId: string;
|
|
163
164
|
toolId: string;
|
|
164
165
|
headers: Record<string, string> | null;
|
|
165
166
|
toolPolicies: Record<string, {
|
|
166
167
|
needsApproval?: boolean;
|
|
167
168
|
}> | 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
|
-
id: string;
|
|
186
185
|
tenantId: string;
|
|
186
|
+
projectId: string;
|
|
187
|
+
id: string;
|
|
187
188
|
createdAt: string;
|
|
188
189
|
updatedAt: string;
|
|
189
|
-
projectId: string;
|
|
190
190
|
agentId: string;
|
|
191
|
+
subAgentId: string;
|
|
191
192
|
toolId: string;
|
|
192
193
|
headers: Record<string, string> | null;
|
|
193
194
|
toolPolicies: Record<string, {
|
|
194
195
|
needsApproval?: boolean;
|
|
195
196
|
}> | null;
|
|
196
|
-
subAgentId: string;
|
|
197
197
|
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -202,13 +202,13 @@ 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
|
-
id: string;
|
|
207
205
|
tenantId: string;
|
|
208
|
-
|
|
206
|
+
projectId: string;
|
|
207
|
+
id: string;
|
|
209
208
|
name: string;
|
|
209
|
+
createdAt: string;
|
|
210
210
|
updatedAt: string;
|
|
211
|
-
|
|
211
|
+
description: string | null;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
@@ -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: "query" | "
|
|
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: "literal" | "
|
|
49
|
+
source: "literal" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
id: string;
|
|
12
11
|
tenantId: string;
|
|
13
|
-
|
|
12
|
+
projectId: string;
|
|
13
|
+
id: string;
|
|
14
14
|
name: string | null;
|
|
15
|
+
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
|
+
lastUsedAt: string | null;
|
|
19
20
|
publicId: string;
|
|
20
21
|
keyHash: string;
|
|
21
22
|
keyPrefix: string;
|
|
22
|
-
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
id: string;
|
|
26
25
|
tenantId: string;
|
|
27
|
-
|
|
26
|
+
projectId: string;
|
|
27
|
+
id: string;
|
|
28
28
|
name: string | null;
|
|
29
|
+
createdAt: string;
|
|
29
30
|
updatedAt: string;
|
|
30
|
-
projectId: string;
|
|
31
31
|
agentId: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
|
+
lastUsedAt: string | null;
|
|
33
34
|
publicId: string;
|
|
34
35
|
keyHash: string;
|
|
35
36
|
keyPrefix: string;
|
|
36
|
-
lastUsedAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
id: string;
|
|
43
42
|
tenantId: string;
|
|
44
|
-
|
|
43
|
+
projectId: string;
|
|
44
|
+
id: string;
|
|
45
45
|
name: string | null;
|
|
46
|
+
createdAt: string;
|
|
46
47
|
updatedAt: string;
|
|
47
|
-
projectId: string;
|
|
48
48
|
agentId: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
|
+
lastUsedAt: string | null;
|
|
50
51
|
publicId: string;
|
|
51
52
|
keyHash: string;
|
|
52
53
|
keyPrefix: string;
|
|
53
|
-
lastUsedAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
-
id: string;
|
|
70
69
|
tenantId: string;
|
|
71
|
-
|
|
70
|
+
projectId: string;
|
|
71
|
+
id: string;
|
|
72
72
|
name: string | null;
|
|
73
|
+
createdAt: string;
|
|
73
74
|
updatedAt: string;
|
|
74
|
-
projectId: string;
|
|
75
75
|
agentId: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
|
+
lastUsedAt: string | null;
|
|
77
78
|
publicId: string;
|
|
78
79
|
keyHash: string;
|
|
79
80
|
keyPrefix: string;
|
|
80
|
-
lastUsedAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -5,16 +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
|
-
description: string | null;
|
|
10
|
-
id: string;
|
|
11
8
|
tenantId: string | null;
|
|
12
|
-
|
|
9
|
+
projectId: string | null;
|
|
10
|
+
id: string;
|
|
13
11
|
name: string;
|
|
12
|
+
createdAt: string;
|
|
14
13
|
updatedAt: string;
|
|
15
|
-
|
|
14
|
+
description: string | null;
|
|
15
|
+
type: AppType;
|
|
16
16
|
enabled: boolean;
|
|
17
|
-
prompt: string | null;
|
|
18
17
|
config: {
|
|
19
18
|
type: "web_client";
|
|
20
19
|
webClient: {
|
|
@@ -32,9 +31,10 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
32
31
|
type: "api";
|
|
33
32
|
api: Record<string, never>;
|
|
34
33
|
};
|
|
35
|
-
|
|
36
|
-
defaultProjectId: string | null;
|
|
34
|
+
prompt: string | null;
|
|
37
35
|
defaultAgentId: string | null;
|
|
36
|
+
defaultProjectId: string | null;
|
|
37
|
+
lastUsedAt: string | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
40
40
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -61,16 +61,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
64
|
-
type: AppType;
|
|
65
|
-
description: string | null;
|
|
66
|
-
id: string;
|
|
67
64
|
tenantId: string | null;
|
|
68
|
-
|
|
65
|
+
projectId: string | null;
|
|
66
|
+
id: string;
|
|
69
67
|
name: string;
|
|
68
|
+
createdAt: string;
|
|
70
69
|
updatedAt: string;
|
|
71
|
-
|
|
70
|
+
description: string | null;
|
|
71
|
+
type: AppType;
|
|
72
72
|
enabled: boolean;
|
|
73
|
-
prompt: string | null;
|
|
74
73
|
config: {
|
|
75
74
|
type: "web_client";
|
|
76
75
|
webClient: {
|
|
@@ -88,9 +87,10 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
88
87
|
type: "api";
|
|
89
88
|
api: Record<string, never>;
|
|
90
89
|
};
|
|
91
|
-
|
|
92
|
-
defaultProjectId: string | null;
|
|
90
|
+
prompt: string | null;
|
|
93
91
|
defaultAgentId: string | null;
|
|
92
|
+
defaultProjectId: string | null;
|
|
93
|
+
lastUsedAt: string | null;
|
|
94
94
|
}>;
|
|
95
95
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
96
96
|
scopes: TenantScopeConfig;
|
|
@@ -15,18 +15,18 @@ 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
|
-
id: string;
|
|
20
18
|
tenantId: string;
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
projectId: string;
|
|
20
|
+
id: string;
|
|
23
21
|
ref: {
|
|
24
22
|
type: "commit" | "tag" | "branch";
|
|
25
23
|
name: string;
|
|
26
24
|
hash: string;
|
|
27
25
|
} | null;
|
|
26
|
+
createdAt: string;
|
|
28
27
|
updatedAt: string;
|
|
29
|
-
|
|
28
|
+
title: string | null;
|
|
29
|
+
metadata: ConversationMetadata | null;
|
|
30
30
|
agentId: string | null;
|
|
31
31
|
userId: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
@@ -84,18 +84,18 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
84
84
|
scopes: ProjectScopeConfig;
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
|
-
title: string | null;
|
|
88
|
-
id: string;
|
|
89
87
|
tenantId: string;
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
projectId: string;
|
|
89
|
+
id: string;
|
|
92
90
|
ref: {
|
|
93
91
|
type: "commit" | "tag" | "branch";
|
|
94
92
|
name: string;
|
|
95
93
|
hash: string;
|
|
96
94
|
} | null;
|
|
95
|
+
createdAt: string;
|
|
97
96
|
updatedAt: string;
|
|
98
|
-
|
|
97
|
+
title: string | null;
|
|
98
|
+
metadata: ConversationMetadata | null;
|
|
99
99
|
agentId: string | null;
|
|
100
100
|
userId: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
@@ -120,18 +120,18 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
120
120
|
metadata?: ConversationMetadata | null | undefined;
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
|
-
title: string | null;
|
|
124
|
-
id: string;
|
|
125
123
|
tenantId: string;
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
projectId: string;
|
|
125
|
+
id: string;
|
|
128
126
|
ref: {
|
|
129
127
|
type: "commit" | "tag" | "branch";
|
|
130
128
|
name: string;
|
|
131
129
|
hash: string;
|
|
132
130
|
} | null;
|
|
131
|
+
createdAt: string;
|
|
133
132
|
updatedAt: string;
|
|
134
|
-
|
|
133
|
+
title: string | null;
|
|
134
|
+
metadata: ConversationMetadata | null;
|
|
135
135
|
agentId: string | null;
|
|
136
136
|
userId: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
@@ -152,18 +152,18 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
-
title: string | null;
|
|
156
|
-
id: string;
|
|
157
155
|
tenantId: string;
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
projectId: string;
|
|
157
|
+
id: string;
|
|
160
158
|
ref: {
|
|
161
159
|
type: "commit" | "tag" | "branch";
|
|
162
160
|
name: string;
|
|
163
161
|
hash: string;
|
|
164
162
|
} | null;
|
|
163
|
+
createdAt: string;
|
|
165
164
|
updatedAt: string;
|
|
166
|
-
|
|
165
|
+
title: string | null;
|
|
166
|
+
metadata: ConversationMetadata | null;
|
|
167
167
|
agentId: string | null;
|
|
168
168
|
userId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|