@inkeep/agents-core 0.0.0-dev-20260331135509 → 0.0.0-dev-20260331174912

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 (31) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +17 -17
  2. package/dist/data-access/manage/agents.d.ts +27 -27
  3. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  4. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  5. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  6. package/dist/data-access/manage/functionTools.d.ts +10 -10
  7. package/dist/data-access/manage/skills.d.ts +7 -7
  8. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  9. package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
  10. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  11. package/dist/data-access/manage/subAgents.d.ts +9 -9
  12. package/dist/data-access/manage/tools.d.ts +18 -18
  13. package/dist/data-access/manage/triggers.d.ts +2 -2
  14. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  15. package/dist/data-access/runtime/apps.d.ts +6 -6
  16. package/dist/data-access/runtime/conversations.d.ts +12 -12
  17. package/dist/data-access/runtime/messages.d.ts +15 -15
  18. package/dist/data-access/runtime/tasks.d.ts +2 -2
  19. package/dist/db/manage/manage-schema.d.ts +341 -557
  20. package/dist/db/manage/manage-schema.js +2 -128
  21. package/dist/db/runtime/runtime-schema.d.ts +374 -374
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.js +2 -2
  24. package/dist/middleware/no-auth.d.ts +2 -2
  25. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  26. package/dist/validation/schemas/skills.d.ts +29 -29
  27. package/dist/validation/schemas.d.ts +1719 -1719
  28. package/drizzle/manage/0016_complex_klaw.sql +2 -0
  29. package/drizzle/manage/meta/0016_snapshot.json +3530 -0
  30. package/drizzle/manage/meta/_journal.json +7 -0
  31. package/package.json +1 -1
@@ -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,16 +207,16 @@ 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;
211
+ projectId: string;
214
212
  subAgentId: string;
213
+ agentId: string;
214
+ headers: Record<string, string> | null;
215
215
  toolId: string;
216
- selectedTools: string[] | null;
217
216
  toolPolicies: Record<string, {
218
217
  needsApproval?: boolean;
219
218
  }> | null;
219
+ selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -251,16 +251,16 @@ 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;
255
+ projectId: string;
258
256
  subAgentId: string;
257
+ agentId: string;
258
+ headers: Record<string, string> | null;
259
259
  toolId: string;
260
- selectedTools: string[] | null;
261
260
  toolPolicies: Record<string, {
262
261
  needsApproval?: boolean;
263
262
  }> | null;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -12,11 +12,11 @@ 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;
19
17
  subAgentId: string;
18
+ agentId: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ 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;
54
52
  subAgentId: string;
53
+ agentId: string;
54
+ headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ 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;
67
65
  subAgentId: string;
66
+ agentId: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -213,11 +213,11 @@ 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;
220
218
  subAgentId: string;
219
+ agentId: string;
220
+ headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -230,11 +230,11 @@ 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;
237
235
  subAgentId: string;
236
+ agentId: string;
237
+ headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -251,11 +251,11 @@ 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;
258
256
  subAgentId: string;
257
+ agentId: string;
258
+ headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -14,9 +14,8 @@ 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;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -31,10 +30,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
30
  providerOptions?: Record<string, unknown> | undefined;
32
31
  } | undefined;
33
32
  } | null;
34
- prompt: string | null;
35
33
  stopWhen: {
36
34
  stepCountIs?: number | undefined;
37
35
  } | null;
36
+ agentId: string;
37
+ prompt: string | null;
38
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,9 +45,8 @@ 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;
51
50
  models: {
52
51
  base?: {
53
52
  model?: string | undefined;
@@ -62,10 +61,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
61
  providerOptions?: Record<string, unknown> | undefined;
63
62
  } | undefined;
64
63
  } | null;
65
- prompt: string | null;
66
64
  stopWhen: {
67
65
  stepCountIs?: number | undefined;
68
66
  } | null;
67
+ agentId: string;
68
+ prompt: string | null;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -114,9 +114,8 @@ 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;
120
119
  models: {
121
120
  base?: {
122
121
  model?: string | undefined;
@@ -131,10 +130,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
130
  providerOptions?: Record<string, unknown> | undefined;
132
131
  } | undefined;
133
132
  } | null;
134
- prompt: string | null;
135
133
  stopWhen: {
136
134
  stepCountIs?: number | undefined;
137
135
  } | null;
136
+ agentId: string;
137
+ prompt: string | null;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -25,9 +25,9 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
27
  description: string | null;
28
- headers: Record<string, string> | null;
29
- projectId: string;
30
28
  tenantId: string;
29
+ projectId: string;
30
+ headers: Record<string, string> | null;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -83,9 +83,9 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
83
83
  createdAt: string;
84
84
  updatedAt: string;
85
85
  description: string | null;
86
- headers: Record<string, string> | null;
87
- projectId: string;
88
86
  tenantId: string;
87
+ projectId: string;
88
+ headers: Record<string, string> | null;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- headers: Record<string, string> | null;
142
- agentId: string;
143
- projectId: string;
144
141
  tenantId: string;
142
+ projectId: string;
145
143
  subAgentId: string;
144
+ agentId: string;
145
+ headers: Record<string, string> | null;
146
146
  toolId: string;
147
- selectedTools: string[] | null;
148
147
  toolPolicies: Record<string, {
149
148
  needsApproval?: boolean;
150
149
  }> | null;
150
+ selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- headers: Record<string, string> | null;
161
- agentId: string;
162
- projectId: string;
163
160
  tenantId: string;
161
+ projectId: string;
164
162
  subAgentId: string;
163
+ agentId: string;
164
+ headers: Record<string, string> | null;
165
165
  toolId: string;
166
- selectedTools: string[] | null;
167
166
  toolPolicies: Record<string, {
168
167
  needsApproval?: boolean;
169
168
  }> | null;
169
+ selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- headers: Record<string, string> | null;
189
- agentId: string;
190
- projectId: string;
191
188
  tenantId: string;
189
+ projectId: string;
192
190
  subAgentId: string;
191
+ agentId: string;
192
+ headers: Record<string, string> | null;
193
193
  toolId: string;
194
- selectedTools: string[] | null;
195
194
  toolPolicies: Record<string, {
196
195
  needsApproval?: boolean;
197
196
  }> | null;
197
+ selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -207,9 +207,9 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
209
  description: string | null;
210
- headers: Record<string, string> | null;
211
- projectId: string;
212
210
  tenantId: string;
211
+ projectId: string;
212
+ headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";
215
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" | "body" | "header";
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" | "body" | "header";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -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;
@@ -5,15 +5,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
5
5
 
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
- enabled: boolean;
8
+ type: AppType;
9
9
  id: string;
10
10
  name: string;
11
11
  createdAt: string;
12
12
  updatedAt: string;
13
13
  description: string | null;
14
- type: AppType;
15
- projectId: string | null;
16
14
  tenantId: string | null;
15
+ projectId: string | null;
16
+ enabled: boolean;
17
17
  prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
@@ -64,15 +64,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
64
64
  };
65
65
  }>;
66
66
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
67
- enabled: boolean;
67
+ type: AppType;
68
68
  id: string;
69
69
  name: string;
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  description: string | null;
73
- type: AppType;
74
- projectId: string | null;
75
73
  tenantId: string | null;
74
+ projectId: string | null;
75
+ enabled: boolean;
76
76
  prompt: string | null;
77
77
  config: {
78
78
  type: "web_client";
@@ -25,10 +25,10 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
25
25
  } | null;
26
26
  userId: string | null;
27
27
  metadata: ConversationMetadata | null;
28
- agentId: string | null;
29
- projectId: string;
30
- tenantId: string;
31
28
  title: string | null;
29
+ tenantId: string;
30
+ projectId: string;
31
+ agentId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -94,10 +94,10 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
94
94
  } | null;
95
95
  userId: string | null;
96
96
  metadata: ConversationMetadata | null;
97
- agentId: string | null;
98
- projectId: string;
99
- tenantId: string;
100
97
  title: string | null;
98
+ tenantId: string;
99
+ projectId: string;
100
+ agentId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -130,10 +130,10 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
130
130
  } | null;
131
131
  userId: string | null;
132
132
  metadata: ConversationMetadata | null;
133
- agentId: string | null;
134
- projectId: string;
135
- tenantId: string;
136
133
  title: string | null;
134
+ tenantId: string;
135
+ projectId: string;
136
+ agentId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -162,10 +162,10 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
162
162
  } | null;
163
163
  userId: string | null;
164
164
  metadata: ConversationMetadata | null;
165
- agentId: string | null;
166
- projectId: string;
167
- tenantId: string;
168
165
  title: string | null;
166
+ tenantId: string;
167
+ projectId: string;
168
+ agentId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -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
- tenantId: string;
20
18
  content: MessageContent;
21
- conversationId: string;
19
+ tenantId: string;
20
+ projectId: string;
22
21
  fromSubAgentId: string | null;
23
22
  toSubAgentId: string | null;
24
23
  fromExternalAgentId: string | null;
25
24
  toExternalAgentId: string | null;
25
+ taskId: string | null;
26
+ a2aTaskId: string | null;
27
+ conversationId: 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: {
@@ -149,21 +149,21 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
149
149
  updatedAt: string;
150
150
  metadata: MessageMetadata | null;
151
151
  role: string;
152
- projectId: string;
153
- tenantId: string;
154
152
  content: MessageContent;
155
- conversationId: string;
153
+ tenantId: string;
154
+ projectId: string;
156
155
  fromSubAgentId: string | null;
157
156
  toSubAgentId: string | null;
158
157
  fromExternalAgentId: string | null;
159
158
  toExternalAgentId: string | null;
159
+ taskId: string | null;
160
+ a2aTaskId: string | null;
161
+ conversationId: string;
160
162
  fromTeamAgentId: string | null;
161
163
  toTeamAgentId: string | null;
162
164
  visibility: string;
163
165
  messageType: string;
164
- taskId: string | null;
165
166
  parentMessageId: string | null;
166
- a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -202,21 +202,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
202
202
  updatedAt: string;
203
203
  metadata: MessageMetadata | null;
204
204
  role: string;
205
- projectId: string;
206
- tenantId: string;
207
205
  content: MessageContent;
208
- conversationId: string;
206
+ tenantId: string;
207
+ projectId: string;
209
208
  fromSubAgentId: string | null;
210
209
  toSubAgentId: string | null;
211
210
  fromExternalAgentId: string | null;
212
211
  toExternalAgentId: string | null;
212
+ taskId: string | null;
213
+ a2aTaskId: string | null;
214
+ conversationId: string;
213
215
  fromTeamAgentId: string | null;
214
216
  toTeamAgentId: string | null;
215
217
  visibility: string;
216
218
  messageType: string;
217
- taskId: string | null;
218
219
  parentMessageId: string | null;
219
- a2aTaskId: string | null;
220
220
  a2aSessionId: string | null;
221
221
  }>;
222
222
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -17,10 +17,10 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
17
17
  } | null;
18
18
  metadata: TaskMetadataConfig | null;
19
19
  status: string;
20
- agentId: string;
21
- projectId: string;
22
20
  tenantId: string;
21
+ projectId: string;
23
22
  subAgentId: string;
23
+ agentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {