@inkeep/agents-core 0.53.7 → 0.53.9

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.
Files changed (56) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +135 -135
  3. package/dist/auth/auth.d.ts +11 -9
  4. package/dist/auth/auth.js +12 -3
  5. package/dist/auth/cleanup.d.ts +12 -0
  6. package/dist/auth/cleanup.js +43 -0
  7. package/dist/auth/init.js +12 -2
  8. package/dist/auth/permissions.d.ts +9 -9
  9. package/dist/client-exports.d.ts +1 -1
  10. package/dist/constants/otel-attributes.d.ts +1 -0
  11. package/dist/constants/otel-attributes.js +1 -0
  12. package/dist/data-access/index.d.ts +2 -2
  13. package/dist/data-access/index.js +2 -2
  14. package/dist/data-access/manage/agents.d.ts +35 -35
  15. package/dist/data-access/manage/agents.js +3 -1
  16. package/dist/data-access/manage/artifactComponents.d.ts +20 -20
  17. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  18. package/dist/data-access/manage/dataComponents.d.ts +8 -8
  19. package/dist/data-access/manage/functionTools.d.ts +20 -20
  20. package/dist/data-access/manage/scheduledTriggers.d.ts +12 -1
  21. package/dist/data-access/manage/scheduledTriggers.js +8 -1
  22. package/dist/data-access/manage/skills.d.ts +19 -19
  23. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  24. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  25. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  26. package/dist/data-access/manage/subAgents.d.ts +21 -21
  27. package/dist/data-access/manage/tools.d.ts +36 -36
  28. package/dist/data-access/manage/tools.js +2 -2
  29. package/dist/data-access/manage/triggers.d.ts +1 -1
  30. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  31. package/dist/data-access/runtime/conversations.d.ts +20 -20
  32. package/dist/data-access/runtime/messages.d.ts +18 -18
  33. package/dist/data-access/runtime/tasks.d.ts +6 -6
  34. package/dist/db/manage/manage-schema.d.ts +393 -355
  35. package/dist/db/manage/manage-schema.js +2 -0
  36. package/dist/db/runtime/runtime-schema.d.ts +262 -262
  37. package/dist/dolt/index.d.ts +2 -2
  38. package/dist/dolt/index.js +2 -2
  39. package/dist/dolt/ref-helpers.d.ts +5 -1
  40. package/dist/dolt/ref-helpers.js +20 -1
  41. package/dist/index.d.ts +4 -4
  42. package/dist/index.js +4 -4
  43. package/dist/setup/setup.js +19 -5
  44. package/dist/utils/error.d.ts +51 -51
  45. package/dist/utils/index.d.ts +2 -2
  46. package/dist/utils/index.js +2 -2
  47. package/dist/utils/third-party-mcp-servers/composio-client.d.ts +8 -10
  48. package/dist/utils/third-party-mcp-servers/composio-client.js +19 -15
  49. package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
  50. package/dist/utils/third-party-mcp-servers/index.js +2 -2
  51. package/dist/validation/schemas.d.ts +1776 -1658
  52. package/dist/validation/schemas.js +6 -2
  53. package/drizzle/manage/0011_smooth_whizzer.sql +2 -0
  54. package/drizzle/manage/meta/0011_snapshot.json +3685 -0
  55. package/drizzle/manage/meta/_journal.json +7 -0
  56. package/package.json +3 -3
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- agentId: string;
13
- projectId: string;
14
- tenantId: string;
15
- subAgentId: string;
16
12
  id: string;
17
13
  createdAt: string;
18
14
  updatedAt: string;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
+ subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -44,26 +44,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- agentId: string;
48
- projectId: string;
49
- tenantId: string;
50
- subAgentId: string;
51
47
  id: string;
52
48
  createdAt: string;
53
49
  updatedAt: string;
50
+ tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
+ subAgentId: string;
54
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
- agentId: string;
61
- projectId: string;
62
- tenantId: string;
63
- subAgentId: string;
64
60
  id: string;
65
61
  createdAt: string;
66
62
  updatedAt: string;
63
+ tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
+ subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
- agentId: string;
214
- projectId: string;
215
- tenantId: string;
216
- subAgentId: string;
217
213
  id: string;
218
214
  createdAt: string;
219
215
  updatedAt: string;
216
+ tenantId: string;
217
+ projectId: string;
218
+ agentId: string;
219
+ subAgentId: string;
220
220
  headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
- agentId: string;
231
- projectId: string;
232
- tenantId: string;
233
- subAgentId: string;
234
230
  id: string;
235
231
  createdAt: string;
236
232
  updatedAt: string;
233
+ tenantId: string;
234
+ projectId: string;
235
+ agentId: string;
236
+ subAgentId: string;
237
237
  headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
- agentId: string;
252
- projectId: string;
253
- tenantId: string;
254
- subAgentId: string;
255
251
  id: string;
256
252
  createdAt: string;
257
253
  updatedAt: string;
254
+ tenantId: string;
255
+ projectId: string;
256
+ agentId: string;
257
+ subAgentId: string;
258
258
  headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -9,14 +9,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- agentId: string;
13
- projectId: string;
14
- tenantId: string;
15
- description: string | null;
16
- name: string;
17
12
  id: string;
18
- createdAt: string;
19
- updatedAt: string;
13
+ name: string;
14
+ description: string | null;
20
15
  models: {
21
16
  base?: {
22
17
  model?: string | undefined;
@@ -34,20 +29,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
29
  stopWhen: {
35
30
  stepCountIs?: number | undefined;
36
31
  } | null;
32
+ createdAt: string;
33
+ updatedAt: string;
34
+ tenantId: string;
37
35
  prompt: string | null;
36
+ projectId: string;
37
+ agentId: string;
38
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- agentId: string;
44
- projectId: string;
45
- tenantId: string;
46
- description: string | null;
47
- name: string;
48
43
  id: string;
49
- createdAt: string;
50
- updatedAt: string;
44
+ name: string;
45
+ description: string | null;
51
46
  models: {
52
47
  base?: {
53
48
  model?: string | undefined;
@@ -65,7 +60,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
65
60
  stopWhen: {
66
61
  stepCountIs?: number | undefined;
67
62
  } | null;
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ tenantId: string;
68
66
  prompt: string | null;
67
+ projectId: string;
68
+ agentId: string;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -109,14 +109,9 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- agentId: string;
113
- projectId: string;
114
- tenantId: string;
115
- description: string | null;
116
- name: string;
117
112
  id: string;
118
- createdAt: string;
119
- updatedAt: string;
113
+ name: string;
114
+ description: string | null;
120
115
  models: {
121
116
  base?: {
122
117
  model?: string | undefined;
@@ -134,7 +129,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
134
129
  stopWhen: {
135
130
  stepCountIs?: number | undefined;
136
131
  } | null;
132
+ createdAt: string;
133
+ updatedAt: string;
134
+ tenantId: string;
137
135
  prompt: string | null;
136
+ projectId: string;
137
+ agentId: string;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -19,20 +19,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  scopes: ProjectScopeConfig;
20
20
  toolId: string;
21
21
  }) => Promise<{
22
- projectId: string;
23
- tenantId: string;
24
- description: string | null;
25
- name: string;
26
22
  id: string;
23
+ name: string;
24
+ description: string | null;
27
25
  createdAt: string;
28
26
  updatedAt: string;
29
- headers: Record<string, string> | null;
27
+ tenantId: string;
28
+ projectId: string;
29
+ credentialReferenceId: string | null;
30
30
  config: {
31
31
  type: "mcp";
32
32
  mcp: ToolMcpConfig;
33
33
  };
34
- credentialReferenceId: string | null;
35
34
  credentialScope: string;
35
+ headers: Record<string, string> | null;
36
36
  imageUrl: string | null;
37
37
  capabilities: ToolServerCapabilities | null;
38
38
  lastError: string | null;
@@ -77,20 +77,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
77
77
  };
78
78
  }>;
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
- projectId: string;
81
- tenantId: string;
82
- description: string | null;
83
- name: string;
84
80
  id: string;
81
+ name: string;
82
+ description: string | null;
85
83
  createdAt: string;
86
84
  updatedAt: string;
87
- headers: Record<string, string> | null;
85
+ tenantId: string;
86
+ projectId: string;
87
+ credentialReferenceId: string | null;
88
88
  config: {
89
89
  type: "mcp";
90
90
  mcp: ToolMcpConfig;
91
91
  };
92
- credentialReferenceId: string | null;
93
92
  credentialScope: string;
93
+ headers: Record<string, string> | null;
94
94
  imageUrl: string | null;
95
95
  capabilities: ToolServerCapabilities | null;
96
96
  lastError: string | null;
@@ -134,38 +134,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  needsApproval?: boolean;
135
135
  }> | null;
136
136
  }) => Promise<{
137
- agentId: string;
138
- projectId: string;
139
- tenantId: string;
140
- subAgentId: string;
141
137
  id: string;
142
138
  createdAt: string;
143
139
  updatedAt: string;
144
- headers: Record<string, string> | null;
140
+ tenantId: string;
141
+ projectId: string;
142
+ agentId: string;
145
143
  toolId: string;
144
+ subAgentId: string;
145
+ headers: Record<string, string> | null;
146
+ selectedTools: string[] | null;
146
147
  toolPolicies: Record<string, {
147
148
  needsApproval?: boolean;
148
149
  }> | null;
149
- selectedTools: string[] | null;
150
150
  }>;
151
151
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
152
152
  scopes: AgentScopeConfig;
153
153
  subAgentId: string;
154
154
  toolId: string;
155
155
  }) => Promise<{
156
- agentId: string;
157
- projectId: string;
158
- tenantId: string;
159
- subAgentId: string;
160
156
  id: string;
161
157
  createdAt: string;
162
158
  updatedAt: string;
163
- headers: Record<string, string> | null;
159
+ tenantId: string;
160
+ projectId: string;
161
+ agentId: string;
164
162
  toolId: string;
163
+ subAgentId: string;
164
+ headers: Record<string, string> | null;
165
+ selectedTools: string[] | null;
165
166
  toolPolicies: Record<string, {
166
167
  needsApproval?: boolean;
167
168
  }> | null;
168
- selectedTools: string[] | null;
169
169
  }>;
170
170
  /**
171
171
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -181,19 +181,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  }> | null;
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
- agentId: string;
185
- projectId: string;
186
- tenantId: string;
187
- subAgentId: string;
188
184
  id: string;
189
185
  createdAt: string;
190
186
  updatedAt: string;
191
- headers: Record<string, string> | null;
187
+ tenantId: string;
188
+ projectId: string;
189
+ agentId: string;
192
190
  toolId: string;
191
+ subAgentId: string;
192
+ headers: Record<string, string> | null;
193
+ selectedTools: string[] | null;
193
194
  toolPolicies: Record<string, {
194
195
  needsApproval?: boolean;
195
196
  }> | null;
196
- selectedTools: string[] | null;
197
197
  }>;
198
198
  /**
199
199
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -201,20 +201,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
201
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  data: ToolInsert;
203
203
  }) => Promise<{
204
- projectId: string;
205
- tenantId: string;
206
- description: string | null;
207
- name: string;
208
204
  id: string;
205
+ name: string;
206
+ description: string | null;
209
207
  createdAt: string;
210
208
  updatedAt: string;
211
- headers: Record<string, string> | null;
209
+ tenantId: string;
210
+ projectId: string;
211
+ credentialReferenceId: string | null;
212
212
  config: {
213
213
  type: "mcp";
214
214
  mcp: ToolMcpConfig;
215
215
  };
216
- credentialReferenceId: string | null;
217
216
  credentialScope: string;
217
+ headers: Record<string, string> | null;
218
218
  imageUrl: string | null;
219
219
  capabilities: ToolServerCapabilities | null;
220
220
  lastError: string | null;
@@ -12,7 +12,7 @@ import { getActiveBranch } from "../../dolt/schema-sync.js";
12
12
  import { updateAgentToolRelation } from "./subAgentRelations.js";
13
13
  import { toISODateString } from "../../utils/date.js";
14
14
  import { McpClient } from "../../utils/mcp-client.js";
15
- import { buildComposioMCPUrl } from "../../utils/third-party-mcp-servers/composio-client.js";
15
+ import { configureComposioMCPServer } from "../../utils/third-party-mcp-servers/composio-client.js";
16
16
  import { isThirdPartyMCPServerAuthenticated } from "../../utils/third-party-mcp-servers/third-party-check.js";
17
17
  import "../../utils/index.js";
18
18
  import { cascadeDeleteByTool } from "../runtime/cascade-delete.js";
@@ -118,7 +118,7 @@ const discoverToolsFromServer = async (tool, credentialReference, credentialStor
118
118
  reconnectionOptions: tool.config.mcp.transport?.reconnectionOptions,
119
119
  sessionId: tool.config.mcp.transport?.sessionId
120
120
  };
121
- if (serverConfig.url) serverConfig.url = buildComposioMCPUrl(serverConfig.url.toString(), tool.tenantId, tool.projectId, tool.credentialScope === "user" ? "user" : "project", userId);
121
+ configureComposioMCPServer(serverConfig, tool.tenantId, tool.projectId, tool.credentialScope === "user" ? "user" : "project", userId);
122
122
  if (isGithubWorkAppTool(tool)) serverConfig.headers = {
123
123
  ...serverConfig.headers,
124
124
  "x-inkeep-tool-id": tool.id,
@@ -40,7 +40,7 @@ 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" | "header" | "body";
43
+ source: "header" | "query" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- agentId: string;
12
- projectId: string;
13
- tenantId: string;
14
- name: string | null;
15
11
  id: string;
12
+ name: string | null;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
+ expiresAt: string | null;
18
19
  publicId: string;
19
20
  keyHash: string;
20
21
  keyPrefix: string;
21
22
  lastUsedAt: string | null;
22
- expiresAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- agentId: string;
26
- projectId: string;
27
- tenantId: string;
28
- name: string | null;
29
25
  id: string;
26
+ name: string | null;
30
27
  createdAt: string;
31
28
  updatedAt: string;
29
+ tenantId: string;
30
+ projectId: string;
31
+ agentId: string;
32
+ expiresAt: string | null;
32
33
  publicId: string;
33
34
  keyHash: string;
34
35
  keyPrefix: string;
35
36
  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
- agentId: string;
43
- projectId: string;
44
- tenantId: string;
45
- name: string | null;
46
42
  id: string;
43
+ name: string | null;
47
44
  createdAt: string;
48
45
  updatedAt: string;
46
+ tenantId: string;
47
+ projectId: string;
48
+ agentId: string;
49
+ expiresAt: string | null;
49
50
  publicId: string;
50
51
  keyHash: string;
51
52
  keyPrefix: string;
52
53
  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
- agentId: string;
70
- projectId: string;
71
- tenantId: string;
72
- name: string | null;
73
69
  id: string;
70
+ name: string | null;
74
71
  createdAt: string;
75
72
  updatedAt: string;
73
+ tenantId: string;
74
+ projectId: string;
75
+ agentId: string;
76
+ expiresAt: string | null;
76
77
  publicId: string;
77
78
  keyHash: string;
78
79
  keyPrefix: string;
79
80
  lastUsedAt: string | null;
80
- expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -16,14 +16,14 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  total: number;
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
- agentId: string | null;
20
- projectId: string;
21
- tenantId: string;
22
- userId: string | null;
23
- title: string | null;
24
19
  id: string;
20
+ title: string | null;
25
21
  createdAt: string;
26
22
  updatedAt: string;
23
+ tenantId: string;
24
+ projectId: string;
25
+ agentId: string | null;
26
+ userId: string | null;
27
27
  metadata: ConversationMetadata | null;
28
28
  ref: {
29
29
  type: "commit" | "tag" | "branch";
@@ -85,14 +85,14 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  scopes: ProjectScopeConfig;
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
- agentId: string | null;
89
- projectId: string;
90
- tenantId: string;
91
- userId: string | null;
92
- title: string | null;
93
88
  id: string;
89
+ title: string | null;
94
90
  createdAt: string;
95
91
  updatedAt: string;
92
+ tenantId: string;
93
+ projectId: string;
94
+ agentId: string | null;
95
+ userId: string | null;
96
96
  metadata: ConversationMetadata | null;
97
97
  ref: {
98
98
  type: "commit" | "tag" | "branch";
@@ -121,14 +121,14 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  metadata?: ConversationMetadata | null | undefined;
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
- agentId: string | null;
125
- projectId: string;
126
- tenantId: string;
127
- userId: string | null;
128
- title: string | null;
129
124
  id: string;
125
+ title: string | null;
130
126
  createdAt: string;
131
127
  updatedAt: string;
128
+ tenantId: string;
129
+ projectId: string;
130
+ agentId: string | null;
131
+ userId: string | null;
132
132
  metadata: ConversationMetadata | null;
133
133
  ref: {
134
134
  type: "commit" | "tag" | "branch";
@@ -153,14 +153,14 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  scopes: ProjectScopeConfig;
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
- agentId: string | null;
157
- projectId: string;
158
- tenantId: string;
159
- userId: string | null;
160
- title: string | null;
161
156
  id: string;
157
+ title: string | null;
162
158
  createdAt: string;
163
159
  updatedAt: string;
160
+ tenantId: string;
161
+ projectId: string;
162
+ agentId: string | null;
163
+ userId: string | null;
164
164
  metadata: ConversationMetadata | null;
165
165
  ref: {
166
166
  type: "commit" | "tag" | "branch";
@@ -10,21 +10,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- projectId: string;
13
+ id: string;
14
+ createdAt: string;
15
+ updatedAt: string;
14
16
  tenantId: string;
17
+ projectId: string;
15
18
  content: MessageContent;
19
+ metadata: MessageMetadata | null;
16
20
  fromSubAgentId: string | null;
17
21
  toSubAgentId: string | null;
18
22
  fromExternalAgentId: string | null;
19
23
  toExternalAgentId: string | null;
20
24
  taskId: string | null;
21
25
  a2aTaskId: string | null;
22
- id: string;
23
- createdAt: string;
24
- updatedAt: string;
25
- metadata: MessageMetadata | null;
26
- conversationId: string;
27
26
  role: string;
27
+ conversationId: string;
28
28
  fromTeamAgentId: string | null;
29
29
  toTeamAgentId: string | null;
30
30
  visibility: string;
@@ -141,21 +141,21 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
141
  id: string;
142
142
  }[]>;
143
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
144
- projectId: string;
144
+ id: string;
145
+ createdAt: string;
146
+ updatedAt: string;
145
147
  tenantId: string;
148
+ projectId: string;
146
149
  content: MessageContent;
150
+ metadata: MessageMetadata | null;
147
151
  fromSubAgentId: string | null;
148
152
  toSubAgentId: string | null;
149
153
  fromExternalAgentId: string | null;
150
154
  toExternalAgentId: string | null;
151
155
  taskId: string | null;
152
156
  a2aTaskId: string | null;
153
- id: string;
154
- createdAt: string;
155
- updatedAt: string;
156
- metadata: MessageMetadata | null;
157
- conversationId: string;
158
157
  role: string;
158
+ conversationId: string;
159
159
  fromTeamAgentId: string | null;
160
160
  toTeamAgentId: string | null;
161
161
  visibility: string;
@@ -194,21 +194,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
194
  scopes: ProjectScopeConfig;
195
195
  messageId: string;
196
196
  }) => Promise<{
197
- projectId: string;
197
+ id: string;
198
+ createdAt: string;
199
+ updatedAt: string;
198
200
  tenantId: string;
201
+ projectId: string;
199
202
  content: MessageContent;
203
+ metadata: MessageMetadata | null;
200
204
  fromSubAgentId: string | null;
201
205
  toSubAgentId: string | null;
202
206
  fromExternalAgentId: string | null;
203
207
  toExternalAgentId: string | null;
204
208
  taskId: string | null;
205
209
  a2aTaskId: string | null;
206
- id: string;
207
- createdAt: string;
208
- updatedAt: string;
209
- metadata: MessageMetadata | null;
210
- conversationId: string;
211
210
  role: string;
211
+ conversationId: string;
212
212
  fromTeamAgentId: string | null;
213
213
  toTeamAgentId: string | null;
214
214
  visibility: string;
@@ -6,21 +6,21 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
- agentId: string;
10
- projectId: string;
11
- tenantId: string;
12
- subAgentId: string;
13
9
  id: string;
14
10
  createdAt: string;
15
11
  updatedAt: string;
16
- metadata: TaskMetadataConfig | null;
12
+ tenantId: string;
13
+ projectId: string;
14
+ agentId: string;
17
15
  status: string;
18
- contextId: string;
16
+ metadata: TaskMetadataConfig | null;
17
+ subAgentId: string;
19
18
  ref: {
20
19
  type: "commit" | "tag" | "branch";
21
20
  name: string;
22
21
  hash: string;
23
22
  } | null;
23
+ contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;