@inkeep/agents-core 0.60.0 → 0.61.0

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 (63) hide show
  1. package/dist/auth/auth-schema.d.ts +86 -86
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +6 -6
  4. package/dist/auth/init.js +42 -0
  5. package/dist/auth/permissions.d.ts +13 -13
  6. package/dist/auth/wait-for-spicedb.d.ts +1 -0
  7. package/dist/auth/wait-for-spicedb.js +51 -0
  8. package/dist/client-exports.d.ts +3 -106
  9. package/dist/client-exports.js +2 -60
  10. package/dist/data-access/index.d.ts +4 -3
  11. package/dist/data-access/index.js +4 -3
  12. package/dist/data-access/manage/agentFull.js +10 -5
  13. package/dist/data-access/manage/agents.d.ts +69 -63
  14. package/dist/data-access/manage/agents.js +2 -0
  15. package/dist/data-access/manage/artifactComponents.d.ts +16 -16
  16. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  17. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  18. package/dist/data-access/manage/functionTools.d.ts +14 -14
  19. package/dist/data-access/manage/projectFull.js +24 -3
  20. package/dist/data-access/manage/skills.d.ts +18 -18
  21. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +21 -21
  22. package/dist/data-access/manage/subAgentRelations.d.ts +23 -23
  23. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  24. package/dist/data-access/manage/subAgents.d.ts +36 -36
  25. package/dist/data-access/manage/tools.d.ts +24 -24
  26. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  27. package/dist/data-access/runtime/apps.d.ts +56 -11
  28. package/dist/data-access/runtime/apps.js +15 -1
  29. package/dist/data-access/runtime/conversations.d.ts +25 -25
  30. package/dist/data-access/runtime/conversations.js +1 -0
  31. package/dist/data-access/runtime/ledgerArtifacts.d.ts +11 -2
  32. package/dist/data-access/runtime/ledgerArtifacts.js +12 -1
  33. package/dist/data-access/runtime/messages.d.ts +21 -21
  34. package/dist/data-access/runtime/tasks.d.ts +6 -6
  35. package/dist/data-access/runtime/workflowExecutions.d.ts +25 -0
  36. package/dist/data-access/runtime/workflowExecutions.js +32 -0
  37. package/dist/db/manage/manage-schema.d.ts +399 -379
  38. package/dist/db/manage/manage-schema.js +1 -0
  39. package/dist/db/runtime/runtime-schema.d.ts +516 -301
  40. package/dist/db/runtime/runtime-schema.js +16 -2
  41. package/dist/index.d.ts +10 -8
  42. package/dist/index.js +8 -6
  43. package/dist/types/entities.d.ts +5 -2
  44. package/dist/types/index.d.ts +3 -3
  45. package/dist/types/utility.d.ts +9 -3
  46. package/dist/utils/conversations.d.ts +4 -1
  47. package/dist/utils/conversations.js +10 -1
  48. package/dist/utils/index.d.ts +3 -2
  49. package/dist/utils/index.js +3 -2
  50. package/dist/utils/validate-public-key.d.ts +10 -0
  51. package/dist/utils/validate-public-key.js +89 -0
  52. package/dist/validation/agentFull.js +0 -1
  53. package/dist/validation/index.d.ts +2 -2
  54. package/dist/validation/index.js +2 -2
  55. package/dist/validation/schemas.d.ts +3264 -2504
  56. package/dist/validation/schemas.js +104 -36
  57. package/drizzle/manage/0013_gorgeous_umar.sql +1 -0
  58. package/drizzle/manage/meta/0013_snapshot.json +3704 -0
  59. package/drizzle/manage/meta/_journal.json +7 -0
  60. package/drizzle/runtime/0026_graceful_scorpion.sql +15 -0
  61. package/drizzle/runtime/meta/{0025_snapshot.json → 0026_snapshot.json} +114 -1
  62. package/drizzle/runtime/meta/_journal.json +7 -0
  63. package/package.json +1 -1
@@ -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
- subAgentId: string;
15
12
  id: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
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
- subAgentId: string;
50
47
  id: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
53
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
- subAgentId: string;
63
60
  id: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
66
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
  }[]>;
@@ -147,15 +147,15 @@ declare const getSubAgentsForExternalAgent: (db: AgentsManageDatabaseClient) =>
147
147
  models: {
148
148
  base?: {
149
149
  model?: string | undefined;
150
- providerOptions?: Record<string, any> | undefined;
150
+ providerOptions?: Record<string, unknown> | undefined;
151
151
  } | undefined;
152
152
  structuredOutput?: {
153
153
  model?: string | undefined;
154
- providerOptions?: Record<string, any> | undefined;
154
+ providerOptions?: Record<string, unknown> | undefined;
155
155
  } | undefined;
156
156
  summarizer?: {
157
157
  model?: string | undefined;
158
- providerOptions?: Record<string, any> | undefined;
158
+ providerOptions?: Record<string, unknown> | undefined;
159
159
  } | undefined;
160
160
  } | null;
161
161
  stopWhen: {
@@ -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
- subAgentId: string;
186
183
  id: string;
187
184
  createdAt: string;
188
185
  updatedAt: string;
189
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
- subAgentId: string;
203
200
  id: string;
204
201
  createdAt: string;
205
202
  updatedAt: string;
206
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
- subAgentId: string;
224
221
  id: string;
225
222
  createdAt: string;
226
223
  updatedAt: string;
227
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
12
  id: string;
15
13
  createdAt: string;
16
14
  updatedAt: string;
17
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
47
  id: string;
50
48
  createdAt: string;
51
49
  updatedAt: string;
52
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
60
  id: string;
63
61
  createdAt: string;
64
62
  updatedAt: string;
65
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
129
  id: string;
132
130
  createdAt: string;
133
131
  updatedAt: string;
134
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
148
  id: string;
151
149
  createdAt: string;
152
150
  updatedAt: string;
153
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
162
  id: string;
165
163
  createdAt: string;
166
164
  updatedAt: string;
167
165
  agentId: string;
166
+ projectId: string;
167
+ tenantId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -204,15 +204,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- tenantId: string;
208
- projectId: string;
209
- subAgentId: string;
210
207
  id: string;
211
208
  createdAt: string;
212
209
  updatedAt: string;
213
210
  agentId: string;
214
- headers: Record<string, string> | null;
211
+ projectId: string;
212
+ tenantId: string;
213
+ subAgentId: string;
215
214
  toolId: string;
215
+ headers: Record<string, string> | null;
216
216
  toolPolicies: Record<string, {
217
217
  needsApproval?: boolean;
218
218
  }> | null;
@@ -248,15 +248,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- tenantId: string;
252
- projectId: string;
253
- subAgentId: string;
254
251
  id: string;
255
252
  createdAt: string;
256
253
  updatedAt: string;
257
254
  agentId: string;
258
- headers: Record<string, string> | null;
255
+ projectId: string;
256
+ tenantId: string;
257
+ subAgentId: string;
259
258
  toolId: string;
259
+ headers: Record<string, string> | null;
260
260
  toolPolicies: Record<string, {
261
261
  needsApproval?: boolean;
262
262
  }> | null;
@@ -410,15 +410,15 @@ declare const getAgentsForTool: (db: AgentsManageDatabaseClient) => (params: {
410
410
  models: {
411
411
  base?: {
412
412
  model?: string | undefined;
413
- providerOptions?: Record<string, any> | undefined;
413
+ providerOptions?: Record<string, unknown> | undefined;
414
414
  } | undefined;
415
415
  structuredOutput?: {
416
416
  model?: string | undefined;
417
- providerOptions?: Record<string, any> | undefined;
417
+ providerOptions?: Record<string, unknown> | undefined;
418
418
  } | undefined;
419
419
  summarizer?: {
420
420
  model?: string | undefined;
421
- providerOptions?: Record<string, any> | undefined;
421
+ providerOptions?: Record<string, unknown> | undefined;
422
422
  } | undefined;
423
423
  } | null;
424
424
  stopWhen: {
@@ -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
- subAgentId: string;
15
12
  id: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
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
- subAgentId: string;
50
47
  id: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
53
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
- subAgentId: string;
63
60
  id: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
66
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
  }[]>;
@@ -113,15 +113,15 @@ declare const getTeamAgentsForSubAgent: (db: AgentsManageDatabaseClient) => (par
113
113
  models: {
114
114
  base?: {
115
115
  model?: string | undefined;
116
- providerOptions?: Record<string, any> | undefined;
116
+ providerOptions?: Record<string, unknown> | undefined;
117
117
  } | undefined;
118
118
  structuredOutput?: {
119
119
  model?: string | undefined;
120
- providerOptions?: Record<string, any> | undefined;
120
+ providerOptions?: Record<string, unknown> | undefined;
121
121
  } | undefined;
122
122
  summarizer?: {
123
123
  model?: string | undefined;
124
- providerOptions?: Record<string, any> | undefined;
124
+ providerOptions?: Record<string, unknown> | undefined;
125
125
  } | undefined;
126
126
  } | null;
127
127
  statusUpdates: {
@@ -177,15 +177,15 @@ declare const getSubAgentsForTeamAgent: (db: AgentsManageDatabaseClient) => (par
177
177
  models: {
178
178
  base?: {
179
179
  model?: string | undefined;
180
- providerOptions?: Record<string, any> | undefined;
180
+ providerOptions?: Record<string, unknown> | undefined;
181
181
  } | undefined;
182
182
  structuredOutput?: {
183
183
  model?: string | undefined;
184
- providerOptions?: Record<string, any> | undefined;
184
+ providerOptions?: Record<string, unknown> | undefined;
185
185
  } | undefined;
186
186
  summarizer?: {
187
187
  model?: string | undefined;
188
- providerOptions?: Record<string, any> | undefined;
188
+ providerOptions?: Record<string, unknown> | undefined;
189
189
  } | undefined;
190
190
  } | null;
191
191
  stopWhen: {
@@ -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
- subAgentId: string;
216
213
  id: string;
217
214
  createdAt: string;
218
215
  updatedAt: string;
219
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
- subAgentId: string;
233
230
  id: string;
234
231
  createdAt: string;
235
232
  updatedAt: string;
236
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
- subAgentId: string;
254
251
  id: string;
255
252
  createdAt: string;
256
253
  updatedAt: string;
257
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,64 +9,64 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- description: string | null;
13
- name: string;
14
- tenantId: string;
15
- projectId: string;
16
12
  id: string;
13
+ name: string;
17
14
  createdAt: string;
18
15
  updatedAt: string;
16
+ description: string | null;
17
+ agentId: string;
18
+ projectId: string;
19
+ tenantId: string;
19
20
  models: {
20
21
  base?: {
21
22
  model?: string | undefined;
22
- providerOptions?: Record<string, any> | undefined;
23
+ providerOptions?: Record<string, unknown> | undefined;
23
24
  } | undefined;
24
25
  structuredOutput?: {
25
26
  model?: string | undefined;
26
- providerOptions?: Record<string, any> | undefined;
27
+ providerOptions?: Record<string, unknown> | undefined;
27
28
  } | undefined;
28
29
  summarizer?: {
29
30
  model?: string | undefined;
30
- providerOptions?: Record<string, any> | undefined;
31
+ providerOptions?: Record<string, unknown> | undefined;
31
32
  } | undefined;
32
33
  } | null;
34
+ prompt: string | null;
33
35
  stopWhen: {
34
36
  stepCountIs?: number | undefined;
35
37
  } | null;
36
- prompt: string | null;
37
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
38
- agentId: string;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- description: string | null;
44
- name: string;
45
- tenantId: string;
46
- projectId: string;
47
43
  id: string;
44
+ name: string;
48
45
  createdAt: string;
49
46
  updatedAt: string;
47
+ description: string | null;
48
+ agentId: string;
49
+ projectId: string;
50
+ tenantId: string;
50
51
  models: {
51
52
  base?: {
52
53
  model?: string | undefined;
53
- providerOptions?: Record<string, any> | undefined;
54
+ providerOptions?: Record<string, unknown> | undefined;
54
55
  } | undefined;
55
56
  structuredOutput?: {
56
57
  model?: string | undefined;
57
- providerOptions?: Record<string, any> | undefined;
58
+ providerOptions?: Record<string, unknown> | undefined;
58
59
  } | undefined;
59
60
  summarizer?: {
60
61
  model?: string | undefined;
61
- providerOptions?: Record<string, any> | undefined;
62
+ providerOptions?: Record<string, unknown> | undefined;
62
63
  } | undefined;
63
64
  } | null;
65
+ prompt: string | null;
64
66
  stopWhen: {
65
67
  stepCountIs?: number | undefined;
66
68
  } | null;
67
- prompt: string | null;
68
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
69
- agentId: string;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -80,15 +80,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
80
80
  models: {
81
81
  base?: {
82
82
  model?: string | undefined;
83
- providerOptions?: Record<string, any> | undefined;
83
+ providerOptions?: Record<string, unknown> | undefined;
84
84
  } | undefined;
85
85
  structuredOutput?: {
86
86
  model?: string | undefined;
87
- providerOptions?: Record<string, any> | undefined;
87
+ providerOptions?: Record<string, unknown> | undefined;
88
88
  } | undefined;
89
89
  summarizer?: {
90
90
  model?: string | undefined;
91
- providerOptions?: Record<string, any> | undefined;
91
+ providerOptions?: Record<string, unknown> | undefined;
92
92
  } | undefined;
93
93
  } | null;
94
94
  stopWhen: {
@@ -109,33 +109,33 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- description: string | null;
113
- name: string;
114
- tenantId: string;
115
- projectId: string;
116
112
  id: string;
113
+ name: string;
117
114
  createdAt: string;
118
115
  updatedAt: string;
116
+ description: string | null;
117
+ agentId: string;
118
+ projectId: string;
119
+ tenantId: string;
119
120
  models: {
120
121
  base?: {
121
122
  model?: string | undefined;
122
- providerOptions?: Record<string, any> | undefined;
123
+ providerOptions?: Record<string, unknown> | undefined;
123
124
  } | undefined;
124
125
  structuredOutput?: {
125
126
  model?: string | undefined;
126
- providerOptions?: Record<string, any> | undefined;
127
+ providerOptions?: Record<string, unknown> | undefined;
127
128
  } | undefined;
128
129
  summarizer?: {
129
130
  model?: string | undefined;
130
- providerOptions?: Record<string, any> | undefined;
131
+ providerOptions?: Record<string, unknown> | undefined;
131
132
  } | undefined;
132
133
  } | null;
134
+ prompt: string | null;
133
135
  stopWhen: {
134
136
  stepCountIs?: number | undefined;
135
137
  } | null;
136
- prompt: string | null;
137
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
138
- agentId: string;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -149,15 +149,15 @@ declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
149
149
  models: {
150
150
  base?: {
151
151
  model?: string | undefined;
152
- providerOptions?: Record<string, any> | undefined;
152
+ providerOptions?: Record<string, unknown> | undefined;
153
153
  } | undefined;
154
154
  structuredOutput?: {
155
155
  model?: string | undefined;
156
- providerOptions?: Record<string, any> | undefined;
156
+ providerOptions?: Record<string, unknown> | undefined;
157
157
  } | undefined;
158
158
  summarizer?: {
159
159
  model?: string | undefined;
160
- providerOptions?: Record<string, any> | undefined;
160
+ providerOptions?: Record<string, unknown> | undefined;
161
161
  } | undefined;
162
162
  } | null;
163
163
  stopWhen: {
@@ -196,15 +196,15 @@ declare const getSubAgentsByIds: (db: AgentsManageDatabaseClient) => (params: {
196
196
  models: {
197
197
  base?: {
198
198
  model?: string | undefined;
199
- providerOptions?: Record<string, any> | undefined;
199
+ providerOptions?: Record<string, unknown> | undefined;
200
200
  } | undefined;
201
201
  structuredOutput?: {
202
202
  model?: string | undefined;
203
- providerOptions?: Record<string, any> | undefined;
203
+ providerOptions?: Record<string, unknown> | undefined;
204
204
  } | undefined;
205
205
  summarizer?: {
206
206
  model?: string | undefined;
207
- providerOptions?: Record<string, any> | undefined;
207
+ providerOptions?: Record<string, unknown> | undefined;
208
208
  } | undefined;
209
209
  } | null;
210
210
  stopWhen: {
@@ -20,13 +20,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- description: string | null;
24
- name: string;
25
- tenantId: string;
26
- projectId: string;
27
23
  id: string;
24
+ name: string;
28
25
  createdAt: string;
29
26
  updatedAt: string;
27
+ description: string | null;
28
+ projectId: string;
29
+ tenantId: string;
30
30
  headers: Record<string, string> | null;
31
31
  config: {
32
32
  type: "mcp";
@@ -78,13 +78,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- description: string | null;
82
- name: string;
83
- tenantId: string;
84
- projectId: string;
85
81
  id: string;
82
+ name: string;
86
83
  createdAt: string;
87
84
  updatedAt: string;
85
+ description: string | null;
86
+ projectId: string;
87
+ tenantId: string;
88
88
  headers: Record<string, string> | null;
89
89
  config: {
90
90
  type: "mcp";
@@ -135,15 +135,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- tenantId: string;
139
- projectId: string;
140
- subAgentId: string;
141
138
  id: string;
142
139
  createdAt: string;
143
140
  updatedAt: string;
144
141
  agentId: string;
145
- headers: Record<string, string> | null;
142
+ projectId: string;
143
+ tenantId: string;
144
+ subAgentId: string;
146
145
  toolId: string;
146
+ headers: Record<string, string> | null;
147
147
  toolPolicies: Record<string, {
148
148
  needsApproval?: boolean;
149
149
  }> | null;
@@ -154,15 +154,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
- tenantId: string;
158
- projectId: string;
159
- subAgentId: string;
160
157
  id: string;
161
158
  createdAt: string;
162
159
  updatedAt: string;
163
160
  agentId: string;
164
- headers: Record<string, string> | null;
161
+ projectId: string;
162
+ tenantId: string;
163
+ subAgentId: string;
165
164
  toolId: string;
165
+ headers: Record<string, string> | null;
166
166
  toolPolicies: Record<string, {
167
167
  needsApproval?: boolean;
168
168
  }> | null;
@@ -182,15 +182,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
- tenantId: string;
186
- projectId: string;
187
- subAgentId: string;
188
185
  id: string;
189
186
  createdAt: string;
190
187
  updatedAt: string;
191
188
  agentId: string;
192
- headers: Record<string, string> | null;
189
+ projectId: string;
190
+ tenantId: string;
191
+ subAgentId: string;
193
192
  toolId: string;
193
+ headers: Record<string, string> | null;
194
194
  toolPolicies: Record<string, {
195
195
  needsApproval?: boolean;
196
196
  }> | null;
@@ -202,13 +202,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- description: string | null;
206
- name: string;
207
- tenantId: string;
208
- projectId: string;
209
205
  id: string;
206
+ name: string;
210
207
  createdAt: string;
211
208
  updatedAt: string;
209
+ description: string | null;
210
+ projectId: string;
211
+ tenantId: string;
212
212
  headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";