@inkeep/agents-core 0.80.6 → 0.80.7

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 (38) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +1 -0
  4. package/dist/auth/auth.js +1 -0
  5. package/dist/auth/permissions.d.ts +24 -21
  6. package/dist/data-access/manage/agents.d.ts +16 -16
  7. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  8. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  9. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  10. package/dist/data-access/manage/functionTools.d.ts +10 -10
  11. package/dist/data-access/manage/skills.d.ts +11 -11
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  13. package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgents.d.ts +12 -12
  16. package/dist/data-access/manage/tools.d.ts +21 -21
  17. package/dist/data-access/manage/triggers.d.ts +4 -4
  18. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  19. package/dist/data-access/runtime/apps.d.ts +15 -15
  20. package/dist/data-access/runtime/conversations.d.ts +24 -24
  21. package/dist/data-access/runtime/events.d.ts +4 -4
  22. package/dist/data-access/runtime/feedback.d.ts +2 -2
  23. package/dist/data-access/runtime/messages.d.ts +15 -15
  24. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
  25. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +2 -2
  26. package/dist/data-access/runtime/tasks.d.ts +4 -4
  27. package/dist/db/manage/manage-schema.d.ts +506 -506
  28. package/dist/db/runtime/runtime-schema.d.ts +460 -460
  29. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_7e984a2c608e4e130e672ce3746dabdf}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +1 -1
  30. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_7e984a2c608e4e130e672ce3746dabdf}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +1 -1
  31. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_7e984a2c608e4e130e672ce3746dabdf}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
  32. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_7e984a2c608e4e130e672ce3746dabdf}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
  33. package/dist/test-utils/mocks/logger.js +1 -1
  34. package/dist/utils/error.d.ts +51 -51
  35. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  36. package/dist/validation/schemas/skills.d.ts +41 -41
  37. package/dist/validation/schemas.d.ts +2211 -2211
  38. package/package.json +3 -3
@@ -11,12 +11,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  createdAt: string;
14
- agentId: string;
14
+ updatedAt: string;
15
+ headers: Record<string, string> | null;
15
16
  projectId: string;
16
17
  tenantId: string;
18
+ agentId: string;
17
19
  subAgentId: string;
18
- updatedAt: string;
19
- headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,12 +46,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  }) => Promise<{
47
47
  id: string;
48
48
  createdAt: string;
49
- agentId: string;
49
+ updatedAt: string;
50
+ headers: Record<string, string> | null;
50
51
  projectId: string;
51
52
  tenantId: string;
53
+ agentId: string;
52
54
  subAgentId: string;
53
- updatedAt: string;
54
- headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,12 +59,12 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  }) => Promise<{
60
60
  id: string;
61
61
  createdAt: string;
62
- agentId: string;
62
+ updatedAt: string;
63
+ headers: Record<string, string> | null;
63
64
  projectId: string;
64
65
  tenantId: string;
66
+ agentId: string;
65
67
  subAgentId: string;
66
- updatedAt: string;
67
- headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -224,12 +224,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
224
224
  }) => Promise<{
225
225
  id: string;
226
226
  createdAt: string;
227
- agentId: string;
227
+ updatedAt: string;
228
+ headers: Record<string, string> | null;
228
229
  projectId: string;
229
230
  tenantId: string;
231
+ agentId: string;
230
232
  subAgentId: string;
231
- updatedAt: string;
232
- headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -241,12 +241,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
241
241
  }) => Promise<{
242
242
  id: string;
243
243
  createdAt: string;
244
- agentId: string;
244
+ updatedAt: string;
245
+ headers: Record<string, string> | null;
245
246
  projectId: string;
246
247
  tenantId: string;
248
+ agentId: string;
247
249
  subAgentId: string;
248
- updatedAt: string;
249
- headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -262,12 +262,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
262
262
  }) => Promise<{
263
263
  id: string;
264
264
  createdAt: string;
265
- agentId: string;
265
+ updatedAt: string;
266
+ headers: Record<string, string> | null;
266
267
  projectId: string;
267
268
  tenantId: string;
269
+ agentId: string;
268
270
  subAgentId: string;
269
- updatedAt: string;
270
- headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,12 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
- description: string | null;
15
14
  createdAt: string;
16
- agentId: string;
15
+ updatedAt: string;
16
+ description: string | null;
17
+ prompt: string | null;
17
18
  projectId: string;
18
19
  tenantId: string;
19
- updatedAt: string;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -40,7 +40,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
40
40
  stopWhen: {
41
41
  stepCountIs?: number | undefined;
42
42
  } | null;
43
- prompt: string | null;
43
+ agentId: string;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  outputContract: {
46
46
  [x: string]: unknown;
@@ -57,12 +57,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
57
57
  }) => Promise<{
58
58
  id: string;
59
59
  name: string;
60
- description: string | null;
61
60
  createdAt: string;
62
- agentId: string;
61
+ updatedAt: string;
62
+ description: string | null;
63
+ prompt: string | null;
63
64
  projectId: string;
64
65
  tenantId: string;
65
- updatedAt: string;
66
66
  models: {
67
67
  base?: {
68
68
  model?: string | undefined;
@@ -86,7 +86,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
86
86
  stopWhen: {
87
87
  stepCountIs?: number | undefined;
88
88
  } | null;
89
- prompt: string | null;
89
+ agentId: string;
90
90
  conversationHistoryConfig: ConversationHistoryConfig | null;
91
91
  outputContract: {
92
92
  [x: string]: unknown;
@@ -156,12 +156,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
156
156
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
157
157
  id: string;
158
158
  name: string;
159
- description: string | null;
160
159
  createdAt: string;
161
- agentId: string;
160
+ updatedAt: string;
161
+ description: string | null;
162
+ prompt: string | null;
162
163
  projectId: string;
163
164
  tenantId: string;
164
- updatedAt: string;
165
165
  models: {
166
166
  base?: {
167
167
  model?: string | undefined;
@@ -185,7 +185,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
185
185
  stopWhen: {
186
186
  stepCountIs?: number | undefined;
187
187
  } | null;
188
- prompt: string | null;
188
+ agentId: string;
189
189
  conversationHistoryConfig: ConversationHistoryConfig | null;
190
190
  outputContract: {
191
191
  [x: string]: unknown;
@@ -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;
26
+ updatedAt: string;
27
+ description: string | null;
28
+ headers: Record<string, string> | null;
27
29
  projectId: string;
28
30
  tenantId: string;
29
- updatedAt: string;
31
+ credentialReferenceId: string | null;
30
32
  config: {
31
33
  type: "mcp";
32
34
  mcp: ToolMcpConfig;
33
35
  };
34
- 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;
84
+ updatedAt: string;
85
+ description: string | null;
86
+ headers: Record<string, string> | null;
85
87
  projectId: string;
86
88
  tenantId: string;
87
- updatedAt: string;
89
+ credentialReferenceId: string | null;
88
90
  config: {
89
91
  type: "mcp";
90
92
  mcp: ToolMcpConfig;
91
93
  };
92
- 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;
@@ -137,13 +137,13 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
137
137
  }) => Promise<{
138
138
  id: string;
139
139
  createdAt: string;
140
- agentId: string;
140
+ updatedAt: string;
141
+ headers: Record<string, string> | null;
141
142
  projectId: string;
142
143
  tenantId: string;
144
+ agentId: string;
143
145
  subAgentId: string;
144
146
  toolId: string;
145
- updatedAt: string;
146
- headers: Record<string, string> | null;
147
147
  selectedTools: string[] | null;
148
148
  toolPolicies: Record<string, {
149
149
  needsApproval?: boolean;
@@ -156,13 +156,13 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
156
156
  }) => Promise<{
157
157
  id: string;
158
158
  createdAt: string;
159
- agentId: string;
159
+ updatedAt: string;
160
+ headers: Record<string, string> | null;
160
161
  projectId: string;
161
162
  tenantId: string;
163
+ agentId: string;
162
164
  subAgentId: string;
163
165
  toolId: string;
164
- updatedAt: string;
165
- headers: Record<string, string> | null;
166
166
  selectedTools: string[] | null;
167
167
  toolPolicies: Record<string, {
168
168
  needsApproval?: boolean;
@@ -184,13 +184,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
184
184
  }) => Promise<{
185
185
  id: string;
186
186
  createdAt: string;
187
- agentId: string;
187
+ updatedAt: string;
188
+ headers: Record<string, string> | null;
188
189
  projectId: string;
189
190
  tenantId: string;
191
+ agentId: string;
190
192
  subAgentId: string;
191
193
  toolId: string;
192
- updatedAt: string;
193
- headers: Record<string, string> | null;
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;
208
+ updatedAt: string;
209
+ description: string | null;
210
+ headers: Record<string, string> | null;
209
211
  projectId: string;
210
212
  tenantId: string;
211
- updatedAt: string;
213
+ credentialReferenceId: string | null;
212
214
  config: {
213
215
  type: "mcp";
214
216
  mcp: ToolMcpConfig;
215
217
  };
216
- 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: "query" | "header" | "body";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -132,10 +132,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
132
132
  userId: string;
133
133
  }) => Promise<{
134
134
  createdAt: string;
135
- agentId: string;
135
+ userId: string;
136
136
  projectId: string;
137
137
  tenantId: string;
138
- userId: string;
138
+ agentId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,29 +11,29 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  id: string;
12
12
  name: string | null;
13
13
  createdAt: string;
14
- agentId: string;
15
- projectId: string;
16
- tenantId: string;
17
14
  updatedAt: string;
18
15
  expiresAt: string | null;
19
- lastUsedAt: string | null;
16
+ projectId: string;
17
+ tenantId: string;
18
+ agentId: string;
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
- agentId: string;
29
- projectId: string;
30
- tenantId: string;
31
28
  updatedAt: string;
32
29
  expiresAt: string | null;
33
- lastUsedAt: string | null;
30
+ projectId: string;
31
+ tenantId: string;
32
+ agentId: string;
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;
@@ -42,15 +42,15 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
42
42
  id: string;
43
43
  name: string | null;
44
44
  createdAt: string;
45
- agentId: string;
46
- projectId: string;
47
- tenantId: string;
48
45
  updatedAt: string;
49
46
  expiresAt: string | null;
50
- lastUsedAt: string | null;
47
+ projectId: string;
48
+ tenantId: string;
49
+ agentId: string;
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;
@@ -69,15 +69,15 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
69
69
  id: string;
70
70
  name: string | null;
71
71
  createdAt: string;
72
- agentId: string;
73
- projectId: string;
74
- tenantId: string;
75
72
  updatedAt: string;
76
73
  expiresAt: string | null;
77
- lastUsedAt: string | null;
74
+ projectId: string;
75
+ tenantId: string;
76
+ agentId: string;
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;
@@ -8,12 +8,13 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
8
8
  type: AppType;
9
9
  id: string;
10
10
  name: string;
11
- description: string | null;
12
11
  createdAt: string;
13
- projectId: string | null;
14
- tenantId: string | null;
15
12
  updatedAt: string;
13
+ description: string | null;
16
14
  enabled: boolean;
15
+ prompt: string | null;
16
+ projectId: string | null;
17
+ tenantId: string | null;
17
18
  config: {
18
19
  type: "web_client";
19
20
  webClient: {
@@ -21,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
21
22
  publicKeys: {
22
23
  kid: string;
23
24
  publicKey: string;
24
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
25
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
25
26
  addedAt: string;
26
27
  }[];
27
28
  allowAnonymous: boolean;
@@ -44,10 +45,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
44
45
  }[] | undefined;
45
46
  };
46
47
  };
47
- prompt: string | null;
48
- defaultAgentId: string | null;
49
- defaultProjectId: string | null;
50
48
  lastUsedAt: string | null;
49
+ defaultProjectId: string | null;
50
+ defaultAgentId: string | null;
51
51
  } | undefined>;
52
52
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
53
53
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -77,12 +77,13 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
77
77
  type: AppType;
78
78
  id: string;
79
79
  name: string;
80
- description: string | null;
81
80
  createdAt: string;
82
- projectId: string | null;
83
- tenantId: string | null;
84
81
  updatedAt: string;
82
+ description: string | null;
85
83
  enabled: boolean;
84
+ prompt: string | null;
85
+ projectId: string | null;
86
+ tenantId: string | null;
86
87
  config: {
87
88
  type: "web_client";
88
89
  webClient: {
@@ -90,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
90
91
  publicKeys: {
91
92
  kid: string;
92
93
  publicKey: string;
93
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
94
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
94
95
  addedAt: string;
95
96
  }[];
96
97
  allowAnonymous: boolean;
@@ -113,10 +114,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
113
114
  }[] | undefined;
114
115
  };
115
116
  };
116
- prompt: string | null;
117
- defaultAgentId: string | null;
118
- defaultProjectId: string | null;
119
117
  lastUsedAt: string | null;
118
+ defaultProjectId: string | null;
119
+ defaultAgentId: string | null;
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,23 +17,23 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
19
  id: string;
20
+ createdAt: string;
21
+ updatedAt: string;
20
22
  ref: {
21
23
  type: "commit" | "tag" | "branch";
22
24
  name: string;
23
25
  hash: string;
24
26
  } | null;
27
+ userId: string | null;
28
+ metadata: ConversationMetadata | null;
25
29
  properties: Record<string, unknown> | null;
26
30
  title: string | null;
27
- createdAt: string;
28
- agentId: string | null;
29
31
  projectId: string;
30
32
  tenantId: string;
31
- metadata: ConversationMetadata | null;
32
- updatedAt: string;
33
- userId: string | null;
33
+ agentId: string | null;
34
+ userProperties: Record<string, unknown> | null;
34
35
  activeSubAgentId: string;
35
36
  lastContextResolution: string | null;
36
- userProperties: Record<string, unknown> | null;
37
37
  }>;
38
38
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
@@ -92,23 +92,23 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
92
92
  conversationId: string;
93
93
  }) => Promise<{
94
94
  id: string;
95
+ createdAt: string;
96
+ updatedAt: string;
95
97
  ref: {
96
98
  type: "commit" | "tag" | "branch";
97
99
  name: string;
98
100
  hash: string;
99
101
  } | null;
102
+ userId: string | null;
103
+ metadata: ConversationMetadata | null;
100
104
  properties: Record<string, unknown> | null;
101
105
  title: string | null;
102
- createdAt: string;
103
- agentId: string | null;
104
106
  projectId: string;
105
107
  tenantId: string;
106
- metadata: ConversationMetadata | null;
107
- updatedAt: string;
108
- userId: string | null;
108
+ agentId: string | null;
109
+ userProperties: Record<string, unknown> | null;
109
110
  activeSubAgentId: string;
110
111
  lastContextResolution: string | null;
111
- userProperties: Record<string, unknown> | null;
112
112
  } | undefined>;
113
113
  /**
114
114
  * Batch-fetch conversations by id within a project scope.
@@ -147,23 +147,23 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
147
147
  properties?: Record<string, unknown> | null | undefined;
148
148
  } | {
149
149
  id: string;
150
+ createdAt: string;
151
+ updatedAt: string;
150
152
  ref: {
151
153
  type: "commit" | "tag" | "branch";
152
154
  name: string;
153
155
  hash: string;
154
156
  } | null;
157
+ userId: string | null;
158
+ metadata: ConversationMetadata | null;
155
159
  properties: Record<string, unknown> | null;
156
160
  title: string | null;
157
- createdAt: string;
158
- agentId: string | null;
159
161
  projectId: string;
160
162
  tenantId: string;
161
- metadata: ConversationMetadata | null;
162
- updatedAt: string;
163
- userId: string | null;
163
+ agentId: string | null;
164
+ userProperties: Record<string, unknown> | null;
164
165
  activeSubAgentId: string;
165
166
  lastContextResolution: string | null;
166
- userProperties: Record<string, unknown> | null;
167
167
  }>;
168
168
  /**
169
169
  * Extract text content from message content object
@@ -185,23 +185,23 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
185
185
  conversationId: string;
186
186
  }) => Promise<{
187
187
  id: string;
188
+ createdAt: string;
189
+ updatedAt: string;
188
190
  ref: {
189
191
  type: "commit" | "tag" | "branch";
190
192
  name: string;
191
193
  hash: string;
192
194
  } | null;
195
+ userId: string | null;
196
+ metadata: ConversationMetadata | null;
193
197
  properties: Record<string, unknown> | null;
194
198
  title: string | null;
195
- createdAt: string;
196
- agentId: string | null;
197
199
  projectId: string;
198
200
  tenantId: string;
199
- metadata: ConversationMetadata | null;
200
- updatedAt: string;
201
- userId: string | null;
201
+ agentId: string | null;
202
+ userProperties: Record<string, unknown> | null;
202
203
  activeSubAgentId: string;
203
204
  lastContextResolution: string | null;
204
- userProperties: Record<string, unknown> | null;
205
205
  } | undefined>;
206
206
  /**
207
207
  * Set active agent for a conversation (upsert operation)
@@ -9,13 +9,13 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
9
9
  row: {
10
10
  type: string;
11
11
  id: string;
12
- properties: Record<string, unknown> | null;
13
12
  createdAt: string;
14
- agentId: string | null;
13
+ updatedAt: string;
14
+ metadata: Record<string, unknown> | null;
15
+ properties: Record<string, unknown> | null;
15
16
  projectId: string;
16
17
  tenantId: string;
17
- metadata: Record<string, unknown> | null;
18
- updatedAt: string;
18
+ agentId: string | null;
19
19
  conversationId: string | null;
20
20
  userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;
@@ -73,9 +73,9 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
73
73
  type: "positive" | "negative";
74
74
  id: string;
75
75
  createdAt: string;
76
+ updatedAt: string;
76
77
  projectId: string;
77
78
  tenantId: string;
78
- updatedAt: string;
79
79
  conversationId: string;
80
80
  messageId: string | null;
81
81
  details: string | null;
@@ -103,9 +103,9 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
103
103
  type: "positive" | "negative";
104
104
  id: string;
105
105
  createdAt: string;
106
+ updatedAt: string;
106
107
  projectId: string;
107
108
  tenantId: string;
108
- updatedAt: string;
109
109
  conversationId: string;
110
110
  messageId: string | null;
111
111
  details: string | null;