@inkeep/agents-core 0.56.2 → 0.58.0

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 (44) hide show
  1. package/dist/auth/auth.d.ts +9 -9
  2. package/dist/auth/auth.js +6 -0
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/client-exports.d.ts +4 -4
  5. package/dist/client-exports.js +2 -2
  6. package/dist/data-access/index.d.ts +2 -1
  7. package/dist/data-access/index.js +2 -1
  8. package/dist/data-access/manage/agents.d.ts +21 -21
  9. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  10. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  11. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  12. package/dist/data-access/manage/functionTools.d.ts +16 -16
  13. package/dist/data-access/manage/skills.d.ts +18 -18
  14. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  15. package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
  16. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  17. package/dist/data-access/manage/subAgents.d.ts +15 -15
  18. package/dist/data-access/manage/tools.d.ts +27 -27
  19. package/dist/data-access/manage/triggers.d.ts +2 -2
  20. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  21. package/dist/data-access/runtime/apiKeys.js +1 -8
  22. package/dist/data-access/runtime/conversations.d.ts +24 -24
  23. package/dist/data-access/runtime/messages.d.ts +21 -21
  24. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  25. package/dist/data-access/runtime/tasks.d.ts +6 -6
  26. package/dist/data-access/runtime/userProfiles.d.ts +14 -0
  27. package/dist/data-access/runtime/userProfiles.js +45 -0
  28. package/dist/db/manage/manage-schema.d.ts +361 -361
  29. package/dist/db/runtime/runtime-schema.d.ts +384 -270
  30. package/dist/db/runtime/runtime-schema.js +14 -1
  31. package/dist/index.d.ts +5 -4
  32. package/dist/index.js +4 -3
  33. package/dist/types/entities.d.ts +7 -2
  34. package/dist/types/index.d.ts +2 -2
  35. package/dist/utils/model-factory.d.ts +10 -2
  36. package/dist/utils/model-factory.js +21 -13
  37. package/dist/validation/index.d.ts +2 -2
  38. package/dist/validation/index.js +2 -2
  39. package/dist/validation/schemas.d.ts +1992 -1749
  40. package/dist/validation/schemas.js +18 -3
  41. package/drizzle/runtime/0019_easy_bedlam.sql +24 -0
  42. package/drizzle/runtime/meta/0019_snapshot.json +4003 -0
  43. package/drizzle/runtime/meta/_journal.json +7 -0
  44. package/package.json +2 -2
@@ -9,12 +9,14 @@ import { PgTable } from "drizzle-orm/pg-core";
9
9
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  scopes: AgentScopeConfig;
11
11
  }) => Promise<{
12
- projectId: string;
13
- tenantId: string;
14
12
  id: string;
13
+ createdAt: string;
14
+ updatedAt: string;
15
15
  name: string;
16
16
  description: string | null;
17
17
  defaultSubAgentId: string | null;
18
+ tenantId: string;
19
+ projectId: string;
18
20
  prompt: string | null;
19
21
  models: {
20
22
  base?: {
@@ -33,8 +35,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
35
  stopWhen: {
34
36
  transferCountIs?: number | undefined;
35
37
  } | null;
36
- createdAt: string;
37
- updatedAt: string;
38
38
  contextConfigId: string | null;
39
39
  statusUpdates: {
40
40
  enabled?: boolean | undefined;
@@ -55,12 +55,14 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
55
55
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
57
57
  }) => Promise<{
58
- projectId: string;
59
- tenantId: string;
60
58
  id: string;
59
+ createdAt: string;
60
+ updatedAt: string;
61
61
  name: string;
62
62
  description: string | null;
63
63
  defaultSubAgentId: string | null;
64
+ tenantId: string;
65
+ projectId: string;
64
66
  prompt: string | null;
65
67
  models: {
66
68
  base?: {
@@ -79,8 +81,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
79
81
  stopWhen: {
80
82
  transferCountIs?: number | undefined;
81
83
  } | null;
82
- createdAt: string;
83
- updatedAt: string;
84
84
  contextConfigId: string | null;
85
85
  statusUpdates: {
86
86
  enabled?: boolean | undefined;
@@ -98,12 +98,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
98
98
  }[] | undefined;
99
99
  } | null;
100
100
  defaultSubAgent: {
101
- agentId: string;
102
- projectId: string;
103
- tenantId: string;
104
101
  id: string;
102
+ createdAt: string;
103
+ updatedAt: string;
105
104
  name: string;
106
105
  description: string | null;
106
+ tenantId: string;
107
+ projectId: string;
108
+ agentId: string;
107
109
  prompt: string | null;
108
110
  conversationHistoryConfig: ConversationHistoryConfig | null;
109
111
  models: {
@@ -123,19 +125,19 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
123
125
  stopWhen: {
124
126
  stepCountIs?: number | undefined;
125
127
  } | null;
126
- createdAt: string;
127
- updatedAt: string;
128
128
  } | null;
129
129
  } | null>;
130
130
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
131
131
  scopes: ProjectScopeConfig;
132
132
  }) => Promise<{
133
- projectId: string;
134
- tenantId: string;
135
133
  id: string;
134
+ createdAt: string;
135
+ updatedAt: string;
136
136
  name: string;
137
137
  description: string | null;
138
138
  defaultSubAgentId: string | null;
139
+ tenantId: string;
140
+ projectId: string;
139
141
  prompt: string | null;
140
142
  models: {
141
143
  base?: {
@@ -154,8 +156,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
154
156
  stopWhen: {
155
157
  transferCountIs?: number | undefined;
156
158
  } | null;
157
- createdAt: string;
158
- updatedAt: string;
159
159
  contextConfigId: string | null;
160
160
  statusUpdates: {
161
161
  enabled?: boolean | undefined;
@@ -246,12 +246,14 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
246
246
  projectIds: string[];
247
247
  }): Promise<AvailableAgentInfo[]>;
248
248
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
249
- projectId: string;
250
- tenantId: string;
251
249
  id: string;
250
+ createdAt: string;
251
+ updatedAt: string;
252
252
  name: string;
253
253
  description: string | null;
254
254
  defaultSubAgentId: string | null;
255
+ tenantId: string;
256
+ projectId: string;
255
257
  prompt: string | null;
256
258
  models: {
257
259
  base?: {
@@ -270,8 +272,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
270
272
  stopWhen: {
271
273
  transferCountIs?: number | undefined;
272
274
  } | null;
273
- createdAt: string;
274
- updatedAt: string;
275
275
  contextConfigId: string | null;
276
276
  statusUpdates: {
277
277
  enabled?: boolean | undefined;
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  scopes: ProjectScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
- projectId: string;
13
- tenantId: string;
14
12
  id: string;
15
- name: string;
16
- description: string | null;
17
13
  createdAt: string;
18
14
  updatedAt: string;
15
+ name: string;
16
+ description: string | null;
17
+ tenantId: string;
18
+ projectId: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -65,13 +65,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
65
65
  };
66
66
  }>;
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
- projectId: string;
69
- tenantId: string;
70
68
  id: string;
71
- name: string;
72
- description: string | null;
73
69
  createdAt: string;
74
70
  updatedAt: string;
71
+ name: string;
72
+ description: string | null;
73
+ tenantId: string;
74
+ projectId: string;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -141,11 +141,11 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
141
141
  scopes: SubAgentScopeConfig;
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
- agentId: string;
145
- projectId: string;
146
- tenantId: string;
147
144
  id: string;
148
145
  createdAt: string;
146
+ tenantId: string;
147
+ projectId: string;
148
+ agentId: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
@@ -184,11 +184,11 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
184
184
  scopes: SubAgentScopeConfig;
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
- agentId: string;
188
- projectId: string;
189
- tenantId: string;
190
187
  id: string;
191
188
  createdAt: string;
189
+ tenantId: string;
190
+ projectId: string;
191
+ agentId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -9,24 +9,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
- agentId: string;
13
- projectId: string;
14
- tenantId: string;
15
12
  id: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
- agentId: string;
25
- projectId: string;
26
- tenantId: string;
27
24
  id: string;
28
25
  createdAt: string;
29
26
  updatedAt: string;
27
+ tenantId: string;
28
+ projectId: string;
29
+ agentId: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -43,12 +43,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
43
43
  };
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
- agentId: string;
47
- projectId: string;
48
- tenantId: string;
49
46
  id: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
49
+ tenantId: string;
50
+ projectId: string;
51
+ agentId: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -83,12 +83,12 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
83
83
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
- agentId: string;
87
- projectId: string;
88
- tenantId: string;
89
86
  id: string;
90
87
  createdAt: string;
91
88
  updatedAt: string;
89
+ tenantId: string;
90
+ projectId: string;
91
+ agentId: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -65,11 +65,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
65
65
  scopes: SubAgentScopeConfig;
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
- agentId: string;
69
- projectId: string;
70
- tenantId: string;
71
68
  id: string;
72
69
  createdAt: string;
70
+ tenantId: string;
71
+ projectId: string;
72
+ agentId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -107,11 +107,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
107
107
  scopes: SubAgentScopeConfig;
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
- agentId: string;
111
- projectId: string;
112
- tenantId: string;
113
110
  id: string;
114
111
  createdAt: string;
112
+ tenantId: string;
113
+ projectId: string;
114
+ agentId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- agentId: string;
57
- projectId: string;
58
- tenantId: string;
59
56
  id: string;
60
- name: string;
61
- description: string | null;
62
57
  createdAt: string;
63
58
  updatedAt: string;
59
+ name: string;
60
+ description: string | null;
61
+ tenantId: string;
62
+ projectId: string;
63
+ agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- agentId: string;
99
- projectId: string;
100
- tenantId: string;
101
98
  id: string;
102
- name: string;
103
- description: string | null;
104
99
  createdAt: string;
105
100
  updatedAt: string;
101
+ name: string;
102
+ description: string | null;
103
+ tenantId: string;
104
+ projectId: string;
105
+ agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -161,12 +161,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
161
161
  needsApproval?: boolean;
162
162
  }> | null;
163
163
  }) => Promise<{
164
- agentId: string;
165
- projectId: string;
166
- tenantId: string;
167
164
  id: string;
168
165
  createdAt: string;
169
166
  updatedAt: string;
167
+ tenantId: string;
168
+ projectId: string;
169
+ agentId: string;
170
170
  toolPolicies: Record<string, {
171
171
  needsApproval?: boolean;
172
172
  }> | null;
@@ -226,12 +226,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
226
226
  needsApproval?: boolean;
227
227
  }> | null;
228
228
  }) => Promise<{
229
- agentId: string;
230
- projectId: string;
231
- tenantId: string;
232
229
  id: string;
233
230
  createdAt: string;
234
231
  updatedAt: string;
232
+ tenantId: string;
233
+ projectId: string;
234
+ agentId: string;
235
235
  toolPolicies: Record<string, {
236
236
  needsApproval?: boolean;
237
237
  }> | null;
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  skillId: string;
10
10
  }) => Promise<{
11
- projectId: string;
12
- tenantId: string;
11
+ metadata: Record<string, string> | null;
13
12
  id: string;
14
- name: string;
15
- description: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
- metadata: Record<string, string> | null;
15
+ name: string;
16
+ description: string;
17
+ tenantId: string;
18
+ projectId: string;
19
19
  content: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
@@ -41,25 +41,25 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
41
41
  };
42
42
  }>;
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
- projectId: string;
45
- tenantId: string;
44
+ metadata: Record<string, string> | null;
46
45
  id: string;
47
- name: string;
48
- description: string;
49
46
  createdAt: string;
50
47
  updatedAt: string;
51
- metadata: Record<string, string> | null;
48
+ name: string;
49
+ description: string;
50
+ tenantId: string;
51
+ projectId: string;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
- projectId: string;
56
- tenantId: string;
55
+ metadata: Record<string, string> | null;
57
56
  id: string;
58
- name: string;
59
- description: string;
60
57
  createdAt: string;
61
58
  updatedAt: string;
62
- metadata: Record<string, string> | null;
59
+ name: string;
60
+ description: string;
61
+ tenantId: string;
62
+ projectId: string;
63
63
  content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -91,12 +91,12 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
91
91
  index: number;
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
- agentId: string;
95
- projectId: string;
96
- tenantId: string;
97
94
  id: string;
98
95
  createdAt: string;
99
96
  updatedAt: string;
97
+ tenantId: string;
98
+ projectId: string;
99
+ agentId: string;
100
100
  index: number;
101
101
  alwaysLoaded: boolean;
102
102
  subAgentId: string;
@@ -9,13 +9,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- agentId: string;
13
- projectId: string;
14
- tenantId: string;
12
+ headers: Record<string, string> | null;
15
13
  id: string;
16
14
  createdAt: string;
17
15
  updatedAt: string;
18
- headers: Record<string, string> | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  externalAgentId: string;
20
20
  subAgentId: string;
21
21
  } | undefined>;
@@ -44,26 +44,26 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- agentId: string;
48
- projectId: string;
49
- tenantId: string;
47
+ headers: Record<string, string> | null;
50
48
  id: string;
51
49
  createdAt: string;
52
50
  updatedAt: string;
53
- headers: Record<string, string> | null;
51
+ tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
54
54
  externalAgentId: string;
55
55
  subAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- agentId: string;
61
- projectId: string;
62
- tenantId: string;
60
+ headers: Record<string, string> | null;
63
61
  id: string;
64
62
  createdAt: string;
65
63
  updatedAt: string;
66
- headers: Record<string, string> | null;
64
+ tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
67
67
  externalAgentId: string;
68
68
  subAgentId: string;
69
69
  }[]>;
@@ -180,13 +180,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
180
180
  headers?: Record<string, string> | null;
181
181
  };
182
182
  }) => Promise<{
183
- agentId: string;
184
- projectId: string;
185
- tenantId: string;
183
+ headers: Record<string, string> | null;
186
184
  id: string;
187
185
  createdAt: string;
188
186
  updatedAt: string;
189
- headers: Record<string, string> | null;
187
+ tenantId: string;
188
+ projectId: string;
189
+ agentId: string;
190
190
  externalAgentId: string;
191
191
  subAgentId: string;
192
192
  }>;
@@ -197,13 +197,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
197
197
  scopes: SubAgentScopeConfig;
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
- agentId: string;
201
- projectId: string;
202
- tenantId: string;
200
+ headers: Record<string, string> | null;
203
201
  id: string;
204
202
  createdAt: string;
205
203
  updatedAt: string;
206
- headers: Record<string, string> | null;
204
+ tenantId: string;
205
+ projectId: string;
206
+ agentId: string;
207
207
  externalAgentId: string;
208
208
  subAgentId: string;
209
209
  } | undefined>;
@@ -218,13 +218,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
218
218
  headers?: Record<string, string> | null;
219
219
  };
220
220
  }) => Promise<{
221
- agentId: string;
222
- projectId: string;
223
- tenantId: string;
221
+ headers: Record<string, string> | null;
224
222
  id: string;
225
223
  createdAt: string;
226
224
  updatedAt: string;
227
- headers: Record<string, string> | null;
225
+ tenantId: string;
226
+ projectId: string;
227
+ agentId: string;
228
228
  externalAgentId: string;
229
229
  subAgentId: string;
230
230
  }>;
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- agentId: string;
13
- projectId: string;
14
- tenantId: string;
15
12
  id: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- agentId: string;
48
- projectId: string;
49
- tenantId: string;
50
47
  id: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
50
+ tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- agentId: string;
61
- projectId: string;
62
- tenantId: string;
63
60
  id: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
63
+ tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
- agentId: string;
130
- projectId: string;
131
- tenantId: string;
132
129
  id: string;
133
130
  createdAt: string;
134
131
  updatedAt: string;
132
+ tenantId: string;
133
+ projectId: string;
134
+ agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
- agentId: string;
149
- projectId: string;
150
- tenantId: string;
151
148
  id: string;
152
149
  createdAt: string;
153
150
  updatedAt: string;
151
+ tenantId: string;
152
+ projectId: string;
153
+ agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
- agentId: string;
163
- projectId: string;
164
- tenantId: string;
165
162
  id: string;
166
163
  createdAt: string;
167
164
  updatedAt: string;
165
+ tenantId: string;
166
+ projectId: string;
167
+ agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -204,14 +204,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- agentId: string;
208
- projectId: string;
209
- tenantId: string;
207
+ headers: Record<string, string> | null;
210
208
  id: string;
211
209
  createdAt: string;
212
210
  updatedAt: string;
211
+ tenantId: string;
212
+ projectId: string;
213
+ agentId: string;
213
214
  toolId: string;
214
- headers: Record<string, string> | null;
215
215
  toolPolicies: Record<string, {
216
216
  needsApproval?: boolean;
217
217
  }> | null;
@@ -248,14 +248,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- agentId: string;
252
- projectId: string;
253
- tenantId: string;
251
+ headers: Record<string, string> | null;
254
252
  id: string;
255
253
  createdAt: string;
256
254
  updatedAt: string;
255
+ tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
257
258
  toolId: string;
258
- headers: Record<string, string> | null;
259
259
  toolPolicies: Record<string, {
260
260
  needsApproval?: boolean;
261
261
  }> | null;