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