@inkeep/agents-core 0.56.2 → 0.57.0

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 (47) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +28 -28
  4. package/dist/auth/auth.js +6 -0
  5. package/dist/auth/permissions.d.ts +13 -13
  6. package/dist/client-exports.d.ts +2 -2
  7. package/dist/client-exports.js +2 -2
  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 +26 -26
  11. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  12. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  13. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  14. package/dist/data-access/manage/functionTools.d.ts +14 -14
  15. package/dist/data-access/manage/skills.d.ts +19 -19
  16. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  17. package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
  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 +18 -18
  21. package/dist/data-access/manage/triggers.d.ts +2 -2
  22. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  23. package/dist/data-access/runtime/conversations.d.ts +24 -24
  24. package/dist/data-access/runtime/messages.d.ts +21 -21
  25. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  26. package/dist/data-access/runtime/tasks.d.ts +6 -6
  27. package/dist/data-access/runtime/userProfiles.d.ts +14 -0
  28. package/dist/data-access/runtime/userProfiles.js +45 -0
  29. package/dist/db/manage/manage-schema.d.ts +361 -361
  30. package/dist/db/runtime/runtime-schema.d.ts +384 -270
  31. package/dist/db/runtime/runtime-schema.js +14 -1
  32. package/dist/index.d.ts +5 -4
  33. package/dist/index.js +4 -3
  34. package/dist/types/entities.d.ts +7 -2
  35. package/dist/types/index.d.ts +2 -2
  36. package/dist/utils/error.d.ts +51 -51
  37. package/dist/utils/model-factory.d.ts +10 -2
  38. package/dist/utils/model-factory.js +21 -13
  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.d.ts +2159 -1914
  43. package/dist/validation/schemas.js +16 -2
  44. package/drizzle/runtime/0019_easy_bedlam.sql +24 -0
  45. package/drizzle/runtime/meta/0019_snapshot.json +4003 -0
  46. package/drizzle/runtime/meta/_journal.json +7 -0
  47. package/package.json +1 -1
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- agentId: string;
13
- projectId: string;
14
- tenantId: string;
15
12
  id: string;
13
+ tenantId: string;
16
14
  createdAt: string;
17
15
  updatedAt: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- agentId: string;
48
- projectId: string;
49
- tenantId: string;
50
47
  id: string;
48
+ tenantId: string;
51
49
  createdAt: string;
52
50
  updatedAt: string;
51
+ projectId: string;
52
+ agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- agentId: string;
61
- projectId: string;
62
- tenantId: string;
63
60
  id: string;
61
+ tenantId: string;
64
62
  createdAt: string;
65
63
  updatedAt: string;
64
+ projectId: string;
65
+ agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
- agentId: string;
130
- projectId: string;
131
- tenantId: string;
132
129
  id: string;
130
+ tenantId: string;
133
131
  createdAt: string;
134
132
  updatedAt: string;
133
+ projectId: string;
134
+ agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
- agentId: string;
149
- projectId: string;
150
- tenantId: string;
151
148
  id: string;
149
+ tenantId: string;
152
150
  createdAt: string;
153
151
  updatedAt: string;
152
+ projectId: string;
153
+ agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
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
- agentId: string;
163
- projectId: string;
164
- tenantId: string;
165
162
  id: string;
163
+ tenantId: string;
166
164
  createdAt: string;
167
165
  updatedAt: string;
166
+ projectId: string;
167
+ agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -204,12 +204,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- agentId: string;
208
- projectId: string;
209
- tenantId: string;
210
207
  id: string;
208
+ tenantId: string;
211
209
  createdAt: string;
212
210
  updatedAt: string;
211
+ projectId: string;
212
+ agentId: string;
213
213
  toolId: string;
214
214
  headers: Record<string, string> | null;
215
215
  toolPolicies: Record<string, {
@@ -248,12 +248,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- agentId: string;
252
- projectId: string;
253
- tenantId: string;
254
251
  id: string;
252
+ tenantId: string;
255
253
  createdAt: string;
256
254
  updatedAt: string;
255
+ projectId: string;
256
+ agentId: string;
257
257
  toolId: string;
258
258
  headers: Record<string, string> | null;
259
259
  toolPolicies: Record<string, {
@@ -9,12 +9,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- agentId: string;
13
- projectId: string;
14
- tenantId: string;
15
12
  id: string;
13
+ tenantId: string;
16
14
  createdAt: string;
17
15
  updatedAt: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  headers: Record<string, string> | null;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
@@ -44,12 +44,12 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- agentId: string;
48
- projectId: string;
49
- tenantId: string;
50
47
  id: string;
48
+ tenantId: string;
51
49
  createdAt: string;
52
50
  updatedAt: string;
51
+ projectId: string;
52
+ agentId: string;
53
53
  headers: Record<string, string> | null;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
@@ -57,12 +57,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- agentId: string;
61
- projectId: string;
62
- tenantId: string;
63
60
  id: string;
61
+ tenantId: string;
64
62
  createdAt: string;
65
63
  updatedAt: string;
64
+ projectId: string;
65
+ agentId: string;
66
66
  headers: Record<string, string> | null;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
@@ -210,12 +210,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
- agentId: string;
214
- projectId: string;
215
- tenantId: string;
216
213
  id: string;
214
+ tenantId: string;
217
215
  createdAt: string;
218
216
  updatedAt: string;
217
+ projectId: string;
218
+ agentId: string;
219
219
  headers: Record<string, string> | null;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
@@ -227,12 +227,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
- agentId: string;
231
- projectId: string;
232
- tenantId: string;
233
230
  id: string;
231
+ tenantId: string;
234
232
  createdAt: string;
235
233
  updatedAt: string;
234
+ projectId: string;
235
+ agentId: string;
236
236
  headers: Record<string, string> | null;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
@@ -248,12 +248,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
- agentId: string;
252
- projectId: string;
253
- tenantId: string;
254
251
  id: string;
252
+ tenantId: string;
255
253
  createdAt: string;
256
254
  updatedAt: string;
255
+ projectId: string;
256
+ agentId: string;
257
257
  headers: Record<string, string> | null;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
@@ -9,14 +9,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- agentId: string;
13
- projectId: string;
14
- tenantId: string;
15
12
  id: string;
13
+ tenantId: string;
14
+ createdAt: string;
16
15
  name: string;
17
16
  description: string | null;
18
- prompt: string | null;
19
- conversationHistoryConfig: ConversationHistoryConfig | null;
20
17
  models: {
21
18
  base?: {
22
19
  model?: string | undefined;
@@ -34,20 +31,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
31
  stopWhen: {
35
32
  stepCountIs?: number | undefined;
36
33
  } | null;
37
- createdAt: string;
38
34
  updatedAt: string;
35
+ projectId: string;
36
+ prompt: string | null;
37
+ agentId: string;
38
+ conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- agentId: string;
44
- projectId: string;
45
- tenantId: string;
46
43
  id: string;
44
+ tenantId: string;
45
+ createdAt: string;
47
46
  name: string;
48
47
  description: string | null;
49
- prompt: string | null;
50
- conversationHistoryConfig: ConversationHistoryConfig | null;
51
48
  models: {
52
49
  base?: {
53
50
  model?: string | undefined;
@@ -65,8 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
65
62
  stopWhen: {
66
63
  stepCountIs?: number | undefined;
67
64
  } | null;
68
- createdAt: string;
69
65
  updatedAt: string;
66
+ projectId: string;
67
+ prompt: string | null;
68
+ agentId: string;
69
+ conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -109,14 +109,11 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- agentId: string;
113
- projectId: string;
114
- tenantId: string;
115
112
  id: string;
113
+ tenantId: string;
114
+ createdAt: string;
116
115
  name: string;
117
116
  description: string | null;
118
- prompt: string | null;
119
- conversationHistoryConfig: ConversationHistoryConfig | null;
120
117
  models: {
121
118
  base?: {
122
119
  model?: string | undefined;
@@ -134,8 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
134
131
  stopWhen: {
135
132
  stepCountIs?: number | undefined;
136
133
  } | null;
137
- createdAt: string;
138
134
  updatedAt: string;
135
+ projectId: string;
136
+ prompt: string | null;
137
+ agentId: string;
138
+ conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -19,13 +19,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  scopes: ProjectScopeConfig;
20
20
  toolId: string;
21
21
  }) => Promise<{
22
- projectId: string;
23
- tenantId: string;
24
22
  id: string;
23
+ tenantId: string;
24
+ createdAt: string;
25
25
  name: string;
26
26
  description: string | null;
27
- createdAt: string;
28
27
  updatedAt: string;
28
+ projectId: string;
29
29
  headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
@@ -77,13 +77,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
77
77
  };
78
78
  }>;
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
- projectId: string;
81
- tenantId: string;
82
80
  id: string;
81
+ tenantId: string;
82
+ createdAt: string;
83
83
  name: string;
84
84
  description: string | null;
85
- createdAt: string;
86
85
  updatedAt: string;
86
+ projectId: string;
87
87
  headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
@@ -134,12 +134,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  needsApproval?: boolean;
135
135
  }> | null;
136
136
  }) => Promise<{
137
- agentId: string;
138
- projectId: string;
139
- tenantId: string;
140
137
  id: string;
138
+ tenantId: string;
141
139
  createdAt: string;
142
140
  updatedAt: string;
141
+ projectId: string;
142
+ agentId: string;
143
143
  toolId: string;
144
144
  headers: Record<string, string> | null;
145
145
  toolPolicies: Record<string, {
@@ -153,12 +153,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
153
153
  subAgentId: string;
154
154
  toolId: string;
155
155
  }) => Promise<{
156
- agentId: string;
157
- projectId: string;
158
- tenantId: string;
159
156
  id: string;
157
+ tenantId: string;
160
158
  createdAt: string;
161
159
  updatedAt: string;
160
+ projectId: string;
161
+ agentId: string;
162
162
  toolId: string;
163
163
  headers: Record<string, string> | null;
164
164
  toolPolicies: Record<string, {
@@ -181,12 +181,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  }> | null;
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
- agentId: string;
185
- projectId: string;
186
- tenantId: string;
187
184
  id: string;
185
+ tenantId: string;
188
186
  createdAt: string;
189
187
  updatedAt: string;
188
+ projectId: string;
189
+ agentId: string;
190
190
  toolId: string;
191
191
  headers: Record<string, string> | null;
192
192
  toolPolicies: Record<string, {
@@ -201,13 +201,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
201
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  data: ToolInsert;
203
203
  }) => Promise<{
204
- projectId: string;
205
- tenantId: string;
206
204
  id: string;
205
+ tenantId: string;
206
+ createdAt: string;
207
207
  name: string;
208
208
  description: string | null;
209
- createdAt: string;
210
209
  updatedAt: string;
210
+ projectId: string;
211
211
  headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
@@ -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" | "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;
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- agentId: string;
12
- projectId: string;
13
- tenantId: string;
14
11
  id: string;
15
- name: string | null;
12
+ tenantId: string;
16
13
  createdAt: string;
14
+ name: string | null;
17
15
  updatedAt: string;
18
- expiresAt: string | null;
16
+ projectId: string;
17
+ agentId: string;
19
18
  publicId: string;
20
19
  keyHash: string;
21
20
  keyPrefix: string;
22
21
  lastUsedAt: string | null;
22
+ expiresAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- agentId: string;
26
- projectId: string;
27
- tenantId: string;
28
25
  id: string;
29
- name: string | null;
26
+ tenantId: string;
30
27
  createdAt: string;
28
+ name: string | null;
31
29
  updatedAt: string;
32
- expiresAt: string | null;
30
+ projectId: string;
31
+ agentId: string;
33
32
  publicId: string;
34
33
  keyHash: string;
35
34
  keyPrefix: string;
36
35
  lastUsedAt: string | null;
36
+ expiresAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
- agentId: string;
43
- projectId: string;
44
- tenantId: string;
45
42
  id: string;
46
- name: string | null;
43
+ tenantId: string;
47
44
  createdAt: string;
45
+ name: string | null;
48
46
  updatedAt: string;
49
- expiresAt: string | null;
47
+ projectId: string;
48
+ agentId: string;
50
49
  publicId: string;
51
50
  keyHash: string;
52
51
  keyPrefix: string;
53
52
  lastUsedAt: string | null;
53
+ expiresAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- agentId: string;
70
- projectId: string;
71
- tenantId: string;
72
69
  id: string;
73
- name: string | null;
70
+ tenantId: string;
74
71
  createdAt: string;
72
+ name: string | null;
75
73
  updatedAt: string;
76
- expiresAt: string | null;
74
+ projectId: string;
75
+ agentId: string;
77
76
  publicId: string;
78
77
  keyHash: string;
79
78
  keyPrefix: string;
80
79
  lastUsedAt: string | null;
80
+ expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -16,15 +16,15 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  total: number;
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
- agentId: string | null;
20
- projectId: string;
21
- tenantId: string;
22
- userId: string | null;
23
19
  id: string;
24
- title: string | null;
20
+ tenantId: string;
25
21
  createdAt: string;
26
- updatedAt: string;
27
22
  metadata: ConversationMetadata | null;
23
+ title: string | null;
24
+ updatedAt: string;
25
+ projectId: string;
26
+ agentId: string | null;
27
+ userId: string | null;
28
28
  ref: {
29
29
  type: "commit" | "tag" | "branch";
30
30
  name: string;
@@ -85,15 +85,15 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  scopes: ProjectScopeConfig;
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
- agentId: string | null;
89
- projectId: string;
90
- tenantId: string;
91
- userId: string | null;
92
88
  id: string;
93
- title: string | null;
89
+ tenantId: string;
94
90
  createdAt: string;
95
- updatedAt: string;
96
91
  metadata: ConversationMetadata | null;
92
+ title: string | null;
93
+ updatedAt: string;
94
+ projectId: string;
95
+ agentId: string | null;
96
+ userId: string | null;
97
97
  ref: {
98
98
  type: "commit" | "tag" | "branch";
99
99
  name: string;
@@ -121,15 +121,15 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  metadata?: ConversationMetadata | null | undefined;
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
- agentId: string | null;
125
- projectId: string;
126
- tenantId: string;
127
- userId: string | null;
128
124
  id: string;
129
- title: string | null;
125
+ tenantId: string;
130
126
  createdAt: string;
131
- updatedAt: string;
132
127
  metadata: ConversationMetadata | null;
128
+ title: string | null;
129
+ updatedAt: string;
130
+ projectId: string;
131
+ agentId: string | null;
132
+ userId: string | null;
133
133
  ref: {
134
134
  type: "commit" | "tag" | "branch";
135
135
  name: string;
@@ -153,15 +153,15 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  scopes: ProjectScopeConfig;
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
- agentId: string | null;
157
- projectId: string;
158
- tenantId: string;
159
- userId: string | null;
160
156
  id: string;
161
- title: string | null;
157
+ tenantId: string;
162
158
  createdAt: string;
163
- updatedAt: string;
164
159
  metadata: ConversationMetadata | null;
160
+ title: string | null;
161
+ updatedAt: string;
162
+ projectId: string;
163
+ agentId: string | null;
164
+ userId: string | null;
165
165
  ref: {
166
166
  type: "commit" | "tag" | "branch";
167
167
  name: string;
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- projectId: string;
14
- tenantId: string;
15
13
  id: string;
14
+ tenantId: string;
16
15
  createdAt: string;
17
- updatedAt: string;
18
16
  metadata: MessageMetadata | null;
19
17
  content: MessageContent;
20
- role: string;
21
- conversationId: string;
18
+ updatedAt: string;
19
+ projectId: string;
22
20
  fromSubAgentId: string | null;
23
21
  toSubAgentId: string | null;
24
22
  fromExternalAgentId: string | null;
25
23
  toExternalAgentId: string | null;
24
+ taskId: string | null;
25
+ a2aTaskId: string | null;
26
+ conversationId: string;
27
+ role: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -141,26 +141,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
141
  id: string;
142
142
  }[]>;
143
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
144
- projectId: string;
145
- tenantId: string;
146
144
  id: string;
145
+ tenantId: string;
147
146
  createdAt: string;
148
- updatedAt: string;
149
147
  metadata: MessageMetadata | null;
150
148
  content: MessageContent;
151
- role: string;
152
- conversationId: string;
149
+ updatedAt: string;
150
+ projectId: string;
153
151
  fromSubAgentId: string | null;
154
152
  toSubAgentId: string | null;
155
153
  fromExternalAgentId: string | null;
156
154
  toExternalAgentId: string | null;
155
+ taskId: string | null;
156
+ a2aTaskId: string | null;
157
+ conversationId: string;
158
+ role: string;
157
159
  fromTeamAgentId: string | null;
158
160
  toTeamAgentId: string | null;
159
161
  visibility: string;
160
162
  messageType: string;
161
- taskId: string | null;
162
163
  parentMessageId: string | null;
163
- a2aTaskId: string | null;
164
164
  a2aSessionId: string | null;
165
165
  }>;
166
166
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -194,26 +194,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
194
  scopes: ProjectScopeConfig;
195
195
  messageId: string;
196
196
  }) => Promise<{
197
- projectId: string;
198
- tenantId: string;
199
197
  id: string;
198
+ tenantId: string;
200
199
  createdAt: string;
201
- updatedAt: string;
202
200
  metadata: MessageMetadata | null;
203
201
  content: MessageContent;
204
- role: string;
205
- conversationId: string;
202
+ updatedAt: string;
203
+ projectId: string;
206
204
  fromSubAgentId: string | null;
207
205
  toSubAgentId: string | null;
208
206
  fromExternalAgentId: string | null;
209
207
  toExternalAgentId: string | null;
208
+ taskId: string | null;
209
+ a2aTaskId: string | null;
210
+ conversationId: string;
211
+ role: string;
210
212
  fromTeamAgentId: string | null;
211
213
  toTeamAgentId: string | null;
212
214
  visibility: string;
213
215
  messageType: string;
214
- taskId: string | null;
215
216
  parentMessageId: string | null;
216
- a2aTaskId: string | null;
217
217
  a2aSessionId: string | null;
218
218
  }>;
219
219
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {