@inkeep/agents-core 0.0.0-dev-20260406161920 → 0.0.0-dev-20260406183632

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 +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 +2 -2
  5. package/dist/client-exports.js +2 -2
  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 +42 -42
  11. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  12. package/dist/data-access/manage/contextConfigs.d.ts +16 -16
  13. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  14. package/dist/data-access/manage/functionTools.d.ts +10 -10
  15. package/dist/data-access/manage/skills.d.ts +9 -9
  16. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  17. package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
  18. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  19. package/dist/data-access/manage/subAgents.d.ts +18 -18
  20. package/dist/data-access/manage/tools.d.ts +24 -24
  21. package/dist/data-access/manage/triggers.d.ts +4 -4
  22. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  23. package/dist/data-access/runtime/apps.d.ts +12 -12
  24. package/dist/data-access/runtime/conversations.d.ts +16 -16
  25. package/dist/data-access/runtime/feedback.d.ts +101 -0
  26. package/dist/data-access/runtime/feedback.js +83 -0
  27. package/dist/data-access/runtime/messages.d.ts +15 -15
  28. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  29. package/dist/data-access/runtime/tasks.d.ts +3 -3
  30. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  31. package/dist/db/manage/manage-schema.d.ts +453 -453
  32. package/dist/db/runtime/runtime-schema.d.ts +545 -367
  33. package/dist/db/runtime/runtime-schema.js +73 -2
  34. package/dist/index.d.ts +5 -4
  35. package/dist/index.js +4 -3
  36. package/dist/middleware/no-auth.d.ts +2 -2
  37. package/dist/types/entities.d.ts +5 -2
  38. package/dist/types/index.d.ts +2 -2
  39. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  40. package/dist/validation/index.d.ts +2 -2
  41. package/dist/validation/index.js +2 -2
  42. package/dist/validation/schemas/skills.d.ts +37 -37
  43. package/dist/validation/schemas.d.ts +2649 -2221
  44. package/dist/validation/schemas.js +24 -2
  45. package/drizzle/runtime/0034_simple_sphinx.sql +17 -0
  46. package/drizzle/runtime/meta/0034_snapshot.json +5288 -0
  47. package/drizzle/runtime/meta/_journal.json +7 -0
  48. package/package.json +1 -1
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
15
  agentId: string;
18
- subAgentId: string;
16
+ projectId: string;
17
+ tenantId: string;
19
18
  headers: Record<string, string> | null;
19
+ subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
50
  agentId: string;
53
- subAgentId: string;
51
+ projectId: string;
52
+ tenantId: string;
54
53
  headers: Record<string, string> | null;
54
+ subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
63
  agentId: string;
66
- subAgentId: string;
64
+ projectId: string;
65
+ tenantId: string;
67
66
  headers: Record<string, string> | null;
67
+ subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -225,11 +225,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- tenantId: string;
229
- projectId: string;
230
228
  agentId: string;
231
- subAgentId: string;
229
+ projectId: string;
230
+ tenantId: string;
232
231
  headers: Record<string, string> | null;
232
+ subAgentId: string;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -242,11 +242,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
242
242
  id: string;
243
243
  createdAt: string;
244
244
  updatedAt: string;
245
- tenantId: string;
246
- projectId: string;
247
245
  agentId: string;
248
- subAgentId: string;
246
+ projectId: string;
247
+ tenantId: string;
249
248
  headers: Record<string, string> | null;
249
+ subAgentId: string;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -263,11 +263,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
263
263
  id: string;
264
264
  createdAt: string;
265
265
  updatedAt: string;
266
- tenantId: string;
267
- projectId: string;
268
266
  agentId: string;
269
- subAgentId: string;
267
+ projectId: string;
268
+ tenantId: string;
270
269
  headers: Record<string, string> | null;
270
+ subAgentId: string;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,6 +11,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
14
19
  description: string | null;
15
20
  models: {
16
21
  base?: {
@@ -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
- prompt: string | null;
42
- projectId: string;
43
- agentId: string;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -48,6 +48,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
48
48
  }) => Promise<{
49
49
  id: string;
50
50
  name: string;
51
+ createdAt: string;
52
+ updatedAt: string;
53
+ agentId: string;
54
+ projectId: string;
55
+ tenantId: string;
51
56
  description: string | null;
52
57
  models: {
53
58
  base?: {
@@ -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
- prompt: string | null;
79
- projectId: string;
80
- agentId: string;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -129,6 +129,11 @@ 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;
134
+ agentId: string;
135
+ projectId: string;
136
+ tenantId: string;
132
137
  description: string | null;
133
138
  models: {
134
139
  base?: {
@@ -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
- prompt: string | null;
160
- projectId: string;
161
- agentId: string;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -22,18 +22,18 @@ 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
27
  projectId: string;
30
- credentialReferenceId: string | null;
28
+ tenantId: string;
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;
@@ -80,18 +80,18 @@ 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
85
  projectId: string;
88
- credentialReferenceId: string | null;
86
+ tenantId: string;
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;
@@ -138,12 +138,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- tenantId: string;
142
- projectId: string;
143
141
  agentId: string;
144
- toolId: string;
145
- subAgentId: string;
142
+ projectId: string;
143
+ tenantId: string;
146
144
  headers: Record<string, string> | null;
145
+ subAgentId: string;
146
+ toolId: string;
147
147
  selectedTools: string[] | null;
148
148
  toolPolicies: Record<string, {
149
149
  needsApproval?: boolean;
@@ -157,12 +157,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- tenantId: string;
161
- projectId: string;
162
160
  agentId: string;
163
- toolId: string;
164
- subAgentId: string;
161
+ projectId: string;
162
+ tenantId: string;
165
163
  headers: Record<string, string> | null;
164
+ subAgentId: string;
165
+ toolId: string;
166
166
  selectedTools: string[] | null;
167
167
  toolPolicies: Record<string, {
168
168
  needsApproval?: boolean;
@@ -185,12 +185,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- tenantId: string;
189
- projectId: string;
190
188
  agentId: string;
191
- toolId: string;
192
- subAgentId: string;
189
+ projectId: string;
190
+ tenantId: string;
193
191
  headers: Record<string, string> | null;
192
+ subAgentId: string;
193
+ toolId: string;
194
194
  selectedTools: string[] | null;
195
195
  toolPolicies: Record<string, {
196
196
  needsApproval?: boolean;
@@ -204,18 +204,18 @@ 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
209
  projectId: string;
212
- credentialReferenceId: string | null;
210
+ tenantId: string;
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;
@@ -37,16 +37,16 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
37
37
  authentication: unknown;
38
38
  signingSecretCredentialReferenceId: string | null;
39
39
  signatureVerification: {
40
- algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
- encoding: "hex" | "base64";
40
+ algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
41
+ encoding: "base64" | "hex";
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;
@@ -12,28 +12,28 @@ 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
15
  agentId: string;
18
- lastUsedAt: string | null;
16
+ projectId: string;
17
+ tenantId: string;
19
18
  expiresAt: 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
26
  name: string | null;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
- tenantId: string;
30
- projectId: string;
31
29
  agentId: string;
32
- lastUsedAt: string | null;
30
+ projectId: string;
31
+ tenantId: string;
33
32
  expiresAt: 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;
@@ -43,14 +43,14 @@ 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
46
  agentId: string;
49
- lastUsedAt: string | null;
47
+ projectId: string;
48
+ tenantId: string;
50
49
  expiresAt: 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;
@@ -70,14 +70,14 @@ 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
73
  agentId: string;
76
- lastUsedAt: string | null;
74
+ projectId: string;
75
+ tenantId: string;
77
76
  expiresAt: 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;
@@ -5,16 +5,19 @@ 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;
9
8
  id: string;
10
9
  name: string;
11
- description: string | null;
12
10
  createdAt: string;
13
11
  updatedAt: string;
12
+ projectId: string | null;
14
13
  tenantId: string | null;
14
+ description: string | null;
15
+ type: AppType;
15
16
  enabled: boolean;
16
17
  prompt: string | null;
17
- projectId: 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
- defaultAgentId: string | null;
36
- defaultProjectId: string | null;
37
- lastUsedAt: string | null;
38
38
  } | undefined>;
39
39
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
40
40
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -61,16 +61,19 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
- type: AppType;
65
64
  id: string;
66
65
  name: string;
67
- description: string | null;
68
66
  createdAt: string;
69
67
  updatedAt: string;
68
+ projectId: string | null;
70
69
  tenantId: string | null;
70
+ description: string | null;
71
+ type: AppType;
71
72
  enabled: boolean;
72
73
  prompt: string | null;
73
- projectId: 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
- defaultAgentId: string | null;
92
- defaultProjectId: string | null;
93
- lastUsedAt: string | null;
94
94
  }>;
95
95
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
96
96
  scopes: TenantScopeConfig;
@@ -21,14 +21,14 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
21
21
  name: string;
22
22
  hash: string;
23
23
  } | null;
24
- title: string | null;
25
24
  createdAt: string;
26
25
  updatedAt: string;
27
- tenantId: string;
28
- projectId: string;
29
26
  agentId: string | null;
30
- userId: string | null;
27
+ projectId: string;
28
+ tenantId: string;
29
+ title: string | null;
31
30
  metadata: ConversationMetadata | null;
31
+ userId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -90,14 +90,14 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
90
90
  name: string;
91
91
  hash: string;
92
92
  } | null;
93
- title: string | null;
94
93
  createdAt: string;
95
94
  updatedAt: string;
96
- tenantId: string;
97
- projectId: string;
98
95
  agentId: string | null;
99
- userId: string | null;
96
+ projectId: string;
97
+ tenantId: string;
98
+ title: string | null;
100
99
  metadata: ConversationMetadata | null;
100
+ userId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -126,14 +126,14 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
126
126
  name: string;
127
127
  hash: string;
128
128
  } | null;
129
- title: string | null;
130
129
  createdAt: string;
131
130
  updatedAt: string;
132
- tenantId: string;
133
- projectId: string;
134
131
  agentId: string | null;
135
- userId: string | null;
132
+ projectId: string;
133
+ tenantId: string;
134
+ title: string | null;
136
135
  metadata: ConversationMetadata | null;
136
+ userId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -158,14 +158,14 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
158
158
  name: string;
159
159
  hash: string;
160
160
  } | null;
161
- title: string | null;
162
161
  createdAt: string;
163
162
  updatedAt: string;
164
- tenantId: string;
165
- projectId: string;
166
163
  agentId: string | null;
167
- userId: string | null;
164
+ projectId: string;
165
+ tenantId: string;
166
+ title: string | null;
168
167
  metadata: ConversationMetadata | null;
168
+ userId: string | 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
+ id: string;
62
+ createdAt: string;
63
+ updatedAt: string;
64
+ projectId: string;
65
+ tenantId: string;
66
+ type: "positive" | "negative";
67
+ details: string | null;
68
+ conversationId: string;
69
+ messageId: 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
+ id: string;
91
+ createdAt: string;
92
+ updatedAt: string;
93
+ projectId: string;
94
+ tenantId: string;
95
+ type: "positive" | "negative";
96
+ details: string | null;
97
+ conversationId: string;
98
+ messageId: string | null;
99
+ }>;
100
+ //#endregion
101
+ export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };