@inkeep/agents-core 0.65.0 → 0.65.1

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 (51) hide show
  1. package/dist/auth/auth-schema.d.ts +108 -108
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/client-exports.d.ts +3 -3
  5. package/dist/client-exports.js +3 -3
  6. package/dist/constants/otel-attributes.d.ts +1 -0
  7. package/dist/constants/otel-attributes.js +1 -0
  8. package/dist/data-access/index.d.ts +2 -1
  9. package/dist/data-access/index.js +2 -1
  10. package/dist/data-access/manage/agents.d.ts +20 -20
  11. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  12. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  13. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  14. package/dist/data-access/manage/functionTools.d.ts +10 -10
  15. package/dist/data-access/manage/skills.d.ts +13 -13
  16. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  17. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  18. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  19. package/dist/data-access/manage/subAgents.d.ts +12 -12
  20. package/dist/data-access/manage/tools.d.ts +24 -24
  21. package/dist/data-access/manage/triggers.d.ts +1 -1
  22. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  23. package/dist/data-access/runtime/apps.d.ts +12 -12
  24. package/dist/data-access/runtime/conversations.d.ts +16 -16
  25. package/dist/data-access/runtime/feedback.d.ts +101 -0
  26. package/dist/data-access/runtime/feedback.js +83 -0
  27. package/dist/data-access/runtime/messages.d.ts +18 -18
  28. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  29. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  30. package/dist/data-access/runtime/tasks.d.ts +4 -4
  31. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  32. package/dist/db/manage/manage-schema.d.ts +447 -447
  33. package/dist/db/runtime/runtime-schema.d.ts +573 -395
  34. package/dist/db/runtime/runtime-schema.js +73 -2
  35. package/dist/index.d.ts +6 -5
  36. package/dist/index.js +5 -4
  37. package/dist/types/entities.d.ts +5 -2
  38. package/dist/types/index.d.ts +2 -2
  39. package/dist/utils/error.d.ts +51 -51
  40. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  41. package/dist/validation/index.d.ts +3 -3
  42. package/dist/validation/index.js +3 -3
  43. package/dist/validation/schemas/shared.d.ts +3 -1
  44. package/dist/validation/schemas/shared.js +6 -1
  45. package/dist/validation/schemas/skills.d.ts +64 -64
  46. package/dist/validation/schemas.d.ts +2734 -2306
  47. package/dist/validation/schemas.js +29 -6
  48. package/drizzle/runtime/0034_simple_sphinx.sql +17 -0
  49. package/drizzle/runtime/meta/0034_snapshot.json +5288 -0
  50. package/drizzle/runtime/meta/_journal.json +7 -0
  51. package/package.json +1 -1
@@ -10,9 +10,11 @@ import { PgColumn } from "drizzle-orm/pg-core";
10
10
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  scopes: AgentScopeConfig;
12
12
  }) => Promise<{
13
+ description: string | null;
13
14
  id: string;
15
+ tenantId: string;
16
+ createdAt: string;
14
17
  name: string;
15
- description: string | null;
16
18
  models: {
17
19
  base?: {
18
20
  model?: string | undefined;
@@ -36,9 +38,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
36
38
  stopWhen: {
37
39
  transferCountIs?: number | undefined;
38
40
  } | null;
39
- createdAt: string;
40
41
  updatedAt: string;
41
- tenantId: string;
42
+ projectId: string;
42
43
  defaultSubAgentId: string | null;
43
44
  contextConfigId: string | null;
44
45
  prompt: string | null;
@@ -58,14 +59,15 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
58
59
  }[] | undefined;
59
60
  } | null;
60
61
  executionMode: "classic" | "durable";
61
- projectId: string;
62
62
  } | null>;
63
63
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
64
64
  scopes: AgentScopeConfig;
65
65
  }) => Promise<{
66
+ description: string | null;
66
67
  id: string;
68
+ tenantId: string;
69
+ createdAt: string;
67
70
  name: string;
68
- description: string | null;
69
71
  models: {
70
72
  base?: {
71
73
  model?: string | undefined;
@@ -89,9 +91,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
89
91
  stopWhen: {
90
92
  transferCountIs?: number | undefined;
91
93
  } | null;
92
- createdAt: string;
93
94
  updatedAt: string;
94
- tenantId: string;
95
+ projectId: string;
95
96
  defaultSubAgentId: string | null;
96
97
  contextConfigId: string | null;
97
98
  prompt: string | null;
@@ -111,11 +112,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
111
112
  }[] | undefined;
112
113
  } | null;
113
114
  executionMode: "classic" | "durable";
114
- projectId: string;
115
115
  defaultSubAgent: {
116
+ description: string | null;
116
117
  id: string;
118
+ tenantId: string;
119
+ createdAt: string;
117
120
  name: string;
118
- description: string | null;
119
121
  models: {
120
122
  base?: {
121
123
  model?: string | undefined;
@@ -139,11 +141,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
139
141
  stopWhen: {
140
142
  stepCountIs?: number | undefined;
141
143
  } | null;
142
- createdAt: string;
143
144
  updatedAt: string;
144
- tenantId: string;
145
- prompt: string | null;
146
145
  projectId: string;
146
+ prompt: string | null;
147
147
  agentId: string;
148
148
  conversationHistoryConfig: ConversationHistoryConfig | null;
149
149
  } | null;
@@ -151,9 +151,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
151
151
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
152
152
  scopes: ProjectScopeConfig;
153
153
  }) => Promise<{
154
+ description: string | null;
154
155
  id: string;
156
+ tenantId: string;
157
+ createdAt: string;
155
158
  name: string;
156
- description: string | null;
157
159
  models: {
158
160
  base?: {
159
161
  model?: string | undefined;
@@ -177,9 +179,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
177
179
  stopWhen: {
178
180
  transferCountIs?: number | undefined;
179
181
  } | null;
180
- createdAt: string;
181
182
  updatedAt: string;
182
- tenantId: string;
183
+ projectId: string;
183
184
  defaultSubAgentId: string | null;
184
185
  contextConfigId: string | null;
185
186
  prompt: string | null;
@@ -199,7 +200,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
199
200
  }[] | undefined;
200
201
  } | null;
201
202
  executionMode: "classic" | "durable";
202
- projectId: string;
203
203
  }[]>;
204
204
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
205
205
  scopes: ProjectScopeConfig;
@@ -281,9 +281,11 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
281
281
  projectIds: string[];
282
282
  }): Promise<AvailableAgentInfo[]>;
283
283
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
284
+ description: string | null;
284
285
  id: string;
286
+ tenantId: string;
287
+ createdAt: string;
285
288
  name: string;
286
- description: string | null;
287
289
  models: {
288
290
  base?: {
289
291
  model?: string | undefined;
@@ -307,9 +309,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
307
309
  stopWhen: {
308
310
  transferCountIs?: number | undefined;
309
311
  } | null;
310
- createdAt: string;
311
312
  updatedAt: string;
312
- tenantId: string;
313
+ projectId: string;
313
314
  defaultSubAgentId: string | null;
314
315
  contextConfigId: string | null;
315
316
  prompt: string | null;
@@ -329,7 +330,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
329
330
  }[] | undefined;
330
331
  } | null;
331
332
  executionMode: "classic" | "durable";
332
- projectId: string;
333
333
  }>;
334
334
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
335
335
  scopes: AgentScopeConfig;
@@ -9,12 +9,12 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  scopes: ProjectScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
- id: string;
13
- name: string;
14
12
  description: string | null;
13
+ id: string;
14
+ tenantId: string;
15
15
  createdAt: string;
16
+ name: string;
16
17
  updatedAt: string;
17
- tenantId: string;
18
18
  projectId: string;
19
19
  props: {
20
20
  [x: string]: unknown;
@@ -65,12 +65,12 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
65
65
  };
66
66
  }>;
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
- id: string;
69
- name: string;
70
68
  description: string | null;
69
+ id: string;
70
+ tenantId: string;
71
71
  createdAt: string;
72
+ name: string;
72
73
  updatedAt: string;
73
- tenantId: string;
74
74
  projectId: string;
75
75
  props: {
76
76
  [x: string]: unknown;
@@ -142,8 +142,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
144
  id: string;
145
- createdAt: string;
146
145
  tenantId: string;
146
+ createdAt: string;
147
147
  projectId: string;
148
148
  agentId: string;
149
149
  subAgentId: string;
@@ -185,8 +185,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
187
  id: string;
188
- createdAt: string;
189
188
  tenantId: string;
189
+ createdAt: string;
190
190
  projectId: string;
191
191
  agentId: string;
192
192
  subAgentId: string;
@@ -10,25 +10,25 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ tenantId: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- tenantId: string;
16
16
  projectId: string;
17
+ agentId: string;
17
18
  headersSchema: unknown;
18
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
- agentId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
24
  id: string;
25
+ tenantId: string;
25
26
  createdAt: string;
26
27
  updatedAt: string;
27
- tenantId: string;
28
28
  projectId: string;
29
+ agentId: string;
29
30
  headersSchema: unknown;
30
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
- agentId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -44,13 +44,13 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
46
  id: string;
47
+ tenantId: string;
47
48
  createdAt: string;
48
49
  updatedAt: string;
49
- tenantId: string;
50
50
  projectId: string;
51
+ agentId: string;
51
52
  headersSchema: unknown;
52
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
- agentId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -84,13 +84,13 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
86
  id: string;
87
+ tenantId: string;
87
88
  createdAt: string;
88
89
  updatedAt: string;
89
- tenantId: string;
90
90
  projectId: string;
91
+ agentId: string;
91
92
  headersSchema: unknown;
92
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
- agentId: string;
94
94
  }>;
95
95
  //#endregion
96
96
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -66,8 +66,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
68
  id: string;
69
- createdAt: string;
70
69
  tenantId: string;
70
+ createdAt: string;
71
71
  projectId: string;
72
72
  agentId: string;
73
73
  subAgentId: string;
@@ -108,8 +108,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
110
  id: string;
111
- createdAt: string;
112
111
  tenantId: string;
112
+ createdAt: string;
113
113
  projectId: string;
114
114
  agentId: string;
115
115
  subAgentId: string;
@@ -53,12 +53,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- id: string;
57
- name: string;
58
56
  description: string | null;
57
+ id: string;
58
+ tenantId: string;
59
59
  createdAt: string;
60
+ name: string;
60
61
  updatedAt: string;
61
- tenantId: string;
62
62
  projectId: string;
63
63
  agentId: string;
64
64
  functionId: string;
@@ -95,12 +95,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- id: string;
99
- name: string;
100
98
  description: string | null;
99
+ id: string;
100
+ tenantId: string;
101
101
  createdAt: string;
102
+ name: string;
102
103
  updatedAt: string;
103
- tenantId: string;
104
104
  projectId: string;
105
105
  agentId: string;
106
106
  functionId: string;
@@ -158,15 +158,15 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
158
158
  }> | null;
159
159
  }) => Promise<{
160
160
  id: string;
161
+ tenantId: string;
161
162
  createdAt: string;
162
163
  updatedAt: string;
163
- tenantId: string;
164
164
  projectId: string;
165
165
  agentId: string;
166
- subAgentId: string;
167
166
  toolPolicies: Record<string, {
168
167
  needsApproval?: boolean;
169
168
  }> | null;
169
+ subAgentId: string;
170
170
  functionToolId: string;
171
171
  }>;
172
172
  /**
@@ -223,15 +223,15 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
223
223
  }> | null;
224
224
  }) => Promise<{
225
225
  id: string;
226
+ tenantId: string;
226
227
  createdAt: string;
227
228
  updatedAt: string;
228
- tenantId: string;
229
229
  projectId: string;
230
230
  agentId: string;
231
- subAgentId: string;
232
231
  toolPolicies: Record<string, {
233
232
  needsApproval?: boolean;
234
233
  }> | null;
234
+ subAgentId: string;
235
235
  functionToolId: string;
236
236
  }>;
237
237
  //#endregion
@@ -15,15 +15,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
15
15
  scopes: ProjectScopeConfig;
16
16
  skillId: string;
17
17
  }) => Promise<{
18
- id: string;
19
- name: string;
20
18
  description: string;
19
+ id: string;
20
+ tenantId: string;
21
21
  createdAt: string;
22
+ name: string;
23
+ metadata: Record<string, string> | null;
24
+ content: string;
22
25
  updatedAt: string;
23
- tenantId: string;
24
26
  projectId: string;
25
- content: string;
26
- metadata: Record<string, string> | null;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -110,15 +110,15 @@ interface WithTenantIdProjectId {
110
110
  }
111
111
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
- id: string;
114
- name: string;
115
113
  description: string;
114
+ id: string;
115
+ tenantId: string;
116
116
  createdAt: string;
117
+ name: string;
118
+ metadata: Record<string, string> | null;
119
+ content: string;
117
120
  updatedAt: string;
118
- tenantId: string;
119
121
  projectId: string;
120
- content: string;
121
- metadata: Record<string, string> | null;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -140,15 +140,15 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
140
140
  alwaysLoaded?: boolean;
141
141
  }) => Promise<{
142
142
  id: string;
143
+ tenantId: string;
143
144
  createdAt: string;
144
145
  updatedAt: string;
145
- tenantId: string;
146
146
  projectId: string;
147
147
  agentId: string;
148
- skillId: string;
148
+ subAgentId: string;
149
149
  index: number;
150
150
  alwaysLoaded: boolean;
151
- subAgentId: string;
151
+ skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -10,14 +10,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ tenantId: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- tenantId: string;
16
16
  projectId: string;
17
17
  agentId: string;
18
- subAgentId: string;
19
18
  headers: Record<string, string> | null;
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;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- tenantId: string;
51
51
  projectId: string;
52
52
  agentId: string;
53
- subAgentId: string;
54
53
  headers: Record<string, string> | null;
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;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- tenantId: string;
64
64
  projectId: string;
65
65
  agentId: string;
66
- subAgentId: string;
67
66
  headers: Record<string, string> | null;
68
67
  externalAgentId: string;
68
+ subAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -187,14 +187,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
187
187
  };
188
188
  }) => Promise<{
189
189
  id: string;
190
+ tenantId: string;
190
191
  createdAt: string;
191
192
  updatedAt: string;
192
- tenantId: string;
193
193
  projectId: string;
194
194
  agentId: string;
195
- subAgentId: string;
196
195
  headers: Record<string, string> | null;
197
196
  externalAgentId: string;
197
+ subAgentId: string;
198
198
  }>;
199
199
  /**
200
200
  * Check if sub-agent external agent relation exists by params
@@ -204,14 +204,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
204
204
  externalAgentId: string;
205
205
  }) => Promise<{
206
206
  id: string;
207
+ tenantId: string;
207
208
  createdAt: string;
208
209
  updatedAt: string;
209
- tenantId: string;
210
210
  projectId: string;
211
211
  agentId: string;
212
- subAgentId: string;
213
212
  headers: Record<string, string> | null;
214
213
  externalAgentId: string;
214
+ subAgentId: string;
215
215
  } | undefined>;
216
216
  /**
217
217
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -225,14 +225,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
225
225
  };
226
226
  }) => Promise<{
227
227
  id: string;
228
+ tenantId: string;
228
229
  createdAt: string;
229
230
  updatedAt: string;
230
- tenantId: string;
231
231
  projectId: string;
232
232
  agentId: string;
233
- subAgentId: string;
234
233
  headers: Record<string, string> | null;
235
234
  externalAgentId: string;
235
+ subAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
238
238
  scopes: SubAgentScopeConfig;
@@ -10,9 +10,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ tenantId: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- tenantId: string;
16
16
  projectId: string;
17
17
  agentId: string;
18
18
  sourceSubAgentId: string;
@@ -45,9 +45,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ tenantId: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- tenantId: string;
51
51
  projectId: string;
52
52
  agentId: string;
53
53
  sourceSubAgentId: string;
@@ -58,9 +58,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ tenantId: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- tenantId: string;
64
64
  projectId: string;
65
65
  agentId: string;
66
66
  sourceSubAgentId: string;
@@ -127,9 +127,9 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
+ tenantId: string;
130
131
  createdAt: string;
131
132
  updatedAt: string;
132
- tenantId: string;
133
133
  projectId: string;
134
134
  agentId: string;
135
135
  sourceSubAgentId: string;
@@ -146,9 +146,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
+ tenantId: string;
149
150
  createdAt: string;
150
151
  updatedAt: string;
151
- tenantId: string;
152
152
  projectId: string;
153
153
  agentId: string;
154
154
  sourceSubAgentId: string;
@@ -160,9 +160,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
+ tenantId: string;
163
164
  createdAt: string;
164
165
  updatedAt: string;
165
- tenantId: string;
166
166
  projectId: string;
167
167
  agentId: string;
168
168
  sourceSubAgentId: string;
@@ -205,18 +205,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
+ tenantId: string;
208
209
  createdAt: string;
209
210
  updatedAt: string;
210
- tenantId: string;
211
211
  projectId: string;
212
212
  agentId: string;
213
213
  toolId: string;
214
- subAgentId: string;
215
214
  headers: Record<string, string> | null;
216
- selectedTools: string[] | null;
217
215
  toolPolicies: Record<string, {
218
216
  needsApproval?: boolean;
219
217
  }> | null;
218
+ subAgentId: string;
219
+ selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -249,18 +249,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
+ tenantId: string;
252
253
  createdAt: string;
253
254
  updatedAt: string;
254
- tenantId: string;
255
255
  projectId: string;
256
256
  agentId: string;
257
257
  toolId: string;
258
- subAgentId: string;
259
258
  headers: Record<string, string> | null;
260
- selectedTools: string[] | null;
261
259
  toolPolicies: Record<string, {
262
260
  needsApproval?: boolean;
263
261
  }> | null;
262
+ subAgentId: string;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -10,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ tenantId: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- tenantId: string;
16
16
  projectId: string;
17
17
  agentId: string;
18
- subAgentId: string;
19
18
  headers: Record<string, string> | null;
19
+ subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,26 +45,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ tenantId: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- tenantId: string;
51
51
  projectId: string;
52
52
  agentId: string;
53
- subAgentId: string;
54
53
  headers: Record<string, string> | null;
54
+ subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ tenantId: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- tenantId: string;
64
64
  projectId: string;
65
65
  agentId: string;
66
- subAgentId: string;
67
66
  headers: Record<string, string> | null;
67
+ subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -223,13 +223,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
223
223
  };
224
224
  }) => Promise<{
225
225
  id: string;
226
+ tenantId: string;
226
227
  createdAt: string;
227
228
  updatedAt: string;
228
- tenantId: string;
229
229
  projectId: string;
230
230
  agentId: string;
231
- subAgentId: string;
232
231
  headers: Record<string, string> | null;
232
+ subAgentId: string;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -240,13 +240,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
242
  id: string;
243
+ tenantId: string;
243
244
  createdAt: string;
244
245
  updatedAt: string;
245
- tenantId: string;
246
246
  projectId: string;
247
247
  agentId: string;
248
- subAgentId: string;
249
248
  headers: Record<string, string> | null;
249
+ subAgentId: string;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -261,13 +261,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
261
261
  };
262
262
  }) => Promise<{
263
263
  id: string;
264
+ tenantId: string;
264
265
  createdAt: string;
265
266
  updatedAt: string;
266
- tenantId: string;
267
267
  projectId: string;
268
268
  agentId: string;
269
- subAgentId: string;
270
269
  headers: Record<string, string> | null;
270
+ subAgentId: string;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {