@inkeep/agents-core 0.0.0-dev-20260223221253 → 0.0.0-dev-20260224023234
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 +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +135 -135
- package/dist/auth/auth.d.ts +22 -22
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +1 -1
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +8 -8
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +19 -19
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +447 -447
- package/dist/db/runtime/runtime-schema.d.ts +298 -298
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/schemas.d.ts +1553 -1553
- package/package.json +1 -1
|
@@ -11,10 +11,10 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
tenantId: string;
|
|
13
13
|
projectId: string;
|
|
14
|
-
agentId: string;
|
|
15
14
|
id: string;
|
|
16
15
|
createdAt: string;
|
|
17
16
|
updatedAt: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -46,10 +46,10 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
tenantId: string;
|
|
48
48
|
projectId: string;
|
|
49
|
-
agentId: string;
|
|
50
49
|
id: string;
|
|
51
50
|
createdAt: string;
|
|
52
51
|
updatedAt: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -59,10 +59,10 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
tenantId: string;
|
|
61
61
|
projectId: string;
|
|
62
|
-
agentId: string;
|
|
63
62
|
id: string;
|
|
64
63
|
createdAt: string;
|
|
65
64
|
updatedAt: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -128,10 +128,10 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
129
|
tenantId: string;
|
|
130
130
|
projectId: string;
|
|
131
|
-
agentId: string;
|
|
132
131
|
id: string;
|
|
133
132
|
createdAt: string;
|
|
134
133
|
updatedAt: string;
|
|
134
|
+
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -147,10 +147,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
tenantId: string;
|
|
149
149
|
projectId: string;
|
|
150
|
-
agentId: string;
|
|
151
150
|
id: string;
|
|
152
151
|
createdAt: string;
|
|
153
152
|
updatedAt: string;
|
|
153
|
+
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -161,10 +161,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
tenantId: string;
|
|
163
163
|
projectId: string;
|
|
164
|
-
agentId: string;
|
|
165
164
|
id: string;
|
|
166
165
|
createdAt: string;
|
|
167
166
|
updatedAt: string;
|
|
167
|
+
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -206,17 +206,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
tenantId: string;
|
|
208
208
|
projectId: string;
|
|
209
|
-
agentId: string;
|
|
210
209
|
subAgentId: string;
|
|
211
210
|
id: string;
|
|
212
211
|
createdAt: string;
|
|
213
212
|
updatedAt: string;
|
|
214
|
-
|
|
213
|
+
agentId: string;
|
|
215
214
|
toolId: string;
|
|
215
|
+
headers: Record<string, string> | null;
|
|
216
|
+
selectedTools: string[] | null;
|
|
216
217
|
toolPolicies: Record<string, {
|
|
217
218
|
needsApproval?: boolean;
|
|
218
219
|
}> | null;
|
|
219
|
-
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -250,17 +250,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
tenantId: string;
|
|
252
252
|
projectId: string;
|
|
253
|
-
agentId: string;
|
|
254
253
|
subAgentId: string;
|
|
255
254
|
id: string;
|
|
256
255
|
createdAt: string;
|
|
257
256
|
updatedAt: string;
|
|
258
|
-
|
|
257
|
+
agentId: string;
|
|
259
258
|
toolId: string;
|
|
259
|
+
headers: Record<string, string> | null;
|
|
260
|
+
selectedTools: string[] | null;
|
|
260
261
|
toolPolicies: Record<string, {
|
|
261
262
|
needsApproval?: boolean;
|
|
262
263
|
}> | null;
|
|
263
|
-
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -11,11 +11,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
tenantId: string;
|
|
13
13
|
projectId: string;
|
|
14
|
-
agentId: string;
|
|
15
14
|
subAgentId: string;
|
|
16
15
|
id: string;
|
|
17
16
|
createdAt: string;
|
|
18
17
|
updatedAt: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -46,11 +46,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
tenantId: string;
|
|
48
48
|
projectId: string;
|
|
49
|
-
agentId: string;
|
|
50
49
|
subAgentId: string;
|
|
51
50
|
id: string;
|
|
52
51
|
createdAt: string;
|
|
53
52
|
updatedAt: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
@@ -59,11 +59,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
tenantId: string;
|
|
61
61
|
projectId: string;
|
|
62
|
-
agentId: string;
|
|
63
62
|
subAgentId: string;
|
|
64
63
|
id: string;
|
|
65
64
|
createdAt: string;
|
|
66
65
|
updatedAt: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -212,11 +212,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
212
212
|
}) => Promise<{
|
|
213
213
|
tenantId: string;
|
|
214
214
|
projectId: string;
|
|
215
|
-
agentId: string;
|
|
216
215
|
subAgentId: string;
|
|
217
216
|
id: string;
|
|
218
217
|
createdAt: string;
|
|
219
218
|
updatedAt: string;
|
|
219
|
+
agentId: string;
|
|
220
220
|
headers: Record<string, string> | null;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
@@ -229,11 +229,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
229
229
|
}) => Promise<{
|
|
230
230
|
tenantId: string;
|
|
231
231
|
projectId: string;
|
|
232
|
-
agentId: string;
|
|
233
232
|
subAgentId: string;
|
|
234
233
|
id: string;
|
|
235
234
|
createdAt: string;
|
|
236
235
|
updatedAt: string;
|
|
236
|
+
agentId: string;
|
|
237
237
|
headers: Record<string, string> | null;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
@@ -250,11 +250,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
tenantId: string;
|
|
252
252
|
projectId: string;
|
|
253
|
-
agentId: string;
|
|
254
253
|
subAgentId: string;
|
|
255
254
|
id: string;
|
|
256
255
|
createdAt: string;
|
|
257
256
|
updatedAt: string;
|
|
257
|
+
agentId: string;
|
|
258
258
|
headers: Record<string, string> | null;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
@@ -9,11 +9,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name: string;
|
|
13
12
|
description: string | null;
|
|
13
|
+
name: string;
|
|
14
14
|
tenantId: string;
|
|
15
15
|
projectId: string;
|
|
16
|
-
agentId: string;
|
|
17
16
|
id: string;
|
|
18
17
|
createdAt: string;
|
|
19
18
|
updatedAt: string;
|
|
@@ -35,16 +34,16 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
35
34
|
stepCountIs?: number | undefined;
|
|
36
35
|
} | null;
|
|
37
36
|
prompt: string | null;
|
|
37
|
+
agentId: string;
|
|
38
38
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
|
-
name: string;
|
|
44
43
|
description: string | null;
|
|
44
|
+
name: string;
|
|
45
45
|
tenantId: string;
|
|
46
46
|
projectId: string;
|
|
47
|
-
agentId: string;
|
|
48
47
|
id: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
@@ -66,6 +65,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
66
65
|
stepCountIs?: number | undefined;
|
|
67
66
|
} | null;
|
|
68
67
|
prompt: string | null;
|
|
68
|
+
agentId: string;
|
|
69
69
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -109,11 +109,10 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
|
-
name: string;
|
|
113
112
|
description: string | null;
|
|
113
|
+
name: string;
|
|
114
114
|
tenantId: string;
|
|
115
115
|
projectId: string;
|
|
116
|
-
agentId: string;
|
|
117
116
|
id: string;
|
|
118
117
|
createdAt: string;
|
|
119
118
|
updatedAt: string;
|
|
@@ -135,6 +134,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
135
134
|
stepCountIs?: number | undefined;
|
|
136
135
|
} | null;
|
|
137
136
|
prompt: string | null;
|
|
137
|
+
agentId: string;
|
|
138
138
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -19,20 +19,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
19
19
|
scopes: ProjectScopeConfig;
|
|
20
20
|
toolId: string;
|
|
21
21
|
}) => Promise<{
|
|
22
|
-
name: string;
|
|
23
22
|
description: string | null;
|
|
23
|
+
name: string;
|
|
24
24
|
tenantId: string;
|
|
25
25
|
projectId: string;
|
|
26
26
|
id: string;
|
|
27
27
|
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
|
-
|
|
29
|
+
credentialReferenceId: string | null;
|
|
30
30
|
config: {
|
|
31
31
|
type: "mcp";
|
|
32
32
|
mcp: ToolMcpConfig;
|
|
33
33
|
};
|
|
34
|
-
credentialReferenceId: string | null;
|
|
35
34
|
credentialScope: string;
|
|
35
|
+
headers: Record<string, string> | null;
|
|
36
36
|
imageUrl: string | null;
|
|
37
37
|
capabilities: ToolServerCapabilities | null;
|
|
38
38
|
lastError: string | null;
|
|
@@ -77,20 +77,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
77
77
|
};
|
|
78
78
|
}>;
|
|
79
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
|
-
name: string;
|
|
81
80
|
description: string | null;
|
|
81
|
+
name: string;
|
|
82
82
|
tenantId: string;
|
|
83
83
|
projectId: string;
|
|
84
84
|
id: string;
|
|
85
85
|
createdAt: string;
|
|
86
86
|
updatedAt: string;
|
|
87
|
-
|
|
87
|
+
credentialReferenceId: string | null;
|
|
88
88
|
config: {
|
|
89
89
|
type: "mcp";
|
|
90
90
|
mcp: ToolMcpConfig;
|
|
91
91
|
};
|
|
92
|
-
credentialReferenceId: string | null;
|
|
93
92
|
credentialScope: string;
|
|
93
|
+
headers: Record<string, string> | null;
|
|
94
94
|
imageUrl: string | null;
|
|
95
95
|
capabilities: ToolServerCapabilities | null;
|
|
96
96
|
lastError: string | null;
|
|
@@ -136,17 +136,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
}) => Promise<{
|
|
137
137
|
tenantId: string;
|
|
138
138
|
projectId: string;
|
|
139
|
-
agentId: string;
|
|
140
139
|
subAgentId: string;
|
|
141
140
|
id: string;
|
|
142
141
|
createdAt: string;
|
|
143
142
|
updatedAt: string;
|
|
144
|
-
|
|
143
|
+
agentId: string;
|
|
145
144
|
toolId: string;
|
|
145
|
+
headers: Record<string, string> | null;
|
|
146
|
+
selectedTools: string[] | null;
|
|
146
147
|
toolPolicies: Record<string, {
|
|
147
148
|
needsApproval?: boolean;
|
|
148
149
|
}> | null;
|
|
149
|
-
selectedTools: string[] | null;
|
|
150
150
|
}>;
|
|
151
151
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
152
152
|
scopes: AgentScopeConfig;
|
|
@@ -155,17 +155,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
}) => Promise<{
|
|
156
156
|
tenantId: string;
|
|
157
157
|
projectId: string;
|
|
158
|
-
agentId: string;
|
|
159
158
|
subAgentId: string;
|
|
160
159
|
id: string;
|
|
161
160
|
createdAt: string;
|
|
162
161
|
updatedAt: string;
|
|
163
|
-
|
|
162
|
+
agentId: string;
|
|
164
163
|
toolId: string;
|
|
164
|
+
headers: Record<string, string> | null;
|
|
165
|
+
selectedTools: string[] | null;
|
|
165
166
|
toolPolicies: Record<string, {
|
|
166
167
|
needsApproval?: boolean;
|
|
167
168
|
}> | null;
|
|
168
|
-
selectedTools: string[] | null;
|
|
169
169
|
}>;
|
|
170
170
|
/**
|
|
171
171
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -183,17 +183,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
}) => Promise<{
|
|
184
184
|
tenantId: string;
|
|
185
185
|
projectId: string;
|
|
186
|
-
agentId: string;
|
|
187
186
|
subAgentId: string;
|
|
188
187
|
id: string;
|
|
189
188
|
createdAt: string;
|
|
190
189
|
updatedAt: string;
|
|
191
|
-
|
|
190
|
+
agentId: string;
|
|
192
191
|
toolId: string;
|
|
192
|
+
headers: Record<string, string> | null;
|
|
193
|
+
selectedTools: string[] | null;
|
|
193
194
|
toolPolicies: Record<string, {
|
|
194
195
|
needsApproval?: boolean;
|
|
195
196
|
}> | null;
|
|
196
|
-
selectedTools: string[] | null;
|
|
197
197
|
}>;
|
|
198
198
|
/**
|
|
199
199
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -201,20 +201,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
201
201
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
202
202
|
data: ToolInsert;
|
|
203
203
|
}) => Promise<{
|
|
204
|
-
name: string;
|
|
205
204
|
description: string | null;
|
|
205
|
+
name: string;
|
|
206
206
|
tenantId: string;
|
|
207
207
|
projectId: string;
|
|
208
208
|
id: string;
|
|
209
209
|
createdAt: string;
|
|
210
210
|
updatedAt: string;
|
|
211
|
-
|
|
211
|
+
credentialReferenceId: string | null;
|
|
212
212
|
config: {
|
|
213
213
|
type: "mcp";
|
|
214
214
|
mcp: ToolMcpConfig;
|
|
215
215
|
};
|
|
216
|
-
credentialReferenceId: string | null;
|
|
217
216
|
credentialScope: string;
|
|
217
|
+
headers: Record<string, string> | null;
|
|
218
218
|
imageUrl: string | null;
|
|
219
219
|
capabilities: ToolServerCapabilities | null;
|
|
220
220
|
lastError: string | null;
|
|
@@ -46,7 +46,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
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;
|
|
@@ -11,29 +11,29 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
name: string | null;
|
|
12
12
|
tenantId: string;
|
|
13
13
|
projectId: string;
|
|
14
|
-
agentId: string;
|
|
15
14
|
id: string;
|
|
16
15
|
createdAt: string;
|
|
17
16
|
updatedAt: string;
|
|
18
|
-
|
|
17
|
+
agentId: string;
|
|
19
18
|
publicId: string;
|
|
20
19
|
keyHash: string;
|
|
21
20
|
keyPrefix: string;
|
|
22
21
|
lastUsedAt: string | null;
|
|
22
|
+
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
name: string | null;
|
|
26
26
|
tenantId: string;
|
|
27
27
|
projectId: string;
|
|
28
|
-
agentId: string;
|
|
29
28
|
id: string;
|
|
30
29
|
createdAt: string;
|
|
31
30
|
updatedAt: string;
|
|
32
|
-
|
|
31
|
+
agentId: string;
|
|
33
32
|
publicId: string;
|
|
34
33
|
keyHash: string;
|
|
35
34
|
keyPrefix: string;
|
|
36
35
|
lastUsedAt: string | null;
|
|
36
|
+
expiresAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -42,15 +42,15 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
42
42
|
name: string | null;
|
|
43
43
|
tenantId: string;
|
|
44
44
|
projectId: string;
|
|
45
|
-
agentId: string;
|
|
46
45
|
id: string;
|
|
47
46
|
createdAt: string;
|
|
48
47
|
updatedAt: string;
|
|
49
|
-
|
|
48
|
+
agentId: string;
|
|
50
49
|
publicId: string;
|
|
51
50
|
keyHash: string;
|
|
52
51
|
keyPrefix: string;
|
|
53
52
|
lastUsedAt: string | null;
|
|
53
|
+
expiresAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -69,15 +69,15 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
69
69
|
name: string | null;
|
|
70
70
|
tenantId: string;
|
|
71
71
|
projectId: string;
|
|
72
|
-
agentId: string;
|
|
73
72
|
id: string;
|
|
74
73
|
createdAt: string;
|
|
75
74
|
updatedAt: string;
|
|
76
|
-
|
|
75
|
+
agentId: string;
|
|
77
76
|
publicId: string;
|
|
78
77
|
keyHash: string;
|
|
79
78
|
keyPrefix: string;
|
|
80
79
|
lastUsedAt: string | null;
|
|
80
|
+
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -19,17 +19,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
19
19
|
title: string | null;
|
|
20
20
|
tenantId: string;
|
|
21
21
|
projectId: string;
|
|
22
|
-
agentId: string | null;
|
|
23
22
|
id: string;
|
|
24
23
|
createdAt: string;
|
|
25
24
|
updatedAt: string;
|
|
25
|
+
metadata: ConversationMetadata | null;
|
|
26
|
+
agentId: string | null;
|
|
27
|
+
userId: string | null;
|
|
26
28
|
ref: {
|
|
27
|
-
type: "
|
|
29
|
+
type: "commit" | "tag" | "branch";
|
|
28
30
|
name: string;
|
|
29
31
|
hash: string;
|
|
30
32
|
} | null;
|
|
31
|
-
userId: string | null;
|
|
32
|
-
metadata: ConversationMetadata | null;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
@@ -44,7 +44,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
44
44
|
agentId: string | null;
|
|
45
45
|
activeSubAgentId: string;
|
|
46
46
|
ref: {
|
|
47
|
-
type: "
|
|
47
|
+
type: "commit" | "tag" | "branch";
|
|
48
48
|
name: string;
|
|
49
49
|
hash: string;
|
|
50
50
|
} | null;
|
|
@@ -70,7 +70,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
|
|
|
70
70
|
agentId: string | null;
|
|
71
71
|
activeSubAgentId: string;
|
|
72
72
|
ref: {
|
|
73
|
-
type: "
|
|
73
|
+
type: "commit" | "tag" | "branch";
|
|
74
74
|
name: string;
|
|
75
75
|
hash: string;
|
|
76
76
|
} | null;
|
|
@@ -88,17 +88,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
88
88
|
title: string | null;
|
|
89
89
|
tenantId: string;
|
|
90
90
|
projectId: string;
|
|
91
|
-
agentId: string | null;
|
|
92
91
|
id: string;
|
|
93
92
|
createdAt: string;
|
|
94
93
|
updatedAt: string;
|
|
94
|
+
metadata: ConversationMetadata | null;
|
|
95
|
+
agentId: string | null;
|
|
96
|
+
userId: string | null;
|
|
95
97
|
ref: {
|
|
96
|
-
type: "
|
|
98
|
+
type: "commit" | "tag" | "branch";
|
|
97
99
|
name: string;
|
|
98
100
|
hash: string;
|
|
99
101
|
} | null;
|
|
100
|
-
userId: string | null;
|
|
101
|
-
metadata: ConversationMetadata | null;
|
|
102
102
|
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
@@ -108,7 +108,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
108
108
|
tenantId: string;
|
|
109
109
|
id: string;
|
|
110
110
|
ref: {
|
|
111
|
-
type: "
|
|
111
|
+
type: "commit" | "tag" | "branch";
|
|
112
112
|
name: string;
|
|
113
113
|
hash: string;
|
|
114
114
|
};
|
|
@@ -124,17 +124,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
124
124
|
title: string | null;
|
|
125
125
|
tenantId: string;
|
|
126
126
|
projectId: string;
|
|
127
|
-
agentId: string | null;
|
|
128
127
|
id: string;
|
|
129
128
|
createdAt: string;
|
|
130
129
|
updatedAt: string;
|
|
130
|
+
metadata: ConversationMetadata | null;
|
|
131
|
+
agentId: string | null;
|
|
132
|
+
userId: string | null;
|
|
131
133
|
ref: {
|
|
132
|
-
type: "
|
|
134
|
+
type: "commit" | "tag" | "branch";
|
|
133
135
|
name: string;
|
|
134
136
|
hash: string;
|
|
135
137
|
} | null;
|
|
136
|
-
userId: string | null;
|
|
137
|
-
metadata: ConversationMetadata | null;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -156,17 +156,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
156
156
|
title: string | null;
|
|
157
157
|
tenantId: string;
|
|
158
158
|
projectId: string;
|
|
159
|
-
agentId: string | null;
|
|
160
159
|
id: string;
|
|
161
160
|
createdAt: string;
|
|
162
161
|
updatedAt: string;
|
|
162
|
+
metadata: ConversationMetadata | null;
|
|
163
|
+
agentId: string | null;
|
|
164
|
+
userId: string | null;
|
|
163
165
|
ref: {
|
|
164
|
-
type: "
|
|
166
|
+
type: "commit" | "tag" | "branch";
|
|
165
167
|
name: string;
|
|
166
168
|
hash: string;
|
|
167
169
|
} | null;
|
|
168
|
-
userId: string | null;
|
|
169
|
-
metadata: ConversationMetadata | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -10,21 +10,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
content: MessageContent;
|
|
13
14
|
tenantId: string;
|
|
14
15
|
projectId: string;
|
|
15
|
-
id: string;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
metadata: MessageMetadata | null;
|
|
19
|
-
role: string;
|
|
20
|
-
content: MessageContent;
|
|
21
16
|
fromSubAgentId: string | null;
|
|
22
17
|
toSubAgentId: string | null;
|
|
23
18
|
fromExternalAgentId: string | null;
|
|
24
19
|
toExternalAgentId: string | null;
|
|
25
20
|
taskId: string | null;
|
|
26
21
|
a2aTaskId: string | null;
|
|
22
|
+
id: string;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
metadata: MessageMetadata | null;
|
|
27
26
|
conversationId: string;
|
|
27
|
+
role: string;
|
|
28
28
|
fromTeamAgentId: string | null;
|
|
29
29
|
toTeamAgentId: string | null;
|
|
30
30
|
visibility: string;
|
|
@@ -141,21 +141,21 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
141
141
|
id: string;
|
|
142
142
|
}[]>;
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
|
+
content: MessageContent;
|
|
144
145
|
tenantId: string;
|
|
145
146
|
projectId: string;
|
|
146
|
-
id: string;
|
|
147
|
-
createdAt: string;
|
|
148
|
-
updatedAt: string;
|
|
149
|
-
metadata: MessageMetadata | null;
|
|
150
|
-
role: string;
|
|
151
|
-
content: MessageContent;
|
|
152
147
|
fromSubAgentId: string | null;
|
|
153
148
|
toSubAgentId: string | null;
|
|
154
149
|
fromExternalAgentId: string | null;
|
|
155
150
|
toExternalAgentId: string | null;
|
|
156
151
|
taskId: string | null;
|
|
157
152
|
a2aTaskId: string | null;
|
|
153
|
+
id: string;
|
|
154
|
+
createdAt: string;
|
|
155
|
+
updatedAt: string;
|
|
156
|
+
metadata: MessageMetadata | null;
|
|
158
157
|
conversationId: string;
|
|
158
|
+
role: string;
|
|
159
159
|
fromTeamAgentId: string | null;
|
|
160
160
|
toTeamAgentId: string | null;
|
|
161
161
|
visibility: string;
|
|
@@ -194,21 +194,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
194
194
|
scopes: ProjectScopeConfig;
|
|
195
195
|
messageId: string;
|
|
196
196
|
}) => Promise<{
|
|
197
|
+
content: MessageContent;
|
|
197
198
|
tenantId: string;
|
|
198
199
|
projectId: string;
|
|
199
|
-
id: string;
|
|
200
|
-
createdAt: string;
|
|
201
|
-
updatedAt: string;
|
|
202
|
-
metadata: MessageMetadata | null;
|
|
203
|
-
role: string;
|
|
204
|
-
content: MessageContent;
|
|
205
200
|
fromSubAgentId: string | null;
|
|
206
201
|
toSubAgentId: string | null;
|
|
207
202
|
fromExternalAgentId: string | null;
|
|
208
203
|
toExternalAgentId: string | null;
|
|
209
204
|
taskId: string | null;
|
|
210
205
|
a2aTaskId: string | null;
|
|
206
|
+
id: string;
|
|
207
|
+
createdAt: string;
|
|
208
|
+
updatedAt: string;
|
|
209
|
+
metadata: MessageMetadata | null;
|
|
211
210
|
conversationId: string;
|
|
211
|
+
role: string;
|
|
212
212
|
fromTeamAgentId: string | null;
|
|
213
213
|
toTeamAgentId: string | null;
|
|
214
214
|
visibility: string;
|
|
@@ -8,19 +8,19 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
9
|
tenantId: string;
|
|
10
10
|
projectId: string;
|
|
11
|
-
agentId: string;
|
|
12
11
|
subAgentId: string;
|
|
13
12
|
id: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
metadata: TaskMetadataConfig | null;
|
|
16
|
+
agentId: string;
|
|
17
|
+
status: string;
|
|
18
|
+
contextId: string;
|
|
16
19
|
ref: {
|
|
17
|
-
type: "
|
|
20
|
+
type: "commit" | "tag" | "branch";
|
|
18
21
|
name: string;
|
|
19
22
|
hash: string;
|
|
20
23
|
} | null;
|
|
21
|
-
metadata: TaskMetadataConfig | null;
|
|
22
|
-
status: string;
|
|
23
|
-
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|
|
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
36
36
|
updatedAt: string;
|
|
37
37
|
contextId: string;
|
|
38
38
|
ref: {
|
|
39
|
-
type: "
|
|
39
|
+
type: "commit" | "tag" | "branch";
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|