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