@inkeep/agents-core 0.53.8 → 0.53.10

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 (56) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  2. package/dist/auth/auth.d.ts +11 -9
  3. package/dist/auth/auth.js +12 -3
  4. package/dist/auth/cleanup.d.ts +12 -0
  5. package/dist/auth/cleanup.js +43 -0
  6. package/dist/auth/init.js +12 -2
  7. package/dist/auth/permissions.d.ts +9 -9
  8. package/dist/client-exports.d.ts +3 -3
  9. package/dist/constants/otel-attributes.d.ts +7 -0
  10. package/dist/constants/otel-attributes.js +10 -3
  11. package/dist/constants/signoz-queries.d.ts +1 -0
  12. package/dist/constants/signoz-queries.js +2 -1
  13. package/dist/data-access/index.d.ts +2 -2
  14. package/dist/data-access/index.js +2 -2
  15. package/dist/data-access/manage/agents.d.ts +26 -26
  16. package/dist/data-access/manage/agents.js +3 -1
  17. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  18. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  19. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  20. package/dist/data-access/manage/functionTools.d.ts +14 -14
  21. package/dist/data-access/manage/scheduledTriggers.d.ts +12 -1
  22. package/dist/data-access/manage/scheduledTriggers.js +8 -1
  23. package/dist/data-access/manage/skills.d.ts +13 -13
  24. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  25. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  26. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  27. package/dist/data-access/manage/subAgents.d.ts +18 -18
  28. package/dist/data-access/manage/tools.d.ts +24 -24
  29. package/dist/data-access/manage/tools.js +2 -2
  30. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  31. package/dist/data-access/runtime/conversations.d.ts +24 -24
  32. package/dist/data-access/runtime/messages.d.ts +9 -9
  33. package/dist/data-access/runtime/tasks.d.ts +6 -6
  34. package/dist/db/manage/manage-schema.d.ts +391 -353
  35. package/dist/db/manage/manage-schema.js +2 -0
  36. package/dist/db/runtime/runtime-schema.d.ts +262 -262
  37. package/dist/dolt/index.d.ts +2 -2
  38. package/dist/dolt/index.js +2 -2
  39. package/dist/dolt/ref-helpers.d.ts +5 -1
  40. package/dist/dolt/ref-helpers.js +20 -1
  41. package/dist/index.d.ts +4 -4
  42. package/dist/index.js +4 -4
  43. package/dist/setup/setup.js +19 -5
  44. package/dist/utils/index.d.ts +2 -2
  45. package/dist/utils/index.js +2 -2
  46. package/dist/utils/third-party-mcp-servers/composio-client.d.ts +8 -10
  47. package/dist/utils/third-party-mcp-servers/composio-client.js +19 -15
  48. package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
  49. package/dist/utils/third-party-mcp-servers/index.js +2 -2
  50. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  51. package/dist/validation/schemas.d.ts +1871 -1753
  52. package/dist/validation/schemas.js +7 -4
  53. package/drizzle/manage/0011_smooth_whizzer.sql +2 -0
  54. package/drizzle/manage/meta/0011_snapshot.json +3685 -0
  55. package/drizzle/manage/meta/_journal.json +7 -0
  56. package/package.json +3 -3
@@ -11,11 +11,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
- createdAt: string;
15
- updatedAt: string;
16
14
  description: string | null;
17
- projectId: string;
18
15
  tenantId: string;
16
+ projectId: string;
17
+ createdAt: string;
18
+ updatedAt: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -67,11 +67,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
68
  id: string;
69
69
  name: string;
70
- createdAt: string;
71
- updatedAt: string;
72
70
  description: string | null;
73
- projectId: string;
74
71
  tenantId: string;
72
+ projectId: string;
73
+ createdAt: string;
74
+ updatedAt: string;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -142,10 +142,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
144
  id: string;
145
- createdAt: string;
146
- projectId: string;
147
145
  tenantId: string;
146
+ projectId: string;
148
147
  agentId: string;
148
+ createdAt: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
@@ -185,10 +185,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
187
  id: string;
188
- createdAt: string;
189
- projectId: string;
190
188
  tenantId: string;
189
+ projectId: string;
191
190
  agentId: string;
191
+ createdAt: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -10,11 +10,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
- projectId: string;
16
13
  tenantId: string;
14
+ projectId: string;
17
15
  agentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
@@ -22,11 +22,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
24
  id: string;
25
- createdAt: string;
26
- updatedAt: string;
27
- projectId: string;
28
25
  tenantId: string;
26
+ projectId: string;
29
27
  agentId: string;
28
+ createdAt: string;
29
+ updatedAt: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -44,11 +44,11 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
46
  id: string;
47
- createdAt: string;
48
- updatedAt: string;
49
- projectId: string;
50
47
  tenantId: string;
48
+ projectId: string;
51
49
  agentId: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -84,11 +84,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
86
  id: string;
87
- createdAt: string;
88
- updatedAt: string;
89
- projectId: string;
90
87
  tenantId: string;
88
+ projectId: string;
91
89
  agentId: string;
90
+ createdAt: string;
91
+ updatedAt: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
68
  id: string;
69
- createdAt: string;
70
- projectId: string;
71
69
  tenantId: string;
70
+ projectId: string;
72
71
  agentId: string;
72
+ createdAt: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
110
  id: string;
111
- createdAt: string;
112
- projectId: string;
113
111
  tenantId: string;
112
+ projectId: string;
114
113
  agentId: string;
114
+ createdAt: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
- createdAt: string;
59
- updatedAt: string;
60
58
  description: string | null;
61
- projectId: string;
62
59
  tenantId: string;
60
+ projectId: string;
63
61
  agentId: string;
62
+ createdAt: string;
63
+ updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -97,12 +97,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
- createdAt: string;
101
- updatedAt: string;
102
100
  description: string | null;
103
- projectId: string;
104
101
  tenantId: string;
102
+ projectId: string;
105
103
  agentId: string;
104
+ createdAt: string;
105
+ updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -162,15 +162,15 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
162
162
  }> | null;
163
163
  }) => Promise<{
164
164
  id: string;
165
- createdAt: string;
166
- updatedAt: string;
167
- projectId: string;
168
165
  tenantId: string;
166
+ projectId: string;
169
167
  agentId: string;
170
- subAgentId: string;
168
+ createdAt: string;
169
+ updatedAt: string;
171
170
  toolPolicies: Record<string, {
172
171
  needsApproval?: boolean;
173
172
  }> | null;
173
+ subAgentId: string;
174
174
  functionToolId: string;
175
175
  }>;
176
176
  /**
@@ -227,15 +227,15 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
227
227
  }> | null;
228
228
  }) => Promise<{
229
229
  id: string;
230
- createdAt: string;
231
- updatedAt: string;
232
- projectId: string;
233
230
  tenantId: string;
231
+ projectId: string;
234
232
  agentId: string;
235
- subAgentId: string;
233
+ createdAt: string;
234
+ updatedAt: string;
236
235
  toolPolicies: Record<string, {
237
236
  needsApproval?: boolean;
238
237
  }> | null;
238
+ subAgentId: string;
239
239
  functionToolId: string;
240
240
  }>;
241
241
  //#endregion
@@ -30,6 +30,8 @@ declare const listScheduledTriggersPaginated: (db: AgentsManageDatabaseClient) =
30
30
  maxRetries: number;
31
31
  retryDelaySeconds: number;
32
32
  timeoutSeconds: number;
33
+ runAsUserId: string | null;
34
+ createdBy: string | null;
33
35
  name: string;
34
36
  description: string | null;
35
37
  agentId: string;
@@ -70,6 +72,15 @@ declare const upsertScheduledTrigger: (db: AgentsManageDatabaseClient) => (param
70
72
  scopes: AgentScopeConfig;
71
73
  data: ScheduledTriggerInsert;
72
74
  }) => Promise<ScheduledTrigger>;
75
+ /**
76
+ * Delete all scheduled triggers for a given runAsUserId within a tenant+project scope.
77
+ * Operates across all agents in the project (not agent-scoped).
78
+ */
79
+ declare const deleteScheduledTriggersByRunAsUserId: (db: AgentsManageDatabaseClient) => (params: {
80
+ tenantId: string;
81
+ projectId: string;
82
+ runAsUserId: string;
83
+ }) => Promise<void>;
73
84
  /**
74
85
  * List all scheduled triggers for an agent (non-paginated, used by agentFull)
75
86
  */
@@ -77,4 +88,4 @@ declare const listScheduledTriggers: (db: AgentsManageDatabaseClient) => (params
77
88
  scopes: AgentScopeConfig;
78
89
  }) => Promise<ScheduledTrigger[]>;
79
90
  //#endregion
80
- export { createScheduledTrigger, deleteScheduledTrigger, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
91
+ export { createScheduledTrigger, deleteScheduledTrigger, deleteScheduledTriggersByRunAsUserId, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
@@ -66,6 +66,13 @@ const upsertScheduledTrigger = (db) => async (params) => {
66
66
  return await createScheduledTrigger(db)(params.data);
67
67
  };
68
68
  /**
69
+ * Delete all scheduled triggers for a given runAsUserId within a tenant+project scope.
70
+ * Operates across all agents in the project (not agent-scoped).
71
+ */
72
+ const deleteScheduledTriggersByRunAsUserId = (db) => async (params) => {
73
+ await db.delete(scheduledTriggers).where(and(eq(scheduledTriggers.tenantId, params.tenantId), eq(scheduledTriggers.projectId, params.projectId), eq(scheduledTriggers.runAsUserId, params.runAsUserId)));
74
+ };
75
+ /**
69
76
  * List all scheduled triggers for an agent (non-paginated, used by agentFull)
70
77
  */
71
78
  const listScheduledTriggers = (db) => async (params) => {
@@ -73,4 +80,4 @@ const listScheduledTriggers = (db) => async (params) => {
73
80
  };
74
81
 
75
82
  //#endregion
76
- export { createScheduledTrigger, deleteScheduledTrigger, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
83
+ export { createScheduledTrigger, deleteScheduledTrigger, deleteScheduledTriggersByRunAsUserId, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
@@ -10,12 +10,12 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
+ description: string;
14
+ tenantId: string;
15
+ projectId: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
18
  metadata: Record<string, string> | null;
16
- description: string;
17
- projectId: string;
18
- tenantId: string;
19
19
  content: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,23 +43,23 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
44
  id: string;
45
45
  name: string;
46
+ description: string;
47
+ tenantId: string;
48
+ projectId: string;
46
49
  createdAt: string;
47
50
  updatedAt: string;
48
51
  metadata: Record<string, string> | null;
49
- description: string;
50
- projectId: string;
51
- tenantId: string;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
55
  id: string;
56
56
  name: string;
57
+ description: string;
58
+ tenantId: string;
59
+ projectId: string;
57
60
  createdAt: string;
58
61
  updatedAt: string;
59
62
  metadata: Record<string, string> | null;
60
- description: string;
61
- projectId: string;
62
- tenantId: string;
63
63
  content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -92,14 +92,14 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
94
  id: string;
95
- createdAt: string;
96
- updatedAt: string;
97
- projectId: string;
98
95
  tenantId: string;
96
+ projectId: string;
99
97
  agentId: string;
100
- subAgentId: string;
98
+ createdAt: string;
99
+ updatedAt: string;
101
100
  index: number;
102
101
  alwaysLoaded: boolean;
102
+ subAgentId: string;
103
103
  skillId: string;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,14 +10,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ tenantId: string;
14
+ projectId: string;
15
+ agentId: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
18
  headers: Record<string, string> | null;
16
- projectId: string;
17
- tenantId: string;
18
- agentId: string;
19
- subAgentId: string;
20
19
  externalAgentId: string;
20
+ subAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -45,27 +45,27 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ tenantId: string;
49
+ projectId: string;
50
+ agentId: string;
48
51
  createdAt: string;
49
52
  updatedAt: string;
50
53
  headers: Record<string, string> | null;
51
- projectId: string;
52
- tenantId: string;
53
- agentId: string;
54
- subAgentId: string;
55
54
  externalAgentId: string;
55
+ subAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ tenantId: string;
62
+ projectId: string;
63
+ agentId: string;
61
64
  createdAt: string;
62
65
  updatedAt: string;
63
66
  headers: Record<string, string> | null;
64
- projectId: string;
65
- tenantId: string;
66
- agentId: string;
67
- subAgentId: string;
68
67
  externalAgentId: string;
68
+ subAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -181,14 +181,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
181
181
  };
182
182
  }) => Promise<{
183
183
  id: string;
184
+ tenantId: string;
185
+ projectId: string;
186
+ agentId: string;
184
187
  createdAt: string;
185
188
  updatedAt: string;
186
189
  headers: Record<string, string> | null;
187
- projectId: string;
188
- tenantId: string;
189
- agentId: string;
190
- subAgentId: string;
191
190
  externalAgentId: string;
191
+ subAgentId: string;
192
192
  }>;
193
193
  /**
194
194
  * Check if sub-agent external agent relation exists by params
@@ -198,14 +198,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
200
  id: string;
201
+ tenantId: string;
202
+ projectId: string;
203
+ agentId: string;
201
204
  createdAt: string;
202
205
  updatedAt: string;
203
206
  headers: Record<string, string> | null;
204
- projectId: string;
205
- tenantId: string;
206
- agentId: string;
207
- subAgentId: string;
208
207
  externalAgentId: string;
208
+ subAgentId: string;
209
209
  } | undefined>;
210
210
  /**
211
211
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -219,14 +219,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
219
219
  };
220
220
  }) => Promise<{
221
221
  id: string;
222
+ tenantId: string;
223
+ projectId: string;
224
+ agentId: string;
222
225
  createdAt: string;
223
226
  updatedAt: string;
224
227
  headers: Record<string, string> | null;
225
- projectId: string;
226
- tenantId: string;
227
- agentId: string;
228
- subAgentId: string;
229
228
  externalAgentId: string;
229
+ subAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
232
232
  scopes: SubAgentScopeConfig;
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
- projectId: string;
16
13
  tenantId: string;
14
+ projectId: string;
17
15
  agentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- createdAt: string;
49
- updatedAt: string;
50
- projectId: string;
51
48
  tenantId: string;
49
+ projectId: string;
52
50
  agentId: string;
51
+ createdAt: string;
52
+ updatedAt: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
- projectId: string;
64
61
  tenantId: string;
62
+ projectId: string;
65
63
  agentId: string;
64
+ createdAt: string;
65
+ updatedAt: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
- createdAt: string;
131
- updatedAt: string;
132
- projectId: string;
133
130
  tenantId: string;
131
+ projectId: string;
134
132
  agentId: string;
133
+ createdAt: string;
134
+ updatedAt: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
- createdAt: string;
150
- updatedAt: string;
151
- projectId: string;
152
149
  tenantId: string;
150
+ projectId: string;
153
151
  agentId: string;
152
+ createdAt: string;
153
+ updatedAt: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
- createdAt: string;
164
- updatedAt: string;
165
- projectId: string;
166
163
  tenantId: string;
164
+ projectId: string;
167
165
  agentId: string;
166
+ createdAt: string;
167
+ updatedAt: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -205,17 +205,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
+ tenantId: string;
209
+ projectId: string;
210
+ agentId: string;
208
211
  createdAt: string;
209
212
  updatedAt: string;
210
- headers: Record<string, string> | null;
211
213
  toolId: string;
212
- projectId: string;
213
- tenantId: string;
214
- agentId: string;
215
- subAgentId: string;
214
+ headers: Record<string, string> | null;
216
215
  toolPolicies: Record<string, {
217
216
  needsApproval?: boolean;
218
217
  }> | null;
218
+ subAgentId: string;
219
219
  selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -249,17 +249,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
+ tenantId: string;
253
+ projectId: string;
254
+ agentId: string;
252
255
  createdAt: string;
253
256
  updatedAt: string;
254
- headers: Record<string, string> | null;
255
257
  toolId: string;
256
- projectId: string;
257
- tenantId: string;
258
- agentId: string;
259
- subAgentId: string;
258
+ headers: Record<string, string> | null;
260
259
  toolPolicies: Record<string, {
261
260
  needsApproval?: boolean;
262
261
  }> | null;
262
+ subAgentId: string;
263
263
  selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,12 +10,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ tenantId: string;
14
+ projectId: string;
15
+ agentId: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
18
  headers: Record<string, string> | null;
16
- projectId: string;
17
- tenantId: string;
18
- agentId: string;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -45,12 +45,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ tenantId: string;
49
+ projectId: string;
50
+ agentId: string;
48
51
  createdAt: string;
49
52
  updatedAt: string;
50
53
  headers: Record<string, string> | null;
51
- projectId: string;
52
- tenantId: string;
53
- agentId: string;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -58,12 +58,12 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ tenantId: string;
62
+ projectId: string;
63
+ agentId: string;
61
64
  createdAt: string;
62
65
  updatedAt: string;
63
66
  headers: Record<string, string> | null;
64
- projectId: string;
65
- tenantId: string;
66
- agentId: string;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -211,12 +211,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
211
211
  };
212
212
  }) => Promise<{
213
213
  id: string;
214
+ tenantId: string;
215
+ projectId: string;
216
+ agentId: string;
214
217
  createdAt: string;
215
218
  updatedAt: string;
216
219
  headers: Record<string, string> | null;
217
- projectId: string;
218
- tenantId: string;
219
- agentId: string;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -228,12 +228,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
230
  id: string;
231
+ tenantId: string;
232
+ projectId: string;
233
+ agentId: string;
231
234
  createdAt: string;
232
235
  updatedAt: string;
233
236
  headers: Record<string, string> | null;
234
- projectId: string;
235
- tenantId: string;
236
- agentId: string;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -249,12 +249,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
249
249
  };
250
250
  }) => Promise<{
251
251
  id: string;
252
+ tenantId: string;
253
+ projectId: string;
254
+ agentId: string;
252
255
  createdAt: string;
253
256
  updatedAt: string;
254
257
  headers: Record<string, string> | null;
255
- projectId: string;
256
- tenantId: string;
257
- agentId: string;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
260
260
  }>;