@inkeep/agents-core 0.50.6 → 0.52.0

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 (78) hide show
  1. package/dist/auth/auth-schema.d.ts +139 -105
  2. package/dist/auth/auth-schema.js +3 -1
  3. package/dist/auth/auth-validation-schemas.d.ts +216 -148
  4. package/dist/auth/auth.d.ts +55 -23
  5. package/dist/auth/auth.js +22 -8
  6. package/dist/auth/permissions.d.ts +9 -9
  7. package/dist/client-exports.d.ts +8 -14
  8. package/dist/data-access/index.d.ts +3 -3
  9. package/dist/data-access/index.js +3 -3
  10. package/dist/data-access/manage/agentFull.d.ts +2 -1
  11. package/dist/data-access/manage/agents.d.ts +39 -38
  12. package/dist/data-access/manage/artifactComponents.d.ts +18 -17
  13. package/dist/data-access/manage/contextConfigs.d.ts +18 -17
  14. package/dist/data-access/manage/credentialReferences.d.ts +2 -1
  15. package/dist/data-access/manage/dataComponents.d.ts +8 -7
  16. package/dist/data-access/manage/evalConfig.d.ts +2 -1
  17. package/dist/data-access/manage/externalAgents.d.ts +2 -1
  18. package/dist/data-access/manage/functionTools.d.ts +14 -14
  19. package/dist/data-access/manage/functions.d.ts +2 -2
  20. package/dist/data-access/manage/projectFull.d.ts +2 -1
  21. package/dist/data-access/manage/projects.d.ts +2 -1
  22. package/dist/data-access/manage/scheduledTriggers.d.ts +2 -2
  23. package/dist/data-access/manage/scheduledWorkflows.d.ts +2 -2
  24. package/dist/data-access/manage/scope-helpers.d.ts +15 -22
  25. package/dist/data-access/manage/scope-helpers.js +15 -12
  26. package/dist/data-access/manage/skills.d.ts +17 -16
  27. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +20 -19
  28. package/dist/data-access/manage/subAgentRelations.d.ts +22 -21
  29. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +20 -19
  30. package/dist/data-access/manage/subAgents.d.ts +17 -16
  31. package/dist/data-access/manage/tools.d.ts +29 -28
  32. package/dist/data-access/manage/triggers.d.ts +4 -4
  33. package/dist/data-access/runtime/apiKeys.d.ts +14 -13
  34. package/dist/data-access/runtime/cascade-delete.d.ts +1 -1
  35. package/dist/data-access/runtime/contextCache.d.ts +2 -2
  36. package/dist/data-access/runtime/conversations.d.ts +25 -24
  37. package/dist/data-access/runtime/evalRuns.d.ts +2 -1
  38. package/dist/data-access/runtime/ledgerArtifacts.d.ts +1 -1
  39. package/dist/data-access/runtime/messages.d.ts +23 -22
  40. package/dist/data-access/runtime/organizations.d.ts +11 -1
  41. package/dist/data-access/runtime/organizations.js +27 -1
  42. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +2 -2
  43. package/dist/data-access/runtime/tasks.d.ts +7 -7
  44. package/dist/data-access/runtime/triggerInvocations.d.ts +2 -2
  45. package/dist/data-access/runtime/users.d.ts +9 -1
  46. package/dist/data-access/runtime/users.js +20 -3
  47. package/dist/data-access/runtime/workAppSlack.d.ts +1 -1
  48. package/dist/db/manage/manage-schema.d.ts +449 -449
  49. package/dist/db/manage/manage-schema.js +1 -1
  50. package/dist/db/manage/scope-definitions.d.ts +31 -0
  51. package/dist/db/manage/scope-definitions.js +31 -0
  52. package/dist/db/runtime/runtime-schema.d.ts +314 -297
  53. package/dist/db/runtime/runtime-schema.js +1 -0
  54. package/dist/dolt/branches-api.d.ts +2 -1
  55. package/dist/index.d.ts +7 -5
  56. package/dist/index.js +5 -4
  57. package/dist/middleware/no-auth.d.ts +2 -2
  58. package/dist/types/index.d.ts +2 -1
  59. package/dist/types/utility.d.ts +2 -11
  60. package/dist/utils/error.d.ts +3 -1
  61. package/dist/utils/error.js +11 -1
  62. package/dist/utils/index.d.ts +3 -2
  63. package/dist/utils/index.js +3 -2
  64. package/dist/utils/retry.d.ts +8 -0
  65. package/dist/utils/retry.js +30 -0
  66. package/dist/validation/dolt-schemas.d.ts +1 -1
  67. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  68. package/dist/validation/schemas.d.ts +1826 -1856
  69. package/dist/validation/schemas.js +2 -1
  70. package/dist/validation/stream-event-schemas.d.ts +4 -0
  71. package/dist/validation/stream-event-schemas.js +3 -1
  72. package/drizzle/manage/0010_oval_angel.sql +2 -0
  73. package/drizzle/manage/meta/0010_snapshot.json +3673 -0
  74. package/drizzle/manage/meta/_journal.json +7 -0
  75. package/drizzle/runtime/0015_soft_payback.sql +3 -0
  76. package/drizzle/runtime/meta/0015_snapshot.json +3772 -0
  77. package/drizzle/runtime/meta/_journal.json +7 -0
  78. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
- import { AgentScopeConfig, PaginationConfig, ProjectScopeConfig, SubAgentScopeConfig } from "../../types/utility.js";
1
+ import { AgentScopeConfig, ProjectScopeConfig, SubAgentScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { PaginationConfig } from "../../types/utility.js";
2
3
  import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
3
4
  import { SkillInsert, SkillUpdate, SubAgentSkillWithIndex } from "../../types/entities.js";
4
5
 
@@ -7,15 +8,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
7
8
  scopes: ProjectScopeConfig;
8
9
  skillId: string;
9
10
  }) => Promise<{
11
+ description: string;
10
12
  name: string;
13
+ content: string;
14
+ tenantId: string;
15
+ projectId: string;
11
16
  id: string;
12
17
  createdAt: string;
13
18
  updatedAt: string;
14
- projectId: string;
15
- tenantId: string;
16
- description: string;
17
19
  metadata: Record<string, string> | null;
18
- content: string;
19
20
  } | null>;
20
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
21
22
  scopes: ProjectScopeConfig;
@@ -40,26 +41,26 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
40
41
  };
41
42
  }>;
42
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
+ description: string;
43
45
  name: string;
46
+ content: string;
47
+ tenantId: string;
48
+ projectId: string;
44
49
  id: string;
45
50
  createdAt: string;
46
51
  updatedAt: string;
47
- projectId: string;
48
- tenantId: string;
49
- description: string;
50
52
  metadata: Record<string, string> | null;
51
- content: string;
52
53
  }>;
53
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
+ description: string;
54
56
  name: string;
57
+ content: string;
58
+ tenantId: string;
59
+ projectId: string;
55
60
  id: string;
56
61
  createdAt: string;
57
62
  updatedAt: string;
58
- projectId: string;
59
- tenantId: string;
60
- description: string;
61
63
  metadata: Record<string, string> | null;
62
- content: string;
63
64
  }>;
64
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
65
66
  scopes: ProjectScopeConfig;
@@ -90,13 +91,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
90
91
  index: number;
91
92
  alwaysLoaded?: boolean;
92
93
  }) => Promise<{
94
+ tenantId: string;
95
+ projectId: string;
96
+ subAgentId: string;
93
97
  id: string;
94
98
  createdAt: string;
95
99
  updatedAt: string;
96
100
  agentId: string;
97
- projectId: string;
98
- tenantId: string;
99
- subAgentId: string;
100
101
  skillId: string;
101
102
  index: number;
102
103
  alwaysLoaded: boolean;
@@ -1,4 +1,5 @@
1
- import { AgentScopeConfig, ConversationHistoryConfig, PaginationConfig, SubAgentScopeConfig } from "../../types/utility.js";
1
+ import { AgentScopeConfig, SubAgentScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { ConversationHistoryConfig, PaginationConfig } from "../../types/utility.js";
2
3
  import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
3
4
  import "../../index.js";
4
5
  import { SubAgentExternalAgentRelationInsert } from "../../types/entities.js";
@@ -8,14 +9,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
9
  scopes: SubAgentScopeConfig;
9
10
  relationId: string;
10
11
  }) => Promise<{
12
+ tenantId: string;
13
+ projectId: string;
14
+ subAgentId: string;
11
15
  id: string;
12
16
  createdAt: string;
13
17
  updatedAt: string;
14
18
  agentId: string;
15
- projectId: string;
16
- tenantId: string;
17
19
  headers: Record<string, string> | null;
18
- subAgentId: string;
19
20
  externalAgentId: string;
20
21
  } | undefined>;
21
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,27 +44,27 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
45
  scopes: SubAgentScopeConfig;
45
46
  }) => Promise<{
47
+ tenantId: string;
48
+ projectId: string;
49
+ subAgentId: string;
46
50
  id: string;
47
51
  createdAt: string;
48
52
  updatedAt: string;
49
53
  agentId: string;
50
- projectId: string;
51
- tenantId: string;
52
54
  headers: Record<string, string> | null;
53
- subAgentId: string;
54
55
  externalAgentId: string;
55
56
  }[]>;
56
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
58
  scopes: AgentScopeConfig;
58
59
  }) => Promise<{
60
+ tenantId: string;
61
+ projectId: string;
62
+ subAgentId: string;
59
63
  id: string;
60
64
  createdAt: string;
61
65
  updatedAt: string;
62
66
  agentId: string;
63
- projectId: string;
64
- tenantId: string;
65
67
  headers: Record<string, string> | null;
66
- subAgentId: string;
67
68
  externalAgentId: string;
68
69
  }[]>;
69
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -179,14 +180,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
180
  headers?: Record<string, string> | null;
180
181
  };
181
182
  }) => Promise<{
183
+ tenantId: string;
184
+ projectId: string;
185
+ subAgentId: string;
182
186
  id: string;
183
187
  createdAt: string;
184
188
  updatedAt: string;
185
189
  agentId: string;
186
- projectId: string;
187
- tenantId: string;
188
190
  headers: Record<string, string> | null;
189
- subAgentId: string;
190
191
  externalAgentId: string;
191
192
  }>;
192
193
  /**
@@ -196,14 +197,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
196
197
  scopes: SubAgentScopeConfig;
197
198
  externalAgentId: string;
198
199
  }) => Promise<{
200
+ tenantId: string;
201
+ projectId: string;
202
+ subAgentId: string;
199
203
  id: string;
200
204
  createdAt: string;
201
205
  updatedAt: string;
202
206
  agentId: string;
203
- projectId: string;
204
- tenantId: string;
205
207
  headers: Record<string, string> | null;
206
- subAgentId: string;
207
208
  externalAgentId: string;
208
209
  } | undefined>;
209
210
  /**
@@ -217,14 +218,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
218
  headers?: Record<string, string> | null;
218
219
  };
219
220
  }) => Promise<{
221
+ tenantId: string;
222
+ projectId: string;
223
+ subAgentId: string;
220
224
  id: string;
221
225
  createdAt: string;
222
226
  updatedAt: string;
223
227
  agentId: string;
224
- projectId: string;
225
- tenantId: string;
226
228
  headers: Record<string, string> | null;
227
- subAgentId: string;
228
229
  externalAgentId: string;
229
230
  }>;
230
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -1,4 +1,5 @@
1
- import { AgentScopeConfig, ConversationHistoryConfig, PaginationConfig, SubAgentScopeConfig, ToolMcpConfig, ToolServerCapabilities } from "../../types/utility.js";
1
+ import { AgentScopeConfig, SubAgentScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { ConversationHistoryConfig, PaginationConfig, ToolMcpConfig, ToolServerCapabilities } from "../../types/utility.js";
2
3
  import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
3
4
  import "../../index.js";
4
5
  import { SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentToolRelationUpdate } from "../../types/entities.js";
@@ -8,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
8
9
  scopes: AgentScopeConfig;
9
10
  relationId: string;
10
11
  }) => Promise<{
12
+ tenantId: string;
13
+ projectId: string;
11
14
  id: string;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
17
  agentId: string;
15
- projectId: string;
16
- tenantId: string;
17
18
  sourceSubAgentId: string;
18
19
  targetSubAgentId: string | null;
19
20
  relationType: string | null;
@@ -43,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
43
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
45
  scopes: SubAgentScopeConfig;
45
46
  }) => Promise<{
47
+ tenantId: string;
48
+ projectId: string;
46
49
  id: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
52
  agentId: string;
50
- projectId: string;
51
- tenantId: string;
52
53
  sourceSubAgentId: string;
53
54
  targetSubAgentId: string | null;
54
55
  relationType: string | null;
@@ -56,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
56
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
58
  scopes: AgentScopeConfig;
58
59
  }) => Promise<{
60
+ tenantId: string;
61
+ projectId: string;
59
62
  id: string;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
65
  agentId: string;
63
- projectId: string;
64
- tenantId: string;
65
66
  sourceSubAgentId: string;
66
67
  targetSubAgentId: string | null;
67
68
  relationType: string | null;
@@ -125,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
125
126
  }[];
126
127
  }>;
127
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
+ tenantId: string;
130
+ projectId: string;
128
131
  id: string;
129
132
  createdAt: string;
130
133
  updatedAt: string;
131
134
  agentId: string;
132
- projectId: string;
133
- tenantId: string;
134
135
  sourceSubAgentId: string;
135
136
  targetSubAgentId: string | null;
136
137
  relationType: string | null;
@@ -144,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
144
145
  targetSubAgentId?: string;
145
146
  relationType: string;
146
147
  }) => Promise<{
148
+ tenantId: string;
149
+ projectId: string;
147
150
  id: string;
148
151
  createdAt: string;
149
152
  updatedAt: string;
150
153
  agentId: string;
151
- projectId: string;
152
- tenantId: string;
153
154
  sourceSubAgentId: string;
154
155
  targetSubAgentId: string | null;
155
156
  relationType: string | null;
@@ -158,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
158
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
159
160
  */
160
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
+ tenantId: string;
163
+ projectId: string;
161
164
  id: string;
162
165
  createdAt: string;
163
166
  updatedAt: string;
164
167
  agentId: string;
165
- projectId: string;
166
- tenantId: string;
167
168
  sourceSubAgentId: string;
168
169
  targetSubAgentId: string | null;
169
170
  relationType: string | null;
@@ -203,15 +204,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
204
  }> | null;
204
205
  };
205
206
  }) => Promise<{
207
+ tenantId: string;
208
+ projectId: string;
209
+ subAgentId: string;
206
210
  id: string;
207
211
  createdAt: string;
208
212
  updatedAt: string;
209
213
  agentId: string;
210
- projectId: string;
211
- tenantId: string;
212
- headers: Record<string, string> | null;
213
- subAgentId: string;
214
214
  toolId: string;
215
+ headers: Record<string, string> | null;
215
216
  selectedTools: string[] | null;
216
217
  toolPolicies: Record<string, {
217
218
  needsApproval?: boolean;
@@ -247,15 +248,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
248
  scopes: SubAgentScopeConfig;
248
249
  relationId: string;
249
250
  }) => Promise<{
251
+ tenantId: string;
252
+ projectId: string;
253
+ subAgentId: string;
250
254
  id: string;
251
255
  createdAt: string;
252
256
  updatedAt: string;
253
257
  agentId: string;
254
- projectId: string;
255
- tenantId: string;
256
- headers: Record<string, string> | null;
257
- subAgentId: string;
258
258
  toolId: string;
259
+ headers: Record<string, string> | null;
259
260
  selectedTools: string[] | null;
260
261
  toolPolicies: Record<string, {
261
262
  needsApproval?: boolean;
@@ -1,4 +1,5 @@
1
- import { AgentScopeConfig, ConversationHistoryConfig, PaginationConfig, SubAgentScopeConfig } from "../../types/utility.js";
1
+ import { AgentScopeConfig, SubAgentScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { ConversationHistoryConfig, PaginationConfig } from "../../types/utility.js";
2
3
  import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
3
4
  import "../../index.js";
4
5
  import { SubAgentTeamAgentRelationInsert } from "../../types/entities.js";
@@ -8,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
9
  scopes: SubAgentScopeConfig;
9
10
  relationId: string;
10
11
  }) => Promise<{
12
+ tenantId: string;
13
+ projectId: string;
14
+ subAgentId: string;
11
15
  id: string;
12
16
  createdAt: string;
13
17
  updatedAt: string;
14
18
  agentId: string;
15
- projectId: string;
16
- tenantId: string;
17
19
  headers: Record<string, string> | null;
18
- subAgentId: string;
19
20
  targetAgentId: string;
20
21
  } | undefined>;
21
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
43
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
45
  scopes: SubAgentScopeConfig;
45
46
  }) => Promise<{
47
+ tenantId: string;
48
+ projectId: string;
49
+ subAgentId: string;
46
50
  id: string;
47
51
  createdAt: string;
48
52
  updatedAt: string;
49
53
  agentId: string;
50
- projectId: string;
51
- tenantId: string;
52
54
  headers: Record<string, string> | null;
53
- subAgentId: string;
54
55
  targetAgentId: string;
55
56
  }[]>;
56
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
58
  scopes: AgentScopeConfig;
58
59
  }) => Promise<{
60
+ tenantId: string;
61
+ projectId: string;
62
+ subAgentId: string;
59
63
  id: string;
60
64
  createdAt: string;
61
65
  updatedAt: string;
62
66
  agentId: string;
63
- projectId: string;
64
- tenantId: string;
65
67
  headers: Record<string, string> | null;
66
- subAgentId: string;
67
68
  targetAgentId: string;
68
69
  }[]>;
69
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -209,14 +210,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
210
  headers?: Record<string, string> | null;
210
211
  };
211
212
  }) => Promise<{
213
+ tenantId: string;
214
+ projectId: string;
215
+ subAgentId: string;
212
216
  id: string;
213
217
  createdAt: string;
214
218
  updatedAt: string;
215
219
  agentId: string;
216
- projectId: string;
217
- tenantId: string;
218
220
  headers: Record<string, string> | null;
219
- subAgentId: string;
220
221
  targetAgentId: string;
221
222
  }>;
222
223
  /**
@@ -226,14 +227,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
227
  scopes: SubAgentScopeConfig;
227
228
  targetAgentId: string;
228
229
  }) => Promise<{
230
+ tenantId: string;
231
+ projectId: string;
232
+ subAgentId: string;
229
233
  id: string;
230
234
  createdAt: string;
231
235
  updatedAt: string;
232
236
  agentId: string;
233
- projectId: string;
234
- tenantId: string;
235
237
  headers: Record<string, string> | null;
236
- subAgentId: string;
237
238
  targetAgentId: string;
238
239
  } | undefined>;
239
240
  /**
@@ -247,14 +248,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
248
  headers?: Record<string, string> | null;
248
249
  };
249
250
  }) => Promise<{
251
+ tenantId: string;
252
+ projectId: string;
253
+ subAgentId: string;
250
254
  id: string;
251
255
  createdAt: string;
252
256
  updatedAt: string;
253
257
  agentId: string;
254
- projectId: string;
255
- tenantId: string;
256
258
  headers: Record<string, string> | null;
257
- subAgentId: string;
258
259
  targetAgentId: string;
259
260
  }>;
260
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -1,4 +1,5 @@
1
- import { AgentScopeConfig, ConversationHistoryConfig, PaginationConfig } from "../../types/utility.js";
1
+ import { AgentScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { ConversationHistoryConfig, PaginationConfig } from "../../types/utility.js";
2
3
  import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
3
4
  import "../../index.js";
4
5
  import { SubAgentInsert, SubAgentSelect, SubAgentUpdate } from "../../types/entities.js";
@@ -8,14 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
9
  scopes: AgentScopeConfig;
9
10
  subAgentId: string;
10
11
  }) => Promise<{
12
+ description: string | null;
11
13
  name: string;
14
+ tenantId: string;
15
+ projectId: string;
12
16
  id: string;
13
17
  createdAt: string;
14
18
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
- description: string | null;
19
19
  models: {
20
20
  base?: {
21
21
  model?: string | undefined;
@@ -30,23 +30,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
30
  providerOptions?: Record<string, any> | undefined;
31
31
  } | undefined;
32
32
  } | null;
33
- prompt: string | null;
34
33
  stopWhen: {
35
34
  stepCountIs?: number | undefined;
36
35
  } | null;
36
+ prompt: string | null;
37
+ agentId: string;
37
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
38
39
  } | undefined>;
39
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
41
  scopes: AgentScopeConfig;
41
42
  }) => Promise<{
43
+ description: string | null;
42
44
  name: string;
45
+ tenantId: string;
46
+ projectId: string;
43
47
  id: string;
44
48
  createdAt: string;
45
49
  updatedAt: string;
46
- agentId: string;
47
- projectId: string;
48
- tenantId: string;
49
- description: string | null;
50
50
  models: {
51
51
  base?: {
52
52
  model?: string | undefined;
@@ -61,10 +61,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
61
61
  providerOptions?: Record<string, any> | undefined;
62
62
  } | undefined;
63
63
  } | null;
64
- prompt: string | null;
65
64
  stopWhen: {
66
65
  stepCountIs?: number | undefined;
67
66
  } | null;
67
+ prompt: string | null;
68
+ agentId: string;
68
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
69
70
  }[]>;
70
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -108,14 +109,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
109
  };
109
110
  }>;
110
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
+ description: string | null;
111
113
  name: string;
114
+ tenantId: string;
115
+ projectId: string;
112
116
  id: string;
113
117
  createdAt: string;
114
118
  updatedAt: string;
115
- agentId: string;
116
- projectId: string;
117
- tenantId: string;
118
- description: string | null;
119
119
  models: {
120
120
  base?: {
121
121
  model?: string | undefined;
@@ -130,10 +130,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
130
130
  providerOptions?: Record<string, any> | undefined;
131
131
  } | undefined;
132
132
  } | null;
133
- prompt: string | null;
134
133
  stopWhen: {
135
134
  stepCountIs?: number | undefined;
136
135
  } | null;
136
+ prompt: string | null;
137
+ agentId: string;
137
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
138
139
  }>;
139
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -1,4 +1,5 @@
1
- import { AgentScopeConfig, PaginationConfig, ProjectScopeConfig, ToolMcpConfig, ToolServerCapabilities } from "../../types/utility.js";
1
+ import { AgentScopeConfig, ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { PaginationConfig, ToolMcpConfig, ToolServerCapabilities } from "../../types/utility.js";
2
3
  import "../../types/index.js";
3
4
  import { CredentialStoreRegistry } from "../../credential-stores/CredentialStoreRegistry.js";
4
5
  import "../../credential-stores/index.js";
@@ -18,20 +19,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
19
  scopes: ProjectScopeConfig;
19
20
  toolId: string;
20
21
  }) => Promise<{
22
+ description: string | null;
21
23
  name: string;
24
+ tenantId: string;
25
+ projectId: string;
22
26
  id: string;
23
27
  createdAt: string;
24
28
  updatedAt: string;
25
- projectId: string;
26
- tenantId: string;
27
- description: string | null;
28
- headers: Record<string, string> | null;
29
+ credentialReferenceId: string | null;
29
30
  config: {
30
31
  type: "mcp";
31
32
  mcp: ToolMcpConfig;
32
33
  };
33
- credentialReferenceId: string | null;
34
34
  credentialScope: string;
35
+ headers: Record<string, string> | null;
35
36
  imageUrl: string | null;
36
37
  capabilities: ToolServerCapabilities | null;
37
38
  lastError: string | null;
@@ -76,20 +77,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
76
77
  };
77
78
  }>;
78
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
+ description: string | null;
79
81
  name: string;
82
+ tenantId: string;
83
+ projectId: string;
80
84
  id: string;
81
85
  createdAt: string;
82
86
  updatedAt: string;
83
- projectId: string;
84
- tenantId: string;
85
- description: string | null;
86
- headers: Record<string, string> | null;
87
+ credentialReferenceId: string | null;
87
88
  config: {
88
89
  type: "mcp";
89
90
  mcp: ToolMcpConfig;
90
91
  };
91
- credentialReferenceId: string | null;
92
92
  credentialScope: string;
93
+ headers: Record<string, string> | null;
93
94
  imageUrl: string | null;
94
95
  capabilities: ToolServerCapabilities | null;
95
96
  lastError: string | null;
@@ -133,15 +134,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
134
  needsApproval?: boolean;
134
135
  }> | null;
135
136
  }) => Promise<{
137
+ tenantId: string;
138
+ projectId: string;
139
+ subAgentId: string;
136
140
  id: string;
137
141
  createdAt: string;
138
142
  updatedAt: string;
139
143
  agentId: string;
140
- projectId: string;
141
- tenantId: string;
142
- headers: Record<string, string> | null;
143
- subAgentId: string;
144
144
  toolId: string;
145
+ headers: Record<string, string> | null;
145
146
  selectedTools: string[] | null;
146
147
  toolPolicies: Record<string, {
147
148
  needsApproval?: boolean;
@@ -152,15 +153,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
152
153
  subAgentId: string;
153
154
  toolId: string;
154
155
  }) => Promise<{
156
+ tenantId: string;
157
+ projectId: string;
158
+ subAgentId: string;
155
159
  id: string;
156
160
  createdAt: string;
157
161
  updatedAt: string;
158
162
  agentId: string;
159
- projectId: string;
160
- tenantId: string;
161
- headers: Record<string, string> | null;
162
- subAgentId: string;
163
163
  toolId: string;
164
+ headers: Record<string, string> | null;
164
165
  selectedTools: string[] | null;
165
166
  toolPolicies: Record<string, {
166
167
  needsApproval?: boolean;
@@ -180,15 +181,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
180
181
  }> | null;
181
182
  relationId?: string;
182
183
  }) => Promise<{
184
+ tenantId: string;
185
+ projectId: string;
186
+ subAgentId: string;
183
187
  id: string;
184
188
  createdAt: string;
185
189
  updatedAt: string;
186
190
  agentId: string;
187
- projectId: string;
188
- tenantId: string;
189
- headers: Record<string, string> | null;
190
- subAgentId: string;
191
191
  toolId: string;
192
+ headers: Record<string, string> | null;
192
193
  selectedTools: string[] | null;
193
194
  toolPolicies: Record<string, {
194
195
  needsApproval?: boolean;
@@ -200,20 +201,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
200
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
201
202
  data: ToolInsert;
202
203
  }) => Promise<{
204
+ description: string | null;
203
205
  name: string;
206
+ tenantId: string;
207
+ projectId: string;
204
208
  id: string;
205
209
  createdAt: string;
206
210
  updatedAt: string;
207
- projectId: string;
208
- tenantId: string;
209
- description: string | null;
210
- headers: Record<string, string> | null;
211
+ credentialReferenceId: string | null;
211
212
  config: {
212
213
  type: "mcp";
213
214
  mcp: ToolMcpConfig;
214
215
  };
215
- credentialReferenceId: string | null;
216
216
  credentialScope: string;
217
+ headers: Record<string, string> | null;
217
218
  imageUrl: string | null;
218
219
  capabilities: ToolServerCapabilities | null;
219
220
  lastError: string | null;