@inkeep/agents-core 0.0.0-dev-20260327070744 → 0.0.0-dev-20260327181326
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 +108 -108
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/init.js +3 -1
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- 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 +10 -10
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +450 -450
- package/dist/db/runtime/runtime-schema.d.ts +344 -344
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/jwt-helpers.d.ts +7 -1
- package/dist/utils/jwt-helpers.js +11 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1868 -1868
- package/dist/validation/schemas.js +1 -1
- package/drizzle/runtime/0027_seed-playground-app.sql +13 -0
- package/drizzle/runtime/meta/0027_snapshot.json +4389 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
headers: Record<string, string> | null;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
17
|
agentId: string;
|
|
16
18
|
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
tenantId: string;
|
|
48
|
+
headers: Record<string, string> | null;
|
|
47
49
|
id: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
52
|
agentId: string;
|
|
51
53
|
projectId: string;
|
|
52
|
-
tenantId: string;
|
|
53
54
|
subAgentId: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
tenantId: string;
|
|
61
|
+
headers: Record<string, string> | null;
|
|
60
62
|
id: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
65
|
agentId: string;
|
|
64
66
|
projectId: string;
|
|
65
|
-
tenantId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -210,14 +210,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
210
|
headers?: Record<string, string> | null;
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
|
+
tenantId: string;
|
|
214
|
+
headers: Record<string, string> | null;
|
|
213
215
|
id: string;
|
|
214
216
|
createdAt: string;
|
|
215
217
|
updatedAt: string;
|
|
216
218
|
agentId: string;
|
|
217
219
|
projectId: string;
|
|
218
|
-
tenantId: string;
|
|
219
220
|
subAgentId: string;
|
|
220
|
-
headers: Record<string, string> | null;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
223
223
|
/**
|
|
@@ -227,14 +227,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
227
|
scopes: SubAgentScopeConfig;
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
|
+
tenantId: string;
|
|
231
|
+
headers: Record<string, string> | null;
|
|
230
232
|
id: string;
|
|
231
233
|
createdAt: string;
|
|
232
234
|
updatedAt: string;
|
|
233
235
|
agentId: string;
|
|
234
236
|
projectId: string;
|
|
235
|
-
tenantId: string;
|
|
236
237
|
subAgentId: string;
|
|
237
|
-
headers: Record<string, string> | null;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
240
240
|
/**
|
|
@@ -248,14 +248,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
248
|
headers?: Record<string, string> | null;
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
|
+
tenantId: string;
|
|
252
|
+
headers: Record<string, string> | null;
|
|
251
253
|
id: string;
|
|
252
254
|
createdAt: string;
|
|
253
255
|
updatedAt: string;
|
|
254
256
|
agentId: string;
|
|
255
257
|
projectId: string;
|
|
256
|
-
tenantId: string;
|
|
257
258
|
subAgentId: string;
|
|
258
|
-
headers: Record<string, string> | null;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
261
261
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
12
13
|
name: string;
|
|
13
14
|
id: string;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
17
|
+
description: string | null;
|
|
16
18
|
agentId: string;
|
|
17
19
|
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
|
-
description: string | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -40,14 +40,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
|
+
tenantId: string;
|
|
43
44
|
name: string;
|
|
44
45
|
id: string;
|
|
45
46
|
createdAt: string;
|
|
46
47
|
updatedAt: string;
|
|
48
|
+
description: string | null;
|
|
47
49
|
agentId: string;
|
|
48
50
|
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
description: string | null;
|
|
51
51
|
models: {
|
|
52
52
|
base?: {
|
|
53
53
|
model?: string | undefined;
|
|
@@ -109,14 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
|
+
tenantId: string;
|
|
112
113
|
name: string;
|
|
113
114
|
id: string;
|
|
114
115
|
createdAt: string;
|
|
115
116
|
updatedAt: string;
|
|
117
|
+
description: string | null;
|
|
116
118
|
agentId: string;
|
|
117
119
|
projectId: string;
|
|
118
|
-
tenantId: string;
|
|
119
|
-
description: string | null;
|
|
120
120
|
models: {
|
|
121
121
|
base?: {
|
|
122
122
|
model?: string | undefined;
|
|
@@ -20,14 +20,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
+
tenantId: string;
|
|
23
24
|
name: string;
|
|
25
|
+
headers: Record<string, string> | null;
|
|
24
26
|
id: string;
|
|
25
27
|
createdAt: string;
|
|
26
28
|
updatedAt: string;
|
|
27
|
-
projectId: string;
|
|
28
|
-
tenantId: string;
|
|
29
29
|
description: string | null;
|
|
30
|
-
|
|
30
|
+
projectId: string;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
@@ -78,14 +78,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
+
tenantId: string;
|
|
81
82
|
name: string;
|
|
83
|
+
headers: Record<string, string> | null;
|
|
82
84
|
id: string;
|
|
83
85
|
createdAt: string;
|
|
84
86
|
updatedAt: string;
|
|
85
|
-
projectId: string;
|
|
86
|
-
tenantId: string;
|
|
87
87
|
description: string | null;
|
|
88
|
-
|
|
88
|
+
projectId: string;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
+
tenantId: string;
|
|
139
|
+
headers: Record<string, string> | null;
|
|
138
140
|
id: string;
|
|
139
141
|
createdAt: string;
|
|
140
142
|
updatedAt: string;
|
|
141
143
|
agentId: string;
|
|
142
144
|
projectId: string;
|
|
143
|
-
tenantId: string;
|
|
144
145
|
subAgentId: string;
|
|
145
146
|
toolId: string;
|
|
146
|
-
|
|
147
|
+
selectedTools: string[] | null;
|
|
147
148
|
toolPolicies: Record<string, {
|
|
148
149
|
needsApproval?: boolean;
|
|
149
150
|
}> | null;
|
|
150
|
-
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
+
tenantId: string;
|
|
158
|
+
headers: Record<string, string> | null;
|
|
157
159
|
id: string;
|
|
158
160
|
createdAt: string;
|
|
159
161
|
updatedAt: string;
|
|
160
162
|
agentId: string;
|
|
161
163
|
projectId: string;
|
|
162
|
-
tenantId: string;
|
|
163
164
|
subAgentId: string;
|
|
164
165
|
toolId: string;
|
|
165
|
-
|
|
166
|
+
selectedTools: string[] | null;
|
|
166
167
|
toolPolicies: Record<string, {
|
|
167
168
|
needsApproval?: boolean;
|
|
168
169
|
}> | null;
|
|
169
|
-
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
+
tenantId: string;
|
|
186
|
+
headers: Record<string, string> | null;
|
|
185
187
|
id: string;
|
|
186
188
|
createdAt: string;
|
|
187
189
|
updatedAt: string;
|
|
188
190
|
agentId: string;
|
|
189
191
|
projectId: string;
|
|
190
|
-
tenantId: string;
|
|
191
192
|
subAgentId: string;
|
|
192
193
|
toolId: string;
|
|
193
|
-
|
|
194
|
+
selectedTools: string[] | null;
|
|
194
195
|
toolPolicies: Record<string, {
|
|
195
196
|
needsApproval?: boolean;
|
|
196
197
|
}> | null;
|
|
197
|
-
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -202,14 +202,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
+
tenantId: string;
|
|
205
206
|
name: string;
|
|
207
|
+
headers: Record<string, string> | null;
|
|
206
208
|
id: string;
|
|
207
209
|
createdAt: string;
|
|
208
210
|
updatedAt: string;
|
|
209
|
-
projectId: string;
|
|
210
|
-
tenantId: string;
|
|
211
211
|
description: string | null;
|
|
212
|
-
|
|
212
|
+
projectId: string;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
11
12
|
name: string | null;
|
|
12
13
|
id: string;
|
|
13
14
|
createdAt: string;
|
|
15
|
+
expiresAt: string | null;
|
|
14
16
|
updatedAt: string;
|
|
15
17
|
agentId: string;
|
|
16
18
|
projectId: string;
|
|
17
|
-
|
|
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
|
+
tenantId: string;
|
|
25
26
|
name: string | null;
|
|
26
27
|
id: string;
|
|
27
28
|
createdAt: string;
|
|
29
|
+
expiresAt: string | null;
|
|
28
30
|
updatedAt: string;
|
|
29
31
|
agentId: string;
|
|
30
32
|
projectId: string;
|
|
31
|
-
|
|
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
|
+
tenantId: string;
|
|
42
43
|
name: string | null;
|
|
43
44
|
id: string;
|
|
44
45
|
createdAt: string;
|
|
46
|
+
expiresAt: string | null;
|
|
45
47
|
updatedAt: string;
|
|
46
48
|
agentId: string;
|
|
47
49
|
projectId: string;
|
|
48
|
-
|
|
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;
|
|
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
+
tenantId: string;
|
|
69
70
|
name: string | null;
|
|
70
71
|
id: string;
|
|
71
72
|
createdAt: string;
|
|
73
|
+
expiresAt: string | null;
|
|
72
74
|
updatedAt: string;
|
|
73
75
|
agentId: string;
|
|
74
76
|
projectId: string;
|
|
75
|
-
|
|
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;
|
|
@@ -5,15 +5,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
5
5
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
|
+
type: AppType;
|
|
9
|
+
tenantId: string | null;
|
|
10
|
+
enabled: boolean;
|
|
8
11
|
name: string;
|
|
9
12
|
id: string;
|
|
10
13
|
createdAt: string;
|
|
11
14
|
updatedAt: string;
|
|
12
|
-
projectId: string | null;
|
|
13
|
-
tenantId: string | null;
|
|
14
15
|
description: string | null;
|
|
15
|
-
|
|
16
|
-
enabled: boolean;
|
|
16
|
+
projectId: string | null;
|
|
17
17
|
prompt: string | null;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
@@ -35,9 +35,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
35
35
|
type: "api";
|
|
36
36
|
api: Record<string, never>;
|
|
37
37
|
};
|
|
38
|
-
lastUsedAt: string | null;
|
|
39
|
-
defaultProjectId: string | null;
|
|
40
38
|
defaultAgentId: string | null;
|
|
39
|
+
defaultProjectId: string | null;
|
|
40
|
+
lastUsedAt: string | null;
|
|
41
41
|
} | undefined>;
|
|
42
42
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
43
43
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -64,15 +64,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
64
64
|
};
|
|
65
65
|
}>;
|
|
66
66
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
67
|
+
type: AppType;
|
|
68
|
+
tenantId: string | null;
|
|
69
|
+
enabled: boolean;
|
|
67
70
|
name: string;
|
|
68
71
|
id: string;
|
|
69
72
|
createdAt: string;
|
|
70
73
|
updatedAt: string;
|
|
71
|
-
projectId: string | null;
|
|
72
|
-
tenantId: string | null;
|
|
73
74
|
description: string | null;
|
|
74
|
-
|
|
75
|
-
enabled: boolean;
|
|
75
|
+
projectId: string | null;
|
|
76
76
|
prompt: string | null;
|
|
77
77
|
config: {
|
|
78
78
|
type: "web_client";
|
|
@@ -94,9 +94,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
94
94
|
type: "api";
|
|
95
95
|
api: Record<string, never>;
|
|
96
96
|
};
|
|
97
|
-
lastUsedAt: string | null;
|
|
98
|
-
defaultProjectId: string | null;
|
|
99
97
|
defaultAgentId: string | null;
|
|
98
|
+
defaultProjectId: string | null;
|
|
99
|
+
lastUsedAt: string | null;
|
|
100
100
|
}>;
|
|
101
101
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
102
102
|
scopes: TenantScopeConfig;
|
|
@@ -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
|
+
tenantId: string;
|
|
19
|
+
userId: string | null;
|
|
20
|
+
metadata: ConversationMetadata | null;
|
|
18
21
|
id: string;
|
|
19
22
|
createdAt: string;
|
|
20
23
|
updatedAt: string;
|
|
21
|
-
agentId: string | null;
|
|
22
|
-
projectId: string;
|
|
23
|
-
tenantId: string;
|
|
24
|
-
title: string | null;
|
|
25
|
-
metadata: ConversationMetadata | null;
|
|
26
|
-
userId: string | null;
|
|
27
24
|
ref: {
|
|
28
25
|
type: "commit" | "tag" | "branch";
|
|
29
26
|
name: string;
|
|
30
27
|
hash: string;
|
|
31
28
|
} | null;
|
|
29
|
+
agentId: string | null;
|
|
30
|
+
projectId: string;
|
|
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
|
+
tenantId: string;
|
|
88
|
+
userId: string | null;
|
|
89
|
+
metadata: ConversationMetadata | null;
|
|
87
90
|
id: string;
|
|
88
91
|
createdAt: string;
|
|
89
92
|
updatedAt: string;
|
|
90
|
-
agentId: string | null;
|
|
91
|
-
projectId: string;
|
|
92
|
-
tenantId: string;
|
|
93
|
-
title: string | null;
|
|
94
|
-
metadata: ConversationMetadata | null;
|
|
95
|
-
userId: string | null;
|
|
96
93
|
ref: {
|
|
97
94
|
type: "commit" | "tag" | "branch";
|
|
98
95
|
name: string;
|
|
99
96
|
hash: string;
|
|
100
97
|
} | null;
|
|
98
|
+
agentId: string | null;
|
|
99
|
+
projectId: string;
|
|
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
|
+
tenantId: string;
|
|
124
|
+
userId: string | null;
|
|
125
|
+
metadata: ConversationMetadata | null;
|
|
123
126
|
id: string;
|
|
124
127
|
createdAt: string;
|
|
125
128
|
updatedAt: string;
|
|
126
|
-
agentId: string | null;
|
|
127
|
-
projectId: string;
|
|
128
|
-
tenantId: string;
|
|
129
|
-
title: string | null;
|
|
130
|
-
metadata: ConversationMetadata | null;
|
|
131
|
-
userId: string | null;
|
|
132
129
|
ref: {
|
|
133
130
|
type: "commit" | "tag" | "branch";
|
|
134
131
|
name: string;
|
|
135
132
|
hash: string;
|
|
136
133
|
} | null;
|
|
134
|
+
agentId: string | null;
|
|
135
|
+
projectId: string;
|
|
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
|
+
tenantId: string;
|
|
156
|
+
userId: string | null;
|
|
157
|
+
metadata: ConversationMetadata | null;
|
|
155
158
|
id: string;
|
|
156
159
|
createdAt: string;
|
|
157
160
|
updatedAt: string;
|
|
158
|
-
agentId: string | null;
|
|
159
|
-
projectId: string;
|
|
160
|
-
tenantId: string;
|
|
161
|
-
title: string | null;
|
|
162
|
-
metadata: ConversationMetadata | null;
|
|
163
|
-
userId: string | null;
|
|
164
161
|
ref: {
|
|
165
162
|
type: "commit" | "tag" | "branch";
|
|
166
163
|
name: string;
|
|
167
164
|
hash: string;
|
|
168
165
|
} | null;
|
|
166
|
+
agentId: string | null;
|
|
167
|
+
projectId: string;
|
|
168
|
+
title: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -10,12 +10,13 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
tenantId: string;
|
|
14
|
+
metadata: MessageMetadata | null;
|
|
15
|
+
role: string;
|
|
13
16
|
id: string;
|
|
14
17
|
createdAt: string;
|
|
15
18
|
updatedAt: string;
|
|
16
19
|
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
metadata: MessageMetadata | null;
|
|
19
20
|
content: MessageContent;
|
|
20
21
|
fromSubAgentId: string | null;
|
|
21
22
|
toSubAgentId: string | null;
|
|
@@ -24,7 +25,6 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
24
25
|
taskId: string | null;
|
|
25
26
|
a2aTaskId: string | null;
|
|
26
27
|
conversationId: string;
|
|
27
|
-
role: string;
|
|
28
28
|
fromTeamAgentId: string | null;
|
|
29
29
|
toTeamAgentId: string | null;
|
|
30
30
|
visibility: string;
|
|
@@ -144,12 +144,13 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
144
144
|
scopes: ProjectScopeConfig;
|
|
145
145
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
146
146
|
}) => Promise<{
|
|
147
|
+
tenantId: string;
|
|
148
|
+
metadata: MessageMetadata | null;
|
|
149
|
+
role: string;
|
|
147
150
|
id: string;
|
|
148
151
|
createdAt: string;
|
|
149
152
|
updatedAt: string;
|
|
150
153
|
projectId: string;
|
|
151
|
-
tenantId: string;
|
|
152
|
-
metadata: MessageMetadata | null;
|
|
153
154
|
content: MessageContent;
|
|
154
155
|
fromSubAgentId: string | null;
|
|
155
156
|
toSubAgentId: string | null;
|
|
@@ -158,7 +159,6 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
158
159
|
taskId: string | null;
|
|
159
160
|
a2aTaskId: string | null;
|
|
160
161
|
conversationId: string;
|
|
161
|
-
role: string;
|
|
162
162
|
fromTeamAgentId: string | null;
|
|
163
163
|
toTeamAgentId: string | null;
|
|
164
164
|
visibility: string;
|
|
@@ -197,12 +197,13 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
197
197
|
scopes: ProjectScopeConfig;
|
|
198
198
|
messageId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
+
tenantId: string;
|
|
201
|
+
metadata: MessageMetadata | null;
|
|
202
|
+
role: string;
|
|
200
203
|
id: string;
|
|
201
204
|
createdAt: string;
|
|
202
205
|
updatedAt: string;
|
|
203
206
|
projectId: string;
|
|
204
|
-
tenantId: string;
|
|
205
|
-
metadata: MessageMetadata | null;
|
|
206
207
|
content: MessageContent;
|
|
207
208
|
fromSubAgentId: string | null;
|
|
208
209
|
toSubAgentId: string | null;
|
|
@@ -211,7 +212,6 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
211
212
|
taskId: string | null;
|
|
212
213
|
a2aTaskId: string | null;
|
|
213
214
|
conversationId: string;
|
|
214
|
-
role: string;
|
|
215
215
|
fromTeamAgentId: string | null;
|
|
216
216
|
toTeamAgentId: string | null;
|
|
217
217
|
visibility: string;
|
|
@@ -39,7 +39,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
39
39
|
name: string;
|
|
40
40
|
hash: string;
|
|
41
41
|
} | null;
|
|
42
|
-
status: "pending" | "
|
|
42
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
43
43
|
scheduledFor: string;
|
|
44
44
|
startedAt: string | null;
|
|
45
45
|
completedAt: string | null;
|
|
@@ -193,7 +193,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
|
|
|
193
193
|
name: string;
|
|
194
194
|
hash: string;
|
|
195
195
|
} | null;
|
|
196
|
-
status: "pending" | "
|
|
196
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
197
197
|
scheduledFor: string;
|
|
198
198
|
startedAt: string | null;
|
|
199
199
|
completedAt: string | null;
|
|
@@ -232,7 +232,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
|
|
|
232
232
|
name: string;
|
|
233
233
|
hash: string;
|
|
234
234
|
} | null;
|
|
235
|
-
status: "pending" | "
|
|
235
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
236
236
|
scheduledFor: string;
|
|
237
237
|
startedAt: string | null;
|
|
238
238
|
completedAt: string | null;
|
|
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
|
|
8
8
|
//#region src/data-access/runtime/tasks.d.ts
|
|
9
9
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
10
|
-
id: string;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
updatedAt: string;
|
|
13
|
-
agentId: string;
|
|
14
|
-
projectId: string;
|
|
15
10
|
tenantId: string;
|
|
16
11
|
metadata: TaskMetadataConfig | null;
|
|
17
|
-
|
|
12
|
+
id: string;
|
|
13
|
+
createdAt: string;
|
|
18
14
|
status: string;
|
|
15
|
+
updatedAt: string;
|
|
19
16
|
ref: {
|
|
20
17
|
type: "commit" | "tag" | "branch";
|
|
21
18
|
name: string;
|
|
22
19
|
hash: string;
|
|
23
20
|
} | null;
|
|
21
|
+
agentId: string;
|
|
22
|
+
projectId: string;
|
|
23
|
+
subAgentId: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|