@inkeep/agents-core 0.0.0-dev-20260325084121 → 0.0.0-dev-20260325193448

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.
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
13
  tenantId: string;
16
14
  projectId: string;
17
15
  agentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- createdAt: string;
49
- updatedAt: string;
50
48
  tenantId: string;
51
49
  projectId: string;
52
50
  agentId: string;
51
+ createdAt: string;
52
+ updatedAt: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
61
  tenantId: string;
64
62
  projectId: string;
65
63
  agentId: string;
64
+ createdAt: string;
65
+ updatedAt: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
- createdAt: string;
131
- updatedAt: string;
132
130
  tenantId: string;
133
131
  projectId: string;
134
132
  agentId: string;
133
+ createdAt: string;
134
+ updatedAt: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
- createdAt: string;
150
- updatedAt: string;
151
149
  tenantId: string;
152
150
  projectId: string;
153
151
  agentId: string;
152
+ createdAt: string;
153
+ updatedAt: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
- createdAt: string;
164
- updatedAt: string;
165
163
  tenantId: string;
166
164
  projectId: string;
167
165
  agentId: string;
166
+ createdAt: string;
167
+ updatedAt: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -205,18 +205,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
- createdAt: string;
209
- updatedAt: string;
210
208
  tenantId: string;
211
209
  projectId: string;
212
210
  agentId: string;
211
+ createdAt: string;
212
+ updatedAt: string;
213
213
  toolId: string;
214
- subAgentId: string;
215
214
  headers: Record<string, string> | null;
216
- selectedTools: string[] | null;
217
215
  toolPolicies: Record<string, {
218
216
  needsApproval?: boolean;
219
217
  }> | null;
218
+ subAgentId: string;
219
+ selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -249,18 +249,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
- createdAt: string;
253
- updatedAt: string;
254
252
  tenantId: string;
255
253
  projectId: string;
256
254
  agentId: string;
255
+ createdAt: string;
256
+ updatedAt: string;
257
257
  toolId: string;
258
- subAgentId: string;
259
258
  headers: Record<string, string> | null;
260
- selectedTools: string[] | null;
261
259
  toolPolicies: Record<string, {
262
260
  needsApproval?: boolean;
263
261
  }> | null;
262
+ subAgentId: string;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -10,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
13
  tenantId: string;
16
14
  projectId: string;
17
15
  agentId: string;
18
- subAgentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
19
18
  headers: Record<string, string> | null;
19
+ subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,26 +45,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- createdAt: string;
49
- updatedAt: string;
50
48
  tenantId: string;
51
49
  projectId: string;
52
50
  agentId: string;
53
- subAgentId: string;
51
+ createdAt: string;
52
+ updatedAt: string;
54
53
  headers: Record<string, string> | null;
54
+ subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
61
  tenantId: string;
64
62
  projectId: string;
65
63
  agentId: string;
66
- subAgentId: string;
64
+ createdAt: string;
65
+ updatedAt: string;
67
66
  headers: Record<string, string> | null;
67
+ subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -211,13 +211,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
211
211
  };
212
212
  }) => Promise<{
213
213
  id: string;
214
- createdAt: string;
215
- updatedAt: string;
216
214
  tenantId: string;
217
215
  projectId: string;
218
216
  agentId: string;
219
- subAgentId: string;
217
+ createdAt: string;
218
+ updatedAt: string;
220
219
  headers: Record<string, string> | null;
220
+ subAgentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -228,13 +228,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
230
  id: string;
231
- createdAt: string;
232
- updatedAt: string;
233
231
  tenantId: string;
234
232
  projectId: string;
235
233
  agentId: string;
236
- subAgentId: string;
234
+ createdAt: string;
235
+ updatedAt: string;
237
236
  headers: Record<string, string> | null;
237
+ subAgentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -249,13 +249,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
249
249
  };
250
250
  }) => Promise<{
251
251
  id: string;
252
- createdAt: string;
253
- updatedAt: string;
254
252
  tenantId: string;
255
253
  projectId: string;
256
254
  agentId: string;
257
- subAgentId: string;
255
+ createdAt: string;
256
+ updatedAt: string;
258
257
  headers: Record<string, string> | null;
258
+ subAgentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,6 +12,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  id: string;
13
13
  name: string;
14
14
  description: string | null;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
+ prompt: string | null;
19
+ conversationHistoryConfig: ConversationHistoryConfig | null;
15
20
  models: {
16
21
  base?: {
17
22
  model?: string | undefined;
@@ -31,11 +36,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
36
  } | null;
32
37
  createdAt: string;
33
38
  updatedAt: string;
34
- tenantId: string;
35
- prompt: string | null;
36
- projectId: string;
37
- agentId: string;
38
- conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
@@ -43,6 +43,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
43
43
  id: string;
44
44
  name: string;
45
45
  description: string | null;
46
+ tenantId: string;
47
+ projectId: string;
48
+ agentId: string;
49
+ prompt: string | null;
50
+ conversationHistoryConfig: ConversationHistoryConfig | null;
46
51
  models: {
47
52
  base?: {
48
53
  model?: string | undefined;
@@ -62,11 +67,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
67
  } | null;
63
68
  createdAt: string;
64
69
  updatedAt: string;
65
- tenantId: string;
66
- prompt: string | null;
67
- projectId: string;
68
- agentId: string;
69
- conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -112,6 +112,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
112
112
  id: string;
113
113
  name: string;
114
114
  description: string | null;
115
+ tenantId: string;
116
+ projectId: string;
117
+ agentId: string;
118
+ prompt: string | null;
119
+ conversationHistoryConfig: ConversationHistoryConfig | null;
115
120
  models: {
116
121
  base?: {
117
122
  model?: string | undefined;
@@ -131,11 +136,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
136
  } | null;
132
137
  createdAt: string;
133
138
  updatedAt: string;
134
- tenantId: string;
135
- prompt: string | null;
136
- projectId: string;
137
- agentId: string;
138
- conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -23,17 +23,17 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
23
23
  id: string;
24
24
  name: string;
25
25
  description: string | null;
26
- createdAt: string;
27
- updatedAt: string;
28
26
  tenantId: string;
29
27
  projectId: string;
30
- credentialReferenceId: string | null;
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ headers: Record<string, string> | null;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
34
34
  };
35
+ credentialReferenceId: string | null;
35
36
  credentialScope: string;
36
- headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
39
39
  lastError: string | null;
@@ -81,17 +81,17 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
81
81
  id: string;
82
82
  name: string;
83
83
  description: string | null;
84
- createdAt: string;
85
- updatedAt: string;
86
84
  tenantId: string;
87
85
  projectId: string;
88
- credentialReferenceId: string | null;
86
+ createdAt: string;
87
+ updatedAt: string;
88
+ headers: Record<string, string> | null;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
92
92
  };
93
+ credentialReferenceId: string | null;
93
94
  credentialScope: string;
94
- headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -136,18 +136,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  }> | null;
137
137
  }) => Promise<{
138
138
  id: string;
139
- createdAt: string;
140
- updatedAt: string;
141
139
  tenantId: string;
142
140
  projectId: string;
143
141
  agentId: string;
142
+ createdAt: string;
143
+ updatedAt: string;
144
144
  toolId: string;
145
- subAgentId: string;
146
145
  headers: Record<string, string> | null;
147
- selectedTools: string[] | null;
148
146
  toolPolicies: Record<string, {
149
147
  needsApproval?: boolean;
150
148
  }> | null;
149
+ subAgentId: string;
150
+ selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -155,18 +155,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  toolId: string;
156
156
  }) => Promise<{
157
157
  id: string;
158
- createdAt: string;
159
- updatedAt: string;
160
158
  tenantId: string;
161
159
  projectId: string;
162
160
  agentId: string;
161
+ createdAt: string;
162
+ updatedAt: string;
163
163
  toolId: string;
164
- subAgentId: string;
165
164
  headers: Record<string, string> | null;
166
- selectedTools: string[] | null;
167
165
  toolPolicies: Record<string, {
168
166
  needsApproval?: boolean;
169
167
  }> | null;
168
+ subAgentId: string;
169
+ selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -183,18 +183,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
185
  id: string;
186
- createdAt: string;
187
- updatedAt: string;
188
186
  tenantId: string;
189
187
  projectId: string;
190
188
  agentId: string;
189
+ createdAt: string;
190
+ updatedAt: string;
191
191
  toolId: string;
192
- subAgentId: string;
193
192
  headers: Record<string, string> | null;
194
- selectedTools: string[] | null;
195
193
  toolPolicies: Record<string, {
196
194
  needsApproval?: boolean;
197
195
  }> | null;
196
+ subAgentId: string;
197
+ selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -205,17 +205,17 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
205
205
  id: string;
206
206
  name: string;
207
207
  description: string | null;
208
- createdAt: string;
209
- updatedAt: string;
210
208
  tenantId: string;
211
209
  projectId: string;
212
- credentialReferenceId: string | null;
210
+ createdAt: string;
211
+ updatedAt: string;
212
+ headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
216
216
  };
217
+ credentialReferenceId: string | null;
217
218
  credentialScope: string;
218
- headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;
@@ -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: "header" | "query" | "body";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -10,11 +10,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string | null;
13
- createdAt: string;
14
- updatedAt: string;
15
13
  tenantId: string;
16
14
  projectId: string;
17
15
  agentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
18
  expiresAt: string | null;
19
19
  lastUsedAt: string | null;
20
20
  publicId: string;
@@ -24,11 +24,11 @@ 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
- createdAt: string;
28
- updatedAt: string;
29
27
  tenantId: string;
30
28
  projectId: string;
31
29
  agentId: string;
30
+ createdAt: string;
31
+ updatedAt: string;
32
32
  expiresAt: string | null;
33
33
  lastUsedAt: string | null;
34
34
  publicId: string;
@@ -41,11 +41,11 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
41
41
  }) => Promise<{
42
42
  id: string;
43
43
  name: string | null;
44
- createdAt: string;
45
- updatedAt: string;
46
44
  tenantId: string;
47
45
  projectId: string;
48
46
  agentId: string;
47
+ createdAt: string;
48
+ updatedAt: string;
49
49
  expiresAt: string | null;
50
50
  lastUsedAt: string | null;
51
51
  publicId: string;
@@ -68,11 +68,11 @@ 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
- createdAt: string;
72
- updatedAt: string;
73
71
  tenantId: string;
74
72
  projectId: string;
75
73
  agentId: string;
74
+ createdAt: string;
75
+ updatedAt: string;
76
76
  expiresAt: string | null;
77
77
  lastUsedAt: string | null;
78
78
  publicId: 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
- type: AppType;
9
8
  id: string;
10
9
  name: string;
11
10
  description: string | null;
11
+ tenantId: string | null;
12
+ projectId: string | null;
13
+ type: AppType;
12
14
  createdAt: string;
13
15
  updatedAt: string;
14
- tenantId: string | null;
15
16
  enabled: boolean;
16
- projectId: string | null;
17
17
  config: {
18
18
  type: "web_client";
19
19
  webClient: {
@@ -52,15 +52,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
52
52
  };
53
53
  }>;
54
54
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
55
- type: AppType;
56
55
  id: string;
57
56
  name: string;
58
57
  description: string | null;
58
+ tenantId: string | null;
59
+ projectId: string | null;
60
+ type: AppType;
59
61
  createdAt: string;
60
62
  updatedAt: string;
61
- tenantId: string | null;
62
63
  enabled: boolean;
63
- projectId: string | null;
64
64
  config: {
65
65
  type: "web_client";
66
66
  webClient: {
@@ -17,19 +17,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
19
  id: string;
20
- title: string | null;
21
- createdAt: string;
22
- updatedAt: string;
23
20
  tenantId: string;
24
21
  projectId: string;
25
22
  agentId: string | null;
26
- userId: string | null;
23
+ title: string | null;
24
+ createdAt: string;
25
+ updatedAt: string;
27
26
  metadata: ConversationMetadata | null;
28
27
  ref: {
29
28
  type: "commit" | "tag" | "branch";
30
29
  name: string;
31
30
  hash: string;
32
31
  } | null;
32
+ userId: 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
- title: string | null;
90
- createdAt: string;
91
- updatedAt: string;
92
89
  tenantId: string;
93
90
  projectId: string;
94
91
  agentId: string | null;
95
- userId: string | null;
92
+ title: string | null;
93
+ createdAt: string;
94
+ updatedAt: string;
96
95
  metadata: ConversationMetadata | null;
97
96
  ref: {
98
97
  type: "commit" | "tag" | "branch";
99
98
  name: string;
100
99
  hash: string;
101
100
  } | null;
101
+ userId: 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
- title: string | null;
126
- createdAt: string;
127
- updatedAt: string;
128
125
  tenantId: string;
129
126
  projectId: string;
130
127
  agentId: string | null;
131
- userId: string | null;
128
+ title: string | null;
129
+ createdAt: string;
130
+ updatedAt: string;
132
131
  metadata: ConversationMetadata | null;
133
132
  ref: {
134
133
  type: "commit" | "tag" | "branch";
135
134
  name: string;
136
135
  hash: string;
137
136
  } | null;
137
+ userId: 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
- title: string | null;
158
- createdAt: string;
159
- updatedAt: string;
160
157
  tenantId: string;
161
158
  projectId: string;
162
159
  agentId: string | null;
163
- userId: string | null;
160
+ title: string | null;
161
+ createdAt: string;
162
+ updatedAt: string;
164
163
  metadata: ConversationMetadata | null;
165
164
  ref: {
166
165
  type: "commit" | "tag" | "branch";
167
166
  name: string;
168
167
  hash: string;
169
168
  } | null;
169
+ userId: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -11,14 +11,14 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
- createdAt: string;
15
- updatedAt: string;
16
14
  tenantId: string;
17
15
  projectId: string;
18
- content: MessageContent;
16
+ createdAt: string;
17
+ updatedAt: string;
19
18
  metadata: MessageMetadata | null;
20
- conversationId: string;
19
+ content: MessageContent;
21
20
  role: string;
21
+ conversationId: string;
22
22
  fromSubAgentId: string | null;
23
23
  toSubAgentId: string | null;
24
24
  fromExternalAgentId: string | null;
@@ -145,14 +145,14 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
145
145
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
146
  }) => Promise<{
147
147
  id: string;
148
- createdAt: string;
149
- updatedAt: string;
150
148
  tenantId: string;
151
149
  projectId: string;
152
- content: MessageContent;
150
+ createdAt: string;
151
+ updatedAt: string;
153
152
  metadata: MessageMetadata | null;
154
- conversationId: string;
153
+ content: MessageContent;
155
154
  role: string;
155
+ conversationId: string;
156
156
  fromSubAgentId: string | null;
157
157
  toSubAgentId: string | null;
158
158
  fromExternalAgentId: string | null;
@@ -198,14 +198,14 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
198
198
  messageId: string;
199
199
  }) => Promise<{
200
200
  id: string;
201
- createdAt: string;
202
- updatedAt: string;
203
201
  tenantId: string;
204
202
  projectId: string;
205
- content: MessageContent;
203
+ createdAt: string;
204
+ updatedAt: string;
206
205
  metadata: MessageMetadata | null;
207
- conversationId: string;
206
+ content: MessageContent;
208
207
  role: string;
208
+ conversationId: string;
209
209
  fromSubAgentId: string | null;
210
210
  toSubAgentId: string | null;
211
211
  fromExternalAgentId: string | null;