@inkeep/agents-core 0.48.6 → 0.49.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/auth.js +8 -2
- package/dist/auth/authz/config.d.ts +20 -1
- package/dist/auth/authz/config.js +27 -1
- package/dist/auth/authz/index.d.ts +2 -2
- package/dist/auth/authz/index.js +2 -2
- package/dist/auth/authz/permissions.d.ts +6 -0
- package/dist/auth/authz/permissions.js +21 -6
- package/dist/auth/authz/sync.js +31 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +1 -1
- package/dist/data-access/manage/agents.d.ts +5 -5
- package/dist/data-access/manage/artifactComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +4 -4
- package/dist/data-access/manage/skills.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +2 -2
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +3 -3
- package/dist/data-access/manage/tools.d.ts +9 -9
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +290 -290
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/validation/schemas.d.ts +1505 -1505
- package/package.json +1 -1
|
@@ -54,9 +54,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
id: string;
|
|
57
|
+
name: string;
|
|
57
58
|
createdAt: string;
|
|
58
59
|
updatedAt: string;
|
|
59
|
-
name: string;
|
|
60
60
|
description: string | null;
|
|
61
61
|
tenantId: string;
|
|
62
62
|
projectId: string;
|
|
@@ -96,9 +96,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
id: string;
|
|
99
|
+
name: string;
|
|
99
100
|
createdAt: string;
|
|
100
101
|
updatedAt: string;
|
|
101
|
-
name: string;
|
|
102
102
|
description: string | null;
|
|
103
103
|
tenantId: string;
|
|
104
104
|
projectId: string;
|
|
@@ -170,8 +170,8 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
170
170
|
toolPolicies: Record<string, {
|
|
171
171
|
needsApproval?: boolean;
|
|
172
172
|
}> | null;
|
|
173
|
-
functionToolId: string;
|
|
174
173
|
subAgentId: string;
|
|
174
|
+
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
177
177
|
* Update an agent-function tool relation
|
|
@@ -235,8 +235,8 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
235
235
|
toolPolicies: Record<string, {
|
|
236
236
|
needsApproval?: boolean;
|
|
237
237
|
}> | null;
|
|
238
|
-
functionToolId: string;
|
|
239
238
|
subAgentId: string;
|
|
239
|
+
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|
|
242
242
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -7,11 +7,11 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
skillId: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
metadata: Record<string, string> | null;
|
|
11
10
|
id: string;
|
|
11
|
+
name: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
|
|
14
|
+
metadata: Record<string, string> | null;
|
|
15
15
|
description: string;
|
|
16
16
|
tenantId: string;
|
|
17
17
|
projectId: string;
|
|
@@ -40,22 +40,22 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
40
40
|
};
|
|
41
41
|
}>;
|
|
42
42
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
43
|
-
metadata: Record<string, string> | null;
|
|
44
43
|
id: string;
|
|
44
|
+
name: string;
|
|
45
45
|
createdAt: string;
|
|
46
46
|
updatedAt: string;
|
|
47
|
-
|
|
47
|
+
metadata: Record<string, string> | null;
|
|
48
48
|
description: string;
|
|
49
49
|
tenantId: string;
|
|
50
50
|
projectId: string;
|
|
51
51
|
content: string;
|
|
52
52
|
}>;
|
|
53
53
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
54
|
-
metadata: Record<string, string> | null;
|
|
55
54
|
id: string;
|
|
55
|
+
name: string;
|
|
56
56
|
createdAt: string;
|
|
57
57
|
updatedAt: string;
|
|
58
|
-
|
|
58
|
+
metadata: Record<string, string> | null;
|
|
59
59
|
description: string;
|
|
60
60
|
tenantId: string;
|
|
61
61
|
projectId: string;
|
|
@@ -8,13 +8,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
headers: Record<string, string> | null;
|
|
12
11
|
id: string;
|
|
13
12
|
createdAt: string;
|
|
14
13
|
updatedAt: string;
|
|
15
14
|
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
agentId: string;
|
|
17
|
+
headers: Record<string, string> | null;
|
|
18
18
|
externalAgentId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
@@ -43,26 +43,26 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
43
43
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
-
headers: Record<string, string> | null;
|
|
47
46
|
id: string;
|
|
48
47
|
createdAt: string;
|
|
49
48
|
updatedAt: string;
|
|
50
49
|
tenantId: string;
|
|
51
50
|
projectId: string;
|
|
52
51
|
agentId: string;
|
|
52
|
+
headers: Record<string, string> | null;
|
|
53
53
|
externalAgentId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
headers: Record<string, string> | null;
|
|
60
59
|
id: string;
|
|
61
60
|
createdAt: string;
|
|
62
61
|
updatedAt: string;
|
|
63
62
|
tenantId: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
agentId: string;
|
|
65
|
+
headers: Record<string, string> | null;
|
|
66
66
|
externalAgentId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
}[]>;
|
|
@@ -179,13 +179,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
179
179
|
headers?: Record<string, string> | null;
|
|
180
180
|
};
|
|
181
181
|
}) => Promise<{
|
|
182
|
-
headers: Record<string, string> | null;
|
|
183
182
|
id: string;
|
|
184
183
|
createdAt: string;
|
|
185
184
|
updatedAt: string;
|
|
186
185
|
tenantId: string;
|
|
187
186
|
projectId: string;
|
|
188
187
|
agentId: string;
|
|
188
|
+
headers: Record<string, string> | null;
|
|
189
189
|
externalAgentId: string;
|
|
190
190
|
subAgentId: string;
|
|
191
191
|
}>;
|
|
@@ -196,13 +196,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
196
196
|
scopes: SubAgentScopeConfig;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}) => Promise<{
|
|
199
|
-
headers: Record<string, string> | null;
|
|
200
199
|
id: string;
|
|
201
200
|
createdAt: string;
|
|
202
201
|
updatedAt: string;
|
|
203
202
|
tenantId: string;
|
|
204
203
|
projectId: string;
|
|
205
204
|
agentId: string;
|
|
205
|
+
headers: Record<string, string> | null;
|
|
206
206
|
externalAgentId: string;
|
|
207
207
|
subAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
@@ -217,13 +217,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
217
217
|
headers?: Record<string, string> | null;
|
|
218
218
|
};
|
|
219
219
|
}) => Promise<{
|
|
220
|
-
headers: Record<string, string> | null;
|
|
221
220
|
id: string;
|
|
222
221
|
createdAt: string;
|
|
223
222
|
updatedAt: string;
|
|
224
223
|
tenantId: string;
|
|
225
224
|
projectId: string;
|
|
226
225
|
agentId: string;
|
|
226
|
+
headers: Record<string, string> | null;
|
|
227
227
|
externalAgentId: string;
|
|
228
228
|
subAgentId: string;
|
|
229
229
|
}>;
|
|
@@ -203,7 +203,6 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
203
203
|
}> | null;
|
|
204
204
|
};
|
|
205
205
|
}) => Promise<{
|
|
206
|
-
headers: Record<string, string> | null;
|
|
207
206
|
id: string;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
@@ -211,6 +210,7 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
211
210
|
projectId: string;
|
|
212
211
|
agentId: string;
|
|
213
212
|
toolId: string;
|
|
213
|
+
headers: Record<string, string> | null;
|
|
214
214
|
toolPolicies: Record<string, {
|
|
215
215
|
needsApproval?: boolean;
|
|
216
216
|
}> | null;
|
|
@@ -247,7 +247,6 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
247
247
|
scopes: SubAgentScopeConfig;
|
|
248
248
|
relationId: string;
|
|
249
249
|
}) => Promise<{
|
|
250
|
-
headers: Record<string, string> | null;
|
|
251
250
|
id: string;
|
|
252
251
|
createdAt: string;
|
|
253
252
|
updatedAt: string;
|
|
@@ -255,6 +254,7 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
255
254
|
projectId: string;
|
|
256
255
|
agentId: string;
|
|
257
256
|
toolId: string;
|
|
257
|
+
headers: Record<string, string> | null;
|
|
258
258
|
toolPolicies: Record<string, {
|
|
259
259
|
needsApproval?: boolean;
|
|
260
260
|
}> | null;
|
|
@@ -8,13 +8,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
headers: Record<string, string> | null;
|
|
12
11
|
id: string;
|
|
13
12
|
createdAt: string;
|
|
14
13
|
updatedAt: string;
|
|
15
14
|
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
agentId: string;
|
|
17
|
+
headers: Record<string, string> | null;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
@@ -43,26 +43,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
43
43
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
-
headers: Record<string, string> | null;
|
|
47
46
|
id: string;
|
|
48
47
|
createdAt: string;
|
|
49
48
|
updatedAt: string;
|
|
50
49
|
tenantId: string;
|
|
51
50
|
projectId: string;
|
|
52
51
|
agentId: string;
|
|
52
|
+
headers: Record<string, string> | null;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
headers: Record<string, string> | null;
|
|
60
59
|
id: string;
|
|
61
60
|
createdAt: string;
|
|
62
61
|
updatedAt: string;
|
|
63
62
|
tenantId: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
agentId: string;
|
|
65
|
+
headers: Record<string, string> | null;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
@@ -209,13 +209,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
209
209
|
headers?: Record<string, string> | null;
|
|
210
210
|
};
|
|
211
211
|
}) => Promise<{
|
|
212
|
-
headers: Record<string, string> | null;
|
|
213
212
|
id: string;
|
|
214
213
|
createdAt: string;
|
|
215
214
|
updatedAt: string;
|
|
216
215
|
tenantId: string;
|
|
217
216
|
projectId: string;
|
|
218
217
|
agentId: string;
|
|
218
|
+
headers: Record<string, string> | null;
|
|
219
219
|
subAgentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
@@ -226,13 +226,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
226
226
|
scopes: SubAgentScopeConfig;
|
|
227
227
|
targetAgentId: string;
|
|
228
228
|
}) => Promise<{
|
|
229
|
-
headers: Record<string, string> | null;
|
|
230
229
|
id: string;
|
|
231
230
|
createdAt: string;
|
|
232
231
|
updatedAt: string;
|
|
233
232
|
tenantId: string;
|
|
234
233
|
projectId: string;
|
|
235
234
|
agentId: string;
|
|
235
|
+
headers: Record<string, string> | null;
|
|
236
236
|
subAgentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
@@ -247,13 +247,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
247
247
|
headers?: Record<string, string> | null;
|
|
248
248
|
};
|
|
249
249
|
}) => Promise<{
|
|
250
|
-
headers: Record<string, string> | null;
|
|
251
250
|
id: string;
|
|
252
251
|
createdAt: string;
|
|
253
252
|
updatedAt: string;
|
|
254
253
|
tenantId: string;
|
|
255
254
|
projectId: string;
|
|
256
255
|
agentId: string;
|
|
256
|
+
headers: Record<string, string> | null;
|
|
257
257
|
subAgentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
@@ -9,9 +9,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
+
name: string;
|
|
12
13
|
createdAt: string;
|
|
13
14
|
updatedAt: string;
|
|
14
|
-
name: string;
|
|
15
15
|
description: string | null;
|
|
16
16
|
tenantId: string;
|
|
17
17
|
projectId: string;
|
|
@@ -40,9 +40,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
|
+
name: string;
|
|
43
44
|
createdAt: string;
|
|
44
45
|
updatedAt: string;
|
|
45
|
-
name: string;
|
|
46
46
|
description: string | null;
|
|
47
47
|
tenantId: string;
|
|
48
48
|
projectId: string;
|
|
@@ -109,9 +109,9 @@ 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;
|
|
112
113
|
createdAt: string;
|
|
113
114
|
updatedAt: string;
|
|
114
|
-
name: string;
|
|
115
115
|
description: string | null;
|
|
116
116
|
tenantId: string;
|
|
117
117
|
projectId: string;
|
|
@@ -18,14 +18,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
18
18
|
scopes: ProjectScopeConfig;
|
|
19
19
|
toolId: string;
|
|
20
20
|
}) => Promise<{
|
|
21
|
-
headers: Record<string, string> | null;
|
|
22
21
|
id: string;
|
|
22
|
+
name: string;
|
|
23
23
|
createdAt: string;
|
|
24
24
|
updatedAt: string;
|
|
25
|
-
name: string;
|
|
26
25
|
description: string | null;
|
|
27
26
|
tenantId: string;
|
|
28
27
|
projectId: string;
|
|
28
|
+
headers: Record<string, string> | null;
|
|
29
29
|
config: {
|
|
30
30
|
type: "mcp";
|
|
31
31
|
mcp: ToolMcpConfig;
|
|
@@ -76,14 +76,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
78
78
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
79
|
-
headers: Record<string, string> | null;
|
|
80
79
|
id: string;
|
|
80
|
+
name: string;
|
|
81
81
|
createdAt: string;
|
|
82
82
|
updatedAt: string;
|
|
83
|
-
name: string;
|
|
84
83
|
description: string | null;
|
|
85
84
|
tenantId: string;
|
|
86
85
|
projectId: string;
|
|
86
|
+
headers: Record<string, string> | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "mcp";
|
|
89
89
|
mcp: ToolMcpConfig;
|
|
@@ -133,7 +133,6 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
133
133
|
needsApproval?: boolean;
|
|
134
134
|
}> | null;
|
|
135
135
|
}) => Promise<{
|
|
136
|
-
headers: Record<string, string> | null;
|
|
137
136
|
id: string;
|
|
138
137
|
createdAt: string;
|
|
139
138
|
updatedAt: string;
|
|
@@ -141,6 +140,7 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
141
140
|
projectId: string;
|
|
142
141
|
agentId: string;
|
|
143
142
|
toolId: string;
|
|
143
|
+
headers: Record<string, string> | null;
|
|
144
144
|
toolPolicies: Record<string, {
|
|
145
145
|
needsApproval?: boolean;
|
|
146
146
|
}> | null;
|
|
@@ -152,7 +152,6 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
152
152
|
subAgentId: string;
|
|
153
153
|
toolId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
-
headers: Record<string, string> | null;
|
|
156
155
|
id: string;
|
|
157
156
|
createdAt: string;
|
|
158
157
|
updatedAt: string;
|
|
@@ -160,6 +159,7 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
160
159
|
projectId: string;
|
|
161
160
|
agentId: string;
|
|
162
161
|
toolId: string;
|
|
162
|
+
headers: Record<string, string> | null;
|
|
163
163
|
toolPolicies: Record<string, {
|
|
164
164
|
needsApproval?: boolean;
|
|
165
165
|
}> | null;
|
|
@@ -180,7 +180,6 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
180
180
|
}> | null;
|
|
181
181
|
relationId?: string;
|
|
182
182
|
}) => Promise<{
|
|
183
|
-
headers: Record<string, string> | null;
|
|
184
183
|
id: string;
|
|
185
184
|
createdAt: string;
|
|
186
185
|
updatedAt: string;
|
|
@@ -188,6 +187,7 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
188
187
|
projectId: string;
|
|
189
188
|
agentId: string;
|
|
190
189
|
toolId: string;
|
|
190
|
+
headers: Record<string, string> | null;
|
|
191
191
|
toolPolicies: Record<string, {
|
|
192
192
|
needsApproval?: boolean;
|
|
193
193
|
}> | null;
|
|
@@ -200,14 +200,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
200
200
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
201
201
|
data: ToolInsert;
|
|
202
202
|
}) => Promise<{
|
|
203
|
-
headers: Record<string, string> | null;
|
|
204
203
|
id: string;
|
|
204
|
+
name: string;
|
|
205
205
|
createdAt: string;
|
|
206
206
|
updatedAt: string;
|
|
207
|
-
name: string;
|
|
208
207
|
description: string | null;
|
|
209
208
|
tenantId: string;
|
|
210
209
|
projectId: string;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
211
|
config: {
|
|
212
212
|
type: "mcp";
|
|
213
213
|
mcp: ToolMcpConfig;
|
|
@@ -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: "
|
|
43
|
+
source: "query" | "header" | "body";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
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;
|
|
11
12
|
createdAt: string;
|
|
12
13
|
updatedAt: string;
|
|
13
|
-
name: string | null;
|
|
14
14
|
expiresAt: string | null;
|
|
15
15
|
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
+
lastUsedAt: string | null;
|
|
18
19
|
publicId: string;
|
|
19
20
|
keyHash: string;
|
|
20
21
|
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;
|
|
25
26
|
createdAt: string;
|
|
26
27
|
updatedAt: string;
|
|
27
|
-
name: string | null;
|
|
28
28
|
expiresAt: string | null;
|
|
29
29
|
tenantId: string;
|
|
30
30
|
projectId: string;
|
|
31
31
|
agentId: string;
|
|
32
|
+
lastUsedAt: string | null;
|
|
32
33
|
publicId: string;
|
|
33
34
|
keyHash: string;
|
|
34
35
|
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;
|
|
42
43
|
createdAt: string;
|
|
43
44
|
updatedAt: string;
|
|
44
|
-
name: string | null;
|
|
45
45
|
expiresAt: string | null;
|
|
46
46
|
tenantId: string;
|
|
47
47
|
projectId: string;
|
|
48
48
|
agentId: string;
|
|
49
|
+
lastUsedAt: string | null;
|
|
49
50
|
publicId: string;
|
|
50
51
|
keyHash: string;
|
|
51
52
|
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;
|
|
69
70
|
createdAt: string;
|
|
70
71
|
updatedAt: string;
|
|
71
|
-
name: string | null;
|
|
72
72
|
expiresAt: string | null;
|
|
73
73
|
tenantId: string;
|
|
74
74
|
projectId: string;
|
|
75
75
|
agentId: string;
|
|
76
|
+
lastUsedAt: string | null;
|
|
76
77
|
publicId: string;
|
|
77
78
|
keyHash: string;
|
|
78
79
|
keyPrefix: string;
|
|
79
|
-
lastUsedAt: string | null;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|
|
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
-
metadata: ConversationMetadata | null;
|
|
19
18
|
id: string;
|
|
20
|
-
userId: string | null;
|
|
21
19
|
createdAt: string;
|
|
22
20
|
updatedAt: string;
|
|
23
|
-
tenantId: string;
|
|
24
|
-
projectId: string;
|
|
25
|
-
agentId: string | null;
|
|
26
|
-
title: string | null;
|
|
27
21
|
ref: {
|
|
28
22
|
type: "tag" | "commit" | "branch";
|
|
29
23
|
name: string;
|
|
30
24
|
hash: string;
|
|
31
25
|
} | null;
|
|
26
|
+
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
|
}>;
|
|
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
84
84
|
scopes: ProjectScopeConfig;
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
|
-
metadata: ConversationMetadata | null;
|
|
88
87
|
id: string;
|
|
89
|
-
userId: string | null;
|
|
90
88
|
createdAt: string;
|
|
91
89
|
updatedAt: string;
|
|
92
|
-
tenantId: string;
|
|
93
|
-
projectId: string;
|
|
94
|
-
agentId: string | null;
|
|
95
|
-
title: string | null;
|
|
96
90
|
ref: {
|
|
97
91
|
type: "tag" | "commit" | "branch";
|
|
98
92
|
name: string;
|
|
99
93
|
hash: string;
|
|
100
94
|
} | null;
|
|
95
|
+
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>;
|
|
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
120
120
|
metadata?: ConversationMetadata | null | undefined;
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
|
-
metadata: ConversationMetadata | null;
|
|
124
123
|
id: string;
|
|
125
|
-
userId: string | null;
|
|
126
124
|
createdAt: string;
|
|
127
125
|
updatedAt: string;
|
|
128
|
-
tenantId: string;
|
|
129
|
-
projectId: string;
|
|
130
|
-
agentId: string | null;
|
|
131
|
-
title: string | null;
|
|
132
126
|
ref: {
|
|
133
127
|
type: "tag" | "commit" | "branch";
|
|
134
128
|
name: string;
|
|
135
129
|
hash: string;
|
|
136
130
|
} | null;
|
|
131
|
+
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
|
}>;
|
|
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
-
metadata: ConversationMetadata | null;
|
|
156
155
|
id: string;
|
|
157
|
-
userId: string | null;
|
|
158
156
|
createdAt: string;
|
|
159
157
|
updatedAt: string;
|
|
160
|
-
tenantId: string;
|
|
161
|
-
projectId: string;
|
|
162
|
-
agentId: string | null;
|
|
163
|
-
title: string | null;
|
|
164
158
|
ref: {
|
|
165
159
|
type: "tag" | "commit" | "branch";
|
|
166
160
|
name: string;
|
|
167
161
|
hash: string;
|
|
168
162
|
} | null;
|
|
163
|
+
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>;
|