@inkeep/agents-core 0.53.12 → 0.53.13

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 (31) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +9 -9
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +2 -2
  6. package/dist/data-access/manage/agents.d.ts +20 -20
  7. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  8. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  9. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  10. package/dist/data-access/manage/functionTools.d.ts +10 -10
  11. package/dist/data-access/manage/skills.d.ts +9 -9
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  13. package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  15. package/dist/data-access/manage/subAgents.d.ts +12 -12
  16. package/dist/data-access/manage/tools.d.ts +9 -9
  17. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  18. package/dist/data-access/runtime/conversations.d.ts +8 -8
  19. package/dist/data-access/runtime/messages.d.ts +18 -18
  20. package/dist/data-access/runtime/tasks.d.ts +5 -5
  21. package/dist/db/manage/manage-schema.d.ts +447 -447
  22. package/dist/db/runtime/runtime-schema.d.ts +290 -290
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +2 -2
  25. package/dist/utils/error.d.ts +51 -51
  26. package/dist/utils/index.d.ts +2 -2
  27. package/dist/utils/index.js +2 -2
  28. package/dist/utils/mcp-client.d.ts +2 -1
  29. package/dist/utils/mcp-client.js +20 -5
  30. package/dist/validation/schemas.d.ts +1757 -1757
  31. package/package.json +1 -1
@@ -1248,25 +1248,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1248
1248
  ac: better_auth_plugins0.AccessControl;
1249
1249
  roles: {
1250
1250
  member: {
1251
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1252
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1251
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1252
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1253
1253
  connector: "OR" | "AND";
1254
1254
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1255
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1255
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1256
1256
  };
1257
1257
  admin: {
1258
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1259
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1258
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1259
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1260
1260
  connector: "OR" | "AND";
1261
1261
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1262
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1262
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1263
1263
  };
1264
1264
  owner: {
1265
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1266
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1265
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1266
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1267
1267
  connector: "OR" | "AND";
1268
1268
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1269
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1269
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1270
1270
  };
1271
1271
  };
1272
1272
  creatorRole: "admin";
@@ -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" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key] | {
9
- actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
9
+ actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
12
- statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>;
12
+ statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key] | {
16
- actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
16
+ actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
19
- statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>;
19
+ statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key] | {
23
- actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
23
+ actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
26
- statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>;
26
+ statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -17,10 +17,9 @@ 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
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
21
  id: z.ZodString;
21
22
  name: z.ZodString;
22
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
24
23
  models: z.ZodOptional<z.ZodObject<{
25
24
  base: z.ZodOptional<z.ZodObject<{
26
25
  model: z.ZodOptional<z.ZodString>;
@@ -37,6 +36,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
37
36
  }, z.core.$strip>>;
38
37
  createdAt: z.ZodOptional<z.ZodString>;
39
38
  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,11 +11,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  tenantId: string;
13
13
  description: string | null;
14
- name: string;
15
14
  projectId: string;
16
15
  id: string;
17
- createdAt: string;
18
- updatedAt: string;
16
+ name: string;
19
17
  models: {
20
18
  base?: {
21
19
  model?: string | undefined;
@@ -33,9 +31,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
31
  stopWhen: {
34
32
  transferCountIs?: number | undefined;
35
33
  } | null;
34
+ createdAt: string;
35
+ updatedAt: string;
36
+ prompt: string | null;
36
37
  defaultSubAgentId: string | null;
37
38
  contextConfigId: string | null;
38
- prompt: string | null;
39
39
  statusUpdates: {
40
40
  enabled?: boolean | undefined;
41
41
  numEvents?: number | undefined;
@@ -57,11 +57,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
57
57
  }) => Promise<{
58
58
  tenantId: string;
59
59
  description: string | null;
60
- name: string;
61
60
  projectId: string;
62
61
  id: string;
63
- createdAt: string;
64
- updatedAt: string;
62
+ name: string;
65
63
  models: {
66
64
  base?: {
67
65
  model?: string | undefined;
@@ -79,9 +77,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
79
77
  stopWhen: {
80
78
  transferCountIs?: number | undefined;
81
79
  } | null;
80
+ createdAt: string;
81
+ updatedAt: string;
82
+ prompt: string | null;
82
83
  defaultSubAgentId: string | null;
83
84
  contextConfigId: string | null;
84
- prompt: string | null;
85
85
  statusUpdates: {
86
86
  enabled?: boolean | undefined;
87
87
  numEvents?: number | undefined;
@@ -100,11 +100,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
100
100
  defaultSubAgent: {
101
101
  tenantId: string;
102
102
  description: string | null;
103
- name: string;
103
+ agentId: string;
104
104
  projectId: string;
105
105
  id: string;
106
- createdAt: string;
107
- updatedAt: string;
106
+ name: string;
108
107
  models: {
109
108
  base?: {
110
109
  model?: string | undefined;
@@ -122,8 +121,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
122
121
  stopWhen: {
123
122
  stepCountIs?: number | undefined;
124
123
  } | null;
124
+ createdAt: string;
125
+ updatedAt: string;
125
126
  prompt: string | null;
126
- agentId: string;
127
127
  conversationHistoryConfig: ConversationHistoryConfig | null;
128
128
  } | null;
129
129
  } | null>;
@@ -132,11 +132,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
132
132
  }) => Promise<{
133
133
  tenantId: string;
134
134
  description: string | null;
135
- name: string;
136
135
  projectId: string;
137
136
  id: string;
138
- createdAt: string;
139
- updatedAt: string;
137
+ name: string;
140
138
  models: {
141
139
  base?: {
142
140
  model?: string | undefined;
@@ -154,9 +152,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
154
152
  stopWhen: {
155
153
  transferCountIs?: number | undefined;
156
154
  } | null;
155
+ createdAt: string;
156
+ updatedAt: string;
157
+ prompt: string | null;
157
158
  defaultSubAgentId: string | null;
158
159
  contextConfigId: string | null;
159
- prompt: string | null;
160
160
  statusUpdates: {
161
161
  enabled?: boolean | undefined;
162
162
  numEvents?: number | undefined;
@@ -248,11 +248,9 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
248
248
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
249
249
  tenantId: string;
250
250
  description: string | null;
251
- name: string;
252
251
  projectId: string;
253
252
  id: string;
254
- createdAt: string;
255
- updatedAt: string;
253
+ name: string;
256
254
  models: {
257
255
  base?: {
258
256
  model?: string | undefined;
@@ -270,9 +268,11 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
270
268
  stopWhen: {
271
269
  transferCountIs?: number | undefined;
272
270
  } | null;
271
+ createdAt: string;
272
+ updatedAt: string;
273
+ prompt: string | null;
273
274
  defaultSubAgentId: string | null;
274
275
  contextConfigId: string | null;
275
- prompt: string | null;
276
276
  statusUpdates: {
277
277
  enabled?: boolean | undefined;
278
278
  numEvents?: number | undefined;
@@ -11,9 +11,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
11
11
  }) => Promise<{
12
12
  tenantId: string;
13
13
  description: string | null;
14
- name: string;
15
14
  projectId: string;
16
15
  id: string;
16
+ name: string;
17
17
  createdAt: string;
18
18
  updatedAt: string;
19
19
  props: {
@@ -67,9 +67,9 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
68
  tenantId: string;
69
69
  description: string | null;
70
- name: string;
71
70
  projectId: string;
72
71
  id: string;
72
+ name: string;
73
73
  createdAt: string;
74
74
  updatedAt: string;
75
75
  props: {
@@ -142,11 +142,11 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
144
  tenantId: string;
145
+ agentId: string;
145
146
  projectId: string;
146
- subAgentId: string;
147
147
  id: string;
148
148
  createdAt: string;
149
- agentId: string;
149
+ subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
152
152
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -185,11 +185,11 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
187
  tenantId: string;
188
+ agentId: string;
188
189
  projectId: string;
189
- subAgentId: string;
190
190
  id: string;
191
191
  createdAt: string;
192
- agentId: string;
192
+ subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
195
195
  /**
@@ -10,11 +10,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  tenantId: string;
13
+ agentId: string;
13
14
  projectId: string;
14
15
  id: string;
15
16
  createdAt: string;
16
17
  updatedAt: string;
17
- agentId: 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
  tenantId: string;
25
+ agentId: string;
25
26
  projectId: string;
26
27
  id: string;
27
28
  createdAt: string;
28
29
  updatedAt: string;
29
- agentId: 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
  tenantId: string;
47
+ agentId: string;
47
48
  projectId: string;
48
49
  id: string;
49
50
  createdAt: string;
50
51
  updatedAt: string;
51
- agentId: 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
  tenantId: string;
87
+ agentId: string;
87
88
  projectId: string;
88
89
  id: string;
89
90
  createdAt: string;
90
91
  updatedAt: string;
91
- agentId: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -66,11 +66,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
68
  tenantId: string;
69
+ agentId: string;
69
70
  projectId: string;
70
- subAgentId: string;
71
71
  id: string;
72
72
  createdAt: string;
73
- agentId: string;
73
+ subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
76
76
  /**
@@ -108,11 +108,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
110
  tenantId: string;
111
+ agentId: string;
111
112
  projectId: string;
112
- subAgentId: string;
113
113
  id: string;
114
114
  createdAt: string;
115
- agentId: string;
115
+ subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
118
118
  /**
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  tenantId: string;
57
57
  description: string | null;
58
- name: string;
58
+ agentId: string;
59
59
  projectId: string;
60
60
  id: string;
61
+ name: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -97,12 +97,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  tenantId: string;
99
99
  description: string | null;
100
- name: string;
100
+ agentId: string;
101
101
  projectId: string;
102
102
  id: string;
103
+ name: string;
103
104
  createdAt: string;
104
105
  updatedAt: string;
105
- agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -162,16 +162,16 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
162
162
  }> | null;
163
163
  }) => Promise<{
164
164
  tenantId: string;
165
+ agentId: string;
165
166
  projectId: string;
166
- subAgentId: string;
167
167
  id: string;
168
168
  createdAt: string;
169
169
  updatedAt: string;
170
- agentId: string;
170
+ subAgentId: string;
171
+ functionToolId: string;
171
172
  toolPolicies: Record<string, {
172
173
  needsApproval?: boolean;
173
174
  }> | null;
174
- functionToolId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -227,16 +227,16 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
227
227
  }> | null;
228
228
  }) => Promise<{
229
229
  tenantId: string;
230
+ agentId: string;
230
231
  projectId: string;
231
- subAgentId: string;
232
232
  id: string;
233
233
  createdAt: string;
234
234
  updatedAt: string;
235
- agentId: string;
235
+ subAgentId: string;
236
+ functionToolId: string;
236
237
  toolPolicies: Record<string, {
237
238
  needsApproval?: boolean;
238
239
  }> | null;
239
- functionToolId: string;
240
240
  }>;
241
241
  //#endregion
242
242
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -10,13 +10,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  tenantId: string;
12
12
  description: string;
13
- name: string;
14
- content: string;
15
13
  projectId: string;
16
14
  id: string;
15
+ name: string;
17
16
  createdAt: string;
18
17
  updatedAt: 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;
@@ -43,24 +43,24 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
44
  tenantId: string;
45
45
  description: string;
46
- name: string;
47
- content: string;
48
46
  projectId: string;
49
47
  id: string;
48
+ name: string;
50
49
  createdAt: string;
51
50
  updatedAt: 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
  tenantId: string;
56
56
  description: string;
57
- name: string;
58
- content: string;
59
57
  projectId: string;
60
58
  id: string;
59
+ name: string;
61
60
  createdAt: string;
62
61
  updatedAt: 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;
@@ -92,15 +92,15 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
94
  tenantId: string;
95
+ agentId: string;
95
96
  projectId: string;
96
- subAgentId: string;
97
97
  id: string;
98
98
  createdAt: string;
99
99
  updatedAt: string;
100
- agentId: string;
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;
@@ -10,13 +10,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  tenantId: string;
13
+ agentId: string;
13
14
  projectId: string;
14
- subAgentId: string;
15
15
  id: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
+ subAgentId: string;
18
19
  headers: Record<string, string> | null;
19
- agentId: string;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,26 +45,26 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  tenantId: string;
48
+ agentId: string;
48
49
  projectId: string;
49
- subAgentId: string;
50
50
  id: string;
51
51
  createdAt: string;
52
52
  updatedAt: string;
53
+ subAgentId: string;
53
54
  headers: Record<string, string> | null;
54
- agentId: string;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  tenantId: string;
61
+ agentId: string;
61
62
  projectId: string;
62
- subAgentId: string;
63
63
  id: string;
64
64
  createdAt: string;
65
65
  updatedAt: string;
66
+ subAgentId: string;
66
67
  headers: Record<string, string> | null;
67
- agentId: string;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -181,13 +181,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
181
181
  };
182
182
  }) => Promise<{
183
183
  tenantId: string;
184
+ agentId: string;
184
185
  projectId: string;
185
- subAgentId: string;
186
186
  id: string;
187
187
  createdAt: string;
188
188
  updatedAt: string;
189
+ subAgentId: string;
189
190
  headers: Record<string, string> | null;
190
- agentId: string;
191
191
  externalAgentId: string;
192
192
  }>;
193
193
  /**
@@ -198,13 +198,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
200
  tenantId: string;
201
+ agentId: string;
201
202
  projectId: string;
202
- subAgentId: string;
203
203
  id: string;
204
204
  createdAt: string;
205
205
  updatedAt: string;
206
+ subAgentId: string;
206
207
  headers: Record<string, string> | null;
207
- agentId: string;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
210
210
  /**
@@ -219,13 +219,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
219
219
  };
220
220
  }) => Promise<{
221
221
  tenantId: string;
222
+ agentId: string;
222
223
  projectId: string;
223
- subAgentId: string;
224
224
  id: string;
225
225
  createdAt: string;
226
226
  updatedAt: string;
227
+ subAgentId: string;
227
228
  headers: Record<string, string> | null;
228
- agentId: string;
229
229
  externalAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {