@inkeep/agents-core 0.0.0-dev-20260222144437 → 0.0.0-dev-20260223164732

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 (28) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  2. package/dist/auth/auth.d.ts +53 -53
  3. package/dist/auth/permissions.d.ts +13 -13
  4. package/dist/client-exports.d.ts +3 -9
  5. package/dist/data-access/manage/agents.d.ts +27 -27
  6. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  7. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  8. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  9. package/dist/data-access/manage/functionTools.d.ts +10 -10
  10. package/dist/data-access/manage/scope-helpers.d.ts +5 -5
  11. package/dist/data-access/manage/skills.d.ts +9 -9
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  13. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgents.d.ts +9 -9
  16. package/dist/data-access/manage/tools.d.ts +18 -18
  17. package/dist/data-access/manage/triggers.d.ts +2 -2
  18. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  19. package/dist/data-access/runtime/conversations.d.ts +12 -12
  20. package/dist/data-access/runtime/messages.d.ts +15 -15
  21. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  22. package/dist/data-access/runtime/tasks.d.ts +2 -2
  23. package/dist/db/manage/manage-schema.d.ts +449 -449
  24. package/dist/db/runtime/runtime-schema.d.ts +292 -292
  25. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  26. package/dist/validation/schemas.d.ts +1634 -1664
  27. package/dist/validation/schemas.js +2 -1
  28. package/package.json +1 -1
@@ -58,9 +58,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
60
  description: string | null;
61
- agentId: string;
62
- projectId: string;
63
61
  tenantId: string;
62
+ projectId: string;
63
+ agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -100,9 +100,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
100
100
  createdAt: string;
101
101
  updatedAt: string;
102
102
  description: string | null;
103
- agentId: string;
104
- projectId: string;
105
103
  tenantId: string;
104
+ projectId: string;
105
+ agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -164,14 +164,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  id: string;
165
165
  createdAt: string;
166
166
  updatedAt: string;
167
- agentId: string;
168
- projectId: string;
169
167
  tenantId: string;
168
+ projectId: string;
170
169
  subAgentId: string;
170
+ agentId: string;
171
+ functionToolId: string;
171
172
  toolPolicies: Record<string, {
172
173
  needsApproval?: boolean;
173
174
  }> | null;
174
- functionToolId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -229,14 +229,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- agentId: string;
233
- projectId: string;
234
232
  tenantId: string;
233
+ projectId: string;
235
234
  subAgentId: string;
235
+ agentId: string;
236
+ functionToolId: string;
236
237
  toolPolicies: Record<string, {
237
238
  needsApproval?: boolean;
238
239
  }> | null;
239
- functionToolId: string;
240
240
  }>;
241
241
  //#endregion
242
242
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -1,5 +1,5 @@
1
1
  import { AgentScopeConfig, ProjectScopeConfig, SubAgentScopeConfig } from "../../types/utility.js";
2
- import * as drizzle_orm20 from "drizzle-orm";
2
+ import * as drizzle_orm111 from "drizzle-orm";
3
3
 
4
4
  //#region src/data-access/manage/scope-helpers.d.ts
5
5
  type TenantScopeConfig = {
@@ -17,9 +17,9 @@ type AgentScopedColumns = ProjectScopedColumns & {
17
17
  type SubAgentScopedColumns = AgentScopedColumns & {
18
18
  subAgentId: any;
19
19
  };
20
- declare function tenantScopedWhere<T extends TenantScopedColumns>(table: T, scopes: TenantScopeConfig): drizzle_orm20.SQL<unknown>;
21
- declare function projectScopedWhere<T extends ProjectScopedColumns>(table: T, scopes: ProjectScopeConfig): drizzle_orm20.SQL<unknown> | undefined;
22
- declare function agentScopedWhere<T extends AgentScopedColumns>(table: T, scopes: AgentScopeConfig): drizzle_orm20.SQL<unknown> | undefined;
23
- declare function subAgentScopedWhere<T extends SubAgentScopedColumns>(table: T, scopes: SubAgentScopeConfig): drizzle_orm20.SQL<unknown> | undefined;
20
+ declare function tenantScopedWhere<T extends TenantScopedColumns>(table: T, scopes: TenantScopeConfig): drizzle_orm111.SQL<unknown>;
21
+ declare function projectScopedWhere<T extends ProjectScopedColumns>(table: T, scopes: ProjectScopeConfig): drizzle_orm111.SQL<unknown> | undefined;
22
+ declare function agentScopedWhere<T extends AgentScopedColumns>(table: T, scopes: AgentScopeConfig): drizzle_orm111.SQL<unknown> | undefined;
23
+ declare function subAgentScopedWhere<T extends SubAgentScopedColumns>(table: T, scopes: SubAgentScopeConfig): drizzle_orm111.SQL<unknown> | undefined;
24
24
  //#endregion
25
25
  export { agentScopedWhere, projectScopedWhere, subAgentScopedWhere, tenantScopedWhere };
@@ -13,9 +13,9 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
13
13
  updatedAt: string;
14
14
  metadata: Record<string, string> | null;
15
15
  description: string;
16
- projectId: string;
17
- tenantId: string;
18
16
  content: string;
17
+ tenantId: string;
18
+ projectId: string;
19
19
  } | null>;
20
20
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: ProjectScopeConfig;
@@ -46,9 +46,9 @@ declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInser
46
46
  updatedAt: string;
47
47
  metadata: Record<string, string> | null;
48
48
  description: string;
49
- projectId: string;
50
- tenantId: string;
51
49
  content: string;
50
+ tenantId: string;
51
+ projectId: string;
52
52
  }>;
53
53
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
54
54
  id: string;
@@ -57,9 +57,9 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInser
57
57
  updatedAt: string;
58
58
  metadata: Record<string, string> | null;
59
59
  description: string;
60
- projectId: string;
61
- tenantId: string;
62
60
  content: string;
61
+ tenantId: string;
62
+ projectId: string;
63
63
  }>;
64
64
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
65
65
  scopes: ProjectScopeConfig;
@@ -93,13 +93,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
93
93
  id: string;
94
94
  createdAt: string;
95
95
  updatedAt: string;
96
- agentId: string;
97
- projectId: string;
98
96
  tenantId: string;
97
+ projectId: string;
98
+ subAgentId: string;
99
+ agentId: string;
99
100
  skillId: string;
100
101
  index: number;
101
102
  alwaysLoaded: boolean;
102
- subAgentId: string;
103
103
  }>;
104
104
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
105
105
  scopes: AgentScopeConfig;
@@ -11,11 +11,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- headers: Record<string, string> | null;
15
- agentId: string;
16
- projectId: string;
17
14
  tenantId: string;
15
+ projectId: string;
16
+ headers: Record<string, string> | null;
18
17
  subAgentId: string;
18
+ agentId: string;
19
19
  externalAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,11 +46,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- headers: Record<string, string> | null;
50
- agentId: string;
51
- projectId: string;
52
49
  tenantId: string;
50
+ projectId: string;
51
+ headers: Record<string, string> | null;
53
52
  subAgentId: string;
53
+ agentId: string;
54
54
  externalAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,11 +59,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- headers: Record<string, string> | null;
63
- agentId: string;
64
- projectId: string;
65
62
  tenantId: string;
63
+ projectId: string;
64
+ headers: Record<string, string> | null;
66
65
  subAgentId: string;
66
+ agentId: string;
67
67
  externalAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -182,11 +182,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
182
182
  id: string;
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
- headers: Record<string, string> | null;
186
- agentId: string;
187
- projectId: string;
188
185
  tenantId: string;
186
+ projectId: string;
187
+ headers: Record<string, string> | null;
189
188
  subAgentId: string;
189
+ agentId: string;
190
190
  externalAgentId: string;
191
191
  }>;
192
192
  /**
@@ -199,11 +199,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
199
199
  id: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
- headers: Record<string, string> | null;
203
- agentId: string;
204
- projectId: string;
205
202
  tenantId: string;
203
+ projectId: string;
204
+ headers: Record<string, string> | null;
206
205
  subAgentId: string;
206
+ agentId: string;
207
207
  externalAgentId: string;
208
208
  } | undefined>;
209
209
  /**
@@ -220,11 +220,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
220
220
  id: string;
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
- headers: Record<string, string> | null;
224
- agentId: string;
225
- projectId: string;
226
223
  tenantId: string;
224
+ projectId: string;
225
+ headers: Record<string, string> | null;
227
226
  subAgentId: string;
227
+ agentId: string;
228
228
  externalAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,9 +11,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string;
15
- projectId: string;
16
14
  tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -46,9 +46,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- agentId: string;
50
- projectId: string;
51
49
  tenantId: string;
50
+ projectId: string;
51
+ agentId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -59,9 +59,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- agentId: string;
63
- projectId: string;
64
62
  tenantId: string;
63
+ projectId: string;
64
+ agentId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -128,9 +128,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
128
128
  id: string;
129
129
  createdAt: string;
130
130
  updatedAt: string;
131
- agentId: string;
132
- projectId: string;
133
131
  tenantId: string;
132
+ projectId: string;
133
+ agentId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -147,9 +147,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
- agentId: string;
151
- projectId: string;
152
150
  tenantId: string;
151
+ projectId: string;
152
+ agentId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -161,9 +161,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
161
161
  id: string;
162
162
  createdAt: string;
163
163
  updatedAt: string;
164
- agentId: string;
165
- projectId: string;
166
164
  tenantId: string;
165
+ projectId: string;
166
+ agentId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -206,16 +206,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
+ tenantId: string;
210
+ projectId: string;
209
211
  headers: Record<string, string> | null;
212
+ subAgentId: string;
210
213
  agentId: string;
211
- projectId: string;
212
- tenantId: string;
213
214
  toolId: string;
214
- subAgentId: string;
215
- selectedTools: string[] | null;
216
215
  toolPolicies: Record<string, {
217
216
  needsApproval?: boolean;
218
217
  }> | null;
218
+ selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -250,16 +250,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
+ tenantId: string;
254
+ projectId: string;
253
255
  headers: Record<string, string> | null;
256
+ subAgentId: string;
254
257
  agentId: string;
255
- projectId: string;
256
- tenantId: string;
257
258
  toolId: string;
258
- subAgentId: string;
259
- selectedTools: string[] | null;
260
259
  toolPolicies: Record<string, {
261
260
  needsApproval?: boolean;
262
261
  }> | null;
262
+ selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -11,11 +11,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- headers: Record<string, string> | null;
15
- agentId: string;
16
- projectId: string;
17
14
  tenantId: string;
15
+ projectId: string;
16
+ headers: Record<string, string> | null;
18
17
  subAgentId: string;
18
+ agentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,11 +46,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- headers: Record<string, string> | null;
50
- agentId: string;
51
- projectId: string;
52
49
  tenantId: string;
50
+ projectId: string;
51
+ headers: Record<string, string> | null;
53
52
  subAgentId: string;
53
+ agentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,11 +59,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- headers: Record<string, string> | null;
63
- agentId: string;
64
- projectId: string;
65
62
  tenantId: string;
63
+ projectId: string;
64
+ headers: Record<string, string> | null;
66
65
  subAgentId: string;
66
+ agentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -212,11 +212,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
212
212
  id: string;
213
213
  createdAt: string;
214
214
  updatedAt: string;
215
- headers: Record<string, string> | null;
216
- agentId: string;
217
- projectId: string;
218
215
  tenantId: string;
216
+ projectId: string;
217
+ headers: Record<string, string> | null;
219
218
  subAgentId: string;
219
+ agentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -229,11 +229,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- headers: Record<string, string> | null;
233
- agentId: string;
234
- projectId: string;
235
232
  tenantId: string;
233
+ projectId: string;
234
+ headers: Record<string, string> | null;
236
235
  subAgentId: string;
236
+ agentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -250,11 +250,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- headers: Record<string, string> | null;
254
- agentId: string;
255
- projectId: string;
256
253
  tenantId: string;
254
+ projectId: string;
255
+ headers: Record<string, string> | null;
257
256
  subAgentId: string;
257
+ agentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -13,9 +13,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  description: string | null;
16
- agentId: string;
17
- projectId: string;
18
16
  tenantId: string;
17
+ projectId: string;
19
18
  models: {
20
19
  base?: {
21
20
  model?: string | undefined;
@@ -30,11 +29,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
29
  providerOptions?: Record<string, any> | undefined;
31
30
  } | undefined;
32
31
  } | null;
33
- prompt: string | null;
34
32
  stopWhen: {
35
33
  stepCountIs?: number | undefined;
36
34
  } | null;
35
+ prompt: string | null;
37
36
  conversationHistoryConfig: ConversationHistoryConfig | null;
37
+ agentId: string;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
@@ -44,9 +44,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
46
  description: string | null;
47
- agentId: string;
48
- projectId: string;
49
47
  tenantId: string;
48
+ projectId: string;
50
49
  models: {
51
50
  base?: {
52
51
  model?: string | undefined;
@@ -61,11 +60,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
61
60
  providerOptions?: Record<string, any> | undefined;
62
61
  } | undefined;
63
62
  } | null;
64
- prompt: string | null;
65
63
  stopWhen: {
66
64
  stepCountIs?: number | undefined;
67
65
  } | null;
66
+ prompt: string | null;
68
67
  conversationHistoryConfig: ConversationHistoryConfig | null;
68
+ agentId: string;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -113,9 +113,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
113
113
  createdAt: string;
114
114
  updatedAt: string;
115
115
  description: string | null;
116
- agentId: string;
117
- projectId: string;
118
116
  tenantId: string;
117
+ projectId: string;
119
118
  models: {
120
119
  base?: {
121
120
  model?: string | undefined;
@@ -130,11 +129,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
130
129
  providerOptions?: Record<string, any> | undefined;
131
130
  } | undefined;
132
131
  } | null;
133
- prompt: string | null;
134
132
  stopWhen: {
135
133
  stepCountIs?: number | undefined;
136
134
  } | null;
135
+ prompt: string | null;
137
136
  conversationHistoryConfig: ConversationHistoryConfig | null;
137
+ agentId: string;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
140
140
  scopes: AgentScopeConfig;
@@ -23,9 +23,9 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
23
23
  createdAt: string;
24
24
  updatedAt: string;
25
25
  description: string | null;
26
- headers: Record<string, string> | null;
27
- projectId: string;
28
26
  tenantId: string;
27
+ projectId: string;
28
+ headers: Record<string, string> | null;
29
29
  config: {
30
30
  type: "mcp";
31
31
  mcp: ToolMcpConfig;
@@ -81,9 +81,9 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
81
81
  createdAt: string;
82
82
  updatedAt: string;
83
83
  description: string | null;
84
- headers: Record<string, string> | null;
85
- projectId: string;
86
84
  tenantId: string;
85
+ projectId: string;
86
+ headers: Record<string, string> | null;
87
87
  config: {
88
88
  type: "mcp";
89
89
  mcp: ToolMcpConfig;
@@ -136,16 +136,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  id: string;
137
137
  createdAt: string;
138
138
  updatedAt: string;
139
+ tenantId: string;
140
+ projectId: string;
139
141
  headers: Record<string, string> | null;
142
+ subAgentId: string;
140
143
  agentId: string;
141
- projectId: string;
142
- tenantId: string;
143
144
  toolId: string;
144
- subAgentId: string;
145
- selectedTools: string[] | null;
146
145
  toolPolicies: Record<string, {
147
146
  needsApproval?: boolean;
148
147
  }> | null;
148
+ selectedTools: string[] | null;
149
149
  }>;
150
150
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
151
151
  scopes: AgentScopeConfig;
@@ -155,16 +155,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  id: string;
156
156
  createdAt: string;
157
157
  updatedAt: string;
158
+ tenantId: string;
159
+ projectId: string;
158
160
  headers: Record<string, string> | null;
161
+ subAgentId: string;
159
162
  agentId: string;
160
- projectId: string;
161
- tenantId: string;
162
163
  toolId: string;
163
- subAgentId: string;
164
- selectedTools: string[] | null;
165
164
  toolPolicies: Record<string, {
166
165
  needsApproval?: boolean;
167
166
  }> | null;
167
+ selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
170
170
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -183,16 +183,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
+ tenantId: string;
187
+ projectId: string;
186
188
  headers: Record<string, string> | null;
189
+ subAgentId: string;
187
190
  agentId: string;
188
- projectId: string;
189
- tenantId: string;
190
191
  toolId: string;
191
- subAgentId: string;
192
- selectedTools: string[] | null;
193
192
  toolPolicies: Record<string, {
194
193
  needsApproval?: boolean;
195
194
  }> | null;
195
+ selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
198
198
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -205,9 +205,9 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
205
205
  createdAt: string;
206
206
  updatedAt: string;
207
207
  description: string | null;
208
- headers: Record<string, string> | null;
209
- projectId: string;
210
208
  tenantId: string;
209
+ projectId: string;
210
+ headers: Record<string, string> | null;
211
211
  config: {
212
212
  type: "mcp";
213
213
  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;
@@ -12,9 +12,9 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  expiresAt: string | null;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  publicId: string;
19
19
  keyHash: string;
20
20
  keyPrefix: string;
@@ -26,9 +26,9 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
28
  expiresAt: string | null;
29
- agentId: string;
30
- projectId: string;
31
29
  tenantId: string;
30
+ projectId: string;
31
+ agentId: string;
32
32
  publicId: string;
33
33
  keyHash: string;
34
34
  keyPrefix: string;
@@ -43,9 +43,9 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
43
43
  createdAt: string;
44
44
  updatedAt: string;
45
45
  expiresAt: string | null;
46
- agentId: string;
47
- projectId: string;
48
46
  tenantId: string;
47
+ projectId: string;
48
+ agentId: string;
49
49
  publicId: string;
50
50
  keyHash: string;
51
51
  keyPrefix: string;
@@ -70,9 +70,9 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  expiresAt: string | null;
73
- agentId: string;
74
- projectId: string;
75
73
  tenantId: string;
74
+ projectId: string;
75
+ agentId: string;
76
76
  publicId: string;
77
77
  keyHash: string;
78
78
  keyPrefix: string;