@inkeep/agents-core 0.0.0-dev-20260320150253 → 0.0.0-dev-20260320171843
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/client-exports.d.ts +5 -5
- package/dist/client-exports.js +2 -2
- package/dist/credential-stores/composio-store.d.ts +28 -0
- package/dist/credential-stores/composio-store.js +53 -0
- package/dist/credential-stores/default-constants.d.ts +2 -1
- package/dist/credential-stores/default-constants.js +2 -1
- package/dist/credential-stores/defaults.js +3 -1
- package/dist/credential-stores/index.d.ts +3 -2
- package/dist/credential-stores/index.js +3 -2
- package/dist/data-access/manage/agents.d.ts +42 -42
- 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/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/tools.js +17 -5
- 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 +20 -20
- 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 +4 -4
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +330 -330
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -4
- package/dist/types/utility.d.ts +1 -0
- package/dist/types/utility.js +2 -1
- package/dist/utils/credential-store-utils.js +1 -0
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +4 -4
- package/dist/utils/third-party-mcp-servers/composio-client.d.ts +20 -4
- package/dist/utils/third-party-mcp-servers/composio-client.js +51 -25
- package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
- package/dist/utils/third-party-mcp-servers/index.js +2 -2
- package/dist/utils/third-party-mcp-servers/third-party-check.d.ts +3 -4
- package/dist/utils/third-party-mcp-servers/third-party-check.js +1 -2
- package/dist/validation/schemas.d.ts +1622 -1601
- package/dist/validation/schemas.js +3 -1
- package/package.json +1 -1
|
@@ -22,11 +22,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
description: string | null;
|
|
26
|
-
tenantId: string;
|
|
27
|
-
projectId: string;
|
|
28
25
|
createdAt: string;
|
|
29
26
|
updatedAt: string;
|
|
27
|
+
description: string | null;
|
|
28
|
+
projectId: string;
|
|
29
|
+
tenantId: string;
|
|
30
30
|
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
@@ -80,11 +80,11 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
81
|
id: string;
|
|
82
82
|
name: string;
|
|
83
|
-
description: string | null;
|
|
84
|
-
tenantId: string;
|
|
85
|
-
projectId: string;
|
|
86
83
|
createdAt: string;
|
|
87
84
|
updatedAt: string;
|
|
85
|
+
description: string | null;
|
|
86
|
+
projectId: string;
|
|
87
|
+
tenantId: string;
|
|
88
88
|
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
@@ -136,11 +136,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
138
|
id: string;
|
|
139
|
-
tenantId: string;
|
|
140
|
-
projectId: string;
|
|
141
|
-
agentId: string;
|
|
142
139
|
createdAt: string;
|
|
143
140
|
updatedAt: string;
|
|
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, {
|
|
@@ -155,11 +155,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
-
tenantId: string;
|
|
159
|
-
projectId: string;
|
|
160
|
-
agentId: string;
|
|
161
158
|
createdAt: string;
|
|
162
159
|
updatedAt: string;
|
|
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, {
|
|
@@ -183,11 +183,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
185
|
id: string;
|
|
186
|
-
tenantId: string;
|
|
187
|
-
projectId: string;
|
|
188
|
-
agentId: string;
|
|
189
186
|
createdAt: string;
|
|
190
187
|
updatedAt: string;
|
|
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, {
|
|
@@ -204,11 +204,11 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
204
204
|
}) => Promise<{
|
|
205
205
|
id: string;
|
|
206
206
|
name: string;
|
|
207
|
-
description: string | null;
|
|
208
|
-
tenantId: string;
|
|
209
|
-
projectId: string;
|
|
210
207
|
createdAt: string;
|
|
211
208
|
updatedAt: string;
|
|
209
|
+
description: string | null;
|
|
210
|
+
projectId: string;
|
|
211
|
+
tenantId: string;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
@@ -3,6 +3,8 @@ import { CredentialStoreType, MCPServerType, MCPTransportType } from "../../type
|
|
|
3
3
|
import { detectAuthenticationRequired } from "../../utils/auth-detection.js";
|
|
4
4
|
import { env } from "../../env.js";
|
|
5
5
|
import { getLogger } from "../../utils/logger.js";
|
|
6
|
+
import { configureComposioMCPServer } from "../../utils/third-party-mcp-servers/composio-client.js";
|
|
7
|
+
import { isThirdPartyMCPServerAuthenticated } from "../../utils/third-party-mcp-servers/third-party-check.js";
|
|
6
8
|
import { getCredentialStoreLookupKeyFromRetrievalParams } from "../../utils/credential-store-utils.js";
|
|
7
9
|
import { CredentialStuffer } from "../../credential-stuffer/CredentialStuffer.js";
|
|
8
10
|
import "../../credential-stuffer/index.js";
|
|
@@ -16,8 +18,6 @@ import { updateAgentToolRelation } from "./subAgentRelations.js";
|
|
|
16
18
|
import { isSerializationError } from "../../retry/retryable-errors.js";
|
|
17
19
|
import { toISODateString } from "../../utils/date.js";
|
|
18
20
|
import { McpClient } from "../../utils/mcp-client.js";
|
|
19
|
-
import { configureComposioMCPServer } from "../../utils/third-party-mcp-servers/composio-client.js";
|
|
20
|
-
import { isThirdPartyMCPServerAuthenticated } from "../../utils/third-party-mcp-servers/third-party-check.js";
|
|
21
21
|
import { TRUSTED_WORK_APP_MCP_PATHS, isTrustedWorkAppMcpUrl } from "../../utils/work-app-mcp.js";
|
|
22
22
|
import "../../utils/index.js";
|
|
23
23
|
import { isGithubWorkAppTool } from "../runtime/github-work-app-installations.js";
|
|
@@ -122,7 +122,12 @@ const discoverToolsFromServer = async (tool, credentialReference, credentialStor
|
|
|
122
122
|
reconnectionOptions: tool.config.mcp.transport?.reconnectionOptions,
|
|
123
123
|
sessionId: tool.config.mcp.transport?.sessionId
|
|
124
124
|
};
|
|
125
|
-
|
|
125
|
+
const composioConnectedAccountId = credentialReference?.retrievalParams?.connectedAccountId;
|
|
126
|
+
if (composioConnectedAccountId) configureComposioMCPServer(serverConfig, tool.tenantId, tool.projectId, tool.credentialScope === "user" ? "user" : "project", userId, composioConnectedAccountId);
|
|
127
|
+
else if (serverConfig.url?.toString().includes("composio.dev")) logger.warn({
|
|
128
|
+
toolName: tool.name,
|
|
129
|
+
toolId: tool.id
|
|
130
|
+
}, "Composio tool missing connectedAccountId — skipping auth injection to prevent credential leakage");
|
|
126
131
|
const urlString = String(serverConfig.url);
|
|
127
132
|
if (isGithubWorkAppTool(tool) && isTrustedWorkAppMcpUrl(urlString, TRUSTED_WORK_APP_MCP_PATHS.github, env.INKEEP_AGENTS_API_URL)) serverConfig.headers = {
|
|
128
133
|
...serverConfig.headers,
|
|
@@ -248,11 +253,18 @@ const dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, re
|
|
|
248
253
|
lastErrorComputed = toolNeedsAuth ? `Authentication required - OAuth login needed. ${errorMessage}` : errorMessage;
|
|
249
254
|
}
|
|
250
255
|
}
|
|
251
|
-
if (dbResult.config.mcp.server.url.includes("composio.dev")) {
|
|
256
|
+
if (dbResult.config.mcp.server.url.includes("composio.dev")) if (!!!credentialReference?.retrievalParams?.connectedAccountId) {
|
|
257
|
+
status = "needs_auth";
|
|
258
|
+
lastErrorComputed = "Third-party authentication required. Connect your account to pin a specific credential.";
|
|
259
|
+
} else {
|
|
252
260
|
const credentialScope = dbResult.credentialScope || "project";
|
|
253
|
-
|
|
261
|
+
const authResult = await isThirdPartyMCPServerAuthenticated(dbResult.tenantId, dbResult.projectId, mcpServerUrl, credentialScope, userId);
|
|
262
|
+
if (!authResult.authenticated && !authResult.error) {
|
|
254
263
|
status = "needs_auth";
|
|
255
264
|
lastErrorComputed = "Third-party authentication required. Try authenticating again.";
|
|
265
|
+
} else if (authResult.error) {
|
|
266
|
+
status = "unavailable";
|
|
267
|
+
lastErrorComputed = "Could not verify third-party authentication status. The service may be temporarily unavailable.";
|
|
256
268
|
}
|
|
257
269
|
}
|
|
258
270
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -10,12 +10,12 @@ 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;
|
|
16
13
|
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
18
15
|
expiresAt: string | null;
|
|
16
|
+
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
@@ -24,12 +24,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
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;
|
|
30
27
|
createdAt: string;
|
|
31
28
|
updatedAt: string;
|
|
32
29
|
expiresAt: string | null;
|
|
30
|
+
agentId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
tenantId: string;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -41,12 +41,12 @@ 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;
|
|
47
44
|
createdAt: string;
|
|
48
45
|
updatedAt: string;
|
|
49
46
|
expiresAt: string | null;
|
|
47
|
+
agentId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
tenantId: string;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -68,12 +68,12 @@ 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;
|
|
74
71
|
createdAt: string;
|
|
75
72
|
updatedAt: string;
|
|
76
73
|
expiresAt: string | null;
|
|
74
|
+
agentId: string;
|
|
75
|
+
projectId: string;
|
|
76
|
+
tenantId: string;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -8,11 +8,11 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
8
8
|
type: AppType;
|
|
9
9
|
id: string;
|
|
10
10
|
name: string;
|
|
11
|
-
description: string | null;
|
|
12
|
-
tenantId: string | null;
|
|
13
|
-
projectId: string | null;
|
|
14
11
|
createdAt: string;
|
|
15
12
|
updatedAt: string;
|
|
13
|
+
description: string | null;
|
|
14
|
+
projectId: string | null;
|
|
15
|
+
tenantId: string | null;
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
config: {
|
|
18
18
|
type: "web_client";
|
|
@@ -55,11 +55,11 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
55
55
|
type: AppType;
|
|
56
56
|
id: string;
|
|
57
57
|
name: string;
|
|
58
|
-
description: string | null;
|
|
59
|
-
tenantId: string | null;
|
|
60
|
-
projectId: string | null;
|
|
61
58
|
createdAt: string;
|
|
62
59
|
updatedAt: string;
|
|
60
|
+
description: string | null;
|
|
61
|
+
projectId: string | null;
|
|
62
|
+
tenantId: string | null;
|
|
63
63
|
enabled: boolean;
|
|
64
64
|
config: {
|
|
65
65
|
type: "web_client";
|
|
@@ -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;
|
|
24
20
|
createdAt: string;
|
|
25
21
|
updatedAt: string;
|
|
26
|
-
metadata: ConversationMetadata | null;
|
|
27
22
|
ref: {
|
|
28
23
|
type: "tag" | "commit" | "branch";
|
|
29
24
|
name: string;
|
|
30
25
|
hash: string;
|
|
31
26
|
} | null;
|
|
32
27
|
userId: string | null;
|
|
28
|
+
metadata: ConversationMetadata | null;
|
|
29
|
+
agentId: string | null;
|
|
30
|
+
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
32
|
+
title: string | null;
|
|
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;
|
|
93
89
|
createdAt: string;
|
|
94
90
|
updatedAt: string;
|
|
95
|
-
metadata: ConversationMetadata | null;
|
|
96
91
|
ref: {
|
|
97
92
|
type: "tag" | "commit" | "branch";
|
|
98
93
|
name: string;
|
|
99
94
|
hash: string;
|
|
100
95
|
} | null;
|
|
101
96
|
userId: string | null;
|
|
97
|
+
metadata: ConversationMetadata | null;
|
|
98
|
+
agentId: string | null;
|
|
99
|
+
projectId: string;
|
|
100
|
+
tenantId: string;
|
|
101
|
+
title: string | null;
|
|
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;
|
|
129
125
|
createdAt: string;
|
|
130
126
|
updatedAt: string;
|
|
131
|
-
metadata: ConversationMetadata | null;
|
|
132
127
|
ref: {
|
|
133
128
|
type: "tag" | "commit" | "branch";
|
|
134
129
|
name: string;
|
|
135
130
|
hash: string;
|
|
136
131
|
} | null;
|
|
137
132
|
userId: string | null;
|
|
133
|
+
metadata: ConversationMetadata | null;
|
|
134
|
+
agentId: string | null;
|
|
135
|
+
projectId: string;
|
|
136
|
+
tenantId: string;
|
|
137
|
+
title: string | null;
|
|
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;
|
|
161
157
|
createdAt: string;
|
|
162
158
|
updatedAt: string;
|
|
163
|
-
metadata: ConversationMetadata | null;
|
|
164
159
|
ref: {
|
|
165
160
|
type: "tag" | "commit" | "branch";
|
|
166
161
|
name: string;
|
|
167
162
|
hash: string;
|
|
168
163
|
} | null;
|
|
169
164
|
userId: string | null;
|
|
165
|
+
metadata: ConversationMetadata | null;
|
|
166
|
+
agentId: string | null;
|
|
167
|
+
projectId: string;
|
|
168
|
+
tenantId: string;
|
|
169
|
+
title: string | null;
|
|
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;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
16
|
metadata: MessageMetadata | null;
|
|
19
|
-
content: MessageContent;
|
|
20
17
|
role: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
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: {
|
|
@@ -145,25 +145,25 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
145
145
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
146
146
|
}) => Promise<{
|
|
147
147
|
id: string;
|
|
148
|
-
tenantId: string;
|
|
149
|
-
projectId: string;
|
|
150
148
|
createdAt: string;
|
|
151
149
|
updatedAt: string;
|
|
152
150
|
metadata: MessageMetadata | null;
|
|
153
|
-
content: MessageContent;
|
|
154
151
|
role: string;
|
|
152
|
+
projectId: string;
|
|
153
|
+
tenantId: string;
|
|
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: {
|
|
@@ -198,25 +198,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
198
198
|
messageId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
200
|
id: string;
|
|
201
|
-
tenantId: string;
|
|
202
|
-
projectId: string;
|
|
203
201
|
createdAt: string;
|
|
204
202
|
updatedAt: string;
|
|
205
203
|
metadata: MessageMetadata | null;
|
|
206
|
-
content: MessageContent;
|
|
207
204
|
role: string;
|
|
205
|
+
projectId: string;
|
|
206
|
+
tenantId: string;
|
|
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" | "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;
|
|
@@ -8,18 +8,18 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
8
8
|
//#region src/data-access/runtime/tasks.d.ts
|
|
9
9
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
10
10
|
id: string;
|
|
11
|
-
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
|
-
agentId: string;
|
|
14
11
|
createdAt: string;
|
|
15
12
|
updatedAt: string;
|
|
16
|
-
metadata: TaskMetadataConfig | null;
|
|
17
13
|
ref: {
|
|
18
14
|
type: "tag" | "commit" | "branch";
|
|
19
15
|
name: string;
|
|
20
16
|
hash: string;
|
|
21
17
|
} | null;
|
|
18
|
+
metadata: TaskMetadataConfig | null;
|
|
22
19
|
status: string;
|
|
20
|
+
agentId: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
tenantId: string;
|
|
23
23
|
subAgentId: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|