@inkeep/agents-core 0.73.2 → 0.73.3

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 (29) hide show
  1. package/dist/auth/permissions.d.ts +9 -9
  2. package/dist/data-access/manage/agents.d.ts +32 -32
  3. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  4. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  5. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  6. package/dist/data-access/manage/functionTools.d.ts +16 -16
  7. package/dist/data-access/manage/skills.d.ts +14 -14
  8. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  9. package/dist/data-access/manage/subAgentRelations.d.ts +32 -32
  10. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  11. package/dist/data-access/manage/subAgents.d.ts +12 -12
  12. package/dist/data-access/manage/tools.d.ts +21 -21
  13. package/dist/data-access/manage/triggers.d.ts +5 -5
  14. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  15. package/dist/data-access/runtime/apps.d.ts +8 -8
  16. package/dist/data-access/runtime/conversations.d.ts +28 -28
  17. package/dist/data-access/runtime/events.d.ts +5 -5
  18. package/dist/data-access/runtime/feedback.d.ts +6 -6
  19. package/dist/data-access/runtime/messages.d.ts +15 -15
  20. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  21. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  22. package/dist/data-access/runtime/tasks.d.ts +6 -6
  23. package/dist/db/manage/manage-schema.d.ts +382 -382
  24. package/dist/db/runtime/runtime-schema.d.ts +411 -411
  25. package/dist/utils/error.d.ts +51 -51
  26. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  27. package/dist/validation/schemas/skills.d.ts +29 -29
  28. package/dist/validation/schemas.d.ts +2103 -2103
  29. package/package.json +1 -1
@@ -9,15 +9,15 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
13
+ projectId: string;
12
14
  id: string;
15
+ agentId: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
- relationType: string | null;
19
18
  sourceSubAgentId: string;
20
19
  targetSubAgentId: string | null;
20
+ relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -44,28 +44,28 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ tenantId: string;
48
+ projectId: string;
47
49
  id: string;
50
+ agentId: string;
48
51
  createdAt: string;
49
52
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
- relationType: string | null;
54
53
  sourceSubAgentId: string;
55
54
  targetSubAgentId: string | null;
55
+ relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ tenantId: string;
61
+ projectId: string;
60
62
  id: string;
63
+ agentId: string;
61
64
  createdAt: string;
62
65
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
- tenantId: string;
66
- relationType: string | null;
67
66
  sourceSubAgentId: string;
68
67
  targetSubAgentId: string | null;
68
+ relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -126,15 +126,15 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
+ tenantId: string;
130
+ projectId: string;
129
131
  id: string;
132
+ agentId: string;
130
133
  createdAt: string;
131
134
  updatedAt: string;
132
- agentId: string;
133
- projectId: string;
134
- tenantId: string;
135
- relationType: string | null;
136
135
  sourceSubAgentId: string;
137
136
  targetSubAgentId: string | null;
137
+ relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -145,29 +145,29 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
+ tenantId: string;
149
+ projectId: string;
148
150
  id: string;
151
+ agentId: string;
149
152
  createdAt: string;
150
153
  updatedAt: string;
151
- agentId: string;
152
- projectId: string;
153
- tenantId: string;
154
- relationType: string | null;
155
154
  sourceSubAgentId: string;
156
155
  targetSubAgentId: string | null;
156
+ relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
+ tenantId: string;
163
+ projectId: string;
162
164
  id: string;
165
+ agentId: string;
163
166
  createdAt: string;
164
167
  updatedAt: string;
165
- agentId: string;
166
- projectId: string;
167
- tenantId: string;
168
- relationType: string | null;
169
168
  sourceSubAgentId: string;
170
169
  targetSubAgentId: string | null;
170
+ relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -204,14 +204,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
+ tenantId: string;
208
+ projectId: string;
207
209
  id: string;
208
- createdAt: string;
209
- updatedAt: string;
210
210
  agentId: string;
211
- projectId: string;
212
- tenantId: string;
213
211
  subAgentId: string;
214
212
  toolId: string;
213
+ createdAt: string;
214
+ updatedAt: string;
215
215
  headers: Record<string, string> | null;
216
216
  selectedTools: string[] | null;
217
217
  toolPolicies: Record<string, {
@@ -248,14 +248,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
+ tenantId: string;
252
+ projectId: string;
251
253
  id: string;
252
- createdAt: string;
253
- updatedAt: string;
254
254
  agentId: string;
255
- projectId: string;
256
- tenantId: string;
257
255
  subAgentId: string;
258
256
  toolId: string;
257
+ createdAt: string;
258
+ updatedAt: string;
259
259
  headers: Record<string, string> | null;
260
260
  selectedTools: string[] | null;
261
261
  toolPolicies: Record<string, {
@@ -9,13 +9,13 @@ 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
- createdAt: string;
14
- updatedAt: string;
15
15
  agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
16
  subAgentId: string;
17
+ createdAt: string;
18
+ updatedAt: string;
19
19
  headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -44,26 +44,26 @@ 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
- createdAt: string;
49
- updatedAt: string;
50
50
  agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
51
  subAgentId: string;
52
+ createdAt: string;
53
+ updatedAt: string;
54
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
+ tenantId: string;
61
+ projectId: string;
60
62
  id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
63
  agentId: string;
64
- projectId: string;
65
- tenantId: string;
66
64
  subAgentId: string;
65
+ createdAt: string;
66
+ updatedAt: string;
67
67
  headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -222,13 +222,13 @@ 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
- createdAt: string;
227
- updatedAt: string;
228
228
  agentId: string;
229
- projectId: string;
230
- tenantId: string;
231
229
  subAgentId: string;
230
+ createdAt: string;
231
+ updatedAt: string;
232
232
  headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
@@ -239,13 +239,13 @@ 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
- createdAt: string;
244
- updatedAt: string;
245
245
  agentId: string;
246
- projectId: string;
247
- tenantId: string;
248
246
  subAgentId: string;
247
+ createdAt: string;
248
+ updatedAt: string;
249
249
  headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
@@ -260,13 +260,13 @@ 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
- createdAt: string;
265
- updatedAt: string;
266
266
  agentId: string;
267
- projectId: string;
268
- tenantId: string;
269
267
  subAgentId: string;
268
+ createdAt: string;
269
+ updatedAt: string;
270
270
  headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
@@ -9,14 +9,14 @@ 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;
14
- createdAt: string;
15
- updatedAt: string;
16
16
  description: string | null;
17
17
  agentId: string;
18
- projectId: string;
19
- tenantId: string;
18
+ createdAt: string;
19
+ updatedAt: string;
20
20
  prompt: string | null;
21
21
  models: {
22
22
  base?: {
@@ -46,14 +46,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
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;
51
- createdAt: string;
52
- updatedAt: string;
53
53
  description: string | null;
54
54
  agentId: string;
55
- projectId: string;
56
- tenantId: string;
55
+ createdAt: string;
56
+ updatedAt: string;
57
57
  prompt: string | null;
58
58
  models: {
59
59
  base?: {
@@ -127,14 +127,14 @@ 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;
132
- createdAt: string;
133
- updatedAt: string;
134
134
  description: string | null;
135
135
  agentId: string;
136
- projectId: string;
137
- tenantId: string;
136
+ createdAt: string;
137
+ updatedAt: string;
138
138
  prompt: string | null;
139
139
  models: {
140
140
  base?: {
@@ -20,13 +20,13 @@ 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;
27
+ description: string | null;
25
28
  createdAt: string;
26
29
  updatedAt: string;
27
- description: string | null;
28
- projectId: string;
29
- tenantId: string;
30
30
  headers: Record<string, string> | null;
31
31
  config: {
32
32
  type: "mcp";
@@ -78,13 +78,13 @@ 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;
85
+ description: string | null;
83
86
  createdAt: string;
84
87
  updatedAt: string;
85
- description: string | null;
86
- projectId: string;
87
- tenantId: string;
88
88
  headers: Record<string, string> | null;
89
89
  config: {
90
90
  type: "mcp";
@@ -135,14 +135,14 @@ 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
- createdAt: string;
140
- updatedAt: string;
141
141
  agentId: string;
142
- projectId: string;
143
- tenantId: string;
144
142
  subAgentId: string;
145
143
  toolId: string;
144
+ createdAt: string;
145
+ updatedAt: string;
146
146
  headers: Record<string, string> | null;
147
147
  selectedTools: string[] | null;
148
148
  toolPolicies: Record<string, {
@@ -154,14 +154,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
+ tenantId: string;
158
+ projectId: string;
157
159
  id: string;
158
- createdAt: string;
159
- updatedAt: string;
160
160
  agentId: string;
161
- projectId: string;
162
- tenantId: string;
163
161
  subAgentId: string;
164
162
  toolId: string;
163
+ createdAt: string;
164
+ updatedAt: string;
165
165
  headers: Record<string, string> | null;
166
166
  selectedTools: string[] | null;
167
167
  toolPolicies: Record<string, {
@@ -182,14 +182,14 @@ 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
- createdAt: string;
187
- updatedAt: string;
188
188
  agentId: string;
189
- projectId: string;
190
- tenantId: string;
191
189
  subAgentId: string;
192
190
  toolId: string;
191
+ createdAt: string;
192
+ updatedAt: string;
193
193
  headers: Record<string, string> | null;
194
194
  selectedTools: string[] | null;
195
195
  toolPolicies: Record<string, {
@@ -202,13 +202,13 @@ 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;
209
+ description: string | null;
207
210
  createdAt: string;
208
211
  updatedAt: string;
209
- description: string | null;
210
- projectId: string;
211
- tenantId: string;
212
212
  headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";
@@ -37,8 +37,8 @@ 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
43
  source: "query" | "body" | "header";
44
44
  key: string;
@@ -131,11 +131,11 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
+ tenantId: string;
135
+ projectId: string;
136
+ agentId: string;
134
137
  createdAt: string;
135
138
  userId: string;
136
- agentId: string;
137
- projectId: string;
138
- tenantId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,28 +8,28 @@ 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;
15
+ agentId: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
18
  expiresAt: string | null;
16
- agentId: string;
17
- projectId: string;
18
- tenantId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
22
22
  lastUsedAt: string | null;
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;
29
+ agentId: string;
27
30
  createdAt: string;
28
31
  updatedAt: string;
29
32
  expiresAt: string | null;
30
- agentId: string;
31
- projectId: string;
32
- tenantId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -39,14 +39,14 @@ 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;
46
+ agentId: string;
44
47
  createdAt: string;
45
48
  updatedAt: string;
46
49
  expiresAt: string | null;
47
- agentId: string;
48
- projectId: string;
49
- tenantId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -66,14 +66,14 @@ 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;
73
+ agentId: string;
71
74
  createdAt: string;
72
75
  updatedAt: string;
73
76
  expiresAt: string | null;
74
- agentId: string;
75
- projectId: string;
76
- tenantId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -5,14 +5,14 @@ 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
+ tenantId: string | null;
9
+ projectId: string | null;
8
10
  id: string;
9
11
  name: string;
12
+ description: string | null;
13
+ type: AppType;
10
14
  createdAt: string;
11
15
  updatedAt: string;
12
- type: AppType;
13
- description: string | null;
14
- projectId: string | null;
15
- tenantId: string | null;
16
16
  enabled: boolean;
17
17
  prompt: string | null;
18
18
  config: {
@@ -74,14 +74,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
74
74
  };
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
+ tenantId: string | null;
78
+ projectId: string | null;
77
79
  id: string;
78
80
  name: string;
81
+ description: string | null;
82
+ type: AppType;
79
83
  createdAt: string;
80
84
  updatedAt: string;
81
- type: AppType;
82
- description: string | null;
83
- projectId: string | null;
84
- tenantId: string | null;
85
85
  enabled: boolean;
86
86
  prompt: string | null;
87
87
  config: {
@@ -15,7 +15,13 @@ 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;
21
+ metadata: ConversationMetadata | null;
22
+ properties: Record<string, unknown> | null;
23
+ title: string | null;
24
+ agentId: string | null;
19
25
  createdAt: string;
20
26
  updatedAt: string;
21
27
  ref: {
@@ -24,15 +30,9 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
24
30
  hash: string;
25
31
  } | null;
26
32
  userId: string | null;
27
- metadata: ConversationMetadata | null;
28
- properties: Record<string, unknown> | null;
29
- title: string | null;
30
- agentId: string | null;
31
- projectId: string;
32
- tenantId: string;
33
+ userProperties: Record<string, unknown> | null;
33
34
  activeSubAgentId: string;
34
35
  lastContextResolution: string | null;
35
- userProperties: Record<string, unknown> | null;
36
36
  }>;
37
37
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
@@ -90,7 +90,13 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
90
90
  scopes: ProjectScopeConfig;
91
91
  conversationId: string;
92
92
  }) => Promise<{
93
+ tenantId: string;
94
+ projectId: string;
93
95
  id: string;
96
+ metadata: ConversationMetadata | null;
97
+ properties: Record<string, unknown> | null;
98
+ title: string | null;
99
+ agentId: string | null;
94
100
  createdAt: string;
95
101
  updatedAt: string;
96
102
  ref: {
@@ -99,15 +105,9 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
99
105
  hash: string;
100
106
  } | null;
101
107
  userId: string | null;
102
- metadata: ConversationMetadata | null;
103
- properties: Record<string, unknown> | null;
104
- title: string | null;
105
- agentId: string | null;
106
- projectId: string;
107
- tenantId: string;
108
+ userProperties: Record<string, unknown> | null;
108
109
  activeSubAgentId: string;
109
110
  lastContextResolution: string | null;
110
- userProperties: Record<string, unknown> | null;
111
111
  } | undefined>;
112
112
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
113
113
  activeSubAgentId: string;
@@ -130,7 +130,13 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
130
130
  userProperties?: Record<string, unknown> | null | undefined;
131
131
  properties?: Record<string, unknown> | null | undefined;
132
132
  } | {
133
+ tenantId: string;
134
+ projectId: string;
133
135
  id: string;
136
+ metadata: ConversationMetadata | null;
137
+ properties: Record<string, unknown> | null;
138
+ title: string | null;
139
+ agentId: string | null;
134
140
  createdAt: string;
135
141
  updatedAt: string;
136
142
  ref: {
@@ -139,15 +145,9 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
139
145
  hash: string;
140
146
  } | null;
141
147
  userId: string | null;
142
- metadata: ConversationMetadata | null;
143
- properties: Record<string, unknown> | null;
144
- title: string | null;
145
- agentId: string | null;
146
- projectId: string;
147
- tenantId: string;
148
+ userProperties: Record<string, unknown> | null;
148
149
  activeSubAgentId: string;
149
150
  lastContextResolution: string | null;
150
- userProperties: Record<string, unknown> | null;
151
151
  }>;
152
152
  /**
153
153
  * Get conversation history with filtering and context management
@@ -164,7 +164,13 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
164
164
  scopes: ProjectScopeConfig;
165
165
  conversationId: string;
166
166
  }) => Promise<{
167
+ tenantId: string;
168
+ projectId: string;
167
169
  id: string;
170
+ metadata: ConversationMetadata | null;
171
+ properties: Record<string, unknown> | null;
172
+ title: string | null;
173
+ agentId: string | null;
168
174
  createdAt: string;
169
175
  updatedAt: string;
170
176
  ref: {
@@ -173,15 +179,9 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
173
179
  hash: string;
174
180
  } | null;
175
181
  userId: string | null;
176
- metadata: ConversationMetadata | null;
177
- properties: Record<string, unknown> | null;
178
- title: string | null;
179
- agentId: string | null;
180
- projectId: string;
181
- tenantId: string;
182
+ userProperties: Record<string, unknown> | null;
182
183
  activeSubAgentId: string;
183
184
  lastContextResolution: string | null;
184
- userProperties: Record<string, unknown> | null;
185
185
  } | undefined>;
186
186
  /**
187
187
  * Set active agent for a conversation (upsert operation)
@@ -7,15 +7,15 @@ import { EventInsert } from "../../types/entities.js";
7
7
  //#region src/data-access/runtime/events.d.ts
8
8
  declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
9
9
  row: {
10
+ tenantId: string;
11
+ projectId: string;
10
12
  id: string;
11
- createdAt: string;
12
- updatedAt: string;
13
- type: string;
14
13
  metadata: Record<string, unknown> | null;
14
+ type: string;
15
15
  properties: Record<string, unknown> | null;
16
16
  agentId: string | null;
17
- projectId: string;
18
- tenantId: string;
17
+ createdAt: string;
18
+ updatedAt: string;
19
19
  conversationId: string | null;
20
20
  userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;