@inkeep/agents-core 0.0.0-dev-20260327070744 → 0.0.0-dev-20260327181326

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 (36) 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/init.js +3 -1
  4. package/dist/data-access/manage/agents.d.ts +10 -10
  5. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  6. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  7. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  8. package/dist/data-access/manage/functionTools.d.ts +8 -8
  9. package/dist/data-access/manage/skills.d.ts +10 -10
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  11. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  13. package/dist/data-access/manage/subAgents.d.ts +6 -6
  14. package/dist/data-access/manage/tools.d.ts +18 -18
  15. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  16. package/dist/data-access/runtime/apps.d.ts +12 -12
  17. package/dist/data-access/runtime/conversations.d.ts +24 -24
  18. package/dist/data-access/runtime/messages.d.ts +9 -9
  19. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  20. package/dist/data-access/runtime/tasks.d.ts +6 -6
  21. package/dist/db/manage/manage-schema.d.ts +450 -450
  22. package/dist/db/runtime/runtime-schema.d.ts +344 -344
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +2 -2
  25. package/dist/utils/error.d.ts +51 -51
  26. package/dist/utils/index.d.ts +2 -2
  27. package/dist/utils/index.js +2 -2
  28. package/dist/utils/jwt-helpers.d.ts +7 -1
  29. package/dist/utils/jwt-helpers.js +11 -1
  30. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  31. package/dist/validation/schemas.d.ts +1868 -1868
  32. package/dist/validation/schemas.js +1 -1
  33. package/drizzle/runtime/0027_seed-playground-app.sql +13 -0
  34. package/drizzle/runtime/meta/0027_snapshot.json +4389 -0
  35. package/drizzle/runtime/meta/_journal.json +7 -0
  36. package/package.json +1 -1
package/dist/auth/init.js CHANGED
@@ -127,9 +127,11 @@ async function init() {
127
127
  else {
128
128
  const publicKeys = [];
129
129
  if (tempJwtPublicKeyB64) {
130
+ const { derivePlaygroundKid } = await import("../utils/jwt-helpers.js");
130
131
  const publicKeyPem = Buffer.from(tempJwtPublicKeyB64, "base64").toString("utf-8");
132
+ const kid = await derivePlaygroundKid(publicKeyPem);
131
133
  publicKeys.push({
132
- kid: "playground-rsa",
134
+ kid,
133
135
  publicKey: publicKeyPem,
134
136
  algorithm: "RS256",
135
137
  addedAt: (/* @__PURE__ */ new Date()).toISOString()
@@ -10,13 +10,13 @@ import { PgColumn } from "drizzle-orm/pg-core";
10
10
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  scopes: AgentScopeConfig;
12
12
  }) => Promise<{
13
+ tenantId: string;
13
14
  name: string;
14
15
  id: string;
15
16
  createdAt: string;
16
17
  updatedAt: string;
17
- projectId: string;
18
- tenantId: string;
19
18
  description: string | null;
19
+ projectId: string;
20
20
  defaultSubAgentId: string | null;
21
21
  contextConfigId: string | null;
22
22
  models: {
@@ -57,13 +57,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
57
57
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ tenantId: string;
60
61
  name: string;
61
62
  id: string;
62
63
  createdAt: string;
63
64
  updatedAt: string;
64
- projectId: string;
65
- tenantId: string;
66
65
  description: string | null;
66
+ projectId: string;
67
67
  defaultSubAgentId: string | null;
68
68
  contextConfigId: string | null;
69
69
  models: {
@@ -101,14 +101,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
101
101
  } | null;
102
102
  executionMode: "classic" | "durable";
103
103
  defaultSubAgent: {
104
+ tenantId: string;
104
105
  name: string;
105
106
  id: string;
106
107
  createdAt: string;
107
108
  updatedAt: string;
109
+ description: string | null;
108
110
  agentId: string;
109
111
  projectId: string;
110
- tenantId: string;
111
- description: string | null;
112
112
  models: {
113
113
  base?: {
114
114
  model?: string | undefined;
@@ -133,13 +133,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
133
133
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
134
134
  scopes: ProjectScopeConfig;
135
135
  }) => Promise<{
136
+ tenantId: string;
136
137
  name: string;
137
138
  id: string;
138
139
  createdAt: string;
139
140
  updatedAt: string;
140
- projectId: string;
141
- tenantId: string;
142
141
  description: string | null;
142
+ projectId: string;
143
143
  defaultSubAgentId: string | null;
144
144
  contextConfigId: string | null;
145
145
  models: {
@@ -251,13 +251,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
251
251
  projectIds: string[];
252
252
  }): Promise<AvailableAgentInfo[]>;
253
253
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
254
+ tenantId: string;
254
255
  name: string;
255
256
  id: string;
256
257
  createdAt: string;
257
258
  updatedAt: string;
258
- projectId: string;
259
- tenantId: string;
260
259
  description: string | null;
260
+ projectId: string;
261
261
  defaultSubAgentId: string | null;
262
262
  contextConfigId: string | null;
263
263
  models: {
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  scopes: ProjectScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
12
13
  name: string;
13
14
  id: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- projectId: string;
17
- tenantId: string;
18
17
  description: string | null;
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
+ tenantId: string;
68
69
  name: string;
69
70
  id: string;
70
71
  createdAt: string;
71
72
  updatedAt: string;
72
- projectId: string;
73
- tenantId: string;
74
73
  description: string | null;
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
+ tenantId: string;
144
145
  id: string;
145
146
  createdAt: string;
146
147
  agentId: string;
147
148
  projectId: string;
148
- tenantId: 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
+ tenantId: string;
187
188
  id: string;
188
189
  createdAt: string;
189
190
  agentId: string;
190
191
  projectId: string;
191
- tenantId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -9,26 +9,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
12
13
  id: string;
13
- headersSchema: unknown;
14
- contextVariables: Record<string, ContextFetchDefinition> | null;
15
14
  createdAt: string;
16
15
  updatedAt: string;
16
+ headersSchema: unknown;
17
+ contextVariables: Record<string, ContextFetchDefinition> | null;
17
18
  agentId: string;
18
19
  projectId: string;
19
- tenantId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
+ tenantId: string;
24
25
  id: string;
25
- headersSchema: unknown;
26
- contextVariables: Record<string, ContextFetchDefinition> | null;
27
26
  createdAt: string;
28
27
  updatedAt: string;
28
+ headersSchema: unknown;
29
+ contextVariables: Record<string, ContextFetchDefinition> | null;
29
30
  agentId: string;
30
31
  projectId: string;
31
- tenantId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -43,14 +43,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
43
43
  };
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
+ tenantId: string;
46
47
  id: string;
47
- headersSchema: unknown;
48
- contextVariables: Record<string, ContextFetchDefinition> | null;
49
48
  createdAt: string;
50
49
  updatedAt: string;
50
+ headersSchema: unknown;
51
+ contextVariables: Record<string, ContextFetchDefinition> | null;
51
52
  agentId: string;
52
53
  projectId: string;
53
- tenantId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -83,14 +83,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
83
83
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
+ tenantId: string;
86
87
  id: string;
87
- headersSchema: unknown;
88
- contextVariables: Record<string, ContextFetchDefinition> | null;
89
88
  createdAt: string;
90
89
  updatedAt: string;
90
+ headersSchema: unknown;
91
+ contextVariables: Record<string, ContextFetchDefinition> | null;
91
92
  agentId: string;
92
93
  projectId: string;
93
- tenantId: string;
94
94
  }>;
95
95
  //#endregion
96
96
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -65,11 +65,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
65
65
  scopes: SubAgentScopeConfig;
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
+ tenantId: string;
68
69
  id: string;
69
70
  createdAt: string;
70
71
  agentId: string;
71
72
  projectId: string;
72
- tenantId: 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
+ tenantId: string;
110
111
  id: string;
111
112
  createdAt: string;
112
113
  agentId: string;
113
114
  projectId: string;
114
- tenantId: 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
+ tenantId: string;
56
57
  name: string;
57
58
  id: string;
58
59
  createdAt: string;
59
60
  updatedAt: string;
61
+ description: string | null;
60
62
  agentId: string;
61
63
  projectId: string;
62
- tenantId: string;
63
- description: string | null;
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
+ tenantId: string;
98
99
  name: string;
99
100
  id: string;
100
101
  createdAt: string;
101
102
  updatedAt: string;
103
+ description: string | null;
102
104
  agentId: string;
103
105
  projectId: string;
104
- tenantId: string;
105
- description: string | null;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -157,17 +157,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
157
157
  needsApproval?: boolean;
158
158
  }> | null;
159
159
  }) => Promise<{
160
+ tenantId: string;
160
161
  id: string;
161
162
  createdAt: string;
162
163
  updatedAt: string;
163
164
  agentId: string;
164
165
  projectId: string;
165
- tenantId: string;
166
166
  subAgentId: string;
167
- functionToolId: string;
168
167
  toolPolicies: Record<string, {
169
168
  needsApproval?: boolean;
170
169
  }> | null;
170
+ functionToolId: string;
171
171
  }>;
172
172
  /**
173
173
  * Update an agent-function tool relation
@@ -222,17 +222,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
222
222
  needsApproval?: boolean;
223
223
  }> | null;
224
224
  }) => Promise<{
225
+ tenantId: string;
225
226
  id: string;
226
227
  createdAt: string;
227
228
  updatedAt: string;
228
229
  agentId: string;
229
230
  projectId: string;
230
- tenantId: string;
231
231
  subAgentId: string;
232
- functionToolId: string;
233
232
  toolPolicies: Record<string, {
234
233
  needsApproval?: boolean;
235
234
  }> | null;
235
+ functionToolId: string;
236
236
  }>;
237
237
  //#endregion
238
238
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  skillId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
11
12
  name: string;
13
+ metadata: Record<string, string> | null;
12
14
  id: string;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
- projectId: string;
16
- tenantId: string;
17
17
  description: string;
18
- metadata: Record<string, string> | null;
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
+ tenantId: string;
44
45
  name: string;
46
+ metadata: Record<string, string> | null;
45
47
  id: string;
46
48
  createdAt: string;
47
49
  updatedAt: string;
48
- projectId: string;
49
- tenantId: string;
50
50
  description: string;
51
- metadata: Record<string, string> | null;
51
+ projectId: string;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
+ tenantId: string;
55
56
  name: string;
57
+ metadata: Record<string, string> | null;
56
58
  id: string;
57
59
  createdAt: string;
58
60
  updatedAt: string;
59
- projectId: string;
60
- tenantId: string;
61
61
  description: string;
62
- metadata: Record<string, string> | null;
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
+ tenantId: string;
94
95
  id: string;
95
96
  createdAt: string;
96
97
  updatedAt: string;
97
98
  agentId: string;
98
99
  projectId: string;
99
- tenantId: string;
100
100
  subAgentId: string;
101
101
  skillId: string;
102
102
  index: number;
@@ -9,14 +9,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
13
+ headers: Record<string, string> | null;
12
14
  id: string;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
17
  agentId: string;
16
18
  projectId: string;
17
- tenantId: string;
18
19
  subAgentId: string;
19
- headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -44,27 +44,27 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ tenantId: string;
48
+ headers: Record<string, string> | null;
47
49
  id: string;
48
50
  createdAt: string;
49
51
  updatedAt: string;
50
52
  agentId: string;
51
53
  projectId: string;
52
- tenantId: string;
53
54
  subAgentId: string;
54
- headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ tenantId: string;
61
+ headers: Record<string, string> | null;
60
62
  id: string;
61
63
  createdAt: string;
62
64
  updatedAt: string;
63
65
  agentId: string;
64
66
  projectId: string;
65
- tenantId: string;
66
67
  subAgentId: string;
67
- headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -180,14 +180,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
180
180
  headers?: Record<string, string> | null;
181
181
  };
182
182
  }) => Promise<{
183
+ tenantId: string;
184
+ headers: Record<string, string> | null;
183
185
  id: string;
184
186
  createdAt: string;
185
187
  updatedAt: string;
186
188
  agentId: string;
187
189
  projectId: string;
188
- tenantId: string;
189
190
  subAgentId: string;
190
- headers: Record<string, string> | null;
191
191
  externalAgentId: string;
192
192
  }>;
193
193
  /**
@@ -197,14 +197,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
197
197
  scopes: SubAgentScopeConfig;
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
+ tenantId: string;
201
+ headers: Record<string, string> | null;
200
202
  id: string;
201
203
  createdAt: string;
202
204
  updatedAt: string;
203
205
  agentId: string;
204
206
  projectId: string;
205
- tenantId: string;
206
207
  subAgentId: string;
207
- headers: Record<string, string> | null;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
210
210
  /**
@@ -218,14 +218,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
218
218
  headers?: Record<string, string> | null;
219
219
  };
220
220
  }) => Promise<{
221
+ tenantId: string;
222
+ headers: Record<string, string> | null;
221
223
  id: string;
222
224
  createdAt: string;
223
225
  updatedAt: string;
224
226
  agentId: string;
225
227
  projectId: string;
226
- tenantId: string;
227
228
  subAgentId: string;
228
- headers: Record<string, string> | null;
229
229
  externalAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
12
13
  id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
16
  agentId: string;
16
17
  projectId: string;
17
- tenantId: 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
+ tenantId: string;
47
48
  id: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
51
  agentId: string;
51
52
  projectId: string;
52
- tenantId: 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
+ tenantId: string;
60
61
  id: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
64
  agentId: string;
64
65
  projectId: string;
65
- tenantId: 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
+ tenantId: string;
129
130
  id: string;
130
131
  createdAt: string;
131
132
  updatedAt: string;
132
133
  agentId: string;
133
134
  projectId: string;
134
- tenantId: 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
+ tenantId: string;
148
149
  id: string;
149
150
  createdAt: string;
150
151
  updatedAt: string;
151
152
  agentId: string;
152
153
  projectId: string;
153
- tenantId: 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
+ tenantId: string;
162
163
  id: string;
163
164
  createdAt: string;
164
165
  updatedAt: string;
165
166
  agentId: string;
166
167
  projectId: string;
167
- tenantId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
+ tenantId: string;
208
+ headers: Record<string, string> | null;
207
209
  id: string;
208
210
  createdAt: string;
209
211
  updatedAt: string;
210
212
  agentId: string;
211
213
  projectId: string;
212
- tenantId: string;
213
214
  subAgentId: string;
214
215
  toolId: string;
215
- headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
216
217
  toolPolicies: Record<string, {
217
218
  needsApproval?: boolean;
218
219
  }> | null;
219
- selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -248,19 +248,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
+ tenantId: string;
252
+ headers: Record<string, string> | null;
251
253
  id: string;
252
254
  createdAt: string;
253
255
  updatedAt: string;
254
256
  agentId: string;
255
257
  projectId: string;
256
- tenantId: string;
257
258
  subAgentId: string;
258
259
  toolId: string;
259
- headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
260
261
  toolPolicies: Record<string, {
261
262
  needsApproval?: boolean;
262
263
  }> | null;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;