@inkeep/agents-core 0.80.4 → 0.80.6

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 (40) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-types.d.ts +7 -0
  3. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  4. package/dist/auth/auth.js +1 -1
  5. package/dist/auth/init.js +2 -1
  6. package/dist/auth/permissions.d.ts +9 -9
  7. package/dist/data-access/manage/agents.d.ts +25 -25
  8. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  9. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  10. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  11. package/dist/data-access/manage/functionTools.d.ts +14 -14
  12. package/dist/data-access/manage/skills.d.ts +8 -8
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  16. package/dist/data-access/manage/subAgents.d.ts +15 -15
  17. package/dist/data-access/manage/tools.d.ts +24 -24
  18. package/dist/data-access/manage/triggers.d.ts +2 -2
  19. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  20. package/dist/data-access/runtime/apps.d.ts +13 -13
  21. package/dist/data-access/runtime/conversations.d.ts +36 -36
  22. package/dist/data-access/runtime/events.d.ts +3 -3
  23. package/dist/data-access/runtime/feedback.d.ts +6 -6
  24. package/dist/data-access/runtime/messages.d.ts +18 -18
  25. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
  26. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  27. package/dist/data-access/runtime/tasks.d.ts +7 -7
  28. package/dist/db/manage/manage-schema.d.ts +502 -502
  29. package/dist/db/runtime/runtime-schema.d.ts +462 -462
  30. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +1 -1
  31. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +1 -1
  32. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
  33. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
  34. package/dist/setup/setup.js +4 -0
  35. package/dist/test-utils/mocks/logger.js +1 -1
  36. package/dist/utils/error.d.ts +51 -51
  37. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  38. package/dist/validation/schemas/skills.d.ts +41 -41
  39. package/dist/validation/schemas.d.ts +2138 -2138
  40. package/package.json +4 -4
package/dist/auth/auth.js CHANGED
@@ -380,7 +380,7 @@ function createAuth(config) {
380
380
  interval: "5s",
381
381
  userCodeLength: 8
382
382
  }),
383
- haveIBeenPwned({ customPasswordCompromisedMessage: "Please choose a more secure password." }),
383
+ ...config.disablePasswordCompromiseCheck ? [] : [haveIBeenPwned({ customPasswordCompromisedMessage: "Please choose a more secure password." })],
384
384
  ...config.recaptcha ? [captcha({
385
385
  provider: "google-recaptcha",
386
386
  secretKey: config.recaptcha.secretKey,
package/dist/auth/init.js CHANGED
@@ -71,7 +71,8 @@ async function init() {
71
71
  const auth = createAuth({
72
72
  baseURL: process.env.INKEEP_AGENTS_API_URL || "http://localhost:3002",
73
73
  secret: authSecret,
74
- dbClient
74
+ dbClient,
75
+ disablePasswordCompromiseCheck: true
75
76
  });
76
77
  console.log(`📦 Checking/creating organization: ${TENANT_ID}`);
77
78
  const { created: orgCreated } = await upsertOrganization(dbClient)({
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
- actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
12
- statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
12
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
- actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
19
- statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
19
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
- actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
26
- statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
26
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -13,6 +13,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
13
13
  id: string;
14
14
  name: string;
15
15
  description: string | null;
16
+ createdAt: string;
17
+ projectId: string;
18
+ tenantId: string;
19
+ updatedAt: string;
16
20
  models: {
17
21
  base?: {
18
22
  model?: string | undefined;
@@ -36,13 +40,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
36
40
  stopWhen: {
37
41
  transferCountIs?: number | undefined;
38
42
  } | null;
39
- createdAt: string;
40
- updatedAt: string;
41
- tenantId: string;
42
- projectId: string;
43
+ prompt: string | null;
43
44
  defaultSubAgentId: string | null;
44
45
  contextConfigId: string | null;
45
- prompt: string | null;
46
46
  statusUpdates: {
47
47
  enabled?: boolean | undefined;
48
48
  numEvents?: number | undefined;
@@ -66,6 +66,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
66
66
  id: string;
67
67
  name: string;
68
68
  description: string | null;
69
+ createdAt: string;
70
+ projectId: string;
71
+ tenantId: string;
72
+ updatedAt: string;
69
73
  models: {
70
74
  base?: {
71
75
  model?: string | undefined;
@@ -89,13 +93,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
89
93
  stopWhen: {
90
94
  transferCountIs?: number | undefined;
91
95
  } | null;
92
- createdAt: string;
93
- updatedAt: string;
94
- tenantId: string;
95
- projectId: string;
96
+ prompt: string | null;
96
97
  defaultSubAgentId: string | null;
97
98
  contextConfigId: string | null;
98
- prompt: string | null;
99
99
  statusUpdates: {
100
100
  enabled?: boolean | undefined;
101
101
  numEvents?: number | undefined;
@@ -116,6 +116,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
116
116
  id: string;
117
117
  name: string;
118
118
  description: string | null;
119
+ createdAt: string;
120
+ agentId: string;
121
+ projectId: string;
122
+ tenantId: string;
123
+ updatedAt: string;
119
124
  models: {
120
125
  base?: {
121
126
  model?: string | undefined;
@@ -139,12 +144,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
139
144
  stopWhen: {
140
145
  stepCountIs?: number | undefined;
141
146
  } | null;
142
- createdAt: string;
143
- updatedAt: string;
144
- tenantId: string;
145
- projectId: string;
146
147
  prompt: string | null;
147
- agentId: string;
148
148
  conversationHistoryConfig: ConversationHistoryConfig | null;
149
149
  outputContract: {
150
150
  [x: string]: unknown;
@@ -163,6 +163,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
163
163
  id: string;
164
164
  name: string;
165
165
  description: string | null;
166
+ createdAt: string;
167
+ projectId: string;
168
+ tenantId: string;
169
+ updatedAt: string;
166
170
  models: {
167
171
  base?: {
168
172
  model?: string | undefined;
@@ -186,13 +190,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
186
190
  stopWhen: {
187
191
  transferCountIs?: number | undefined;
188
192
  } | null;
189
- createdAt: string;
190
- updatedAt: string;
191
- tenantId: string;
192
- projectId: string;
193
+ prompt: string | null;
193
194
  defaultSubAgentId: string | null;
194
195
  contextConfigId: string | null;
195
- prompt: string | null;
196
196
  statusUpdates: {
197
197
  enabled?: boolean | undefined;
198
198
  numEvents?: number | undefined;
@@ -293,6 +293,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
293
293
  id: string;
294
294
  name: string;
295
295
  description: string | null;
296
+ createdAt: string;
297
+ projectId: string;
298
+ tenantId: string;
299
+ updatedAt: string;
296
300
  models: {
297
301
  base?: {
298
302
  model?: string | undefined;
@@ -316,13 +320,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
316
320
  stopWhen: {
317
321
  transferCountIs?: number | undefined;
318
322
  } | null;
319
- createdAt: string;
320
- updatedAt: string;
321
- tenantId: string;
322
- projectId: string;
323
+ prompt: string | null;
323
324
  defaultSubAgentId: string | null;
324
325
  contextConfigId: string | null;
325
- prompt: string | null;
326
326
  statusUpdates: {
327
327
  enabled?: boolean | undefined;
328
328
  numEvents?: number | undefined;
@@ -13,9 +13,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
13
13
  name: string;
14
14
  description: string | null;
15
15
  createdAt: string;
16
- updatedAt: string;
17
- tenantId: string;
18
16
  projectId: string;
17
+ tenantId: string;
18
+ updatedAt: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -69,9 +69,9 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
69
69
  name: string;
70
70
  description: string | null;
71
71
  createdAt: string;
72
- updatedAt: string;
73
- tenantId: string;
74
72
  projectId: string;
73
+ tenantId: string;
74
+ updatedAt: 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
- tenantId: string;
147
- projectId: string;
148
146
  agentId: string;
147
+ projectId: string;
148
+ tenantId: 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
- tenantId: string;
190
- projectId: string;
191
189
  agentId: string;
190
+ projectId: string;
191
+ tenantId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -11,10 +11,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  createdAt: string;
14
- updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
14
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ updatedAt: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
@@ -23,10 +23,10 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
23
23
  }) => Promise<{
24
24
  id: string;
25
25
  createdAt: string;
26
- updatedAt: string;
27
- tenantId: string;
28
- projectId: string;
29
26
  agentId: string;
27
+ projectId: string;
28
+ tenantId: string;
29
+ updatedAt: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -45,10 +45,10 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
46
  id: string;
47
47
  createdAt: string;
48
- updatedAt: string;
49
- tenantId: string;
50
- projectId: string;
51
48
  agentId: string;
49
+ projectId: string;
50
+ tenantId: string;
51
+ updatedAt: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -85,10 +85,10 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
85
85
  }) => Promise<{
86
86
  id: string;
87
87
  createdAt: string;
88
- updatedAt: string;
89
- tenantId: string;
90
- projectId: string;
91
88
  agentId: string;
89
+ projectId: string;
90
+ tenantId: string;
91
+ updatedAt: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  }) => Promise<{
68
68
  id: string;
69
69
  createdAt: string;
70
- tenantId: string;
71
- projectId: string;
72
70
  agentId: string;
71
+ projectId: string;
72
+ tenantId: 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
- tenantId: string;
113
- projectId: string;
114
112
  agentId: string;
113
+ projectId: string;
114
+ tenantId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -57,10 +57,10 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
57
57
  name: string;
58
58
  description: string | null;
59
59
  createdAt: string;
60
- updatedAt: string;
61
- tenantId: string;
62
- projectId: string;
63
60
  agentId: string;
61
+ projectId: string;
62
+ tenantId: string;
63
+ updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -99,10 +99,10 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
99
99
  name: string;
100
100
  description: string | null;
101
101
  createdAt: string;
102
- updatedAt: string;
103
- tenantId: string;
104
- projectId: string;
105
102
  agentId: string;
103
+ projectId: string;
104
+ tenantId: string;
105
+ updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -159,14 +159,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
159
159
  }) => Promise<{
160
160
  id: string;
161
161
  createdAt: string;
162
- updatedAt: string;
163
- tenantId: string;
164
- projectId: string;
165
162
  agentId: string;
163
+ projectId: string;
164
+ tenantId: string;
165
+ subAgentId: string;
166
+ updatedAt: string;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- subAgentId: string;
170
170
  functionToolId: string;
171
171
  }>;
172
172
  /**
@@ -224,14 +224,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
224
224
  }) => Promise<{
225
225
  id: string;
226
226
  createdAt: string;
227
- updatedAt: string;
228
- tenantId: string;
229
- projectId: string;
230
227
  agentId: string;
228
+ projectId: string;
229
+ tenantId: string;
230
+ subAgentId: string;
231
+ updatedAt: string;
231
232
  toolPolicies: Record<string, {
232
233
  needsApproval?: boolean;
233
234
  }> | null;
234
- subAgentId: string;
235
235
  functionToolId: string;
236
236
  }>;
237
237
  //#endregion
@@ -19,11 +19,11 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  name: string;
20
20
  description: string;
21
21
  createdAt: string;
22
- updatedAt: string;
23
- tenantId: string;
24
22
  projectId: string;
23
+ tenantId: string;
25
24
  metadata: Record<string, string> | null;
26
25
  content: string;
26
+ updatedAt: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -114,11 +114,11 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
114
114
  name: string;
115
115
  description: string;
116
116
  createdAt: string;
117
- updatedAt: string;
118
- tenantId: string;
119
117
  projectId: string;
118
+ tenantId: string;
120
119
  metadata: Record<string, string> | null;
121
120
  content: string;
121
+ updatedAt: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -141,14 +141,14 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
141
141
  }) => Promise<{
142
142
  id: string;
143
143
  createdAt: string;
144
- updatedAt: string;
145
- tenantId: string;
146
- projectId: string;
147
144
  agentId: string;
145
+ projectId: string;
146
+ tenantId: string;
148
147
  subAgentId: string;
148
+ updatedAt: string;
149
+ skillId: string;
149
150
  index: number;
150
151
  alwaysLoaded: boolean;
151
- skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -11,13 +11,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  createdAt: string;
14
- updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
14
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ subAgentId: string;
18
+ updatedAt: string;
18
19
  headers: Record<string, string> | null;
19
20
  externalAgentId: string;
20
- subAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -46,26 +46,26 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  }) => Promise<{
47
47
  id: string;
48
48
  createdAt: string;
49
- updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
49
  agentId: string;
50
+ projectId: string;
51
+ tenantId: string;
52
+ subAgentId: string;
53
+ updatedAt: string;
53
54
  headers: Record<string, string> | null;
54
55
  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
61
  createdAt: string;
62
- updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
62
  agentId: string;
63
+ projectId: string;
64
+ tenantId: string;
65
+ subAgentId: string;
66
+ updatedAt: string;
66
67
  headers: Record<string, string> | null;
67
68
  externalAgentId: string;
68
- subAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -188,13 +188,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
188
188
  }) => Promise<{
189
189
  id: string;
190
190
  createdAt: string;
191
- updatedAt: string;
192
- tenantId: string;
193
- projectId: string;
194
191
  agentId: string;
192
+ projectId: string;
193
+ tenantId: string;
194
+ subAgentId: string;
195
+ updatedAt: string;
195
196
  headers: Record<string, string> | null;
196
197
  externalAgentId: string;
197
- subAgentId: string;
198
198
  }>;
199
199
  /**
200
200
  * Check if sub-agent external agent relation exists by params
@@ -205,13 +205,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
205
205
  }) => Promise<{
206
206
  id: string;
207
207
  createdAt: string;
208
- updatedAt: string;
209
- tenantId: string;
210
- projectId: string;
211
208
  agentId: string;
209
+ projectId: string;
210
+ tenantId: string;
211
+ subAgentId: string;
212
+ updatedAt: string;
212
213
  headers: Record<string, string> | null;
213
214
  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)
@@ -226,13 +226,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
226
226
  }) => Promise<{
227
227
  id: string;
228
228
  createdAt: string;
229
- updatedAt: string;
230
- tenantId: string;
231
- projectId: string;
232
229
  agentId: string;
230
+ projectId: string;
231
+ tenantId: string;
232
+ subAgentId: string;
233
+ updatedAt: string;
233
234
  headers: Record<string, string> | null;
234
235
  externalAgentId: string;
235
- subAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
238
238
  scopes: SubAgentScopeConfig;
@@ -11,10 +11,10 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  createdAt: string;
14
- updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
14
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ updatedAt: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -46,10 +46,10 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  }) => Promise<{
47
47
  id: string;
48
48
  createdAt: string;
49
- updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
49
  agentId: string;
50
+ projectId: string;
51
+ tenantId: string;
52
+ updatedAt: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -59,10 +59,10 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  }) => Promise<{
60
60
  id: string;
61
61
  createdAt: string;
62
- updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
62
  agentId: string;
63
+ projectId: string;
64
+ tenantId: string;
65
+ updatedAt: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -128,10 +128,10 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
130
  createdAt: string;
131
- updatedAt: string;
132
- tenantId: string;
133
- projectId: string;
134
131
  agentId: string;
132
+ projectId: string;
133
+ tenantId: string;
134
+ updatedAt: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -147,10 +147,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  }) => Promise<{
148
148
  id: string;
149
149
  createdAt: string;
150
- updatedAt: string;
151
- tenantId: string;
152
- projectId: string;
153
150
  agentId: string;
151
+ projectId: string;
152
+ tenantId: string;
153
+ updatedAt: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -161,10 +161,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
163
  createdAt: string;
164
- updatedAt: string;
165
- tenantId: string;
166
- projectId: string;
167
164
  agentId: string;
165
+ projectId: string;
166
+ tenantId: string;
167
+ updatedAt: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -206,17 +206,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  }) => Promise<{
207
207
  id: string;
208
208
  createdAt: string;
209
- updatedAt: string;
210
- tenantId: string;
211
- projectId: string;
212
209
  agentId: string;
210
+ projectId: string;
211
+ tenantId: string;
212
+ subAgentId: string;
213
213
  toolId: string;
214
+ updatedAt: string;
214
215
  headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
215
217
  toolPolicies: Record<string, {
216
218
  needsApproval?: boolean;
217
219
  }> | null;
218
- subAgentId: string;
219
- selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -250,17 +250,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  }) => Promise<{
251
251
  id: string;
252
252
  createdAt: string;
253
- updatedAt: string;
254
- tenantId: string;
255
- projectId: string;
256
253
  agentId: string;
254
+ projectId: string;
255
+ tenantId: string;
256
+ subAgentId: string;
257
257
  toolId: string;
258
+ updatedAt: string;
258
259
  headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
259
261
  toolPolicies: Record<string, {
260
262
  needsApproval?: boolean;
261
263
  }> | null;
262
- subAgentId: string;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;