@inkeep/agents-core 0.0.0-dev-20260404012728 → 0.0.0-dev-20260405002047
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/data-access/manage/agents.d.ts +34 -34
- 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 +6 -6
- 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 +24 -24
- 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 +18 -18
- package/dist/data-access/manage/triggers.d.ts +2 -2
- 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 +12 -12
- package/dist/data-access/runtime/messages.d.ts +27 -27
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +352 -352
- package/dist/utils/error.d.ts +51 -51
- 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 +2095 -2095
- package/package.json +1 -1
|
@@ -9,15 +9,15 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
12
|
id: string;
|
|
15
13
|
createdAt: string;
|
|
16
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
-
relationType: string | null;
|
|
19
18
|
sourceSubAgentId: string;
|
|
20
19
|
targetSubAgentId: string | null;
|
|
20
|
+
relationType: string | null;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: AgentScopeConfig;
|
|
@@ -44,28 +44,28 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
tenantId: string;
|
|
48
|
-
projectId: string;
|
|
49
47
|
id: string;
|
|
50
48
|
createdAt: string;
|
|
51
49
|
updatedAt: string;
|
|
50
|
+
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
|
-
relationType: string | null;
|
|
54
53
|
sourceSubAgentId: string;
|
|
55
54
|
targetSubAgentId: string | null;
|
|
55
|
+
relationType: string | null;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
tenantId: string;
|
|
61
|
-
projectId: string;
|
|
62
60
|
id: string;
|
|
63
61
|
createdAt: string;
|
|
64
62
|
updatedAt: string;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
|
-
relationType: string | null;
|
|
67
66
|
sourceSubAgentId: string;
|
|
68
67
|
targetSubAgentId: string | null;
|
|
68
|
+
relationType: string | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -126,15 +126,15 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
-
tenantId: string;
|
|
130
|
-
projectId: string;
|
|
131
129
|
id: string;
|
|
132
130
|
createdAt: string;
|
|
133
131
|
updatedAt: string;
|
|
132
|
+
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
134
134
|
agentId: string;
|
|
135
|
-
relationType: string | null;
|
|
136
135
|
sourceSubAgentId: string;
|
|
137
136
|
targetSubAgentId: string | null;
|
|
137
|
+
relationType: string | null;
|
|
138
138
|
}>;
|
|
139
139
|
/**
|
|
140
140
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -145,29 +145,29 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
-
tenantId: string;
|
|
149
|
-
projectId: string;
|
|
150
148
|
id: string;
|
|
151
149
|
createdAt: string;
|
|
152
150
|
updatedAt: string;
|
|
151
|
+
tenantId: string;
|
|
152
|
+
projectId: string;
|
|
153
153
|
agentId: string;
|
|
154
|
-
relationType: string | null;
|
|
155
154
|
sourceSubAgentId: string;
|
|
156
155
|
targetSubAgentId: string | null;
|
|
156
|
+
relationType: string | null;
|
|
157
157
|
} | undefined>;
|
|
158
158
|
/**
|
|
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
|
-
tenantId: string;
|
|
163
|
-
projectId: string;
|
|
164
162
|
id: string;
|
|
165
163
|
createdAt: string;
|
|
166
164
|
updatedAt: string;
|
|
165
|
+
tenantId: string;
|
|
166
|
+
projectId: string;
|
|
167
167
|
agentId: string;
|
|
168
|
-
relationType: string | null;
|
|
169
168
|
sourceSubAgentId: string;
|
|
170
169
|
targetSubAgentId: string | null;
|
|
170
|
+
relationType: string | null;
|
|
171
171
|
}>;
|
|
172
172
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
173
173
|
scopes: AgentScopeConfig;
|
|
@@ -204,18 +204,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
tenantId: string;
|
|
208
|
-
projectId: string;
|
|
209
|
-
subAgentId: string;
|
|
210
207
|
id: string;
|
|
211
208
|
createdAt: string;
|
|
212
209
|
updatedAt: string;
|
|
210
|
+
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
213
212
|
agentId: string;
|
|
214
213
|
toolId: string;
|
|
215
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
|
-
tenantId: string;
|
|
252
|
-
projectId: string;
|
|
253
|
-
subAgentId: string;
|
|
254
251
|
id: string;
|
|
255
252
|
createdAt: string;
|
|
256
253
|
updatedAt: string;
|
|
254
|
+
tenantId: string;
|
|
255
|
+
projectId: string;
|
|
257
256
|
agentId: string;
|
|
258
257
|
toolId: string;
|
|
259
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,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
subAgentId: string;
|
|
15
12
|
id: string;
|
|
16
13
|
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
18
17
|
agentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
19
|
+
subAgentId: string;
|
|
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
|
-
tenantId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
subAgentId: string;
|
|
50
47
|
id: string;
|
|
51
48
|
createdAt: string;
|
|
52
49
|
updatedAt: string;
|
|
50
|
+
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
53
52
|
agentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
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
|
-
tenantId: string;
|
|
61
|
-
projectId: string;
|
|
62
|
-
subAgentId: string;
|
|
63
60
|
id: string;
|
|
64
61
|
createdAt: string;
|
|
65
62
|
updatedAt: string;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
66
65
|
agentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
67
|
+
subAgentId: string;
|
|
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
|
-
tenantId: string;
|
|
226
|
-
projectId: string;
|
|
227
|
-
subAgentId: string;
|
|
228
225
|
id: string;
|
|
229
226
|
createdAt: string;
|
|
230
227
|
updatedAt: string;
|
|
228
|
+
tenantId: string;
|
|
229
|
+
projectId: string;
|
|
231
230
|
agentId: string;
|
|
232
231
|
headers: Record<string, string> | null;
|
|
232
|
+
subAgentId: string;
|
|
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
|
-
tenantId: string;
|
|
243
|
-
projectId: string;
|
|
244
|
-
subAgentId: string;
|
|
245
242
|
id: string;
|
|
246
243
|
createdAt: string;
|
|
247
244
|
updatedAt: string;
|
|
245
|
+
tenantId: string;
|
|
246
|
+
projectId: string;
|
|
248
247
|
agentId: string;
|
|
249
248
|
headers: Record<string, string> | null;
|
|
249
|
+
subAgentId: string;
|
|
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
|
-
tenantId: string;
|
|
264
|
-
projectId: string;
|
|
265
|
-
subAgentId: string;
|
|
266
263
|
id: string;
|
|
267
264
|
createdAt: string;
|
|
268
265
|
updatedAt: string;
|
|
266
|
+
tenantId: string;
|
|
267
|
+
projectId: string;
|
|
269
268
|
agentId: string;
|
|
270
269
|
headers: Record<string, string> | null;
|
|
270
|
+
subAgentId: string;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,13 +9,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
id: string;
|
|
12
13
|
name: string;
|
|
13
14
|
description: string | null;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
id: string;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
updatedAt: string;
|
|
19
15
|
models: {
|
|
20
16
|
base?: {
|
|
21
17
|
model?: string | undefined;
|
|
@@ -39,20 +35,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
35
|
stopWhen: {
|
|
40
36
|
stepCountIs?: number | undefined;
|
|
41
37
|
} | null;
|
|
42
|
-
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
tenantId: string;
|
|
41
|
+
projectId: string;
|
|
43
42
|
prompt: string | null;
|
|
43
|
+
agentId: string;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
|
+
id: string;
|
|
49
50
|
name: string;
|
|
50
51
|
description: string | null;
|
|
51
|
-
tenantId: string;
|
|
52
|
-
projectId: string;
|
|
53
|
-
id: string;
|
|
54
|
-
createdAt: string;
|
|
55
|
-
updatedAt: string;
|
|
56
52
|
models: {
|
|
57
53
|
base?: {
|
|
58
54
|
model?: string | undefined;
|
|
@@ -76,8 +72,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
76
72
|
stopWhen: {
|
|
77
73
|
stepCountIs?: number | undefined;
|
|
78
74
|
} | null;
|
|
79
|
-
|
|
75
|
+
createdAt: string;
|
|
76
|
+
updatedAt: string;
|
|
77
|
+
tenantId: string;
|
|
78
|
+
projectId: string;
|
|
80
79
|
prompt: string | null;
|
|
80
|
+
agentId: string;
|
|
81
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -127,13 +127,9 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
|
+
id: string;
|
|
130
131
|
name: string;
|
|
131
132
|
description: string | null;
|
|
132
|
-
tenantId: string;
|
|
133
|
-
projectId: string;
|
|
134
|
-
id: string;
|
|
135
|
-
createdAt: string;
|
|
136
|
-
updatedAt: string;
|
|
137
133
|
models: {
|
|
138
134
|
base?: {
|
|
139
135
|
model?: string | undefined;
|
|
@@ -157,8 +153,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
157
153
|
stopWhen: {
|
|
158
154
|
stepCountIs?: number | undefined;
|
|
159
155
|
} | null;
|
|
160
|
-
|
|
156
|
+
createdAt: string;
|
|
157
|
+
updatedAt: string;
|
|
158
|
+
tenantId: string;
|
|
159
|
+
projectId: string;
|
|
161
160
|
prompt: string | null;
|
|
161
|
+
agentId: string;
|
|
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
|
+
id: string;
|
|
23
24
|
name: string;
|
|
24
25
|
description: string | null;
|
|
25
|
-
tenantId: string;
|
|
26
|
-
projectId: string;
|
|
27
|
-
id: string;
|
|
28
26
|
createdAt: string;
|
|
29
27
|
updatedAt: string;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
projectId: string;
|
|
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
|
+
id: string;
|
|
81
82
|
name: string;
|
|
82
83
|
description: string | null;
|
|
83
|
-
tenantId: string;
|
|
84
|
-
projectId: string;
|
|
85
|
-
id: string;
|
|
86
84
|
createdAt: string;
|
|
87
85
|
updatedAt: string;
|
|
86
|
+
tenantId: string;
|
|
87
|
+
projectId: string;
|
|
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
|
-
tenantId: string;
|
|
139
|
-
projectId: string;
|
|
140
|
-
subAgentId: string;
|
|
141
138
|
id: string;
|
|
142
139
|
createdAt: string;
|
|
143
140
|
updatedAt: string;
|
|
141
|
+
tenantId: string;
|
|
142
|
+
projectId: string;
|
|
144
143
|
agentId: string;
|
|
145
144
|
toolId: string;
|
|
146
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
|
-
tenantId: string;
|
|
158
|
-
projectId: string;
|
|
159
|
-
subAgentId: string;
|
|
160
157
|
id: string;
|
|
161
158
|
createdAt: string;
|
|
162
159
|
updatedAt: string;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
projectId: string;
|
|
163
162
|
agentId: string;
|
|
164
163
|
toolId: string;
|
|
165
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
|
-
tenantId: string;
|
|
186
|
-
projectId: string;
|
|
187
|
-
subAgentId: string;
|
|
188
185
|
id: string;
|
|
189
186
|
createdAt: string;
|
|
190
187
|
updatedAt: string;
|
|
188
|
+
tenantId: string;
|
|
189
|
+
projectId: string;
|
|
191
190
|
agentId: string;
|
|
192
191
|
toolId: string;
|
|
193
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,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
|
+
id: string;
|
|
205
206
|
name: string;
|
|
206
207
|
description: string | null;
|
|
207
|
-
tenantId: string;
|
|
208
|
-
projectId: string;
|
|
209
|
-
id: string;
|
|
210
208
|
createdAt: string;
|
|
211
209
|
updatedAt: string;
|
|
210
|
+
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
@@ -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: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
|
+
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
43
|
source: "query" | "header" | "body";
|
|
44
44
|
key: string;
|
|
@@ -8,12 +8,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
name: string | null;
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
11
|
id: string;
|
|
12
|
+
name: string | null;
|
|
15
13
|
createdAt: string;
|
|
16
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
19
|
publicId: string;
|
|
@@ -22,12 +22,12 @@ 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
|
-
name: string | null;
|
|
26
|
-
tenantId: string;
|
|
27
|
-
projectId: string;
|
|
28
25
|
id: string;
|
|
26
|
+
name: string | null;
|
|
29
27
|
createdAt: string;
|
|
30
28
|
updatedAt: string;
|
|
29
|
+
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
31
31
|
agentId: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
33
|
publicId: string;
|
|
@@ -39,12 +39,12 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
name: string | null;
|
|
43
|
-
tenantId: string;
|
|
44
|
-
projectId: string;
|
|
45
42
|
id: string;
|
|
43
|
+
name: string | null;
|
|
46
44
|
createdAt: string;
|
|
47
45
|
updatedAt: string;
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
48
48
|
agentId: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
50
|
publicId: string;
|
|
@@ -66,12 +66,12 @@ 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
|
-
tenantId: string;
|
|
71
|
-
projectId: string;
|
|
72
69
|
id: string;
|
|
70
|
+
name: string | null;
|
|
73
71
|
createdAt: string;
|
|
74
72
|
updatedAt: string;
|
|
73
|
+
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
75
75
|
agentId: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
77
|
publicId: string;
|
|
@@ -5,18 +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
|
-
enabled: boolean;
|
|
9
|
-
name: string;
|
|
10
8
|
type: AppType;
|
|
11
|
-
description: string | null;
|
|
12
|
-
tenantId: string | null;
|
|
13
|
-
projectId: string | null;
|
|
14
9
|
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
description: string | null;
|
|
15
12
|
createdAt: string;
|
|
16
13
|
updatedAt: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
tenantId: string | null;
|
|
15
|
+
projectId: string | null;
|
|
16
|
+
enabled: boolean;
|
|
20
17
|
prompt: string | null;
|
|
21
18
|
config: {
|
|
22
19
|
type: "web_client";
|
|
@@ -35,6 +32,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
35
32
|
type: "api";
|
|
36
33
|
api: Record<string, never>;
|
|
37
34
|
};
|
|
35
|
+
lastUsedAt: string | null;
|
|
36
|
+
defaultProjectId: string | null;
|
|
37
|
+
defaultAgentId: 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,18 +61,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
64
|
-
enabled: boolean;
|
|
65
|
-
name: string;
|
|
66
64
|
type: AppType;
|
|
67
|
-
description: string | null;
|
|
68
|
-
tenantId: string | null;
|
|
69
|
-
projectId: string | null;
|
|
70
65
|
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
description: string | null;
|
|
71
68
|
createdAt: string;
|
|
72
69
|
updatedAt: string;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
tenantId: string | null;
|
|
71
|
+
projectId: string | null;
|
|
72
|
+
enabled: boolean;
|
|
76
73
|
prompt: string | null;
|
|
77
74
|
config: {
|
|
78
75
|
type: "web_client";
|
|
@@ -91,6 +88,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
91
88
|
type: "api";
|
|
92
89
|
api: Record<string, never>;
|
|
93
90
|
};
|
|
91
|
+
lastUsedAt: string | null;
|
|
92
|
+
defaultProjectId: string | null;
|
|
93
|
+
defaultAgentId: string | null;
|
|
94
94
|
}>;
|
|
95
95
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
96
96
|
scopes: TenantScopeConfig;
|
|
@@ -15,17 +15,17 @@ 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
18
|
id: string;
|
|
22
19
|
ref: {
|
|
23
20
|
type: "commit" | "tag" | "branch";
|
|
24
21
|
name: string;
|
|
25
22
|
hash: string;
|
|
26
23
|
} | null;
|
|
24
|
+
title: string | null;
|
|
27
25
|
createdAt: string;
|
|
28
26
|
updatedAt: string;
|
|
27
|
+
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
29
29
|
metadata: ConversationMetadata | null;
|
|
30
30
|
agentId: string | null;
|
|
31
31
|
userId: string | null;
|
|
@@ -84,17 +84,17 @@ 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
87
|
id: string;
|
|
91
88
|
ref: {
|
|
92
89
|
type: "commit" | "tag" | "branch";
|
|
93
90
|
name: string;
|
|
94
91
|
hash: string;
|
|
95
92
|
} | null;
|
|
93
|
+
title: string | null;
|
|
96
94
|
createdAt: string;
|
|
97
95
|
updatedAt: string;
|
|
96
|
+
tenantId: string;
|
|
97
|
+
projectId: string;
|
|
98
98
|
metadata: ConversationMetadata | null;
|
|
99
99
|
agentId: string | null;
|
|
100
100
|
userId: string | null;
|
|
@@ -120,17 +120,17 @@ 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
123
|
id: string;
|
|
127
124
|
ref: {
|
|
128
125
|
type: "commit" | "tag" | "branch";
|
|
129
126
|
name: string;
|
|
130
127
|
hash: string;
|
|
131
128
|
} | null;
|
|
129
|
+
title: string | null;
|
|
132
130
|
createdAt: string;
|
|
133
131
|
updatedAt: string;
|
|
132
|
+
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
134
134
|
metadata: ConversationMetadata | null;
|
|
135
135
|
agentId: string | null;
|
|
136
136
|
userId: string | null;
|
|
@@ -152,17 +152,17 @@ 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
155
|
id: string;
|
|
159
156
|
ref: {
|
|
160
157
|
type: "commit" | "tag" | "branch";
|
|
161
158
|
name: string;
|
|
162
159
|
hash: string;
|
|
163
160
|
} | null;
|
|
161
|
+
title: string | null;
|
|
164
162
|
createdAt: string;
|
|
165
163
|
updatedAt: string;
|
|
164
|
+
tenantId: string;
|
|
165
|
+
projectId: string;
|
|
166
166
|
metadata: ConversationMetadata | null;
|
|
167
167
|
agentId: string | null;
|
|
168
168
|
userId: string | null;
|