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