@inkeep/agents-core 0.0.0-dev-20260219220341 → 0.0.0-dev-20260220013449

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 (33) hide show
  1. package/dist/auth/auth-schema.d.ts +105 -105
  2. package/dist/auth/auth-validation-schemas.d.ts +131 -131
  3. package/dist/auth/auth.d.ts +18 -18
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +5 -4
  6. package/dist/data-access/manage/agents.d.ts +26 -26
  7. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  8. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  9. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  10. package/dist/data-access/manage/functionTools.d.ts +12 -12
  11. package/dist/data-access/manage/skills.d.ts +10 -10
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  13. package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgents.d.ts +18 -18
  16. package/dist/data-access/manage/tools.d.ts +15 -15
  17. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  18. package/dist/data-access/runtime/conversations.d.ts +8 -8
  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 +4 -4
  22. package/dist/data-access/runtime/workAppSlack.js +1 -0
  23. package/dist/db/manage/manage-schema.d.ts +445 -445
  24. package/dist/db/runtime/runtime-schema.d.ts +307 -290
  25. package/dist/db/runtime/runtime-schema.js +1 -0
  26. package/dist/types/utility.d.ts +6 -0
  27. package/dist/utils/slack-user-token.d.ts +11 -0
  28. package/dist/utils/slack-user-token.js +11 -3
  29. package/dist/validation/schemas.d.ts +306 -306
  30. package/drizzle/runtime/0014_odd_oracle.sql +1 -0
  31. package/drizzle/runtime/meta/0014_snapshot.json +3753 -0
  32. package/drizzle/runtime/meta/_journal.json +7 -0
  33. package/package.json +1 -1
@@ -9,14 +9,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  relationId: string;
10
10
  }) => Promise<{
11
11
  tenantId: string;
12
- projectId: string;
13
- subAgentId: string;
14
12
  id: string;
13
+ projectId: string;
14
+ agentId: string;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
- agentId: string;
18
17
  headers: Record<string, string> | null;
19
18
  externalAgentId: string;
19
+ subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -44,27 +44,27 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
46
  tenantId: string;
47
- projectId: string;
48
- subAgentId: string;
49
47
  id: string;
48
+ projectId: string;
49
+ agentId: string;
50
50
  createdAt: string;
51
51
  updatedAt: string;
52
- agentId: string;
53
52
  headers: Record<string, string> | null;
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
59
  tenantId: string;
60
- projectId: string;
61
- subAgentId: string;
62
60
  id: string;
61
+ projectId: string;
62
+ agentId: string;
63
63
  createdAt: string;
64
64
  updatedAt: string;
65
- agentId: string;
66
65
  headers: Record<string, string> | null;
67
66
  externalAgentId: string;
67
+ subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -180,14 +180,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
180
180
  };
181
181
  }) => Promise<{
182
182
  tenantId: string;
183
- projectId: string;
184
- subAgentId: string;
185
183
  id: string;
184
+ projectId: string;
185
+ agentId: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- agentId: string;
189
188
  headers: Record<string, string> | null;
190
189
  externalAgentId: string;
190
+ subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -197,14 +197,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
199
  tenantId: string;
200
- projectId: string;
201
- subAgentId: string;
202
200
  id: string;
201
+ projectId: string;
202
+ agentId: string;
203
203
  createdAt: string;
204
204
  updatedAt: string;
205
- agentId: string;
206
205
  headers: Record<string, string> | null;
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)
@@ -218,14 +218,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
218
218
  };
219
219
  }) => Promise<{
220
220
  tenantId: string;
221
- projectId: string;
222
- subAgentId: string;
223
221
  id: string;
222
+ projectId: string;
223
+ agentId: string;
224
224
  createdAt: string;
225
225
  updatedAt: string;
226
- agentId: string;
227
226
  headers: Record<string, string> | null;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -9,14 +9,14 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  relationId: string;
10
10
  }) => Promise<{
11
11
  tenantId: string;
12
- projectId: string;
13
12
  id: string;
13
+ projectId: string;
14
+ agentId: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- agentId: string;
17
+ relationType: string | null;
17
18
  sourceSubAgentId: string;
18
19
  targetSubAgentId: string | null;
19
- relationType: string | null;
20
20
  } | undefined>;
21
21
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
@@ -44,27 +44,27 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
46
  tenantId: string;
47
- projectId: string;
48
47
  id: string;
48
+ projectId: string;
49
+ agentId: string;
49
50
  createdAt: string;
50
51
  updatedAt: string;
51
- agentId: string;
52
+ relationType: string | null;
52
53
  sourceSubAgentId: string;
53
54
  targetSubAgentId: string | null;
54
- relationType: string | null;
55
55
  }[]>;
56
56
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
59
  tenantId: string;
60
- projectId: string;
61
60
  id: string;
61
+ projectId: string;
62
+ agentId: string;
62
63
  createdAt: string;
63
64
  updatedAt: string;
64
- agentId: string;
65
+ relationType: string | null;
65
66
  sourceSubAgentId: string;
66
67
  targetSubAgentId: string | null;
67
- relationType: string | null;
68
68
  }[]>;
69
69
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -126,14 +126,14 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }>;
127
127
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
128
128
  tenantId: string;
129
- projectId: string;
130
129
  id: string;
130
+ projectId: string;
131
+ agentId: string;
131
132
  createdAt: string;
132
133
  updatedAt: string;
133
- agentId: string;
134
+ relationType: string | null;
134
135
  sourceSubAgentId: string;
135
136
  targetSubAgentId: string | null;
136
- relationType: string | null;
137
137
  }>;
138
138
  /**
139
139
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -145,28 +145,28 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  relationType: string;
146
146
  }) => Promise<{
147
147
  tenantId: string;
148
- projectId: string;
149
148
  id: string;
149
+ projectId: string;
150
+ agentId: string;
150
151
  createdAt: string;
151
152
  updatedAt: string;
152
- agentId: string;
153
+ relationType: string | null;
153
154
  sourceSubAgentId: string;
154
155
  targetSubAgentId: string | null;
155
- relationType: string | null;
156
156
  } | undefined>;
157
157
  /**
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
159
159
  */
160
160
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
161
161
  tenantId: string;
162
- projectId: string;
163
162
  id: string;
163
+ projectId: string;
164
+ agentId: string;
164
165
  createdAt: string;
165
166
  updatedAt: string;
166
- agentId: string;
167
+ relationType: string | null;
167
168
  sourceSubAgentId: string;
168
169
  targetSubAgentId: string | null;
169
- relationType: string | null;
170
170
  }>;
171
171
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
172
172
  scopes: AgentScopeConfig;
@@ -204,17 +204,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  };
205
205
  }) => Promise<{
206
206
  tenantId: string;
207
- projectId: string;
208
- subAgentId: string;
209
207
  id: string;
208
+ projectId: string;
209
+ agentId: string;
210
210
  createdAt: string;
211
211
  updatedAt: string;
212
- agentId: string;
213
- headers: Record<string, string> | null;
214
212
  toolId: string;
213
+ headers: Record<string, string> | null;
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: {
@@ -248,17 +248,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  relationId: string;
249
249
  }) => Promise<{
250
250
  tenantId: string;
251
- projectId: string;
252
- subAgentId: string;
253
251
  id: string;
252
+ projectId: string;
253
+ agentId: string;
254
254
  createdAt: string;
255
255
  updatedAt: string;
256
- agentId: string;
257
- headers: Record<string, string> | null;
258
256
  toolId: string;
257
+ headers: Record<string, string> | null;
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: {
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  relationId: string;
10
10
  }) => Promise<{
11
11
  tenantId: string;
12
- projectId: string;
13
- subAgentId: string;
14
12
  id: string;
13
+ projectId: string;
14
+ agentId: string;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
- agentId: string;
18
17
  headers: Record<string, string> | null;
18
+ subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -44,26 +44,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
46
  tenantId: string;
47
- projectId: string;
48
- subAgentId: string;
49
47
  id: string;
48
+ projectId: string;
49
+ agentId: string;
50
50
  createdAt: string;
51
51
  updatedAt: string;
52
- agentId: string;
53
52
  headers: Record<string, string> | null;
53
+ subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
59
  tenantId: string;
60
- projectId: string;
61
- subAgentId: string;
62
60
  id: string;
61
+ projectId: string;
62
+ agentId: string;
63
63
  createdAt: string;
64
64
  updatedAt: string;
65
- agentId: string;
66
65
  headers: Record<string, string> | null;
66
+ subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  };
211
211
  }) => Promise<{
212
212
  tenantId: string;
213
- projectId: string;
214
- subAgentId: string;
215
213
  id: string;
214
+ projectId: string;
215
+ agentId: string;
216
216
  createdAt: string;
217
217
  updatedAt: string;
218
- agentId: string;
219
218
  headers: Record<string, string> | null;
219
+ subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
229
  tenantId: string;
230
- projectId: string;
231
- subAgentId: string;
232
230
  id: string;
231
+ projectId: string;
232
+ agentId: string;
233
233
  createdAt: string;
234
234
  updatedAt: string;
235
- agentId: string;
236
235
  headers: Record<string, string> | null;
236
+ subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  };
249
249
  }) => Promise<{
250
250
  tenantId: string;
251
- projectId: string;
252
- subAgentId: string;
253
251
  id: string;
252
+ projectId: string;
253
+ agentId: string;
254
254
  createdAt: string;
255
255
  updatedAt: string;
256
- agentId: string;
257
256
  headers: Record<string, string> | null;
257
+ subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,11 +10,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  description: string | null;
12
12
  tenantId: string;
13
+ id: string;
13
14
  name: string;
14
15
  projectId: string;
15
- id: string;
16
- createdAt: string;
17
- updatedAt: string;
16
+ agentId: string;
17
+ prompt: string | null;
18
+ conversationHistoryConfig: ConversationHistoryConfig | null;
18
19
  models: {
19
20
  base?: {
20
21
  model?: string | undefined;
@@ -32,20 +33,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
32
33
  stopWhen: {
33
34
  stepCountIs?: number | undefined;
34
35
  } | null;
35
- prompt: string | null;
36
- conversationHistoryConfig: ConversationHistoryConfig | null;
37
- agentId: string;
36
+ createdAt: string;
37
+ updatedAt: string;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
42
  description: string | null;
43
43
  tenantId: string;
44
+ id: string;
44
45
  name: string;
45
46
  projectId: string;
46
- id: string;
47
- createdAt: string;
48
- updatedAt: string;
47
+ agentId: string;
48
+ prompt: string | null;
49
+ conversationHistoryConfig: ConversationHistoryConfig | null;
49
50
  models: {
50
51
  base?: {
51
52
  model?: string | undefined;
@@ -63,9 +64,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
63
64
  stopWhen: {
64
65
  stepCountIs?: number | undefined;
65
66
  } | null;
66
- prompt: string | null;
67
- conversationHistoryConfig: ConversationHistoryConfig | null;
68
- agentId: string;
67
+ createdAt: string;
68
+ updatedAt: string;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -110,11 +110,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
111
  description: string | null;
112
112
  tenantId: string;
113
+ id: string;
113
114
  name: string;
114
115
  projectId: string;
115
- id: string;
116
- createdAt: string;
117
- updatedAt: string;
116
+ agentId: string;
117
+ prompt: string | null;
118
+ conversationHistoryConfig: ConversationHistoryConfig | null;
118
119
  models: {
119
120
  base?: {
120
121
  model?: string | undefined;
@@ -132,9 +133,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
132
133
  stopWhen: {
133
134
  stepCountIs?: number | undefined;
134
135
  } | null;
135
- prompt: string | null;
136
- conversationHistoryConfig: ConversationHistoryConfig | null;
137
- agentId: string;
136
+ createdAt: string;
137
+ updatedAt: string;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
140
140
  scopes: AgentScopeConfig;
@@ -20,9 +20,9 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  }) => Promise<{
21
21
  description: string | null;
22
22
  tenantId: string;
23
+ id: string;
23
24
  name: string;
24
25
  projectId: string;
25
- id: string;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
28
  headers: Record<string, string> | null;
@@ -78,9 +78,9 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
79
  description: string | null;
80
80
  tenantId: string;
81
+ id: string;
81
82
  name: string;
82
83
  projectId: string;
83
- id: string;
84
84
  createdAt: string;
85
85
  updatedAt: string;
86
86
  headers: Record<string, string> | null;
@@ -134,17 +134,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  }> | null;
135
135
  }) => Promise<{
136
136
  tenantId: string;
137
- projectId: string;
138
- subAgentId: string;
139
137
  id: string;
138
+ projectId: string;
139
+ agentId: string;
140
140
  createdAt: string;
141
141
  updatedAt: string;
142
- agentId: string;
143
- headers: Record<string, string> | null;
144
142
  toolId: string;
143
+ headers: Record<string, string> | null;
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: {
@@ -153,17 +153,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
153
153
  toolId: string;
154
154
  }) => Promise<{
155
155
  tenantId: string;
156
- projectId: string;
157
- subAgentId: string;
158
156
  id: string;
157
+ projectId: string;
158
+ agentId: string;
159
159
  createdAt: string;
160
160
  updatedAt: string;
161
- agentId: string;
162
- headers: Record<string, string> | null;
163
161
  toolId: string;
162
+ headers: Record<string, string> | null;
164
163
  toolPolicies: Record<string, {
165
164
  needsApproval?: boolean;
166
165
  }> | null;
166
+ subAgentId: string;
167
167
  selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
@@ -181,17 +181,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  relationId?: string;
182
182
  }) => Promise<{
183
183
  tenantId: string;
184
- projectId: string;
185
- subAgentId: string;
186
184
  id: string;
185
+ projectId: string;
186
+ agentId: string;
187
187
  createdAt: string;
188
188
  updatedAt: string;
189
- agentId: string;
190
- headers: Record<string, string> | null;
191
189
  toolId: string;
190
+ headers: Record<string, string> | null;
192
191
  toolPolicies: Record<string, {
193
192
  needsApproval?: boolean;
194
193
  }> | null;
194
+ subAgentId: string;
195
195
  selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
@@ -202,9 +202,9 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  }) => Promise<{
203
203
  description: string | null;
204
204
  tenantId: string;
205
+ id: string;
205
206
  name: string;
206
207
  projectId: string;
207
- id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
210
  headers: Record<string, string> | null;
@@ -8,48 +8,48 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  id: string;
9
9
  }) => Promise<{
10
10
  tenantId: string;
11
+ id: string;
11
12
  name: string | null;
12
13
  projectId: string;
13
- id: string;
14
+ agentId: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- agentId: string;
17
+ expiresAt: string | null;
17
18
  publicId: string;
18
19
  keyHash: string;
19
20
  keyPrefix: string;
20
21
  lastUsedAt: string | null;
21
- expiresAt: string | null;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
24
  tenantId: string;
25
+ id: string;
25
26
  name: string | null;
26
27
  projectId: string;
27
- id: string;
28
+ agentId: string;
28
29
  createdAt: string;
29
30
  updatedAt: string;
30
- agentId: string;
31
+ expiresAt: string | null;
31
32
  publicId: string;
32
33
  keyHash: string;
33
34
  keyPrefix: string;
34
35
  lastUsedAt: string | null;
35
- expiresAt: string | null;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
41
  tenantId: string;
42
+ id: string;
42
43
  name: string | null;
43
44
  projectId: string;
44
- id: string;
45
+ agentId: string;
45
46
  createdAt: string;
46
47
  updatedAt: string;
47
- agentId: string;
48
+ expiresAt: string | null;
48
49
  publicId: string;
49
50
  keyHash: string;
50
51
  keyPrefix: string;
51
52
  lastUsedAt: string | null;
52
- expiresAt: string | null;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -66,17 +66,17 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
68
  tenantId: string;
69
+ id: string;
69
70
  name: string | null;
70
71
  projectId: string;
71
- id: string;
72
+ agentId: string;
72
73
  createdAt: string;
73
74
  updatedAt: string;
74
- agentId: string;
75
+ expiresAt: string | null;
75
76
  publicId: string;
76
77
  keyHash: string;
77
78
  keyPrefix: string;
78
79
  lastUsedAt: string | null;
79
- expiresAt: string | null;
80
80
  }>;
81
81
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;
@@ -18,12 +18,12 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
18
18
  title: string | null;
19
19
  tenantId: string;
20
20
  userId: string | null;
21
- projectId: string;
22
21
  id: string;
22
+ projectId: string;
23
+ agentId: string | null;
23
24
  createdAt: string;
24
25
  updatedAt: string;
25
26
  metadata: ConversationMetadata | null;
26
- agentId: string | null;
27
27
  ref: {
28
28
  type: "commit" | "tag" | "branch";
29
29
  name: string;
@@ -87,12 +87,12 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
87
87
  title: string | null;
88
88
  tenantId: string;
89
89
  userId: string | null;
90
- projectId: string;
91
90
  id: string;
91
+ projectId: string;
92
+ agentId: string | null;
92
93
  createdAt: string;
93
94
  updatedAt: string;
94
95
  metadata: ConversationMetadata | null;
95
- agentId: string | null;
96
96
  ref: {
97
97
  type: "commit" | "tag" | "branch";
98
98
  name: string;
@@ -123,12 +123,12 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
123
123
  title: string | null;
124
124
  tenantId: string;
125
125
  userId: string | null;
126
- projectId: string;
127
126
  id: string;
127
+ projectId: string;
128
+ agentId: string | null;
128
129
  createdAt: string;
129
130
  updatedAt: string;
130
131
  metadata: ConversationMetadata | null;
131
- agentId: string | null;
132
132
  ref: {
133
133
  type: "commit" | "tag" | "branch";
134
134
  name: string;
@@ -155,12 +155,12 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
155
155
  title: string | null;
156
156
  tenantId: string;
157
157
  userId: string | null;
158
- projectId: string;
159
158
  id: string;
159
+ projectId: string;
160
+ agentId: string | null;
160
161
  createdAt: string;
161
162
  updatedAt: string;
162
163
  metadata: ConversationMetadata | null;
163
- agentId: string | null;
164
164
  ref: {
165
165
  type: "commit" | "tag" | "branch";
166
166
  name: string;