@inkeep/agents-core 0.70.0 → 0.70.1

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 (30) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +9 -9
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/data-access/manage/agents.d.ts +16 -16
  6. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  7. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  8. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  9. package/dist/data-access/manage/functionTools.d.ts +10 -10
  10. package/dist/data-access/manage/skills.d.ts +10 -10
  11. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  12. package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
  13. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  14. package/dist/data-access/manage/subAgents.d.ts +12 -12
  15. package/dist/data-access/manage/tools.d.ts +21 -21
  16. package/dist/data-access/manage/triggers.d.ts +1 -1
  17. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  18. package/dist/data-access/runtime/apps.d.ts +10 -10
  19. package/dist/data-access/runtime/conversations.d.ts +16 -16
  20. package/dist/data-access/runtime/feedback.d.ts +6 -6
  21. package/dist/data-access/runtime/messages.d.ts +24 -24
  22. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  23. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  24. package/dist/data-access/runtime/tasks.d.ts +4 -4
  25. package/dist/db/manage/manage-schema.d.ts +453 -453
  26. package/dist/db/runtime/runtime-schema.d.ts +413 -413
  27. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  28. package/dist/validation/schemas/skills.d.ts +44 -44
  29. package/dist/validation/schemas.d.ts +1959 -1959
  30. package/package.json +1 -1
@@ -10,12 +10,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
13
  createdAt: string;
14
+ updatedAt: string;
15
15
  projectId: string;
16
+ tenantId: string;
16
17
  agentId: string;
17
18
  subAgentId: string;
18
- updatedAt: string;
19
19
  headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -45,12 +45,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- tenantId: string;
49
48
  createdAt: string;
49
+ updatedAt: string;
50
50
  projectId: string;
51
+ tenantId: string;
51
52
  agentId: string;
52
53
  subAgentId: string;
53
- updatedAt: string;
54
54
  headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -58,12 +58,12 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- tenantId: string;
62
61
  createdAt: string;
62
+ updatedAt: string;
63
63
  projectId: string;
64
+ tenantId: string;
64
65
  agentId: string;
65
66
  subAgentId: string;
66
- updatedAt: string;
67
67
  headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -223,12 +223,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
223
223
  };
224
224
  }) => Promise<{
225
225
  id: string;
226
- tenantId: string;
227
226
  createdAt: string;
227
+ updatedAt: string;
228
228
  projectId: string;
229
+ tenantId: string;
229
230
  agentId: string;
230
231
  subAgentId: string;
231
- updatedAt: string;
232
232
  headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
@@ -240,12 +240,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
242
  id: string;
243
- tenantId: string;
244
243
  createdAt: string;
244
+ updatedAt: string;
245
245
  projectId: string;
246
+ tenantId: string;
246
247
  agentId: string;
247
248
  subAgentId: string;
248
- updatedAt: string;
249
249
  headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
@@ -261,12 +261,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
261
261
  };
262
262
  }) => Promise<{
263
263
  id: string;
264
- tenantId: string;
265
264
  createdAt: string;
265
+ updatedAt: string;
266
266
  projectId: string;
267
+ tenantId: string;
267
268
  agentId: string;
268
269
  subAgentId: string;
269
- updatedAt: string;
270
270
  headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
@@ -10,13 +10,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- createdAt: string;
15
13
  name: string;
16
14
  description: string | null;
17
- projectId: string;
18
- agentId: string;
15
+ createdAt: string;
19
16
  updatedAt: string;
17
+ projectId: string;
18
+ tenantId: string;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -40,6 +39,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
40
39
  stopWhen: {
41
40
  stepCountIs?: number | undefined;
42
41
  } | null;
42
+ agentId: string;
43
43
  prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
@@ -47,13 +47,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
48
48
  }) => Promise<{
49
49
  id: string;
50
- tenantId: string;
51
- createdAt: string;
52
50
  name: string;
53
51
  description: string | null;
54
- projectId: string;
55
- agentId: string;
52
+ createdAt: string;
56
53
  updatedAt: string;
54
+ projectId: string;
55
+ tenantId: string;
57
56
  models: {
58
57
  base?: {
59
58
  model?: string | undefined;
@@ -77,6 +76,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
77
76
  stopWhen: {
78
77
  stepCountIs?: number | undefined;
79
78
  } | null;
79
+ agentId: string;
80
80
  prompt: string | null;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
@@ -128,13 +128,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
128
128
  }>;
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
130
  id: string;
131
- tenantId: string;
132
- createdAt: string;
133
131
  name: string;
134
132
  description: string | null;
135
- projectId: string;
136
- agentId: string;
133
+ createdAt: string;
137
134
  updatedAt: string;
135
+ projectId: string;
136
+ tenantId: string;
138
137
  models: {
139
138
  base?: {
140
139
  model?: string | undefined;
@@ -158,6 +157,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
158
157
  stopWhen: {
159
158
  stepCountIs?: number | undefined;
160
159
  } | null;
160
+ agentId: string;
161
161
  prompt: string | null;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
@@ -21,17 +21,17 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
21
21
  toolId: string;
22
22
  }) => Promise<{
23
23
  id: string;
24
- tenantId: string;
25
- createdAt: string;
26
24
  name: string;
27
25
  description: string | null;
28
- projectId: string;
26
+ createdAt: string;
29
27
  updatedAt: string;
30
- credentialReferenceId: string | null;
28
+ projectId: string;
29
+ tenantId: string;
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;
@@ -79,17 +79,17 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
- tenantId: string;
83
- createdAt: string;
84
82
  name: string;
85
83
  description: string | null;
86
- projectId: string;
84
+ createdAt: string;
87
85
  updatedAt: string;
88
- credentialReferenceId: string | null;
86
+ projectId: string;
87
+ tenantId: string;
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;
@@ -136,14 +136,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  }> | null;
137
137
  }) => Promise<{
138
138
  id: string;
139
- tenantId: string;
140
139
  createdAt: string;
140
+ updatedAt: string;
141
141
  projectId: string;
142
+ tenantId: string;
142
143
  agentId: string;
143
144
  subAgentId: string;
144
- toolId: string;
145
- updatedAt: string;
146
145
  headers: Record<string, string> | null;
146
+ toolId: string;
147
147
  selectedTools: string[] | null;
148
148
  toolPolicies: Record<string, {
149
149
  needsApproval?: boolean;
@@ -155,14 +155,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  toolId: string;
156
156
  }) => Promise<{
157
157
  id: string;
158
- tenantId: string;
159
158
  createdAt: string;
159
+ updatedAt: string;
160
160
  projectId: string;
161
+ tenantId: string;
161
162
  agentId: string;
162
163
  subAgentId: string;
163
- toolId: string;
164
- updatedAt: string;
165
164
  headers: Record<string, string> | null;
165
+ toolId: string;
166
166
  selectedTools: string[] | null;
167
167
  toolPolicies: Record<string, {
168
168
  needsApproval?: boolean;
@@ -183,14 +183,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
185
  id: string;
186
- tenantId: string;
187
186
  createdAt: string;
187
+ updatedAt: string;
188
188
  projectId: string;
189
+ tenantId: string;
189
190
  agentId: string;
190
191
  subAgentId: string;
191
- toolId: string;
192
- updatedAt: string;
193
192
  headers: Record<string, string> | null;
193
+ toolId: string;
194
194
  selectedTools: string[] | null;
195
195
  toolPolicies: Record<string, {
196
196
  needsApproval?: boolean;
@@ -203,17 +203,17 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
205
  id: string;
206
- tenantId: string;
207
- createdAt: string;
208
206
  name: string;
209
207
  description: string | null;
210
- projectId: string;
208
+ createdAt: string;
211
209
  updatedAt: string;
212
- credentialReferenceId: string | null;
210
+ projectId: string;
211
+ tenantId: string;
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;
@@ -131,9 +131,9 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
- tenantId: string;
135
134
  createdAt: string;
136
135
  projectId: string;
136
+ tenantId: string;
137
137
  agentId: string;
138
138
  userId: string;
139
139
  triggerId: string;
@@ -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
- createdAt: string;
14
12
  name: string | null;
13
+ createdAt: string;
14
+ updatedAt: string;
15
15
  projectId: string;
16
+ tenantId: string;
16
17
  agentId: string;
17
- updatedAt: string;
18
- expiresAt: string | null;
19
18
  publicId: string;
20
19
  keyHash: string;
21
20
  keyPrefix: string;
22
21
  lastUsedAt: string | null;
22
+ expiresAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
26
- tenantId: string;
27
- createdAt: string;
28
26
  name: string | null;
27
+ createdAt: string;
28
+ updatedAt: string;
29
29
  projectId: string;
30
+ tenantId: string;
30
31
  agentId: string;
31
- updatedAt: string;
32
- expiresAt: string | null;
33
32
  publicId: string;
34
33
  keyHash: string;
35
34
  keyPrefix: string;
36
35
  lastUsedAt: string | null;
36
+ expiresAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
42
  id: string;
43
- tenantId: string;
44
- createdAt: string;
45
43
  name: string | null;
44
+ createdAt: string;
45
+ updatedAt: string;
46
46
  projectId: string;
47
+ tenantId: string;
47
48
  agentId: string;
48
- updatedAt: string;
49
- expiresAt: string | null;
50
49
  publicId: string;
51
50
  keyHash: string;
52
51
  keyPrefix: string;
53
52
  lastUsedAt: string | null;
53
+ expiresAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -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
- createdAt: string;
72
70
  name: string | null;
71
+ createdAt: string;
72
+ updatedAt: string;
73
73
  projectId: string;
74
+ tenantId: string;
74
75
  agentId: string;
75
- updatedAt: string;
76
- expiresAt: string | null;
77
76
  publicId: string;
78
77
  keyHash: string;
79
78
  keyPrefix: string;
80
79
  lastUsedAt: string | null;
80
+ expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -7,14 +7,12 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  type: AppType;
9
9
  id: string;
10
- tenantId: string | null;
11
- createdAt: string;
12
10
  name: string;
13
11
  description: string | null;
14
- projectId: string | null;
12
+ createdAt: string;
15
13
  updatedAt: string;
16
- enabled: boolean;
17
- prompt: string | null;
14
+ projectId: string | null;
15
+ tenantId: string | null;
18
16
  config: {
19
17
  type: "web_client";
20
18
  webClient: {
@@ -45,6 +43,8 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
45
43
  }[] | undefined;
46
44
  };
47
45
  };
46
+ enabled: boolean;
47
+ prompt: string | null;
48
48
  lastUsedAt: string | null;
49
49
  defaultProjectId: string | null;
50
50
  defaultAgentId: string | null;
@@ -76,14 +76,12 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
77
  type: AppType;
78
78
  id: string;
79
- tenantId: string | null;
80
- createdAt: string;
81
79
  name: string;
82
80
  description: string | null;
83
- projectId: string | null;
81
+ createdAt: string;
84
82
  updatedAt: string;
85
- enabled: boolean;
86
- prompt: string | null;
83
+ projectId: string | null;
84
+ tenantId: string | null;
87
85
  config: {
88
86
  type: "web_client";
89
87
  webClient: {
@@ -114,6 +112,8 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
114
112
  }[] | undefined;
115
113
  };
116
114
  };
115
+ enabled: boolean;
116
+ prompt: string | null;
117
117
  lastUsedAt: string | null;
118
118
  defaultProjectId: string | null;
119
119
  defaultAgentId: string | null;
@@ -16,13 +16,13 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
18
  id: string;
19
- tenantId: string;
20
- createdAt: string;
21
19
  metadata: ConversationMetadata | null;
22
- title: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
23
22
  projectId: string;
23
+ tenantId: string;
24
+ title: string | null;
24
25
  agentId: string | null;
25
- updatedAt: string;
26
26
  userId: string | null;
27
27
  ref: {
28
28
  type: "commit" | "tag" | "branch";
@@ -85,13 +85,13 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
87
  id: string;
88
- tenantId: string;
89
- createdAt: string;
90
88
  metadata: ConversationMetadata | null;
91
- title: string | null;
89
+ createdAt: string;
90
+ updatedAt: string;
92
91
  projectId: string;
92
+ tenantId: string;
93
+ title: string | null;
93
94
  agentId: string | null;
94
- updatedAt: string;
95
95
  userId: string | null;
96
96
  ref: {
97
97
  type: "commit" | "tag" | "branch";
@@ -121,13 +121,13 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
123
  id: string;
124
- tenantId: string;
125
- createdAt: string;
126
124
  metadata: ConversationMetadata | null;
127
- title: string | null;
125
+ createdAt: string;
126
+ updatedAt: string;
128
127
  projectId: string;
128
+ tenantId: string;
129
+ title: string | null;
129
130
  agentId: string | null;
130
- updatedAt: string;
131
131
  userId: string | null;
132
132
  ref: {
133
133
  type: "commit" | "tag" | "branch";
@@ -153,13 +153,13 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
155
  id: string;
156
- tenantId: string;
157
- createdAt: string;
158
156
  metadata: ConversationMetadata | null;
159
- title: string | null;
157
+ createdAt: string;
158
+ updatedAt: string;
160
159
  projectId: string;
160
+ tenantId: string;
161
+ title: string | null;
161
162
  agentId: string | null;
162
- updatedAt: string;
163
163
  userId: string | null;
164
164
  ref: {
165
165
  type: "commit" | "tag" | "branch";
@@ -60,13 +60,13 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
60
60
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
61
  type: "positive" | "negative";
62
62
  id: string;
63
- tenantId: string;
64
63
  createdAt: string;
65
- projectId: string;
66
64
  updatedAt: string;
65
+ projectId: string;
66
+ tenantId: string;
67
+ details: string | null;
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;
@@ -89,13 +89,13 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
89
89
  }) => Promise<{
90
90
  type: "positive" | "negative";
91
91
  id: string;
92
- tenantId: string;
93
92
  createdAt: string;
94
- projectId: string;
95
93
  updatedAt: string;
94
+ projectId: string;
95
+ tenantId: string;
96
+ details: string | null;
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 };
@@ -11,25 +11,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
- tenantId: string;
15
- createdAt: string;
16
- metadata: MessageMetadata | null;
17
14
  content: MessageContent;
18
- projectId: string;
15
+ metadata: MessageMetadata | null;
16
+ createdAt: string;
19
17
  updatedAt: string;
20
- role: string;
21
- conversationId: string;
18
+ projectId: string;
19
+ tenantId: string;
22
20
  fromSubAgentId: string | null;
23
21
  toSubAgentId: string | null;
24
22
  fromExternalAgentId: string | null;
25
23
  toExternalAgentId: string | null;
24
+ taskId: string | null;
25
+ a2aTaskId: string | null;
26
+ conversationId: string;
27
+ role: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -145,25 +145,25 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
145
145
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
146
  }) => Promise<{
147
147
  id: string;
148
- tenantId: string;
149
- createdAt: string;
150
- metadata: MessageMetadata | null;
151
148
  content: MessageContent;
152
- projectId: string;
149
+ metadata: MessageMetadata | null;
150
+ createdAt: string;
153
151
  updatedAt: string;
154
- role: string;
155
- conversationId: string;
152
+ projectId: string;
153
+ tenantId: string;
156
154
  fromSubAgentId: string | null;
157
155
  toSubAgentId: string | null;
158
156
  fromExternalAgentId: string | null;
159
157
  toExternalAgentId: string | null;
158
+ taskId: string | null;
159
+ a2aTaskId: string | null;
160
+ conversationId: string;
161
+ role: 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: {
@@ -198,25 +198,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
198
198
  messageId: string;
199
199
  }) => Promise<{
200
200
  id: string;
201
- tenantId: string;
202
- createdAt: string;
203
- metadata: MessageMetadata | null;
204
201
  content: MessageContent;
205
- projectId: string;
202
+ metadata: MessageMetadata | null;
203
+ createdAt: string;
206
204
  updatedAt: string;
207
- role: string;
208
- conversationId: string;
205
+ projectId: string;
206
+ tenantId: string;
209
207
  fromSubAgentId: string | null;
210
208
  toSubAgentId: string | null;
211
209
  fromExternalAgentId: string | null;
212
210
  toExternalAgentId: string | null;
211
+ taskId: string | null;
212
+ a2aTaskId: string | null;
213
+ conversationId: string;
214
+ role: 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: {
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
43
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
43
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
44
44
  scheduledFor: string;
45
45
  startedAt: string | null;
46
46
  completedAt: string | null;
@@ -199,7 +199,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
199
199
  name: string;
200
200
  hash: string;
201
201
  } | null;
202
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
202
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
203
203
  scheduledFor: string;
204
204
  startedAt: string | null;
205
205
  completedAt: string | null;
@@ -239,7 +239,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
239
239
  name: string;
240
240
  hash: string;
241
241
  } | null;
242
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
242
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
243
243
  scheduledFor: string;
244
244
  startedAt: string | null;
245
245
  completedAt: string | null;
@@ -292,7 +292,7 @@ declare const listScheduledTriggerInvocationsByTriggerId: (db: AgentsRunDatabase
292
292
  name: string;
293
293
  hash: string;
294
294
  } | null;
295
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
295
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
296
296
  scheduledFor: string;
297
297
  startedAt: string | null;
298
298
  completedAt: string | null;
@@ -15,8 +15,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
15
15
  scheduledTriggerId: string;
16
16
  userId: string;
17
17
  }) => Promise<{
18
- tenantId: string;
19
18
  createdAt: string;
19
+ tenantId: string;
20
20
  userId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;