@inkeep/agents-core 0.0.0-dev-20260408022324 → 0.0.0-dev-20260408074257

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 (36) hide show
  1. package/dist/auth/auth-schema.d.ts +108 -108
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +6 -6
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/data-access/manage/agentFull.d.ts +2 -0
  6. package/dist/data-access/manage/agentFull.js +12 -12
  7. package/dist/data-access/manage/agents.d.ts +16 -16
  8. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  9. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  10. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  11. package/dist/data-access/manage/functionTools.d.ts +8 -8
  12. package/dist/data-access/manage/skills.d.ts +8 -8
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  14. package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  16. package/dist/data-access/manage/subAgents.d.ts +12 -12
  17. package/dist/data-access/manage/tools.d.ts +12 -12
  18. package/dist/data-access/manage/triggers.d.ts +3 -3
  19. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  20. package/dist/data-access/runtime/apps.d.ts +4 -4
  21. package/dist/data-access/runtime/conversations.d.ts +12 -12
  22. package/dist/data-access/runtime/feedback.d.ts +2 -2
  23. package/dist/data-access/runtime/messages.d.ts +21 -21
  24. package/dist/data-access/runtime/tasks.d.ts +3 -3
  25. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  26. package/dist/db/manage/manage-schema.d.ts +451 -451
  27. package/dist/db/runtime/runtime-schema.d.ts +405 -405
  28. package/dist/dolt/ref-middleware.js +2 -2
  29. package/dist/middleware/no-auth.d.ts +2 -2
  30. package/dist/utils/jwt-helpers.js +1 -1
  31. package/dist/utils/third-party-mcp-servers/composio-client.js +10 -10
  32. package/dist/utils/tracer-factory.js +1 -1
  33. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  34. package/dist/validation/schemas/skills.d.ts +54 -54
  35. package/dist/validation/schemas.d.ts +2186 -2186
  36. package/package.json +1 -1
@@ -11,8 +11,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  }) => Promise<{
12
12
  tenantId: string;
13
13
  projectId: string;
14
- agentId: string;
15
14
  id: string;
15
+ agentId: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
18
  sourceSubAgentId: string;
@@ -46,8 +46,8 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  }) => Promise<{
47
47
  tenantId: string;
48
48
  projectId: string;
49
- agentId: string;
50
49
  id: string;
50
+ agentId: string;
51
51
  createdAt: string;
52
52
  updatedAt: string;
53
53
  sourceSubAgentId: string;
@@ -59,8 +59,8 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  }) => Promise<{
60
60
  tenantId: string;
61
61
  projectId: string;
62
- agentId: string;
63
62
  id: string;
63
+ agentId: string;
64
64
  createdAt: string;
65
65
  updatedAt: string;
66
66
  sourceSubAgentId: string;
@@ -128,8 +128,8 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  tenantId: string;
130
130
  projectId: string;
131
- agentId: string;
132
131
  id: string;
132
+ agentId: string;
133
133
  createdAt: string;
134
134
  updatedAt: string;
135
135
  sourceSubAgentId: string;
@@ -147,8 +147,8 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  }) => Promise<{
148
148
  tenantId: string;
149
149
  projectId: string;
150
- agentId: string;
151
150
  id: string;
151
+ agentId: string;
152
152
  createdAt: string;
153
153
  updatedAt: string;
154
154
  sourceSubAgentId: string;
@@ -161,8 +161,8 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  tenantId: string;
163
163
  projectId: string;
164
- agentId: string;
165
164
  id: string;
165
+ agentId: string;
166
166
  createdAt: string;
167
167
  updatedAt: string;
168
168
  sourceSubAgentId: string;
@@ -206,17 +206,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  }) => Promise<{
207
207
  tenantId: string;
208
208
  projectId: string;
209
+ id: string;
209
210
  agentId: string;
210
211
  subAgentId: string;
211
212
  toolId: string;
212
- id: string;
213
213
  createdAt: string;
214
214
  updatedAt: string;
215
215
  headers: Record<string, string> | null;
216
- selectedTools: string[] | null;
217
216
  toolPolicies: Record<string, {
218
217
  needsApproval?: boolean;
219
218
  }> | null;
219
+ selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -250,17 +250,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  }) => Promise<{
251
251
  tenantId: string;
252
252
  projectId: string;
253
+ id: string;
253
254
  agentId: string;
254
255
  subAgentId: string;
255
256
  toolId: string;
256
- id: string;
257
257
  createdAt: string;
258
258
  updatedAt: string;
259
259
  headers: Record<string, string> | null;
260
- selectedTools: string[] | null;
261
260
  toolPolicies: Record<string, {
262
261
  needsApproval?: boolean;
263
262
  }> | null;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -11,9 +11,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  }) => Promise<{
12
12
  tenantId: string;
13
13
  projectId: string;
14
+ id: string;
14
15
  agentId: string;
15
16
  subAgentId: string;
16
- id: string;
17
17
  createdAt: string;
18
18
  updatedAt: string;
19
19
  headers: Record<string, string> | null;
@@ -46,9 +46,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  }) => Promise<{
47
47
  tenantId: string;
48
48
  projectId: string;
49
+ id: string;
49
50
  agentId: string;
50
51
  subAgentId: string;
51
- id: string;
52
52
  createdAt: string;
53
53
  updatedAt: string;
54
54
  headers: Record<string, string> | null;
@@ -59,9 +59,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  }) => Promise<{
60
60
  tenantId: string;
61
61
  projectId: string;
62
+ id: string;
62
63
  agentId: string;
63
64
  subAgentId: string;
64
- id: string;
65
65
  createdAt: string;
66
66
  updatedAt: string;
67
67
  headers: Record<string, string> | null;
@@ -224,9 +224,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
224
224
  }) => Promise<{
225
225
  tenantId: string;
226
226
  projectId: string;
227
+ id: string;
227
228
  agentId: string;
228
229
  subAgentId: string;
229
- id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
232
  headers: Record<string, string> | null;
@@ -241,9 +241,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
241
241
  }) => Promise<{
242
242
  tenantId: string;
243
243
  projectId: string;
244
+ id: string;
244
245
  agentId: string;
245
246
  subAgentId: string;
246
- id: string;
247
247
  createdAt: string;
248
248
  updatedAt: string;
249
249
  headers: Record<string, string> | null;
@@ -262,9 +262,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
262
262
  }) => Promise<{
263
263
  tenantId: string;
264
264
  projectId: string;
265
+ id: string;
265
266
  agentId: string;
266
267
  subAgentId: string;
267
- id: string;
268
268
  createdAt: string;
269
269
  updatedAt: string;
270
270
  headers: Record<string, string> | null;
@@ -9,12 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
+ name: string;
12
13
  tenantId: string;
13
14
  projectId: string;
14
- agentId: string;
15
15
  id: string;
16
- name: string;
17
16
  description: string | null;
17
+ agentId: string;
18
+ createdAt: string;
19
+ updatedAt: string;
18
20
  models: {
19
21
  base?: {
20
22
  model?: string | undefined;
@@ -38,20 +40,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
38
40
  stopWhen: {
39
41
  stepCountIs?: number | undefined;
40
42
  } | null;
41
- createdAt: string;
42
- updatedAt: string;
43
43
  prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
48
48
  }) => Promise<{
49
+ name: string;
49
50
  tenantId: string;
50
51
  projectId: string;
51
- agentId: string;
52
52
  id: string;
53
- name: string;
54
53
  description: string | null;
54
+ agentId: string;
55
+ createdAt: string;
56
+ updatedAt: string;
55
57
  models: {
56
58
  base?: {
57
59
  model?: string | undefined;
@@ -75,8 +77,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
75
77
  stopWhen: {
76
78
  stepCountIs?: number | undefined;
77
79
  } | null;
78
- createdAt: string;
79
- updatedAt: string;
80
80
  prompt: string | null;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
@@ -127,12 +127,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
127
127
  };
128
128
  }>;
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
+ name: string;
130
131
  tenantId: string;
131
132
  projectId: string;
132
- agentId: string;
133
133
  id: string;
134
- name: string;
135
134
  description: string | null;
135
+ agentId: string;
136
+ createdAt: string;
137
+ updatedAt: string;
136
138
  models: {
137
139
  base?: {
138
140
  model?: string | undefined;
@@ -156,8 +158,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
156
158
  stopWhen: {
157
159
  stepCountIs?: number | undefined;
158
160
  } | null;
159
- createdAt: string;
160
- updatedAt: string;
161
161
  prompt: string | null;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
@@ -20,18 +20,18 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
+ name: string;
23
24
  tenantId: string;
24
25
  projectId: string;
25
26
  id: string;
26
- name: string;
27
27
  description: string | null;
28
28
  createdAt: string;
29
29
  updatedAt: string;
30
- credentialReferenceId: string | null;
31
30
  config: {
32
31
  type: "mcp";
33
32
  mcp: ToolMcpConfig;
34
33
  };
34
+ credentialReferenceId: string | null;
35
35
  credentialScope: string;
36
36
  headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
@@ -78,18 +78,18 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
+ name: string;
81
82
  tenantId: string;
82
83
  projectId: string;
83
84
  id: string;
84
- name: string;
85
85
  description: string | null;
86
86
  createdAt: string;
87
87
  updatedAt: string;
88
- credentialReferenceId: string | null;
89
88
  config: {
90
89
  type: "mcp";
91
90
  mcp: ToolMcpConfig;
92
91
  };
92
+ credentialReferenceId: string | null;
93
93
  credentialScope: string;
94
94
  headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
@@ -137,17 +137,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
137
137
  }) => Promise<{
138
138
  tenantId: string;
139
139
  projectId: string;
140
+ id: string;
140
141
  agentId: string;
141
142
  subAgentId: string;
142
143
  toolId: string;
143
- id: string;
144
144
  createdAt: string;
145
145
  updatedAt: string;
146
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;
@@ -156,17 +156,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
156
156
  }) => Promise<{
157
157
  tenantId: string;
158
158
  projectId: string;
159
+ id: string;
159
160
  agentId: string;
160
161
  subAgentId: string;
161
162
  toolId: string;
162
- id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
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)
@@ -184,17 +184,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
184
184
  }) => Promise<{
185
185
  tenantId: string;
186
186
  projectId: string;
187
+ id: string;
187
188
  agentId: string;
188
189
  subAgentId: string;
189
190
  toolId: string;
190
- id: string;
191
191
  createdAt: string;
192
192
  updatedAt: string;
193
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,18 +202,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
+ name: string;
205
206
  tenantId: string;
206
207
  projectId: string;
207
208
  id: string;
208
- name: string;
209
209
  description: string | null;
210
210
  createdAt: string;
211
211
  updatedAt: string;
212
- credentialReferenceId: string | null;
213
212
  config: {
214
213
  type: "mcp";
215
214
  mcp: ToolMcpConfig;
216
215
  };
216
+ credentialReferenceId: string | null;
217
217
  credentialScope: string;
218
218
  headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
@@ -37,10 +37,10 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
37
37
  authentication: unknown;
38
38
  signingSecretCredentialReferenceId: string | null;
39
39
  signatureVerification: {
40
- algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
- encoding: "hex" | "base64";
40
+ algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
41
+ encoding: "base64" | "hex";
42
42
  signature: {
43
- source: "header" | "query" | "body";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
@@ -8,11 +8,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
+ name: string | null;
11
12
  tenantId: string;
12
13
  projectId: string;
13
- agentId: string;
14
14
  id: string;
15
- name: string | null;
15
+ agentId: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
18
  expiresAt: string | null;
@@ -22,11 +22,11 @@ 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;
25
26
  tenantId: string;
26
27
  projectId: string;
27
- agentId: string;
28
28
  id: string;
29
- name: string | null;
29
+ agentId: string;
30
30
  createdAt: string;
31
31
  updatedAt: string;
32
32
  expiresAt: string | null;
@@ -39,11 +39,11 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
+ name: string | null;
42
43
  tenantId: string;
43
44
  projectId: string;
44
- agentId: string;
45
45
  id: string;
46
- name: string | null;
46
+ agentId: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
49
  expiresAt: string | null;
@@ -66,11 +66,11 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
+ name: string | null;
69
70
  tenantId: string;
70
71
  projectId: string;
71
- agentId: string;
72
72
  id: string;
73
- name: string | null;
73
+ agentId: string;
74
74
  createdAt: string;
75
75
  updatedAt: string;
76
76
  expiresAt: string | null;
@@ -6,14 +6,14 @@ 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
+ name: string;
9
10
  tenantId: string | null;
10
11
  projectId: string | null;
11
12
  id: string;
12
- name: string;
13
13
  description: string | null;
14
+ enabled: boolean;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- enabled: boolean;
17
17
  prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
@@ -62,14 +62,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
64
  type: AppType;
65
+ name: string;
65
66
  tenantId: string | null;
66
67
  projectId: string | null;
67
68
  id: string;
68
- name: string;
69
69
  description: string | null;
70
+ enabled: boolean;
70
71
  createdAt: string;
71
72
  updatedAt: string;
72
- enabled: boolean;
73
73
  prompt: string | null;
74
74
  config: {
75
75
  type: "web_client";
@@ -17,18 +17,18 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
18
  tenantId: string;
19
19
  projectId: string;
20
- agentId: string | null;
21
20
  id: string;
21
+ metadata: ConversationMetadata | null;
22
+ title: string | null;
23
+ agentId: string | null;
22
24
  ref: {
23
25
  type: "commit" | "tag" | "branch";
24
26
  name: string;
25
27
  hash: string;
26
28
  } | null;
27
- title: string | null;
28
29
  createdAt: string;
29
30
  updatedAt: string;
30
31
  userId: string | null;
31
- metadata: ConversationMetadata | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -86,18 +86,18 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
86
86
  }) => Promise<{
87
87
  tenantId: string;
88
88
  projectId: string;
89
- agentId: string | null;
90
89
  id: string;
90
+ metadata: ConversationMetadata | null;
91
+ title: string | null;
92
+ agentId: string | null;
91
93
  ref: {
92
94
  type: "commit" | "tag" | "branch";
93
95
  name: string;
94
96
  hash: string;
95
97
  } | null;
96
- title: string | null;
97
98
  createdAt: string;
98
99
  updatedAt: string;
99
100
  userId: string | null;
100
- metadata: ConversationMetadata | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -122,18 +122,18 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
122
122
  } | {
123
123
  tenantId: string;
124
124
  projectId: string;
125
- agentId: string | null;
126
125
  id: string;
126
+ metadata: ConversationMetadata | null;
127
+ title: string | null;
128
+ agentId: string | null;
127
129
  ref: {
128
130
  type: "commit" | "tag" | "branch";
129
131
  name: string;
130
132
  hash: string;
131
133
  } | null;
132
- title: string | null;
133
134
  createdAt: string;
134
135
  updatedAt: string;
135
136
  userId: string | null;
136
- metadata: ConversationMetadata | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -154,18 +154,18 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
154
154
  }) => Promise<{
155
155
  tenantId: string;
156
156
  projectId: string;
157
- agentId: string | null;
158
157
  id: string;
158
+ metadata: ConversationMetadata | null;
159
+ title: string | null;
160
+ agentId: string | null;
159
161
  ref: {
160
162
  type: "commit" | "tag" | "branch";
161
163
  name: string;
162
164
  hash: string;
163
165
  } | null;
164
- title: string | null;
165
166
  createdAt: string;
166
167
  updatedAt: string;
167
168
  userId: string | null;
168
- metadata: ConversationMetadata | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -62,11 +62,11 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
62
62
  tenantId: string;
63
63
  projectId: string;
64
64
  id: string;
65
+ details: string | null;
65
66
  createdAt: string;
66
67
  updatedAt: string;
67
68
  conversationId: string;
68
69
  messageId: string | null;
69
- details: string | null;
70
70
  }>;
71
71
  declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
72
72
  scopes: ProjectScopeConfig;
@@ -91,11 +91,11 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
91
91
  tenantId: string;
92
92
  projectId: string;
93
93
  id: string;
94
+ details: string | null;
94
95
  createdAt: string;
95
96
  updatedAt: string;
96
97
  conversationId: string;
97
98
  messageId: string | null;
98
- details: string | null;
99
99
  }>;
100
100
  //#endregion
101
101
  export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };
@@ -13,23 +13,23 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  tenantId: string;
14
14
  projectId: string;
15
15
  id: string;
16
- createdAt: string;
17
- updatedAt: string;
18
- content: MessageContent;
19
16
  metadata: MessageMetadata | null;
20
- conversationId: string;
21
- role: string;
17
+ content: MessageContent;
22
18
  fromSubAgentId: string | null;
23
19
  toSubAgentId: string | null;
24
20
  fromExternalAgentId: string | null;
25
21
  toExternalAgentId: string | null;
22
+ taskId: string | null;
23
+ a2aTaskId: string | null;
24
+ createdAt: string;
25
+ updatedAt: string;
26
+ role: string;
27
+ conversationId: 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: {
@@ -147,23 +147,23 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
147
147
  tenantId: string;
148
148
  projectId: string;
149
149
  id: string;
150
- createdAt: string;
151
- updatedAt: string;
152
- content: MessageContent;
153
150
  metadata: MessageMetadata | null;
154
- conversationId: string;
155
- role: string;
151
+ content: MessageContent;
156
152
  fromSubAgentId: string | null;
157
153
  toSubAgentId: string | null;
158
154
  fromExternalAgentId: string | null;
159
155
  toExternalAgentId: string | null;
156
+ taskId: string | null;
157
+ a2aTaskId: string | null;
158
+ createdAt: string;
159
+ updatedAt: string;
160
+ role: string;
161
+ conversationId: string;
160
162
  fromTeamAgentId: string | null;
161
163
  toTeamAgentId: string | null;
162
164
  visibility: string;
163
165
  messageType: string;
164
- taskId: string | null;
165
166
  parentMessageId: string | null;
166
- a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -200,23 +200,23 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
200
200
  tenantId: string;
201
201
  projectId: string;
202
202
  id: string;
203
- createdAt: string;
204
- updatedAt: string;
205
- content: MessageContent;
206
203
  metadata: MessageMetadata | null;
207
- conversationId: string;
208
- role: string;
204
+ content: MessageContent;
209
205
  fromSubAgentId: string | null;
210
206
  toSubAgentId: string | null;
211
207
  fromExternalAgentId: string | null;
212
208
  toExternalAgentId: string | null;
209
+ taskId: string | null;
210
+ a2aTaskId: string | null;
211
+ createdAt: string;
212
+ updatedAt: string;
213
+ role: string;
214
+ conversationId: string;
213
215
  fromTeamAgentId: string | null;
214
216
  toTeamAgentId: string | null;
215
217
  visibility: string;
216
218
  messageType: string;
217
- taskId: string | null;
218
219
  parentMessageId: string | null;
219
- a2aTaskId: string | null;
220
220
  a2aSessionId: string | null;
221
221
  }>;
222
222
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -9,9 +9,11 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
10
  tenantId: string;
11
11
  projectId: string;
12
+ id: string;
13
+ metadata: TaskMetadataConfig | null;
12
14
  agentId: string;
13
15
  subAgentId: string;
14
- id: string;
16
+ status: string;
15
17
  ref: {
16
18
  type: "commit" | "tag" | "branch";
17
19
  name: string;
@@ -19,8 +21,6 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
19
21
  } | null;
20
22
  createdAt: string;
21
23
  updatedAt: string;
22
- metadata: TaskMetadataConfig | null;
23
- status: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {