@inkeep/agents-core 0.0.0-dev-20260310215636 → 0.0.0-dev-20260310235813

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 (29) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +28 -28
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +3 -3
  6. package/dist/data-access/manage/agents.d.ts +21 -21
  7. package/dist/data-access/manage/artifactComponents.d.ts +16 -16
  8. package/dist/data-access/manage/contextConfigs.d.ts +20 -20
  9. package/dist/data-access/manage/credentialReferences.d.ts +3 -1
  10. package/dist/data-access/manage/credentialReferences.js +25 -4
  11. package/dist/data-access/manage/dataComponents.d.ts +8 -8
  12. package/dist/data-access/manage/functionTools.d.ts +20 -20
  13. package/dist/data-access/manage/skills.d.ts +16 -16
  14. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  15. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  16. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  17. package/dist/data-access/manage/subAgents.d.ts +15 -15
  18. package/dist/data-access/manage/tools.d.ts +30 -30
  19. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  20. package/dist/data-access/runtime/apps.d.ts +8 -8
  21. package/dist/data-access/runtime/conversations.d.ts +24 -24
  22. package/dist/data-access/runtime/messages.d.ts +9 -9
  23. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  24. package/dist/data-access/runtime/tasks.d.ts +7 -7
  25. package/dist/db/manage/manage-schema.d.ts +357 -357
  26. package/dist/db/runtime/runtime-schema.d.ts +296 -296
  27. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  28. package/dist/validation/schemas.d.ts +2045 -2045
  29. package/package.json +1 -1
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  skillId: string;
10
10
  }) => Promise<{
11
- name: string;
12
- description: string;
13
- tenantId: string;
14
- projectId: string;
15
11
  id: string;
12
+ name: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
15
  metadata: Record<string, string> | null;
16
+ projectId: string;
17
+ tenantId: string;
18
+ description: string;
19
19
  content: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
@@ -41,25 +41,25 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
41
41
  };
42
42
  }>;
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
- name: string;
45
- description: string;
46
- tenantId: string;
47
- projectId: string;
48
44
  id: string;
45
+ name: string;
49
46
  createdAt: string;
50
47
  updatedAt: string;
51
48
  metadata: Record<string, string> | null;
49
+ projectId: string;
50
+ tenantId: string;
51
+ description: string;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
- name: string;
56
- description: string;
57
- tenantId: string;
58
- projectId: string;
59
55
  id: string;
56
+ name: string;
60
57
  createdAt: string;
61
58
  updatedAt: string;
62
59
  metadata: Record<string, string> | null;
60
+ projectId: string;
61
+ tenantId: string;
62
+ description: string;
63
63
  content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -91,13 +91,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
91
91
  index: number;
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
- tenantId: string;
95
- projectId: string;
96
- agentId: string;
97
- subAgentId: string;
98
94
  id: string;
99
95
  createdAt: string;
100
96
  updatedAt: string;
97
+ agentId: string;
98
+ projectId: string;
99
+ tenantId: string;
100
+ subAgentId: string;
101
101
  skillId: string;
102
102
  index: number;
103
103
  alwaysLoaded: boolean;
@@ -9,13 +9,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
- subAgentId: string;
16
12
  id: string;
17
13
  createdAt: string;
18
14
  updatedAt: string;
15
+ agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
@@ -44,26 +44,26 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
- subAgentId: string;
51
47
  id: string;
52
48
  createdAt: string;
53
49
  updatedAt: string;
50
+ agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
+ subAgentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
- projectId: string;
62
- agentId: string;
63
- subAgentId: string;
64
60
  id: string;
65
61
  createdAt: string;
66
62
  updatedAt: string;
63
+ agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
+ subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
@@ -180,13 +180,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
180
180
  headers?: Record<string, string> | null;
181
181
  };
182
182
  }) => Promise<{
183
- tenantId: string;
184
- projectId: string;
185
- agentId: string;
186
- subAgentId: string;
187
183
  id: string;
188
184
  createdAt: string;
189
185
  updatedAt: string;
186
+ agentId: string;
187
+ projectId: string;
188
+ tenantId: string;
189
+ subAgentId: string;
190
190
  headers: Record<string, string> | null;
191
191
  externalAgentId: string;
192
192
  }>;
@@ -197,13 +197,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
197
197
  scopes: SubAgentScopeConfig;
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
- tenantId: string;
201
- projectId: string;
202
- agentId: string;
203
- subAgentId: string;
204
200
  id: string;
205
201
  createdAt: string;
206
202
  updatedAt: string;
203
+ agentId: string;
204
+ projectId: string;
205
+ tenantId: string;
206
+ subAgentId: string;
207
207
  headers: Record<string, string> | null;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
@@ -218,13 +218,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
218
218
  headers?: Record<string, string> | null;
219
219
  };
220
220
  }) => Promise<{
221
- tenantId: string;
222
- projectId: string;
223
- agentId: string;
224
- subAgentId: string;
225
221
  id: string;
226
222
  createdAt: string;
227
223
  updatedAt: string;
224
+ agentId: string;
225
+ projectId: string;
226
+ tenantId: string;
227
+ subAgentId: string;
228
228
  headers: Record<string, string> | null;
229
229
  externalAgentId: string;
230
230
  }>;
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
12
  id: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
47
  id: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
50
+ agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
- projectId: string;
62
- agentId: string;
63
60
  id: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
63
+ agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
- tenantId: string;
130
- projectId: string;
131
- agentId: string;
132
129
  id: string;
133
130
  createdAt: string;
134
131
  updatedAt: string;
132
+ agentId: string;
133
+ projectId: string;
134
+ tenantId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
- tenantId: string;
149
- projectId: string;
150
- agentId: string;
151
148
  id: string;
152
149
  createdAt: string;
153
150
  updatedAt: string;
151
+ agentId: string;
152
+ projectId: string;
153
+ tenantId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
- tenantId: string;
163
- projectId: string;
164
- agentId: string;
165
162
  id: string;
166
163
  createdAt: string;
167
164
  updatedAt: string;
165
+ agentId: string;
166
+ projectId: string;
167
+ tenantId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- tenantId: string;
208
- projectId: string;
209
- agentId: string;
210
- subAgentId: string;
211
- toolId: string;
212
207
  id: string;
213
208
  createdAt: string;
214
209
  updatedAt: string;
210
+ agentId: string;
211
+ projectId: string;
212
+ tenantId: string;
213
+ subAgentId: string;
214
+ toolId: string;
215
215
  headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
216
217
  toolPolicies: Record<string, {
217
218
  needsApproval?: boolean;
218
219
  }> | null;
219
- selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -248,19 +248,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- tenantId: string;
252
- projectId: string;
253
- agentId: string;
254
- subAgentId: string;
255
- toolId: string;
256
251
  id: string;
257
252
  createdAt: string;
258
253
  updatedAt: string;
254
+ agentId: string;
255
+ projectId: string;
256
+ tenantId: string;
257
+ subAgentId: string;
258
+ toolId: string;
259
259
  headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
260
261
  toolPolicies: Record<string, {
261
262
  needsApproval?: boolean;
262
263
  }> | null;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
- subAgentId: string;
16
12
  id: string;
17
13
  createdAt: string;
18
14
  updatedAt: string;
15
+ agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -44,26 +44,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
- subAgentId: string;
51
47
  id: string;
52
48
  createdAt: string;
53
49
  updatedAt: string;
50
+ agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
+ subAgentId: string;
54
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
- tenantId: string;
61
- projectId: string;
62
- agentId: string;
63
- subAgentId: string;
64
60
  id: string;
65
61
  createdAt: string;
66
62
  updatedAt: string;
63
+ agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
+ subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
- tenantId: string;
214
- projectId: string;
215
- agentId: string;
216
- subAgentId: string;
217
213
  id: string;
218
214
  createdAt: string;
219
215
  updatedAt: string;
216
+ agentId: string;
217
+ projectId: string;
218
+ tenantId: string;
219
+ subAgentId: string;
220
220
  headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
- tenantId: string;
231
- projectId: string;
232
- agentId: string;
233
- subAgentId: string;
234
230
  id: string;
235
231
  createdAt: string;
236
232
  updatedAt: string;
233
+ agentId: string;
234
+ projectId: string;
235
+ tenantId: string;
236
+ subAgentId: string;
237
237
  headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
- tenantId: string;
252
- projectId: string;
253
- agentId: string;
254
- subAgentId: string;
255
251
  id: string;
256
252
  createdAt: string;
257
253
  updatedAt: string;
254
+ agentId: string;
255
+ projectId: string;
256
+ tenantId: string;
257
+ subAgentId: string;
258
258
  headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -9,14 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- name: string;
13
- description: string | null;
14
- tenantId: string;
15
- projectId: string;
16
- agentId: string;
17
12
  id: string;
13
+ name: string;
18
14
  createdAt: string;
19
15
  updatedAt: string;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
19
+ description: string | null;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -40,14 +40,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- name: string;
44
- description: string | null;
45
- tenantId: string;
46
- projectId: string;
47
- agentId: string;
48
43
  id: string;
44
+ name: string;
49
45
  createdAt: string;
50
46
  updatedAt: string;
47
+ agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
50
+ description: string | null;
51
51
  models: {
52
52
  base?: {
53
53
  model?: string | undefined;
@@ -109,14 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- name: string;
113
- description: string | null;
114
- tenantId: string;
115
- projectId: string;
116
- agentId: string;
117
112
  id: string;
113
+ name: string;
118
114
  createdAt: string;
119
115
  updatedAt: string;
116
+ agentId: string;
117
+ projectId: string;
118
+ tenantId: string;
119
+ description: string | null;
120
120
  models: {
121
121
  base?: {
122
122
  model?: string | undefined;
@@ -19,13 +19,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  scopes: ProjectScopeConfig;
20
20
  toolId: string;
21
21
  }) => Promise<{
22
- name: string;
23
- description: string | null;
24
- tenantId: string;
25
- projectId: string;
26
22
  id: string;
23
+ name: string;
27
24
  createdAt: string;
28
25
  updatedAt: string;
26
+ projectId: string;
27
+ tenantId: string;
28
+ description: string | null;
29
29
  headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
@@ -77,13 +77,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
77
77
  };
78
78
  }>;
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
- name: string;
81
- description: string | null;
82
- tenantId: string;
83
- projectId: string;
84
80
  id: string;
81
+ name: string;
85
82
  createdAt: string;
86
83
  updatedAt: string;
84
+ projectId: string;
85
+ tenantId: string;
86
+ description: string | null;
87
87
  headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
@@ -134,38 +134,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  needsApproval?: boolean;
135
135
  }> | null;
136
136
  }) => Promise<{
137
- tenantId: string;
138
- projectId: string;
139
- agentId: string;
140
- subAgentId: string;
141
- toolId: string;
142
137
  id: string;
143
138
  createdAt: string;
144
139
  updatedAt: string;
140
+ agentId: string;
141
+ projectId: string;
142
+ tenantId: string;
143
+ subAgentId: string;
144
+ toolId: string;
145
145
  headers: Record<string, string> | null;
146
+ selectedTools: string[] | null;
146
147
  toolPolicies: Record<string, {
147
148
  needsApproval?: boolean;
148
149
  }> | null;
149
- selectedTools: string[] | null;
150
150
  }>;
151
151
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
152
152
  scopes: AgentScopeConfig;
153
153
  subAgentId: string;
154
154
  toolId: string;
155
155
  }) => Promise<{
156
- tenantId: string;
157
- projectId: string;
158
- agentId: string;
159
- subAgentId: string;
160
- toolId: string;
161
156
  id: string;
162
157
  createdAt: string;
163
158
  updatedAt: string;
159
+ agentId: string;
160
+ projectId: string;
161
+ tenantId: string;
162
+ subAgentId: string;
163
+ toolId: string;
164
164
  headers: Record<string, string> | null;
165
+ selectedTools: string[] | null;
165
166
  toolPolicies: Record<string, {
166
167
  needsApproval?: boolean;
167
168
  }> | null;
168
- selectedTools: string[] | null;
169
169
  }>;
170
170
  /**
171
171
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -181,19 +181,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  }> | null;
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
- tenantId: string;
185
- projectId: string;
186
- agentId: string;
187
- subAgentId: string;
188
- toolId: string;
189
184
  id: string;
190
185
  createdAt: string;
191
186
  updatedAt: string;
187
+ agentId: string;
188
+ projectId: string;
189
+ tenantId: string;
190
+ subAgentId: string;
191
+ toolId: string;
192
192
  headers: Record<string, string> | null;
193
+ selectedTools: string[] | null;
193
194
  toolPolicies: Record<string, {
194
195
  needsApproval?: boolean;
195
196
  }> | null;
196
- selectedTools: string[] | null;
197
197
  }>;
198
198
  /**
199
199
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -201,13 +201,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
201
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  data: ToolInsert;
203
203
  }) => Promise<{
204
- name: string;
205
- description: string | null;
206
- tenantId: string;
207
- projectId: string;
208
204
  id: string;
205
+ name: string;
209
206
  createdAt: string;
210
207
  updatedAt: string;
208
+ projectId: string;
209
+ tenantId: string;
210
+ description: string | null;
211
211
  headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- name: string | null;
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
11
  id: string;
12
+ name: string | null;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ expiresAt: string | null;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
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
- name: string | null;
26
- tenantId: string;
27
- projectId: string;
28
- agentId: string;
29
25
  id: string;
26
+ name: string | null;
30
27
  createdAt: string;
31
28
  updatedAt: string;
29
+ expiresAt: string | null;
30
+ agentId: string;
31
+ projectId: string;
32
+ tenantId: string;
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;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
- name: string | null;
43
- tenantId: string;
44
- projectId: string;
45
- agentId: string;
46
42
  id: string;
43
+ name: string | null;
47
44
  createdAt: string;
48
45
  updatedAt: string;
46
+ expiresAt: string | null;
47
+ agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
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;
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- name: string | null;
70
- tenantId: string;
71
- projectId: string;
72
- agentId: string;
73
69
  id: string;
70
+ name: string | null;
74
71
  createdAt: string;
75
72
  updatedAt: string;
73
+ expiresAt: string | null;
74
+ agentId: string;
75
+ projectId: string;
76
+ tenantId: string;
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;