@inkeep/agents-core 0.0.0-dev-20260227004242 → 0.0.0-dev-20260227024903

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ createdAt: string;
14
+ updatedAt: string;
13
15
  tenantId: string;
14
16
  projectId: string;
15
17
  agentId: string;
16
- createdAt: string;
17
- updatedAt: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ createdAt: string;
49
+ updatedAt: string;
48
50
  tenantId: string;
49
51
  projectId: string;
50
52
  agentId: string;
51
- createdAt: string;
52
- updatedAt: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ createdAt: string;
62
+ updatedAt: string;
61
63
  tenantId: string;
62
64
  projectId: string;
63
65
  agentId: string;
64
- createdAt: string;
65
- updatedAt: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
+ createdAt: string;
131
+ updatedAt: string;
130
132
  tenantId: string;
131
133
  projectId: string;
132
134
  agentId: string;
133
- createdAt: string;
134
- updatedAt: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
+ createdAt: string;
150
+ updatedAt: string;
149
151
  tenantId: string;
150
152
  projectId: string;
151
153
  agentId: string;
152
- createdAt: string;
153
- updatedAt: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
+ createdAt: string;
164
+ updatedAt: string;
163
165
  tenantId: string;
164
166
  projectId: string;
165
167
  agentId: string;
166
- createdAt: string;
167
- updatedAt: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -205,18 +205,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
+ createdAt: string;
209
+ updatedAt: string;
208
210
  tenantId: string;
209
211
  projectId: string;
210
212
  agentId: string;
211
- createdAt: string;
212
- updatedAt: string;
213
213
  toolId: string;
214
+ subAgentId: string;
214
215
  headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
215
217
  toolPolicies: Record<string, {
216
218
  needsApproval?: boolean;
217
219
  }> | null;
218
- subAgentId: string;
219
- selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -249,18 +249,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
+ createdAt: string;
253
+ updatedAt: string;
252
254
  tenantId: string;
253
255
  projectId: string;
254
256
  agentId: string;
255
- createdAt: string;
256
- updatedAt: string;
257
257
  toolId: string;
258
+ subAgentId: string;
258
259
  headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
259
261
  toolPolicies: Record<string, {
260
262
  needsApproval?: boolean;
261
263
  }> | null;
262
- subAgentId: string;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -10,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ createdAt: string;
14
+ updatedAt: string;
13
15
  tenantId: string;
14
16
  projectId: string;
15
17
  agentId: string;
16
- createdAt: string;
17
- updatedAt: string;
18
- headers: Record<string, string> | null;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,26 +45,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ createdAt: string;
49
+ updatedAt: string;
48
50
  tenantId: string;
49
51
  projectId: string;
50
52
  agentId: string;
51
- createdAt: string;
52
- updatedAt: string;
53
- headers: Record<string, string> | null;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ createdAt: string;
62
+ updatedAt: string;
61
63
  tenantId: string;
62
64
  projectId: string;
63
65
  agentId: string;
64
- createdAt: string;
65
- updatedAt: string;
66
- headers: Record<string, string> | null;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -211,13 +211,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
211
211
  };
212
212
  }) => Promise<{
213
213
  id: string;
214
+ createdAt: string;
215
+ updatedAt: string;
214
216
  tenantId: string;
215
217
  projectId: string;
216
218
  agentId: string;
217
- createdAt: string;
218
- updatedAt: string;
219
- headers: Record<string, string> | null;
220
219
  subAgentId: string;
220
+ headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -228,13 +228,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
230
  id: string;
231
+ createdAt: string;
232
+ updatedAt: string;
231
233
  tenantId: string;
232
234
  projectId: string;
233
235
  agentId: string;
234
- createdAt: string;
235
- updatedAt: string;
236
- headers: Record<string, string> | null;
237
236
  subAgentId: string;
237
+ headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -249,13 +249,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
249
249
  };
250
250
  }) => Promise<{
251
251
  id: string;
252
+ createdAt: string;
253
+ updatedAt: string;
252
254
  tenantId: string;
253
255
  projectId: string;
254
256
  agentId: string;
255
- createdAt: string;
256
- updatedAt: string;
257
- headers: Record<string, string> | null;
258
257
  subAgentId: string;
258
+ headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,11 +12,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  id: string;
13
13
  name: string;
14
14
  description: string | null;
15
- tenantId: string;
16
- projectId: string;
17
- agentId: string;
18
- prompt: string | null;
19
- conversationHistoryConfig: ConversationHistoryConfig | null;
20
15
  models: {
21
16
  base?: {
22
17
  model?: string | undefined;
@@ -36,6 +31,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
36
31
  } | null;
37
32
  createdAt: string;
38
33
  updatedAt: string;
34
+ tenantId: string;
35
+ prompt: string | null;
36
+ projectId: string;
37
+ agentId: string;
38
+ conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
@@ -43,11 +43,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
43
43
  id: string;
44
44
  name: string;
45
45
  description: string | null;
46
- tenantId: string;
47
- projectId: string;
48
- agentId: string;
49
- prompt: string | null;
50
- conversationHistoryConfig: ConversationHistoryConfig | null;
51
46
  models: {
52
47
  base?: {
53
48
  model?: string | undefined;
@@ -67,6 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
67
62
  } | null;
68
63
  createdAt: string;
69
64
  updatedAt: string;
65
+ tenantId: string;
66
+ prompt: string | null;
67
+ projectId: string;
68
+ agentId: string;
69
+ conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -112,11 +112,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
112
112
  id: string;
113
113
  name: string;
114
114
  description: string | null;
115
- tenantId: string;
116
- projectId: string;
117
- agentId: string;
118
- prompt: string | null;
119
- conversationHistoryConfig: ConversationHistoryConfig | null;
120
115
  models: {
121
116
  base?: {
122
117
  model?: string | undefined;
@@ -136,6 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
136
131
  } | null;
137
132
  createdAt: string;
138
133
  updatedAt: string;
134
+ tenantId: string;
135
+ prompt: string | null;
136
+ projectId: string;
137
+ agentId: string;
138
+ conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -22,17 +22,17 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  id: string;
23
23
  name: string;
24
24
  description: string | null;
25
- tenantId: string;
26
- projectId: string;
27
25
  createdAt: string;
28
26
  updatedAt: string;
29
- headers: Record<string, string> | null;
27
+ tenantId: string;
28
+ projectId: string;
29
+ credentialReferenceId: string | null;
30
30
  config: {
31
31
  type: "mcp";
32
32
  mcp: ToolMcpConfig;
33
33
  };
34
- credentialReferenceId: string | null;
35
34
  credentialScope: string;
35
+ headers: Record<string, string> | null;
36
36
  imageUrl: string | null;
37
37
  capabilities: ToolServerCapabilities | null;
38
38
  lastError: string | null;
@@ -80,17 +80,17 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
80
80
  id: string;
81
81
  name: string;
82
82
  description: string | null;
83
- tenantId: string;
84
- projectId: string;
85
83
  createdAt: string;
86
84
  updatedAt: string;
87
- headers: Record<string, string> | null;
85
+ tenantId: string;
86
+ projectId: string;
87
+ credentialReferenceId: string | null;
88
88
  config: {
89
89
  type: "mcp";
90
90
  mcp: ToolMcpConfig;
91
91
  };
92
- credentialReferenceId: string | null;
93
92
  credentialScope: string;
93
+ headers: Record<string, string> | null;
94
94
  imageUrl: string | null;
95
95
  capabilities: ToolServerCapabilities | null;
96
96
  lastError: string | null;
@@ -135,18 +135,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  }> | null;
136
136
  }) => Promise<{
137
137
  id: string;
138
+ createdAt: string;
139
+ updatedAt: string;
138
140
  tenantId: string;
139
141
  projectId: string;
140
142
  agentId: string;
141
- createdAt: string;
142
- updatedAt: string;
143
143
  toolId: string;
144
+ subAgentId: string;
144
145
  headers: Record<string, string> | null;
146
+ selectedTools: string[] | null;
145
147
  toolPolicies: Record<string, {
146
148
  needsApproval?: boolean;
147
149
  }> | null;
148
- subAgentId: string;
149
- selectedTools: string[] | null;
150
150
  }>;
151
151
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
152
152
  scopes: AgentScopeConfig;
@@ -154,18 +154,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  toolId: string;
155
155
  }) => Promise<{
156
156
  id: string;
157
+ createdAt: string;
158
+ updatedAt: string;
157
159
  tenantId: string;
158
160
  projectId: string;
159
161
  agentId: string;
160
- createdAt: string;
161
- updatedAt: string;
162
162
  toolId: string;
163
+ subAgentId: string;
163
164
  headers: Record<string, string> | null;
165
+ selectedTools: string[] | null;
164
166
  toolPolicies: Record<string, {
165
167
  needsApproval?: boolean;
166
168
  }> | null;
167
- subAgentId: string;
168
- selectedTools: string[] | null;
169
169
  }>;
170
170
  /**
171
171
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -182,18 +182,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
184
  id: string;
185
+ createdAt: string;
186
+ updatedAt: string;
185
187
  tenantId: string;
186
188
  projectId: string;
187
189
  agentId: string;
188
- createdAt: string;
189
- updatedAt: string;
190
190
  toolId: string;
191
+ subAgentId: string;
191
192
  headers: Record<string, string> | null;
193
+ selectedTools: string[] | null;
192
194
  toolPolicies: Record<string, {
193
195
  needsApproval?: boolean;
194
196
  }> | null;
195
- subAgentId: string;
196
- selectedTools: string[] | null;
197
197
  }>;
198
198
  /**
199
199
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -204,17 +204,17 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  id: string;
205
205
  name: string;
206
206
  description: string | null;
207
- tenantId: string;
208
- projectId: string;
209
207
  createdAt: string;
210
208
  updatedAt: string;
211
- headers: Record<string, string> | null;
209
+ tenantId: string;
210
+ projectId: string;
211
+ credentialReferenceId: string | null;
212
212
  config: {
213
213
  type: "mcp";
214
214
  mcp: ToolMcpConfig;
215
215
  };
216
- credentialReferenceId: string | null;
217
216
  credentialScope: string;
217
+ headers: Record<string, string> | null;
218
218
  imageUrl: string | null;
219
219
  capabilities: ToolServerCapabilities | null;
220
220
  lastError: string | null;
@@ -46,7 +46,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "header" | "literal" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -10,30 +10,30 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string | null;
13
+ createdAt: string;
14
+ updatedAt: string;
13
15
  tenantId: string;
14
16
  projectId: string;
15
17
  agentId: string;
16
- createdAt: string;
17
- updatedAt: string;
18
+ expiresAt: string | null;
18
19
  publicId: string;
19
20
  keyHash: string;
20
21
  keyPrefix: string;
21
22
  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
26
  name: string | null;
27
+ createdAt: string;
28
+ updatedAt: string;
27
29
  tenantId: string;
28
30
  projectId: string;
29
31
  agentId: string;
30
- createdAt: string;
31
- updatedAt: string;
32
+ expiresAt: string | null;
32
33
  publicId: string;
33
34
  keyHash: string;
34
35
  keyPrefix: string;
35
36
  lastUsedAt: string | null;
36
- expiresAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
@@ -41,16 +41,16 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
41
41
  }) => Promise<{
42
42
  id: string;
43
43
  name: string | null;
44
+ createdAt: string;
45
+ updatedAt: string;
44
46
  tenantId: string;
45
47
  projectId: string;
46
48
  agentId: string;
47
- createdAt: string;
48
- updatedAt: string;
49
+ expiresAt: string | null;
49
50
  publicId: string;
50
51
  keyHash: string;
51
52
  keyPrefix: string;
52
53
  lastUsedAt: string | null;
53
- expiresAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -68,16 +68,16 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  id: string;
70
70
  name: string | null;
71
+ createdAt: string;
72
+ updatedAt: string;
71
73
  tenantId: string;
72
74
  projectId: string;
73
75
  agentId: string;
74
- createdAt: string;
75
- updatedAt: string;
76
+ expiresAt: string | null;
76
77
  publicId: string;
77
78
  keyHash: string;
78
79
  keyPrefix: string;
79
80
  lastUsedAt: string | null;
80
- expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -17,20 +17,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
19
  id: string;
20
- tenantId: string;
21
- projectId: string;
22
- agentId: string | null;
23
20
  title: string | null;
24
21
  createdAt: string;
25
22
  updatedAt: string;
26
- metadata: ConversationMetadata | null;
23
+ tenantId: string;
24
+ projectId: string;
25
+ agentId: string | null;
27
26
  userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
+ activeSubAgentId: string;
28
29
  ref: {
29
30
  type: "commit" | "tag" | "branch";
30
31
  name: string;
31
32
  hash: string;
32
33
  } | null;
33
- activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
36
36
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -86,20 +86,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
88
  id: string;
89
- tenantId: string;
90
- projectId: string;
91
- agentId: string | null;
92
89
  title: string | null;
93
90
  createdAt: string;
94
91
  updatedAt: string;
95
- metadata: ConversationMetadata | null;
92
+ tenantId: string;
93
+ projectId: string;
94
+ agentId: string | null;
96
95
  userId: string | null;
96
+ metadata: ConversationMetadata | null;
97
+ activeSubAgentId: string;
97
98
  ref: {
98
99
  type: "commit" | "tag" | "branch";
99
100
  name: string;
100
101
  hash: string;
101
102
  } | null;
102
- activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
105
105
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
@@ -122,20 +122,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
124
  id: string;
125
- tenantId: string;
126
- projectId: string;
127
- agentId: string | null;
128
125
  title: string | null;
129
126
  createdAt: string;
130
127
  updatedAt: string;
131
- metadata: ConversationMetadata | null;
128
+ tenantId: string;
129
+ projectId: string;
130
+ agentId: string | null;
132
131
  userId: string | null;
132
+ metadata: ConversationMetadata | null;
133
+ activeSubAgentId: string;
133
134
  ref: {
134
135
  type: "commit" | "tag" | "branch";
135
136
  name: string;
136
137
  hash: string;
137
138
  } | null;
138
- activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
141
141
  /**
@@ -154,20 +154,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
156
  id: string;
157
- tenantId: string;
158
- projectId: string;
159
- agentId: string | null;
160
157
  title: string | null;
161
158
  createdAt: string;
162
159
  updatedAt: string;
163
- metadata: ConversationMetadata | null;
160
+ tenantId: string;
161
+ projectId: string;
162
+ agentId: string | null;
164
163
  userId: string | null;
164
+ metadata: ConversationMetadata | null;
165
+ activeSubAgentId: string;
165
166
  ref: {
166
167
  type: "commit" | "tag" | "branch";
167
168
  name: string;
168
169
  hash: string;
169
170
  } | null;
170
- activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
173
173
  /**
@@ -11,12 +11,12 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
- tenantId: string;
15
- projectId: string;
16
14
  createdAt: string;
17
15
  updatedAt: string;
18
- metadata: MessageMetadata | null;
16
+ tenantId: string;
17
+ projectId: string;
19
18
  content: MessageContent;
19
+ metadata: MessageMetadata | null;
20
20
  conversationId: string;
21
21
  role: string;
22
22
  fromSubAgentId: string | null;
@@ -142,12 +142,12 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
142
142
  }[]>;
143
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
144
144
  id: string;
145
- tenantId: string;
146
- projectId: string;
147
145
  createdAt: string;
148
146
  updatedAt: string;
149
- metadata: MessageMetadata | null;
147
+ tenantId: string;
148
+ projectId: string;
150
149
  content: MessageContent;
150
+ metadata: MessageMetadata | null;
151
151
  conversationId: string;
152
152
  role: string;
153
153
  fromSubAgentId: string | null;
@@ -195,12 +195,12 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
195
195
  messageId: string;
196
196
  }) => Promise<{
197
197
  id: string;
198
- tenantId: string;
199
- projectId: string;
200
198
  createdAt: string;
201
199
  updatedAt: string;
202
- metadata: MessageMetadata | null;
200
+ tenantId: string;
201
+ projectId: string;
203
202
  content: MessageContent;
203
+ metadata: MessageMetadata | null;
204
204
  conversationId: string;
205
205
  role: string;
206
206
  fromSubAgentId: string | null;
@@ -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;