@inkeep/agents-core 0.0.0-dev-20260219212612 → 0.0.0-dev-20260219220341

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 (34) hide show
  1. package/dist/auth/auth-schema.d.ts +105 -105
  2. package/dist/auth/auth-validation-schemas.d.ts +148 -148
  3. package/dist/auth/auth.d.ts +24 -24
  4. package/dist/auth/auth.js +8 -9
  5. package/dist/auth/authz/sync.d.ts +22 -1
  6. package/dist/auth/authz/sync.js +59 -4
  7. package/dist/auth/permissions.d.ts +9 -9
  8. package/dist/client-exports.d.ts +2 -2
  9. package/dist/constants/models.d.ts +1 -0
  10. package/dist/constants/models.js +1 -0
  11. package/dist/data-access/manage/agents.d.ts +42 -42
  12. package/dist/data-access/manage/artifactComponents.d.ts +16 -16
  13. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  14. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  15. package/dist/data-access/manage/functionTools.d.ts +16 -16
  16. package/dist/data-access/manage/scope-helpers.d.ts +5 -5
  17. package/dist/data-access/manage/skills.d.ts +18 -18
  18. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  19. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  20. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  21. package/dist/data-access/manage/subAgents.d.ts +18 -18
  22. package/dist/data-access/manage/tools.d.ts +24 -24
  23. package/dist/data-access/manage/triggers.d.ts +2 -2
  24. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  25. package/dist/data-access/runtime/conversations.d.ts +31 -31
  26. package/dist/data-access/runtime/messages.d.ts +27 -27
  27. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  28. package/dist/data-access/runtime/tasks.d.ts +9 -9
  29. package/dist/db/manage/manage-schema.d.ts +449 -449
  30. package/dist/db/runtime/runtime-schema.d.ts +298 -298
  31. package/dist/validation/dolt-schemas.d.ts +1 -1
  32. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  33. package/dist/validation/schemas.d.ts +1934 -1934
  34. package/package.json +1 -1
@@ -8,26 +8,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
12
14
  createdAt: string;
13
15
  updatedAt: string;
16
+ agentId: string;
14
17
  headersSchema: unknown;
15
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
16
- agentId: string;
17
- projectId: string;
18
- tenantId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
22
22
  }) => Promise<{
23
+ tenantId: string;
24
+ projectId: string;
23
25
  id: string;
24
26
  createdAt: string;
25
27
  updatedAt: string;
28
+ agentId: string;
26
29
  headersSchema: unknown;
27
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
28
- agentId: string;
29
- projectId: string;
30
- tenantId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -42,14 +42,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
42
42
  };
43
43
  }>;
44
44
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
45
+ tenantId: string;
46
+ projectId: string;
45
47
  id: string;
46
48
  createdAt: string;
47
49
  updatedAt: string;
50
+ agentId: string;
48
51
  headersSchema: unknown;
49
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
50
- agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -82,14 +82,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
82
82
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
83
83
  data: ContextConfigInsert;
84
84
  }) => Promise<{
85
+ tenantId: string;
86
+ projectId: string;
85
87
  id: string;
86
88
  createdAt: string;
87
89
  updatedAt: string;
90
+ agentId: string;
88
91
  headersSchema: unknown;
89
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
90
- agentId: string;
91
- projectId: string;
92
- tenantId: string;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -64,12 +64,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
64
64
  scopes: SubAgentScopeConfig;
65
65
  dataComponentId: string;
66
66
  }) => Promise<{
67
+ tenantId: string;
68
+ projectId: string;
69
+ subAgentId: string;
67
70
  id: string;
68
71
  createdAt: string;
69
72
  agentId: string;
70
- projectId: string;
71
- tenantId: string;
72
- subAgentId: string;
73
73
  dataComponentId: string;
74
74
  }>;
75
75
  /**
@@ -106,12 +106,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
106
106
  scopes: SubAgentScopeConfig;
107
107
  dataComponentId: string;
108
108
  }) => Promise<{
109
+ tenantId: string;
110
+ projectId: string;
111
+ subAgentId: string;
109
112
  id: string;
110
113
  createdAt: string;
111
114
  agentId: string;
112
- projectId: string;
113
- tenantId: string;
114
- subAgentId: string;
115
115
  dataComponentId: string;
116
116
  } | null>;
117
117
  /**
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- id: string;
56
+ description: string | null;
57
+ tenantId: string;
57
58
  name: string;
59
+ projectId: string;
60
+ id: string;
58
61
  createdAt: string;
59
62
  updatedAt: string;
60
- description: string | null;
61
63
  agentId: string;
62
- projectId: string;
63
- tenantId: 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;
98
+ description: string | null;
99
+ tenantId: string;
99
100
  name: string;
101
+ projectId: string;
102
+ id: string;
100
103
  createdAt: string;
101
104
  updatedAt: string;
102
- description: string | null;
103
105
  agentId: string;
104
- projectId: string;
105
- tenantId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -161,17 +161,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
161
161
  needsApproval?: boolean;
162
162
  }> | null;
163
163
  }) => Promise<{
164
+ tenantId: string;
165
+ projectId: string;
166
+ subAgentId: string;
164
167
  id: string;
165
168
  createdAt: string;
166
169
  updatedAt: string;
167
170
  agentId: string;
168
- projectId: string;
169
- tenantId: string;
171
+ functionToolId: string;
170
172
  toolPolicies: Record<string, {
171
173
  needsApproval?: boolean;
172
174
  }> | null;
173
- subAgentId: string;
174
- functionToolId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -226,17 +226,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
226
226
  needsApproval?: boolean;
227
227
  }> | null;
228
228
  }) => Promise<{
229
+ tenantId: string;
230
+ projectId: string;
231
+ subAgentId: string;
229
232
  id: string;
230
233
  createdAt: string;
231
234
  updatedAt: string;
232
235
  agentId: string;
233
- projectId: string;
234
- tenantId: string;
236
+ functionToolId: string;
235
237
  toolPolicies: Record<string, {
236
238
  needsApproval?: boolean;
237
239
  }> | null;
238
- subAgentId: string;
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_orm0 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_orm0.SQL<unknown>;
21
+ declare function projectScopedWhere<T extends ProjectScopedColumns>(table: T, scopes: ProjectScopeConfig): drizzle_orm0.SQL<unknown> | undefined;
22
+ declare function agentScopedWhere<T extends AgentScopedColumns>(table: T, scopes: AgentScopeConfig): drizzle_orm0.SQL<unknown> | undefined;
23
+ declare function subAgentScopedWhere<T extends SubAgentScopedColumns>(table: T, scopes: SubAgentScopeConfig): drizzle_orm0.SQL<unknown> | undefined;
24
24
  //#endregion
25
25
  export { agentScopedWhere, projectScopedWhere, subAgentScopedWhere, tenantScopedWhere };
@@ -7,15 +7,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  skillId: string;
9
9
  }) => Promise<{
10
- id: string;
10
+ description: string;
11
+ tenantId: string;
11
12
  name: string;
13
+ content: string;
14
+ projectId: string;
15
+ id: string;
12
16
  createdAt: string;
13
17
  updatedAt: string;
14
18
  metadata: Record<string, string> | null;
15
- description: string;
16
- projectId: string;
17
- tenantId: string;
18
- content: string;
19
19
  } | null>;
20
20
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: ProjectScopeConfig;
@@ -40,26 +40,26 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
40
40
  };
41
41
  }>;
42
42
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
43
- id: string;
43
+ description: string;
44
+ tenantId: string;
44
45
  name: string;
46
+ content: string;
47
+ projectId: string;
48
+ id: string;
45
49
  createdAt: string;
46
50
  updatedAt: string;
47
51
  metadata: Record<string, string> | null;
52
+ }>;
53
+ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
48
54
  description: string;
49
- projectId: string;
50
55
  tenantId: string;
56
+ name: string;
51
57
  content: string;
52
- }>;
53
- declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
58
+ projectId: string;
54
59
  id: string;
55
- name: string;
56
60
  createdAt: string;
57
61
  updatedAt: string;
58
62
  metadata: Record<string, string> | null;
59
- description: string;
60
- projectId: string;
61
- tenantId: string;
62
- content: string;
63
63
  }>;
64
64
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
65
65
  scopes: ProjectScopeConfig;
@@ -90,16 +90,16 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
90
90
  index: number;
91
91
  alwaysLoaded?: boolean;
92
92
  }) => Promise<{
93
+ tenantId: string;
94
+ projectId: string;
95
+ subAgentId: string;
93
96
  id: string;
94
97
  createdAt: string;
95
98
  updatedAt: string;
96
99
  agentId: string;
97
- projectId: string;
98
- tenantId: string;
100
+ skillId: string;
99
101
  index: number;
100
102
  alwaysLoaded: boolean;
101
- subAgentId: string;
102
- skillId: string;
103
103
  }>;
104
104
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
105
105
  scopes: AgentScopeConfig;
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
13
+ subAgentId: string;
11
14
  id: string;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
- headers: Record<string, string> | null;
15
17
  agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
+ headers: Record<string, string> | null;
18
19
  externalAgentId: string;
19
- subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
43
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ tenantId: string;
47
+ projectId: string;
48
+ subAgentId: string;
46
49
  id: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
- headers: Record<string, string> | null;
50
52
  agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
+ headers: Record<string, string> | null;
53
54
  externalAgentId: string;
54
- subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ tenantId: string;
60
+ projectId: string;
61
+ subAgentId: string;
59
62
  id: string;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
- headers: Record<string, string> | null;
63
65
  agentId: string;
64
- projectId: string;
65
- tenantId: string;
66
+ headers: Record<string, string> | null;
66
67
  externalAgentId: string;
67
- subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
+ tenantId: string;
183
+ projectId: string;
184
+ subAgentId: string;
182
185
  id: string;
183
186
  createdAt: string;
184
187
  updatedAt: string;
185
- headers: Record<string, string> | null;
186
188
  agentId: string;
187
- projectId: string;
188
- tenantId: string;
189
+ headers: Record<string, string> | null;
189
190
  externalAgentId: string;
190
- subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
+ tenantId: string;
200
+ projectId: string;
201
+ subAgentId: string;
199
202
  id: string;
200
203
  createdAt: string;
201
204
  updatedAt: string;
202
- headers: Record<string, string> | null;
203
205
  agentId: string;
204
- projectId: string;
205
- tenantId: string;
206
+ headers: Record<string, string> | null;
206
207
  externalAgentId: string;
207
- subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
+ tenantId: string;
221
+ projectId: string;
222
+ subAgentId: string;
220
223
  id: string;
221
224
  createdAt: string;
222
225
  updatedAt: string;
223
- headers: Record<string, string> | null;
224
226
  agentId: string;
225
- projectId: string;
226
- tenantId: string;
227
+ headers: Record<string, string> | null;
227
228
  externalAgentId: string;
228
- subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -8,12 +8,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
12
14
  createdAt: string;
13
15
  updatedAt: string;
14
16
  agentId: string;
15
- projectId: string;
16
- tenantId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -43,12 +43,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ tenantId: string;
47
+ projectId: string;
46
48
  id: string;
47
49
  createdAt: string;
48
50
  updatedAt: string;
49
51
  agentId: string;
50
- projectId: string;
51
- tenantId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -56,12 +56,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
56
56
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ tenantId: string;
60
+ projectId: string;
59
61
  id: string;
60
62
  createdAt: string;
61
63
  updatedAt: string;
62
64
  agentId: string;
63
- projectId: string;
64
- tenantId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -125,12 +125,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
125
125
  }[];
126
126
  }>;
127
127
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
128
+ tenantId: string;
129
+ projectId: string;
128
130
  id: string;
129
131
  createdAt: string;
130
132
  updatedAt: string;
131
133
  agentId: string;
132
- projectId: string;
133
- tenantId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -144,12 +144,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
144
144
  targetSubAgentId?: string;
145
145
  relationType: string;
146
146
  }) => Promise<{
147
+ tenantId: string;
148
+ projectId: string;
147
149
  id: string;
148
150
  createdAt: string;
149
151
  updatedAt: string;
150
152
  agentId: string;
151
- projectId: string;
152
- tenantId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -158,12 +158,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
159
159
  */
160
160
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
161
+ tenantId: string;
162
+ projectId: string;
161
163
  id: string;
162
164
  createdAt: string;
163
165
  updatedAt: string;
164
166
  agentId: string;
165
- projectId: string;
166
- tenantId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -203,18 +203,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
+ tenantId: string;
207
+ projectId: string;
208
+ subAgentId: string;
206
209
  id: string;
207
210
  createdAt: string;
208
211
  updatedAt: string;
209
- headers: Record<string, string> | null;
210
212
  agentId: string;
211
- projectId: string;
212
- tenantId: string;
213
+ headers: Record<string, string> | null;
213
214
  toolId: string;
214
215
  toolPolicies: Record<string, {
215
216
  needsApproval?: boolean;
216
217
  }> | null;
217
- subAgentId: string;
218
218
  selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -247,18 +247,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
+ tenantId: string;
251
+ projectId: string;
252
+ subAgentId: string;
250
253
  id: string;
251
254
  createdAt: string;
252
255
  updatedAt: string;
253
- headers: Record<string, string> | null;
254
256
  agentId: string;
255
- projectId: string;
256
- tenantId: string;
257
+ headers: Record<string, string> | null;
257
258
  toolId: string;
258
259
  toolPolicies: Record<string, {
259
260
  needsApproval?: boolean;
260
261
  }> | null;
261
- subAgentId: string;
262
262
  selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,14 +8,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
13
+ subAgentId: string;
11
14
  id: string;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
- headers: Record<string, string> | null;
15
17
  agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
- subAgentId: string;
18
+ headers: Record<string, string> | null;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,27 +43,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
43
43
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ tenantId: string;
47
+ projectId: string;
48
+ subAgentId: string;
46
49
  id: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
- headers: Record<string, string> | null;
50
52
  agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
- subAgentId: string;
53
+ headers: Record<string, string> | null;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ tenantId: string;
60
+ projectId: string;
61
+ subAgentId: string;
59
62
  id: string;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
- headers: Record<string, string> | null;
63
65
  agentId: string;
64
- projectId: string;
65
- tenantId: string;
66
- subAgentId: string;
66
+ headers: Record<string, string> | null;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -209,14 +209,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
+ tenantId: string;
213
+ projectId: string;
214
+ subAgentId: string;
212
215
  id: string;
213
216
  createdAt: string;
214
217
  updatedAt: string;
215
- headers: Record<string, string> | null;
216
218
  agentId: string;
217
- projectId: string;
218
- tenantId: string;
219
- subAgentId: string;
219
+ headers: Record<string, string> | null;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -226,14 +226,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
+ tenantId: string;
230
+ projectId: string;
231
+ subAgentId: string;
229
232
  id: string;
230
233
  createdAt: string;
231
234
  updatedAt: string;
232
- headers: Record<string, string> | null;
233
235
  agentId: string;
234
- projectId: string;
235
- tenantId: string;
236
- subAgentId: string;
236
+ headers: Record<string, string> | null;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -247,14 +247,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
+ tenantId: string;
251
+ projectId: string;
252
+ subAgentId: string;
250
253
  id: string;
251
254
  createdAt: string;
252
255
  updatedAt: string;
253
- headers: Record<string, string> | null;
254
256
  agentId: string;
255
- projectId: string;
256
- tenantId: string;
257
- subAgentId: string;
257
+ headers: Record<string, string> | null;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {