@inkeep/agents-core 0.0.0-dev-20260327181326 → 0.0.0-dev-20260327195114
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/permissions.d.ts +9 -9
- package/dist/constants/allowed-file-formats.d.ts +3 -1
- package/dist/constants/allowed-file-formats.js +27 -3
- 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 +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- 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 +10 -10
- 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 +15 -15
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +6 -6
- package/dist/data-access/runtime/conversations.d.ts +12 -12
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/runtime/runtime-schema.d.ts +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/validation/schemas.d.ts +402 -402
- 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;
|
|
14
12
|
id: string;
|
|
15
13
|
createdAt: string;
|
|
16
14
|
updatedAt: string;
|
|
17
15
|
agentId: string;
|
|
18
16
|
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
19
18
|
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;
|
|
49
47
|
id: string;
|
|
50
48
|
createdAt: string;
|
|
51
49
|
updatedAt: string;
|
|
52
50
|
agentId: string;
|
|
53
51
|
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
54
53
|
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;
|
|
62
60
|
id: string;
|
|
63
61
|
createdAt: string;
|
|
64
62
|
updatedAt: string;
|
|
65
63
|
agentId: string;
|
|
66
64
|
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
67
66
|
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;
|
|
215
213
|
id: string;
|
|
216
214
|
createdAt: string;
|
|
217
215
|
updatedAt: string;
|
|
218
216
|
agentId: string;
|
|
219
217
|
projectId: string;
|
|
218
|
+
tenantId: string;
|
|
220
219
|
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;
|
|
232
230
|
id: string;
|
|
233
231
|
createdAt: string;
|
|
234
232
|
updatedAt: string;
|
|
235
233
|
agentId: string;
|
|
236
234
|
projectId: string;
|
|
235
|
+
tenantId: string;
|
|
237
236
|
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;
|
|
253
251
|
id: string;
|
|
254
252
|
createdAt: string;
|
|
255
253
|
updatedAt: string;
|
|
256
254
|
agentId: string;
|
|
257
255
|
projectId: string;
|
|
256
|
+
tenantId: string;
|
|
258
257
|
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;
|
|
13
|
-
name: string;
|
|
14
12
|
id: string;
|
|
13
|
+
name: string;
|
|
15
14
|
createdAt: string;
|
|
16
15
|
updatedAt: string;
|
|
17
16
|
description: string | null;
|
|
18
17
|
agentId: string;
|
|
19
18
|
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
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;
|
|
44
|
-
name: string;
|
|
45
43
|
id: string;
|
|
44
|
+
name: string;
|
|
46
45
|
createdAt: string;
|
|
47
46
|
updatedAt: string;
|
|
48
47
|
description: string | null;
|
|
49
48
|
agentId: string;
|
|
50
49
|
projectId: string;
|
|
50
|
+
tenantId: string;
|
|
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;
|
|
113
|
-
name: string;
|
|
114
112
|
id: string;
|
|
113
|
+
name: string;
|
|
115
114
|
createdAt: string;
|
|
116
115
|
updatedAt: string;
|
|
117
116
|
description: string | null;
|
|
118
117
|
agentId: string;
|
|
119
118
|
projectId: string;
|
|
119
|
+
tenantId: string;
|
|
120
120
|
models: {
|
|
121
121
|
base?: {
|
|
122
122
|
model?: string | undefined;
|
|
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
tenantId: string;
|
|
24
|
-
name: string;
|
|
25
|
-
headers: Record<string, string> | null;
|
|
26
23
|
id: string;
|
|
24
|
+
name: string;
|
|
27
25
|
createdAt: string;
|
|
28
26
|
updatedAt: string;
|
|
29
27
|
description: string | null;
|
|
30
28
|
projectId: string;
|
|
29
|
+
tenantId: string;
|
|
31
30
|
config: {
|
|
32
31
|
type: "mcp";
|
|
33
32
|
mcp: ToolMcpConfig;
|
|
34
33
|
};
|
|
35
34
|
credentialReferenceId: string | null;
|
|
36
35
|
credentialScope: string;
|
|
36
|
+
headers: Record<string, string> | null;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
39
39
|
lastError: string | null;
|
|
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
tenantId: string;
|
|
82
|
-
name: string;
|
|
83
|
-
headers: Record<string, string> | null;
|
|
84
81
|
id: string;
|
|
82
|
+
name: string;
|
|
85
83
|
createdAt: string;
|
|
86
84
|
updatedAt: string;
|
|
87
85
|
description: string | null;
|
|
88
86
|
projectId: string;
|
|
87
|
+
tenantId: string;
|
|
89
88
|
config: {
|
|
90
89
|
type: "mcp";
|
|
91
90
|
mcp: ToolMcpConfig;
|
|
92
91
|
};
|
|
93
92
|
credentialReferenceId: string | null;
|
|
94
93
|
credentialScope: string;
|
|
94
|
+
headers: Record<string, string> | null;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
97
97
|
lastError: string | null;
|
|
@@ -135,15 +135,15 @@ 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;
|
|
140
138
|
id: string;
|
|
141
139
|
createdAt: string;
|
|
142
140
|
updatedAt: string;
|
|
143
141
|
agentId: string;
|
|
144
142
|
projectId: string;
|
|
143
|
+
tenantId: string;
|
|
145
144
|
subAgentId: string;
|
|
146
145
|
toolId: string;
|
|
146
|
+
headers: Record<string, string> | null;
|
|
147
147
|
selectedTools: string[] | null;
|
|
148
148
|
toolPolicies: Record<string, {
|
|
149
149
|
needsApproval?: boolean;
|
|
@@ -154,15 +154,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
-
tenantId: string;
|
|
158
|
-
headers: Record<string, string> | null;
|
|
159
157
|
id: string;
|
|
160
158
|
createdAt: string;
|
|
161
159
|
updatedAt: string;
|
|
162
160
|
agentId: string;
|
|
163
161
|
projectId: string;
|
|
162
|
+
tenantId: string;
|
|
164
163
|
subAgentId: string;
|
|
165
164
|
toolId: string;
|
|
165
|
+
headers: Record<string, string> | null;
|
|
166
166
|
selectedTools: string[] | null;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
168
168
|
needsApproval?: boolean;
|
|
@@ -182,15 +182,15 @@ 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;
|
|
187
185
|
id: string;
|
|
188
186
|
createdAt: string;
|
|
189
187
|
updatedAt: string;
|
|
190
188
|
agentId: string;
|
|
191
189
|
projectId: string;
|
|
190
|
+
tenantId: string;
|
|
192
191
|
subAgentId: string;
|
|
193
192
|
toolId: string;
|
|
193
|
+
headers: Record<string, string> | null;
|
|
194
194
|
selectedTools: string[] | null;
|
|
195
195
|
toolPolicies: Record<string, {
|
|
196
196
|
needsApproval?: boolean;
|
|
@@ -202,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
tenantId: string;
|
|
206
|
-
name: string;
|
|
207
|
-
headers: Record<string, string> | null;
|
|
208
205
|
id: string;
|
|
206
|
+
name: string;
|
|
209
207
|
createdAt: string;
|
|
210
208
|
updatedAt: string;
|
|
211
209
|
description: string | null;
|
|
212
210
|
projectId: string;
|
|
211
|
+
tenantId: string;
|
|
213
212
|
config: {
|
|
214
213
|
type: "mcp";
|
|
215
214
|
mcp: ToolMcpConfig;
|
|
216
215
|
};
|
|
217
216
|
credentialReferenceId: string | null;
|
|
218
217
|
credentialScope: string;
|
|
218
|
+
headers: Record<string, string> | null;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
221
221
|
lastError: string | null;
|
|
@@ -8,28 +8,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
name: string | null;
|
|
13
11
|
id: string;
|
|
12
|
+
name: string | null;
|
|
14
13
|
createdAt: string;
|
|
15
|
-
expiresAt: string | null;
|
|
16
14
|
updatedAt: string;
|
|
15
|
+
expiresAt: string | null;
|
|
17
16
|
agentId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
lastUsedAt: string | null;
|
|
20
20
|
publicId: string;
|
|
21
21
|
keyHash: string;
|
|
22
22
|
keyPrefix: string;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
tenantId: string;
|
|
26
|
-
name: string | null;
|
|
27
25
|
id: string;
|
|
26
|
+
name: string | null;
|
|
28
27
|
createdAt: string;
|
|
29
|
-
expiresAt: string | null;
|
|
30
28
|
updatedAt: string;
|
|
29
|
+
expiresAt: string | null;
|
|
31
30
|
agentId: string;
|
|
32
31
|
projectId: string;
|
|
32
|
+
tenantId: string;
|
|
33
33
|
lastUsedAt: string | null;
|
|
34
34
|
publicId: string;
|
|
35
35
|
keyHash: string;
|
|
@@ -39,14 +39,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
tenantId: string;
|
|
43
|
-
name: string | null;
|
|
44
42
|
id: string;
|
|
43
|
+
name: string | null;
|
|
45
44
|
createdAt: string;
|
|
46
|
-
expiresAt: string | null;
|
|
47
45
|
updatedAt: string;
|
|
46
|
+
expiresAt: string | null;
|
|
48
47
|
agentId: string;
|
|
49
48
|
projectId: string;
|
|
49
|
+
tenantId: string;
|
|
50
50
|
lastUsedAt: string | null;
|
|
51
51
|
publicId: string;
|
|
52
52
|
keyHash: string;
|
|
@@ -66,14 +66,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
-
tenantId: string;
|
|
70
|
-
name: string | null;
|
|
71
69
|
id: string;
|
|
70
|
+
name: string | null;
|
|
72
71
|
createdAt: string;
|
|
73
|
-
expiresAt: string | null;
|
|
74
72
|
updatedAt: string;
|
|
73
|
+
expiresAt: string | null;
|
|
75
74
|
agentId: string;
|
|
76
75
|
projectId: string;
|
|
76
|
+
tenantId: string;
|
|
77
77
|
lastUsedAt: string | null;
|
|
78
78
|
publicId: string;
|
|
79
79
|
keyHash: string;
|
|
@@ -6,14 +6,14 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
8
|
type: AppType;
|
|
9
|
-
tenantId: string | null;
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
name: string;
|
|
12
9
|
id: string;
|
|
10
|
+
name: string;
|
|
13
11
|
createdAt: string;
|
|
14
12
|
updatedAt: string;
|
|
15
13
|
description: string | null;
|
|
16
14
|
projectId: string | null;
|
|
15
|
+
tenantId: string | null;
|
|
16
|
+
enabled: boolean;
|
|
17
17
|
prompt: string | null;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
@@ -65,14 +65,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
65
65
|
}>;
|
|
66
66
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
67
67
|
type: AppType;
|
|
68
|
-
tenantId: string | null;
|
|
69
|
-
enabled: boolean;
|
|
70
|
-
name: string;
|
|
71
68
|
id: string;
|
|
69
|
+
name: string;
|
|
72
70
|
createdAt: string;
|
|
73
71
|
updatedAt: string;
|
|
74
72
|
description: string | null;
|
|
75
73
|
projectId: string | null;
|
|
74
|
+
tenantId: string | null;
|
|
75
|
+
enabled: boolean;
|
|
76
76
|
prompt: string | null;
|
|
77
77
|
config: {
|
|
78
78
|
type: "web_client";
|
|
@@ -15,9 +15,6 @@ 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;
|
|
21
18
|
id: string;
|
|
22
19
|
createdAt: string;
|
|
23
20
|
updatedAt: string;
|
|
@@ -26,8 +23,11 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
26
23
|
name: string;
|
|
27
24
|
hash: string;
|
|
28
25
|
} | null;
|
|
26
|
+
userId: string | null;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
29
28
|
agentId: string | null;
|
|
30
29
|
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
31
|
title: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
@@ -84,9 +84,6 @@ 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;
|
|
90
87
|
id: string;
|
|
91
88
|
createdAt: string;
|
|
92
89
|
updatedAt: string;
|
|
@@ -95,8 +92,11 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
95
92
|
name: string;
|
|
96
93
|
hash: string;
|
|
97
94
|
} | null;
|
|
95
|
+
userId: string | null;
|
|
96
|
+
metadata: ConversationMetadata | null;
|
|
98
97
|
agentId: string | null;
|
|
99
98
|
projectId: string;
|
|
99
|
+
tenantId: string;
|
|
100
100
|
title: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
@@ -120,9 +120,6 @@ 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;
|
|
126
123
|
id: string;
|
|
127
124
|
createdAt: string;
|
|
128
125
|
updatedAt: string;
|
|
@@ -131,8 +128,11 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
131
128
|
name: string;
|
|
132
129
|
hash: string;
|
|
133
130
|
} | null;
|
|
131
|
+
userId: string | null;
|
|
132
|
+
metadata: ConversationMetadata | null;
|
|
134
133
|
agentId: string | null;
|
|
135
134
|
projectId: string;
|
|
135
|
+
tenantId: string;
|
|
136
136
|
title: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
@@ -152,9 +152,6 @@ 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;
|
|
158
155
|
id: string;
|
|
159
156
|
createdAt: string;
|
|
160
157
|
updatedAt: string;
|
|
@@ -163,8 +160,11 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
163
160
|
name: string;
|
|
164
161
|
hash: string;
|
|
165
162
|
} | null;
|
|
163
|
+
userId: string | null;
|
|
164
|
+
metadata: ConversationMetadata | null;
|
|
166
165
|
agentId: string | null;
|
|
167
166
|
projectId: string;
|
|
167
|
+
tenantId: string;
|
|
168
168
|
title: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
@@ -10,26 +10,26 @@ 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;
|
|
16
13
|
id: string;
|
|
17
14
|
createdAt: string;
|
|
18
15
|
updatedAt: string;
|
|
16
|
+
metadata: MessageMetadata | null;
|
|
17
|
+
role: string;
|
|
19
18
|
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
20
20
|
content: MessageContent;
|
|
21
|
+
conversationId: string;
|
|
21
22
|
fromSubAgentId: string | null;
|
|
22
23
|
toSubAgentId: string | null;
|
|
23
24
|
fromExternalAgentId: string | null;
|
|
24
25
|
toExternalAgentId: string | null;
|
|
25
|
-
taskId: string | null;
|
|
26
|
-
a2aTaskId: string | null;
|
|
27
|
-
conversationId: string;
|
|
28
26
|
fromTeamAgentId: string | null;
|
|
29
27
|
toTeamAgentId: string | null;
|
|
30
28
|
visibility: string;
|
|
31
29
|
messageType: string;
|
|
30
|
+
taskId: string | null;
|
|
32
31
|
parentMessageId: string | null;
|
|
32
|
+
a2aTaskId: string | null;
|
|
33
33
|
a2aSessionId: string | null;
|
|
34
34
|
} | undefined>;
|
|
35
35
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -144,26 +144,26 @@ 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;
|
|
150
147
|
id: string;
|
|
151
148
|
createdAt: string;
|
|
152
149
|
updatedAt: string;
|
|
150
|
+
metadata: MessageMetadata | null;
|
|
151
|
+
role: string;
|
|
153
152
|
projectId: string;
|
|
153
|
+
tenantId: string;
|
|
154
154
|
content: MessageContent;
|
|
155
|
+
conversationId: string;
|
|
155
156
|
fromSubAgentId: string | null;
|
|
156
157
|
toSubAgentId: string | null;
|
|
157
158
|
fromExternalAgentId: string | null;
|
|
158
159
|
toExternalAgentId: string | null;
|
|
159
|
-
taskId: string | null;
|
|
160
|
-
a2aTaskId: string | null;
|
|
161
|
-
conversationId: string;
|
|
162
160
|
fromTeamAgentId: string | null;
|
|
163
161
|
toTeamAgentId: string | null;
|
|
164
162
|
visibility: string;
|
|
165
163
|
messageType: string;
|
|
164
|
+
taskId: string | null;
|
|
166
165
|
parentMessageId: string | null;
|
|
166
|
+
a2aTaskId: string | null;
|
|
167
167
|
a2aSessionId: string | null;
|
|
168
168
|
}>;
|
|
169
169
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -197,26 +197,26 @@ 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;
|
|
203
200
|
id: string;
|
|
204
201
|
createdAt: string;
|
|
205
202
|
updatedAt: string;
|
|
203
|
+
metadata: MessageMetadata | null;
|
|
204
|
+
role: string;
|
|
206
205
|
projectId: string;
|
|
206
|
+
tenantId: string;
|
|
207
207
|
content: MessageContent;
|
|
208
|
+
conversationId: string;
|
|
208
209
|
fromSubAgentId: string | null;
|
|
209
210
|
toSubAgentId: string | null;
|
|
210
211
|
fromExternalAgentId: string | null;
|
|
211
212
|
toExternalAgentId: string | null;
|
|
212
|
-
taskId: string | null;
|
|
213
|
-
a2aTaskId: string | null;
|
|
214
|
-
conversationId: string;
|
|
215
213
|
fromTeamAgentId: string | null;
|
|
216
214
|
toTeamAgentId: string | null;
|
|
217
215
|
visibility: string;
|
|
218
216
|
messageType: string;
|
|
217
|
+
taskId: string | null;
|
|
219
218
|
parentMessageId: string | null;
|
|
219
|
+
a2aTaskId: string | null;
|
|
220
220
|
a2aSessionId: string | null;
|
|
221
221
|
}>;
|
|
222
222
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -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" | "failed" | "running" | "completed" | "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" | "failed" | "running" | "completed" | "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" | "failed" | "running" | "completed" | "cancelled";
|
|
236
236
|
scheduledFor: string;
|
|
237
237
|
startedAt: string | null;
|
|
238
238
|
completedAt: string | null;
|
|
@@ -7,19 +7,19 @@ 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
|
-
tenantId: string;
|
|
11
|
-
metadata: TaskMetadataConfig | null;
|
|
12
10
|
id: string;
|
|
13
11
|
createdAt: string;
|
|
14
|
-
status: string;
|
|
15
12
|
updatedAt: string;
|
|
16
13
|
ref: {
|
|
17
14
|
type: "commit" | "tag" | "branch";
|
|
18
15
|
name: string;
|
|
19
16
|
hash: string;
|
|
20
17
|
} | null;
|
|
18
|
+
metadata: TaskMetadataConfig | null;
|
|
19
|
+
status: string;
|
|
21
20
|
agentId: string;
|
|
22
21
|
projectId: string;
|
|
22
|
+
tenantId: string;
|
|
23
23
|
subAgentId: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
@@ -2396,7 +2396,7 @@ declare const scheduledTriggerInvocations: drizzle_orm_pg_core1825.PgTableWithCo
|
|
|
2396
2396
|
tableName: "scheduled_trigger_invocations";
|
|
2397
2397
|
dataType: "string";
|
|
2398
2398
|
columnType: "PgVarchar";
|
|
2399
|
-
data: "pending" | "
|
|
2399
|
+
data: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
2400
2400
|
driverParam: string;
|
|
2401
2401
|
notNull: true;
|
|
2402
2402
|
hasDefault: false;
|
|
@@ -2409,7 +2409,7 @@ declare const scheduledTriggerInvocations: drizzle_orm_pg_core1825.PgTableWithCo
|
|
|
2409
2409
|
generated: undefined;
|
|
2410
2410
|
}, {}, {
|
|
2411
2411
|
length: 50;
|
|
2412
|
-
$type: "pending" | "
|
|
2412
|
+
$type: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
2413
2413
|
}>;
|
|
2414
2414
|
scheduledFor: drizzle_orm_pg_core1825.PgColumn<{
|
|
2415
2415
|
name: "scheduled_for";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono0 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/no-auth.d.ts
|
|
4
|
-
declare const noAuth: () =>
|
|
4
|
+
declare const noAuth: () => hono0.MiddlewareHandler<any, string, {}, Response>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { noAuth };
|