@inkeep/agents-core 0.0.0-dev-20260303010841 → 0.0.0-dev-20260303041823

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 +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +54 -29
  4. package/dist/auth/auth.js +45 -3
  5. package/dist/auth/email-send-status-store.d.ts +10 -0
  6. package/dist/auth/email-send-status-store.js +20 -0
  7. package/dist/auth/permissions.d.ts +13 -13
  8. package/dist/data-access/manage/agents.d.ts +32 -32
  9. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  10. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  11. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  12. package/dist/data-access/manage/functionTools.d.ts +10 -10
  13. package/dist/data-access/manage/skills.d.ts +11 -11
  14. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  16. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  17. package/dist/data-access/manage/subAgents.d.ts +12 -12
  18. package/dist/data-access/manage/tools.d.ts +18 -18
  19. package/dist/data-access/manage/triggers.d.ts +2 -2
  20. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  21. package/dist/data-access/runtime/conversations.d.ts +31 -31
  22. package/dist/data-access/runtime/messages.d.ts +24 -24
  23. package/dist/data-access/runtime/tasks.d.ts +9 -9
  24. package/dist/db/manage/manage-schema.d.ts +451 -451
  25. package/dist/db/runtime/runtime-schema.d.ts +298 -298
  26. package/dist/index.d.ts +2 -1
  27. package/dist/index.js +2 -1
  28. package/dist/middleware/no-auth.d.ts +2 -2
  29. package/dist/utils/error.d.ts +51 -51
  30. package/dist/validation/dolt-schemas.d.ts +1 -1
  31. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  32. package/dist/validation/schemas.d.ts +1896 -1896
  33. package/package.json +1 -1
@@ -65,12 +65,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
65
65
  scopes: SubAgentScopeConfig;
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
+ subAgentId: string;
68
69
  id: string;
69
70
  createdAt: string;
70
- agentId: string;
71
71
  projectId: string;
72
72
  tenantId: string;
73
- subAgentId: string;
73
+ agentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
76
76
  /**
@@ -107,12 +107,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
107
107
  scopes: SubAgentScopeConfig;
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
+ subAgentId: string;
110
111
  id: string;
111
112
  createdAt: string;
112
- agentId: string;
113
113
  projectId: string;
114
114
  tenantId: string;
115
- subAgentId: string;
115
+ agentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
118
118
  /**
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- id: string;
57
56
  name: string;
57
+ description: string | null;
58
+ id: string;
58
59
  createdAt: string;
59
60
  updatedAt: string;
60
- description: string | null;
61
- agentId: string;
62
61
  projectId: string;
63
62
  tenantId: string;
63
+ agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- id: string;
99
98
  name: string;
99
+ description: string | null;
100
+ id: string;
100
101
  createdAt: string;
101
102
  updatedAt: string;
102
- description: string | null;
103
- agentId: string;
104
103
  projectId: string;
105
104
  tenantId: string;
105
+ agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -161,13 +161,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
161
161
  needsApproval?: boolean;
162
162
  }> | null;
163
163
  }) => Promise<{
164
+ subAgentId: string;
164
165
  id: string;
165
166
  createdAt: string;
166
167
  updatedAt: string;
167
- agentId: string;
168
168
  projectId: string;
169
169
  tenantId: string;
170
- subAgentId: string;
170
+ agentId: string;
171
171
  functionToolId: string;
172
172
  toolPolicies: Record<string, {
173
173
  needsApproval?: boolean;
@@ -226,13 +226,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
226
226
  needsApproval?: boolean;
227
227
  }> | null;
228
228
  }) => Promise<{
229
+ subAgentId: string;
229
230
  id: string;
230
231
  createdAt: string;
231
232
  updatedAt: string;
232
- agentId: string;
233
233
  projectId: string;
234
234
  tenantId: string;
235
- subAgentId: string;
235
+ agentId: string;
236
236
  functionToolId: string;
237
237
  toolPolicies: Record<string, {
238
238
  needsApproval?: boolean;
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  skillId: string;
10
10
  }) => Promise<{
11
- id: string;
12
11
  name: string;
12
+ description: string;
13
+ id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- metadata: Record<string, string> | null;
16
- description: string;
17
16
  projectId: string;
18
17
  tenantId: string;
18
+ metadata: Record<string, string> | null;
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
- id: string;
45
44
  name: string;
45
+ description: string;
46
+ id: string;
46
47
  createdAt: string;
47
48
  updatedAt: string;
48
- metadata: Record<string, string> | null;
49
- description: string;
50
49
  projectId: string;
51
50
  tenantId: string;
51
+ metadata: Record<string, string> | null;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
- id: string;
56
55
  name: string;
56
+ description: string;
57
+ id: string;
57
58
  createdAt: string;
58
59
  updatedAt: string;
59
- metadata: Record<string, string> | null;
60
- description: string;
61
60
  projectId: string;
62
61
  tenantId: string;
62
+ metadata: Record<string, string> | null;
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
+ subAgentId: string;
94
95
  id: string;
95
96
  createdAt: string;
96
97
  updatedAt: string;
97
- agentId: string;
98
98
  projectId: string;
99
99
  tenantId: string;
100
- subAgentId: string;
100
+ agentId: string;
101
101
  skillId: string;
102
102
  index: number;
103
103
  alwaysLoaded: boolean;
@@ -9,14 +9,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ subAgentId: string;
12
13
  id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
- agentId: string;
17
16
  projectId: string;
18
17
  tenantId: string;
19
- subAgentId: string;
18
+ agentId: string;
19
+ headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -44,27 +44,27 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ subAgentId: string;
47
48
  id: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
- agentId: string;
52
51
  projectId: string;
53
52
  tenantId: string;
54
- subAgentId: string;
53
+ agentId: string;
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
+ subAgentId: string;
60
61
  id: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
- agentId: string;
65
64
  projectId: string;
66
65
  tenantId: string;
67
- subAgentId: string;
66
+ agentId: string;
67
+ headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -180,14 +180,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
180
180
  headers?: Record<string, string> | null;
181
181
  };
182
182
  }) => Promise<{
183
+ subAgentId: string;
183
184
  id: string;
184
185
  createdAt: string;
185
186
  updatedAt: string;
186
- headers: Record<string, string> | null;
187
- agentId: string;
188
187
  projectId: string;
189
188
  tenantId: string;
190
- subAgentId: string;
189
+ agentId: string;
190
+ headers: Record<string, string> | null;
191
191
  externalAgentId: string;
192
192
  }>;
193
193
  /**
@@ -197,14 +197,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
197
197
  scopes: SubAgentScopeConfig;
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
+ subAgentId: string;
200
201
  id: string;
201
202
  createdAt: string;
202
203
  updatedAt: string;
203
- headers: Record<string, string> | null;
204
- agentId: string;
205
204
  projectId: string;
206
205
  tenantId: string;
207
- subAgentId: string;
206
+ agentId: string;
207
+ headers: Record<string, string> | null;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
210
210
  /**
@@ -218,14 +218,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
218
218
  headers?: Record<string, string> | null;
219
219
  };
220
220
  }) => Promise<{
221
+ subAgentId: string;
221
222
  id: string;
222
223
  createdAt: string;
223
224
  updatedAt: string;
224
- headers: Record<string, string> | null;
225
- agentId: string;
226
225
  projectId: string;
227
226
  tenantId: string;
228
- subAgentId: string;
227
+ agentId: string;
228
+ headers: Record<string, string> | null;
229
229
  externalAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
15
  projectId: string;
17
16
  tenantId: string;
17
+ agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
50
  projectId: string;
52
51
  tenantId: string;
52
+ agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
63
  projectId: string;
65
64
  tenantId: string;
65
+ agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- agentId: string;
133
132
  projectId: string;
134
133
  tenantId: string;
134
+ agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- agentId: string;
152
151
  projectId: string;
153
152
  tenantId: string;
153
+ agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- agentId: string;
166
165
  projectId: string;
167
166
  tenantId: string;
167
+ agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -204,14 +204,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
+ subAgentId: string;
207
208
  id: string;
208
209
  createdAt: string;
209
210
  updatedAt: string;
210
- headers: Record<string, string> | null;
211
- agentId: string;
212
211
  projectId: string;
213
212
  tenantId: string;
214
- subAgentId: string;
213
+ agentId: string;
214
+ headers: Record<string, string> | null;
215
215
  toolId: string;
216
216
  toolPolicies: Record<string, {
217
217
  needsApproval?: boolean;
@@ -248,14 +248,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
+ subAgentId: string;
251
252
  id: string;
252
253
  createdAt: string;
253
254
  updatedAt: string;
254
- headers: Record<string, string> | null;
255
- agentId: string;
256
255
  projectId: string;
257
256
  tenantId: string;
258
- subAgentId: string;
257
+ agentId: string;
258
+ headers: Record<string, string> | null;
259
259
  toolId: string;
260
260
  toolPolicies: Record<string, {
261
261
  needsApproval?: boolean;
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ subAgentId: string;
12
13
  id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
- agentId: string;
17
16
  projectId: string;
18
17
  tenantId: string;
19
- subAgentId: string;
18
+ agentId: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ subAgentId: string;
47
48
  id: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
- agentId: string;
52
51
  projectId: string;
53
52
  tenantId: string;
54
- subAgentId: string;
53
+ agentId: 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
+ subAgentId: string;
60
61
  id: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
- agentId: string;
65
64
  projectId: string;
66
65
  tenantId: string;
67
- subAgentId: string;
66
+ agentId: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -210,14 +210,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
+ subAgentId: string;
213
214
  id: string;
214
215
  createdAt: string;
215
216
  updatedAt: string;
216
- headers: Record<string, string> | null;
217
- agentId: string;
218
217
  projectId: string;
219
218
  tenantId: string;
220
- subAgentId: string;
219
+ agentId: string;
220
+ headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -227,14 +227,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
+ subAgentId: string;
230
231
  id: string;
231
232
  createdAt: string;
232
233
  updatedAt: string;
233
- headers: Record<string, string> | null;
234
- agentId: string;
235
234
  projectId: string;
236
235
  tenantId: string;
237
- subAgentId: string;
236
+ agentId: string;
237
+ headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -248,14 +248,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
+ subAgentId: string;
251
252
  id: string;
252
253
  createdAt: string;
253
254
  updatedAt: string;
254
- headers: Record<string, string> | null;
255
- agentId: string;
256
255
  projectId: string;
257
256
  tenantId: string;
258
- subAgentId: string;
257
+ agentId: string;
258
+ headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,12 +9,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- id: string;
13
12
  name: string;
13
+ description: string | null;
14
+ id: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- description: string | null;
17
- agentId: string;
18
17
  projectId: string;
19
18
  tenantId: string;
20
19
  models: {
@@ -31,21 +30,21 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
30
  providerOptions?: Record<string, any> | undefined;
32
31
  } | undefined;
33
32
  } | null;
34
- prompt: string | null;
35
33
  stopWhen: {
36
34
  stepCountIs?: number | undefined;
37
35
  } | null;
36
+ agentId: string;
37
+ prompt: string | null;
38
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- id: string;
44
43
  name: string;
44
+ description: string | null;
45
+ id: string;
45
46
  createdAt: string;
46
47
  updatedAt: string;
47
- description: string | null;
48
- agentId: string;
49
48
  projectId: string;
50
49
  tenantId: string;
51
50
  models: {
@@ -62,10 +61,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
61
  providerOptions?: Record<string, any> | undefined;
63
62
  } | undefined;
64
63
  } | null;
65
- prompt: string | null;
66
64
  stopWhen: {
67
65
  stepCountIs?: number | undefined;
68
66
  } | null;
67
+ agentId: string;
68
+ prompt: string | null;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -109,12 +109,11 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- id: string;
113
112
  name: string;
113
+ description: string | null;
114
+ id: string;
114
115
  createdAt: string;
115
116
  updatedAt: string;
116
- description: string | null;
117
- agentId: string;
118
117
  projectId: string;
119
118
  tenantId: string;
120
119
  models: {
@@ -131,10 +130,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
130
  providerOptions?: Record<string, any> | undefined;
132
131
  } | undefined;
133
132
  } | null;
134
- prompt: string | null;
135
133
  stopWhen: {
136
134
  stepCountIs?: number | undefined;
137
135
  } | null;
136
+ agentId: string;
137
+ prompt: string | null;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -19,14 +19,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  scopes: ProjectScopeConfig;
20
20
  toolId: string;
21
21
  }) => Promise<{
22
- id: string;
23
22
  name: string;
23
+ description: string | null;
24
+ id: string;
24
25
  createdAt: string;
25
26
  updatedAt: string;
26
- description: string | null;
27
- headers: Record<string, string> | null;
28
27
  projectId: string;
29
28
  tenantId: string;
29
+ headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
32
32
  mcp: ToolMcpConfig;
@@ -77,14 +77,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
77
77
  };
78
78
  }>;
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
- id: string;
81
80
  name: string;
81
+ description: string | null;
82
+ id: string;
82
83
  createdAt: string;
83
84
  updatedAt: string;
84
- description: string | null;
85
- headers: Record<string, string> | null;
86
85
  projectId: string;
87
86
  tenantId: string;
87
+ headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
90
90
  mcp: ToolMcpConfig;
@@ -134,14 +134,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  needsApproval?: boolean;
135
135
  }> | null;
136
136
  }) => Promise<{
137
+ subAgentId: string;
137
138
  id: string;
138
139
  createdAt: string;
139
140
  updatedAt: string;
140
- headers: Record<string, string> | null;
141
- agentId: string;
142
141
  projectId: string;
143
142
  tenantId: string;
144
- subAgentId: string;
143
+ agentId: string;
144
+ headers: Record<string, string> | null;
145
145
  toolId: string;
146
146
  toolPolicies: Record<string, {
147
147
  needsApproval?: boolean;
@@ -153,14 +153,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
153
153
  subAgentId: string;
154
154
  toolId: string;
155
155
  }) => Promise<{
156
+ subAgentId: string;
156
157
  id: string;
157
158
  createdAt: string;
158
159
  updatedAt: string;
159
- headers: Record<string, string> | null;
160
- agentId: string;
161
160
  projectId: string;
162
161
  tenantId: string;
163
- subAgentId: string;
162
+ agentId: string;
163
+ headers: Record<string, string> | null;
164
164
  toolId: string;
165
165
  toolPolicies: Record<string, {
166
166
  needsApproval?: boolean;
@@ -181,14 +181,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  }> | null;
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
+ subAgentId: string;
184
185
  id: string;
185
186
  createdAt: string;
186
187
  updatedAt: string;
187
- headers: Record<string, string> | null;
188
- agentId: string;
189
188
  projectId: string;
190
189
  tenantId: string;
191
- subAgentId: string;
190
+ agentId: string;
191
+ headers: Record<string, string> | null;
192
192
  toolId: string;
193
193
  toolPolicies: Record<string, {
194
194
  needsApproval?: boolean;
@@ -201,14 +201,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
201
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  data: ToolInsert;
203
203
  }) => Promise<{
204
- id: string;
205
204
  name: string;
205
+ description: string | null;
206
+ id: string;
206
207
  createdAt: string;
207
208
  updatedAt: string;
208
- description: string | null;
209
- headers: Record<string, string> | null;
210
209
  projectId: string;
211
210
  tenantId: string;
211
+ headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
214
214
  mcp: ToolMcpConfig;
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "query" | "body" | "header";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "body" | "header" | "literal";
49
+ source: "header" | "literal" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;