@inkeep/agents-core 0.70.0 → 0.70.1

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-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +9 -9
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/data-access/manage/agents.d.ts +16 -16
  6. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  7. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  8. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  9. package/dist/data-access/manage/functionTools.d.ts +10 -10
  10. package/dist/data-access/manage/skills.d.ts +10 -10
  11. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  12. package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
  13. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  14. package/dist/data-access/manage/subAgents.d.ts +12 -12
  15. package/dist/data-access/manage/tools.d.ts +21 -21
  16. package/dist/data-access/manage/triggers.d.ts +1 -1
  17. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  18. package/dist/data-access/runtime/apps.d.ts +10 -10
  19. package/dist/data-access/runtime/conversations.d.ts +16 -16
  20. package/dist/data-access/runtime/feedback.d.ts +6 -6
  21. package/dist/data-access/runtime/messages.d.ts +24 -24
  22. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  23. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  24. package/dist/data-access/runtime/tasks.d.ts +4 -4
  25. package/dist/db/manage/manage-schema.d.ts +453 -453
  26. package/dist/db/runtime/runtime-schema.d.ts +413 -413
  27. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  28. package/dist/validation/schemas/skills.d.ts +44 -44
  29. package/dist/validation/schemas.d.ts +1959 -1959
  30. package/package.json +1 -1
@@ -4,7 +4,7 @@ import * as jose0 from "jose";
4
4
  import * as zod0 from "zod";
5
5
  import * as better_auth0 from "better-auth";
6
6
  import * as _better_auth_oauth_provider0 from "@better-auth/oauth-provider";
7
- import * as better_auth_plugins20 from "better-auth/plugins";
7
+ import * as better_auth_plugins0 from "better-auth/plugins";
8
8
 
9
9
  //#region src/auth/auth.d.ts
10
10
 
@@ -40,10 +40,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
40
40
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
41
41
  }[];
42
42
  };
43
- options: better_auth_plugins20.BearerOptions | undefined;
43
+ options: better_auth_plugins0.BearerOptions | undefined;
44
44
  }, {
45
45
  id: "oauth-proxy";
46
- options: NoInfer<better_auth_plugins20.OAuthProxyOptions>;
46
+ options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
47
47
  endpoints: {
48
48
  oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
49
49
  method: "GET";
@@ -97,7 +97,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
97
97
  };
98
98
  }, {
99
99
  id: "jwt";
100
- options: NoInfer<better_auth_plugins20.JwtOptions>;
100
+ options: NoInfer<better_auth_plugins0.JwtOptions>;
101
101
  endpoints: {
102
102
  getJwks: better_auth0.StrictEndpoint<string, {
103
103
  method: "GET";
@@ -234,7 +234,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
234
234
  $Infer: {
235
235
  body: {
236
236
  payload: jose0.JWTPayload;
237
- overrideOptions?: better_auth_plugins20.JwtOptions | undefined;
237
+ overrideOptions?: better_auth_plugins0.JwtOptions | undefined;
238
238
  };
239
239
  };
240
240
  };
@@ -331,7 +331,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
331
331
  SERVER_ONLY: true;
332
332
  };
333
333
  }, Omit<_better_auth_oauth_provider0.OIDCMetadata, "id_token_signing_alg_values_supported"> & {
334
- id_token_signing_alg_values_supported: better_auth_plugins20.JWSAlgorithms[] | ["HS256"];
334
+ id_token_signing_alg_values_supported: better_auth_plugins0.JWSAlgorithms[] | ["HS256"];
335
335
  }>;
336
336
  oauth2Authorize: better_auth0.StrictEndpoint<"/oauth2/authorize", {
337
337
  method: "GET";
@@ -2324,7 +2324,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
2324
2324
  window: number;
2325
2325
  max: number;
2326
2326
  })[];
2327
- }, better_auth_plugins20.DefaultOrganizationPlugin<{
2327
+ }, better_auth_plugins0.DefaultOrganizationPlugin<{
2328
2328
  schema: {
2329
2329
  invitation: {
2330
2330
  additionalFields: {
@@ -2687,8 +2687,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
2687
2687
  AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
2688
2688
  };
2689
2689
  options: Partial<{
2690
- expiresIn: better_auth_plugins20.TimeString;
2691
- interval: better_auth_plugins20.TimeString;
2690
+ expiresIn: better_auth_plugins0.TimeString;
2691
+ interval: better_auth_plugins0.TimeString;
2692
2692
  deviceCodeLength: number;
2693
2693
  userCodeLength: number;
2694
2694
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins0 from "better-auth/plugins";
1
+ import * as better_auth_plugins7 from "better-auth/plugins";
2
2
  import { AccessControl } from "better-auth/plugins/access";
3
3
  import { organizationClient } from "better-auth/client/plugins";
4
4
 
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" | "project" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
- actions: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
+ actions: better_auth_plugins7.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
- statements: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
12
+ statements: better_auth_plugins7.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "project" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
- actions: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
+ actions: better_auth_plugins7.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
- statements: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
19
+ statements: better_auth_plugins7.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "project" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
- actions: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
+ actions: better_auth_plugins7.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
- statements: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
26
+ statements: better_auth_plugins7.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -11,12 +11,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  scopes: AgentScopeConfig;
12
12
  }) => Promise<{
13
13
  id: string;
14
- tenantId: string;
15
- createdAt: string;
16
14
  name: string;
17
15
  description: string | null;
18
- projectId: string;
16
+ createdAt: string;
19
17
  updatedAt: string;
18
+ projectId: string;
19
+ tenantId: string;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -64,12 +64,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
64
64
  scopes: AgentScopeConfig;
65
65
  }) => Promise<{
66
66
  id: string;
67
- tenantId: string;
68
- createdAt: string;
69
67
  name: string;
70
68
  description: string | null;
71
- projectId: string;
69
+ createdAt: string;
72
70
  updatedAt: string;
71
+ projectId: string;
72
+ tenantId: string;
73
73
  models: {
74
74
  base?: {
75
75
  model?: string | undefined;
@@ -114,13 +114,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
114
114
  executionMode: "classic" | "durable";
115
115
  defaultSubAgent: {
116
116
  id: string;
117
- tenantId: string;
118
- createdAt: string;
119
117
  name: string;
120
118
  description: string | null;
121
- projectId: string;
122
- agentId: string;
119
+ createdAt: string;
123
120
  updatedAt: string;
121
+ projectId: string;
122
+ tenantId: string;
124
123
  models: {
125
124
  base?: {
126
125
  model?: string | undefined;
@@ -144,6 +143,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
144
143
  stopWhen: {
145
144
  stepCountIs?: number | undefined;
146
145
  } | null;
146
+ agentId: string;
147
147
  prompt: string | null;
148
148
  conversationHistoryConfig: ConversationHistoryConfig | null;
149
149
  } | null;
@@ -152,12 +152,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
152
152
  scopes: ProjectScopeConfig;
153
153
  }) => Promise<{
154
154
  id: string;
155
- tenantId: string;
156
- createdAt: string;
157
155
  name: string;
158
156
  description: string | null;
159
- projectId: string;
157
+ createdAt: string;
160
158
  updatedAt: string;
159
+ projectId: string;
160
+ tenantId: string;
161
161
  models: {
162
162
  base?: {
163
163
  model?: string | undefined;
@@ -282,12 +282,12 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
282
282
  }): Promise<AvailableAgentInfo[]>;
283
283
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
284
284
  id: string;
285
- tenantId: string;
286
- createdAt: string;
287
285
  name: string;
288
286
  description: string | null;
289
- projectId: string;
287
+ createdAt: string;
290
288
  updatedAt: string;
289
+ projectId: string;
290
+ tenantId: string;
291
291
  models: {
292
292
  base?: {
293
293
  model?: string | undefined;
@@ -10,12 +10,12 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- createdAt: string;
15
13
  name: string;
16
14
  description: string | null;
17
- projectId: string;
15
+ createdAt: string;
18
16
  updatedAt: string;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -66,12 +66,12 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
66
66
  }>;
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
68
  id: string;
69
- tenantId: string;
70
- createdAt: string;
71
69
  name: string;
72
70
  description: string | null;
73
- projectId: string;
71
+ createdAt: string;
74
72
  updatedAt: string;
73
+ projectId: string;
74
+ tenantId: string;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -142,9 +142,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
144
  id: string;
145
- tenantId: string;
146
145
  createdAt: string;
147
146
  projectId: string;
147
+ tenantId: string;
148
148
  agentId: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
@@ -185,9 +185,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
187
  id: string;
188
- tenantId: string;
189
188
  createdAt: string;
190
189
  projectId: string;
190
+ tenantId: string;
191
191
  agentId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
@@ -10,11 +10,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
13
  createdAt: string;
14
+ updatedAt: string;
15
15
  projectId: string;
16
+ tenantId: string;
16
17
  agentId: string;
17
- updatedAt: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
@@ -22,11 +22,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
24
  id: string;
25
- tenantId: string;
26
25
  createdAt: string;
26
+ updatedAt: string;
27
27
  projectId: string;
28
+ tenantId: string;
28
29
  agentId: string;
29
- updatedAt: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -44,11 +44,11 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
46
  id: string;
47
- tenantId: string;
48
47
  createdAt: string;
48
+ updatedAt: string;
49
49
  projectId: string;
50
+ tenantId: string;
50
51
  agentId: string;
51
- updatedAt: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -84,11 +84,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
86
  id: string;
87
- tenantId: string;
88
87
  createdAt: string;
88
+ updatedAt: string;
89
89
  projectId: string;
90
+ tenantId: string;
90
91
  agentId: string;
91
- updatedAt: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -66,9 +66,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
68
  id: string;
69
- tenantId: string;
70
69
  createdAt: string;
71
70
  projectId: string;
71
+ tenantId: string;
72
72
  agentId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
@@ -108,9 +108,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
110
  id: string;
111
- tenantId: string;
112
111
  createdAt: string;
113
112
  projectId: string;
113
+ tenantId: string;
114
114
  agentId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
56
  id: string;
57
- tenantId: string;
58
- createdAt: string;
59
57
  name: string;
60
58
  description: string | null;
59
+ createdAt: string;
60
+ updatedAt: string;
61
61
  projectId: string;
62
+ tenantId: string;
62
63
  agentId: string;
63
- updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -96,13 +96,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
98
  id: string;
99
- tenantId: string;
100
- createdAt: string;
101
99
  name: string;
102
100
  description: string | null;
101
+ createdAt: string;
102
+ updatedAt: string;
103
103
  projectId: string;
104
+ tenantId: string;
104
105
  agentId: string;
105
- updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -158,12 +158,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
158
158
  }> | null;
159
159
  }) => Promise<{
160
160
  id: string;
161
- tenantId: string;
162
161
  createdAt: string;
162
+ updatedAt: string;
163
163
  projectId: string;
164
+ tenantId: string;
164
165
  agentId: string;
165
166
  subAgentId: string;
166
- updatedAt: string;
167
167
  toolPolicies: Record<string, {
168
168
  needsApproval?: boolean;
169
169
  }> | null;
@@ -223,12 +223,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
223
223
  }> | null;
224
224
  }) => Promise<{
225
225
  id: string;
226
- tenantId: string;
227
226
  createdAt: string;
227
+ updatedAt: string;
228
228
  projectId: string;
229
+ tenantId: string;
229
230
  agentId: string;
230
231
  subAgentId: string;
231
- updatedAt: string;
232
232
  toolPolicies: Record<string, {
233
233
  needsApproval?: boolean;
234
234
  }> | null;
@@ -16,14 +16,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
16
16
  skillId: string;
17
17
  }) => Promise<{
18
18
  id: string;
19
- tenantId: string;
20
- createdAt: string;
21
19
  name: string;
22
- metadata: Record<string, string> | null;
23
20
  description: string;
24
21
  content: string;
25
- projectId: string;
22
+ metadata: Record<string, string> | null;
23
+ createdAt: string;
26
24
  updatedAt: string;
25
+ projectId: string;
26
+ tenantId: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -111,14 +111,14 @@ interface WithTenantIdProjectId {
111
111
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
113
  id: string;
114
- tenantId: string;
115
- createdAt: string;
116
114
  name: string;
117
- metadata: Record<string, string> | null;
118
115
  description: string;
119
116
  content: string;
120
- projectId: string;
117
+ metadata: Record<string, string> | null;
118
+ createdAt: string;
121
119
  updatedAt: string;
120
+ projectId: string;
121
+ tenantId: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -140,13 +140,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
140
140
  alwaysLoaded?: boolean;
141
141
  }) => Promise<{
142
142
  id: string;
143
- tenantId: string;
144
143
  createdAt: string;
144
+ updatedAt: string;
145
145
  projectId: string;
146
+ tenantId: string;
146
147
  agentId: string;
147
148
  subAgentId: string;
148
149
  skillId: string;
149
- updatedAt: string;
150
150
  index: number;
151
151
  alwaysLoaded: boolean;
152
152
  }>;
@@ -10,12 +10,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
13
  createdAt: string;
14
+ updatedAt: string;
15
15
  projectId: string;
16
+ tenantId: string;
16
17
  agentId: string;
17
18
  subAgentId: string;
18
- updatedAt: string;
19
19
  headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
@@ -45,12 +45,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- tenantId: string;
49
48
  createdAt: string;
49
+ updatedAt: string;
50
50
  projectId: string;
51
+ tenantId: string;
51
52
  agentId: string;
52
53
  subAgentId: string;
53
- updatedAt: string;
54
54
  headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
@@ -58,12 +58,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- tenantId: string;
62
61
  createdAt: string;
62
+ updatedAt: string;
63
63
  projectId: string;
64
+ tenantId: string;
64
65
  agentId: string;
65
66
  subAgentId: string;
66
- updatedAt: string;
67
67
  headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
@@ -187,12 +187,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
187
187
  };
188
188
  }) => Promise<{
189
189
  id: string;
190
- tenantId: string;
191
190
  createdAt: string;
191
+ updatedAt: string;
192
192
  projectId: string;
193
+ tenantId: string;
193
194
  agentId: string;
194
195
  subAgentId: string;
195
- updatedAt: string;
196
196
  headers: Record<string, string> | null;
197
197
  externalAgentId: string;
198
198
  }>;
@@ -204,12 +204,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
204
204
  externalAgentId: string;
205
205
  }) => Promise<{
206
206
  id: string;
207
- tenantId: string;
208
207
  createdAt: string;
208
+ updatedAt: string;
209
209
  projectId: string;
210
+ tenantId: string;
210
211
  agentId: string;
211
212
  subAgentId: string;
212
- updatedAt: string;
213
213
  headers: Record<string, string> | null;
214
214
  externalAgentId: string;
215
215
  } | undefined>;
@@ -225,12 +225,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
225
225
  };
226
226
  }) => Promise<{
227
227
  id: string;
228
- tenantId: string;
229
228
  createdAt: string;
229
+ updatedAt: string;
230
230
  projectId: string;
231
+ tenantId: string;
231
232
  agentId: string;
232
233
  subAgentId: string;
233
- updatedAt: string;
234
234
  headers: Record<string, string> | null;
235
235
  externalAgentId: string;
236
236
  }>;
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
13
  createdAt: string;
14
+ updatedAt: string;
15
15
  projectId: string;
16
+ tenantId: string;
16
17
  agentId: string;
17
- updatedAt: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- tenantId: string;
49
48
  createdAt: string;
49
+ updatedAt: string;
50
50
  projectId: string;
51
+ tenantId: string;
51
52
  agentId: string;
52
- updatedAt: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- tenantId: string;
62
61
  createdAt: string;
62
+ updatedAt: string;
63
63
  projectId: string;
64
+ tenantId: string;
64
65
  agentId: string;
65
- updatedAt: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
- tenantId: string;
131
130
  createdAt: string;
131
+ updatedAt: string;
132
132
  projectId: string;
133
+ tenantId: string;
133
134
  agentId: string;
134
- updatedAt: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
- tenantId: string;
150
149
  createdAt: string;
150
+ updatedAt: string;
151
151
  projectId: string;
152
+ tenantId: string;
152
153
  agentId: string;
153
- updatedAt: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
- tenantId: string;
164
163
  createdAt: string;
164
+ updatedAt: string;
165
165
  projectId: string;
166
+ tenantId: string;
166
167
  agentId: string;
167
- updatedAt: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -205,14 +205,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
- tenantId: string;
209
208
  createdAt: string;
209
+ updatedAt: string;
210
210
  projectId: string;
211
+ tenantId: string;
211
212
  agentId: string;
212
213
  subAgentId: string;
213
- toolId: string;
214
- updatedAt: string;
215
214
  headers: Record<string, string> | null;
215
+ toolId: string;
216
216
  selectedTools: string[] | null;
217
217
  toolPolicies: Record<string, {
218
218
  needsApproval?: boolean;
@@ -249,14 +249,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
- tenantId: string;
253
252
  createdAt: string;
253
+ updatedAt: string;
254
254
  projectId: string;
255
+ tenantId: string;
255
256
  agentId: string;
256
257
  subAgentId: string;
257
- toolId: string;
258
- updatedAt: string;
259
258
  headers: Record<string, string> | null;
259
+ toolId: string;
260
260
  selectedTools: string[] | null;
261
261
  toolPolicies: Record<string, {
262
262
  needsApproval?: boolean;