@inkeep/agents-core 0.0.0-dev-20260325103346 → 0.0.0-dev-20260325201121

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 +108 -108
  2. package/dist/auth/auth-validation-schemas.d.ts +137 -137
  3. package/dist/auth/auth.d.ts +6 -6
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +3 -3
  6. package/dist/data-access/manage/agents.d.ts +42 -42
  7. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  8. package/dist/data-access/manage/contextConfigs.d.ts +16 -16
  9. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  10. package/dist/data-access/manage/functionTools.d.ts +14 -14
  11. package/dist/data-access/manage/skills.d.ts +15 -15
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  13. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  15. package/dist/data-access/manage/subAgents.d.ts +18 -18
  16. package/dist/data-access/manage/tools.d.ts +27 -27
  17. package/dist/data-access/manage/triggers.d.ts +1 -1
  18. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  19. package/dist/data-access/runtime/apps.d.ts +12 -12
  20. package/dist/data-access/runtime/conversations.d.ts +18 -18
  21. package/dist/data-access/runtime/conversations.js +17 -1
  22. package/dist/data-access/runtime/messages.d.ts +15 -15
  23. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  24. package/dist/data-access/runtime/tasks.d.ts +4 -4
  25. package/dist/db/manage/manage-schema.d.ts +451 -451
  26. package/dist/db/runtime/runtime-schema.d.ts +332 -332
  27. package/dist/types/utility.d.ts +1 -0
  28. package/dist/utils/error.d.ts +51 -51
  29. package/dist/validation/schemas.d.ts +1755 -1755
  30. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { BetterAuthConfig, EmailServiceConfig, OIDCProviderConfig, SAMLProviderC
2
2
  import { extractCookieDomain, hasCredentialAccount } from "./auth-config-utils.js";
3
3
  import * as zod0 from "zod";
4
4
  import * as better_auth0 from "better-auth";
5
- import * as better_auth_plugins0 from "better-auth/plugins";
5
+ import * as better_auth_plugins20 from "better-auth/plugins";
6
6
 
7
7
  //#region src/auth/auth.d.ts
8
8
 
@@ -38,10 +38,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
38
38
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
39
39
  }[];
40
40
  };
41
- options: better_auth_plugins0.BearerOptions | undefined;
41
+ options: better_auth_plugins20.BearerOptions | undefined;
42
42
  }, {
43
43
  id: "oauth-proxy";
44
- options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
44
+ options: NoInfer<better_auth_plugins20.OAuthProxyOptions>;
45
45
  endpoints: {
46
46
  oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
47
47
  method: "GET";
@@ -93,7 +93,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
93
93
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
94
94
  }[];
95
95
  };
96
- }, better_auth_plugins0.DefaultOrganizationPlugin<{
96
+ }, better_auth_plugins20.DefaultOrganizationPlugin<{
97
97
  schema: {
98
98
  invitation: {
99
99
  additionalFields: {
@@ -456,8 +456,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
456
456
  AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
457
457
  };
458
458
  options: Partial<{
459
- expiresIn: better_auth_plugins0.TimeString;
460
- interval: better_auth_plugins0.TimeString;
459
+ expiresIn: better_auth_plugins20.TimeString;
460
+ interval: better_auth_plugins20.TimeString;
461
461
  deviceCodeLength: number;
462
462
  userCodeLength: number;
463
463
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins4 from "better-auth/plugins";
1
+ import * as better_auth_plugins0 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 "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
9
- actions: better_auth_plugins4.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins4.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
12
- statements: better_auth_plugins4.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins4.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
16
- actions: better_auth_plugins4.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins4.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
19
- statements: better_auth_plugins4.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins4.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
23
- actions: better_auth_plugins4.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins4.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
26
- statements: better_auth_plugins4.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins4.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -18,9 +18,10 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
18
18
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
19
19
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
20
20
  id: z.ZodString;
21
+ createdAt: z.ZodOptional<z.ZodString>;
21
22
  name: 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>;
@@ -11,8 +11,14 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  scopes: AgentScopeConfig;
12
12
  }) => Promise<{
13
13
  id: string;
14
+ createdAt: string;
14
15
  name: string;
16
+ updatedAt: string;
17
+ projectId: string;
18
+ tenantId: string;
15
19
  description: string | null;
20
+ defaultSubAgentId: string | null;
21
+ contextConfigId: string | null;
16
22
  models: {
17
23
  base?: {
18
24
  model?: string | undefined;
@@ -27,14 +33,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
27
33
  providerOptions?: Record<string, any> | undefined;
28
34
  } | undefined;
29
35
  } | null;
30
- stopWhen: {
31
- transferCountIs?: number | undefined;
32
- } | null;
33
- createdAt: string;
34
- updatedAt: string;
35
- tenantId: string;
36
- defaultSubAgentId: string | null;
37
- contextConfigId: string | null;
38
36
  prompt: string | null;
39
37
  statusUpdates: {
40
38
  enabled?: boolean | undefined;
@@ -51,14 +49,22 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
51
49
  } | undefined;
52
50
  }[] | undefined;
53
51
  } | null;
54
- projectId: string;
52
+ stopWhen: {
53
+ transferCountIs?: number | undefined;
54
+ } | null;
55
55
  } | null>;
56
56
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
59
  id: string;
60
+ createdAt: string;
60
61
  name: string;
62
+ updatedAt: string;
63
+ projectId: string;
64
+ tenantId: string;
61
65
  description: string | null;
66
+ defaultSubAgentId: string | null;
67
+ contextConfigId: string | null;
62
68
  models: {
63
69
  base?: {
64
70
  model?: string | undefined;
@@ -73,14 +79,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
73
79
  providerOptions?: Record<string, any> | undefined;
74
80
  } | undefined;
75
81
  } | null;
76
- stopWhen: {
77
- transferCountIs?: number | undefined;
78
- } | null;
79
- createdAt: string;
80
- updatedAt: string;
81
- tenantId: string;
82
- defaultSubAgentId: string | null;
83
- contextConfigId: string | null;
84
82
  prompt: string | null;
85
83
  statusUpdates: {
86
84
  enabled?: boolean | undefined;
@@ -97,10 +95,17 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
97
95
  } | undefined;
98
96
  }[] | undefined;
99
97
  } | null;
100
- projectId: string;
98
+ stopWhen: {
99
+ transferCountIs?: number | undefined;
100
+ } | null;
101
101
  defaultSubAgent: {
102
102
  id: string;
103
+ createdAt: string;
103
104
  name: string;
105
+ updatedAt: string;
106
+ agentId: string;
107
+ projectId: string;
108
+ tenantId: string;
104
109
  description: string | null;
105
110
  models: {
106
111
  base?: {
@@ -116,15 +121,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
116
121
  providerOptions?: Record<string, any> | undefined;
117
122
  } | undefined;
118
123
  } | null;
124
+ prompt: string | null;
119
125
  stopWhen: {
120
126
  stepCountIs?: number | undefined;
121
127
  } | null;
122
- createdAt: string;
123
- updatedAt: string;
124
- tenantId: string;
125
- prompt: string | null;
126
- projectId: string;
127
- agentId: string;
128
128
  conversationHistoryConfig: ConversationHistoryConfig | null;
129
129
  } | null;
130
130
  } | null>;
@@ -132,8 +132,14 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
132
132
  scopes: ProjectScopeConfig;
133
133
  }) => Promise<{
134
134
  id: string;
135
+ createdAt: string;
135
136
  name: string;
137
+ updatedAt: string;
138
+ projectId: string;
139
+ tenantId: string;
136
140
  description: string | null;
141
+ defaultSubAgentId: string | null;
142
+ contextConfigId: string | null;
137
143
  models: {
138
144
  base?: {
139
145
  model?: string | undefined;
@@ -148,14 +154,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
148
154
  providerOptions?: Record<string, any> | undefined;
149
155
  } | undefined;
150
156
  } | null;
151
- stopWhen: {
152
- transferCountIs?: number | undefined;
153
- } | null;
154
- createdAt: string;
155
- updatedAt: string;
156
- tenantId: string;
157
- defaultSubAgentId: string | null;
158
- contextConfigId: string | null;
159
157
  prompt: string | null;
160
158
  statusUpdates: {
161
159
  enabled?: boolean | undefined;
@@ -172,7 +170,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
172
170
  } | undefined;
173
171
  }[] | undefined;
174
172
  } | null;
175
- projectId: string;
173
+ stopWhen: {
174
+ transferCountIs?: number | undefined;
175
+ } | null;
176
176
  }[]>;
177
177
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
178
178
  scopes: ProjectScopeConfig;
@@ -248,8 +248,14 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
248
248
  }): Promise<AvailableAgentInfo[]>;
249
249
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
250
250
  id: string;
251
+ createdAt: string;
251
252
  name: string;
253
+ updatedAt: string;
254
+ projectId: string;
255
+ tenantId: string;
252
256
  description: string | null;
257
+ defaultSubAgentId: string | null;
258
+ contextConfigId: string | null;
253
259
  models: {
254
260
  base?: {
255
261
  model?: string | undefined;
@@ -264,14 +270,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
264
270
  providerOptions?: Record<string, any> | undefined;
265
271
  } | undefined;
266
272
  } | null;
267
- stopWhen: {
268
- transferCountIs?: number | undefined;
269
- } | null;
270
- createdAt: string;
271
- updatedAt: string;
272
- tenantId: string;
273
- defaultSubAgentId: string | null;
274
- contextConfigId: string | null;
275
273
  prompt: string | null;
276
274
  statusUpdates: {
277
275
  enabled?: boolean | undefined;
@@ -288,7 +286,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
288
286
  } | undefined;
289
287
  }[] | undefined;
290
288
  } | null;
291
- projectId: string;
289
+ stopWhen: {
290
+ transferCountIs?: number | undefined;
291
+ } | null;
292
292
  }>;
293
293
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
294
294
  scopes: AgentScopeConfig;
@@ -10,12 +10,12 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- name: string;
14
- description: string | null;
15
13
  createdAt: string;
14
+ name: string;
16
15
  updatedAt: string;
17
- tenantId: string;
18
16
  projectId: string;
17
+ tenantId: string;
18
+ description: string | null;
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
- name: string;
70
- description: string | null;
71
69
  createdAt: string;
70
+ name: string;
72
71
  updatedAt: string;
73
- tenantId: string;
74
72
  projectId: string;
73
+ tenantId: string;
74
+ description: string | null;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -143,9 +143,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
143
143
  }) => Promise<{
144
144
  id: string;
145
145
  createdAt: string;
146
- tenantId: string;
147
- projectId: string;
148
146
  agentId: string;
147
+ projectId: string;
148
+ tenantId: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
@@ -186,9 +186,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
186
186
  }) => Promise<{
187
187
  id: string;
188
188
  createdAt: string;
189
- tenantId: string;
190
- projectId: string;
191
189
  agentId: string;
190
+ projectId: string;
191
+ tenantId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -10,25 +10,25 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
13
  headersSchema: unknown;
18
14
  contextVariables: Record<string, ContextFetchDefinition> | null;
15
+ createdAt: string;
16
+ updatedAt: string;
19
17
  agentId: string;
18
+ projectId: string;
19
+ tenantId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
24
  id: string;
25
- createdAt: string;
26
- updatedAt: string;
27
- tenantId: string;
28
- projectId: string;
29
25
  headersSchema: unknown;
30
26
  contextVariables: Record<string, ContextFetchDefinition> | null;
27
+ createdAt: string;
28
+ updatedAt: string;
31
29
  agentId: string;
30
+ projectId: string;
31
+ tenantId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -44,13 +44,13 @@ 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
- tenantId: string;
50
- projectId: string;
51
47
  headersSchema: unknown;
52
48
  contextVariables: Record<string, ContextFetchDefinition> | null;
49
+ createdAt: string;
50
+ updatedAt: string;
53
51
  agentId: string;
52
+ projectId: string;
53
+ tenantId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -84,13 +84,13 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
86
  id: string;
87
- createdAt: string;
88
- updatedAt: string;
89
- tenantId: string;
90
- projectId: string;
91
87
  headersSchema: unknown;
92
88
  contextVariables: Record<string, ContextFetchDefinition> | null;
89
+ createdAt: string;
90
+ updatedAt: string;
93
91
  agentId: string;
92
+ projectId: string;
93
+ tenantId: string;
94
94
  }>;
95
95
  //#endregion
96
96
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  }) => Promise<{
68
68
  id: string;
69
69
  createdAt: string;
70
- tenantId: string;
71
- projectId: string;
72
70
  agentId: string;
71
+ projectId: string;
72
+ tenantId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  }) => Promise<{
110
110
  id: string;
111
111
  createdAt: string;
112
- tenantId: string;
113
- projectId: string;
114
112
  agentId: string;
113
+ projectId: string;
114
+ tenantId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
56
  id: string;
57
- name: string;
58
- description: string | null;
59
57
  createdAt: string;
58
+ name: string;
60
59
  updatedAt: string;
61
- tenantId: string;
62
- projectId: string;
63
60
  agentId: string;
61
+ projectId: string;
62
+ tenantId: string;
63
+ description: string | null;
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
- name: string;
100
- description: string | null;
101
99
  createdAt: string;
100
+ name: string;
102
101
  updatedAt: string;
103
- tenantId: string;
104
- projectId: string;
105
102
  agentId: string;
103
+ projectId: string;
104
+ tenantId: string;
105
+ description: string | null;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -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
- projectId: string;
165
163
  agentId: string;
164
+ projectId: string;
165
+ tenantId: 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
- projectId: string;
230
228
  agentId: string;
229
+ projectId: string;
230
+ tenantId: 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 };
@@ -9,14 +9,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  skillId: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
- name: string;
13
- description: string;
14
12
  createdAt: string;
13
+ name: string;
15
14
  updatedAt: string;
16
- tenantId: string;
17
15
  projectId: string;
18
- content: string;
16
+ tenantId: string;
17
+ description: string;
19
18
  metadata: Record<string, string> | null;
19
+ content: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: ProjectScopeConfig;
@@ -42,25 +42,25 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
42
42
  }>;
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
44
  id: string;
45
- name: string;
46
- description: string;
47
45
  createdAt: string;
46
+ name: string;
48
47
  updatedAt: string;
49
- tenantId: string;
50
48
  projectId: string;
51
- content: string;
49
+ tenantId: string;
50
+ description: string;
52
51
  metadata: Record<string, string> | null;
52
+ content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
55
  id: string;
56
- name: string;
57
- description: string;
58
56
  createdAt: string;
57
+ name: string;
59
58
  updatedAt: string;
60
- tenantId: string;
61
59
  projectId: string;
62
- content: string;
60
+ tenantId: string;
61
+ description: string;
63
62
  metadata: Record<string, string> | null;
63
+ content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
66
66
  scopes: ProjectScopeConfig;
@@ -94,13 +94,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
94
94
  id: string;
95
95
  createdAt: string;
96
96
  updatedAt: string;
97
- tenantId: string;
98
- projectId: string;
99
97
  agentId: string;
98
+ projectId: string;
99
+ tenantId: string;
100
+ subAgentId: string;
100
101
  skillId: string;
101
102
  index: number;
102
103
  alwaysLoaded: boolean;
103
- subAgentId: string;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
106
106
  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
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  subAgentId: string;
19
19
  headers: Record<string, string> | null;
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
  agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
53
  subAgentId: string;
54
54
  headers: Record<string, string> | null;
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
  agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
66
  subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  externalAgentId: string;
@@ -183,9 +183,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- tenantId: string;
187
- projectId: string;
188
186
  agentId: string;
187
+ projectId: string;
188
+ tenantId: string;
189
189
  subAgentId: string;
190
190
  headers: Record<string, string> | null;
191
191
  externalAgentId: string;
@@ -200,9 +200,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- tenantId: string;
204
- projectId: string;
205
203
  agentId: string;
204
+ projectId: string;
205
+ tenantId: string;
206
206
  subAgentId: string;
207
207
  headers: Record<string, string> | null;
208
208
  externalAgentId: string;
@@ -221,9 +221,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- tenantId: string;
225
- projectId: string;
226
224
  agentId: string;
225
+ projectId: string;
226
+ tenantId: string;
227
227
  subAgentId: string;
228
228
  headers: Record<string, string> | null;
229
229
  externalAgentId: string;