@inkeep/agents-core 0.62.1 → 0.62.2

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.
package/dist/auth/init.js CHANGED
@@ -123,6 +123,16 @@ async function init() {
123
123
  const playgroundAppId = process.env.INKEEP_PLAYGROUND_APP_ID || "app_playground";
124
124
  const tempJwtPublicKeyB64 = process.env.INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY;
125
125
  console.log(`\nšŸŽ® Checking/creating playground app: ${playgroundAppId}`);
126
+ let allowedDomains = ["localhost", "127.0.0.1"];
127
+ const manageUiUrl = process.env.INKEEP_AGENTS_MANAGE_UI_URL;
128
+ if (manageUiUrl) try {
129
+ const url = new URL(manageUiUrl);
130
+ if (url.hostname === "localhost" || url.hostname === "127.0.0.1") allowedDomains = ["localhost", "127.0.0.1"];
131
+ else allowedDomains = [url.hostname];
132
+ } catch {
133
+ console.log(` āš ļø Invalid INKEEP_AGENTS_MANAGE_UI_URL: ${manageUiUrl}, using localhost defaults`);
134
+ }
135
+ console.log(` šŸ“‹ Playground allowed domains: ${JSON.stringify(allowedDomains)}`);
126
136
  if (await getAppById(dbClient)(playgroundAppId)) console.log(` ā„¹ļø Playground app already exists: ${playgroundAppId}`);
127
137
  else {
128
138
  const publicKeys = [];
@@ -140,7 +150,7 @@ async function init() {
140
150
  const config = {
141
151
  type: "web_client",
142
152
  webClient: {
143
- allowedDomains: ["*"],
153
+ allowedDomains,
144
154
  ...publicKeys.length > 0 ? { auth: {
145
155
  publicKeys,
146
156
  validateScopeClaims: true
@@ -159,7 +169,7 @@ async function init() {
159
169
  enabled: true,
160
170
  config
161
171
  });
162
- console.log(` āœ… Playground app created: ${playgroundAppId}`);
172
+ console.log(` āœ… Playground app created: ${playgroundAppId} (domains: ${JSON.stringify(allowedDomains)})`);
163
173
  if (publicKeys.length > 0) console.log(` āœ… RSA public key configured (kid: playground-rsa)`);
164
174
  }
165
175
  console.log("\n================================================");
@@ -15,8 +15,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
17
  description: string | null;
18
- projectId: string;
19
18
  tenantId: string;
19
+ projectId: string;
20
20
  defaultSubAgentId: string | null;
21
21
  contextConfigId: string | null;
22
22
  models: {
@@ -62,8 +62,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
62
62
  createdAt: string;
63
63
  updatedAt: string;
64
64
  description: string | null;
65
- projectId: string;
66
65
  tenantId: string;
66
+ projectId: string;
67
67
  defaultSubAgentId: string | null;
68
68
  contextConfigId: string | null;
69
69
  models: {
@@ -106,9 +106,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
106
106
  createdAt: string;
107
107
  updatedAt: string;
108
108
  description: string | null;
109
- agentId: string;
110
- projectId: string;
111
109
  tenantId: string;
110
+ projectId: string;
111
+ agentId: string;
112
112
  models: {
113
113
  base?: {
114
114
  model?: string | undefined;
@@ -138,8 +138,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
138
138
  createdAt: string;
139
139
  updatedAt: string;
140
140
  description: string | null;
141
- projectId: string;
142
141
  tenantId: string;
142
+ projectId: string;
143
143
  defaultSubAgentId: string | null;
144
144
  contextConfigId: string | null;
145
145
  models: {
@@ -256,8 +256,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
256
256
  createdAt: string;
257
257
  updatedAt: string;
258
258
  description: string | null;
259
- projectId: string;
260
259
  tenantId: string;
260
+ projectId: string;
261
261
  defaultSubAgentId: string | null;
262
262
  contextConfigId: string | null;
263
263
  models: {
@@ -14,8 +14,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  description: string | null;
17
- projectId: string;
18
17
  tenantId: string;
18
+ projectId: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -70,8 +70,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  description: string | null;
73
- projectId: string;
74
73
  tenantId: string;
74
+ projectId: string;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -143,9 +143,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
143
143
  }) => Promise<{
144
144
  id: string;
145
145
  createdAt: string;
146
- agentId: string;
147
- projectId: string;
148
146
  tenantId: string;
147
+ projectId: string;
148
+ agentId: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
@@ -186,9 +186,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
186
186
  }) => Promise<{
187
187
  id: string;
188
188
  createdAt: string;
189
- agentId: string;
190
- projectId: string;
191
189
  tenantId: string;
190
+ projectId: string;
191
+ agentId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -12,11 +12,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
+ tenantId: string;
16
+ projectId: string;
15
17
  headersSchema: unknown;
16
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
17
19
  agentId: string;
18
- projectId: string;
19
- tenantId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
@@ -24,11 +24,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
24
24
  id: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
+ tenantId: string;
28
+ projectId: string;
27
29
  headersSchema: unknown;
28
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
29
31
  agentId: string;
30
- projectId: string;
31
- tenantId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -46,11 +46,11 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
+ tenantId: string;
50
+ projectId: string;
49
51
  headersSchema: unknown;
50
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
51
53
  agentId: string;
52
- projectId: string;
53
- tenantId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -86,11 +86,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
86
86
  id: string;
87
87
  createdAt: string;
88
88
  updatedAt: string;
89
+ tenantId: string;
90
+ projectId: string;
89
91
  headersSchema: unknown;
90
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
91
93
  agentId: string;
92
- projectId: string;
93
- tenantId: string;
94
94
  }>;
95
95
  //#endregion
96
96
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  }) => Promise<{
68
68
  id: string;
69
69
  createdAt: string;
70
- agentId: string;
71
- projectId: string;
72
70
  tenantId: string;
71
+ projectId: string;
72
+ agentId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  }) => Promise<{
110
110
  id: string;
111
111
  createdAt: string;
112
- agentId: string;
113
- projectId: string;
114
112
  tenantId: string;
113
+ projectId: string;
114
+ agentId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -58,9 +58,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
60
  description: string | null;
61
- agentId: string;
62
- projectId: string;
63
61
  tenantId: string;
62
+ projectId: string;
63
+ agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -100,9 +100,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
100
100
  createdAt: string;
101
101
  updatedAt: string;
102
102
  description: string | null;
103
- agentId: string;
104
- projectId: string;
105
103
  tenantId: string;
104
+ projectId: string;
105
+ agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -160,9 +160,9 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
160
160
  id: string;
161
161
  createdAt: string;
162
162
  updatedAt: string;
163
- agentId: string;
164
- projectId: string;
165
163
  tenantId: string;
164
+ projectId: string;
165
+ agentId: string;
166
166
  subAgentId: string;
167
167
  functionToolId: string;
168
168
  toolPolicies: Record<string, {
@@ -225,9 +225,9 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- agentId: string;
229
- projectId: string;
230
228
  tenantId: string;
229
+ projectId: string;
230
+ agentId: string;
231
231
  subAgentId: string;
232
232
  functionToolId: string;
233
233
  toolPolicies: Record<string, {
@@ -14,9 +14,9 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
14
14
  updatedAt: string;
15
15
  metadata: Record<string, string> | null;
16
16
  description: string;
17
- projectId: string;
18
- tenantId: string;
19
17
  content: string;
18
+ tenantId: string;
19
+ projectId: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: ProjectScopeConfig;
@@ -47,9 +47,9 @@ declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInser
47
47
  updatedAt: string;
48
48
  metadata: Record<string, string> | null;
49
49
  description: string;
50
- projectId: string;
51
- tenantId: string;
52
50
  content: string;
51
+ tenantId: string;
52
+ projectId: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
55
  id: string;
@@ -58,9 +58,9 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInser
58
58
  updatedAt: string;
59
59
  metadata: Record<string, string> | null;
60
60
  description: string;
61
- projectId: string;
62
- tenantId: string;
63
61
  content: string;
62
+ tenantId: string;
63
+ projectId: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
66
66
  scopes: ProjectScopeConfig;
@@ -94,9 +94,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
94
94
  id: string;
95
95
  createdAt: string;
96
96
  updatedAt: string;
97
- agentId: string;
98
- projectId: string;
99
97
  tenantId: string;
98
+ projectId: string;
99
+ agentId: string;
100
100
  subAgentId: string;
101
101
  skillId: string;
102
102
  index: number;
@@ -13,9 +13,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  headers: Record<string, string> | null;
16
- agentId: string;
17
- projectId: string;
18
16
  tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  subAgentId: string;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
@@ -48,9 +48,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
50
  headers: Record<string, string> | null;
51
- agentId: string;
52
- projectId: string;
53
51
  tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
54
54
  subAgentId: string;
55
55
  externalAgentId: string;
56
56
  }[]>;
@@ -61,9 +61,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
63
  headers: Record<string, string> | null;
64
- agentId: string;
65
- projectId: string;
66
64
  tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
67
67
  subAgentId: string;
68
68
  externalAgentId: string;
69
69
  }[]>;
@@ -184,9 +184,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
186
  headers: Record<string, string> | null;
187
- agentId: string;
188
- projectId: string;
189
187
  tenantId: string;
188
+ projectId: string;
189
+ agentId: string;
190
190
  subAgentId: string;
191
191
  externalAgentId: string;
192
192
  }>;
@@ -201,9 +201,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
203
  headers: Record<string, string> | null;
204
- agentId: string;
205
- projectId: string;
206
204
  tenantId: string;
205
+ projectId: string;
206
+ agentId: string;
207
207
  subAgentId: string;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
@@ -222,9 +222,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
224
  headers: Record<string, string> | null;
225
- agentId: string;
226
- projectId: string;
227
225
  tenantId: string;
226
+ projectId: string;
227
+ agentId: string;
228
228
  subAgentId: string;
229
229
  externalAgentId: string;
230
230
  }>;
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
50
  tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
63
  tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- agentId: string;
133
- projectId: string;
134
132
  tenantId: string;
133
+ projectId: string;
134
+ agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- agentId: string;
152
- projectId: string;
153
151
  tenantId: string;
152
+ projectId: string;
153
+ agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- agentId: string;
166
- projectId: string;
167
165
  tenantId: string;
166
+ projectId: string;
167
+ agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -208,9 +208,9 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
210
  headers: Record<string, string> | null;
211
- agentId: string;
212
- projectId: string;
213
211
  tenantId: string;
212
+ projectId: string;
213
+ agentId: string;
214
214
  subAgentId: string;
215
215
  toolId: string;
216
216
  toolPolicies: Record<string, {
@@ -252,9 +252,9 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
254
  headers: Record<string, string> | null;
255
- agentId: string;
256
- projectId: string;
257
255
  tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
258
258
  subAgentId: string;
259
259
  toolId: string;
260
260
  toolPolicies: Record<string, {
@@ -13,9 +13,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  headers: Record<string, string> | null;
16
- agentId: string;
17
- projectId: string;
18
16
  tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -48,9 +48,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
50
  headers: Record<string, string> | null;
51
- agentId: string;
52
- projectId: string;
53
51
  tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -61,9 +61,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
63
  headers: Record<string, string> | null;
64
- agentId: string;
65
- projectId: string;
66
64
  tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -214,9 +214,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
214
214
  createdAt: string;
215
215
  updatedAt: string;
216
216
  headers: Record<string, string> | null;
217
- agentId: string;
218
- projectId: string;
219
217
  tenantId: string;
218
+ projectId: string;
219
+ agentId: string;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -231,9 +231,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
231
231
  createdAt: string;
232
232
  updatedAt: string;
233
233
  headers: Record<string, string> | null;
234
- agentId: string;
235
- projectId: string;
236
234
  tenantId: string;
235
+ projectId: string;
236
+ agentId: string;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -252,9 +252,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
254
  headers: Record<string, string> | null;
255
- agentId: string;
256
- projectId: string;
257
255
  tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -14,9 +14,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  description: string | null;
17
- agentId: string;
18
- projectId: string;
19
17
  tenantId: string;
18
+ projectId: string;
19
+ agentId: string;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -45,9 +45,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
45
45
  createdAt: string;
46
46
  updatedAt: string;
47
47
  description: string | null;
48
- agentId: string;
49
- projectId: string;
50
48
  tenantId: string;
49
+ projectId: string;
50
+ agentId: string;
51
51
  models: {
52
52
  base?: {
53
53
  model?: string | undefined;
@@ -114,9 +114,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
114
114
  createdAt: string;
115
115
  updatedAt: string;
116
116
  description: string | null;
117
- agentId: string;
118
- projectId: string;
119
117
  tenantId: string;
118
+ projectId: string;
119
+ agentId: string;
120
120
  models: {
121
121
  base?: {
122
122
  model?: string | undefined;
@@ -26,8 +26,8 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
26
26
  updatedAt: string;
27
27
  description: string | null;
28
28
  headers: Record<string, string> | null;
29
- projectId: string;
30
29
  tenantId: string;
30
+ projectId: string;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -84,8 +84,8 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
84
84
  updatedAt: string;
85
85
  description: string | null;
86
86
  headers: Record<string, string> | null;
87
- projectId: string;
88
87
  tenantId: string;
88
+ projectId: string;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -139,9 +139,9 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
141
  headers: Record<string, string> | null;
142
- agentId: string;
143
- projectId: string;
144
142
  tenantId: string;
143
+ projectId: string;
144
+ agentId: string;
145
145
  subAgentId: string;
146
146
  toolId: string;
147
147
  toolPolicies: Record<string, {
@@ -158,9 +158,9 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
160
  headers: Record<string, string> | null;
161
- agentId: string;
162
- projectId: string;
163
161
  tenantId: string;
162
+ projectId: string;
163
+ agentId: string;
164
164
  subAgentId: string;
165
165
  toolId: string;
166
166
  toolPolicies: Record<string, {
@@ -186,9 +186,9 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
188
  headers: Record<string, string> | null;
189
- agentId: string;
190
- projectId: string;
191
189
  tenantId: string;
190
+ projectId: string;
191
+ agentId: string;
192
192
  subAgentId: string;
193
193
  toolId: string;
194
194
  toolPolicies: Record<string, {
@@ -208,8 +208,8 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
208
208
  updatedAt: string;
209
209
  description: string | null;
210
210
  headers: Record<string, string> | null;
211
- projectId: string;
212
211
  tenantId: string;
212
+ projectId: string;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
@@ -13,9 +13,9 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  expiresAt: string | null;
16
- agentId: string;
17
- projectId: string;
18
16
  tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
@@ -27,9 +27,9 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
29
  expiresAt: string | null;
30
- agentId: string;
31
- projectId: string;
32
30
  tenantId: string;
31
+ projectId: string;
32
+ agentId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -44,9 +44,9 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
46
  expiresAt: string | null;
47
- agentId: string;
48
- projectId: string;
49
47
  tenantId: string;
48
+ projectId: string;
49
+ agentId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -71,9 +71,9 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
73
  expiresAt: string | null;
74
- agentId: string;
75
- projectId: string;
76
74
  tenantId: string;
75
+ projectId: string;
76
+ agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;