@inkeep/agents-core 0.68.3 → 0.68.4

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 (28) 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/permissions.d.ts +9 -9
  4. package/dist/data-access/manage/agents.d.ts +27 -27
  5. package/dist/data-access/manage/artifactComponents.d.ts +2 -2
  6. package/dist/data-access/manage/functionTools.d.ts +4 -4
  7. package/dist/data-access/manage/skills.d.ts +7 -7
  8. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  9. package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
  10. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  11. package/dist/data-access/manage/subAgents.d.ts +21 -21
  12. package/dist/data-access/manage/tools.d.ts +15 -15
  13. package/dist/data-access/manage/triggers.d.ts +5 -5
  14. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  15. package/dist/data-access/runtime/apps.d.ts +11 -11
  16. package/dist/data-access/runtime/conversations.d.ts +24 -24
  17. package/dist/data-access/runtime/feedback.d.ts +2 -2
  18. package/dist/data-access/runtime/messages.d.ts +9 -9
  19. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  20. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  21. package/dist/data-access/runtime/tasks.d.ts +5 -5
  22. package/dist/db/manage/manage-schema.d.ts +461 -461
  23. package/dist/db/runtime/runtime-schema.d.ts +423 -423
  24. package/dist/middleware/no-auth.d.ts +2 -2
  25. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  26. package/dist/validation/schemas/skills.d.ts +32 -32
  27. package/dist/validation/schemas.d.ts +2123 -2123
  28. package/package.json +1 -1
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
- actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key];
8
+ authorize<K_1 extends "project" | "invitation" | "member" | "organization" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "invitation" | "member" | "organization" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
+ actions: better_auth_plugins7.Subset<"project" | "invitation" | "member" | "organization" | "team" | "ac", better_auth_plugins7.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
12
- statements: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>;
12
+ statements: better_auth_plugins7.Subset<"project" | "invitation" | "member" | "organization" | "team" | "ac", better_auth_plugins7.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
- actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key];
15
+ authorize<K_1 extends "project" | "invitation" | "member" | "organization" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "invitation" | "member" | "organization" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
+ actions: better_auth_plugins7.Subset<"project" | "invitation" | "member" | "organization" | "team" | "ac", better_auth_plugins7.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
19
- statements: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>;
19
+ statements: better_auth_plugins7.Subset<"project" | "invitation" | "member" | "organization" | "team" | "ac", better_auth_plugins7.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
- actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key];
22
+ authorize<K_1 extends "project" | "invitation" | "member" | "organization" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "invitation" | "member" | "organization" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
+ actions: better_auth_plugins7.Subset<"project" | "invitation" | "member" | "organization" | "team" | "ac", better_auth_plugins7.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
26
- statements: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>;
26
+ statements: better_auth_plugins7.Subset<"project" | "invitation" | "member" | "organization" | "team" | "ac", better_auth_plugins7.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -12,12 +12,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  }) => Promise<{
13
13
  id: string;
14
14
  name: string;
15
- createdAt: string;
16
- updatedAt: string;
17
15
  description: string | null;
18
- prompt: string | null;
19
- tenantId: string;
20
- projectId: string;
21
16
  models: {
22
17
  base?: {
23
18
  model?: string | undefined;
@@ -41,8 +36,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
41
36
  stopWhen: {
42
37
  transferCountIs?: number | undefined;
43
38
  } | null;
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ tenantId: string;
42
+ projectId: string;
44
43
  defaultSubAgentId: string | null;
45
44
  contextConfigId: string | null;
45
+ prompt: string | null;
46
46
  statusUpdates: {
47
47
  enabled?: boolean | undefined;
48
48
  numEvents?: number | undefined;
@@ -65,12 +65,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
65
65
  }) => Promise<{
66
66
  id: string;
67
67
  name: string;
68
- createdAt: string;
69
- updatedAt: string;
70
68
  description: string | null;
71
- prompt: string | null;
72
- tenantId: string;
73
- projectId: string;
74
69
  models: {
75
70
  base?: {
76
71
  model?: string | undefined;
@@ -94,8 +89,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
94
89
  stopWhen: {
95
90
  transferCountIs?: number | undefined;
96
91
  } | null;
92
+ createdAt: string;
93
+ updatedAt: string;
94
+ tenantId: string;
95
+ projectId: string;
97
96
  defaultSubAgentId: string | null;
98
97
  contextConfigId: string | null;
98
+ prompt: string | null;
99
99
  statusUpdates: {
100
100
  enabled?: boolean | undefined;
101
101
  numEvents?: number | undefined;
@@ -115,14 +115,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
115
115
  defaultSubAgent: {
116
116
  id: string;
117
117
  name: string;
118
- createdAt: string;
119
- updatedAt: string;
120
118
  description: string | null;
121
- prompt: string | null;
122
- tenantId: string;
123
- projectId: string;
124
- agentId: string;
125
- conversationHistoryConfig: ConversationHistoryConfig | null;
126
119
  models: {
127
120
  base?: {
128
121
  model?: string | undefined;
@@ -146,6 +139,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
146
139
  stopWhen: {
147
140
  stepCountIs?: number | undefined;
148
141
  } | null;
142
+ createdAt: string;
143
+ updatedAt: string;
144
+ tenantId: string;
145
+ projectId: string;
146
+ agentId: string;
147
+ prompt: string | null;
148
+ conversationHistoryConfig: ConversationHistoryConfig | null;
149
149
  } | null;
150
150
  } | null>;
151
151
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -153,12 +153,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
153
153
  }) => Promise<{
154
154
  id: string;
155
155
  name: string;
156
- createdAt: string;
157
- updatedAt: string;
158
156
  description: string | null;
159
- prompt: string | null;
160
- tenantId: string;
161
- projectId: string;
162
157
  models: {
163
158
  base?: {
164
159
  model?: string | undefined;
@@ -182,8 +177,13 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
182
177
  stopWhen: {
183
178
  transferCountIs?: number | undefined;
184
179
  } | null;
180
+ createdAt: string;
181
+ updatedAt: string;
182
+ tenantId: string;
183
+ projectId: string;
185
184
  defaultSubAgentId: string | null;
186
185
  contextConfigId: string | null;
186
+ prompt: string | null;
187
187
  statusUpdates: {
188
188
  enabled?: boolean | undefined;
189
189
  numEvents?: number | undefined;
@@ -283,12 +283,7 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
283
283
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
284
284
  id: string;
285
285
  name: string;
286
- createdAt: string;
287
- updatedAt: string;
288
286
  description: string | null;
289
- prompt: string | null;
290
- tenantId: string;
291
- projectId: string;
292
287
  models: {
293
288
  base?: {
294
289
  model?: string | undefined;
@@ -312,8 +307,13 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
312
307
  stopWhen: {
313
308
  transferCountIs?: number | undefined;
314
309
  } | null;
310
+ createdAt: string;
311
+ updatedAt: string;
312
+ tenantId: string;
313
+ projectId: string;
315
314
  defaultSubAgentId: string | null;
316
315
  contextConfigId: string | null;
316
+ prompt: string | null;
317
317
  statusUpdates: {
318
318
  enabled?: boolean | undefined;
319
319
  numEvents?: number | undefined;
@@ -11,9 +11,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ description: string | null;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- description: string | null;
17
17
  tenantId: string;
18
18
  projectId: 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
  id: string;
69
69
  name: string;
70
+ description: string | null;
70
71
  createdAt: string;
71
72
  updatedAt: string;
72
- description: string | null;
73
73
  tenantId: string;
74
74
  projectId: string;
75
75
  props: {
@@ -55,9 +55,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
+ description: string | null;
58
59
  createdAt: string;
59
60
  updatedAt: string;
60
- description: string | null;
61
61
  tenantId: string;
62
62
  projectId: string;
63
63
  agentId: string;
@@ -97,9 +97,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
+ description: string | null;
100
101
  createdAt: string;
101
102
  updatedAt: string;
102
- description: string | null;
103
103
  tenantId: string;
104
104
  projectId: string;
105
105
  agentId: string;
@@ -164,10 +164,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  projectId: string;
165
165
  agentId: string;
166
166
  subAgentId: string;
167
- functionToolId: string;
168
167
  toolPolicies: Record<string, {
169
168
  needsApproval?: boolean;
170
169
  }> | null;
170
+ functionToolId: string;
171
171
  }>;
172
172
  /**
173
173
  * Update an agent-function tool relation
@@ -229,10 +229,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  projectId: string;
230
230
  agentId: string;
231
231
  subAgentId: string;
232
- functionToolId: string;
233
232
  toolPolicies: Record<string, {
234
233
  needsApproval?: boolean;
235
234
  }> | 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 };
@@ -17,13 +17,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
17
17
  }) => Promise<{
18
18
  id: string;
19
19
  name: string;
20
+ description: string;
20
21
  createdAt: string;
21
22
  updatedAt: string;
22
- metadata: Record<string, string> | null;
23
- description: string;
24
23
  tenantId: string;
25
- projectId: string;
24
+ metadata: Record<string, string> | null;
26
25
  content: string;
26
+ projectId: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -112,13 +112,13 @@ declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
113
  id: string;
114
114
  name: string;
115
+ description: string;
115
116
  createdAt: string;
116
117
  updatedAt: string;
117
- metadata: Record<string, string> | null;
118
- description: string;
119
118
  tenantId: string;
120
- projectId: string;
119
+ metadata: Record<string, string> | null;
121
120
  content: string;
121
+ projectId: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -146,9 +146,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
146
146
  projectId: string;
147
147
  agentId: string;
148
148
  subAgentId: string;
149
+ skillId: string;
149
150
  index: number;
150
151
  alwaysLoaded: boolean;
151
- skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
15
  tenantId: string;
17
16
  projectId: string;
18
17
  agentId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
50
  tenantId: string;
52
51
  projectId: string;
53
52
  agentId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
63
  tenantId: string;
65
64
  projectId: string;
66
65
  agentId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -189,11 +189,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
189
189
  id: string;
190
190
  createdAt: string;
191
191
  updatedAt: string;
192
- headers: Record<string, string> | null;
193
192
  tenantId: string;
194
193
  projectId: string;
195
194
  agentId: string;
196
195
  subAgentId: string;
196
+ headers: Record<string, string> | null;
197
197
  externalAgentId: string;
198
198
  }>;
199
199
  /**
@@ -206,11 +206,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- headers: Record<string, string> | null;
210
209
  tenantId: string;
211
210
  projectId: string;
212
211
  agentId: string;
213
212
  subAgentId: string;
213
+ headers: Record<string, string> | null;
214
214
  externalAgentId: string;
215
215
  } | undefined>;
216
216
  /**
@@ -227,11 +227,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
227
227
  id: string;
228
228
  createdAt: string;
229
229
  updatedAt: string;
230
- headers: Record<string, string> | null;
231
230
  tenantId: string;
232
231
  projectId: string;
233
232
  agentId: string;
234
233
  subAgentId: string;
234
+ headers: Record<string, string> | null;
235
235
  externalAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -207,16 +207,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- headers: Record<string, string> | null;
211
210
  tenantId: string;
212
211
  projectId: string;
213
212
  agentId: string;
214
213
  subAgentId: string;
215
214
  toolId: string;
215
+ headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
216
217
  toolPolicies: Record<string, {
217
218
  needsApproval?: boolean;
218
219
  }> | 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
- headers: Record<string, string> | null;
255
254
  tenantId: string;
256
255
  projectId: string;
257
256
  agentId: string;
258
257
  subAgentId: string;
259
258
  toolId: string;
259
+ headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
260
261
  toolPolicies: Record<string, {
261
262
  needsApproval?: boolean;
262
263
  }> | null;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
15
  tenantId: string;
17
16
  projectId: string;
18
17
  agentId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
50
  tenantId: string;
52
51
  projectId: string;
53
52
  agentId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
63
  tenantId: string;
65
64
  projectId: string;
66
65
  agentId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -225,11 +225,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- headers: Record<string, string> | null;
229
228
  tenantId: string;
230
229
  projectId: string;
231
230
  agentId: string;
232
231
  subAgentId: string;
232
+ headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -242,11 +242,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
242
242
  id: string;
243
243
  createdAt: string;
244
244
  updatedAt: string;
245
- headers: Record<string, string> | null;
246
245
  tenantId: string;
247
246
  projectId: string;
248
247
  agentId: string;
249
248
  subAgentId: string;
249
+ headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -263,11 +263,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
263
263
  id: string;
264
264
  createdAt: string;
265
265
  updatedAt: string;
266
- headers: Record<string, string> | null;
267
266
  tenantId: string;
268
267
  projectId: string;
269
268
  agentId: string;
270
269
  subAgentId: string;
270
+ headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,14 +11,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
- createdAt: string;
15
- updatedAt: string;
16
14
  description: string | null;
17
- prompt: string | null;
18
- tenantId: string;
19
- projectId: string;
20
- agentId: string;
21
- conversationHistoryConfig: ConversationHistoryConfig | null;
22
15
  models: {
23
16
  base?: {
24
17
  model?: string | undefined;
@@ -42,20 +35,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
42
35
  stopWhen: {
43
36
  stepCountIs?: number | undefined;
44
37
  } | null;
38
+ createdAt: string;
39
+ updatedAt: string;
40
+ tenantId: string;
41
+ projectId: string;
42
+ agentId: string;
43
+ prompt: string | null;
44
+ conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
48
48
  }) => Promise<{
49
49
  id: string;
50
50
  name: string;
51
- createdAt: string;
52
- updatedAt: string;
53
51
  description: string | null;
54
- prompt: string | null;
55
- tenantId: string;
56
- projectId: string;
57
- agentId: string;
58
- conversationHistoryConfig: ConversationHistoryConfig | null;
59
52
  models: {
60
53
  base?: {
61
54
  model?: string | undefined;
@@ -79,6 +72,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
79
72
  stopWhen: {
80
73
  stepCountIs?: number | undefined;
81
74
  } | null;
75
+ createdAt: string;
76
+ updatedAt: string;
77
+ tenantId: string;
78
+ projectId: string;
79
+ agentId: string;
80
+ prompt: string | null;
81
+ conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
84
84
  scopes: AgentScopeConfig;
@@ -129,14 +129,7 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
130
  id: string;
131
131
  name: string;
132
- createdAt: string;
133
- updatedAt: string;
134
132
  description: string | null;
135
- prompt: string | null;
136
- tenantId: string;
137
- projectId: string;
138
- agentId: string;
139
- conversationHistoryConfig: ConversationHistoryConfig | null;
140
133
  models: {
141
134
  base?: {
142
135
  model?: string | undefined;
@@ -160,6 +153,13 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
160
153
  stopWhen: {
161
154
  stepCountIs?: number | undefined;
162
155
  } | null;
156
+ createdAt: string;
157
+ updatedAt: string;
158
+ tenantId: string;
159
+ projectId: string;
160
+ agentId: string;
161
+ prompt: string | null;
162
+ conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
165
165
  scopes: AgentScopeConfig;
@@ -22,18 +22,18 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  }) => Promise<{
23
23
  id: string;
24
24
  name: string;
25
+ description: string | null;
25
26
  createdAt: string;
26
27
  updatedAt: string;
27
- description: string | null;
28
- headers: Record<string, string> | null;
29
28
  tenantId: string;
30
29
  projectId: string;
30
+ credentialReferenceId: string | null;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
34
34
  };
35
- credentialReferenceId: string | null;
36
35
  credentialScope: string;
36
+ headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
39
39
  lastError: string | null;
@@ -80,18 +80,18 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
82
  name: string;
83
+ description: string | null;
83
84
  createdAt: string;
84
85
  updatedAt: string;
85
- description: string | null;
86
- headers: Record<string, string> | null;
87
86
  tenantId: string;
88
87
  projectId: string;
88
+ credentialReferenceId: string | null;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
92
92
  };
93
- credentialReferenceId: string | null;
94
93
  credentialScope: string;
94
+ headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- headers: Record<string, string> | null;
142
141
  tenantId: string;
143
142
  projectId: string;
144
143
  agentId: string;
145
144
  subAgentId: string;
146
145
  toolId: string;
146
+ headers: Record<string, string> | null;
147
+ selectedTools: string[] | null;
147
148
  toolPolicies: Record<string, {
148
149
  needsApproval?: boolean;
149
150
  }> | null;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- headers: Record<string, string> | null;
161
160
  tenantId: string;
162
161
  projectId: string;
163
162
  agentId: string;
164
163
  subAgentId: string;
165
164
  toolId: string;
165
+ headers: Record<string, string> | null;
166
+ selectedTools: string[] | null;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- headers: Record<string, string> | null;
189
188
  tenantId: string;
190
189
  projectId: string;
191
190
  agentId: string;
192
191
  subAgentId: string;
193
192
  toolId: string;
193
+ headers: Record<string, string> | null;
194
+ selectedTools: string[] | null;
194
195
  toolPolicies: Record<string, {
195
196
  needsApproval?: boolean;
196
197
  }> | null;
197
- selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -204,18 +204,18 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  }) => Promise<{
205
205
  id: string;
206
206
  name: string;
207
+ description: string | null;
207
208
  createdAt: string;
208
209
  updatedAt: string;
209
- description: string | null;
210
- headers: Record<string, string> | null;
211
210
  tenantId: string;
212
211
  projectId: string;
212
+ credentialReferenceId: string | null;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
216
216
  };
217
- credentialReferenceId: string | null;
218
217
  credentialScope: string;
218
+ headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;