@inkeep/agents-core 0.81.0 → 0.81.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 (43) hide show
  1. package/dist/auth/auth-config-utils.js +1 -2
  2. package/dist/auth/auth-schema.d.ts +220 -220
  3. package/dist/auth/auth-validation-schemas.d.ts +137 -137
  4. package/dist/auth/auth.d.ts +12 -11
  5. package/dist/auth/auth.js +1 -0
  6. package/dist/auth/permissions.d.ts +7 -7
  7. package/dist/context/TemplateEngine.js +2 -1
  8. package/dist/credential-stores/defaults.js +2 -1
  9. package/dist/credential-stores/memory-store.js +6 -0
  10. package/dist/data-access/manage/agents.d.ts +10 -10
  11. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  12. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  13. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  14. package/dist/data-access/manage/functionTools.d.ts +6 -6
  15. package/dist/data-access/manage/skills.d.ts +7 -7
  16. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  17. package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
  18. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  19. package/dist/data-access/manage/subAgents.d.ts +6 -6
  20. package/dist/data-access/manage/tools.d.ts +18 -18
  21. package/dist/data-access/manage/triggers.d.ts +5 -5
  22. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  23. package/dist/data-access/runtime/apps.d.ts +4 -4
  24. package/dist/data-access/runtime/conversations.d.ts +8 -8
  25. package/dist/data-access/runtime/events.d.ts +2 -2
  26. package/dist/data-access/runtime/feedback.d.ts +4 -4
  27. package/dist/data-access/runtime/messages.d.ts +18 -18
  28. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
  29. package/dist/data-access/runtime/tasks.d.ts +1 -1
  30. package/dist/db/manage/manage-schema.d.ts +405 -405
  31. package/dist/db/runtime/runtime-schema.d.ts +424 -424
  32. package/dist/env.d.ts +5 -0
  33. package/dist/env.js +1 -0
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +2 -2
  36. package/dist/utils/env-detection.d.ts +3 -1
  37. package/dist/utils/env-detection.js +7 -1
  38. package/dist/utils/error.d.ts +51 -51
  39. package/dist/utils/index.d.ts +2 -2
  40. package/dist/utils/index.js +2 -2
  41. package/dist/validation/schemas/skills.d.ts +32 -32
  42. package/dist/validation/schemas.d.ts +1866 -1866
  43. package/package.json +5 -5
@@ -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_plugins8 from "better-auth/plugins";
7
+ import * as better_auth_plugins0 from "better-auth/plugins";
8
8
  import * as better_call0 from "better-call";
9
9
  import * as zod_v4_core0 from "zod/v4/core";
10
10
 
@@ -43,11 +43,11 @@ declare function _inferAuthType(): better_auth0.Auth<{
43
43
  handler: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>>;
44
44
  }[];
45
45
  };
46
- options: better_auth_plugins8.BearerOptions | undefined;
46
+ options: better_auth_plugins0.BearerOptions | undefined;
47
47
  }, {
48
48
  id: "oauth-proxy";
49
49
  version: string;
50
- options: NoInfer<better_auth_plugins8.OAuthProxyOptions>;
50
+ options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
51
51
  endpoints: {
52
52
  oAuthProxy: better_call0.StrictEndpoint<"/oauth-proxy-callback", {
53
53
  method: "GET";
@@ -115,7 +115,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
115
115
  }, {
116
116
  id: "jwt";
117
117
  version: string;
118
- options: NoInfer<better_auth_plugins8.JwtOptions>;
118
+ options: NoInfer<better_auth_plugins0.JwtOptions>;
119
119
  init(ctx: better_auth0.AuthContext): {
120
120
  context: {
121
121
  sessionConfig: {
@@ -266,7 +266,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
266
266
  $Infer: {
267
267
  body: {
268
268
  payload: jose0.JWTPayload;
269
- overrideOptions?: better_auth_plugins8.JwtOptions | undefined;
269
+ overrideOptions?: better_auth_plugins0.JwtOptions | undefined;
270
270
  };
271
271
  };
272
272
  };
@@ -441,8 +441,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
441
441
  client_id_metadata_document_supported?: boolean | undefined;
442
442
  backchannel_logout_supported?: boolean | undefined;
443
443
  backchannel_logout_session_supported?: boolean | undefined;
444
- dpop_signing_alg_values_supported?: better_auth_plugins8.JWSAlgorithms[] | undefined;
445
- id_token_signing_alg_values_supported: better_auth_plugins8.JWSAlgorithms[] | ["HS256"];
444
+ dpop_signing_alg_values_supported?: better_auth_plugins0.JWSAlgorithms[] | undefined;
445
+ id_token_signing_alg_values_supported: better_auth_plugins0.JWSAlgorithms[] | ["HS256"];
446
446
  }>;
447
447
  oauth2Authorize: better_call0.StrictEndpoint<"/oauth2/authorize", {
448
448
  method: ("GET" | "POST")[];
@@ -2896,7 +2896,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
2896
2896
  window: number;
2897
2897
  max: number;
2898
2898
  })[];
2899
- }, better_auth_plugins8.DefaultOrganizationPlugin<{
2899
+ }, better_auth_plugins0.DefaultOrganizationPlugin<{
2900
2900
  schema: {
2901
2901
  invitation: {
2902
2902
  additionalFields: {
@@ -3103,6 +3103,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
3103
3103
  error: zod0.ZodObject<{
3104
3104
  error: zod0.ZodEnum<{
3105
3105
  invalid_request: "invalid_request";
3106
+ invalid_client: "invalid_client";
3106
3107
  authorization_pending: "authorization_pending";
3107
3108
  slow_down: "slow_down";
3108
3109
  expired_token: "expired_token";
@@ -3318,11 +3319,11 @@ declare function _inferAuthType(): better_auth0.Auth<{
3318
3319
  AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
3319
3320
  };
3320
3321
  options: {
3321
- grant: better_auth_plugins8.DeviceAuthorizationGrant<Readonly<{
3322
+ grant: better_auth_plugins0.DeviceAuthorizationGrant<Readonly<{
3322
3323
  [k: string]: zod_v4_core0.$ZodType<unknown, unknown, zod_v4_core0.$ZodTypeInternals<unknown, unknown>>;
3323
3324
  }>, Record<string, unknown>> | undefined;
3324
- expiresIn: better_auth_plugins8.TimeString;
3325
- interval: better_auth_plugins8.TimeString;
3325
+ expiresIn: better_auth_plugins0.TimeString;
3326
+ interval: better_auth_plugins0.TimeString;
3326
3327
  deviceCodeLength: number;
3327
3328
  userCodeLength: number;
3328
3329
  generateDeviceCode?: (() => string | Promise<string>) | undefined;
package/dist/auth/auth.js CHANGED
@@ -58,6 +58,7 @@ function createAuth(config) {
58
58
  maxPasswordLength: 256,
59
59
  requireEmailVerification: false,
60
60
  autoSignIn: true,
61
+ revokeSessionsOnPasswordReset: true,
61
62
  resetPasswordTokenExpiresIn: 1800,
62
63
  sendResetPassword: async ({ user, url, token }) => {
63
64
  if (!await hasCredentialAccount(config.dbClient, user.id)) return;
@@ -1,32 +1,32 @@
1
- import * as better_auth_plugins0 from "better-auth/plugins";
1
+ import * as better_auth_plugins9 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
- declare const memberRole: better_auth_plugins0.Role<better_auth_plugins0.ExactRoleStatements<{
7
+ declare const memberRole: better_auth_plugins9.Role<better_auth_plugins9.ExactRoleStatements<{
8
8
  readonly organization: readonly [];
9
9
  readonly member: readonly [];
10
10
  readonly invitation: readonly [];
11
11
  readonly team: readonly [];
12
12
  readonly ac: readonly ["read"];
13
13
  readonly project: ["read"];
14
- }>, better_auth_plugins0.Statements>;
15
- declare const adminRole: better_auth_plugins0.Role<better_auth_plugins0.ExactRoleStatements<{
14
+ }>, better_auth_plugins9.Statements>;
15
+ declare const adminRole: better_auth_plugins9.Role<better_auth_plugins9.ExactRoleStatements<{
16
16
  readonly organization: readonly ["update"];
17
17
  readonly invitation: readonly ["create", "cancel"];
18
18
  readonly member: readonly ["create", "update", "delete"];
19
19
  readonly team: readonly ["create", "update", "delete"];
20
20
  readonly ac: readonly ["create", "read", "update", "delete"];
21
21
  readonly project: ["create", "read", "update", "delete"];
22
- }>, better_auth_plugins0.Statements>;
23
- declare const ownerRole: better_auth_plugins0.Role<better_auth_plugins0.ExactRoleStatements<{
22
+ }>, better_auth_plugins9.Statements>;
23
+ declare const ownerRole: better_auth_plugins9.Role<better_auth_plugins9.ExactRoleStatements<{
24
24
  readonly organization: readonly ["update", "delete"];
25
25
  readonly member: readonly ["create", "update", "delete"];
26
26
  readonly invitation: readonly ["create", "cancel"];
27
27
  readonly team: readonly ["create", "update", "delete"];
28
28
  readonly ac: readonly ["create", "read", "update", "delete"];
29
29
  readonly project: ["create", "read", "update", "delete"];
30
- }>, better_auth_plugins0.Statements>;
30
+ }>, better_auth_plugins9.Statements>;
31
31
  //#endregion
32
32
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -1,5 +1,6 @@
1
1
  import { normalizeJMESPath, searchJMESPath } from "../utils/jmespath-utils.js";
2
2
  import { getLogger } from "../utils/logger.js";
3
+ import { getTemplateEnvironmentVariables } from "../utils/env-detection.js";
3
4
 
4
5
  //#region src/context/TemplateEngine.ts
5
6
  const logger = getLogger("template-engine");
@@ -113,7 +114,7 @@ var TemplateEngine = class TemplateEngine {
113
114
  static processBuiltinVariable(variable) {
114
115
  if (variable.startsWith("$env.")) {
115
116
  const envVar = variable.substring(5);
116
- return process.env[envVar] || "";
117
+ return getTemplateEnvironmentVariables()[envVar] || "";
117
118
  }
118
119
  logger.warn({ variable }, "Unknown built-in variable");
119
120
  return "";
@@ -1,4 +1,5 @@
1
1
  import { DEFAULT_COMPOSIO_STORE_ID, DEFAULT_NANGO_STORE_ID } from "./default-constants.js";
2
+ import { isEnvironmentCredentialAccessEnabled } from "../utils/env-detection.js";
2
3
  import { ComposioCredentialStore } from "./composio-store.js";
3
4
  import { createKeyChainStore } from "./keychain-store.js";
4
5
  import { InMemoryCredentialStore } from "./memory-store.js";
@@ -10,7 +11,7 @@ import { createNangoCredentialStore } from "./nango-store.js";
10
11
  */
11
12
  function createDefaultCredentialStores() {
12
13
  const stores = [];
13
- stores.push(new InMemoryCredentialStore("memory-default"));
14
+ if (isEnvironmentCredentialAccessEnabled()) stores.push(new InMemoryCredentialStore("memory-default"));
14
15
  if (process.env.NANGO_SECRET_KEY) stores.push(createNangoCredentialStore(DEFAULT_NANGO_STORE_ID, {
15
16
  apiUrl: process.env.NANGO_SERVER_URL || "https://api.nango.dev",
16
17
  secretKey: process.env.NANGO_SECRET_KEY
@@ -1,4 +1,5 @@
1
1
  import { CredentialStoreType } from "../types/utility.js";
2
+ import { isEnvironmentCredentialAccessEnabled } from "../utils/env-detection.js";
2
3
 
3
4
  //#region src/credential-stores/memory-store.ts
4
5
  /**
@@ -21,6 +22,7 @@ var InMemoryCredentialStore = class {
21
22
  * @returns The credential value or null if not found
22
23
  */
23
24
  async get(key) {
25
+ if (!isEnvironmentCredentialAccessEnabled()) return null;
24
26
  const credential = this.credentials.get(key);
25
27
  if (!credential) {
26
28
  const envValue = process.env[key];
@@ -61,6 +63,10 @@ var InMemoryCredentialStore = class {
61
63
  * Check if the credential store is available and functional
62
64
  */
63
65
  async checkAvailability() {
66
+ if (!isEnvironmentCredentialAccessEnabled()) return {
67
+ available: false,
68
+ reason: "Memory credential stores require INKEEP_ENABLE_ENVIRONMENT_CREDENTIALS=true"
69
+ };
64
70
  return { available: true };
65
71
  }
66
72
  };
@@ -15,8 +15,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
17
  description: string | null;
18
- tenantId: string;
19
18
  projectId: string;
19
+ tenantId: string;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -40,9 +40,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
40
40
  stopWhen: {
41
41
  transferCountIs?: number | undefined;
42
42
  } | null;
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;
@@ -68,8 +68,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
68
68
  createdAt: string;
69
69
  updatedAt: string;
70
70
  description: string | null;
71
- tenantId: string;
72
71
  projectId: string;
72
+ tenantId: string;
73
73
  models: {
74
74
  base?: {
75
75
  model?: string | undefined;
@@ -93,9 +93,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
93
93
  stopWhen: {
94
94
  transferCountIs?: number | undefined;
95
95
  } | null;
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;
@@ -118,8 +118,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
118
118
  createdAt: string;
119
119
  updatedAt: string;
120
120
  description: string | null;
121
- tenantId: string;
122
121
  projectId: string;
122
+ tenantId: string;
123
123
  models: {
124
124
  base?: {
125
125
  model?: string | undefined;
@@ -143,8 +143,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
143
143
  stopWhen: {
144
144
  stepCountIs?: number | undefined;
145
145
  } | null;
146
- prompt: string | null;
147
146
  agentId: string;
147
+ prompt: string | null;
148
148
  conversationHistoryConfig: ConversationHistoryConfig | null;
149
149
  outputContract: {
150
150
  [x: string]: unknown;
@@ -165,8 +165,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
165
165
  createdAt: string;
166
166
  updatedAt: string;
167
167
  description: string | null;
168
- tenantId: string;
169
168
  projectId: string;
169
+ tenantId: string;
170
170
  models: {
171
171
  base?: {
172
172
  model?: string | undefined;
@@ -190,9 +190,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
190
190
  stopWhen: {
191
191
  transferCountIs?: number | undefined;
192
192
  } | null;
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;
@@ -295,8 +295,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
295
295
  createdAt: string;
296
296
  updatedAt: string;
297
297
  description: string | null;
298
- tenantId: string;
299
298
  projectId: string;
299
+ tenantId: string;
300
300
  models: {
301
301
  base?: {
302
302
  model?: string | undefined;
@@ -320,9 +320,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
320
320
  stopWhen: {
321
321
  transferCountIs?: number | undefined;
322
322
  } | null;
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;
@@ -14,8 +14,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  description: string | null;
17
- tenantId: string;
18
17
  projectId: string;
18
+ tenantId: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -70,8 +70,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  description: string | null;
73
- tenantId: string;
74
73
  projectId: string;
74
+ tenantId: string;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -143,8 +143,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
143
143
  }) => Promise<{
144
144
  id: string;
145
145
  createdAt: string;
146
- tenantId: string;
147
146
  projectId: string;
147
+ tenantId: string;
148
148
  agentId: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
@@ -186,8 +186,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
186
186
  }) => Promise<{
187
187
  id: string;
188
188
  createdAt: string;
189
- tenantId: string;
190
189
  projectId: string;
190
+ tenantId: string;
191
191
  agentId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
@@ -12,11 +12,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
15
  projectId: string;
16
+ tenantId: string;
17
+ agentId: string;
17
18
  headersSchema: unknown;
18
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
- agentId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
@@ -24,11 +24,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
24
24
  id: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- tenantId: string;
28
27
  projectId: string;
28
+ tenantId: string;
29
+ agentId: string;
29
30
  headersSchema: unknown;
30
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
- agentId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -46,11 +46,11 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
50
49
  projectId: string;
50
+ tenantId: string;
51
+ agentId: string;
51
52
  headersSchema: unknown;
52
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
- agentId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -86,11 +86,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
86
86
  id: string;
87
87
  createdAt: string;
88
88
  updatedAt: string;
89
- tenantId: string;
90
89
  projectId: string;
90
+ tenantId: string;
91
+ agentId: string;
91
92
  headersSchema: unknown;
92
93
  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 };
@@ -67,8 +67,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  }) => Promise<{
68
68
  id: string;
69
69
  createdAt: string;
70
- tenantId: string;
71
70
  projectId: string;
71
+ tenantId: string;
72
72
  agentId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
@@ -109,8 +109,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  }) => Promise<{
110
110
  id: string;
111
111
  createdAt: string;
112
- tenantId: string;
113
112
  projectId: string;
113
+ tenantId: string;
114
114
  agentId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
@@ -58,8 +58,8 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
60
  description: string | null;
61
- tenantId: string;
62
61
  projectId: string;
62
+ tenantId: string;
63
63
  agentId: string;
64
64
  functionId: string;
65
65
  }>;
@@ -100,8 +100,8 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
100
100
  createdAt: string;
101
101
  updatedAt: string;
102
102
  description: string | null;
103
- tenantId: string;
104
103
  projectId: string;
104
+ tenantId: string;
105
105
  agentId: string;
106
106
  functionId: string;
107
107
  }>;
@@ -160,14 +160,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
160
160
  id: string;
161
161
  createdAt: string;
162
162
  updatedAt: string;
163
- tenantId: string;
164
163
  projectId: string;
164
+ tenantId: string;
165
165
  agentId: string;
166
166
  subAgentId: string;
167
+ functionToolId: string;
167
168
  toolPolicies: Record<string, {
168
169
  needsApproval?: boolean;
169
170
  }> | null;
170
- functionToolId: string;
171
171
  }>;
172
172
  /**
173
173
  * Update an agent-function tool relation
@@ -225,14 +225,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- tenantId: string;
229
228
  projectId: string;
229
+ tenantId: string;
230
230
  agentId: string;
231
231
  subAgentId: string;
232
+ functionToolId: string;
232
233
  toolPolicies: Record<string, {
233
234
  needsApproval?: boolean;
234
235
  }> | null;
235
- functionToolId: string;
236
236
  }>;
237
237
  //#endregion
238
238
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -21,9 +21,9 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
21
21
  updatedAt: string;
22
22
  metadata: Record<string, string> | null;
23
23
  description: string;
24
- tenantId: string;
25
- projectId: string;
26
24
  content: string;
25
+ projectId: string;
26
+ tenantId: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -116,9 +116,9 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
116
116
  updatedAt: string;
117
117
  metadata: Record<string, string> | null;
118
118
  description: string;
119
- tenantId: string;
120
- projectId: string;
121
119
  content: string;
120
+ projectId: string;
121
+ tenantId: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -142,13 +142,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
142
142
  id: string;
143
143
  createdAt: string;
144
144
  updatedAt: string;
145
- tenantId: string;
146
145
  projectId: string;
146
+ tenantId: string;
147
147
  agentId: string;
148
- skillId: string;
148
+ subAgentId: string;
149
149
  index: number;
150
150
  alwaysLoaded: boolean;
151
- subAgentId: string;
151
+ skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -12,9 +12,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
15
  headers: Record<string, string> | null;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  agentId: string;
19
19
  subAgentId: string;
20
20
  externalAgentId: string;
@@ -47,9 +47,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
50
  headers: Record<string, string> | null;
51
+ projectId: string;
52
+ tenantId: string;
53
53
  agentId: string;
54
54
  subAgentId: string;
55
55
  externalAgentId: string;
@@ -60,9 +60,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
63
  headers: Record<string, string> | null;
64
+ projectId: string;
65
+ tenantId: string;
66
66
  agentId: string;
67
67
  subAgentId: string;
68
68
  externalAgentId: string;
@@ -189,9 +189,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
189
189
  id: string;
190
190
  createdAt: string;
191
191
  updatedAt: string;
192
- tenantId: string;
193
- projectId: string;
194
192
  headers: Record<string, string> | null;
193
+ projectId: string;
194
+ tenantId: string;
195
195
  agentId: string;
196
196
  subAgentId: string;
197
197
  externalAgentId: string;
@@ -206,9 +206,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- tenantId: string;
210
- projectId: string;
211
209
  headers: Record<string, string> | null;
210
+ projectId: string;
211
+ tenantId: string;
212
212
  agentId: string;
213
213
  subAgentId: string;
214
214
  externalAgentId: string;
@@ -227,9 +227,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
227
227
  id: string;
228
228
  createdAt: string;
229
229
  updatedAt: string;
230
- tenantId: string;
231
- projectId: string;
232
230
  headers: Record<string, string> | null;
231
+ projectId: string;
232
+ tenantId: string;
233
233
  agentId: string;
234
234
  subAgentId: string;
235
235
  externalAgentId: string;
@@ -12,8 +12,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
15
  projectId: string;
16
+ tenantId: string;
17
17
  agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
@@ -47,8 +47,8 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
50
  projectId: string;
51
+ tenantId: string;
52
52
  agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
@@ -60,8 +60,8 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
63
  projectId: string;
64
+ tenantId: string;
65
65
  agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
@@ -129,8 +129,8 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- tenantId: string;
133
132
  projectId: string;
133
+ tenantId: string;
134
134
  agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
@@ -148,8 +148,8 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- tenantId: string;
152
151
  projectId: string;
152
+ tenantId: string;
153
153
  agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
@@ -162,8 +162,8 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- tenantId: string;
166
165
  projectId: string;
166
+ tenantId: string;
167
167
  agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
@@ -207,16 +207,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- tenantId: string;
211
- projectId: string;
212
210
  headers: Record<string, string> | null;
213
- toolId: string;
211
+ projectId: string;
212
+ tenantId: string;
214
213
  agentId: string;
215
214
  subAgentId: string;
216
- selectedTools: string[] | null;
215
+ toolId: string;
217
216
  toolPolicies: Record<string, {
218
217
  needsApproval?: boolean;
219
218
  }> | null;
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
- tenantId: string;
255
- projectId: string;
256
254
  headers: Record<string, string> | null;
257
- toolId: string;
255
+ projectId: string;
256
+ tenantId: string;
258
257
  agentId: string;
259
258
  subAgentId: string;
260
- selectedTools: string[] | null;
259
+ toolId: string;
261
260
  toolPolicies: Record<string, {
262
261
  needsApproval?: boolean;
263
262
  }> | null;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;