@inkeep/agents-core 0.53.8 → 0.53.9

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 (55) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  2. package/dist/auth/auth.d.ts +30 -28
  3. package/dist/auth/auth.js +12 -3
  4. package/dist/auth/cleanup.d.ts +12 -0
  5. package/dist/auth/cleanup.js +43 -0
  6. package/dist/auth/init.js +12 -2
  7. package/dist/auth/permissions.d.ts +13 -13
  8. package/dist/client-exports.d.ts +2 -2
  9. package/dist/data-access/index.d.ts +2 -2
  10. package/dist/data-access/index.js +2 -2
  11. package/dist/data-access/manage/agents.d.ts +25 -25
  12. package/dist/data-access/manage/agents.js +3 -1
  13. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  14. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  15. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  16. package/dist/data-access/manage/functionTools.d.ts +6 -6
  17. package/dist/data-access/manage/scheduledTriggers.d.ts +12 -1
  18. package/dist/data-access/manage/scheduledTriggers.js +8 -1
  19. package/dist/data-access/manage/skills.d.ts +12 -12
  20. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  21. package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
  22. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  23. package/dist/data-access/manage/subAgents.d.ts +15 -15
  24. package/dist/data-access/manage/tools.d.ts +24 -24
  25. package/dist/data-access/manage/tools.js +2 -2
  26. package/dist/data-access/manage/triggers.d.ts +2 -2
  27. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  28. package/dist/data-access/runtime/conversations.d.ts +31 -31
  29. package/dist/data-access/runtime/messages.d.ts +9 -9
  30. package/dist/data-access/runtime/tasks.d.ts +8 -8
  31. package/dist/db/manage/manage-schema.d.ts +487 -449
  32. package/dist/db/manage/manage-schema.js +2 -0
  33. package/dist/db/runtime/runtime-schema.d.ts +298 -298
  34. package/dist/dolt/index.d.ts +2 -2
  35. package/dist/dolt/index.js +2 -2
  36. package/dist/dolt/ref-helpers.d.ts +5 -1
  37. package/dist/dolt/ref-helpers.js +20 -1
  38. package/dist/index.d.ts +4 -4
  39. package/dist/index.js +4 -4
  40. package/dist/setup/setup.js +19 -5
  41. package/dist/utils/error.d.ts +51 -51
  42. package/dist/utils/index.d.ts +2 -2
  43. package/dist/utils/index.js +2 -2
  44. package/dist/utils/third-party-mcp-servers/composio-client.d.ts +8 -10
  45. package/dist/utils/third-party-mcp-servers/composio-client.js +19 -15
  46. package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
  47. package/dist/utils/third-party-mcp-servers/index.js +2 -2
  48. package/dist/validation/dolt-schemas.d.ts +1 -1
  49. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  50. package/dist/validation/schemas.d.ts +1894 -1776
  51. package/dist/validation/schemas.js +6 -2
  52. package/drizzle/manage/0011_smooth_whizzer.sql +2 -0
  53. package/drizzle/manage/meta/0011_snapshot.json +3685 -0
  54. package/drizzle/manage/meta/_journal.json +7 -0
  55. package/package.json +3 -3
@@ -563,7 +563,9 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
563
563
  messageTemplate: scheduledTrigger.messageTemplate,
564
564
  maxRetries: scheduledTrigger.maxRetries,
565
565
  retryDelaySeconds: scheduledTrigger.retryDelaySeconds,
566
- timeoutSeconds: scheduledTrigger.timeoutSeconds
566
+ timeoutSeconds: scheduledTrigger.timeoutSeconds,
567
+ runAsUserId: scheduledTrigger.runAsUserId,
568
+ createdBy: scheduledTrigger.createdBy
567
569
  };
568
570
  result.scheduledTriggers = scheduledTriggersObject;
569
571
  }
@@ -11,11 +11,11 @@ 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
- projectId: string;
18
17
  tenantId: string;
18
+ projectId: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -67,11 +67,11 @@ 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
- projectId: string;
74
73
  tenantId: string;
74
+ projectId: 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
- projectId: string;
147
146
  tenantId: string;
147
+ projectId: 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
- projectId: string;
190
189
  tenantId: string;
190
+ projectId: 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
- projectId: string;
16
15
  tenantId: string;
17
- agentId: string;
16
+ projectId: string;
18
17
  headersSchema: unknown;
19
18
  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
- projectId: string;
28
27
  tenantId: string;
29
- agentId: string;
28
+ projectId: string;
30
29
  headersSchema: unknown;
31
30
  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
- projectId: string;
50
49
  tenantId: string;
51
- agentId: string;
50
+ projectId: string;
52
51
  headersSchema: unknown;
53
52
  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
- projectId: string;
90
89
  tenantId: string;
91
- agentId: string;
90
+ projectId: string;
92
91
  headersSchema: unknown;
93
92
  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
- projectId: string;
71
70
  tenantId: string;
71
+ projectId: 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
- projectId: string;
113
112
  tenantId: string;
113
+ projectId: string;
114
114
  agentId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
@@ -55,11 +55,11 @@ 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
- projectId: string;
62
61
  tenantId: string;
62
+ projectId: string;
63
63
  agentId: string;
64
64
  functionId: string;
65
65
  }>;
@@ -97,11 +97,11 @@ 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
- projectId: string;
104
103
  tenantId: string;
104
+ projectId: string;
105
105
  agentId: string;
106
106
  functionId: string;
107
107
  }>;
@@ -164,8 +164,8 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  id: string;
165
165
  createdAt: string;
166
166
  updatedAt: string;
167
- projectId: string;
168
167
  tenantId: string;
168
+ projectId: string;
169
169
  agentId: string;
170
170
  subAgentId: string;
171
171
  toolPolicies: Record<string, {
@@ -229,8 +229,8 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- projectId: string;
233
232
  tenantId: string;
233
+ projectId: string;
234
234
  agentId: string;
235
235
  subAgentId: string;
236
236
  toolPolicies: Record<string, {
@@ -30,6 +30,8 @@ declare const listScheduledTriggersPaginated: (db: AgentsManageDatabaseClient) =
30
30
  maxRetries: number;
31
31
  retryDelaySeconds: number;
32
32
  timeoutSeconds: number;
33
+ runAsUserId: string | null;
34
+ createdBy: string | null;
33
35
  name: string;
34
36
  description: string | null;
35
37
  agentId: string;
@@ -70,6 +72,15 @@ declare const upsertScheduledTrigger: (db: AgentsManageDatabaseClient) => (param
70
72
  scopes: AgentScopeConfig;
71
73
  data: ScheduledTriggerInsert;
72
74
  }) => Promise<ScheduledTrigger>;
75
+ /**
76
+ * Delete all scheduled triggers for a given runAsUserId within a tenant+project scope.
77
+ * Operates across all agents in the project (not agent-scoped).
78
+ */
79
+ declare const deleteScheduledTriggersByRunAsUserId: (db: AgentsManageDatabaseClient) => (params: {
80
+ tenantId: string;
81
+ projectId: string;
82
+ runAsUserId: string;
83
+ }) => Promise<void>;
73
84
  /**
74
85
  * List all scheduled triggers for an agent (non-paginated, used by agentFull)
75
86
  */
@@ -77,4 +88,4 @@ declare const listScheduledTriggers: (db: AgentsManageDatabaseClient) => (params
77
88
  scopes: AgentScopeConfig;
78
89
  }) => Promise<ScheduledTrigger[]>;
79
90
  //#endregion
80
- export { createScheduledTrigger, deleteScheduledTrigger, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
91
+ export { createScheduledTrigger, deleteScheduledTrigger, deleteScheduledTriggersByRunAsUserId, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
@@ -66,6 +66,13 @@ const upsertScheduledTrigger = (db) => async (params) => {
66
66
  return await createScheduledTrigger(db)(params.data);
67
67
  };
68
68
  /**
69
+ * Delete all scheduled triggers for a given runAsUserId within a tenant+project scope.
70
+ * Operates across all agents in the project (not agent-scoped).
71
+ */
72
+ const deleteScheduledTriggersByRunAsUserId = (db) => async (params) => {
73
+ await db.delete(scheduledTriggers).where(and(eq(scheduledTriggers.tenantId, params.tenantId), eq(scheduledTriggers.projectId, params.projectId), eq(scheduledTriggers.runAsUserId, params.runAsUserId)));
74
+ };
75
+ /**
69
76
  * List all scheduled triggers for an agent (non-paginated, used by agentFull)
70
77
  */
71
78
  const listScheduledTriggers = (db) => async (params) => {
@@ -73,4 +80,4 @@ const listScheduledTriggers = (db) => async (params) => {
73
80
  };
74
81
 
75
82
  //#endregion
76
- export { createScheduledTrigger, deleteScheduledTrigger, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
83
+ export { createScheduledTrigger, deleteScheduledTrigger, deleteScheduledTriggersByRunAsUserId, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
@@ -10,13 +10,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
+ description: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- metadata: Record<string, string> | null;
16
- description: string;
17
- projectId: string;
18
16
  tenantId: string;
17
+ projectId: string;
19
18
  content: string;
19
+ metadata: Record<string, string> | null;
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
  id: string;
45
45
  name: string;
46
+ description: string;
46
47
  createdAt: string;
47
48
  updatedAt: string;
48
- metadata: Record<string, string> | null;
49
- description: string;
50
- projectId: string;
51
49
  tenantId: string;
50
+ projectId: string;
52
51
  content: string;
52
+ metadata: Record<string, string> | null;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
55
  id: string;
56
56
  name: string;
57
+ description: string;
57
58
  createdAt: string;
58
59
  updatedAt: string;
59
- metadata: Record<string, string> | null;
60
- description: string;
61
- projectId: string;
62
60
  tenantId: string;
61
+ projectId: string;
63
62
  content: string;
63
+ metadata: Record<string, string> | null;
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
- projectId: string;
98
97
  tenantId: string;
98
+ projectId: string;
99
99
  agentId: string;
100
- subAgentId: string;
100
+ skillId: string;
101
101
  index: number;
102
102
  alwaysLoaded: boolean;
103
- skillId: string;
103
+ subAgentId: string;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
106
106
  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
- projectId: string;
17
15
  tenantId: string;
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
- projectId: string;
52
50
  tenantId: string;
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
- projectId: string;
65
63
  tenantId: string;
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: {
@@ -183,11 +183,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- headers: Record<string, string> | null;
187
- projectId: string;
188
186
  tenantId: string;
187
+ projectId: string;
189
188
  agentId: string;
190
189
  subAgentId: string;
190
+ headers: Record<string, string> | null;
191
191
  externalAgentId: string;
192
192
  }>;
193
193
  /**
@@ -200,11 +200,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- headers: Record<string, string> | null;
204
- projectId: string;
205
203
  tenantId: string;
204
+ projectId: string;
206
205
  agentId: string;
207
206
  subAgentId: string;
207
+ headers: Record<string, string> | null;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
210
210
  /**
@@ -221,11 +221,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- headers: Record<string, string> | null;
225
- projectId: string;
226
224
  tenantId: string;
225
+ projectId: string;
227
226
  agentId: string;
228
227
  subAgentId: string;
228
+ headers: Record<string, string> | null;
229
229
  externalAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,8 +12,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- projectId: string;
16
15
  tenantId: string;
16
+ projectId: 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
- projectId: string;
51
50
  tenantId: string;
51
+ projectId: 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
- projectId: string;
64
63
  tenantId: string;
64
+ projectId: 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
- projectId: string;
133
132
  tenantId: string;
133
+ projectId: 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
- projectId: string;
152
151
  tenantId: string;
152
+ projectId: 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
- projectId: string;
166
165
  tenantId: string;
166
+ projectId: 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
- headers: Record<string, string> | null;
211
- toolId: string;
212
- projectId: string;
213
210
  tenantId: string;
211
+ projectId: string;
214
212
  agentId: string;
213
+ toolId: string;
215
214
  subAgentId: 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
- toolId: string;
256
- projectId: string;
257
254
  tenantId: string;
255
+ projectId: string;
258
256
  agentId: string;
257
+ toolId: string;
259
258
  subAgentId: 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
- projectId: string;
17
15
  tenantId: string;
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
- projectId: string;
52
50
  tenantId: string;
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
- projectId: string;
65
63
  tenantId: string;
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: {
@@ -213,11 +213,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
213
213
  id: string;
214
214
  createdAt: string;
215
215
  updatedAt: string;
216
- headers: Record<string, string> | null;
217
- projectId: string;
218
216
  tenantId: string;
217
+ projectId: string;
219
218
  agentId: string;
220
219
  subAgentId: string;
220
+ headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -230,11 +230,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
230
230
  id: string;
231
231
  createdAt: string;
232
232
  updatedAt: string;
233
- headers: Record<string, string> | null;
234
- projectId: string;
235
233
  tenantId: string;
234
+ projectId: string;
236
235
  agentId: string;
237
236
  subAgentId: string;
237
+ headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -251,11 +251,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- headers: Record<string, string> | null;
255
- projectId: string;
256
254
  tenantId: string;
255
+ projectId: string;
257
256
  agentId: string;
258
257
  subAgentId: string;
258
+ headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,11 +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
- projectId: string;
18
- tenantId: string;
19
15
  models: {
20
16
  base?: {
21
17
  model?: string | undefined;
@@ -33,8 +29,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
29
  stopWhen: {
34
30
  stepCountIs?: number | undefined;
35
31
  } | null;
36
- agentId: string;
32
+ createdAt: string;
33
+ updatedAt: string;
34
+ tenantId: string;
37
35
  prompt: string | null;
36
+ projectId: string;
37
+ agentId: string;
38
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -42,11 +42,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
42
42
  }) => Promise<{
43
43
  id: string;
44
44
  name: string;
45
- createdAt: string;
46
- updatedAt: string;
47
45
  description: string | null;
48
- projectId: string;
49
- tenantId: string;
50
46
  models: {
51
47
  base?: {
52
48
  model?: string | undefined;
@@ -64,8 +60,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
64
60
  stopWhen: {
65
61
  stepCountIs?: number | undefined;
66
62
  } | null;
67
- agentId: string;
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ tenantId: string;
68
66
  prompt: string | null;
67
+ projectId: string;
68
+ agentId: string;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -111,11 +111,7 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  id: string;
113
113
  name: string;
114
- createdAt: string;
115
- updatedAt: string;
116
114
  description: string | null;
117
- projectId: string;
118
- tenantId: string;
119
115
  models: {
120
116
  base?: {
121
117
  model?: string | undefined;
@@ -133,8 +129,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
133
129
  stopWhen: {
134
130
  stepCountIs?: number | undefined;
135
131
  } | null;
136
- agentId: string;
132
+ createdAt: string;
133
+ updatedAt: string;
134
+ tenantId: string;
137
135
  prompt: string | null;
136
+ projectId: string;
137
+ agentId: string;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {