@inkeep/agents-core 0.49.0 → 0.50.0
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.d.ts +22 -22
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +3 -2
- package/dist/data-access/manage/agents.d.ts +38 -38
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +16 -16
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/skills.d.ts +15 -15
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- 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 +20 -20
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +357 -357
- package/dist/db/runtime/runtime-schema.d.ts +260 -260
- package/dist/validation/schemas.d.ts +1564 -1564
- package/package.json +1 -1
|
@@ -8,13 +8,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
skillId: string;
|
|
9
9
|
}) => Promise<{
|
|
10
10
|
id: string;
|
|
11
|
-
name: string;
|
|
12
11
|
createdAt: string;
|
|
12
|
+
name: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
metadata: Record<string, string> | null;
|
|
15
|
-
description: string;
|
|
16
|
-
tenantId: string;
|
|
17
14
|
projectId: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
description: string;
|
|
17
|
+
metadata: Record<string, string> | null;
|
|
18
18
|
content: string;
|
|
19
19
|
} | null>;
|
|
20
20
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -41,24 +41,24 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
}>;
|
|
42
42
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
43
43
|
id: string;
|
|
44
|
-
name: string;
|
|
45
44
|
createdAt: string;
|
|
45
|
+
name: string;
|
|
46
46
|
updatedAt: string;
|
|
47
|
-
metadata: Record<string, string> | null;
|
|
48
|
-
description: string;
|
|
49
|
-
tenantId: string;
|
|
50
47
|
projectId: string;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
description: string;
|
|
50
|
+
metadata: Record<string, string> | null;
|
|
51
51
|
content: string;
|
|
52
52
|
}>;
|
|
53
53
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
54
54
|
id: string;
|
|
55
|
-
name: string;
|
|
56
55
|
createdAt: string;
|
|
56
|
+
name: string;
|
|
57
57
|
updatedAt: string;
|
|
58
|
-
metadata: Record<string, string> | null;
|
|
59
|
-
description: string;
|
|
60
|
-
tenantId: string;
|
|
61
58
|
projectId: string;
|
|
59
|
+
tenantId: string;
|
|
60
|
+
description: string;
|
|
61
|
+
metadata: Record<string, string> | null;
|
|
62
62
|
content: string;
|
|
63
63
|
}>;
|
|
64
64
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -93,13 +93,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
93
93
|
id: string;
|
|
94
94
|
createdAt: string;
|
|
95
95
|
updatedAt: string;
|
|
96
|
-
tenantId: string;
|
|
97
|
-
projectId: string;
|
|
98
96
|
agentId: string;
|
|
97
|
+
projectId: string;
|
|
98
|
+
tenantId: string;
|
|
99
99
|
index: number;
|
|
100
100
|
alwaysLoaded: boolean;
|
|
101
|
-
subAgentId: string;
|
|
102
101
|
skillId: string;
|
|
102
|
+
subAgentId: string;
|
|
103
103
|
}>;
|
|
104
104
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
105
105
|
scopes: AgentScopeConfig;
|
|
@@ -11,9 +11,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
agentId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
headers: Record<string, string> | null;
|
|
18
18
|
externalAgentId: string;
|
|
19
19
|
subAgentId: string;
|
|
@@ -46,9 +46,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
49
|
agentId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
52
|
headers: Record<string, string> | null;
|
|
53
53
|
externalAgentId: string;
|
|
54
54
|
subAgentId: string;
|
|
@@ -59,9 +59,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
agentId: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
tenantId: string;
|
|
65
65
|
headers: Record<string, string> | null;
|
|
66
66
|
externalAgentId: string;
|
|
67
67
|
subAgentId: string;
|
|
@@ -182,9 +182,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
182
182
|
id: string;
|
|
183
183
|
createdAt: string;
|
|
184
184
|
updatedAt: string;
|
|
185
|
-
tenantId: string;
|
|
186
|
-
projectId: string;
|
|
187
185
|
agentId: string;
|
|
186
|
+
projectId: string;
|
|
187
|
+
tenantId: string;
|
|
188
188
|
headers: Record<string, string> | null;
|
|
189
189
|
externalAgentId: string;
|
|
190
190
|
subAgentId: string;
|
|
@@ -199,9 +199,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
199
199
|
id: string;
|
|
200
200
|
createdAt: string;
|
|
201
201
|
updatedAt: string;
|
|
202
|
-
tenantId: string;
|
|
203
|
-
projectId: string;
|
|
204
202
|
agentId: string;
|
|
203
|
+
projectId: string;
|
|
204
|
+
tenantId: string;
|
|
205
205
|
headers: Record<string, string> | null;
|
|
206
206
|
externalAgentId: string;
|
|
207
207
|
subAgentId: string;
|
|
@@ -220,9 +220,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
220
220
|
id: string;
|
|
221
221
|
createdAt: string;
|
|
222
222
|
updatedAt: string;
|
|
223
|
-
tenantId: string;
|
|
224
|
-
projectId: string;
|
|
225
223
|
agentId: string;
|
|
224
|
+
projectId: string;
|
|
225
|
+
tenantId: string;
|
|
226
226
|
headers: Record<string, string> | null;
|
|
227
227
|
externalAgentId: string;
|
|
228
228
|
subAgentId: string;
|
|
@@ -11,9 +11,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
agentId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
sourceSubAgentId: string;
|
|
18
18
|
targetSubAgentId: string | null;
|
|
19
19
|
relationType: string | null;
|
|
@@ -46,9 +46,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
49
|
agentId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
52
|
sourceSubAgentId: string;
|
|
53
53
|
targetSubAgentId: string | null;
|
|
54
54
|
relationType: string | null;
|
|
@@ -59,9 +59,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
agentId: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
tenantId: string;
|
|
65
65
|
sourceSubAgentId: string;
|
|
66
66
|
targetSubAgentId: string | null;
|
|
67
67
|
relationType: string | null;
|
|
@@ -128,9 +128,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
128
128
|
id: string;
|
|
129
129
|
createdAt: string;
|
|
130
130
|
updatedAt: string;
|
|
131
|
-
tenantId: string;
|
|
132
|
-
projectId: string;
|
|
133
131
|
agentId: string;
|
|
132
|
+
projectId: string;
|
|
133
|
+
tenantId: string;
|
|
134
134
|
sourceSubAgentId: string;
|
|
135
135
|
targetSubAgentId: string | null;
|
|
136
136
|
relationType: string | null;
|
|
@@ -147,9 +147,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
147
147
|
id: string;
|
|
148
148
|
createdAt: string;
|
|
149
149
|
updatedAt: string;
|
|
150
|
-
tenantId: string;
|
|
151
|
-
projectId: string;
|
|
152
150
|
agentId: string;
|
|
151
|
+
projectId: string;
|
|
152
|
+
tenantId: string;
|
|
153
153
|
sourceSubAgentId: string;
|
|
154
154
|
targetSubAgentId: string | null;
|
|
155
155
|
relationType: string | null;
|
|
@@ -161,9 +161,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
161
161
|
id: string;
|
|
162
162
|
createdAt: string;
|
|
163
163
|
updatedAt: string;
|
|
164
|
-
tenantId: string;
|
|
165
|
-
projectId: string;
|
|
166
164
|
agentId: string;
|
|
165
|
+
projectId: string;
|
|
166
|
+
tenantId: string;
|
|
167
167
|
sourceSubAgentId: string;
|
|
168
168
|
targetSubAgentId: string | null;
|
|
169
169
|
relationType: string | null;
|
|
@@ -206,11 +206,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
-
tenantId: string;
|
|
210
|
-
projectId: string;
|
|
211
209
|
agentId: string;
|
|
212
|
-
|
|
210
|
+
projectId: string;
|
|
211
|
+
tenantId: string;
|
|
213
212
|
headers: Record<string, string> | null;
|
|
213
|
+
toolId: string;
|
|
214
214
|
toolPolicies: Record<string, {
|
|
215
215
|
needsApproval?: boolean;
|
|
216
216
|
}> | null;
|
|
@@ -250,11 +250,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
-
tenantId: string;
|
|
254
|
-
projectId: string;
|
|
255
253
|
agentId: string;
|
|
256
|
-
|
|
254
|
+
projectId: string;
|
|
255
|
+
tenantId: string;
|
|
257
256
|
headers: Record<string, string> | null;
|
|
257
|
+
toolId: string;
|
|
258
258
|
toolPolicies: Record<string, {
|
|
259
259
|
needsApproval?: boolean;
|
|
260
260
|
}> | null;
|
|
@@ -11,9 +11,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
agentId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
headers: Record<string, string> | null;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
@@ -46,9 +46,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
49
|
agentId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
52
|
headers: Record<string, string> | null;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
@@ -59,9 +59,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
agentId: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
tenantId: string;
|
|
65
65
|
headers: Record<string, string> | null;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
@@ -212,9 +212,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
212
212
|
id: string;
|
|
213
213
|
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
|
-
tenantId: string;
|
|
216
|
-
projectId: string;
|
|
217
215
|
agentId: string;
|
|
216
|
+
projectId: string;
|
|
217
|
+
tenantId: string;
|
|
218
218
|
headers: Record<string, string> | null;
|
|
219
219
|
subAgentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
@@ -229,9 +229,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
-
tenantId: string;
|
|
233
|
-
projectId: string;
|
|
234
232
|
agentId: string;
|
|
233
|
+
projectId: string;
|
|
234
|
+
tenantId: string;
|
|
235
235
|
headers: Record<string, string> | null;
|
|
236
236
|
subAgentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
@@ -250,9 +250,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
-
tenantId: string;
|
|
254
|
-
projectId: string;
|
|
255
253
|
agentId: string;
|
|
254
|
+
projectId: string;
|
|
255
|
+
tenantId: string;
|
|
256
256
|
headers: Record<string, string> | null;
|
|
257
257
|
subAgentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
@@ -9,15 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
name: string;
|
|
13
12
|
createdAt: string;
|
|
13
|
+
name: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
description: string | null;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
projectId: string;
|
|
18
15
|
agentId: string;
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
description: string | null;
|
|
21
19
|
models: {
|
|
22
20
|
base?: {
|
|
23
21
|
model?: string | undefined;
|
|
@@ -32,23 +30,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
32
30
|
providerOptions?: Record<string, any> | undefined;
|
|
33
31
|
} | undefined;
|
|
34
32
|
} | null;
|
|
33
|
+
prompt: string | null;
|
|
35
34
|
stopWhen: {
|
|
36
35
|
stepCountIs?: number | undefined;
|
|
37
36
|
} | null;
|
|
37
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
|
-
name: string;
|
|
44
43
|
createdAt: string;
|
|
44
|
+
name: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
-
description: string | null;
|
|
47
|
-
tenantId: string;
|
|
48
|
-
projectId: string;
|
|
49
46
|
agentId: string;
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
projectId: string;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
description: string | null;
|
|
52
50
|
models: {
|
|
53
51
|
base?: {
|
|
54
52
|
model?: string | undefined;
|
|
@@ -63,9 +61,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
61
|
providerOptions?: Record<string, any> | undefined;
|
|
64
62
|
} | undefined;
|
|
65
63
|
} | null;
|
|
64
|
+
prompt: string | null;
|
|
66
65
|
stopWhen: {
|
|
67
66
|
stepCountIs?: number | undefined;
|
|
68
67
|
} | null;
|
|
68
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -109,15 +109,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
111
|
id: string;
|
|
112
|
-
name: string;
|
|
113
112
|
createdAt: string;
|
|
113
|
+
name: string;
|
|
114
114
|
updatedAt: string;
|
|
115
|
-
description: string | null;
|
|
116
|
-
tenantId: string;
|
|
117
|
-
projectId: string;
|
|
118
115
|
agentId: string;
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
projectId: string;
|
|
117
|
+
tenantId: string;
|
|
118
|
+
description: string | null;
|
|
121
119
|
models: {
|
|
122
120
|
base?: {
|
|
123
121
|
model?: string | undefined;
|
|
@@ -132,9 +130,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
132
130
|
providerOptions?: Record<string, any> | undefined;
|
|
133
131
|
} | undefined;
|
|
134
132
|
} | null;
|
|
133
|
+
prompt: string | null;
|
|
135
134
|
stopWhen: {
|
|
136
135
|
stepCountIs?: number | undefined;
|
|
137
136
|
} | null;
|
|
137
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
140
140
|
scopes: AgentScopeConfig;
|
|
@@ -19,12 +19,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
19
19
|
toolId: string;
|
|
20
20
|
}) => Promise<{
|
|
21
21
|
id: string;
|
|
22
|
-
name: string;
|
|
23
22
|
createdAt: string;
|
|
23
|
+
name: string;
|
|
24
24
|
updatedAt: string;
|
|
25
|
-
description: string | null;
|
|
26
|
-
tenantId: string;
|
|
27
25
|
projectId: string;
|
|
26
|
+
tenantId: string;
|
|
27
|
+
description: string | null;
|
|
28
28
|
headers: Record<string, string> | null;
|
|
29
29
|
config: {
|
|
30
30
|
type: "mcp";
|
|
@@ -77,12 +77,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
77
77
|
}>;
|
|
78
78
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
79
79
|
id: string;
|
|
80
|
-
name: string;
|
|
81
80
|
createdAt: string;
|
|
81
|
+
name: string;
|
|
82
82
|
updatedAt: string;
|
|
83
|
-
description: string | null;
|
|
84
|
-
tenantId: string;
|
|
85
83
|
projectId: string;
|
|
84
|
+
tenantId: string;
|
|
85
|
+
description: string | null;
|
|
86
86
|
headers: Record<string, string> | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "mcp";
|
|
@@ -136,11 +136,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
id: string;
|
|
137
137
|
createdAt: string;
|
|
138
138
|
updatedAt: string;
|
|
139
|
-
tenantId: string;
|
|
140
|
-
projectId: string;
|
|
141
139
|
agentId: string;
|
|
142
|
-
|
|
140
|
+
projectId: string;
|
|
141
|
+
tenantId: string;
|
|
143
142
|
headers: Record<string, string> | null;
|
|
143
|
+
toolId: string;
|
|
144
144
|
toolPolicies: Record<string, {
|
|
145
145
|
needsApproval?: boolean;
|
|
146
146
|
}> | null;
|
|
@@ -155,11 +155,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
id: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
|
-
tenantId: string;
|
|
159
|
-
projectId: string;
|
|
160
158
|
agentId: string;
|
|
161
|
-
|
|
159
|
+
projectId: string;
|
|
160
|
+
tenantId: string;
|
|
162
161
|
headers: Record<string, string> | null;
|
|
162
|
+
toolId: string;
|
|
163
163
|
toolPolicies: Record<string, {
|
|
164
164
|
needsApproval?: boolean;
|
|
165
165
|
}> | null;
|
|
@@ -183,11 +183,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
id: string;
|
|
184
184
|
createdAt: string;
|
|
185
185
|
updatedAt: string;
|
|
186
|
-
tenantId: string;
|
|
187
|
-
projectId: string;
|
|
188
186
|
agentId: string;
|
|
189
|
-
|
|
187
|
+
projectId: string;
|
|
188
|
+
tenantId: string;
|
|
190
189
|
headers: Record<string, string> | null;
|
|
190
|
+
toolId: string;
|
|
191
191
|
toolPolicies: Record<string, {
|
|
192
192
|
needsApproval?: boolean;
|
|
193
193
|
}> | null;
|
|
@@ -201,12 +201,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
201
201
|
data: ToolInsert;
|
|
202
202
|
}) => Promise<{
|
|
203
203
|
id: string;
|
|
204
|
-
name: string;
|
|
205
204
|
createdAt: string;
|
|
205
|
+
name: string;
|
|
206
206
|
updatedAt: string;
|
|
207
|
-
description: string | null;
|
|
208
|
-
tenantId: string;
|
|
209
207
|
projectId: string;
|
|
208
|
+
tenantId: string;
|
|
209
|
+
description: string | null;
|
|
210
210
|
headers: Record<string, string> | null;
|
|
211
211
|
config: {
|
|
212
212
|
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,48 +8,48 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
10
|
id: string;
|
|
11
|
-
name: string | null;
|
|
12
11
|
createdAt: string;
|
|
12
|
+
name: string | null;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
expiresAt: string | null;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
14
|
agentId: string;
|
|
18
|
-
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
expiresAt: string | null;
|
|
19
18
|
publicId: string;
|
|
20
19
|
keyHash: string;
|
|
21
20
|
keyPrefix: string;
|
|
21
|
+
lastUsedAt: string | null;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
-
name: string | null;
|
|
26
25
|
createdAt: string;
|
|
26
|
+
name: string | null;
|
|
27
27
|
updatedAt: string;
|
|
28
|
-
expiresAt: string | null;
|
|
29
|
-
tenantId: string;
|
|
30
|
-
projectId: string;
|
|
31
28
|
agentId: string;
|
|
32
|
-
|
|
29
|
+
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
expiresAt: string | null;
|
|
33
32
|
publicId: string;
|
|
34
33
|
keyHash: string;
|
|
35
34
|
keyPrefix: string;
|
|
35
|
+
lastUsedAt: string | null;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
41
|
id: string;
|
|
42
|
-
name: string | null;
|
|
43
42
|
createdAt: string;
|
|
43
|
+
name: string | null;
|
|
44
44
|
updatedAt: string;
|
|
45
|
-
expiresAt: string | null;
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
45
|
agentId: string;
|
|
49
|
-
|
|
46
|
+
projectId: string;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
expiresAt: string | null;
|
|
50
49
|
publicId: string;
|
|
51
50
|
keyHash: string;
|
|
52
51
|
keyPrefix: string;
|
|
52
|
+
lastUsedAt: string | null;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -66,17 +66,17 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
-
name: string | null;
|
|
70
69
|
createdAt: string;
|
|
70
|
+
name: string | null;
|
|
71
71
|
updatedAt: string;
|
|
72
|
-
expiresAt: string | null;
|
|
73
|
-
tenantId: string;
|
|
74
|
-
projectId: string;
|
|
75
72
|
agentId: string;
|
|
76
|
-
|
|
73
|
+
projectId: string;
|
|
74
|
+
tenantId: string;
|
|
75
|
+
expiresAt: string | null;
|
|
77
76
|
publicId: string;
|
|
78
77
|
keyHash: string;
|
|
79
78
|
keyPrefix: string;
|
|
79
|
+
lastUsedAt: string | null;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|
|
@@ -18,17 +18,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
18
18
|
id: string;
|
|
19
19
|
createdAt: string;
|
|
20
20
|
updatedAt: string;
|
|
21
|
+
agentId: string | null;
|
|
22
|
+
projectId: string;
|
|
23
|
+
tenantId: string;
|
|
24
|
+
title: string | null;
|
|
25
|
+
metadata: ConversationMetadata | null;
|
|
21
26
|
ref: {
|
|
22
27
|
type: "tag" | "commit" | "branch";
|
|
23
28
|
name: string;
|
|
24
29
|
hash: string;
|
|
25
30
|
} | null;
|
|
26
31
|
userId: string | null;
|
|
27
|
-
metadata: ConversationMetadata | null;
|
|
28
|
-
tenantId: string;
|
|
29
|
-
projectId: string;
|
|
30
|
-
agentId: string | null;
|
|
31
|
-
title: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -87,17 +87,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
87
87
|
id: string;
|
|
88
88
|
createdAt: string;
|
|
89
89
|
updatedAt: string;
|
|
90
|
+
agentId: string | null;
|
|
91
|
+
projectId: string;
|
|
92
|
+
tenantId: string;
|
|
93
|
+
title: string | null;
|
|
94
|
+
metadata: ConversationMetadata | null;
|
|
90
95
|
ref: {
|
|
91
96
|
type: "tag" | "commit" | "branch";
|
|
92
97
|
name: string;
|
|
93
98
|
hash: string;
|
|
94
99
|
} | null;
|
|
95
100
|
userId: string | null;
|
|
96
|
-
metadata: ConversationMetadata | null;
|
|
97
|
-
tenantId: string;
|
|
98
|
-
projectId: string;
|
|
99
|
-
agentId: string | null;
|
|
100
|
-
title: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -123,17 +123,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
123
123
|
id: string;
|
|
124
124
|
createdAt: string;
|
|
125
125
|
updatedAt: string;
|
|
126
|
+
agentId: string | null;
|
|
127
|
+
projectId: string;
|
|
128
|
+
tenantId: string;
|
|
129
|
+
title: string | null;
|
|
130
|
+
metadata: ConversationMetadata | null;
|
|
126
131
|
ref: {
|
|
127
132
|
type: "tag" | "commit" | "branch";
|
|
128
133
|
name: string;
|
|
129
134
|
hash: string;
|
|
130
135
|
} | null;
|
|
131
136
|
userId: string | null;
|
|
132
|
-
metadata: ConversationMetadata | null;
|
|
133
|
-
tenantId: string;
|
|
134
|
-
projectId: string;
|
|
135
|
-
agentId: string | null;
|
|
136
|
-
title: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -155,17 +155,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
155
155
|
id: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
|
+
agentId: string | null;
|
|
159
|
+
projectId: string;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
title: string | null;
|
|
162
|
+
metadata: ConversationMetadata | null;
|
|
158
163
|
ref: {
|
|
159
164
|
type: "tag" | "commit" | "branch";
|
|
160
165
|
name: string;
|
|
161
166
|
hash: string;
|
|
162
167
|
} | null;
|
|
163
168
|
userId: string | null;
|
|
164
|
-
metadata: ConversationMetadata | null;
|
|
165
|
-
tenantId: string;
|
|
166
|
-
projectId: string;
|
|
167
|
-
agentId: string | null;
|
|
168
|
-
title: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|