@inkeep/agents-core 0.0.0-dev-20260226145319 → 0.0.0-dev-20260226181003

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 (35) 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 +28 -28
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +1 -1
  6. package/dist/data-access/manage/agents.d.ts +32 -32
  7. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  8. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  9. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  10. package/dist/data-access/manage/functionTools.d.ts +10 -10
  11. package/dist/data-access/manage/skills.d.ts +6 -6
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgents.d.ts +12 -12
  16. package/dist/data-access/manage/tools.d.ts +18 -18
  17. package/dist/data-access/manage/tools.js +2 -2
  18. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  19. package/dist/data-access/runtime/conversations.d.ts +8 -8
  20. package/dist/data-access/runtime/messages.d.ts +12 -12
  21. package/dist/data-access/runtime/tasks.d.ts +2 -2
  22. package/dist/db/manage/manage-schema.d.ts +447 -447
  23. package/dist/db/runtime/runtime-schema.d.ts +290 -290
  24. package/dist/index.d.ts +2 -2
  25. package/dist/index.js +2 -2
  26. package/dist/middleware/no-auth.d.ts +2 -2
  27. package/dist/utils/index.d.ts +2 -2
  28. package/dist/utils/index.js +2 -2
  29. package/dist/utils/third-party-mcp-servers/composio-client.d.ts +8 -10
  30. package/dist/utils/third-party-mcp-servers/composio-client.js +19 -15
  31. package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
  32. package/dist/utils/third-party-mcp-servers/index.js +2 -2
  33. package/dist/validation/schemas.d.ts +1383 -1383
  34. package/dist/validation/schemas.js +1 -2
  35. package/package.json +1 -1
@@ -12,12 +12,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
- agentId: string;
17
- projectId: string;
18
15
  tenantId: string;
19
- subAgentId: string;
16
+ projectId: string;
17
+ agentId: string;
18
+ headers: Record<string, string> | null;
20
19
  externalAgentId: string;
20
+ subAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -47,12 +47,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
- agentId: string;
52
- projectId: string;
53
50
  tenantId: string;
54
- subAgentId: string;
51
+ projectId: string;
52
+ agentId: string;
53
+ headers: Record<string, string> | null;
55
54
  externalAgentId: string;
55
+ subAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -60,12 +60,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
- agentId: string;
65
- projectId: string;
66
63
  tenantId: string;
67
- subAgentId: string;
64
+ projectId: string;
65
+ agentId: string;
66
+ headers: Record<string, string> | null;
68
67
  externalAgentId: string;
68
+ subAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -183,12 +183,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- headers: Record<string, string> | null;
187
- agentId: string;
188
- projectId: string;
189
186
  tenantId: string;
190
- subAgentId: string;
187
+ projectId: string;
188
+ agentId: string;
189
+ headers: Record<string, string> | null;
191
190
  externalAgentId: string;
191
+ subAgentId: string;
192
192
  }>;
193
193
  /**
194
194
  * Check if sub-agent external agent relation exists by params
@@ -200,12 +200,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- headers: Record<string, string> | null;
204
- agentId: string;
205
- projectId: string;
206
203
  tenantId: string;
207
- subAgentId: string;
204
+ projectId: string;
205
+ agentId: string;
206
+ headers: Record<string, string> | null;
208
207
  externalAgentId: string;
208
+ subAgentId: string;
209
209
  } | undefined>;
210
210
  /**
211
211
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -221,12 +221,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- headers: Record<string, string> | null;
225
- agentId: string;
226
- projectId: string;
227
224
  tenantId: string;
228
- subAgentId: string;
225
+ projectId: string;
226
+ agentId: string;
227
+ headers: Record<string, string> | null;
229
228
  externalAgentId: string;
229
+ subAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
232
232
  scopes: SubAgentScopeConfig;
@@ -12,12 +12,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
+ relationType: string | null;
18
19
  sourceSubAgentId: string;
19
20
  targetSubAgentId: string | null;
20
- relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -47,12 +47,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
50
  tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
+ relationType: string | null;
53
54
  sourceSubAgentId: string;
54
55
  targetSubAgentId: string | null;
55
- relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -60,12 +60,12 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
63
  tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
+ relationType: string | null;
66
67
  sourceSubAgentId: string;
67
68
  targetSubAgentId: string | null;
68
- relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -129,12 +129,12 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- agentId: string;
133
- projectId: string;
134
132
  tenantId: string;
133
+ projectId: string;
134
+ agentId: string;
135
+ relationType: string | null;
135
136
  sourceSubAgentId: string;
136
137
  targetSubAgentId: string | null;
137
- relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -148,12 +148,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- agentId: string;
152
- projectId: string;
153
151
  tenantId: string;
152
+ projectId: string;
153
+ agentId: string;
154
+ relationType: string | null;
154
155
  sourceSubAgentId: string;
155
156
  targetSubAgentId: string | null;
156
- relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -162,12 +162,12 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- agentId: string;
166
- projectId: string;
167
165
  tenantId: string;
166
+ projectId: string;
167
+ agentId: string;
168
+ relationType: string | null;
168
169
  sourceSubAgentId: string;
169
170
  targetSubAgentId: string | null;
170
- relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -207,15 +207,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- headers: Record<string, string> | null;
211
- agentId: string;
212
- projectId: string;
213
210
  tenantId: string;
214
- subAgentId: string;
211
+ projectId: string;
212
+ agentId: string;
215
213
  toolId: string;
214
+ headers: Record<string, string> | null;
216
215
  toolPolicies: Record<string, {
217
216
  needsApproval?: boolean;
218
217
  }> | null;
218
+ subAgentId: string;
219
219
  selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -251,15 +251,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- headers: Record<string, string> | null;
255
- agentId: string;
256
- projectId: string;
257
254
  tenantId: string;
258
- subAgentId: string;
255
+ projectId: string;
256
+ agentId: string;
259
257
  toolId: string;
258
+ headers: Record<string, string> | null;
260
259
  toolPolicies: Record<string, {
261
260
  needsApproval?: boolean;
262
261
  }> | null;
262
+ subAgentId: string;
263
263
  selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,10 +12,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
- agentId: string;
17
- projectId: string;
18
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
+ headers: Record<string, string> | null;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -47,10 +47,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
- agentId: string;
52
- projectId: string;
53
50
  tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
+ headers: Record<string, string> | null;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -60,10 +60,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
- agentId: string;
65
- projectId: string;
66
63
  tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
+ headers: Record<string, string> | null;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -213,10 +213,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
213
213
  id: string;
214
214
  createdAt: string;
215
215
  updatedAt: string;
216
- headers: Record<string, string> | null;
217
- agentId: string;
218
- projectId: string;
219
216
  tenantId: string;
217
+ projectId: string;
218
+ agentId: string;
219
+ headers: Record<string, string> | null;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -230,10 +230,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
230
230
  id: string;
231
231
  createdAt: string;
232
232
  updatedAt: string;
233
- headers: Record<string, string> | null;
234
- agentId: string;
235
- projectId: string;
236
233
  tenantId: string;
234
+ projectId: string;
235
+ agentId: string;
236
+ headers: Record<string, string> | null;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -251,10 +251,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- headers: Record<string, string> | null;
255
- agentId: string;
256
- projectId: string;
257
254
  tenantId: string;
255
+ projectId: string;
256
+ agentId: string;
257
+ headers: Record<string, string> | null;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -14,9 +14,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  description: string | null;
17
- agentId: string;
18
- projectId: string;
19
17
  tenantId: string;
18
+ projectId: string;
19
+ agentId: string;
20
+ prompt: string | null;
21
+ conversationHistoryConfig: ConversationHistoryConfig | null;
20
22
  models: {
21
23
  base?: {
22
24
  model?: string | undefined;
@@ -31,11 +33,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
33
  providerOptions?: Record<string, any> | undefined;
32
34
  } | undefined;
33
35
  } | null;
34
- prompt: string | null;
35
36
  stopWhen: {
36
37
  stepCountIs?: number | undefined;
37
38
  } | null;
38
- conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
@@ -45,9 +45,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
45
45
  createdAt: string;
46
46
  updatedAt: string;
47
47
  description: string | null;
48
- agentId: string;
49
- projectId: string;
50
48
  tenantId: string;
49
+ projectId: string;
50
+ agentId: string;
51
+ prompt: string | null;
52
+ conversationHistoryConfig: ConversationHistoryConfig | null;
51
53
  models: {
52
54
  base?: {
53
55
  model?: string | undefined;
@@ -62,11 +64,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
64
  providerOptions?: Record<string, any> | undefined;
63
65
  } | undefined;
64
66
  } | null;
65
- prompt: string | null;
66
67
  stopWhen: {
67
68
  stepCountIs?: number | undefined;
68
69
  } | null;
69
- conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -114,9 +114,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
114
114
  createdAt: string;
115
115
  updatedAt: string;
116
116
  description: string | null;
117
- agentId: string;
118
- projectId: string;
119
117
  tenantId: string;
118
+ projectId: string;
119
+ agentId: string;
120
+ prompt: string | null;
121
+ conversationHistoryConfig: ConversationHistoryConfig | null;
120
122
  models: {
121
123
  base?: {
122
124
  model?: string | undefined;
@@ -131,11 +133,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
133
  providerOptions?: Record<string, any> | undefined;
132
134
  } | undefined;
133
135
  } | null;
134
- prompt: string | null;
135
136
  stopWhen: {
136
137
  stepCountIs?: number | undefined;
137
138
  } | null;
138
- conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -24,9 +24,9 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
26
  description: string | null;
27
- headers: Record<string, string> | null;
28
- projectId: string;
29
27
  tenantId: string;
28
+ projectId: string;
29
+ headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
32
32
  mcp: ToolMcpConfig;
@@ -82,9 +82,9 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
82
82
  createdAt: string;
83
83
  updatedAt: string;
84
84
  description: string | null;
85
- headers: Record<string, string> | null;
86
- projectId: string;
87
85
  tenantId: string;
86
+ projectId: string;
87
+ headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
90
90
  mcp: ToolMcpConfig;
@@ -137,15 +137,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
137
137
  id: string;
138
138
  createdAt: string;
139
139
  updatedAt: string;
140
- headers: Record<string, string> | null;
141
- agentId: string;
142
- projectId: string;
143
140
  tenantId: string;
144
- subAgentId: string;
141
+ projectId: string;
142
+ agentId: string;
145
143
  toolId: string;
144
+ headers: Record<string, string> | null;
146
145
  toolPolicies: Record<string, {
147
146
  needsApproval?: boolean;
148
147
  }> | null;
148
+ subAgentId: string;
149
149
  selectedTools: string[] | null;
150
150
  }>;
151
151
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -156,15 +156,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
156
156
  id: string;
157
157
  createdAt: string;
158
158
  updatedAt: string;
159
- headers: Record<string, string> | null;
160
- agentId: string;
161
- projectId: string;
162
159
  tenantId: string;
163
- subAgentId: string;
160
+ projectId: string;
161
+ agentId: string;
164
162
  toolId: string;
163
+ headers: Record<string, string> | null;
165
164
  toolPolicies: Record<string, {
166
165
  needsApproval?: boolean;
167
166
  }> | null;
167
+ subAgentId: string;
168
168
  selectedTools: string[] | null;
169
169
  }>;
170
170
  /**
@@ -184,15 +184,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
184
184
  id: string;
185
185
  createdAt: string;
186
186
  updatedAt: string;
187
- headers: Record<string, string> | null;
188
- agentId: string;
189
- projectId: string;
190
187
  tenantId: string;
191
- subAgentId: string;
188
+ projectId: string;
189
+ agentId: string;
192
190
  toolId: string;
191
+ headers: Record<string, string> | null;
193
192
  toolPolicies: Record<string, {
194
193
  needsApproval?: boolean;
195
194
  }> | null;
195
+ subAgentId: string;
196
196
  selectedTools: string[] | null;
197
197
  }>;
198
198
  /**
@@ -206,9 +206,9 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
206
206
  createdAt: string;
207
207
  updatedAt: string;
208
208
  description: string | null;
209
- headers: Record<string, string> | null;
210
- projectId: string;
211
209
  tenantId: string;
210
+ projectId: string;
211
+ headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
214
214
  mcp: ToolMcpConfig;
@@ -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,
@@ -13,9 +13,9 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  expiresAt: string | null;
16
- agentId: string;
17
- projectId: string;
18
16
  tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
@@ -27,9 +27,9 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
29
  expiresAt: string | null;
30
- agentId: string;
31
- projectId: string;
32
30
  tenantId: string;
31
+ projectId: string;
32
+ agentId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -44,9 +44,9 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
46
  expiresAt: string | null;
47
- agentId: string;
48
- projectId: string;
49
47
  tenantId: string;
48
+ projectId: string;
49
+ agentId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -71,9 +71,9 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
73
  expiresAt: string | null;
74
- agentId: string;
75
- projectId: string;
76
74
  tenantId: string;
75
+ projectId: string;
76
+ agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -26,9 +26,9 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
26
26
  } | null;
27
27
  userId: string | null;
28
28
  metadata: ConversationMetadata | null;
29
- agentId: string | null;
30
- projectId: string;
31
29
  tenantId: string;
30
+ projectId: string;
31
+ agentId: string | null;
32
32
  title: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
@@ -95,9 +95,9 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
95
95
  } | null;
96
96
  userId: string | null;
97
97
  metadata: ConversationMetadata | null;
98
- agentId: string | null;
99
- projectId: string;
100
98
  tenantId: string;
99
+ projectId: string;
100
+ agentId: string | null;
101
101
  title: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
@@ -131,9 +131,9 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
131
131
  } | null;
132
132
  userId: string | null;
133
133
  metadata: ConversationMetadata | null;
134
- agentId: string | null;
135
- projectId: string;
136
134
  tenantId: string;
135
+ projectId: string;
136
+ agentId: string | null;
137
137
  title: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
@@ -163,9 +163,9 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
163
163
  } | null;
164
164
  userId: string | null;
165
165
  metadata: ConversationMetadata | null;
166
- agentId: string | null;
167
- projectId: string;
168
166
  tenantId: string;
167
+ projectId: string;
168
+ agentId: string | null;
169
169
  title: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
@@ -15,21 +15,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
15
15
  updatedAt: string;
16
16
  metadata: MessageMetadata | null;
17
17
  role: string;
18
- projectId: string;
19
18
  tenantId: string;
19
+ projectId: 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: {
@@ -146,21 +146,21 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
146
146
  updatedAt: string;
147
147
  metadata: MessageMetadata | null;
148
148
  role: string;
149
- projectId: string;
150
149
  tenantId: string;
150
+ projectId: string;
151
151
  content: MessageContent;
152
+ conversationId: string;
152
153
  fromSubAgentId: string | null;
153
154
  toSubAgentId: string | null;
154
155
  fromExternalAgentId: string | null;
155
156
  toExternalAgentId: string | null;
156
- taskId: string | null;
157
- a2aTaskId: string | null;
158
- conversationId: string;
159
157
  fromTeamAgentId: string | null;
160
158
  toTeamAgentId: string | null;
161
159
  visibility: string;
162
160
  messageType: string;
161
+ taskId: string | null;
163
162
  parentMessageId: string | null;
163
+ a2aTaskId: string | null;
164
164
  a2aSessionId: string | null;
165
165
  }>;
166
166
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -199,21 +199,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
199
199
  updatedAt: string;
200
200
  metadata: MessageMetadata | null;
201
201
  role: string;
202
- projectId: string;
203
202
  tenantId: string;
203
+ projectId: string;
204
204
  content: MessageContent;
205
+ conversationId: string;
205
206
  fromSubAgentId: string | null;
206
207
  toSubAgentId: string | null;
207
208
  fromExternalAgentId: string | null;
208
209
  toExternalAgentId: string | null;
209
- taskId: string | null;
210
- a2aTaskId: string | null;
211
- conversationId: string;
212
210
  fromTeamAgentId: string | null;
213
211
  toTeamAgentId: string | null;
214
212
  visibility: string;
215
213
  messageType: string;
214
+ taskId: string | null;
216
215
  parentMessageId: string | null;
216
+ a2aTaskId: string | null;
217
217
  a2aSessionId: string | null;
218
218
  }>;
219
219
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -16,9 +16,9 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
16
16
  } | null;
17
17
  metadata: TaskMetadataConfig | null;
18
18
  status: string;
19
- agentId: string;
20
- projectId: string;
21
19
  tenantId: string;
20
+ projectId: string;
21
+ agentId: string;
22
22
  subAgentId: string;
23
23
  contextId: string;
24
24
  }>;