@inkeep/agents-core 0.58.9 → 0.58.12
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 +85 -85
- 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 +4 -4
- package/dist/client-exports.js +2 -2
- package/dist/data-access/manage/agents.d.ts +40 -40
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/credentialReferences.d.ts +2 -2
- package/dist/data-access/manage/credentialReferences.js +46 -18
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +18 -18
- package/dist/data-access/manage/skills.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +24 -24
- package/dist/data-access/manage/tools.d.ts +28 -27
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- 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 +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +326 -326
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/extend-schemas.d.ts +5 -1
- package/dist/validation/schemas.d.ts +2408 -3219
- package/dist/validation/schemas.js +41 -10
- package/package.json +3 -3
|
@@ -11,12 +11,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
14
|
description: string | null;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
20
18
|
prompt: string | null;
|
|
21
19
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
22
20
|
models: {
|
|
@@ -33,21 +31,21 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
33
31
|
providerOptions?: Record<string, any> | undefined;
|
|
34
32
|
} | undefined;
|
|
35
33
|
} | null;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
stopWhen: {
|
|
35
|
+
stepCountIs?: number | undefined;
|
|
36
|
+
} | null;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
43
|
id: string;
|
|
44
44
|
name: string;
|
|
45
|
-
createdAt: string;
|
|
46
|
-
updatedAt: string;
|
|
47
45
|
description: string | null;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
agentId: string;
|
|
51
49
|
prompt: string | null;
|
|
52
50
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
53
51
|
models: {
|
|
@@ -64,9 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
64
62
|
providerOptions?: Record<string, any> | undefined;
|
|
65
63
|
} | undefined;
|
|
66
64
|
} | null;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
stopWhen: {
|
|
66
|
+
stepCountIs?: number | undefined;
|
|
67
|
+
} | null;
|
|
68
|
+
createdAt: string;
|
|
69
|
+
updatedAt: string;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -111,12 +111,10 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
112
|
id: string;
|
|
113
113
|
name: string;
|
|
114
|
-
createdAt: string;
|
|
115
|
-
updatedAt: string;
|
|
116
114
|
description: string | null;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
tenantId: string;
|
|
116
|
+
projectId: string;
|
|
117
|
+
agentId: string;
|
|
120
118
|
prompt: string | null;
|
|
121
119
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
122
120
|
models: {
|
|
@@ -133,9 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
133
131
|
providerOptions?: Record<string, any> | undefined;
|
|
134
132
|
} | undefined;
|
|
135
133
|
} | null;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
stopWhen: {
|
|
135
|
+
stepCountIs?: number | undefined;
|
|
136
|
+
} | null;
|
|
137
|
+
createdAt: string;
|
|
138
|
+
updatedAt: string;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -4,6 +4,7 @@ import "../../types/index.js";
|
|
|
4
4
|
import { CredentialStoreRegistry } from "../../credential-stores/CredentialStoreRegistry.js";
|
|
5
5
|
import "../../credential-stores/index.js";
|
|
6
6
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
7
|
+
import { WithTimestamps } from "../../validation/extend-schemas.js";
|
|
7
8
|
import "../../index.js";
|
|
8
9
|
import { McpTool, ToolInsert, ToolSelect, ToolUpdate } from "../../types/entities.js";
|
|
9
10
|
|
|
@@ -13,20 +14,20 @@ import { McpTool, ToolInsert, ToolSelect, ToolUpdate } from "../../types/entitie
|
|
|
13
14
|
* This is a fast path that returns status='unknown' and empty availableTools.
|
|
14
15
|
* Use this for list views where you want instant page load.
|
|
15
16
|
*/
|
|
16
|
-
declare const dbResultToMcpToolSkeleton: (dbResult: ToolSelect, relationshipId?: string) => McpTool
|
|
17
|
-
declare const dbResultToMcpTool: (dbResult: ToolSelect, dbClient: AgentsManageDatabaseClient, credentialStoreRegistry?: CredentialStoreRegistry, relationshipId?: string, userId?: string) => Promise<McpTool
|
|
17
|
+
declare const dbResultToMcpToolSkeleton: (dbResult: ToolSelect, relationshipId?: string) => WithTimestamps<McpTool>;
|
|
18
|
+
declare const dbResultToMcpTool: (dbResult: ToolSelect, dbClient: AgentsManageDatabaseClient, credentialStoreRegistry?: CredentialStoreRegistry, relationshipId?: string, userId?: string) => Promise<WithTimestamps<McpTool>>;
|
|
18
19
|
declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
19
20
|
scopes: ProjectScopeConfig;
|
|
20
21
|
toolId: string;
|
|
21
22
|
}) => Promise<{
|
|
22
23
|
id: string;
|
|
23
24
|
name: string;
|
|
25
|
+
description: string | null;
|
|
26
|
+
tenantId: string;
|
|
27
|
+
projectId: string;
|
|
24
28
|
createdAt: string;
|
|
25
29
|
updatedAt: string;
|
|
26
|
-
description: string | null;
|
|
27
30
|
headers: Record<string, string> | null;
|
|
28
|
-
projectId: string;
|
|
29
|
-
tenantId: string;
|
|
30
31
|
config: {
|
|
31
32
|
type: "mcp";
|
|
32
33
|
mcp: ToolMcpConfig;
|
|
@@ -79,12 +80,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
79
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
81
|
id: string;
|
|
81
82
|
name: string;
|
|
83
|
+
description: string | null;
|
|
84
|
+
tenantId: string;
|
|
85
|
+
projectId: string;
|
|
82
86
|
createdAt: string;
|
|
83
87
|
updatedAt: string;
|
|
84
|
-
description: string | null;
|
|
85
88
|
headers: Record<string, string> | null;
|
|
86
|
-
projectId: string;
|
|
87
|
-
tenantId: string;
|
|
88
89
|
config: {
|
|
89
90
|
type: "mcp";
|
|
90
91
|
mcp: ToolMcpConfig;
|
|
@@ -99,7 +100,7 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
99
100
|
declare const updateTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
100
101
|
scopes: ProjectScopeConfig;
|
|
101
102
|
toolId: string;
|
|
102
|
-
data: ToolUpdate
|
|
103
|
+
data: WithTimestamps<ToolUpdate>;
|
|
103
104
|
}) => Promise<{
|
|
104
105
|
createdAt: string;
|
|
105
106
|
updatedAt: string;
|
|
@@ -135,17 +136,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
136
|
}> | null;
|
|
136
137
|
}) => Promise<{
|
|
137
138
|
id: string;
|
|
139
|
+
tenantId: string;
|
|
140
|
+
projectId: string;
|
|
141
|
+
agentId: string;
|
|
138
142
|
createdAt: string;
|
|
139
143
|
updatedAt: string;
|
|
140
|
-
headers: Record<string, string> | null;
|
|
141
|
-
agentId: string;
|
|
142
|
-
projectId: string;
|
|
143
|
-
tenantId: string;
|
|
144
144
|
toolId: string;
|
|
145
|
-
|
|
145
|
+
headers: Record<string, string> | null;
|
|
146
146
|
toolPolicies: Record<string, {
|
|
147
147
|
needsApproval?: boolean;
|
|
148
148
|
}> | null;
|
|
149
|
+
subAgentId: string;
|
|
149
150
|
selectedTools: string[] | null;
|
|
150
151
|
}>;
|
|
151
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -154,17 +155,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
154
155
|
toolId: string;
|
|
155
156
|
}) => Promise<{
|
|
156
157
|
id: string;
|
|
158
|
+
tenantId: string;
|
|
159
|
+
projectId: string;
|
|
160
|
+
agentId: string;
|
|
157
161
|
createdAt: string;
|
|
158
162
|
updatedAt: string;
|
|
159
|
-
headers: Record<string, string> | null;
|
|
160
|
-
agentId: string;
|
|
161
|
-
projectId: string;
|
|
162
|
-
tenantId: string;
|
|
163
163
|
toolId: string;
|
|
164
|
-
|
|
164
|
+
headers: Record<string, string> | null;
|
|
165
165
|
toolPolicies: Record<string, {
|
|
166
166
|
needsApproval?: boolean;
|
|
167
167
|
}> | null;
|
|
168
|
+
subAgentId: string;
|
|
168
169
|
selectedTools: string[] | null;
|
|
169
170
|
}>;
|
|
170
171
|
/**
|
|
@@ -182,17 +183,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
183
|
relationId?: string;
|
|
183
184
|
}) => Promise<{
|
|
184
185
|
id: string;
|
|
186
|
+
tenantId: string;
|
|
187
|
+
projectId: string;
|
|
188
|
+
agentId: string;
|
|
185
189
|
createdAt: string;
|
|
186
190
|
updatedAt: string;
|
|
187
|
-
headers: Record<string, string> | null;
|
|
188
|
-
agentId: string;
|
|
189
|
-
projectId: string;
|
|
190
|
-
tenantId: string;
|
|
191
191
|
toolId: string;
|
|
192
|
-
|
|
192
|
+
headers: Record<string, string> | null;
|
|
193
193
|
toolPolicies: Record<string, {
|
|
194
194
|
needsApproval?: boolean;
|
|
195
195
|
}> | null;
|
|
196
|
+
subAgentId: string;
|
|
196
197
|
selectedTools: string[] | null;
|
|
197
198
|
}>;
|
|
198
199
|
/**
|
|
@@ -203,12 +204,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
203
204
|
}) => Promise<{
|
|
204
205
|
id: string;
|
|
205
206
|
name: string;
|
|
207
|
+
description: string | null;
|
|
208
|
+
tenantId: string;
|
|
209
|
+
projectId: string;
|
|
206
210
|
createdAt: string;
|
|
207
211
|
updatedAt: string;
|
|
208
|
-
description: string | null;
|
|
209
212
|
headers: Record<string, string> | null;
|
|
210
|
-
projectId: string;
|
|
211
|
-
tenantId: string;
|
|
212
213
|
config: {
|
|
213
214
|
type: "mcp";
|
|
214
215
|
mcp: ToolMcpConfig;
|
|
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "query" | "
|
|
43
|
+
source: "query" | "header" | "body";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -10,30 +10,30 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
12
|
name: string | null;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
expiresAt: string | null;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
18
|
publicId: string;
|
|
20
19
|
keyHash: string;
|
|
21
20
|
keyPrefix: string;
|
|
22
21
|
lastUsedAt: string | null;
|
|
22
|
+
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
26
26
|
name: string | null;
|
|
27
|
+
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
agentId: string;
|
|
27
30
|
createdAt: string;
|
|
28
31
|
updatedAt: string;
|
|
29
|
-
expiresAt: string | null;
|
|
30
|
-
agentId: string;
|
|
31
|
-
projectId: string;
|
|
32
|
-
tenantId: string;
|
|
33
32
|
publicId: string;
|
|
34
33
|
keyHash: string;
|
|
35
34
|
keyPrefix: string;
|
|
36
35
|
lastUsedAt: string | null;
|
|
36
|
+
expiresAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -41,16 +41,16 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
43
|
name: string | null;
|
|
44
|
+
tenantId: string;
|
|
45
|
+
projectId: string;
|
|
46
|
+
agentId: string;
|
|
44
47
|
createdAt: string;
|
|
45
48
|
updatedAt: string;
|
|
46
|
-
expiresAt: string | null;
|
|
47
|
-
agentId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
50
49
|
publicId: string;
|
|
51
50
|
keyHash: string;
|
|
52
51
|
keyPrefix: string;
|
|
53
52
|
lastUsedAt: string | null;
|
|
53
|
+
expiresAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -68,16 +68,16 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
69
|
id: string;
|
|
70
70
|
name: string | null;
|
|
71
|
+
tenantId: string;
|
|
72
|
+
projectId: string;
|
|
73
|
+
agentId: string;
|
|
71
74
|
createdAt: string;
|
|
72
75
|
updatedAt: string;
|
|
73
|
-
expiresAt: string | null;
|
|
74
|
-
agentId: string;
|
|
75
|
-
projectId: string;
|
|
76
|
-
tenantId: string;
|
|
77
76
|
publicId: string;
|
|
78
77
|
keyHash: string;
|
|
79
78
|
keyPrefix: string;
|
|
80
79
|
lastUsedAt: string | null;
|
|
80
|
+
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -7,13 +7,13 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
10
|
+
description: string | null;
|
|
11
|
+
tenantId: string | null;
|
|
12
|
+
projectId: string | null;
|
|
13
|
+
type: AppType;
|
|
10
14
|
createdAt: string;
|
|
11
15
|
updatedAt: string;
|
|
12
|
-
description: string | null;
|
|
13
16
|
enabled: boolean;
|
|
14
|
-
type: AppType;
|
|
15
|
-
projectId: string | null;
|
|
16
|
-
tenantId: string | null;
|
|
17
17
|
config: {
|
|
18
18
|
type: "web_client";
|
|
19
19
|
webClient: {
|
|
@@ -50,13 +50,13 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
50
50
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
51
51
|
id: string;
|
|
52
52
|
name: string;
|
|
53
|
+
description: string | null;
|
|
54
|
+
tenantId: string | null;
|
|
55
|
+
projectId: string | null;
|
|
56
|
+
type: AppType;
|
|
53
57
|
createdAt: string;
|
|
54
58
|
updatedAt: string;
|
|
55
|
-
description: string | null;
|
|
56
59
|
enabled: boolean;
|
|
57
|
-
type: AppType;
|
|
58
|
-
projectId: string | null;
|
|
59
|
-
tenantId: string | null;
|
|
60
60
|
config: {
|
|
61
61
|
type: "web_client";
|
|
62
62
|
webClient: {
|
|
@@ -17,19 +17,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
19
|
id: string;
|
|
20
|
+
tenantId: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
agentId: string | null;
|
|
23
|
+
title: string | null;
|
|
20
24
|
createdAt: string;
|
|
21
25
|
updatedAt: string;
|
|
26
|
+
metadata: ConversationMetadata | null;
|
|
27
|
+
userId: string | null;
|
|
22
28
|
ref: {
|
|
23
29
|
type: "commit" | "tag" | "branch";
|
|
24
30
|
name: string;
|
|
25
31
|
hash: string;
|
|
26
32
|
} | null;
|
|
27
|
-
userId: string | null;
|
|
28
|
-
metadata: ConversationMetadata | null;
|
|
29
|
-
title: string | null;
|
|
30
|
-
agentId: string | null;
|
|
31
|
-
projectId: string;
|
|
32
|
-
tenantId: string;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
@@ -86,19 +86,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
86
86
|
conversationId: string;
|
|
87
87
|
}) => Promise<{
|
|
88
88
|
id: string;
|
|
89
|
+
tenantId: string;
|
|
90
|
+
projectId: string;
|
|
91
|
+
agentId: string | null;
|
|
92
|
+
title: string | null;
|
|
89
93
|
createdAt: string;
|
|
90
94
|
updatedAt: string;
|
|
95
|
+
metadata: ConversationMetadata | null;
|
|
96
|
+
userId: string | null;
|
|
91
97
|
ref: {
|
|
92
98
|
type: "commit" | "tag" | "branch";
|
|
93
99
|
name: string;
|
|
94
100
|
hash: string;
|
|
95
101
|
} | null;
|
|
96
|
-
userId: string | null;
|
|
97
|
-
metadata: ConversationMetadata | null;
|
|
98
|
-
title: string | null;
|
|
99
|
-
agentId: string | null;
|
|
100
|
-
projectId: string;
|
|
101
|
-
tenantId: string;
|
|
102
102
|
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
@@ -122,19 +122,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
122
122
|
contextConfigId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
124
|
id: string;
|
|
125
|
+
tenantId: string;
|
|
126
|
+
projectId: string;
|
|
127
|
+
agentId: string | null;
|
|
128
|
+
title: string | null;
|
|
125
129
|
createdAt: string;
|
|
126
130
|
updatedAt: string;
|
|
131
|
+
metadata: ConversationMetadata | null;
|
|
132
|
+
userId: string | null;
|
|
127
133
|
ref: {
|
|
128
134
|
type: "commit" | "tag" | "branch";
|
|
129
135
|
name: string;
|
|
130
136
|
hash: string;
|
|
131
137
|
} | null;
|
|
132
|
-
userId: string | null;
|
|
133
|
-
metadata: ConversationMetadata | null;
|
|
134
|
-
title: string | null;
|
|
135
|
-
agentId: string | null;
|
|
136
|
-
projectId: string;
|
|
137
|
-
tenantId: string;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -154,19 +154,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
154
154
|
conversationId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
156
|
id: string;
|
|
157
|
+
tenantId: string;
|
|
158
|
+
projectId: string;
|
|
159
|
+
agentId: string | null;
|
|
160
|
+
title: string | null;
|
|
157
161
|
createdAt: string;
|
|
158
162
|
updatedAt: string;
|
|
163
|
+
metadata: ConversationMetadata | null;
|
|
164
|
+
userId: string | null;
|
|
159
165
|
ref: {
|
|
160
166
|
type: "commit" | "tag" | "branch";
|
|
161
167
|
name: string;
|
|
162
168
|
hash: string;
|
|
163
169
|
} | null;
|
|
164
|
-
userId: string | null;
|
|
165
|
-
metadata: ConversationMetadata | null;
|
|
166
|
-
title: string | null;
|
|
167
|
-
agentId: string | null;
|
|
168
|
-
projectId: string;
|
|
169
|
-
tenantId: string;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -11,25 +11,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
16
18
|
metadata: MessageMetadata | null;
|
|
17
|
-
role: string;
|
|
18
|
-
projectId: string;
|
|
19
|
-
tenantId: string;
|
|
20
19
|
content: MessageContent;
|
|
21
|
-
conversationId: string;
|
|
22
20
|
fromSubAgentId: string | null;
|
|
23
21
|
toSubAgentId: string | null;
|
|
24
22
|
fromExternalAgentId: string | null;
|
|
25
23
|
toExternalAgentId: string | null;
|
|
24
|
+
taskId: string | null;
|
|
25
|
+
a2aTaskId: string | null;
|
|
26
|
+
conversationId: string;
|
|
27
|
+
role: string;
|
|
26
28
|
fromTeamAgentId: string | null;
|
|
27
29
|
toTeamAgentId: string | null;
|
|
28
30
|
visibility: string;
|
|
29
31
|
messageType: string;
|
|
30
|
-
taskId: string | null;
|
|
31
32
|
parentMessageId: string | null;
|
|
32
|
-
a2aTaskId: string | null;
|
|
33
33
|
a2aSessionId: string | null;
|
|
34
34
|
} | undefined>;
|
|
35
35
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -142,25 +142,25 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
142
142
|
}[]>;
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
144
|
id: string;
|
|
145
|
+
tenantId: string;
|
|
146
|
+
projectId: string;
|
|
145
147
|
createdAt: string;
|
|
146
148
|
updatedAt: string;
|
|
147
149
|
metadata: MessageMetadata | null;
|
|
148
|
-
role: string;
|
|
149
|
-
projectId: string;
|
|
150
|
-
tenantId: string;
|
|
151
150
|
content: MessageContent;
|
|
152
|
-
conversationId: string;
|
|
153
151
|
fromSubAgentId: string | null;
|
|
154
152
|
toSubAgentId: string | null;
|
|
155
153
|
fromExternalAgentId: string | null;
|
|
156
154
|
toExternalAgentId: string | null;
|
|
155
|
+
taskId: string | null;
|
|
156
|
+
a2aTaskId: string | null;
|
|
157
|
+
conversationId: string;
|
|
158
|
+
role: string;
|
|
157
159
|
fromTeamAgentId: string | null;
|
|
158
160
|
toTeamAgentId: string | null;
|
|
159
161
|
visibility: string;
|
|
160
162
|
messageType: string;
|
|
161
|
-
taskId: string | null;
|
|
162
163
|
parentMessageId: string | null;
|
|
163
|
-
a2aTaskId: string | null;
|
|
164
164
|
a2aSessionId: string | null;
|
|
165
165
|
}>;
|
|
166
166
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -195,25 +195,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
195
195
|
messageId: string;
|
|
196
196
|
}) => Promise<{
|
|
197
197
|
id: string;
|
|
198
|
+
tenantId: string;
|
|
199
|
+
projectId: string;
|
|
198
200
|
createdAt: string;
|
|
199
201
|
updatedAt: string;
|
|
200
202
|
metadata: MessageMetadata | null;
|
|
201
|
-
role: string;
|
|
202
|
-
projectId: string;
|
|
203
|
-
tenantId: string;
|
|
204
203
|
content: MessageContent;
|
|
205
|
-
conversationId: string;
|
|
206
204
|
fromSubAgentId: string | null;
|
|
207
205
|
toSubAgentId: string | null;
|
|
208
206
|
fromExternalAgentId: string | null;
|
|
209
207
|
toExternalAgentId: string | null;
|
|
208
|
+
taskId: string | null;
|
|
209
|
+
a2aTaskId: string | null;
|
|
210
|
+
conversationId: string;
|
|
211
|
+
role: string;
|
|
210
212
|
fromTeamAgentId: string | null;
|
|
211
213
|
toTeamAgentId: string | null;
|
|
212
214
|
visibility: string;
|
|
213
215
|
messageType: string;
|
|
214
|
-
taskId: string | null;
|
|
215
216
|
parentMessageId: string | null;
|
|
216
|
-
a2aTaskId: string | null;
|
|
217
217
|
a2aSessionId: string | null;
|
|
218
218
|
}>;
|
|
219
219
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
//#region src/data-access/runtime/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
9
|
id: string;
|
|
10
|
+
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
12
|
+
agentId: string;
|
|
10
13
|
createdAt: string;
|
|
11
14
|
updatedAt: string;
|
|
15
|
+
metadata: TaskMetadataConfig | null;
|
|
16
|
+
subAgentId: string;
|
|
17
|
+
status: string;
|
|
18
|
+
contextId: string;
|
|
12
19
|
ref: {
|
|
13
20
|
type: "commit" | "tag" | "branch";
|
|
14
21
|
name: string;
|
|
15
22
|
hash: string;
|
|
16
23
|
} | null;
|
|
17
|
-
metadata: TaskMetadataConfig | null;
|
|
18
|
-
status: string;
|
|
19
|
-
agentId: string;
|
|
20
|
-
projectId: string;
|
|
21
|
-
tenantId: string;
|
|
22
|
-
contextId: string;
|
|
23
|
-
subAgentId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|