@inkeep/agents-core 0.0.0-dev-20260123215311 → 0.0.0-dev-20260123215736

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.
@@ -11,11 +11,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- tenantId: string;
14
+ headers: Record<string, string> | null;
15
+ agentId: string;
15
16
  projectId: string;
17
+ tenantId: string;
16
18
  subAgentId: string;
17
- agentId: string;
18
- headers: Record<string, string> | null;
19
19
  externalAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,11 +46,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
49
+ headers: Record<string, string> | null;
50
+ agentId: string;
50
51
  projectId: string;
52
+ tenantId: string;
51
53
  subAgentId: string;
52
- agentId: string;
53
- headers: Record<string, string> | null;
54
54
  externalAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,11 +59,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- tenantId: string;
62
+ headers: Record<string, string> | null;
63
+ agentId: string;
63
64
  projectId: string;
65
+ tenantId: string;
64
66
  subAgentId: string;
65
- agentId: string;
66
- headers: Record<string, string> | null;
67
67
  externalAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -182,11 +182,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
182
182
  id: string;
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
- tenantId: string;
185
+ headers: Record<string, string> | null;
186
+ agentId: string;
186
187
  projectId: string;
188
+ tenantId: string;
187
189
  subAgentId: string;
188
- agentId: string;
189
- headers: Record<string, string> | null;
190
190
  externalAgentId: string;
191
191
  }>;
192
192
  /**
@@ -199,11 +199,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
199
199
  id: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
- tenantId: string;
202
+ headers: Record<string, string> | null;
203
+ agentId: string;
203
204
  projectId: string;
205
+ tenantId: string;
204
206
  subAgentId: string;
205
- agentId: string;
206
- headers: Record<string, string> | null;
207
207
  externalAgentId: string;
208
208
  } | undefined>;
209
209
  /**
@@ -220,11 +220,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
220
220
  id: string;
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
- tenantId: string;
223
+ headers: Record<string, string> | null;
224
+ agentId: string;
224
225
  projectId: string;
226
+ tenantId: string;
225
227
  subAgentId: string;
226
- agentId: string;
227
- headers: Record<string, string> | null;
228
228
  externalAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,9 +11,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- tenantId: string;
15
- projectId: string;
16
14
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -46,9 +46,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
50
- projectId: string;
51
49
  agentId: string;
50
+ projectId: string;
51
+ tenantId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -59,9 +59,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- tenantId: string;
63
- projectId: string;
64
62
  agentId: string;
63
+ projectId: string;
64
+ tenantId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -128,9 +128,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
128
128
  id: string;
129
129
  createdAt: string;
130
130
  updatedAt: string;
131
- tenantId: string;
132
- projectId: string;
133
131
  agentId: string;
132
+ projectId: string;
133
+ tenantId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -147,9 +147,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
- tenantId: string;
151
- projectId: string;
152
150
  agentId: string;
151
+ projectId: string;
152
+ tenantId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -161,9 +161,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
161
161
  id: string;
162
162
  createdAt: string;
163
163
  updatedAt: string;
164
- tenantId: string;
165
- projectId: string;
166
164
  agentId: string;
165
+ projectId: string;
166
+ tenantId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -206,16 +206,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- tenantId: string;
210
- projectId: string;
211
- subAgentId: string;
209
+ headers: Record<string, string> | null;
212
210
  agentId: string;
211
+ projectId: string;
212
+ tenantId: string;
213
213
  toolId: string;
214
- headers: Record<string, string> | null;
214
+ subAgentId: string;
215
+ selectedTools: string[] | null;
215
216
  toolPolicies: Record<string, {
216
217
  needsApproval?: boolean;
217
218
  }> | null;
218
- selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -250,16 +250,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- tenantId: string;
254
- projectId: string;
255
- subAgentId: string;
253
+ headers: Record<string, string> | null;
256
254
  agentId: string;
255
+ projectId: string;
256
+ tenantId: string;
257
257
  toolId: string;
258
- headers: Record<string, string> | null;
258
+ subAgentId: string;
259
+ selectedTools: string[] | null;
259
260
  toolPolicies: Record<string, {
260
261
  needsApproval?: boolean;
261
262
  }> | null;
262
- selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -11,11 +11,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- tenantId: string;
14
+ headers: Record<string, string> | null;
15
+ agentId: string;
15
16
  projectId: string;
17
+ tenantId: string;
16
18
  subAgentId: string;
17
- agentId: string;
18
- headers: Record<string, string> | null;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,11 +46,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
49
+ headers: Record<string, string> | null;
50
+ agentId: string;
50
51
  projectId: string;
52
+ tenantId: string;
51
53
  subAgentId: string;
52
- agentId: string;
53
- headers: Record<string, string> | null;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,11 +59,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- tenantId: string;
62
+ headers: Record<string, string> | null;
63
+ agentId: string;
63
64
  projectId: string;
65
+ tenantId: string;
64
66
  subAgentId: string;
65
- agentId: string;
66
- headers: Record<string, string> | null;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -212,11 +212,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
212
212
  id: string;
213
213
  createdAt: string;
214
214
  updatedAt: string;
215
- tenantId: string;
215
+ headers: Record<string, string> | null;
216
+ agentId: string;
216
217
  projectId: string;
218
+ tenantId: string;
217
219
  subAgentId: string;
218
- agentId: string;
219
- headers: Record<string, string> | null;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -229,11 +229,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- tenantId: string;
232
+ headers: Record<string, string> | null;
233
+ agentId: string;
233
234
  projectId: string;
235
+ tenantId: string;
234
236
  subAgentId: string;
235
- agentId: string;
236
- headers: Record<string, string> | null;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -250,11 +250,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- tenantId: string;
253
+ headers: Record<string, string> | null;
254
+ agentId: string;
254
255
  projectId: string;
256
+ tenantId: string;
255
257
  subAgentId: string;
256
- agentId: string;
257
- headers: Record<string, string> | null;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -13,8 +13,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  description: string | null;
16
- tenantId: string;
16
+ agentId: string;
17
17
  projectId: string;
18
+ tenantId: string;
18
19
  models: {
19
20
  base?: {
20
21
  model?: string | undefined;
@@ -33,7 +34,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
34
  stopWhen: {
34
35
  stepCountIs?: number | undefined;
35
36
  } | null;
36
- agentId: string;
37
37
  conversationHistoryConfig: ConversationHistoryConfig | null;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -44,8 +44,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
46
  description: string | null;
47
- tenantId: string;
47
+ agentId: string;
48
48
  projectId: string;
49
+ tenantId: string;
49
50
  models: {
50
51
  base?: {
51
52
  model?: string | undefined;
@@ -64,7 +65,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
64
65
  stopWhen: {
65
66
  stepCountIs?: number | undefined;
66
67
  } | null;
67
- agentId: string;
68
68
  conversationHistoryConfig: ConversationHistoryConfig | null;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -113,8 +113,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
113
113
  createdAt: string;
114
114
  updatedAt: string;
115
115
  description: string | null;
116
- tenantId: string;
116
+ agentId: string;
117
117
  projectId: string;
118
+ tenantId: string;
118
119
  models: {
119
120
  base?: {
120
121
  model?: string | undefined;
@@ -133,7 +134,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
133
134
  stopWhen: {
134
135
  stepCountIs?: number | undefined;
135
136
  } | null;
136
- agentId: string;
137
137
  conversationHistoryConfig: ConversationHistoryConfig | null;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -17,9 +17,9 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
17
17
  createdAt: string;
18
18
  updatedAt: string;
19
19
  description: string | null;
20
- tenantId: string;
21
- projectId: string;
22
20
  headers: Record<string, string> | null;
21
+ projectId: string;
22
+ tenantId: string;
23
23
  config: {
24
24
  type: "mcp";
25
25
  mcp: ToolMcpConfig;
@@ -73,9 +73,9 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
73
73
  createdAt: string;
74
74
  updatedAt: string;
75
75
  description: string | null;
76
- tenantId: string;
77
- projectId: string;
78
76
  headers: Record<string, string> | null;
77
+ projectId: string;
78
+ tenantId: string;
79
79
  config: {
80
80
  type: "mcp";
81
81
  mcp: ToolMcpConfig;
@@ -126,16 +126,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
126
126
  id: string;
127
127
  createdAt: string;
128
128
  updatedAt: string;
129
- tenantId: string;
130
- projectId: string;
131
- subAgentId: string;
129
+ headers: Record<string, string> | null;
132
130
  agentId: string;
131
+ projectId: string;
132
+ tenantId: string;
133
133
  toolId: string;
134
- headers: Record<string, string> | null;
134
+ subAgentId: string;
135
+ selectedTools: string[] | null;
135
136
  toolPolicies: Record<string, {
136
137
  needsApproval?: boolean;
137
138
  }> | null;
138
- selectedTools: string[] | null;
139
139
  }>;
140
140
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -145,16 +145,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
145
145
  id: string;
146
146
  createdAt: string;
147
147
  updatedAt: string;
148
- tenantId: string;
149
- projectId: string;
150
- subAgentId: string;
148
+ headers: Record<string, string> | null;
151
149
  agentId: string;
150
+ projectId: string;
151
+ tenantId: string;
152
152
  toolId: string;
153
- headers: Record<string, string> | null;
153
+ subAgentId: string;
154
+ selectedTools: string[] | null;
154
155
  toolPolicies: Record<string, {
155
156
  needsApproval?: boolean;
156
157
  }> | null;
157
- selectedTools: string[] | null;
158
158
  }>;
159
159
  /**
160
160
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -173,16 +173,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
173
173
  id: string;
174
174
  createdAt: string;
175
175
  updatedAt: string;
176
- tenantId: string;
177
- projectId: string;
178
- subAgentId: string;
176
+ headers: Record<string, string> | null;
179
177
  agentId: string;
178
+ projectId: string;
179
+ tenantId: string;
180
180
  toolId: string;
181
- headers: Record<string, string> | null;
181
+ subAgentId: string;
182
+ selectedTools: string[] | null;
182
183
  toolPolicies: Record<string, {
183
184
  needsApproval?: boolean;
184
185
  }> | null;
185
- selectedTools: string[] | null;
186
186
  }>;
187
187
  /**
188
188
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -195,9 +195,9 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
195
195
  createdAt: string;
196
196
  updatedAt: string;
197
197
  description: string | null;
198
- tenantId: string;
199
- projectId: string;
200
198
  headers: Record<string, string> | null;
199
+ projectId: string;
200
+ tenantId: string;
201
201
  config: {
202
202
  type: "mcp";
203
203
  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" | "header" | "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;
@@ -12,9 +12,9 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  expiresAt: string | null;
15
- tenantId: string;
16
- projectId: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  publicId: string;
19
19
  keyHash: string;
20
20
  keyPrefix: string;
@@ -26,9 +26,9 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
28
  expiresAt: string | null;
29
- tenantId: string;
30
- projectId: string;
31
29
  agentId: string;
30
+ projectId: string;
31
+ tenantId: string;
32
32
  publicId: string;
33
33
  keyHash: string;
34
34
  keyPrefix: string;
@@ -43,9 +43,9 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
43
43
  createdAt: string;
44
44
  updatedAt: string;
45
45
  expiresAt: string | null;
46
- tenantId: string;
47
- projectId: string;
48
46
  agentId: string;
47
+ projectId: string;
48
+ tenantId: string;
49
49
  publicId: string;
50
50
  keyHash: string;
51
51
  keyPrefix: string;
@@ -70,9 +70,9 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  expiresAt: string | null;
73
- tenantId: string;
74
- projectId: string;
75
73
  agentId: string;
74
+ projectId: string;
75
+ tenantId: string;
76
76
  publicId: string;
77
77
  keyHash: string;
78
78
  keyPrefix: string;
@@ -19,16 +19,16 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
19
19
  createdAt: string;
20
20
  updatedAt: string;
21
21
  ref: {
22
- type: "commit" | "tag" | "branch";
22
+ type: "tag" | "commit" | "branch";
23
23
  name: string;
24
24
  hash: string;
25
25
  } | null;
26
26
  userId: string | null;
27
27
  metadata: ConversationMetadata | null;
28
- title: string | null;
29
- tenantId: string;
30
- projectId: string;
31
28
  agentId: string | null;
29
+ projectId: string;
30
+ tenantId: string;
31
+ title: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
43
43
  agentId: string | null;
44
44
  activeSubAgentId: string;
45
45
  ref: {
46
- type: "commit" | "tag" | "branch";
46
+ type: "tag" | "commit" | "branch";
47
47
  name: string;
48
48
  hash: string;
49
49
  } | null;
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
69
69
  agentId: string | null;
70
70
  activeSubAgentId: string;
71
71
  ref: {
72
- type: "commit" | "tag" | "branch";
72
+ type: "tag" | "commit" | "branch";
73
73
  name: string;
74
74
  hash: string;
75
75
  } | null;
@@ -88,16 +88,16 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
88
88
  createdAt: string;
89
89
  updatedAt: string;
90
90
  ref: {
91
- type: "commit" | "tag" | "branch";
91
+ type: "tag" | "commit" | "branch";
92
92
  name: string;
93
93
  hash: string;
94
94
  } | null;
95
95
  userId: string | null;
96
96
  metadata: ConversationMetadata | null;
97
- title: string | null;
98
- tenantId: string;
99
- projectId: string;
100
97
  agentId: string | null;
98
+ projectId: string;
99
+ tenantId: string;
100
+ title: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
107
107
  tenantId: string;
108
108
  id: string;
109
109
  ref: {
110
- type: "commit" | "tag" | "branch";
110
+ type: "tag" | "commit" | "branch";
111
111
  name: string;
112
112
  hash: string;
113
113
  };
@@ -124,16 +124,16 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
124
124
  createdAt: string;
125
125
  updatedAt: string;
126
126
  ref: {
127
- type: "commit" | "tag" | "branch";
127
+ type: "tag" | "commit" | "branch";
128
128
  name: string;
129
129
  hash: string;
130
130
  } | null;
131
131
  userId: string | null;
132
132
  metadata: ConversationMetadata | null;
133
- title: string | null;
134
- tenantId: string;
135
- projectId: string;
136
133
  agentId: string | null;
134
+ projectId: string;
135
+ tenantId: string;
136
+ title: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -156,16 +156,16 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
156
156
  createdAt: string;
157
157
  updatedAt: string;
158
158
  ref: {
159
- type: "commit" | "tag" | "branch";
159
+ type: "tag" | "commit" | "branch";
160
160
  name: string;
161
161
  hash: string;
162
162
  } | null;
163
163
  userId: string | null;
164
164
  metadata: ConversationMetadata | null;
165
- title: string | null;
166
- tenantId: string;
167
- projectId: string;
168
165
  agentId: string | null;
166
+ projectId: string;
167
+ tenantId: string;
168
+ title: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -14,21 +14,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
14
14
  updatedAt: string;
15
15
  metadata: MessageMetadata | null;
16
16
  role: string;
17
- content: MessageContent;
18
- tenantId: string;
19
17
  projectId: string;
18
+ tenantId: string;
19
+ content: MessageContent;
20
+ conversationId: string;
20
21
  fromSubAgentId: string | null;
21
22
  toSubAgentId: string | null;
22
23
  fromExternalAgentId: string | null;
23
24
  toExternalAgentId: string | null;
24
- taskId: string | null;
25
- a2aTaskId: string | null;
26
- conversationId: string;
27
25
  fromTeamAgentId: string | null;
28
26
  toTeamAgentId: string | null;
29
27
  visibility: string;
30
28
  messageType: string;
29
+ taskId: string | null;
31
30
  parentMessageId: string | null;
31
+ a2aTaskId: string | null;
32
32
  a2aSessionId: string | null;
33
33
  } | undefined>;
34
34
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -145,21 +145,21 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
145
145
  updatedAt: string;
146
146
  metadata: MessageMetadata | null;
147
147
  role: string;
148
- content: MessageContent;
149
- tenantId: string;
150
148
  projectId: string;
149
+ tenantId: string;
150
+ content: MessageContent;
151
+ conversationId: string;
151
152
  fromSubAgentId: string | null;
152
153
  toSubAgentId: string | null;
153
154
  fromExternalAgentId: string | null;
154
155
  toExternalAgentId: string | null;
155
- taskId: string | null;
156
- a2aTaskId: string | null;
157
- conversationId: string;
158
156
  fromTeamAgentId: string | null;
159
157
  toTeamAgentId: string | null;
160
158
  visibility: string;
161
159
  messageType: string;
160
+ taskId: string | null;
162
161
  parentMessageId: string | null;
162
+ a2aTaskId: string | null;
163
163
  a2aSessionId: string | null;
164
164
  }>;
165
165
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -198,21 +198,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
198
198
  updatedAt: string;
199
199
  metadata: MessageMetadata | null;
200
200
  role: string;
201
- content: MessageContent;
202
- tenantId: string;
203
201
  projectId: string;
202
+ tenantId: string;
203
+ content: MessageContent;
204
+ conversationId: string;
204
205
  fromSubAgentId: string | null;
205
206
  toSubAgentId: string | null;
206
207
  fromExternalAgentId: string | null;
207
208
  toExternalAgentId: string | null;
208
- taskId: string | null;
209
- a2aTaskId: string | null;
210
- conversationId: string;
211
209
  fromTeamAgentId: string | null;
212
210
  toTeamAgentId: string | null;
213
211
  visibility: string;
214
212
  messageType: string;
213
+ taskId: string | null;
215
214
  parentMessageId: string | null;
215
+ a2aTaskId: string | null;
216
216
  a2aSessionId: string | null;
217
217
  }>;
218
218
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {