@inkeep/agents-core 0.64.7 → 0.64.8

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 (28) hide show
  1. package/dist/auth/auth-schema.d.ts +108 -108
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/data-access/manage/agents.d.ts +42 -42
  5. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  6. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  7. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +12 -12
  9. package/dist/data-access/manage/skills.d.ts +9 -9
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  11. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  13. package/dist/data-access/manage/subAgents.d.ts +18 -18
  14. package/dist/data-access/manage/tools.d.ts +24 -24
  15. package/dist/data-access/manage/triggers.d.ts +2 -2
  16. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  17. package/dist/data-access/runtime/apps.d.ts +12 -12
  18. package/dist/data-access/runtime/conversations.d.ts +24 -24
  19. package/dist/data-access/runtime/messages.d.ts +21 -21
  20. package/dist/data-access/runtime/tasks.d.ts +5 -5
  21. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  22. package/dist/db/manage/manage-schema.d.ts +449 -449
  23. package/dist/db/runtime/runtime-schema.d.ts +354 -354
  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 +35 -35
  27. package/dist/validation/schemas.d.ts +2028 -2028
  28. 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
- tenantId: string;
16
- projectId: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: 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
- tenantId: string;
51
- projectId: string;
52
50
  agentId: string;
51
+ projectId: string;
52
+ tenantId: 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
- tenantId: string;
64
- projectId: string;
65
63
  agentId: string;
64
+ projectId: string;
65
+ tenantId: 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
- tenantId: string;
133
- projectId: string;
134
132
  agentId: string;
133
+ projectId: string;
134
+ tenantId: 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
- tenantId: string;
152
- projectId: string;
153
151
  agentId: string;
152
+ projectId: string;
153
+ tenantId: 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
- tenantId: string;
166
- projectId: string;
167
165
  agentId: string;
166
+ projectId: string;
167
+ tenantId: 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
- tenantId: string;
211
- projectId: string;
210
+ headers: Record<string, string> | null;
212
211
  agentId: string;
212
+ projectId: string;
213
+ tenantId: string;
214
+ subAgentId: string;
213
215
  toolId: string;
214
- headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
215
217
  toolPolicies: Record<string, {
216
218
  needsApproval?: boolean;
217
219
  }> | null;
218
- subAgentId: string;
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
- tenantId: string;
255
- projectId: string;
254
+ headers: Record<string, string> | null;
256
255
  agentId: string;
256
+ projectId: string;
257
+ tenantId: string;
258
+ subAgentId: string;
257
259
  toolId: string;
258
- headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
259
261
  toolPolicies: Record<string, {
260
262
  needsApproval?: boolean;
261
263
  }> | null;
262
- subAgentId: string;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -12,10 +12,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
- agentId: string;
18
15
  headers: Record<string, string> | null;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -47,10 +47,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
- agentId: string;
53
50
  headers: Record<string, string> | null;
51
+ agentId: string;
52
+ projectId: string;
53
+ tenantId: string;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -60,10 +60,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
- agentId: string;
66
63
  headers: Record<string, string> | null;
64
+ agentId: string;
65
+ projectId: string;
66
+ tenantId: string;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -225,10 +225,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- tenantId: string;
229
- projectId: string;
230
- agentId: string;
231
228
  headers: Record<string, string> | null;
229
+ agentId: string;
230
+ projectId: string;
231
+ tenantId: string;
232
232
  subAgentId: string;
233
233
  targetAgentId: string;
234
234
  }>;
@@ -242,10 +242,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
242
242
  id: string;
243
243
  createdAt: string;
244
244
  updatedAt: string;
245
- tenantId: string;
246
- projectId: string;
247
- agentId: string;
248
245
  headers: Record<string, string> | null;
246
+ agentId: string;
247
+ projectId: string;
248
+ tenantId: string;
249
249
  subAgentId: string;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
@@ -263,10 +263,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
263
263
  id: string;
264
264
  createdAt: string;
265
265
  updatedAt: string;
266
- tenantId: string;
267
- projectId: string;
268
- agentId: string;
269
266
  headers: Record<string, string> | null;
267
+ agentId: string;
268
+ projectId: string;
269
+ tenantId: string;
270
270
  subAgentId: string;
271
271
  targetAgentId: string;
272
272
  }>;
@@ -11,7 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
14
16
  description: string | null;
17
+ agentId: string;
18
+ projectId: string;
19
+ tenantId: string;
15
20
  models: {
16
21
  base?: {
17
22
  model?: string | undefined;
@@ -32,15 +37,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
32
37
  allowedProviders?: string[] | undefined;
33
38
  } | undefined;
34
39
  } | null;
40
+ prompt: string | null;
35
41
  stopWhen: {
36
42
  stepCountIs?: number | undefined;
37
43
  } | null;
38
- createdAt: string;
39
- updatedAt: string;
40
- tenantId: string;
41
- projectId: string;
42
- prompt: string | null;
43
- agentId: string;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -48,7 +48,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
48
48
  }) => Promise<{
49
49
  id: string;
50
50
  name: string;
51
+ createdAt: string;
52
+ updatedAt: string;
51
53
  description: string | null;
54
+ agentId: string;
55
+ projectId: string;
56
+ tenantId: string;
52
57
  models: {
53
58
  base?: {
54
59
  model?: string | undefined;
@@ -69,15 +74,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
69
74
  allowedProviders?: string[] | undefined;
70
75
  } | undefined;
71
76
  } | null;
77
+ prompt: string | null;
72
78
  stopWhen: {
73
79
  stepCountIs?: number | undefined;
74
80
  } | null;
75
- createdAt: string;
76
- updatedAt: string;
77
- tenantId: string;
78
- projectId: string;
79
- prompt: string | null;
80
- agentId: string;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -129,7 +129,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
130
  id: string;
131
131
  name: string;
132
+ createdAt: string;
133
+ updatedAt: string;
132
134
  description: string | null;
135
+ agentId: string;
136
+ projectId: string;
137
+ tenantId: string;
133
138
  models: {
134
139
  base?: {
135
140
  model?: string | undefined;
@@ -150,15 +155,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
150
155
  allowedProviders?: string[] | undefined;
151
156
  } | undefined;
152
157
  } | null;
158
+ prompt: string | null;
153
159
  stopWhen: {
154
160
  stepCountIs?: number | undefined;
155
161
  } | null;
156
- createdAt: string;
157
- updatedAt: string;
158
- tenantId: string;
159
- projectId: string;
160
- prompt: string | null;
161
- agentId: string;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -22,12 +22,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  }) => Promise<{
23
23
  id: string;
24
24
  name: string;
25
- description: string | null;
26
25
  createdAt: string;
27
26
  updatedAt: string;
28
- tenantId: string;
29
- projectId: string;
27
+ description: string | null;
30
28
  headers: Record<string, string> | null;
29
+ projectId: string;
30
+ tenantId: string;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -80,12 +80,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
82
  name: string;
83
- description: string | null;
84
83
  createdAt: string;
85
84
  updatedAt: string;
86
- tenantId: string;
87
- projectId: string;
85
+ description: string | null;
88
86
  headers: Record<string, string> | null;
87
+ projectId: string;
88
+ tenantId: string;
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
- tenantId: string;
142
- projectId: string;
141
+ headers: Record<string, string> | null;
143
142
  agentId: string;
143
+ projectId: string;
144
+ tenantId: string;
145
+ subAgentId: string;
144
146
  toolId: string;
145
- headers: Record<string, string> | null;
147
+ selectedTools: string[] | null;
146
148
  toolPolicies: Record<string, {
147
149
  needsApproval?: boolean;
148
150
  }> | null;
149
- subAgentId: string;
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
- tenantId: string;
161
- projectId: string;
160
+ headers: Record<string, string> | null;
162
161
  agentId: string;
162
+ projectId: string;
163
+ tenantId: string;
164
+ subAgentId: string;
163
165
  toolId: string;
164
- headers: Record<string, string> | null;
166
+ selectedTools: string[] | null;
165
167
  toolPolicies: Record<string, {
166
168
  needsApproval?: boolean;
167
169
  }> | 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)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- tenantId: string;
189
- projectId: string;
188
+ headers: Record<string, string> | null;
190
189
  agentId: string;
190
+ projectId: string;
191
+ tenantId: string;
192
+ subAgentId: string;
191
193
  toolId: string;
192
- headers: Record<string, string> | null;
194
+ selectedTools: string[] | null;
193
195
  toolPolicies: Record<string, {
194
196
  needsApproval?: boolean;
195
197
  }> | 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)
@@ -204,12 +204,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  }) => Promise<{
205
205
  id: string;
206
206
  name: string;
207
- description: string | null;
208
207
  createdAt: string;
209
208
  updatedAt: string;
210
- tenantId: string;
211
- projectId: string;
209
+ description: string | null;
212
210
  headers: Record<string, string> | null;
211
+ projectId: string;
212
+ tenantId: string;
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" | "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,10 +12,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
12
12
  name: string | null;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
- agentId: string;
18
15
  expiresAt: string | null;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
@@ -26,10 +26,10 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
26
26
  name: string | null;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
- tenantId: string;
30
- projectId: string;
31
- agentId: string;
32
29
  expiresAt: string | null;
30
+ agentId: string;
31
+ projectId: string;
32
+ tenantId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -43,10 +43,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
43
43
  name: string | null;
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
- tenantId: string;
47
- projectId: string;
48
- agentId: string;
49
46
  expiresAt: string | null;
47
+ agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -70,10 +70,10 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
70
70
  name: string | null;
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
- tenantId: string;
74
- projectId: string;
75
- agentId: string;
76
73
  expiresAt: string | null;
74
+ agentId: string;
75
+ projectId: string;
76
+ tenantId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -6,15 +6,18 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  type: AppType;
9
+ enabled: boolean;
9
10
  id: string;
10
11
  name: string;
11
- description: string | null;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- tenantId: string | null;
14
+ description: string | null;
15
15
  projectId: string | null;
16
- enabled: boolean;
16
+ tenantId: string | null;
17
17
  prompt: string | null;
18
+ lastUsedAt: string | null;
19
+ defaultProjectId: string | null;
20
+ defaultAgentId: string | null;
18
21
  config: {
19
22
  type: "web_client";
20
23
  webClient: {
@@ -32,9 +35,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
32
35
  type: "api";
33
36
  api: Record<string, never>;
34
37
  };
35
- lastUsedAt: string | null;
36
- defaultProjectId: string | null;
37
- defaultAgentId: string | null;
38
38
  } | undefined>;
39
39
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
40
40
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -62,15 +62,18 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
64
  type: AppType;
65
+ enabled: boolean;
65
66
  id: string;
66
67
  name: string;
67
- description: string | null;
68
68
  createdAt: string;
69
69
  updatedAt: string;
70
- tenantId: string | null;
70
+ description: string | null;
71
71
  projectId: string | null;
72
- enabled: boolean;
72
+ tenantId: string | null;
73
73
  prompt: string | null;
74
+ lastUsedAt: string | null;
75
+ defaultProjectId: string | null;
76
+ defaultAgentId: string | null;
74
77
  config: {
75
78
  type: "web_client";
76
79
  webClient: {
@@ -88,9 +91,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
88
91
  type: "api";
89
92
  api: Record<string, never>;
90
93
  };
91
- lastUsedAt: string | null;
92
- defaultProjectId: string | null;
93
- defaultAgentId: string | null;
94
94
  }>;
95
95
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
96
96
  scopes: TenantScopeConfig;
@@ -16,19 +16,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
18
  id: string;
19
+ createdAt: string;
20
+ updatedAt: string;
19
21
  ref: {
20
22
  type: "commit" | "tag" | "branch";
21
23
  name: string;
22
24
  hash: string;
23
25
  } | null;
24
- title: string | null;
25
- createdAt: string;
26
- updatedAt: string;
27
- tenantId: string;
28
- projectId: string;
26
+ userId: string | null;
29
27
  metadata: ConversationMetadata | null;
30
28
  agentId: string | null;
31
- userId: string | null;
29
+ projectId: string;
30
+ tenantId: string;
31
+ title: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -85,19 +85,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
87
  id: string;
88
+ createdAt: string;
89
+ updatedAt: string;
88
90
  ref: {
89
91
  type: "commit" | "tag" | "branch";
90
92
  name: string;
91
93
  hash: string;
92
94
  } | null;
93
- title: string | null;
94
- createdAt: string;
95
- updatedAt: string;
96
- tenantId: string;
97
- projectId: string;
95
+ userId: string | null;
98
96
  metadata: ConversationMetadata | null;
99
97
  agentId: string | null;
100
- userId: string | null;
98
+ projectId: string;
99
+ tenantId: string;
100
+ title: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -121,19 +121,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
123
  id: string;
124
+ createdAt: string;
125
+ updatedAt: string;
124
126
  ref: {
125
127
  type: "commit" | "tag" | "branch";
126
128
  name: string;
127
129
  hash: string;
128
130
  } | null;
129
- title: string | null;
130
- createdAt: string;
131
- updatedAt: string;
132
- tenantId: string;
133
- projectId: string;
131
+ userId: string | null;
134
132
  metadata: ConversationMetadata | null;
135
133
  agentId: string | null;
136
- userId: string | null;
134
+ projectId: string;
135
+ tenantId: string;
136
+ title: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -153,19 +153,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
155
  id: string;
156
+ createdAt: string;
157
+ updatedAt: string;
156
158
  ref: {
157
159
  type: "commit" | "tag" | "branch";
158
160
  name: string;
159
161
  hash: string;
160
162
  } | null;
161
- title: string | null;
162
- createdAt: string;
163
- updatedAt: string;
164
- tenantId: string;
165
- projectId: string;
163
+ userId: string | null;
166
164
  metadata: ConversationMetadata | null;
167
165
  agentId: string | null;
168
- userId: string | null;
166
+ projectId: string;
167
+ tenantId: string;
168
+ title: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;