@inkeep/agents-core 0.0.0-dev-20260219204727 → 0.0.0-dev-20260219212612

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 (32) hide show
  1. package/dist/auth/auth-schema.d.ts +105 -105
  2. package/dist/auth/auth-validation-schemas.d.ts +148 -148
  3. package/dist/auth/auth.d.ts +53 -53
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +1 -1
  6. package/dist/data-access/manage/agents.d.ts +10 -10
  7. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +6 -6
  9. package/dist/data-access/manage/scope-helpers.d.ts +5 -5
  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 +4 -4
  13. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  14. package/dist/data-access/manage/subAgents.d.ts +6 -6
  15. package/dist/data-access/manage/tools.d.ts +15 -15
  16. package/dist/data-access/manage/triggers.d.ts +2 -2
  17. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  18. package/dist/data-access/runtime/conversations.d.ts +28 -28
  19. package/dist/data-access/runtime/messages.d.ts +15 -15
  20. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  21. package/dist/data-access/runtime/tasks.d.ts +6 -6
  22. package/dist/db/manage/manage-schema.d.ts +357 -357
  23. package/dist/db/runtime/runtime-schema.d.ts +262 -262
  24. package/dist/index.d.ts +2 -1
  25. package/dist/index.js +2 -1
  26. package/dist/utils/in-process-fetch.d.ts +30 -0
  27. package/dist/utils/in-process-fetch.js +51 -0
  28. package/dist/utils/index.d.ts +2 -1
  29. package/dist/utils/index.js +2 -1
  30. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  31. package/dist/validation/schemas.d.ts +1752 -1752
  32. package/package.json +1 -1
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- headers: Record<string, string> | null;
12
11
  id: string;
13
12
  createdAt: string;
14
13
  updatedAt: string;
14
+ headers: Record<string, string> | null;
15
15
  agentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
18
- subAgentId: string;
19
18
  externalAgentId: string;
19
+ subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
43
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- headers: Record<string, string> | null;
47
46
  id: string;
48
47
  createdAt: string;
49
48
  updatedAt: string;
49
+ headers: Record<string, string> | null;
50
50
  agentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
53
- subAgentId: string;
54
53
  externalAgentId: string;
54
+ subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- headers: Record<string, string> | null;
60
59
  id: string;
61
60
  createdAt: string;
62
61
  updatedAt: string;
62
+ headers: Record<string, string> | null;
63
63
  agentId: string;
64
64
  projectId: string;
65
65
  tenantId: string;
66
- subAgentId: string;
67
66
  externalAgentId: string;
67
+ subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
- headers: Record<string, string> | null;
183
182
  id: string;
184
183
  createdAt: string;
185
184
  updatedAt: string;
185
+ headers: Record<string, string> | null;
186
186
  agentId: string;
187
187
  projectId: string;
188
188
  tenantId: string;
189
- subAgentId: string;
190
189
  externalAgentId: string;
190
+ subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
- headers: Record<string, string> | null;
200
199
  id: string;
201
200
  createdAt: string;
202
201
  updatedAt: string;
202
+ headers: Record<string, string> | null;
203
203
  agentId: string;
204
204
  projectId: string;
205
205
  tenantId: string;
206
- subAgentId: string;
207
206
  externalAgentId: string;
207
+ subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
- headers: Record<string, string> | null;
221
220
  id: string;
222
221
  createdAt: string;
223
222
  updatedAt: string;
223
+ headers: Record<string, string> | null;
224
224
  agentId: string;
225
225
  projectId: string;
226
226
  tenantId: string;
227
- subAgentId: string;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -203,18 +203,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
- headers: Record<string, string> | null;
207
206
  id: string;
208
207
  createdAt: string;
209
208
  updatedAt: string;
209
+ headers: Record<string, string> | null;
210
210
  agentId: string;
211
211
  projectId: string;
212
212
  tenantId: string;
213
- subAgentId: string;
214
213
  toolId: string;
215
214
  toolPolicies: Record<string, {
216
215
  needsApproval?: boolean;
217
216
  }> | null;
217
+ subAgentId: string;
218
218
  selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -247,18 +247,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
- headers: Record<string, string> | null;
251
250
  id: string;
252
251
  createdAt: string;
253
252
  updatedAt: string;
253
+ headers: Record<string, string> | null;
254
254
  agentId: string;
255
255
  projectId: string;
256
256
  tenantId: string;
257
- subAgentId: string;
258
257
  toolId: string;
259
258
  toolPolicies: Record<string, {
260
259
  needsApproval?: boolean;
261
260
  }> | null;
261
+ subAgentId: string;
262
262
  selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,10 +8,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- headers: Record<string, string> | null;
12
11
  id: string;
13
12
  createdAt: string;
14
13
  updatedAt: string;
14
+ headers: Record<string, string> | null;
15
15
  agentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
@@ -43,10 +43,10 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
43
43
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- headers: Record<string, string> | null;
47
46
  id: string;
48
47
  createdAt: string;
49
48
  updatedAt: string;
49
+ headers: Record<string, string> | null;
50
50
  agentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
@@ -56,10 +56,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- headers: Record<string, string> | null;
60
59
  id: string;
61
60
  createdAt: string;
62
61
  updatedAt: string;
62
+ headers: Record<string, string> | null;
63
63
  agentId: string;
64
64
  projectId: string;
65
65
  tenantId: string;
@@ -209,10 +209,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
- headers: Record<string, string> | null;
213
212
  id: string;
214
213
  createdAt: string;
215
214
  updatedAt: string;
215
+ headers: Record<string, string> | null;
216
216
  agentId: string;
217
217
  projectId: string;
218
218
  tenantId: string;
@@ -226,10 +226,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
- headers: Record<string, string> | null;
230
229
  id: string;
231
230
  createdAt: string;
232
231
  updatedAt: string;
232
+ headers: Record<string, string> | null;
233
233
  agentId: string;
234
234
  projectId: string;
235
235
  tenantId: string;
@@ -247,10 +247,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
- headers: Record<string, string> | null;
251
250
  id: string;
252
251
  createdAt: string;
253
252
  updatedAt: string;
253
+ headers: Record<string, string> | null;
254
254
  agentId: string;
255
255
  projectId: string;
256
256
  tenantId: string;
@@ -8,14 +8,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
- name: string;
12
11
  id: string;
12
+ name: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
+ description: string | null;
15
16
  agentId: string;
16
17
  projectId: string;
17
18
  tenantId: string;
18
- description: string | null;
19
19
  models: {
20
20
  base?: {
21
21
  model?: string | undefined;
@@ -39,14 +39,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
- name: string;
43
42
  id: string;
43
+ name: string;
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
+ description: string | null;
46
47
  agentId: string;
47
48
  projectId: string;
48
49
  tenantId: string;
49
- description: string | null;
50
50
  models: {
51
51
  base?: {
52
52
  model?: string | undefined;
@@ -108,14 +108,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- name: string;
112
111
  id: string;
112
+ name: string;
113
113
  createdAt: string;
114
114
  updatedAt: string;
115
+ description: string | null;
115
116
  agentId: string;
116
117
  projectId: string;
117
118
  tenantId: string;
118
- description: string | null;
119
119
  models: {
120
120
  base?: {
121
121
  model?: string | undefined;
@@ -18,14 +18,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- name: string;
22
- headers: Record<string, string> | null;
23
21
  id: string;
22
+ name: string;
24
23
  createdAt: string;
25
24
  updatedAt: string;
25
+ description: string | null;
26
+ headers: Record<string, string> | null;
26
27
  projectId: string;
27
28
  tenantId: string;
28
- description: string | null;
29
29
  config: {
30
30
  type: "mcp";
31
31
  mcp: ToolMcpConfig;
@@ -76,14 +76,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
76
76
  };
77
77
  }>;
78
78
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
- name: string;
80
- headers: Record<string, string> | null;
81
79
  id: string;
80
+ name: string;
82
81
  createdAt: string;
83
82
  updatedAt: string;
83
+ description: string | null;
84
+ headers: Record<string, string> | null;
84
85
  projectId: string;
85
86
  tenantId: string;
86
- description: string | null;
87
87
  config: {
88
88
  type: "mcp";
89
89
  mcp: ToolMcpConfig;
@@ -133,18 +133,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
133
  needsApproval?: boolean;
134
134
  }> | null;
135
135
  }) => Promise<{
136
- headers: Record<string, string> | null;
137
136
  id: string;
138
137
  createdAt: string;
139
138
  updatedAt: string;
139
+ headers: Record<string, string> | null;
140
140
  agentId: string;
141
141
  projectId: string;
142
142
  tenantId: string;
143
- subAgentId: string;
144
143
  toolId: string;
145
144
  toolPolicies: Record<string, {
146
145
  needsApproval?: boolean;
147
146
  }> | 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
- headers: Record<string, string> | null;
156
155
  id: string;
157
156
  createdAt: string;
158
157
  updatedAt: string;
158
+ headers: Record<string, string> | null;
159
159
  agentId: string;
160
160
  projectId: string;
161
161
  tenantId: string;
162
- subAgentId: string;
163
162
  toolId: string;
164
163
  toolPolicies: Record<string, {
165
164
  needsApproval?: boolean;
166
165
  }> | 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
- headers: Record<string, string> | null;
184
183
  id: string;
185
184
  createdAt: string;
186
185
  updatedAt: string;
186
+ headers: Record<string, string> | null;
187
187
  agentId: string;
188
188
  projectId: string;
189
189
  tenantId: string;
190
- subAgentId: string;
191
190
  toolId: string;
192
191
  toolPolicies: Record<string, {
193
192
  needsApproval?: boolean;
194
193
  }> | null;
194
+ subAgentId: string;
195
195
  selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
@@ -200,14 +200,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
200
200
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
201
201
  data: ToolInsert;
202
202
  }) => Promise<{
203
- name: string;
204
- headers: Record<string, string> | null;
205
203
  id: string;
204
+ name: string;
206
205
  createdAt: string;
207
206
  updatedAt: string;
207
+ description: string | null;
208
+ headers: Record<string, string> | null;
208
209
  projectId: string;
209
210
  tenantId: string;
210
- description: 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: "body" | "query" | "header";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "body" | "header" | "literal";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -7,8 +7,8 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- name: string | null;
11
10
  id: string;
11
+ name: string | null;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  expiresAt: string | null;
@@ -21,8 +21,8 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
21
21
  lastUsedAt: string | null;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
- name: string | null;
25
24
  id: string;
25
+ name: string | null;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
28
  expiresAt: string | null;
@@ -38,8 +38,8 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- name: string | null;
42
41
  id: string;
42
+ name: string | null;
43
43
  createdAt: string;
44
44
  updatedAt: string;
45
45
  expiresAt: string | null;
@@ -65,8 +65,8 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
- name: string | null;
69
68
  id: string;
69
+ name: string | null;
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  expiresAt: string | null;
@@ -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
- metadata: ConversationMetadata | null;
19
18
  id: string;
20
- userId: string | null;
21
19
  createdAt: string;
22
20
  updatedAt: string;
23
- agentId: string | null;
24
- projectId: string;
25
- tenantId: string;
26
- title: string | null;
27
- activeSubAgentId: string;
28
21
  ref: {
29
22
  type: "tag" | "commit" | "branch";
30
23
  name: string;
31
24
  hash: string;
32
25
  } | null;
26
+ userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
+ agentId: string | null;
29
+ projectId: string;
30
+ tenantId: string;
31
+ title: string | null;
32
+ activeSubAgentId: string;
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
- metadata: ConversationMetadata | null;
88
87
  id: string;
89
- userId: string | null;
90
88
  createdAt: string;
91
89
  updatedAt: string;
92
- agentId: string | null;
93
- projectId: string;
94
- tenantId: string;
95
- title: string | null;
96
- activeSubAgentId: string;
97
90
  ref: {
98
91
  type: "tag" | "commit" | "branch";
99
92
  name: string;
100
93
  hash: string;
101
94
  } | null;
95
+ userId: string | null;
96
+ metadata: ConversationMetadata | null;
97
+ agentId: string | null;
98
+ projectId: string;
99
+ tenantId: string;
100
+ title: string | null;
101
+ activeSubAgentId: string;
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
- metadata: ConversationMetadata | null;
124
123
  id: string;
125
- userId: string | null;
126
124
  createdAt: string;
127
125
  updatedAt: string;
128
- agentId: string | null;
129
- projectId: string;
130
- tenantId: string;
131
- title: string | null;
132
- activeSubAgentId: string;
133
126
  ref: {
134
127
  type: "tag" | "commit" | "branch";
135
128
  name: string;
136
129
  hash: string;
137
130
  } | null;
131
+ userId: string | null;
132
+ metadata: ConversationMetadata | null;
133
+ agentId: string | null;
134
+ projectId: string;
135
+ tenantId: string;
136
+ title: string | null;
137
+ activeSubAgentId: string;
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
- metadata: ConversationMetadata | null;
156
155
  id: string;
157
- userId: string | null;
158
156
  createdAt: string;
159
157
  updatedAt: string;
160
- agentId: string | null;
161
- projectId: string;
162
- tenantId: string;
163
- title: string | null;
164
- activeSubAgentId: string;
165
158
  ref: {
166
159
  type: "tag" | "commit" | "branch";
167
160
  name: string;
168
161
  hash: string;
169
162
  } | null;
163
+ userId: string | null;
164
+ metadata: ConversationMetadata | null;
165
+ agentId: string | null;
166
+ projectId: string;
167
+ tenantId: string;
168
+ title: string | null;
169
+ activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
172
172
  /**
@@ -9,26 +9,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  scopes: ProjectScopeConfig;
10
10
  messageId: string;
11
11
  }) => Promise<{
12
- metadata: MessageMetadata | null;
13
12
  id: string;
14
- role: string;
15
13
  createdAt: string;
16
14
  updatedAt: string;
15
+ metadata: MessageMetadata | null;
16
+ role: string;
17
17
  projectId: string;
18
18
  tenantId: string;
19
19
  content: MessageContent;
20
+ conversationId: string;
20
21
  fromSubAgentId: string | null;
21
22
  toSubAgentId: string | null;
22
23
  fromExternalAgentId: string | null;
23
24
  toExternalAgentId: string | null;
24
- taskId: string | null;
25
- a2aTaskId: string | null;
26
- conversationId: string;
27
25
  fromTeamAgentId: string | null;
28
26
  toTeamAgentId: string | null;
29
27
  visibility: string;
30
28
  messageType: string;
29
+ taskId: string | null;
31
30
  parentMessageId: string | null;
31
+ a2aTaskId: string | null;
32
32
  a2aSessionId: string | null;
33
33
  } | undefined>;
34
34
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -140,26 +140,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
140
140
  id: string;
141
141
  }[]>;
142
142
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
- metadata: MessageMetadata | null;
144
143
  id: string;
145
- role: string;
146
144
  createdAt: string;
147
145
  updatedAt: string;
146
+ metadata: MessageMetadata | null;
147
+ role: string;
148
148
  projectId: string;
149
149
  tenantId: string;
150
150
  content: MessageContent;
151
+ conversationId: string;
151
152
  fromSubAgentId: string | null;
152
153
  toSubAgentId: string | null;
153
154
  fromExternalAgentId: string | null;
154
155
  toExternalAgentId: string | null;
155
- taskId: string | null;
156
- a2aTaskId: string | null;
157
- conversationId: string;
158
156
  fromTeamAgentId: string | null;
159
157
  toTeamAgentId: string | null;
160
158
  visibility: string;
161
159
  messageType: string;
160
+ taskId: string | null;
162
161
  parentMessageId: string | null;
162
+ a2aTaskId: string | null;
163
163
  a2aSessionId: string | null;
164
164
  }>;
165
165
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -193,26 +193,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
193
193
  scopes: ProjectScopeConfig;
194
194
  messageId: string;
195
195
  }) => Promise<{
196
- metadata: MessageMetadata | null;
197
196
  id: string;
198
- role: string;
199
197
  createdAt: string;
200
198
  updatedAt: string;
199
+ metadata: MessageMetadata | null;
200
+ role: string;
201
201
  projectId: string;
202
202
  tenantId: string;
203
203
  content: MessageContent;
204
+ conversationId: string;
204
205
  fromSubAgentId: string | null;
205
206
  toSubAgentId: string | null;
206
207
  fromExternalAgentId: string | null;
207
208
  toExternalAgentId: string | null;
208
- taskId: string | null;
209
- a2aTaskId: string | null;
210
- conversationId: string;
211
209
  fromTeamAgentId: string | null;
212
210
  toTeamAgentId: string | null;
213
211
  visibility: string;
214
212
  messageType: string;
213
+ taskId: string | null;
215
214
  parentMessageId: string | null;
215
+ a2aTaskId: string | null;
216
216
  a2aSessionId: string | null;
217
217
  }>;
218
218
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
34
34
  }) => Promise<{
35
35
  data: {
36
36
  scheduledTriggerId: string;
37
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
37
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
38
38
  scheduledFor: string;
39
39
  startedAt: string | null;
40
40
  completedAt: string | null;
@@ -174,7 +174,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
174
174
  }) => Promise<{
175
175
  data: {
176
176
  scheduledTriggerId: string;
177
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
177
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
178
178
  scheduledFor: string;
179
179
  startedAt: string | null;
180
180
  completedAt: string | null;
@@ -208,7 +208,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
208
208
  }) => Promise<{
209
209
  data: {
210
210
  scheduledTriggerId: string;
211
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
211
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
212
212
  scheduledFor: string;
213
213
  startedAt: string | null;
214
214
  completedAt: string | null;