@inkeep/agents-core 0.0.0-dev-20260310174107 → 0.0.0-dev-20260310195220
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 +152 -152
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -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 +16 -16
- package/dist/data-access/manage/skills.d.ts +16 -16
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +31 -31
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +9 -9
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +316 -316
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/schemas.d.ts +1919 -1919
- package/package.json +3 -3
|
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
-
agentId: string;
|
|
133
|
-
projectId: string;
|
|
134
132
|
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
134
|
+
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
-
agentId: string;
|
|
152
|
-
projectId: string;
|
|
153
151
|
tenantId: string;
|
|
152
|
+
projectId: string;
|
|
153
|
+
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
agentId: string;
|
|
166
|
-
projectId: string;
|
|
167
165
|
tenantId: string;
|
|
166
|
+
projectId: string;
|
|
167
|
+
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -207,15 +207,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
-
agentId: string;
|
|
211
|
-
projectId: string;
|
|
212
210
|
tenantId: string;
|
|
213
|
-
|
|
211
|
+
projectId: string;
|
|
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: {
|
|
@@ -251,15 +251,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
-
agentId: string;
|
|
255
|
-
projectId: string;
|
|
256
254
|
tenantId: string;
|
|
257
|
-
|
|
255
|
+
projectId: string;
|
|
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: {
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
18
|
-
|
|
16
|
+
projectId: string;
|
|
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: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
53
|
-
|
|
51
|
+
projectId: string;
|
|
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: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
tenantId: string;
|
|
66
|
-
|
|
64
|
+
projectId: string;
|
|
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: {
|
|
@@ -213,11 +213,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
213
213
|
id: string;
|
|
214
214
|
createdAt: string;
|
|
215
215
|
updatedAt: string;
|
|
216
|
-
agentId: string;
|
|
217
|
-
projectId: string;
|
|
218
216
|
tenantId: string;
|
|
219
|
-
|
|
217
|
+
projectId: string;
|
|
218
|
+
agentId: string;
|
|
220
219
|
headers: Record<string, string> | null;
|
|
220
|
+
subAgentId: string;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
223
223
|
/**
|
|
@@ -230,11 +230,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
230
230
|
id: string;
|
|
231
231
|
createdAt: string;
|
|
232
232
|
updatedAt: string;
|
|
233
|
-
agentId: string;
|
|
234
|
-
projectId: string;
|
|
235
233
|
tenantId: string;
|
|
236
|
-
|
|
234
|
+
projectId: string;
|
|
235
|
+
agentId: string;
|
|
237
236
|
headers: Record<string, string> | null;
|
|
237
|
+
subAgentId: string;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
240
240
|
/**
|
|
@@ -251,11 +251,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
-
agentId: string;
|
|
255
|
-
projectId: string;
|
|
256
254
|
tenantId: string;
|
|
257
|
-
|
|
255
|
+
projectId: string;
|
|
256
|
+
agentId: string;
|
|
258
257
|
headers: Record<string, string> | null;
|
|
258
|
+
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
261
261
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,13 +10,15 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
13
|
name: string;
|
|
14
|
+
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
16
|
description: string | null;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
agentId: string;
|
|
20
|
+
prompt: string | null;
|
|
21
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
20
22
|
models: {
|
|
21
23
|
base?: {
|
|
22
24
|
model?: string | undefined;
|
|
@@ -31,23 +33,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
31
33
|
providerOptions?: Record<string, any> | undefined;
|
|
32
34
|
} | undefined;
|
|
33
35
|
} | null;
|
|
34
|
-
prompt: string | null;
|
|
35
36
|
stopWhen: {
|
|
36
37
|
stepCountIs?: number | undefined;
|
|
37
38
|
} | null;
|
|
38
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
43
|
id: string;
|
|
44
|
-
createdAt: string;
|
|
45
44
|
name: string;
|
|
45
|
+
createdAt: string;
|
|
46
46
|
updatedAt: string;
|
|
47
|
-
agentId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
50
47
|
description: string | null;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
51
|
+
prompt: string | null;
|
|
52
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
51
53
|
models: {
|
|
52
54
|
base?: {
|
|
53
55
|
model?: string | undefined;
|
|
@@ -62,11 +64,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
62
64
|
providerOptions?: Record<string, any> | undefined;
|
|
63
65
|
} | undefined;
|
|
64
66
|
} | null;
|
|
65
|
-
prompt: string | null;
|
|
66
67
|
stopWhen: {
|
|
67
68
|
stepCountIs?: number | undefined;
|
|
68
69
|
} | null;
|
|
69
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -110,13 +110,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
112
|
id: string;
|
|
113
|
-
createdAt: string;
|
|
114
113
|
name: string;
|
|
114
|
+
createdAt: string;
|
|
115
115
|
updatedAt: string;
|
|
116
|
-
agentId: string;
|
|
117
|
-
projectId: string;
|
|
118
|
-
tenantId: string;
|
|
119
116
|
description: string | null;
|
|
117
|
+
tenantId: string;
|
|
118
|
+
projectId: string;
|
|
119
|
+
agentId: string;
|
|
120
|
+
prompt: string | null;
|
|
121
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
120
122
|
models: {
|
|
121
123
|
base?: {
|
|
122
124
|
model?: string | undefined;
|
|
@@ -131,11 +133,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
131
133
|
providerOptions?: Record<string, any> | undefined;
|
|
132
134
|
} | undefined;
|
|
133
135
|
} | null;
|
|
134
|
-
prompt: string | null;
|
|
135
136
|
stopWhen: {
|
|
136
137
|
stepCountIs?: number | undefined;
|
|
137
138
|
} | null;
|
|
138
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -20,12 +20,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
toolId: string;
|
|
21
21
|
}) => Promise<{
|
|
22
22
|
id: string;
|
|
23
|
-
createdAt: string;
|
|
24
23
|
name: string;
|
|
24
|
+
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
|
-
projectId: string;
|
|
27
|
-
tenantId: string;
|
|
28
26
|
description: string | null;
|
|
27
|
+
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
29
29
|
headers: Record<string, string> | null;
|
|
30
30
|
config: {
|
|
31
31
|
type: "mcp";
|
|
@@ -78,12 +78,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
}>;
|
|
79
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
80
|
id: string;
|
|
81
|
-
createdAt: string;
|
|
82
81
|
name: string;
|
|
82
|
+
createdAt: string;
|
|
83
83
|
updatedAt: string;
|
|
84
|
-
projectId: string;
|
|
85
|
-
tenantId: string;
|
|
86
84
|
description: string | null;
|
|
85
|
+
tenantId: string;
|
|
86
|
+
projectId: string;
|
|
87
87
|
headers: Record<string, string> | null;
|
|
88
88
|
config: {
|
|
89
89
|
type: "mcp";
|
|
@@ -137,15 +137,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
137
137
|
id: string;
|
|
138
138
|
createdAt: string;
|
|
139
139
|
updatedAt: string;
|
|
140
|
-
agentId: string;
|
|
141
|
-
projectId: string;
|
|
142
140
|
tenantId: string;
|
|
143
|
-
|
|
141
|
+
projectId: string;
|
|
142
|
+
agentId: string;
|
|
144
143
|
toolId: string;
|
|
145
144
|
headers: Record<string, string> | null;
|
|
146
145
|
toolPolicies: Record<string, {
|
|
147
146
|
needsApproval?: boolean;
|
|
148
147
|
}> | null;
|
|
148
|
+
subAgentId: string;
|
|
149
149
|
selectedTools: string[] | null;
|
|
150
150
|
}>;
|
|
151
151
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -156,15 +156,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
156
156
|
id: string;
|
|
157
157
|
createdAt: string;
|
|
158
158
|
updatedAt: string;
|
|
159
|
-
agentId: string;
|
|
160
|
-
projectId: string;
|
|
161
159
|
tenantId: string;
|
|
162
|
-
|
|
160
|
+
projectId: string;
|
|
161
|
+
agentId: string;
|
|
163
162
|
toolId: string;
|
|
164
163
|
headers: Record<string, string> | null;
|
|
165
164
|
toolPolicies: Record<string, {
|
|
166
165
|
needsApproval?: boolean;
|
|
167
166
|
}> | null;
|
|
167
|
+
subAgentId: string;
|
|
168
168
|
selectedTools: string[] | null;
|
|
169
169
|
}>;
|
|
170
170
|
/**
|
|
@@ -184,15 +184,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
184
184
|
id: string;
|
|
185
185
|
createdAt: string;
|
|
186
186
|
updatedAt: string;
|
|
187
|
-
agentId: string;
|
|
188
|
-
projectId: string;
|
|
189
187
|
tenantId: string;
|
|
190
|
-
|
|
188
|
+
projectId: string;
|
|
189
|
+
agentId: string;
|
|
191
190
|
toolId: string;
|
|
192
191
|
headers: Record<string, string> | null;
|
|
193
192
|
toolPolicies: Record<string, {
|
|
194
193
|
needsApproval?: boolean;
|
|
195
194
|
}> | null;
|
|
195
|
+
subAgentId: string;
|
|
196
196
|
selectedTools: string[] | null;
|
|
197
197
|
}>;
|
|
198
198
|
/**
|
|
@@ -202,12 +202,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
202
202
|
data: ToolInsert;
|
|
203
203
|
}) => Promise<{
|
|
204
204
|
id: string;
|
|
205
|
-
createdAt: string;
|
|
206
205
|
name: string;
|
|
206
|
+
createdAt: string;
|
|
207
207
|
updatedAt: string;
|
|
208
|
-
projectId: string;
|
|
209
|
-
tenantId: string;
|
|
210
208
|
description: string | null;
|
|
209
|
+
tenantId: string;
|
|
210
|
+
projectId: string;
|
|
211
211
|
headers: Record<string, string> | null;
|
|
212
212
|
config: {
|
|
213
213
|
type: "mcp";
|
|
@@ -9,48 +9,48 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
12
|
name: string | null;
|
|
13
|
+
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
|
|
16
|
-
projectId: string;
|
|
15
|
+
expiresAt: string | null;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
|
+
lastUsedAt: string | null;
|
|
18
20
|
publicId: string;
|
|
19
21
|
keyHash: string;
|
|
20
22
|
keyPrefix: string;
|
|
21
|
-
lastUsedAt: string | null;
|
|
22
|
-
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
26
|
-
createdAt: string;
|
|
27
26
|
name: string | null;
|
|
27
|
+
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
|
-
|
|
30
|
-
projectId: string;
|
|
29
|
+
expiresAt: string | null;
|
|
31
30
|
tenantId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
agentId: string;
|
|
33
|
+
lastUsedAt: string | null;
|
|
32
34
|
publicId: string;
|
|
33
35
|
keyHash: string;
|
|
34
36
|
keyPrefix: string;
|
|
35
|
-
lastUsedAt: string | null;
|
|
36
|
-
expiresAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
|
-
createdAt: string;
|
|
44
43
|
name: string | null;
|
|
44
|
+
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
-
|
|
47
|
-
projectId: string;
|
|
46
|
+
expiresAt: string | null;
|
|
48
47
|
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
agentId: string;
|
|
50
|
+
lastUsedAt: string | null;
|
|
49
51
|
publicId: string;
|
|
50
52
|
keyHash: string;
|
|
51
53
|
keyPrefix: string;
|
|
52
|
-
lastUsedAt: string | null;
|
|
53
|
-
expiresAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -67,17 +67,17 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
69
|
id: string;
|
|
70
|
-
createdAt: string;
|
|
71
70
|
name: string | null;
|
|
71
|
+
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
|
-
|
|
74
|
-
projectId: string;
|
|
73
|
+
expiresAt: string | null;
|
|
75
74
|
tenantId: string;
|
|
75
|
+
projectId: string;
|
|
76
|
+
agentId: string;
|
|
77
|
+
lastUsedAt: string | null;
|
|
76
78
|
publicId: string;
|
|
77
79
|
keyHash: string;
|
|
78
80
|
keyPrefix: string;
|
|
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
|
id: string;
|
|
20
20
|
createdAt: string;
|
|
21
21
|
updatedAt: string;
|
|
22
|
-
agentId: string | null;
|
|
23
|
-
projectId: string;
|
|
24
|
-
tenantId: string;
|
|
25
|
-
title: string | null;
|
|
26
|
-
metadata: ConversationMetadata | null;
|
|
27
|
-
userId: string | null;
|
|
28
22
|
ref: {
|
|
29
|
-
type: "
|
|
23
|
+
type: "commit" | "tag" | "branch";
|
|
30
24
|
name: string;
|
|
31
25
|
hash: string;
|
|
32
26
|
} | null;
|
|
27
|
+
userId: string | null;
|
|
28
|
+
metadata: ConversationMetadata | null;
|
|
29
|
+
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
agentId: string | null;
|
|
32
|
+
title: string | 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
|
id: string;
|
|
89
89
|
createdAt: string;
|
|
90
90
|
updatedAt: string;
|
|
91
|
-
agentId: string | null;
|
|
92
|
-
projectId: string;
|
|
93
|
-
tenantId: string;
|
|
94
|
-
title: string | null;
|
|
95
|
-
metadata: ConversationMetadata | null;
|
|
96
|
-
userId: string | null;
|
|
97
91
|
ref: {
|
|
98
|
-
type: "
|
|
92
|
+
type: "commit" | "tag" | "branch";
|
|
99
93
|
name: string;
|
|
100
94
|
hash: string;
|
|
101
95
|
} | null;
|
|
96
|
+
userId: string | null;
|
|
97
|
+
metadata: ConversationMetadata | null;
|
|
98
|
+
tenantId: string;
|
|
99
|
+
projectId: string;
|
|
100
|
+
agentId: string | null;
|
|
101
|
+
title: string | 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
|
id: string;
|
|
125
125
|
createdAt: string;
|
|
126
126
|
updatedAt: string;
|
|
127
|
-
agentId: string | null;
|
|
128
|
-
projectId: string;
|
|
129
|
-
tenantId: string;
|
|
130
|
-
title: string | null;
|
|
131
|
-
metadata: ConversationMetadata | null;
|
|
132
|
-
userId: string | null;
|
|
133
127
|
ref: {
|
|
134
|
-
type: "
|
|
128
|
+
type: "commit" | "tag" | "branch";
|
|
135
129
|
name: string;
|
|
136
130
|
hash: string;
|
|
137
131
|
} | null;
|
|
132
|
+
userId: string | null;
|
|
133
|
+
metadata: ConversationMetadata | null;
|
|
134
|
+
tenantId: string;
|
|
135
|
+
projectId: string;
|
|
136
|
+
agentId: string | null;
|
|
137
|
+
title: string | null;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -156,17 +156,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
156
156
|
id: string;
|
|
157
157
|
createdAt: string;
|
|
158
158
|
updatedAt: string;
|
|
159
|
-
agentId: string | null;
|
|
160
|
-
projectId: string;
|
|
161
|
-
tenantId: string;
|
|
162
|
-
title: string | null;
|
|
163
|
-
metadata: ConversationMetadata | null;
|
|
164
|
-
userId: string | null;
|
|
165
159
|
ref: {
|
|
166
|
-
type: "
|
|
160
|
+
type: "commit" | "tag" | "branch";
|
|
167
161
|
name: string;
|
|
168
162
|
hash: string;
|
|
169
163
|
} | null;
|
|
164
|
+
userId: string | null;
|
|
165
|
+
metadata: ConversationMetadata | null;
|
|
166
|
+
tenantId: string;
|
|
167
|
+
projectId: string;
|
|
168
|
+
agentId: string | null;
|
|
169
|
+
title: string | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -13,12 +13,12 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
13
13
|
id: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
16
|
metadata: MessageMetadata | null;
|
|
17
|
+
role: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
projectId: string;
|
|
19
20
|
content: MessageContent;
|
|
20
21
|
conversationId: string;
|
|
21
|
-
role: string;
|
|
22
22
|
fromSubAgentId: string | null;
|
|
23
23
|
toSubAgentId: string | null;
|
|
24
24
|
fromExternalAgentId: string | null;
|
|
@@ -144,12 +144,12 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
144
144
|
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
146
|
updatedAt: string;
|
|
147
|
-
projectId: string;
|
|
148
|
-
tenantId: string;
|
|
149
147
|
metadata: MessageMetadata | null;
|
|
148
|
+
role: string;
|
|
149
|
+
tenantId: string;
|
|
150
|
+
projectId: string;
|
|
150
151
|
content: MessageContent;
|
|
151
152
|
conversationId: string;
|
|
152
|
-
role: string;
|
|
153
153
|
fromSubAgentId: string | null;
|
|
154
154
|
toSubAgentId: string | null;
|
|
155
155
|
fromExternalAgentId: string | null;
|
|
@@ -197,12 +197,12 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
197
197
|
id: string;
|
|
198
198
|
createdAt: string;
|
|
199
199
|
updatedAt: string;
|
|
200
|
-
projectId: string;
|
|
201
|
-
tenantId: string;
|
|
202
200
|
metadata: MessageMetadata | null;
|
|
201
|
+
role: string;
|
|
202
|
+
tenantId: string;
|
|
203
|
+
projectId: string;
|
|
203
204
|
content: MessageContent;
|
|
204
205
|
conversationId: string;
|
|
205
|
-
role: string;
|
|
206
206
|
fromSubAgentId: string | null;
|
|
207
207
|
toSubAgentId: string | null;
|
|
208
208
|
fromExternalAgentId: string | null;
|
|
@@ -9,18 +9,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
9
9
|
id: string;
|
|
10
10
|
createdAt: string;
|
|
11
11
|
updatedAt: string;
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
metadata: TaskMetadataConfig | null;
|
|
16
|
-
subAgentId: string;
|
|
17
|
-
status: string;
|
|
18
|
-
contextId: string;
|
|
19
12
|
ref: {
|
|
20
|
-
type: "
|
|
13
|
+
type: "commit" | "tag" | "branch";
|
|
21
14
|
name: string;
|
|
22
15
|
hash: string;
|
|
23
16
|
} | null;
|
|
17
|
+
metadata: TaskMetadataConfig | null;
|
|
18
|
+
status: string;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
agentId: string;
|
|
22
|
+
subAgentId: 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;
|