@inkeep/agents-core 0.65.0 → 0.65.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 (61) 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/client-exports.d.ts +3 -3
  5. package/dist/client-exports.js +3 -3
  6. package/dist/constants/otel-attributes.d.ts +1 -0
  7. package/dist/constants/otel-attributes.js +1 -0
  8. package/dist/data-access/index.d.ts +2 -1
  9. package/dist/data-access/index.js +2 -1
  10. package/dist/data-access/manage/agents.d.ts +25 -25
  11. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  12. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  13. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  14. package/dist/data-access/manage/dataComponents.js +1 -1
  15. package/dist/data-access/manage/functionTools.d.ts +10 -10
  16. package/dist/data-access/manage/skills.d.ts +12 -12
  17. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  18. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  19. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  20. package/dist/data-access/manage/subAgents.d.ts +15 -15
  21. package/dist/data-access/manage/tools.d.ts +27 -27
  22. package/dist/data-access/manage/triggers.d.ts +2 -2
  23. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  24. package/dist/data-access/runtime/apps.d.ts +10 -10
  25. package/dist/data-access/runtime/conversations.d.ts +16 -16
  26. package/dist/data-access/runtime/feedback.d.ts +101 -0
  27. package/dist/data-access/runtime/feedback.js +83 -0
  28. package/dist/data-access/runtime/messages.d.ts +12 -12
  29. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  30. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  31. package/dist/data-access/runtime/tasks.d.ts +3 -3
  32. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  33. package/dist/db/manage/manage-client.js +15 -3
  34. package/dist/db/manage/manage-schema.d.ts +449 -449
  35. package/dist/db/runtime/runtime-client.js +7 -1
  36. package/dist/db/runtime/runtime-schema.d.ts +543 -365
  37. package/dist/db/runtime/runtime-schema.js +73 -2
  38. package/dist/dolt/merge.js +7 -9
  39. package/dist/dolt/ref-scope.js +9 -3
  40. package/dist/index.d.ts +8 -7
  41. package/dist/index.js +7 -6
  42. package/dist/types/entities.d.ts +5 -2
  43. package/dist/types/index.d.ts +2 -2
  44. package/dist/utils/error.d.ts +7 -1
  45. package/dist/utils/error.js +63 -21
  46. package/dist/utils/index.d.ts +3 -3
  47. package/dist/utils/index.js +3 -3
  48. package/dist/utils/logger.d.ts +21 -2
  49. package/dist/utils/logger.js +67 -11
  50. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  51. package/dist/validation/index.d.ts +3 -3
  52. package/dist/validation/index.js +3 -3
  53. package/dist/validation/schemas/shared.d.ts +3 -1
  54. package/dist/validation/schemas/shared.js +6 -1
  55. package/dist/validation/schemas/skills.d.ts +41 -41
  56. package/dist/validation/schemas.d.ts +2567 -2139
  57. package/dist/validation/schemas.js +29 -6
  58. package/drizzle/runtime/0034_simple_sphinx.sql +17 -0
  59. package/drizzle/runtime/meta/0034_snapshot.json +5288 -0
  60. package/drizzle/runtime/meta/_journal.json +8 -1
  61. package/package.json +1 -1
@@ -9,11 +9,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
13
+ projectId: string;
12
14
  id: string;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
17
  agentId: string;
18
18
  subAgentId: string;
19
19
  headers: Record<string, string> | null;
@@ -44,11 +44,11 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ tenantId: string;
48
+ projectId: string;
47
49
  id: string;
48
50
  createdAt: string;
49
51
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
52
  agentId: string;
53
53
  subAgentId: string;
54
54
  headers: Record<string, string> | null;
@@ -57,11 +57,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ tenantId: string;
61
+ projectId: string;
60
62
  id: string;
61
63
  createdAt: string;
62
64
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
65
  agentId: string;
66
66
  subAgentId: string;
67
67
  headers: Record<string, string> | null;
@@ -222,11 +222,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
222
222
  headers?: Record<string, string> | null;
223
223
  };
224
224
  }) => Promise<{
225
+ tenantId: string;
226
+ projectId: string;
225
227
  id: string;
226
228
  createdAt: string;
227
229
  updatedAt: string;
228
- tenantId: string;
229
- projectId: string;
230
230
  agentId: string;
231
231
  subAgentId: string;
232
232
  headers: Record<string, string> | null;
@@ -239,11 +239,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
239
239
  scopes: SubAgentScopeConfig;
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
+ tenantId: string;
243
+ projectId: string;
242
244
  id: string;
243
245
  createdAt: string;
244
246
  updatedAt: string;
245
- tenantId: string;
246
- projectId: string;
247
247
  agentId: string;
248
248
  subAgentId: string;
249
249
  headers: Record<string, string> | null;
@@ -260,11 +260,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
260
260
  headers?: Record<string, string> | null;
261
261
  };
262
262
  }) => Promise<{
263
+ tenantId: string;
264
+ projectId: string;
263
265
  id: string;
264
266
  createdAt: string;
265
267
  updatedAt: string;
266
- tenantId: string;
267
- projectId: string;
268
268
  agentId: string;
269
269
  subAgentId: string;
270
270
  headers: Record<string, string> | null;
@@ -9,8 +9,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
13
+ projectId: string;
12
14
  id: string;
13
15
  name: string;
16
+ createdAt: string;
17
+ updatedAt: string;
14
18
  description: string | null;
15
19
  models: {
16
20
  base?: {
@@ -35,19 +39,19 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
35
39
  stopWhen: {
36
40
  stepCountIs?: number | undefined;
37
41
  } | null;
38
- createdAt: string;
39
- updatedAt: string;
40
- tenantId: string;
41
- prompt: string | null;
42
- projectId: string;
43
42
  agentId: string;
43
+ prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
48
48
  }) => Promise<{
49
+ tenantId: string;
50
+ projectId: string;
49
51
  id: string;
50
52
  name: string;
53
+ createdAt: string;
54
+ updatedAt: string;
51
55
  description: string | null;
52
56
  models: {
53
57
  base?: {
@@ -72,12 +76,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
72
76
  stopWhen: {
73
77
  stepCountIs?: number | undefined;
74
78
  } | null;
75
- createdAt: string;
76
- updatedAt: string;
77
- tenantId: string;
78
- prompt: string | null;
79
- projectId: string;
80
79
  agentId: string;
80
+ prompt: string | null;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -127,8 +127,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
127
127
  };
128
128
  }>;
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
+ tenantId: string;
131
+ projectId: string;
130
132
  id: string;
131
133
  name: string;
134
+ createdAt: string;
135
+ updatedAt: string;
132
136
  description: string | null;
133
137
  models: {
134
138
  base?: {
@@ -153,12 +157,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
153
157
  stopWhen: {
154
158
  stepCountIs?: number | undefined;
155
159
  } | null;
156
- createdAt: string;
157
- updatedAt: string;
158
- tenantId: string;
159
- prompt: string | null;
160
- projectId: string;
161
160
  agentId: string;
161
+ prompt: string | null;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
+ tenantId: string;
24
+ projectId: string;
23
25
  id: string;
24
26
  name: string;
25
- description: string | null;
26
27
  createdAt: string;
27
28
  updatedAt: string;
28
- tenantId: string;
29
- projectId: string;
30
- credentialReferenceId: string | null;
29
+ description: string | null;
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;
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
+ tenantId: string;
82
+ projectId: string;
81
83
  id: string;
82
84
  name: string;
83
- description: string | null;
84
85
  createdAt: string;
85
86
  updatedAt: string;
86
- tenantId: string;
87
- projectId: string;
88
- credentialReferenceId: string | null;
87
+ description: string | null;
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;
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
+ tenantId: string;
139
+ projectId: string;
138
140
  id: string;
139
141
  createdAt: string;
140
142
  updatedAt: string;
141
- tenantId: string;
142
- projectId: string;
143
143
  agentId: string;
144
- toolId: string;
145
144
  subAgentId: string;
145
+ toolId: string;
146
146
  headers: Record<string, string> | null;
147
- selectedTools: string[] | null;
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;
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
+ tenantId: string;
158
+ projectId: string;
157
159
  id: string;
158
160
  createdAt: string;
159
161
  updatedAt: string;
160
- tenantId: string;
161
- projectId: string;
162
162
  agentId: string;
163
- toolId: string;
164
163
  subAgentId: string;
164
+ toolId: string;
165
165
  headers: Record<string, string> | null;
166
- selectedTools: string[] | null;
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)
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
+ tenantId: string;
186
+ projectId: string;
185
187
  id: string;
186
188
  createdAt: string;
187
189
  updatedAt: string;
188
- tenantId: string;
189
- projectId: string;
190
190
  agentId: string;
191
- toolId: string;
192
191
  subAgentId: string;
192
+ toolId: string;
193
193
  headers: Record<string, string> | null;
194
- selectedTools: string[] | null;
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)
@@ -202,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
+ tenantId: string;
206
+ projectId: string;
205
207
  id: string;
206
208
  name: string;
207
- description: string | null;
208
209
  createdAt: string;
209
210
  updatedAt: string;
210
- tenantId: string;
211
- projectId: string;
212
- credentialReferenceId: string | null;
211
+ description: string | null;
212
+ headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
216
216
  };
217
+ credentialReferenceId: string | null;
217
218
  credentialScope: string;
218
- headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "header" | "query" | "body";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -8,29 +8,29 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
12
14
  name: string | null;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
17
  agentId: string;
18
- lastUsedAt: string | null;
19
18
  expiresAt: string | null;
19
+ lastUsedAt: string | null;
20
20
  publicId: string;
21
21
  keyHash: string;
22
22
  keyPrefix: string;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
+ tenantId: string;
26
+ projectId: string;
25
27
  id: string;
26
28
  name: string | null;
27
29
  createdAt: string;
28
30
  updatedAt: string;
29
- tenantId: string;
30
- projectId: string;
31
31
  agentId: string;
32
- lastUsedAt: string | null;
33
32
  expiresAt: string | null;
33
+ lastUsedAt: string | null;
34
34
  publicId: string;
35
35
  keyHash: string;
36
36
  keyPrefix: string;
@@ -39,15 +39,15 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
+ tenantId: string;
43
+ projectId: string;
42
44
  id: string;
43
45
  name: string | null;
44
46
  createdAt: string;
45
47
  updatedAt: string;
46
- tenantId: string;
47
- projectId: string;
48
48
  agentId: string;
49
- lastUsedAt: string | null;
50
49
  expiresAt: string | null;
50
+ lastUsedAt: string | null;
51
51
  publicId: string;
52
52
  keyHash: string;
53
53
  keyPrefix: string;
@@ -66,15 +66,15 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
+ tenantId: string;
70
+ projectId: string;
69
71
  id: string;
70
72
  name: string | null;
71
73
  createdAt: string;
72
74
  updatedAt: string;
73
- tenantId: string;
74
- projectId: string;
75
75
  agentId: string;
76
- lastUsedAt: string | null;
77
76
  expiresAt: string | null;
77
+ lastUsedAt: string | null;
78
78
  publicId: string;
79
79
  keyHash: string;
80
80
  keyPrefix: string;
@@ -5,16 +5,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
5
5
 
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
- type: AppType;
8
+ tenantId: string | null;
9
+ projectId: string | null;
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
+ type: AppType;
15
16
  enabled: boolean;
16
- prompt: string | null;
17
- projectId: string | null;
18
17
  config: {
19
18
  type: "web_client";
20
19
  webClient: {
@@ -32,6 +31,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
32
31
  type: "api";
33
32
  api: Record<string, never>;
34
33
  };
34
+ prompt: string | null;
35
35
  defaultAgentId: string | null;
36
36
  defaultProjectId: string | null;
37
37
  lastUsedAt: string | null;
@@ -61,16 +61,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
- type: AppType;
64
+ tenantId: string | null;
65
+ projectId: string | null;
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
+ type: AppType;
71
72
  enabled: boolean;
72
- prompt: string | null;
73
- projectId: string | null;
74
73
  config: {
75
74
  type: "web_client";
76
75
  webClient: {
@@ -88,6 +87,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
88
87
  type: "api";
89
88
  api: Record<string, never>;
90
89
  };
90
+ prompt: string | null;
91
91
  defaultAgentId: string | null;
92
92
  defaultProjectId: string | null;
93
93
  lastUsedAt: string | null;
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
+ tenantId: string;
19
+ projectId: string;
18
20
  id: 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
26
  createdAt: string;
26
27
  updatedAt: string;
27
- tenantId: string;
28
- projectId: string;
28
+ title: string | null;
29
+ metadata: ConversationMetadata | null;
29
30
  agentId: string | null;
30
31
  userId: string | null;
31
- metadata: ConversationMetadata | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
+ tenantId: string;
88
+ projectId: string;
87
89
  id: 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
95
  createdAt: string;
95
96
  updatedAt: string;
96
- tenantId: string;
97
- projectId: string;
97
+ title: string | null;
98
+ metadata: ConversationMetadata | null;
98
99
  agentId: string | null;
99
100
  userId: string | null;
100
- metadata: ConversationMetadata | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
+ tenantId: string;
124
+ projectId: string;
123
125
  id: 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
131
  createdAt: string;
131
132
  updatedAt: string;
132
- tenantId: string;
133
- projectId: string;
133
+ title: string | null;
134
+ metadata: ConversationMetadata | null;
134
135
  agentId: string | null;
135
136
  userId: string | null;
136
- metadata: ConversationMetadata | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
+ tenantId: string;
156
+ projectId: string;
155
157
  id: 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
163
  createdAt: string;
163
164
  updatedAt: string;
164
- tenantId: string;
165
- projectId: string;
165
+ title: string | null;
166
+ metadata: ConversationMetadata | null;
166
167
  agentId: string | null;
167
168
  userId: string | null;
168
- metadata: ConversationMetadata | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -0,0 +1,101 @@
1
+ import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { PaginationConfig } from "../../types/utility.js";
3
+ import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
4
+ import "../../types/index.js";
5
+ import { FeedbackInsert, FeedbackUpdate } from "../../types/entities.js";
6
+
7
+ //#region src/data-access/runtime/feedback.d.ts
8
+ declare const getFeedbackById: (db: AgentsRunDatabaseClient) => (params: {
9
+ scopes: ProjectScopeConfig;
10
+ feedbackId: string;
11
+ }) => Promise<{
12
+ id: string;
13
+ conversationId: string;
14
+ messageId: string | null;
15
+ type: "positive" | "negative";
16
+ details: string | null;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ }>;
20
+ declare const listFeedbackByConversation: (db: AgentsRunDatabaseClient) => (params: {
21
+ scopes: ProjectScopeConfig;
22
+ conversationId: string;
23
+ messageId?: string;
24
+ pagination?: PaginationConfig;
25
+ }) => Promise<{
26
+ feedback: {
27
+ id: string;
28
+ conversationId: string;
29
+ messageId: string | null;
30
+ type: "positive" | "negative";
31
+ details: string | null;
32
+ createdAt: string;
33
+ updatedAt: string;
34
+ agentId: string | null;
35
+ }[];
36
+ total: number;
37
+ }>;
38
+ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
39
+ scopes: ProjectScopeConfig;
40
+ conversationId?: string;
41
+ messageId?: string;
42
+ agentId?: string;
43
+ type?: "positive" | "negative";
44
+ startDate?: string;
45
+ endDate?: string;
46
+ pagination?: PaginationConfig;
47
+ }) => Promise<{
48
+ feedback: {
49
+ id: string;
50
+ conversationId: string;
51
+ messageId: string | null;
52
+ type: "positive" | "negative";
53
+ details: string | null;
54
+ createdAt: string;
55
+ updatedAt: string;
56
+ agentId: string | null;
57
+ }[];
58
+ total: number;
59
+ }>;
60
+ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
+ tenantId: string;
62
+ projectId: string;
63
+ id: string;
64
+ createdAt: string;
65
+ updatedAt: string;
66
+ type: "positive" | "negative";
67
+ conversationId: string;
68
+ messageId: string | null;
69
+ details: string | null;
70
+ }>;
71
+ declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
72
+ scopes: ProjectScopeConfig;
73
+ feedbackId: string;
74
+ data: FeedbackUpdate;
75
+ }) => Promise<{
76
+ createdAt: string;
77
+ updatedAt: string;
78
+ conversationId: string;
79
+ messageId: string | null;
80
+ type: "positive" | "negative";
81
+ details: string | null;
82
+ projectId: string;
83
+ tenantId: string;
84
+ id: string;
85
+ }>;
86
+ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
87
+ scopes: ProjectScopeConfig;
88
+ feedbackId: string;
89
+ }) => Promise<{
90
+ tenantId: string;
91
+ projectId: string;
92
+ id: string;
93
+ createdAt: string;
94
+ updatedAt: string;
95
+ type: "positive" | "negative";
96
+ conversationId: string;
97
+ messageId: string | null;
98
+ details: string | null;
99
+ }>;
100
+ //#endregion
101
+ export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };