@inkeep/agents-core 0.57.0 → 0.58.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.
@@ -10,9 +10,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
13
  createdAt: string;
15
14
  updatedAt: string;
15
+ tenantId: string;
16
16
  projectId: string;
17
17
  agentId: string;
18
18
  sourceSubAgentId: string;
@@ -45,9 +45,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- tenantId: string;
49
48
  createdAt: string;
50
49
  updatedAt: string;
50
+ tenantId: string;
51
51
  projectId: string;
52
52
  agentId: string;
53
53
  sourceSubAgentId: string;
@@ -58,9 +58,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- tenantId: string;
62
61
  createdAt: string;
63
62
  updatedAt: string;
63
+ tenantId: string;
64
64
  projectId: string;
65
65
  agentId: string;
66
66
  sourceSubAgentId: string;
@@ -127,9 +127,9 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
- tenantId: string;
131
130
  createdAt: string;
132
131
  updatedAt: string;
132
+ tenantId: string;
133
133
  projectId: string;
134
134
  agentId: string;
135
135
  sourceSubAgentId: string;
@@ -146,9 +146,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
- tenantId: string;
150
149
  createdAt: string;
151
150
  updatedAt: string;
151
+ tenantId: string;
152
152
  projectId: string;
153
153
  agentId: string;
154
154
  sourceSubAgentId: string;
@@ -160,9 +160,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
- tenantId: string;
164
163
  createdAt: string;
165
164
  updatedAt: string;
165
+ tenantId: string;
166
166
  projectId: string;
167
167
  agentId: string;
168
168
  sourceSubAgentId: string;
@@ -204,14 +204,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
+ headers: Record<string, string> | null;
207
208
  id: string;
208
- tenantId: string;
209
209
  createdAt: string;
210
210
  updatedAt: string;
211
+ tenantId: string;
211
212
  projectId: string;
212
213
  agentId: string;
213
214
  toolId: string;
214
- headers: Record<string, string> | null;
215
215
  toolPolicies: Record<string, {
216
216
  needsApproval?: boolean;
217
217
  }> | null;
@@ -248,14 +248,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
+ headers: Record<string, string> | null;
251
252
  id: string;
252
- tenantId: string;
253
253
  createdAt: string;
254
254
  updatedAt: string;
255
+ tenantId: string;
255
256
  projectId: string;
256
257
  agentId: string;
257
258
  toolId: string;
258
- headers: Record<string, string> | null;
259
259
  toolPolicies: Record<string, {
260
260
  needsApproval?: boolean;
261
261
  }> | null;
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ headers: Record<string, string> | null;
12
13
  id: string;
13
- tenantId: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
+ tenantId: string;
16
17
  projectId: string;
17
18
  agentId: string;
18
- headers: Record<string, string> | null;
19
19
  subAgentId: string;
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
+ headers: Record<string, string> | null;
47
48
  id: string;
48
- tenantId: string;
49
49
  createdAt: string;
50
50
  updatedAt: string;
51
+ tenantId: string;
51
52
  projectId: string;
52
53
  agentId: string;
53
- headers: Record<string, string> | null;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ headers: Record<string, string> | null;
60
61
  id: string;
61
- tenantId: string;
62
62
  createdAt: string;
63
63
  updatedAt: string;
64
+ tenantId: string;
64
65
  projectId: string;
65
66
  agentId: string;
66
- headers: Record<string, string> | null;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
+ headers: Record<string, string> | null;
213
214
  id: string;
214
- tenantId: string;
215
215
  createdAt: string;
216
216
  updatedAt: string;
217
+ tenantId: string;
217
218
  projectId: string;
218
219
  agentId: string;
219
- headers: Record<string, string> | null;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
+ headers: Record<string, string> | null;
230
231
  id: string;
231
- tenantId: string;
232
232
  createdAt: string;
233
233
  updatedAt: string;
234
+ tenantId: string;
234
235
  projectId: string;
235
236
  agentId: string;
236
- headers: Record<string, string> | null;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
+ headers: Record<string, string> | null;
251
252
  id: string;
252
- tenantId: string;
253
253
  createdAt: string;
254
254
  updatedAt: string;
255
+ tenantId: string;
255
256
  projectId: string;
256
257
  agentId: string;
257
- headers: Record<string, string> | null;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -10,10 +10,15 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
13
  createdAt: string;
14
+ updatedAt: string;
15
15
  name: string;
16
16
  description: string | null;
17
+ tenantId: string;
18
+ projectId: string;
19
+ agentId: string;
20
+ prompt: string | null;
21
+ conversationHistoryConfig: ConversationHistoryConfig | null;
17
22
  models: {
18
23
  base?: {
19
24
  model?: string | undefined;
@@ -31,20 +36,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
36
  stopWhen: {
32
37
  stepCountIs?: number | undefined;
33
38
  } | null;
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
43
  id: string;
44
- tenantId: string;
45
44
  createdAt: string;
45
+ updatedAt: string;
46
46
  name: string;
47
47
  description: string | null;
48
+ tenantId: string;
49
+ projectId: string;
50
+ agentId: string;
51
+ prompt: string | null;
52
+ conversationHistoryConfig: ConversationHistoryConfig | null;
48
53
  models: {
49
54
  base?: {
50
55
  model?: string | undefined;
@@ -62,11 +67,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
67
  stopWhen: {
63
68
  stepCountIs?: number | undefined;
64
69
  } | null;
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;
@@ -110,10 +110,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  id: string;
113
- tenantId: string;
114
113
  createdAt: string;
114
+ updatedAt: string;
115
115
  name: string;
116
116
  description: string | null;
117
+ tenantId: string;
118
+ projectId: string;
119
+ agentId: string;
120
+ prompt: string | null;
121
+ conversationHistoryConfig: ConversationHistoryConfig | null;
117
122
  models: {
118
123
  base?: {
119
124
  model?: string | undefined;
@@ -131,11 +136,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
136
  stopWhen: {
132
137
  stepCountIs?: number | undefined;
133
138
  } | null;
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,14 +19,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  scopes: ProjectScopeConfig;
20
20
  toolId: string;
21
21
  }) => Promise<{
22
+ headers: Record<string, string> | null;
22
23
  id: string;
23
- tenantId: string;
24
24
  createdAt: string;
25
+ updatedAt: string;
25
26
  name: string;
26
27
  description: string | null;
27
- updatedAt: string;
28
+ tenantId: string;
28
29
  projectId: string;
29
- headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
32
32
  mcp: ToolMcpConfig;
@@ -77,14 +77,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
77
77
  };
78
78
  }>;
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
+ headers: Record<string, string> | null;
80
81
  id: string;
81
- tenantId: string;
82
82
  createdAt: string;
83
+ updatedAt: string;
83
84
  name: string;
84
85
  description: string | null;
85
- updatedAt: string;
86
+ tenantId: string;
86
87
  projectId: string;
87
- headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
90
90
  mcp: ToolMcpConfig;
@@ -134,14 +134,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  needsApproval?: boolean;
135
135
  }> | null;
136
136
  }) => Promise<{
137
+ headers: Record<string, string> | null;
137
138
  id: string;
138
- tenantId: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
+ tenantId: string;
141
142
  projectId: string;
142
143
  agentId: string;
143
144
  toolId: string;
144
- headers: Record<string, string> | null;
145
145
  toolPolicies: Record<string, {
146
146
  needsApproval?: boolean;
147
147
  }> | null;
@@ -153,14 +153,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
153
153
  subAgentId: string;
154
154
  toolId: string;
155
155
  }) => Promise<{
156
+ headers: Record<string, string> | null;
156
157
  id: string;
157
- tenantId: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
+ tenantId: string;
160
161
  projectId: string;
161
162
  agentId: string;
162
163
  toolId: string;
163
- headers: Record<string, string> | null;
164
164
  toolPolicies: Record<string, {
165
165
  needsApproval?: boolean;
166
166
  }> | null;
@@ -181,14 +181,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  }> | null;
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
+ headers: Record<string, string> | null;
184
185
  id: string;
185
- tenantId: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
+ tenantId: string;
188
189
  projectId: string;
189
190
  agentId: string;
190
191
  toolId: string;
191
- headers: Record<string, string> | null;
192
192
  toolPolicies: Record<string, {
193
193
  needsApproval?: boolean;
194
194
  }> | null;
@@ -201,14 +201,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
201
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  data: ToolInsert;
203
203
  }) => Promise<{
204
+ headers: Record<string, string> | null;
204
205
  id: string;
205
- tenantId: string;
206
206
  createdAt: string;
207
+ updatedAt: string;
207
208
  name: string;
208
209
  description: string | null;
209
- updatedAt: string;
210
+ tenantId: string;
210
211
  projectId: string;
211
- headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
214
214
  mcp: ToolMcpConfig;
@@ -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: "body" | "query" | "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: "body" | "header" | "literal";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -9,48 +9,48 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  id: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
- tenantId: string;
13
12
  createdAt: string;
14
- name: string | null;
15
13
  updatedAt: string;
14
+ expiresAt: string | null;
15
+ name: string | null;
16
+ tenantId: string;
16
17
  projectId: string;
17
18
  agentId: string;
19
+ lastUsedAt: string | null;
18
20
  publicId: string;
19
21
  keyHash: string;
20
22
  keyPrefix: string;
21
- lastUsedAt: string | null;
22
- expiresAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
26
- tenantId: string;
27
26
  createdAt: string;
28
- name: string | null;
29
27
  updatedAt: string;
28
+ expiresAt: string | null;
29
+ name: string | null;
30
+ tenantId: string;
30
31
  projectId: string;
31
32
  agentId: string;
33
+ lastUsedAt: string | null;
32
34
  publicId: string;
33
35
  keyHash: string;
34
36
  keyPrefix: string;
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
42
  id: string;
43
- tenantId: string;
44
43
  createdAt: string;
45
- name: string | null;
46
44
  updatedAt: string;
45
+ expiresAt: string | null;
46
+ name: string | null;
47
+ tenantId: string;
47
48
  projectId: string;
48
49
  agentId: string;
50
+ lastUsedAt: string | null;
49
51
  publicId: string;
50
52
  keyHash: string;
51
53
  keyPrefix: string;
52
- lastUsedAt: string | null;
53
- expiresAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -67,17 +67,17 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  id: string;
70
- tenantId: string;
71
70
  createdAt: string;
72
- name: string | null;
73
71
  updatedAt: string;
72
+ expiresAt: string | null;
73
+ name: string | null;
74
+ tenantId: string;
74
75
  projectId: string;
75
76
  agentId: string;
77
+ lastUsedAt: string | null;
76
78
  publicId: string;
77
79
  keyHash: string;
78
80
  keyPrefix: string;
79
- lastUsedAt: string | null;
80
- expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -120,14 +120,7 @@ const validateAndGetApiKey = async (key, db) => {
120
120
  if (!apiKey) return null;
121
121
  if (!await validateApiKey(key, apiKey.keyHash)) return null;
122
122
  if (isApiKeyExpired(apiKey.expiresAt)) return null;
123
- await updateApiKey(db)({
124
- scopes: {
125
- tenantId: apiKey.tenantId,
126
- projectId: apiKey.projectId
127
- },
128
- id: apiKey.id,
129
- data: { lastUsedAt: (/* @__PURE__ */ new Date()).toISOString() }
130
- });
123
+ await updateApiKeyLastUsed(db)(apiKey.id);
131
124
  return apiKey;
132
125
  };
133
126
 
@@ -16,20 +16,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  total: number;
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
+ metadata: ConversationMetadata | null;
19
20
  id: string;
20
- tenantId: string;
21
21
  createdAt: string;
22
- metadata: ConversationMetadata | null;
23
- title: string | null;
24
22
  updatedAt: string;
25
- projectId: string;
26
- agentId: string | null;
27
23
  userId: string | null;
28
24
  ref: {
29
25
  type: "commit" | "tag" | "branch";
30
26
  name: string;
31
27
  hash: string;
32
28
  } | null;
29
+ tenantId: string;
30
+ projectId: string;
31
+ agentId: string | null;
32
+ title: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  scopes: ProjectScopeConfig;
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
+ metadata: ConversationMetadata | null;
88
89
  id: string;
89
- tenantId: string;
90
90
  createdAt: string;
91
- metadata: ConversationMetadata | null;
92
- title: string | null;
93
91
  updatedAt: string;
94
- projectId: string;
95
- agentId: string | null;
96
92
  userId: string | null;
97
93
  ref: {
98
94
  type: "commit" | "tag" | "branch";
99
95
  name: string;
100
96
  hash: string;
101
97
  } | null;
98
+ tenantId: string;
99
+ projectId: string;
100
+ agentId: string | null;
101
+ title: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  metadata?: ConversationMetadata | null | undefined;
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
+ metadata: ConversationMetadata | null;
124
125
  id: string;
125
- tenantId: string;
126
126
  createdAt: string;
127
- metadata: ConversationMetadata | null;
128
- title: string | null;
129
127
  updatedAt: string;
130
- projectId: string;
131
- agentId: string | null;
132
128
  userId: string | null;
133
129
  ref: {
134
130
  type: "commit" | "tag" | "branch";
135
131
  name: string;
136
132
  hash: string;
137
133
  } | null;
134
+ tenantId: string;
135
+ projectId: string;
136
+ agentId: string | null;
137
+ title: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -153,20 +153,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  scopes: ProjectScopeConfig;
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
+ metadata: ConversationMetadata | null;
156
157
  id: string;
157
- tenantId: string;
158
158
  createdAt: string;
159
- metadata: ConversationMetadata | null;
160
- title: string | null;
161
159
  updatedAt: string;
162
- projectId: string;
163
- agentId: string | null;
164
160
  userId: string | null;
165
161
  ref: {
166
162
  type: "commit" | "tag" | "branch";
167
163
  name: string;
168
164
  hash: string;
169
165
  } | null;
166
+ tenantId: string;
167
+ projectId: string;
168
+ agentId: string | null;
169
+ title: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -10,13 +10,14 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
+ metadata: MessageMetadata | null;
13
14
  id: string;
14
- tenantId: string;
15
15
  createdAt: string;
16
- metadata: MessageMetadata | null;
17
- content: MessageContent;
18
16
  updatedAt: string;
17
+ role: string;
18
+ tenantId: string;
19
19
  projectId: string;
20
+ content: MessageContent;
20
21
  fromSubAgentId: string | null;
21
22
  toSubAgentId: string | null;
22
23
  fromExternalAgentId: string | null;
@@ -24,7 +25,6 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
24
25
  taskId: string | null;
25
26
  a2aTaskId: string | null;
26
27
  conversationId: string;
27
- role: string;
28
28
  fromTeamAgentId: string | null;
29
29
  toTeamAgentId: string | null;
30
30
  visibility: string;
@@ -141,13 +141,14 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
141
  id: string;
142
142
  }[]>;
143
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
144
+ metadata: MessageMetadata | null;
144
145
  id: string;
145
- tenantId: string;
146
146
  createdAt: string;
147
- metadata: MessageMetadata | null;
148
- content: MessageContent;
149
147
  updatedAt: string;
148
+ role: string;
149
+ tenantId: string;
150
150
  projectId: string;
151
+ content: MessageContent;
151
152
  fromSubAgentId: string | null;
152
153
  toSubAgentId: string | null;
153
154
  fromExternalAgentId: string | null;
@@ -155,7 +156,6 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
155
156
  taskId: string | null;
156
157
  a2aTaskId: string | null;
157
158
  conversationId: string;
158
- role: string;
159
159
  fromTeamAgentId: string | null;
160
160
  toTeamAgentId: string | null;
161
161
  visibility: string;
@@ -194,13 +194,14 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
194
  scopes: ProjectScopeConfig;
195
195
  messageId: string;
196
196
  }) => Promise<{
197
+ metadata: MessageMetadata | null;
197
198
  id: string;
198
- tenantId: string;
199
199
  createdAt: string;
200
- metadata: MessageMetadata | null;
201
- content: MessageContent;
202
200
  updatedAt: string;
201
+ role: string;
202
+ tenantId: string;
203
203
  projectId: string;
204
+ content: MessageContent;
204
205
  fromSubAgentId: string | null;
205
206
  toSubAgentId: string | null;
206
207
  fromExternalAgentId: string | null;
@@ -208,7 +209,6 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
208
209
  taskId: string | null;
209
210
  a2aTaskId: string | null;
210
211
  conversationId: string;
211
- role: string;
212
212
  fromTeamAgentId: string | null;
213
213
  toTeamAgentId: string | null;
214
214
  visibility: string;
@@ -6,21 +6,21 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
+ metadata: TaskMetadataConfig | null;
9
10
  id: string;
10
- tenantId: string;
11
11
  createdAt: string;
12
- metadata: TaskMetadataConfig | null;
13
12
  updatedAt: string;
14
- projectId: string;
15
- agentId: string;
16
- subAgentId: string;
17
13
  status: string;
18
- contextId: string;
19
14
  ref: {
20
15
  type: "commit" | "tag" | "branch";
21
16
  name: string;
22
17
  hash: string;
23
18
  } | null;
19
+ tenantId: string;
20
+ projectId: string;
21
+ agentId: string;
22
+ subAgentId: string;
23
+ contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;