@inkeep/agents-core 0.58.0 → 0.58.2

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 (34) hide show
  1. package/dist/auth/auth.d.ts +28 -28
  2. package/dist/auth/permissions.d.ts +13 -13
  3. package/dist/client-exports.d.ts +2 -2
  4. package/dist/constants/allowed-image-formats.d.ts +8 -0
  5. package/dist/constants/allowed-image-formats.js +38 -0
  6. package/dist/constants/models.d.ts +2 -0
  7. package/dist/constants/models.js +2 -0
  8. package/dist/constants/otel-attributes.d.ts +1 -0
  9. package/dist/constants/otel-attributes.js +1 -0
  10. package/dist/data-access/manage/agents.d.ts +16 -16
  11. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  12. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  13. package/dist/data-access/manage/functionTools.d.ts +4 -4
  14. package/dist/data-access/manage/skills.d.ts +10 -10
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  16. package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  18. package/dist/data-access/manage/subAgents.d.ts +12 -12
  19. package/dist/data-access/manage/tools.d.ts +12 -12
  20. package/dist/data-access/manage/triggers.d.ts +2 -2
  21. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  22. package/dist/data-access/runtime/conversations.d.ts +12 -12
  23. package/dist/data-access/runtime/messages.d.ts +6 -6
  24. package/dist/data-access/runtime/tasks.d.ts +3 -3
  25. package/dist/db/manage/manage-schema.d.ts +361 -361
  26. package/dist/db/utils.js +4 -0
  27. package/dist/dolt/migrate-all-branches.js +4 -1
  28. package/dist/dolt/migrate-dolt.js +20 -3
  29. package/dist/middleware/authz-meta.d.ts +2 -2
  30. package/dist/middleware/create-protected-route.d.ts +2 -2
  31. package/dist/middleware/no-auth.d.ts +2 -2
  32. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  33. package/dist/validation/schemas.d.ts +1843 -1843
  34. package/package.json +5 -1
@@ -9,15 +9,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- headers: Record<string, string> | null;
13
12
  id: string;
14
13
  createdAt: string;
15
14
  updatedAt: string;
16
15
  tenantId: string;
17
16
  projectId: string;
17
+ subAgentId: string;
18
18
  agentId: string;
19
+ headers: Record<string, string> | null;
19
20
  externalAgentId: string;
20
- subAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -44,28 +44,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- headers: Record<string, string> | null;
48
47
  id: string;
49
48
  createdAt: string;
50
49
  updatedAt: string;
51
50
  tenantId: string;
52
51
  projectId: string;
52
+ subAgentId: string;
53
53
  agentId: string;
54
+ headers: Record<string, string> | null;
54
55
  externalAgentId: string;
55
- subAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- headers: Record<string, string> | null;
61
60
  id: string;
62
61
  createdAt: string;
63
62
  updatedAt: string;
64
63
  tenantId: string;
65
64
  projectId: string;
65
+ subAgentId: string;
66
66
  agentId: string;
67
+ headers: Record<string, string> | null;
67
68
  externalAgentId: string;
68
- subAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -180,15 +180,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
180
180
  headers?: Record<string, string> | null;
181
181
  };
182
182
  }) => Promise<{
183
- headers: Record<string, string> | null;
184
183
  id: string;
185
184
  createdAt: string;
186
185
  updatedAt: string;
187
186
  tenantId: string;
188
187
  projectId: string;
188
+ subAgentId: string;
189
189
  agentId: string;
190
+ headers: Record<string, string> | null;
190
191
  externalAgentId: string;
191
- subAgentId: string;
192
192
  }>;
193
193
  /**
194
194
  * Check if sub-agent external agent relation exists by params
@@ -197,15 +197,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
197
197
  scopes: SubAgentScopeConfig;
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
- headers: Record<string, string> | null;
201
200
  id: string;
202
201
  createdAt: string;
203
202
  updatedAt: string;
204
203
  tenantId: string;
205
204
  projectId: string;
205
+ subAgentId: string;
206
206
  agentId: string;
207
+ headers: Record<string, string> | null;
207
208
  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)
@@ -218,15 +218,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
218
218
  headers?: Record<string, string> | null;
219
219
  };
220
220
  }) => Promise<{
221
- headers: Record<string, string> | null;
222
221
  id: string;
223
222
  createdAt: string;
224
223
  updatedAt: string;
225
224
  tenantId: string;
226
225
  projectId: string;
226
+ subAgentId: string;
227
227
  agentId: string;
228
+ headers: Record<string, string> | null;
228
229
  externalAgentId: string;
229
- subAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
232
232
  scopes: SubAgentScopeConfig;
@@ -204,18 +204,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- headers: Record<string, string> | null;
208
207
  id: string;
209
208
  createdAt: string;
210
209
  updatedAt: string;
211
210
  tenantId: string;
212
211
  projectId: string;
212
+ subAgentId: string;
213
213
  agentId: string;
214
214
  toolId: string;
215
+ headers: Record<string, string> | null;
215
216
  toolPolicies: Record<string, {
216
217
  needsApproval?: boolean;
217
218
  }> | null;
218
- subAgentId: string;
219
219
  selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -248,18 +248,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- headers: Record<string, string> | null;
252
251
  id: string;
253
252
  createdAt: string;
254
253
  updatedAt: string;
255
254
  tenantId: string;
256
255
  projectId: string;
256
+ subAgentId: string;
257
257
  agentId: string;
258
258
  toolId: string;
259
+ headers: Record<string, string> | null;
259
260
  toolPolicies: Record<string, {
260
261
  needsApproval?: boolean;
261
262
  }> | null;
262
- subAgentId: string;
263
263
  selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- headers: Record<string, string> | null;
13
12
  id: string;
14
13
  createdAt: string;
15
14
  updatedAt: string;
16
15
  tenantId: string;
17
16
  projectId: string;
18
- agentId: 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: {
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- headers: Record<string, string> | null;
48
47
  id: string;
49
48
  createdAt: string;
50
49
  updatedAt: string;
51
50
  tenantId: string;
52
51
  projectId: string;
53
- agentId: 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: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- headers: Record<string, string> | null;
61
60
  id: string;
62
61
  createdAt: string;
63
62
  updatedAt: string;
64
63
  tenantId: string;
65
64
  projectId: string;
66
- agentId: 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: {
@@ -210,14 +210,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
- headers: Record<string, string> | null;
214
213
  id: string;
215
214
  createdAt: string;
216
215
  updatedAt: string;
217
216
  tenantId: string;
218
217
  projectId: string;
219
- agentId: string;
220
218
  subAgentId: string;
219
+ agentId: string;
220
+ headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -227,14 +227,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
- headers: Record<string, string> | null;
231
230
  id: string;
232
231
  createdAt: string;
233
232
  updatedAt: string;
234
233
  tenantId: string;
235
234
  projectId: string;
236
- agentId: string;
237
235
  subAgentId: string;
236
+ agentId: string;
237
+ headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -248,14 +248,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
- headers: Record<string, string> | null;
252
251
  id: string;
253
252
  createdAt: string;
254
253
  updatedAt: string;
255
254
  tenantId: string;
256
255
  projectId: string;
257
- agentId: 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: {
@@ -10,15 +10,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ name: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- name: string;
16
16
  description: string | null;
17
17
  tenantId: string;
18
18
  projectId: string;
19
- agentId: string;
20
- prompt: string | null;
21
- conversationHistoryConfig: ConversationHistoryConfig | null;
22
19
  models: {
23
20
  base?: {
24
21
  model?: string | undefined;
@@ -36,20 +33,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
36
33
  stopWhen: {
37
34
  stepCountIs?: number | undefined;
38
35
  } | null;
36
+ agentId: string;
37
+ prompt: string | null;
38
+ conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
43
  id: string;
44
+ name: string;
44
45
  createdAt: string;
45
46
  updatedAt: string;
46
- name: string;
47
47
  description: string | null;
48
48
  tenantId: string;
49
49
  projectId: string;
50
- agentId: string;
51
- prompt: string | null;
52
- conversationHistoryConfig: ConversationHistoryConfig | null;
53
50
  models: {
54
51
  base?: {
55
52
  model?: string | undefined;
@@ -67,6 +64,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
67
64
  stopWhen: {
68
65
  stepCountIs?: number | undefined;
69
66
  } | null;
67
+ agentId: string;
68
+ prompt: string | null;
69
+ conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -110,15 +110,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  id: string;
113
+ name: string;
113
114
  createdAt: string;
114
115
  updatedAt: string;
115
- name: string;
116
116
  description: string | null;
117
117
  tenantId: string;
118
118
  projectId: string;
119
- agentId: string;
120
- prompt: string | null;
121
- conversationHistoryConfig: ConversationHistoryConfig | null;
122
119
  models: {
123
120
  base?: {
124
121
  model?: string | undefined;
@@ -136,6 +133,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
136
133
  stopWhen: {
137
134
  stepCountIs?: number | undefined;
138
135
  } | null;
136
+ agentId: string;
137
+ prompt: string | null;
138
+ conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -19,14 +19,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  scopes: ProjectScopeConfig;
20
20
  toolId: string;
21
21
  }) => Promise<{
22
- headers: Record<string, string> | null;
23
22
  id: string;
23
+ name: string;
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
- name: string;
27
26
  description: string | null;
28
27
  tenantId: string;
29
28
  projectId: string;
29
+ headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
32
32
  mcp: ToolMcpConfig;
@@ -77,14 +77,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
77
77
  };
78
78
  }>;
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
- headers: Record<string, string> | null;
81
80
  id: string;
81
+ name: string;
82
82
  createdAt: string;
83
83
  updatedAt: string;
84
- name: string;
85
84
  description: string | null;
86
85
  tenantId: string;
87
86
  projectId: string;
87
+ headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
90
90
  mcp: ToolMcpConfig;
@@ -134,18 +134,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  needsApproval?: boolean;
135
135
  }> | null;
136
136
  }) => Promise<{
137
- headers: Record<string, string> | null;
138
137
  id: string;
139
138
  createdAt: string;
140
139
  updatedAt: string;
141
140
  tenantId: string;
142
141
  projectId: string;
142
+ subAgentId: string;
143
143
  agentId: string;
144
144
  toolId: string;
145
+ headers: Record<string, string> | null;
145
146
  toolPolicies: Record<string, {
146
147
  needsApproval?: boolean;
147
148
  }> | null;
148
- subAgentId: string;
149
149
  selectedTools: string[] | null;
150
150
  }>;
151
151
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -153,18 +153,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
153
153
  subAgentId: string;
154
154
  toolId: string;
155
155
  }) => Promise<{
156
- headers: Record<string, string> | null;
157
156
  id: string;
158
157
  createdAt: string;
159
158
  updatedAt: string;
160
159
  tenantId: string;
161
160
  projectId: string;
161
+ subAgentId: string;
162
162
  agentId: string;
163
163
  toolId: string;
164
+ headers: Record<string, string> | null;
164
165
  toolPolicies: Record<string, {
165
166
  needsApproval?: boolean;
166
167
  }> | null;
167
- subAgentId: string;
168
168
  selectedTools: string[] | null;
169
169
  }>;
170
170
  /**
@@ -181,18 +181,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  }> | null;
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
- headers: Record<string, string> | null;
185
184
  id: string;
186
185
  createdAt: string;
187
186
  updatedAt: string;
188
187
  tenantId: string;
189
188
  projectId: string;
189
+ subAgentId: string;
190
190
  agentId: string;
191
191
  toolId: string;
192
+ headers: Record<string, string> | null;
192
193
  toolPolicies: Record<string, {
193
194
  needsApproval?: boolean;
194
195
  }> | null;
195
- subAgentId: string;
196
196
  selectedTools: string[] | null;
197
197
  }>;
198
198
  /**
@@ -201,14 +201,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
201
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  data: ToolInsert;
203
203
  }) => Promise<{
204
- headers: Record<string, string> | null;
205
204
  id: string;
205
+ name: string;
206
206
  createdAt: string;
207
207
  updatedAt: string;
208
- name: string;
209
208
  description: string | null;
210
209
  tenantId: string;
211
210
  projectId: string;
211
+ headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
214
214
  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: "body" | "query" | "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: "body" | "header" | "literal";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -9,48 +9,48 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  id: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
+ name: string | null;
12
13
  createdAt: string;
13
14
  updatedAt: string;
14
15
  expiresAt: string | null;
15
- name: string | null;
16
16
  tenantId: string;
17
17
  projectId: string;
18
18
  agentId: string;
19
- lastUsedAt: string | null;
20
19
  publicId: string;
21
20
  keyHash: string;
22
21
  keyPrefix: string;
22
+ lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
26
+ name: string | null;
26
27
  createdAt: string;
27
28
  updatedAt: string;
28
29
  expiresAt: string | null;
29
- name: string | null;
30
30
  tenantId: string;
31
31
  projectId: string;
32
32
  agentId: string;
33
- lastUsedAt: string | null;
34
33
  publicId: string;
35
34
  keyHash: string;
36
35
  keyPrefix: string;
36
+ lastUsedAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
42
  id: string;
43
+ name: string | null;
43
44
  createdAt: string;
44
45
  updatedAt: string;
45
46
  expiresAt: string | null;
46
- name: string | null;
47
47
  tenantId: string;
48
48
  projectId: string;
49
49
  agentId: string;
50
- lastUsedAt: string | null;
51
50
  publicId: string;
52
51
  keyHash: string;
53
52
  keyPrefix: string;
53
+ lastUsedAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -67,17 +67,17 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  id: string;
70
+ name: string | null;
70
71
  createdAt: string;
71
72
  updatedAt: string;
72
73
  expiresAt: string | null;
73
- name: string | null;
74
74
  tenantId: string;
75
75
  projectId: string;
76
76
  agentId: string;
77
- lastUsedAt: string | null;
78
77
  publicId: string;
79
78
  keyHash: string;
80
79
  keyPrefix: string;
80
+ lastUsedAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -16,20 +16,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  total: number;
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
- metadata: ConversationMetadata | null;
20
19
  id: string;
21
20
  createdAt: string;
22
21
  updatedAt: string;
23
- userId: string | null;
24
22
  ref: {
25
23
  type: "commit" | "tag" | "branch";
26
24
  name: string;
27
25
  hash: string;
28
26
  } | null;
27
+ userId: string | null;
28
+ metadata: ConversationMetadata | null;
29
+ title: string | null;
29
30
  tenantId: string;
30
31
  projectId: string;
31
32
  agentId: string | null;
32
- title: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  scopes: ProjectScopeConfig;
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
- metadata: ConversationMetadata | null;
89
88
  id: string;
90
89
  createdAt: string;
91
90
  updatedAt: string;
92
- userId: string | null;
93
91
  ref: {
94
92
  type: "commit" | "tag" | "branch";
95
93
  name: string;
96
94
  hash: string;
97
95
  } | null;
96
+ userId: string | null;
97
+ metadata: ConversationMetadata | null;
98
+ title: string | null;
98
99
  tenantId: string;
99
100
  projectId: string;
100
101
  agentId: string | null;
101
- title: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  metadata?: ConversationMetadata | null | undefined;
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
- metadata: ConversationMetadata | null;
125
124
  id: string;
126
125
  createdAt: string;
127
126
  updatedAt: string;
128
- userId: string | null;
129
127
  ref: {
130
128
  type: "commit" | "tag" | "branch";
131
129
  name: string;
132
130
  hash: string;
133
131
  } | null;
132
+ userId: string | null;
133
+ metadata: ConversationMetadata | null;
134
+ title: string | null;
134
135
  tenantId: string;
135
136
  projectId: string;
136
137
  agentId: string | null;
137
- title: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -153,20 +153,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  scopes: ProjectScopeConfig;
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
- metadata: ConversationMetadata | null;
157
156
  id: string;
158
157
  createdAt: string;
159
158
  updatedAt: string;
160
- userId: string | null;
161
159
  ref: {
162
160
  type: "commit" | "tag" | "branch";
163
161
  name: string;
164
162
  hash: string;
165
163
  } | null;
164
+ userId: string | null;
165
+ metadata: ConversationMetadata | null;
166
+ title: string | null;
166
167
  tenantId: string;
167
168
  projectId: string;
168
169
  agentId: string | null;
169
- title: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -10,14 +10,14 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- metadata: MessageMetadata | null;
14
13
  id: string;
15
14
  createdAt: string;
16
15
  updatedAt: string;
16
+ metadata: MessageMetadata | null;
17
17
  role: string;
18
+ content: MessageContent;
18
19
  tenantId: string;
19
20
  projectId: string;
20
- content: MessageContent;
21
21
  fromSubAgentId: string | null;
22
22
  toSubAgentId: string | null;
23
23
  fromExternalAgentId: string | null;
@@ -141,14 +141,14 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
141
  id: string;
142
142
  }[]>;
143
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
144
- metadata: MessageMetadata | null;
145
144
  id: string;
146
145
  createdAt: string;
147
146
  updatedAt: string;
147
+ metadata: MessageMetadata | null;
148
148
  role: string;
149
+ content: MessageContent;
149
150
  tenantId: string;
150
151
  projectId: string;
151
- content: MessageContent;
152
152
  fromSubAgentId: string | null;
153
153
  toSubAgentId: string | null;
154
154
  fromExternalAgentId: string | null;
@@ -194,14 +194,14 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
194
  scopes: ProjectScopeConfig;
195
195
  messageId: string;
196
196
  }) => Promise<{
197
- metadata: MessageMetadata | null;
198
197
  id: string;
199
198
  createdAt: string;
200
199
  updatedAt: string;
200
+ metadata: MessageMetadata | null;
201
201
  role: string;
202
+ content: MessageContent;
202
203
  tenantId: string;
203
204
  projectId: string;
204
- content: MessageContent;
205
205
  fromSubAgentId: string | null;
206
206
  toSubAgentId: string | null;
207
207
  fromExternalAgentId: string | null;
@@ -6,20 +6,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
- metadata: TaskMetadataConfig | null;
10
9
  id: string;
11
10
  createdAt: string;
12
11
  updatedAt: string;
13
- status: string;
14
12
  ref: {
15
13
  type: "commit" | "tag" | "branch";
16
14
  name: string;
17
15
  hash: string;
18
16
  } | null;
17
+ metadata: TaskMetadataConfig | null;
18
+ status: string;
19
19
  tenantId: string;
20
20
  projectId: string;
21
- agentId: string;
22
21
  subAgentId: string;
22
+ agentId: string;
23
23
  contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {