@inkeep/agents-core 0.80.4 → 0.80.5

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 (30) hide show
  1. package/dist/auth/auth-types.d.ts +7 -0
  2. package/dist/auth/auth.js +1 -1
  3. package/dist/auth/init.js +2 -1
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/data-access/manage/agents.d.ts +25 -25
  6. package/dist/data-access/manage/artifactComponents.d.ts +2 -2
  7. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +4 -4
  9. package/dist/data-access/manage/skills.d.ts +8 -8
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  11. package/dist/data-access/manage/subAgentRelations.d.ts +8 -8
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  13. package/dist/data-access/manage/subAgents.d.ts +15 -15
  14. package/dist/data-access/manage/tools.d.ts +18 -18
  15. package/dist/data-access/manage/triggers.d.ts +3 -3
  16. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  17. package/dist/data-access/runtime/apps.d.ts +8 -8
  18. package/dist/data-access/runtime/conversations.d.ts +32 -32
  19. package/dist/data-access/runtime/events.d.ts +4 -4
  20. package/dist/data-access/runtime/feedback.d.ts +4 -4
  21. package/dist/data-access/runtime/messages.d.ts +24 -24
  22. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
  23. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  24. package/dist/data-access/runtime/tasks.d.ts +5 -5
  25. package/dist/db/manage/manage-schema.d.ts +401 -401
  26. package/dist/db/runtime/runtime-schema.d.ts +420 -420
  27. package/dist/setup/setup.js +4 -0
  28. package/dist/validation/schemas/skills.d.ts +36 -36
  29. package/dist/validation/schemas.d.ts +496 -496
  30. package/package.json +4 -4
@@ -171,6 +171,13 @@ interface BetterAuthConfig {
171
171
  advanced?: BetterAuthAdvancedOptions;
172
172
  emailService?: EmailServiceConfig;
173
173
  recaptcha?: RecaptchaConfig;
174
+ /**
175
+ * Skips the haveIBeenPwned plugin, which calls the external
176
+ * pwnedpasswords.com API on every password creation. Only for offline-safe
177
+ * bootstrap contexts (db:auth:init); server instances that accept real
178
+ * sign-ups must leave this unset.
179
+ */
180
+ disablePasswordCompromiseCheck?: boolean;
174
181
  }
175
182
  interface UserAuthConfig {
176
183
  socialProviders?: {
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 "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
+ actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "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<"organization" | "member" | "invitation" | "project" | "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 "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
+ actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "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<"organization" | "member" | "invitation" | "project" | "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 "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
+ actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "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<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -12,7 +12,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  }) => Promise<{
13
13
  id: string;
14
14
  name: string;
15
+ createdAt: string;
16
+ updatedAt: string;
15
17
  description: string | null;
18
+ prompt: string | null;
19
+ tenantId: string;
20
+ projectId: string;
16
21
  models: {
17
22
  base?: {
18
23
  model?: string | undefined;
@@ -36,13 +41,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
36
41
  stopWhen: {
37
42
  transferCountIs?: number | undefined;
38
43
  } | null;
39
- createdAt: string;
40
- updatedAt: string;
41
- tenantId: string;
42
- projectId: string;
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;
@@ -65,7 +65,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
65
65
  }) => Promise<{
66
66
  id: string;
67
67
  name: string;
68
+ createdAt: string;
69
+ updatedAt: string;
68
70
  description: string | null;
71
+ prompt: string | null;
72
+ tenantId: string;
73
+ projectId: string;
69
74
  models: {
70
75
  base?: {
71
76
  model?: string | undefined;
@@ -89,13 +94,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
89
94
  stopWhen: {
90
95
  transferCountIs?: number | undefined;
91
96
  } | null;
92
- createdAt: string;
93
- updatedAt: string;
94
- tenantId: string;
95
- projectId: string;
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;
@@ -115,7 +115,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
115
115
  defaultSubAgent: {
116
116
  id: string;
117
117
  name: string;
118
+ createdAt: string;
119
+ updatedAt: string;
118
120
  description: string | null;
121
+ prompt: string | null;
122
+ tenantId: string;
123
+ projectId: string;
119
124
  models: {
120
125
  base?: {
121
126
  model?: string | undefined;
@@ -139,11 +144,6 @@ 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
- prompt: string | null;
147
147
  agentId: string;
148
148
  conversationHistoryConfig: ConversationHistoryConfig | null;
149
149
  outputContract: {
@@ -162,7 +162,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
162
162
  }) => Promise<{
163
163
  id: string;
164
164
  name: string;
165
+ createdAt: string;
166
+ updatedAt: string;
165
167
  description: string | null;
168
+ prompt: string | null;
169
+ tenantId: string;
170
+ projectId: string;
166
171
  models: {
167
172
  base?: {
168
173
  model?: string | undefined;
@@ -186,13 +191,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
186
191
  stopWhen: {
187
192
  transferCountIs?: number | undefined;
188
193
  } | null;
189
- createdAt: string;
190
- updatedAt: string;
191
- tenantId: string;
192
- projectId: string;
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;
@@ -292,7 +292,12 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
292
292
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
293
293
  id: string;
294
294
  name: string;
295
+ createdAt: string;
296
+ updatedAt: string;
295
297
  description: string | null;
298
+ prompt: string | null;
299
+ tenantId: string;
300
+ projectId: string;
296
301
  models: {
297
302
  base?: {
298
303
  model?: string | undefined;
@@ -316,13 +321,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
316
321
  stopWhen: {
317
322
  transferCountIs?: number | undefined;
318
323
  } | null;
319
- createdAt: string;
320
- updatedAt: string;
321
- tenantId: string;
322
- projectId: string;
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;
@@ -11,9 +11,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
- description: string | null;
15
14
  createdAt: string;
16
15
  updatedAt: string;
16
+ description: string | null;
17
17
  tenantId: string;
18
18
  projectId: string;
19
19
  props: {
@@ -67,9 +67,9 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
68
  id: string;
69
69
  name: string;
70
- description: string | null;
71
70
  createdAt: string;
72
71
  updatedAt: string;
72
+ description: string | null;
73
73
  tenantId: string;
74
74
  projectId: string;
75
75
  props: {
@@ -14,9 +14,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
14
14
  updatedAt: string;
15
15
  tenantId: string;
16
16
  projectId: string;
17
- agentId: string;
18
17
  headersSchema: unknown;
19
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
+ agentId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
@@ -26,9 +26,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
26
26
  updatedAt: string;
27
27
  tenantId: string;
28
28
  projectId: string;
29
- agentId: string;
30
29
  headersSchema: unknown;
31
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
+ agentId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -48,9 +48,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
48
48
  updatedAt: string;
49
49
  tenantId: string;
50
50
  projectId: string;
51
- agentId: string;
52
51
  headersSchema: unknown;
53
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
+ agentId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -88,9 +88,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
88
88
  updatedAt: string;
89
89
  tenantId: string;
90
90
  projectId: string;
91
- agentId: string;
92
91
  headersSchema: unknown;
93
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
+ agentId: string;
94
94
  }>;
95
95
  //#endregion
96
96
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -55,9 +55,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
- description: string | null;
59
58
  createdAt: string;
60
59
  updatedAt: string;
60
+ description: string | null;
61
61
  tenantId: string;
62
62
  projectId: string;
63
63
  agentId: string;
@@ -97,9 +97,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
- description: string | null;
101
100
  createdAt: string;
102
101
  updatedAt: string;
102
+ description: string | null;
103
103
  tenantId: string;
104
104
  projectId: string;
105
105
  agentId: string;
@@ -163,10 +163,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
163
163
  tenantId: string;
164
164
  projectId: string;
165
165
  agentId: string;
166
+ subAgentId: string;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- subAgentId: string;
170
170
  functionToolId: string;
171
171
  }>;
172
172
  /**
@@ -228,10 +228,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
228
228
  tenantId: string;
229
229
  projectId: string;
230
230
  agentId: string;
231
+ subAgentId: 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
@@ -17,13 +17,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
17
17
  }) => Promise<{
18
18
  id: string;
19
19
  name: string;
20
- description: string;
21
20
  createdAt: string;
22
21
  updatedAt: string;
23
- tenantId: string;
24
- projectId: string;
25
22
  metadata: Record<string, string> | null;
23
+ description: string;
24
+ tenantId: string;
26
25
  content: string;
26
+ projectId: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -112,13 +112,13 @@ declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
113
  id: string;
114
114
  name: string;
115
- description: string;
116
115
  createdAt: string;
117
116
  updatedAt: string;
118
- tenantId: string;
119
- projectId: string;
120
117
  metadata: Record<string, string> | null;
118
+ description: string;
119
+ tenantId: string;
121
120
  content: string;
121
+ projectId: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -145,10 +145,10 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
145
145
  tenantId: string;
146
146
  projectId: string;
147
147
  agentId: string;
148
- subAgentId: string;
148
+ skillId: string;
149
149
  index: number;
150
150
  alwaysLoaded: boolean;
151
- skillId: string;
151
+ subAgentId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -12,12 +12,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
+ headers: Record<string, string> | null;
15
16
  tenantId: string;
16
17
  projectId: string;
17
18
  agentId: string;
18
- headers: Record<string, string> | null;
19
- externalAgentId: string;
20
19
  subAgentId: string;
20
+ externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -47,12 +47,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
+ headers: Record<string, string> | null;
50
51
  tenantId: string;
51
52
  projectId: string;
52
53
  agentId: string;
53
- headers: Record<string, string> | null;
54
- externalAgentId: string;
55
54
  subAgentId: string;
55
+ externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -60,12 +60,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
+ headers: Record<string, string> | null;
63
64
  tenantId: string;
64
65
  projectId: string;
65
66
  agentId: string;
66
- headers: Record<string, string> | null;
67
- externalAgentId: string;
68
67
  subAgentId: string;
68
+ externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -189,12 +189,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
189
189
  id: string;
190
190
  createdAt: string;
191
191
  updatedAt: string;
192
+ headers: Record<string, string> | null;
192
193
  tenantId: string;
193
194
  projectId: string;
194
195
  agentId: string;
195
- headers: Record<string, string> | null;
196
- externalAgentId: string;
197
196
  subAgentId: string;
197
+ externalAgentId: string;
198
198
  }>;
199
199
  /**
200
200
  * Check if sub-agent external agent relation exists by params
@@ -206,12 +206,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
+ headers: Record<string, string> | null;
209
210
  tenantId: string;
210
211
  projectId: string;
211
212
  agentId: string;
212
- headers: Record<string, string> | null;
213
- externalAgentId: string;
214
213
  subAgentId: string;
214
+ externalAgentId: string;
215
215
  } | undefined>;
216
216
  /**
217
217
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -227,12 +227,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
227
227
  id: string;
228
228
  createdAt: string;
229
229
  updatedAt: string;
230
+ headers: Record<string, string> | null;
230
231
  tenantId: string;
231
232
  projectId: string;
232
233
  agentId: string;
233
- headers: Record<string, string> | null;
234
- externalAgentId: string;
235
234
  subAgentId: string;
235
+ externalAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
238
238
  scopes: SubAgentScopeConfig;
@@ -207,16 +207,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
+ headers: Record<string, string> | null;
210
211
  tenantId: string;
211
212
  projectId: string;
212
- agentId: string;
213
213
  toolId: string;
214
- headers: Record<string, string> | null;
214
+ agentId: string;
215
+ subAgentId: string;
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;
@@ -251,16 +251,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
+ headers: Record<string, string> | null;
254
255
  tenantId: string;
255
256
  projectId: string;
256
- agentId: string;
257
257
  toolId: string;
258
- headers: Record<string, string> | null;
258
+ agentId: string;
259
+ subAgentId: string;
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;
@@ -12,10 +12,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
+ headers: Record<string, string> | null;
15
16
  tenantId: string;
16
17
  projectId: string;
17
18
  agentId: string;
18
- headers: Record<string, string> | null;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -47,10 +47,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
+ headers: Record<string, string> | null;
50
51
  tenantId: string;
51
52
  projectId: string;
52
53
  agentId: string;
53
- headers: Record<string, string> | null;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -60,10 +60,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
+ headers: Record<string, string> | null;
63
64
  tenantId: string;
64
65
  projectId: string;
65
66
  agentId: string;
66
- headers: Record<string, string> | null;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -225,10 +225,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
+ headers: Record<string, string> | null;
228
229
  tenantId: string;
229
230
  projectId: string;
230
231
  agentId: string;
231
- headers: Record<string, string> | null;
232
232
  subAgentId: string;
233
233
  targetAgentId: string;
234
234
  }>;
@@ -242,10 +242,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
242
242
  id: string;
243
243
  createdAt: string;
244
244
  updatedAt: string;
245
+ headers: Record<string, string> | null;
245
246
  tenantId: string;
246
247
  projectId: string;
247
248
  agentId: string;
248
- headers: Record<string, string> | null;
249
249
  subAgentId: string;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
@@ -263,10 +263,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
263
263
  id: string;
264
264
  createdAt: string;
265
265
  updatedAt: string;
266
+ headers: Record<string, string> | null;
266
267
  tenantId: string;
267
268
  projectId: string;
268
269
  agentId: string;
269
- headers: Record<string, string> | null;
270
270
  subAgentId: string;
271
271
  targetAgentId: string;
272
272
  }>;
@@ -11,7 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
14
16
  description: string | null;
17
+ prompt: string | null;
18
+ tenantId: string;
19
+ projectId: string;
15
20
  models: {
16
21
  base?: {
17
22
  model?: string | undefined;
@@ -35,11 +40,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
35
40
  stopWhen: {
36
41
  stepCountIs?: number | undefined;
37
42
  } | null;
38
- createdAt: string;
39
- updatedAt: string;
40
- tenantId: string;
41
- projectId: string;
42
- prompt: string | null;
43
43
  agentId: string;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  outputContract: {
@@ -57,7 +57,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
57
57
  }) => Promise<{
58
58
  id: string;
59
59
  name: string;
60
+ createdAt: string;
61
+ updatedAt: string;
60
62
  description: string | null;
63
+ prompt: string | null;
64
+ tenantId: string;
65
+ projectId: string;
61
66
  models: {
62
67
  base?: {
63
68
  model?: string | undefined;
@@ -81,11 +86,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
81
86
  stopWhen: {
82
87
  stepCountIs?: number | undefined;
83
88
  } | null;
84
- createdAt: string;
85
- updatedAt: string;
86
- tenantId: string;
87
- projectId: string;
88
- prompt: string | null;
89
89
  agentId: string;
90
90
  conversationHistoryConfig: ConversationHistoryConfig | null;
91
91
  outputContract: {
@@ -156,7 +156,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
156
156
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
157
157
  id: string;
158
158
  name: string;
159
+ createdAt: string;
160
+ updatedAt: string;
159
161
  description: string | null;
162
+ prompt: string | null;
163
+ tenantId: string;
164
+ projectId: string;
160
165
  models: {
161
166
  base?: {
162
167
  model?: string | undefined;
@@ -180,11 +185,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
180
185
  stopWhen: {
181
186
  stepCountIs?: number | undefined;
182
187
  } | null;
183
- createdAt: string;
184
- updatedAt: string;
185
- tenantId: string;
186
- projectId: string;
187
- prompt: string | null;
188
188
  agentId: string;
189
189
  conversationHistoryConfig: ConversationHistoryConfig | null;
190
190
  outputContract: {