@inkeep/agents-core 0.0.0-dev-20260324170433 → 0.0.0-dev-20260324172420

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/auth.js CHANGED
@@ -99,7 +99,7 @@ function createAuth(config) {
99
99
  plugins: [
100
100
  bearer(),
101
101
  dash(),
102
- lastLoginMethod({ customResolveMethod: (ctx) => {
102
+ lastLoginMethod({ customResolveMethod(ctx) {
103
103
  const path = ctx.path;
104
104
  if (path === "/sign-in/email" || path === "/sign-up/email") return "email";
105
105
  if (path.startsWith("/callback/") || path.startsWith("/oauth2/callback/")) return ctx.params?.id || ctx.params?.providerId || path.split("/").pop() || null;
@@ -109,7 +109,7 @@ function createAuth(config) {
109
109
  } }),
110
110
  sso({
111
111
  organizationProvisioning: { disabled: true },
112
- provisionUser: async ({ user, provider }) => {
112
+ async provisionUser({ user, provider }) {
113
113
  if (!provider.organizationId) return;
114
114
  if (!await shouldAutoProvision(config.dbClient, user, provider)) return;
115
115
  await instance.api.addMember({ body: {
@@ -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 "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
9
- actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
9
+ actions: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
12
- statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
12
+ statements: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
16
- actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
16
+ actions: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
19
- statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
19
+ statements: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
23
- actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
23
+ actions: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
26
- statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
26
+ statements: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -17,10 +17,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
17
17
  description: z.ZodOptional<z.ZodString>;
18
18
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
19
19
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
20
- id: z.ZodString;
21
20
  name: z.ZodString;
21
+ id: z.ZodString;
22
+ createdAt: z.ZodOptional<z.ZodString>;
23
+ updatedAt: z.ZodOptional<z.ZodString>;
22
24
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
24
25
  models: z.ZodOptional<z.ZodObject<{
25
26
  base: z.ZodOptional<z.ZodObject<{
26
27
  model: z.ZodOptional<z.ZodString>;
@@ -35,8 +36,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
35
36
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
36
37
  }, z.core.$strip>>;
37
38
  }, z.core.$strip>>;
38
- createdAt: z.ZodOptional<z.ZodString>;
39
- updatedAt: z.ZodOptional<z.ZodString>;
39
+ conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
40
40
  type: z.ZodLiteral<"internal">;
41
41
  canUse: z.ZodArray<z.ZodObject<{
42
42
  agentToolRelationId: z.ZodOptional<z.ZodString>;
@@ -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
- id: string;
14
13
  name: string;
14
+ id: string;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
- description: string | null;
18
17
  projectId: string;
19
18
  tenantId: string;
19
+ description: string | null;
20
20
  defaultSubAgentId: string | null;
21
21
  contextConfigId: string | null;
22
22
  models: {
@@ -56,13 +56,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
56
56
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- id: string;
60
59
  name: string;
60
+ id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- description: string | null;
64
63
  projectId: string;
65
64
  tenantId: string;
65
+ description: string | null;
66
66
  defaultSubAgentId: string | null;
67
67
  contextConfigId: string | null;
68
68
  models: {
@@ -99,14 +99,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
99
99
  transferCountIs?: number | undefined;
100
100
  } | null;
101
101
  defaultSubAgent: {
102
- id: string;
103
102
  name: string;
103
+ id: string;
104
104
  createdAt: string;
105
105
  updatedAt: string;
106
- description: string | null;
107
106
  agentId: string;
108
107
  projectId: string;
109
108
  tenantId: string;
109
+ description: string | null;
110
110
  models: {
111
111
  base?: {
112
112
  model?: string | undefined;
@@ -131,13 +131,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
131
131
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
132
132
  scopes: ProjectScopeConfig;
133
133
  }) => Promise<{
134
- id: string;
135
134
  name: string;
135
+ id: string;
136
136
  createdAt: string;
137
137
  updatedAt: string;
138
- description: string | null;
139
138
  projectId: string;
140
139
  tenantId: string;
140
+ description: string | null;
141
141
  defaultSubAgentId: string | null;
142
142
  contextConfigId: string | null;
143
143
  models: {
@@ -247,13 +247,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
247
247
  projectIds: string[];
248
248
  }): Promise<AvailableAgentInfo[]>;
249
249
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
250
- id: string;
251
250
  name: string;
251
+ id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- description: string | null;
255
254
  projectId: string;
256
255
  tenantId: string;
256
+ description: string | null;
257
257
  defaultSubAgentId: string | null;
258
258
  contextConfigId: string | null;
259
259
  models: {
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  scopes: ProjectScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
- id: string;
13
12
  name: string;
13
+ id: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
- description: string | null;
17
16
  projectId: string;
18
17
  tenantId: string;
18
+ description: string | null;
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
- id: string;
69
68
  name: string;
69
+ id: string;
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
- description: string | null;
73
72
  projectId: string;
74
73
  tenantId: string;
74
+ description: string | null;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -10,10 +10,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
13
  headersSchema: unknown;
16
14
  contextVariables: Record<string, ContextFetchDefinition> | null;
15
+ createdAt: string;
16
+ updatedAt: string;
17
17
  agentId: string;
18
18
  projectId: string;
19
19
  tenantId: string;
@@ -22,10 +22,10 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
24
  id: string;
25
- createdAt: string;
26
- updatedAt: string;
27
25
  headersSchema: unknown;
28
26
  contextVariables: Record<string, ContextFetchDefinition> | null;
27
+ createdAt: string;
28
+ updatedAt: string;
29
29
  agentId: string;
30
30
  projectId: string;
31
31
  tenantId: string;
@@ -44,10 +44,10 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
46
  id: string;
47
- createdAt: string;
48
- updatedAt: string;
49
47
  headersSchema: unknown;
50
48
  contextVariables: Record<string, ContextFetchDefinition> | null;
49
+ createdAt: string;
50
+ updatedAt: string;
51
51
  agentId: string;
52
52
  projectId: string;
53
53
  tenantId: string;
@@ -84,10 +84,10 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
86
  id: string;
87
- createdAt: string;
88
- updatedAt: string;
89
87
  headersSchema: unknown;
90
88
  contextVariables: Record<string, ContextFetchDefinition> | null;
89
+ createdAt: string;
90
+ updatedAt: string;
91
91
  agentId: string;
92
92
  projectId: string;
93
93
  tenantId: string;
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- id: string;
57
56
  name: string;
57
+ id: string;
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
- description: string | null;
61
60
  agentId: string;
62
61
  projectId: string;
63
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
- id: string;
99
98
  name: string;
99
+ id: string;
100
100
  createdAt: string;
101
101
  updatedAt: string;
102
- description: string | null;
103
102
  agentId: string;
104
103
  projectId: string;
105
104
  tenantId: string;
105
+ description: string | null;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  skillId: string;
10
10
  }) => Promise<{
11
- id: string;
12
11
  name: string;
12
+ id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- metadata: Record<string, string> | null;
16
- description: string;
17
15
  projectId: string;
18
16
  tenantId: string;
17
+ description: string;
18
+ metadata: Record<string, string> | null;
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
- id: string;
45
44
  name: string;
45
+ id: string;
46
46
  createdAt: string;
47
47
  updatedAt: string;
48
- metadata: Record<string, string> | null;
49
- description: string;
50
48
  projectId: string;
51
49
  tenantId: string;
50
+ description: string;
51
+ metadata: Record<string, string> | null;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
- id: string;
56
55
  name: string;
56
+ id: string;
57
57
  createdAt: string;
58
58
  updatedAt: string;
59
- metadata: Record<string, string> | null;
60
- description: string;
61
59
  projectId: string;
62
60
  tenantId: string;
61
+ description: string;
62
+ metadata: Record<string, string> | null;
63
63
  content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -98,9 +98,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
98
98
  projectId: string;
99
99
  tenantId: string;
100
100
  subAgentId: string;
101
+ skillId: string;
101
102
  index: number;
102
103
  alwaysLoaded: boolean;
103
- skillId: string;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
106
106
  scopes: AgentScopeConfig;
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
15
  agentId: string;
17
16
  projectId: string;
18
17
  tenantId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
50
  agentId: string;
52
51
  projectId: string;
53
52
  tenantId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
63
  agentId: string;
65
64
  projectId: string;
66
65
  tenantId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -183,11 +183,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- headers: Record<string, string> | null;
187
186
  agentId: string;
188
187
  projectId: string;
189
188
  tenantId: string;
190
189
  subAgentId: string;
190
+ headers: Record<string, string> | null;
191
191
  externalAgentId: string;
192
192
  }>;
193
193
  /**
@@ -200,11 +200,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- headers: Record<string, string> | null;
204
203
  agentId: string;
205
204
  projectId: string;
206
205
  tenantId: string;
207
206
  subAgentId: string;
207
+ headers: Record<string, string> | null;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
210
210
  /**
@@ -221,11 +221,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- headers: Record<string, string> | null;
225
224
  agentId: string;
226
225
  projectId: string;
227
226
  tenantId: string;
228
227
  subAgentId: string;
228
+ headers: Record<string, string> | null;
229
229
  externalAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -15,9 +15,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
15
15
  agentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
18
- relationType: string | null;
19
18
  sourceSubAgentId: string;
20
19
  targetSubAgentId: string | null;
20
+ relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -50,9 +50,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
50
50
  agentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
53
- relationType: string | null;
54
53
  sourceSubAgentId: string;
55
54
  targetSubAgentId: string | null;
55
+ relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -63,9 +63,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
63
63
  agentId: string;
64
64
  projectId: string;
65
65
  tenantId: string;
66
- relationType: string | null;
67
66
  sourceSubAgentId: string;
68
67
  targetSubAgentId: string | null;
68
+ relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -132,9 +132,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
132
132
  agentId: string;
133
133
  projectId: string;
134
134
  tenantId: string;
135
- relationType: string | null;
136
135
  sourceSubAgentId: string;
137
136
  targetSubAgentId: string | null;
137
+ relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -151,9 +151,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
151
151
  agentId: string;
152
152
  projectId: string;
153
153
  tenantId: string;
154
- relationType: string | null;
155
154
  sourceSubAgentId: string;
156
155
  targetSubAgentId: string | null;
156
+ relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -165,9 +165,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
165
165
  agentId: string;
166
166
  projectId: string;
167
167
  tenantId: string;
168
- relationType: string | null;
169
168
  sourceSubAgentId: string;
170
169
  targetSubAgentId: string | null;
170
+ relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -207,11 +207,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- headers: Record<string, string> | null;
211
210
  agentId: string;
212
211
  projectId: string;
213
212
  tenantId: string;
214
213
  subAgentId: string;
214
+ headers: Record<string, string> | null;
215
215
  toolId: string;
216
216
  toolPolicies: Record<string, {
217
217
  needsApproval?: boolean;
@@ -251,11 +251,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- headers: Record<string, string> | null;
255
254
  agentId: string;
256
255
  projectId: string;
257
256
  tenantId: string;
258
257
  subAgentId: string;
258
+ headers: Record<string, string> | null;
259
259
  toolId: string;
260
260
  toolPolicies: Record<string, {
261
261
  needsApproval?: boolean;
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
15
  agentId: string;
17
16
  projectId: string;
18
17
  tenantId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
50
  agentId: string;
52
51
  projectId: string;
53
52
  tenantId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
63
  agentId: string;
65
64
  projectId: string;
66
65
  tenantId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -213,11 +213,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
213
213
  id: string;
214
214
  createdAt: string;
215
215
  updatedAt: string;
216
- headers: Record<string, string> | null;
217
216
  agentId: string;
218
217
  projectId: string;
219
218
  tenantId: string;
220
219
  subAgentId: string;
220
+ headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -230,11 +230,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
230
230
  id: string;
231
231
  createdAt: string;
232
232
  updatedAt: string;
233
- headers: Record<string, string> | null;
234
233
  agentId: string;
235
234
  projectId: string;
236
235
  tenantId: string;
237
236
  subAgentId: string;
237
+ headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -251,11 +251,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- headers: Record<string, string> | null;
255
254
  agentId: string;
256
255
  projectId: string;
257
256
  tenantId: string;
258
257
  subAgentId: string;
258
+ headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,14 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- id: string;
13
12
  name: string;
13
+ id: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
- description: string | null;
17
16
  agentId: string;
18
17
  projectId: string;
19
18
  tenantId: string;
19
+ description: string | null;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -40,14 +40,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- id: string;
44
43
  name: string;
44
+ id: string;
45
45
  createdAt: string;
46
46
  updatedAt: string;
47
- description: string | null;
48
47
  agentId: string;
49
48
  projectId: string;
50
49
  tenantId: string;
50
+ description: string | null;
51
51
  models: {
52
52
  base?: {
53
53
  model?: string | undefined;
@@ -109,14 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- id: string;
113
112
  name: string;
113
+ id: string;
114
114
  createdAt: string;
115
115
  updatedAt: string;
116
- description: string | null;
117
116
  agentId: string;
118
117
  projectId: string;
119
118
  tenantId: string;
119
+ description: string | null;
120
120
  models: {
121
121
  base?: {
122
122
  model?: string | undefined;