@inkeep/agents-core 0.0.0-dev-20260407215434 → 0.0.0-dev-20260408005804

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 (48) hide show
  1. package/dist/auth/auth-schema.d.ts +86 -86
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/constants/index.d.ts +14 -0
  5. package/dist/constants/index.js +15 -0
  6. package/dist/constants/relation-types.d.ts +5 -0
  7. package/dist/constants/relation-types.js +6 -0
  8. package/dist/constants/session-events.d.ts +13 -0
  9. package/dist/constants/session-events.js +14 -0
  10. package/dist/constants/tool-names.d.ts +7 -0
  11. package/dist/constants/tool-names.js +8 -0
  12. package/dist/constants/workflow.d.ts +7 -0
  13. package/dist/constants/workflow.js +8 -0
  14. package/dist/data-access/manage/agents.d.ts +32 -32
  15. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  16. package/dist/data-access/manage/contextConfigs.d.ts +16 -16
  17. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  18. package/dist/data-access/manage/functionTools.d.ts +12 -12
  19. package/dist/data-access/manage/skills.d.ts +10 -10
  20. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  21. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  22. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  23. package/dist/data-access/manage/subAgents.d.ts +12 -12
  24. package/dist/data-access/manage/tools.d.ts +24 -24
  25. package/dist/data-access/manage/triggers.d.ts +2 -2
  26. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  27. package/dist/data-access/runtime/apps.d.ts +8 -8
  28. package/dist/data-access/runtime/conversations.d.ts +28 -28
  29. package/dist/data-access/runtime/feedback.d.ts +4 -4
  30. package/dist/data-access/runtime/messages.d.ts +9 -9
  31. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  32. package/dist/data-access/runtime/tasks.d.ts +6 -6
  33. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  34. package/dist/db/manage/manage-schema.d.ts +449 -449
  35. package/dist/db/runtime/runtime-schema.d.ts +403 -403
  36. package/dist/dolt/ref-scope.js +1 -1
  37. package/dist/index.d.ts +6 -2
  38. package/dist/index.js +6 -2
  39. package/dist/middleware/no-auth.d.ts +2 -2
  40. package/dist/utils/error.d.ts +51 -51
  41. package/dist/utils/index.d.ts +2 -2
  42. package/dist/utils/index.js +2 -2
  43. package/dist/utils/logger.d.ts +21 -2
  44. package/dist/utils/logger.js +62 -10
  45. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  46. package/dist/validation/schemas/skills.d.ts +36 -36
  47. package/dist/validation/schemas.d.ts +1972 -1972
  48. package/package.json +1 -1
@@ -12,10 +12,10 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
18
17
  subAgentId: string;
18
+ agentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
@@ -47,10 +47,10 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
50
  tenantId: string;
51
+ projectId: string;
53
52
  subAgentId: string;
53
+ agentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
@@ -60,10 +60,10 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
63
  tenantId: string;
64
+ projectId: string;
66
65
  subAgentId: string;
66
+ agentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
@@ -189,10 +189,10 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
189
189
  id: string;
190
190
  createdAt: string;
191
191
  updatedAt: string;
192
- agentId: string;
193
- projectId: string;
194
192
  tenantId: string;
193
+ projectId: string;
195
194
  subAgentId: string;
195
+ agentId: string;
196
196
  headers: Record<string, string> | null;
197
197
  externalAgentId: string;
198
198
  }>;
@@ -206,10 +206,10 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- agentId: string;
210
- projectId: string;
211
209
  tenantId: string;
210
+ projectId: string;
212
211
  subAgentId: string;
212
+ agentId: string;
213
213
  headers: Record<string, string> | null;
214
214
  externalAgentId: string;
215
215
  } | undefined>;
@@ -227,10 +227,10 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
227
227
  id: string;
228
228
  createdAt: string;
229
229
  updatedAt: string;
230
- agentId: string;
231
- projectId: string;
232
230
  tenantId: string;
231
+ projectId: string;
233
232
  subAgentId: string;
233
+ agentId: string;
234
234
  headers: Record<string, string> | null;
235
235
  externalAgentId: string;
236
236
  }>;
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
50
  tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
63
  tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- agentId: string;
133
- projectId: string;
134
132
  tenantId: string;
133
+ projectId: string;
134
+ agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- agentId: string;
152
- projectId: string;
153
151
  tenantId: string;
152
+ projectId: string;
153
+ agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- agentId: string;
166
- projectId: string;
167
165
  tenantId: string;
166
+ projectId: string;
167
+ agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -207,16 +207,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- agentId: string;
211
- projectId: string;
212
210
  tenantId: string;
213
- toolId: string;
211
+ projectId: string;
214
212
  subAgentId: string;
213
+ agentId: string;
215
214
  headers: Record<string, string> | null;
216
- selectedTools: string[] | null;
215
+ toolId: string;
217
216
  toolPolicies: Record<string, {
218
217
  needsApproval?: boolean;
219
218
  }> | null;
219
+ selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -251,16 +251,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- agentId: string;
255
- projectId: string;
256
254
  tenantId: string;
257
- toolId: string;
255
+ projectId: string;
258
256
  subAgentId: string;
257
+ agentId: string;
259
258
  headers: Record<string, string> | null;
260
- selectedTools: string[] | null;
259
+ toolId: string;
261
260
  toolPolicies: Record<string, {
262
261
  needsApproval?: boolean;
263
262
  }> | null;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -12,10 +12,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
18
17
  subAgentId: string;
18
+ agentId: string;
19
19
  headers: Record<string, string> | null;
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
- agentId: string;
51
- projectId: string;
52
50
  tenantId: string;
51
+ projectId: string;
53
52
  subAgentId: string;
53
+ agentId: string;
54
54
  headers: Record<string, string> | null;
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
- agentId: string;
64
- projectId: string;
65
63
  tenantId: string;
64
+ projectId: string;
66
65
  subAgentId: string;
66
+ agentId: string;
67
67
  headers: Record<string, string> | null;
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
- agentId: string;
229
- projectId: string;
230
228
  tenantId: string;
229
+ projectId: string;
231
230
  subAgentId: string;
231
+ agentId: string;
232
232
  headers: Record<string, string> | null;
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
- agentId: string;
246
- projectId: string;
247
245
  tenantId: string;
246
+ projectId: string;
248
247
  subAgentId: string;
248
+ agentId: string;
249
249
  headers: Record<string, string> | null;
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
- agentId: string;
267
- projectId: string;
268
266
  tenantId: string;
267
+ projectId: string;
269
268
  subAgentId: string;
269
+ agentId: string;
270
270
  headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
@@ -13,10 +13,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
13
13
  name: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
- agentId: string;
17
- projectId: string;
18
- tenantId: string;
19
16
  description: string | null;
17
+ tenantId: string;
18
+ projectId: string;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -37,11 +36,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
37
36
  allowedProviders?: string[] | undefined;
38
37
  } | undefined;
39
38
  } | null;
40
- prompt: string | null;
41
39
  stopWhen: {
42
40
  stepCountIs?: number | undefined;
43
41
  } | null;
42
+ prompt: string | null;
44
43
  conversationHistoryConfig: ConversationHistoryConfig | null;
44
+ agentId: string;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
@@ -50,10 +50,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
50
50
  name: string;
51
51
  createdAt: string;
52
52
  updatedAt: string;
53
- agentId: string;
54
- projectId: string;
55
- tenantId: string;
56
53
  description: string | null;
54
+ tenantId: string;
55
+ projectId: string;
57
56
  models: {
58
57
  base?: {
59
58
  model?: string | undefined;
@@ -74,11 +73,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
74
73
  allowedProviders?: string[] | undefined;
75
74
  } | undefined;
76
75
  } | null;
77
- prompt: string | null;
78
76
  stopWhen: {
79
77
  stepCountIs?: number | undefined;
80
78
  } | null;
79
+ prompt: string | null;
81
80
  conversationHistoryConfig: ConversationHistoryConfig | null;
81
+ agentId: string;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
84
84
  scopes: AgentScopeConfig;
@@ -131,10 +131,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
131
  name: string;
132
132
  createdAt: string;
133
133
  updatedAt: string;
134
- agentId: string;
135
- projectId: string;
136
- tenantId: string;
137
134
  description: string | null;
135
+ tenantId: string;
136
+ projectId: string;
138
137
  models: {
139
138
  base?: {
140
139
  model?: string | undefined;
@@ -155,11 +154,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
155
154
  allowedProviders?: string[] | undefined;
156
155
  } | undefined;
157
156
  } | null;
158
- prompt: string | null;
159
157
  stopWhen: {
160
158
  stepCountIs?: number | undefined;
161
159
  } | null;
160
+ prompt: string | null;
162
161
  conversationHistoryConfig: ConversationHistoryConfig | null;
162
+ agentId: string;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
165
165
  scopes: AgentScopeConfig;
@@ -24,16 +24,16 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
24
24
  name: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- projectId: string;
28
- tenantId: string;
29
27
  description: string | null;
30
- credentialReferenceId: string | null;
28
+ tenantId: string;
29
+ projectId: 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;
@@ -82,16 +82,16 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
82
82
  name: string;
83
83
  createdAt: string;
84
84
  updatedAt: string;
85
- projectId: string;
86
- tenantId: string;
87
85
  description: string | null;
88
- credentialReferenceId: string | null;
86
+ tenantId: string;
87
+ projectId: 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;
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- agentId: string;
142
- projectId: string;
143
141
  tenantId: string;
144
- toolId: string;
142
+ projectId: string;
145
143
  subAgentId: string;
144
+ agentId: string;
146
145
  headers: Record<string, string> | null;
147
- selectedTools: string[] | null;
146
+ toolId: string;
148
147
  toolPolicies: Record<string, {
149
148
  needsApproval?: boolean;
150
149
  }> | null;
150
+ selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- agentId: string;
161
- projectId: string;
162
160
  tenantId: string;
163
- toolId: string;
161
+ projectId: string;
164
162
  subAgentId: string;
163
+ agentId: string;
165
164
  headers: Record<string, string> | null;
166
- selectedTools: string[] | null;
165
+ toolId: string;
167
166
  toolPolicies: Record<string, {
168
167
  needsApproval?: boolean;
169
168
  }> | null;
169
+ selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- agentId: string;
189
- projectId: string;
190
188
  tenantId: string;
191
- toolId: string;
189
+ projectId: string;
192
190
  subAgentId: string;
191
+ agentId: string;
193
192
  headers: Record<string, string> | null;
194
- selectedTools: string[] | null;
193
+ toolId: string;
195
194
  toolPolicies: Record<string, {
196
195
  needsApproval?: boolean;
197
196
  }> | null;
197
+ selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -206,16 +206,16 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
206
206
  name: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- projectId: string;
210
- tenantId: string;
211
209
  description: string | null;
212
- credentialReferenceId: string | null;
210
+ tenantId: string;
211
+ projectId: 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;
@@ -37,8 +37,8 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
37
37
  authentication: unknown;
38
38
  signingSecretCredentialReferenceId: string | null;
39
39
  signatureVerification: {
40
- algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
41
- encoding: "base64" | "hex";
40
+ algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
+ encoding: "hex" | "base64";
42
42
  signature: {
43
43
  source: "query" | "header" | "body";
44
44
  key: string;
@@ -12,10 +12,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
12
12
  name: string | null;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
15
  expiresAt: string | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: 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
- agentId: string;
30
- projectId: string;
31
- tenantId: string;
32
29
  expiresAt: string | null;
30
+ tenantId: string;
31
+ projectId: string;
32
+ agentId: 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
- agentId: string;
47
- projectId: string;
48
- tenantId: string;
49
46
  expiresAt: string | null;
47
+ tenantId: string;
48
+ projectId: string;
49
+ agentId: 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
- agentId: string;
74
- projectId: string;
75
- tenantId: string;
76
73
  expiresAt: string | null;
74
+ tenantId: string;
75
+ projectId: string;
76
+ agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -9,12 +9,12 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
9
9
  name: string;
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
- projectId: string | null;
13
- tenantId: string | null;
14
- description: string | null;
15
12
  type: AppType;
16
- enabled: boolean;
13
+ description: string | null;
14
+ tenantId: string | null;
15
+ projectId: string | null;
17
16
  prompt: string | null;
17
+ enabled: boolean;
18
18
  config: {
19
19
  type: "web_client";
20
20
  webClient: {
@@ -65,12 +65,12 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
65
65
  name: string;
66
66
  createdAt: string;
67
67
  updatedAt: string;
68
- projectId: string | null;
69
- tenantId: string | null;
70
- description: string | null;
71
68
  type: AppType;
72
- enabled: boolean;
69
+ description: string | null;
70
+ tenantId: string | null;
71
+ projectId: string | null;
73
72
  prompt: string | null;
73
+ enabled: boolean;
74
74
  config: {
75
75
  type: "web_client";
76
76
  webClient: {
@@ -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
- createdAt: string;
25
- updatedAt: string;
26
- agentId: string | null;
27
- projectId: string;
28
- tenantId: string;
29
- title: string | null;
30
- metadata: ConversationMetadata | null;
31
26
  userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
+ title: string | null;
29
+ tenantId: string;
30
+ projectId: string;
31
+ agentId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -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
- createdAt: string;
94
- updatedAt: string;
95
- agentId: string | null;
96
- projectId: string;
97
- tenantId: string;
98
- title: string | null;
99
- metadata: ConversationMetadata | null;
100
95
  userId: string | null;
96
+ metadata: ConversationMetadata | null;
97
+ title: string | null;
98
+ tenantId: string;
99
+ projectId: string;
100
+ agentId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -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
- createdAt: string;
130
- updatedAt: string;
131
- agentId: string | null;
132
- projectId: string;
133
- tenantId: string;
134
- title: string | null;
135
- metadata: ConversationMetadata | null;
136
131
  userId: string | null;
132
+ metadata: ConversationMetadata | null;
133
+ title: string | null;
134
+ tenantId: string;
135
+ projectId: string;
136
+ agentId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -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
- createdAt: string;
162
- updatedAt: string;
163
- agentId: string | null;
164
- projectId: string;
165
- tenantId: string;
166
- title: string | null;
167
- metadata: ConversationMetadata | null;
168
163
  userId: string | null;
164
+ metadata: ConversationMetadata | null;
165
+ title: string | null;
166
+ tenantId: string;
167
+ projectId: string;
168
+ agentId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -61,9 +61,9 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
61
61
  id: string;
62
62
  createdAt: string;
63
63
  updatedAt: string;
64
- projectId: string;
65
- tenantId: string;
66
64
  type: "positive" | "negative";
65
+ tenantId: string;
66
+ projectId: string;
67
67
  details: string | null;
68
68
  conversationId: string;
69
69
  messageId: string | null;
@@ -90,9 +90,9 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
90
90
  id: string;
91
91
  createdAt: string;
92
92
  updatedAt: string;
93
- projectId: string;
94
- tenantId: string;
95
93
  type: "positive" | "negative";
94
+ tenantId: string;
95
+ projectId: string;
96
96
  details: string | null;
97
97
  conversationId: string;
98
98
  messageId: string | null;