@inkeep/agents-core 0.78.0 → 0.78.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 (44) hide show
  1. package/dist/auth/auth-schema.d.ts +163 -163
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.js +7 -0
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/constants/otel-attributes.d.ts +1 -0
  6. package/dist/constants/otel-attributes.js +1 -0
  7. package/dist/constants/signoz-queries.d.ts +2 -0
  8. package/dist/constants/signoz-queries.js +3 -1
  9. package/dist/data-access/manage/agents.d.ts +10 -10
  10. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  11. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  12. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  13. package/dist/data-access/manage/functionTools.d.ts +6 -6
  14. package/dist/data-access/manage/skills.d.ts +6 -6
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  16. package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  18. package/dist/data-access/manage/subAgents.d.ts +6 -6
  19. package/dist/data-access/manage/tools.d.ts +15 -15
  20. package/dist/data-access/manage/triggers.d.ts +5 -5
  21. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  22. package/dist/data-access/runtime/apps.d.ts +9 -9
  23. package/dist/data-access/runtime/conversations.d.ts +24 -24
  24. package/dist/data-access/runtime/events.d.ts +6 -6
  25. package/dist/data-access/runtime/feedback.d.ts +4 -4
  26. package/dist/data-access/runtime/messages.d.ts +12 -12
  27. package/dist/data-access/runtime/tasks.d.ts +3 -3
  28. package/dist/db/manage/manage-schema.d.ts +387 -387
  29. package/dist/db/runtime/runtime-schema.d.ts +419 -419
  30. package/dist/index.d.ts +2 -2
  31. package/dist/index.js +2 -2
  32. package/dist/types/utility.d.ts +1 -0
  33. package/dist/utils/cache-debug-walk.d.ts +4 -9
  34. package/dist/utils/cache-debug-walk.js +4 -23
  35. package/dist/utils/cache-state.d.ts +1 -5
  36. package/dist/utils/cache-state.js +3 -4
  37. package/dist/utils/index.d.ts +2 -2
  38. package/dist/utils/index.js +2 -2
  39. package/dist/utils/usage-cost-middleware.d.ts +7 -1
  40. package/dist/utils/usage-cost-middleware.js +21 -2
  41. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  42. package/dist/validation/schemas/skills.d.ts +36 -36
  43. package/dist/validation/schemas.d.ts +2360 -2360
  44. package/package.json +1 -1
@@ -10,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- agentId: string;
13
+ headers: Record<string, string> | null;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  projectId: string;
17
17
  tenantId: string;
18
+ agentId: string;
18
19
  subAgentId: string;
19
- headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,26 +45,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- agentId: string;
48
+ headers: Record<string, string> | null;
49
49
  createdAt: string;
50
50
  updatedAt: string;
51
51
  projectId: string;
52
52
  tenantId: string;
53
+ agentId: string;
53
54
  subAgentId: string;
54
- headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- agentId: string;
61
+ headers: Record<string, string> | null;
62
62
  createdAt: string;
63
63
  updatedAt: string;
64
64
  projectId: string;
65
65
  tenantId: string;
66
+ agentId: string;
66
67
  subAgentId: string;
67
- headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -223,13 +223,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
223
223
  };
224
224
  }) => Promise<{
225
225
  id: string;
226
- agentId: string;
226
+ headers: Record<string, string> | null;
227
227
  createdAt: string;
228
228
  updatedAt: string;
229
229
  projectId: string;
230
230
  tenantId: string;
231
+ agentId: string;
231
232
  subAgentId: string;
232
- headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -240,13 +240,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
242
  id: string;
243
- agentId: string;
243
+ headers: Record<string, string> | null;
244
244
  createdAt: string;
245
245
  updatedAt: string;
246
246
  projectId: string;
247
247
  tenantId: string;
248
+ agentId: string;
248
249
  subAgentId: string;
249
- headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -261,13 +261,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
261
261
  };
262
262
  }) => Promise<{
263
263
  id: string;
264
- agentId: string;
264
+ headers: Record<string, string> | null;
265
265
  createdAt: string;
266
266
  updatedAt: string;
267
267
  projectId: string;
268
268
  tenantId: string;
269
+ agentId: string;
269
270
  subAgentId: string;
270
- headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,10 +9,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
+ id: string;
12
13
  name: string;
13
14
  description: string | null;
14
- id: string;
15
- agentId: string;
16
15
  createdAt: string;
17
16
  updatedAt: string;
18
17
  projectId: string;
@@ -40,6 +39,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
40
39
  stopWhen: {
41
40
  stepCountIs?: number | undefined;
42
41
  } | null;
42
+ agentId: string;
43
43
  prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  outputContract: {
@@ -55,10 +55,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
55
55
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
57
57
  }) => Promise<{
58
+ id: string;
58
59
  name: string;
59
60
  description: string | null;
60
- id: string;
61
- agentId: string;
62
61
  createdAt: string;
63
62
  updatedAt: string;
64
63
  projectId: string;
@@ -86,6 +85,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
86
85
  stopWhen: {
87
86
  stepCountIs?: number | undefined;
88
87
  } | null;
88
+ agentId: string;
89
89
  prompt: string | null;
90
90
  conversationHistoryConfig: ConversationHistoryConfig | null;
91
91
  outputContract: {
@@ -154,10 +154,9 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
154
154
  };
155
155
  }>;
156
156
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
157
+ id: string;
157
158
  name: string;
158
159
  description: string | null;
159
- id: string;
160
- agentId: string;
161
160
  createdAt: string;
162
161
  updatedAt: string;
163
162
  projectId: string;
@@ -185,6 +184,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
185
184
  stopWhen: {
186
185
  stepCountIs?: number | undefined;
187
186
  } | null;
187
+ agentId: string;
188
188
  prompt: string | null;
189
189
  conversationHistoryConfig: ConversationHistoryConfig | null;
190
190
  outputContract: {
@@ -20,9 +20,10 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
+ id: string;
23
24
  name: string;
24
25
  description: string | null;
25
- id: string;
26
+ headers: Record<string, string> | null;
26
27
  createdAt: string;
27
28
  updatedAt: string;
28
29
  projectId: string;
@@ -33,7 +34,6 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
33
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,9 +78,10 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
+ id: string;
81
82
  name: string;
82
83
  description: string | null;
83
- id: string;
84
+ headers: Record<string, string> | null;
84
85
  createdAt: string;
85
86
  updatedAt: string;
86
87
  projectId: string;
@@ -91,7 +92,6 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
91
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;
@@ -136,18 +136,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  }> | null;
137
137
  }) => Promise<{
138
138
  id: string;
139
- agentId: string;
139
+ headers: Record<string, string> | null;
140
140
  createdAt: string;
141
141
  updatedAt: string;
142
142
  projectId: string;
143
143
  tenantId: string;
144
+ agentId: string;
144
145
  subAgentId: string;
145
146
  toolId: string;
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;
@@ -155,18 +155,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  toolId: string;
156
156
  }) => Promise<{
157
157
  id: string;
158
- agentId: string;
158
+ headers: Record<string, string> | null;
159
159
  createdAt: string;
160
160
  updatedAt: string;
161
161
  projectId: string;
162
162
  tenantId: string;
163
+ agentId: string;
163
164
  subAgentId: string;
164
165
  toolId: string;
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)
@@ -183,18 +183,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
185
  id: string;
186
- agentId: string;
186
+ headers: Record<string, string> | null;
187
187
  createdAt: string;
188
188
  updatedAt: string;
189
189
  projectId: string;
190
190
  tenantId: string;
191
+ agentId: string;
191
192
  subAgentId: string;
192
193
  toolId: string;
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,9 +202,10 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
+ id: string;
205
206
  name: string;
206
207
  description: string | null;
207
- id: string;
208
+ headers: Record<string, string> | null;
208
209
  createdAt: string;
209
210
  updatedAt: string;
210
211
  projectId: string;
@@ -215,7 +216,6 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
215
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: "query" | "body" | "header";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "body" | "header";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -131,10 +131,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
- agentId: string;
135
134
  createdAt: string;
136
135
  projectId: string;
137
136
  tenantId: string;
137
+ agentId: string;
138
138
  userId: string;
139
139
  triggerId: string;
140
140
  }>;
@@ -8,13 +8,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- name: string | null;
12
11
  id: string;
13
- agentId: string;
12
+ name: string | null;
14
13
  createdAt: string;
15
14
  updatedAt: string;
16
15
  projectId: string;
17
16
  tenantId: string;
17
+ agentId: string;
18
18
  expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
@@ -22,13 +22,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
22
22
  lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- name: string | null;
26
25
  id: string;
27
- agentId: string;
26
+ name: string | null;
28
27
  createdAt: string;
29
28
  updatedAt: string;
30
29
  projectId: string;
31
30
  tenantId: string;
31
+ agentId: string;
32
32
  expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
@@ -39,13 +39,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
- name: string | null;
43
42
  id: string;
44
- agentId: string;
43
+ name: string | null;
45
44
  createdAt: string;
46
45
  updatedAt: string;
47
46
  projectId: string;
48
47
  tenantId: string;
48
+ agentId: string;
49
49
  expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
@@ -66,13 +66,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- name: string | null;
70
69
  id: string;
71
- agentId: string;
70
+ name: string | null;
72
71
  createdAt: string;
73
72
  updatedAt: string;
74
73
  projectId: string;
75
74
  tenantId: string;
75
+ agentId: string;
76
76
  expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;
@@ -6,13 +6,15 @@ 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
+ id: string;
9
10
  name: string;
10
11
  description: string | null;
11
- id: string;
12
+ enabled: boolean;
12
13
  createdAt: string;
13
14
  updatedAt: string;
14
15
  projectId: string | null;
15
16
  tenantId: string | null;
17
+ prompt: string | null;
16
18
  config: {
17
19
  type: "web_client";
18
20
  webClient: {
@@ -20,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
20
22
  publicKeys: {
21
23
  kid: string;
22
24
  publicKey: string;
23
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
25
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
24
26
  addedAt: string;
25
27
  }[];
26
28
  allowAnonymous: boolean;
@@ -43,11 +45,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
43
45
  }[] | undefined;
44
46
  };
45
47
  };
46
- prompt: string | null;
47
48
  lastUsedAt: string | null;
48
49
  defaultProjectId: string | null;
49
50
  defaultAgentId: string | null;
50
- enabled: boolean;
51
51
  } | undefined>;
52
52
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
53
53
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -75,13 +75,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
77
  type: AppType;
78
+ id: string;
78
79
  name: string;
79
80
  description: string | null;
80
- id: string;
81
+ enabled: boolean;
81
82
  createdAt: string;
82
83
  updatedAt: string;
83
84
  projectId: string | null;
84
85
  tenantId: string | null;
86
+ prompt: string | null;
85
87
  config: {
86
88
  type: "web_client";
87
89
  webClient: {
@@ -89,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
89
91
  publicKeys: {
90
92
  kid: string;
91
93
  publicKey: string;
92
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
94
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
93
95
  addedAt: string;
94
96
  }[];
95
97
  allowAnonymous: boolean;
@@ -112,11 +114,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
112
114
  }[] | undefined;
113
115
  };
114
116
  };
115
- prompt: string | null;
116
117
  lastUsedAt: string | null;
117
118
  defaultProjectId: string | null;
118
119
  defaultAgentId: string | null;
119
- enabled: boolean;
120
120
  }>;
121
121
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
122
122
  scopes: TenantScopeConfig;
@@ -174,7 +174,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
174
174
  publicKeys: {
175
175
  kid: string;
176
176
  publicKey: string;
177
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
177
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
178
178
  addedAt: string;
179
179
  }[];
180
180
  allowAnonymous: boolean;
@@ -17,22 +17,22 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
19
  id: string;
20
- agentId: string | null;
21
- properties: Record<string, unknown> | null;
22
- userProperties: Record<string, unknown> | null;
23
- metadata: ConversationMetadata | null;
24
20
  createdAt: string;
25
21
  updatedAt: string;
26
22
  projectId: string;
27
23
  tenantId: string;
24
+ properties: Record<string, unknown> | null;
28
25
  title: string | null;
29
- userId: string | null;
30
- activeSubAgentId: string;
26
+ metadata: ConversationMetadata | null;
27
+ agentId: string | null;
31
28
  ref: {
32
29
  type: "commit" | "tag" | "branch";
33
30
  name: string;
34
31
  hash: string;
35
32
  } | null;
33
+ userId: string | null;
34
+ userProperties: Record<string, unknown> | null;
35
+ activeSubAgentId: string;
36
36
  lastContextResolution: string | null;
37
37
  }>;
38
38
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -92,22 +92,22 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
92
92
  conversationId: string;
93
93
  }) => Promise<{
94
94
  id: string;
95
- agentId: string | null;
96
- properties: Record<string, unknown> | null;
97
- userProperties: Record<string, unknown> | null;
98
- metadata: ConversationMetadata | null;
99
95
  createdAt: string;
100
96
  updatedAt: string;
101
97
  projectId: string;
102
98
  tenantId: string;
99
+ properties: Record<string, unknown> | null;
103
100
  title: string | null;
104
- userId: string | null;
105
- activeSubAgentId: string;
101
+ metadata: ConversationMetadata | null;
102
+ agentId: string | null;
106
103
  ref: {
107
104
  type: "commit" | "tag" | "branch";
108
105
  name: string;
109
106
  hash: string;
110
107
  } | null;
108
+ userId: string | null;
109
+ userProperties: Record<string, unknown> | null;
110
+ activeSubAgentId: string;
111
111
  lastContextResolution: string | null;
112
112
  } | undefined>;
113
113
  /**
@@ -147,22 +147,22 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
147
147
  properties?: Record<string, unknown> | null | undefined;
148
148
  } | {
149
149
  id: string;
150
- agentId: string | null;
151
- properties: Record<string, unknown> | null;
152
- userProperties: Record<string, unknown> | null;
153
- metadata: ConversationMetadata | null;
154
150
  createdAt: string;
155
151
  updatedAt: string;
156
152
  projectId: string;
157
153
  tenantId: string;
154
+ properties: Record<string, unknown> | null;
158
155
  title: string | null;
159
- userId: string | null;
160
- activeSubAgentId: string;
156
+ metadata: ConversationMetadata | null;
157
+ agentId: string | null;
161
158
  ref: {
162
159
  type: "commit" | "tag" | "branch";
163
160
  name: string;
164
161
  hash: string;
165
162
  } | null;
163
+ userId: string | null;
164
+ userProperties: Record<string, unknown> | null;
165
+ activeSubAgentId: string;
166
166
  lastContextResolution: string | null;
167
167
  }>;
168
168
  /**
@@ -185,22 +185,22 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
185
185
  conversationId: string;
186
186
  }) => Promise<{
187
187
  id: string;
188
- agentId: string | null;
189
- properties: Record<string, unknown> | null;
190
- userProperties: Record<string, unknown> | null;
191
- metadata: ConversationMetadata | null;
192
188
  createdAt: string;
193
189
  updatedAt: string;
194
190
  projectId: string;
195
191
  tenantId: string;
192
+ properties: Record<string, unknown> | null;
196
193
  title: string | null;
197
- userId: string | null;
198
- activeSubAgentId: string;
194
+ metadata: ConversationMetadata | null;
195
+ agentId: string | null;
199
196
  ref: {
200
197
  type: "commit" | "tag" | "branch";
201
198
  name: string;
202
199
  hash: string;
203
200
  } | null;
201
+ userId: string | null;
202
+ userProperties: Record<string, unknown> | null;
203
+ activeSubAgentId: string;
204
204
  lastContextResolution: string | null;
205
205
  } | undefined>;
206
206
  /**
@@ -9,20 +9,20 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
9
9
  row: {
10
10
  type: string;
11
11
  id: string;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ projectId: string;
15
+ tenantId: string;
16
+ properties: Record<string, unknown> | null;
17
+ metadata: Record<string, unknown> | null;
12
18
  agentId: string | null;
13
19
  conversationId: string | null;
14
20
  messageId: string | null;
15
- properties: Record<string, unknown> | null;
16
21
  userProperties: Record<string, unknown> | null;
17
- metadata: Record<string, unknown> | null;
18
22
  serverMetadata: {
19
23
  [k: string]: unknown;
20
24
  authMethod?: string;
21
25
  } | null;
22
- createdAt: string;
23
- updatedAt: string;
24
- projectId: string;
25
- tenantId: string;
26
26
  };
27
27
  conflict: false;
28
28
  } | {
@@ -72,12 +72,12 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
72
72
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
73
73
  type: "positive" | "negative";
74
74
  id: string;
75
- conversationId: string;
76
- messageId: string | null;
77
75
  createdAt: string;
78
76
  updatedAt: string;
79
77
  projectId: string;
80
78
  tenantId: string;
79
+ conversationId: string;
80
+ messageId: string | null;
81
81
  details: string | null;
82
82
  }>;
83
83
  declare const createFeedbackBulk: (db: AgentsRunDatabaseClient) => (items: FeedbackInsert[]) => Promise<(typeof feedback.$inferSelect)[]>;
@@ -102,12 +102,12 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
102
102
  }) => Promise<{
103
103
  type: "positive" | "negative";
104
104
  id: string;
105
- conversationId: string;
106
- messageId: string | null;
107
105
  createdAt: string;
108
106
  updatedAt: string;
109
107
  projectId: string;
110
108
  tenantId: string;
109
+ conversationId: string;
110
+ messageId: string | null;
111
111
  details: string | null;
112
112
  }>;
113
113
  //#endregion
@@ -11,16 +11,16 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
- conversationId: string;
15
- properties: Record<string, unknown> | null;
16
- userProperties: Record<string, unknown> | null;
17
- metadata: MessageMetadata | null;
18
14
  createdAt: string;
19
15
  updatedAt: string;
20
16
  projectId: string;
21
17
  tenantId: string;
18
+ properties: Record<string, unknown> | null;
19
+ metadata: MessageMetadata | null;
22
20
  content: MessageContent;
23
21
  role: string;
22
+ conversationId: string;
23
+ userProperties: Record<string, unknown> | null;
24
24
  fromSubAgentId: string | null;
25
25
  toSubAgentId: string | null;
26
26
  fromExternalAgentId: string | null;
@@ -184,16 +184,16 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
184
184
  data: Omit<MessageInsert, "tenantId" | "projectId">;
185
185
  }) => Promise<{
186
186
  id: string;
187
- conversationId: string;
188
- properties: Record<string, unknown> | null;
189
- userProperties: Record<string, unknown> | null;
190
- metadata: MessageMetadata | null;
191
187
  createdAt: string;
192
188
  updatedAt: string;
193
189
  projectId: string;
194
190
  tenantId: string;
191
+ properties: Record<string, unknown> | null;
192
+ metadata: MessageMetadata | null;
195
193
  content: MessageContent;
196
194
  role: string;
195
+ conversationId: string;
196
+ userProperties: Record<string, unknown> | null;
197
197
  fromSubAgentId: string | null;
198
198
  toSubAgentId: string | null;
199
199
  fromExternalAgentId: string | null;
@@ -241,16 +241,16 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
241
241
  messageId: string;
242
242
  }) => Promise<{
243
243
  id: string;
244
- conversationId: string;
245
- properties: Record<string, unknown> | null;
246
- userProperties: Record<string, unknown> | null;
247
- metadata: MessageMetadata | null;
248
244
  createdAt: string;
249
245
  updatedAt: string;
250
246
  projectId: string;
251
247
  tenantId: string;
248
+ properties: Record<string, unknown> | null;
249
+ metadata: MessageMetadata | null;
252
250
  content: MessageContent;
253
251
  role: string;
252
+ conversationId: string;
253
+ userProperties: Record<string, unknown> | null;
254
254
  fromSubAgentId: string | null;
255
255
  toSubAgentId: string | null;
256
256
  fromExternalAgentId: string | null;