@inkeep/agents-core 0.45.3 → 0.46.1

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 (54) hide show
  1. package/dist/auth/auth-schema.d.ts +17 -0
  2. package/dist/auth/auth-schema.js +4 -3
  3. package/dist/auth/auth-validation-schemas.d.ts +180 -146
  4. package/dist/auth/auth.d.ts +56 -22
  5. package/dist/auth/auth.js +15 -1
  6. package/dist/auth/authz/config.d.ts +5 -1
  7. package/dist/auth/authz/config.js +8 -3
  8. package/dist/auth/authz/permissions.js +1 -0
  9. package/dist/auth/init.js +13 -3
  10. package/dist/auth/password-reset-link-store.d.ts +26 -0
  11. package/dist/auth/password-reset-link-store.js +40 -0
  12. package/dist/auth/permissions.d.ts +9 -9
  13. package/dist/auth/spicedb-schema.d.ts +9 -0
  14. package/dist/auth/spicedb-schema.js +24 -0
  15. package/dist/client-exports.d.ts +5 -193
  16. package/dist/client-exports.js +2 -97
  17. package/dist/constants/models.d.ts +2 -0
  18. package/dist/constants/models.js +2 -0
  19. package/dist/constants/signoz-queries.d.ts +2 -0
  20. package/dist/constants/signoz-queries.js +2 -0
  21. package/dist/data-access/index.d.ts +3 -3
  22. package/dist/data-access/index.js +3 -3
  23. package/dist/data-access/manage/agents.d.ts +41 -41
  24. package/dist/data-access/manage/agents.js +4 -4
  25. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  26. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  27. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  28. package/dist/data-access/manage/functionTools.d.ts +10 -10
  29. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  30. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  31. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  32. package/dist/data-access/manage/subAgents.d.ts +27 -27
  33. package/dist/data-access/manage/tools.d.ts +18 -18
  34. package/dist/data-access/manage/tools.js +1 -1
  35. package/dist/data-access/manage/triggers.d.ts +2 -2
  36. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  37. package/dist/data-access/runtime/conversations.d.ts +24 -24
  38. package/dist/data-access/runtime/messages.d.ts +15 -15
  39. package/dist/data-access/runtime/organizations.d.ts +10 -1
  40. package/dist/data-access/runtime/organizations.js +24 -3
  41. package/dist/data-access/runtime/tasks.d.ts +5 -5
  42. package/dist/db/manage/manage-schema.d.ts +382 -382
  43. package/dist/db/runtime/runtime-schema.d.ts +232 -232
  44. package/dist/index.d.ts +5 -4
  45. package/dist/index.js +8 -7
  46. package/dist/types/index.js +1 -1
  47. package/dist/validation/index.d.ts +2 -2
  48. package/dist/validation/index.js +2 -2
  49. package/dist/validation/schemas.d.ts +1781 -1780
  50. package/dist/validation/schemas.js +3 -2
  51. package/drizzle/runtime/0011_colorful_vivisector.sql +50 -0
  52. package/drizzle/runtime/meta/0011_snapshot.json +3088 -0
  53. package/drizzle/runtime/meta/_journal.json +7 -0
  54. package/package.json +9 -2
@@ -10,15 +10,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
- description: string | null;
14
13
  createdAt: string;
15
14
  updatedAt: string;
16
- projectId: string;
17
- tenantId: string;
18
- stopWhen: {
19
- transferCountIs?: number | undefined;
20
- } | null;
21
- prompt: string | null;
15
+ description: string | null;
22
16
  models: {
23
17
  base?: {
24
18
  model?: string | undefined;
@@ -33,8 +27,14 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
27
  providerOptions?: Record<string, any> | undefined;
34
28
  } | undefined;
35
29
  } | null;
30
+ stopWhen: {
31
+ transferCountIs?: number | undefined;
32
+ } | null;
33
+ tenantId: string;
34
+ projectId: string;
36
35
  defaultSubAgentId: string | null;
37
36
  contextConfigId: string | null;
37
+ prompt: string | null;
38
38
  statusUpdates: {
39
39
  enabled?: boolean | undefined;
40
40
  numEvents?: number | undefined;
@@ -56,15 +56,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
56
56
  }) => Promise<{
57
57
  id: string;
58
58
  name: string;
59
- description: string | null;
60
59
  createdAt: string;
61
60
  updatedAt: string;
62
- projectId: string;
63
- tenantId: string;
64
- stopWhen: {
65
- transferCountIs?: number | undefined;
66
- } | null;
67
- prompt: string | null;
61
+ description: string | null;
68
62
  models: {
69
63
  base?: {
70
64
  model?: string | undefined;
@@ -79,8 +73,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
79
73
  providerOptions?: Record<string, any> | undefined;
80
74
  } | undefined;
81
75
  } | null;
76
+ stopWhen: {
77
+ transferCountIs?: number | undefined;
78
+ } | null;
79
+ tenantId: string;
80
+ projectId: string;
82
81
  defaultSubAgentId: string | null;
83
82
  contextConfigId: string | null;
83
+ prompt: string | null;
84
84
  statusUpdates: {
85
85
  enabled?: boolean | undefined;
86
86
  numEvents?: number | undefined;
@@ -99,17 +99,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
99
99
  defaultSubAgent: {
100
100
  id: string;
101
101
  name: string;
102
- description: string | null;
103
102
  createdAt: string;
104
103
  updatedAt: string;
105
- projectId: string;
106
- tenantId: string;
107
- agentId: string;
108
- stopWhen: {
109
- stepCountIs?: number | undefined;
110
- } | null;
111
- prompt: string | null;
112
- conversationHistoryConfig: ConversationHistoryConfig | null;
104
+ description: string | null;
113
105
  models: {
114
106
  base?: {
115
107
  model?: string | undefined;
@@ -124,6 +116,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
124
116
  providerOptions?: Record<string, any> | undefined;
125
117
  } | undefined;
126
118
  } | null;
119
+ stopWhen: {
120
+ stepCountIs?: number | undefined;
121
+ } | null;
122
+ tenantId: string;
123
+ projectId: string;
124
+ prompt: string | null;
125
+ agentId: string;
126
+ conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
129
129
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -131,15 +131,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
131
131
  }) => Promise<{
132
132
  id: string;
133
133
  name: string;
134
- description: string | null;
135
134
  createdAt: string;
136
135
  updatedAt: string;
137
- projectId: string;
138
- tenantId: string;
139
- stopWhen: {
140
- transferCountIs?: number | undefined;
141
- } | null;
142
- prompt: string | null;
136
+ description: string | null;
143
137
  models: {
144
138
  base?: {
145
139
  model?: string | undefined;
@@ -154,8 +148,14 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
154
148
  providerOptions?: Record<string, any> | undefined;
155
149
  } | undefined;
156
150
  } | null;
151
+ stopWhen: {
152
+ transferCountIs?: number | undefined;
153
+ } | null;
154
+ tenantId: string;
155
+ projectId: string;
157
156
  defaultSubAgentId: string | null;
158
157
  contextConfigId: string | null;
158
+ prompt: string | null;
159
159
  statusUpdates: {
160
160
  enabled?: boolean | undefined;
161
161
  numEvents?: number | undefined;
@@ -233,29 +233,23 @@ type AvailableAgentInfo = {
233
233
  projectId: string;
234
234
  };
235
235
  /**
236
- * List agents across multiple project branches for a tenant.
236
+ * List agents across multiple project main branches for a tenant.
237
237
  *
238
- * Use this when you need to query agents across projects without middleware-provided db.
238
+ * Uses Dolt AS OF queries against each project's main branch without checkout.
239
239
  *
240
240
  * @param db - Database client
241
241
  * @param params - Tenant and project IDs
242
242
  */
243
- declare function listAgentsAcrossProjectBranches(db: AgentsManageDatabaseClient, params: {
243
+ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseClient, params: {
244
244
  tenantId: string;
245
245
  projectIds: string[];
246
246
  }): Promise<AvailableAgentInfo[]>;
247
247
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
248
248
  id: string;
249
249
  name: string;
250
- description: string | null;
251
250
  createdAt: string;
252
251
  updatedAt: string;
253
- projectId: string;
254
- tenantId: string;
255
- stopWhen: {
256
- transferCountIs?: number | undefined;
257
- } | null;
258
- prompt: string | null;
252
+ description: string | null;
259
253
  models: {
260
254
  base?: {
261
255
  model?: string | undefined;
@@ -270,8 +264,14 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
270
264
  providerOptions?: Record<string, any> | undefined;
271
265
  } | undefined;
272
266
  } | null;
267
+ stopWhen: {
268
+ transferCountIs?: number | undefined;
269
+ } | null;
270
+ tenantId: string;
271
+ projectId: string;
273
272
  defaultSubAgentId: string | null;
274
273
  contextConfigId: string | null;
274
+ prompt: string | null;
275
275
  statusUpdates: {
276
276
  enabled?: boolean | undefined;
277
277
  numEvents?: number | undefined;
@@ -382,4 +382,4 @@ declare const upsertAgent: (db: AgentsManageDatabaseClient) => (params: {
382
382
  data: AgentInsert;
383
383
  }) => Promise<AgentSelect | null>;
384
384
  //#endregion
385
- export { AvailableAgentInfo, createAgent, deleteAgent, fetchComponentRelationships, getAgentById, getAgentSubAgentInfos, getAgentWithDefaultSubAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, listAgents, listAgentsAcrossProjectBranches, listAgentsPaginated, updateAgent, upsertAgent };
385
+ export { AvailableAgentInfo, createAgent, deleteAgent, fetchComponentRelationships, getAgentById, getAgentSubAgentInfos, getAgentWithDefaultSubAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, listAgents, listAgentsAcrossProjectMainBranches, listAgentsPaginated, updateAgent, upsertAgent };
@@ -47,14 +47,14 @@ const listAgentsPaginated = (db) => async (params) => {
47
47
  };
48
48
  const agentsLogger = getLogger("agents-data-access");
49
49
  /**
50
- * List agents across multiple project branches for a tenant.
50
+ * List agents across multiple project main branches for a tenant.
51
51
  *
52
- * Use this when you need to query agents across projects without middleware-provided db.
52
+ * Uses Dolt AS OF queries against each project's main branch without checkout.
53
53
  *
54
54
  * @param db - Database client
55
55
  * @param params - Tenant and project IDs
56
56
  */
57
- async function listAgentsAcrossProjectBranches(db, params) {
57
+ async function listAgentsAcrossProjectMainBranches(db, params) {
58
58
  const { tenantId, projectIds } = params;
59
59
  const allAgents = [];
60
60
  for (const projectId of projectIds) try {
@@ -558,4 +558,4 @@ const upsertAgent = (db) => async (params) => {
558
558
  };
559
559
 
560
560
  //#endregion
561
- export { createAgent, deleteAgent, fetchComponentRelationships, getAgentById, getAgentSubAgentInfos, getAgentWithDefaultSubAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, listAgents, listAgentsAcrossProjectBranches, listAgentsPaginated, updateAgent, upsertAgent };
561
+ export { createAgent, deleteAgent, fetchComponentRelationships, getAgentById, getAgentSubAgentInfos, getAgentWithDefaultSubAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, listAgents, listAgentsAcrossProjectMainBranches, listAgentsPaginated, updateAgent, upsertAgent };
@@ -9,11 +9,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  }) => Promise<{
10
10
  id: string;
11
11
  name: string;
12
- description: string | null;
13
12
  createdAt: string;
14
13
  updatedAt: string;
15
- projectId: string;
14
+ description: string | null;
16
15
  tenantId: string;
16
+ projectId: string;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
19
19
  component: string;
@@ -51,11 +51,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
52
  id: string;
53
53
  name: string;
54
- description: string | null;
55
54
  createdAt: string;
56
55
  updatedAt: string;
57
- projectId: string;
56
+ description: string | null;
58
57
  tenantId: string;
58
+ projectId: string;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -106,8 +106,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
106
106
  }) => Promise<{
107
107
  id: string;
108
108
  createdAt: string;
109
- projectId: string;
110
109
  tenantId: string;
110
+ projectId: string;
111
111
  agentId: string;
112
112
  subAgentId: string;
113
113
  artifactComponentId: string;
@@ -149,8 +149,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
149
149
  }) => Promise<{
150
150
  id: string;
151
151
  createdAt: string;
152
- projectId: string;
153
152
  tenantId: string;
153
+ projectId: string;
154
154
  agentId: string;
155
155
  subAgentId: string;
156
156
  artifactComponentId: string;
@@ -11,8 +11,8 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- projectId: string;
15
14
  tenantId: string;
15
+ projectId: string;
16
16
  agentId: string;
17
17
  headersSchema: unknown;
18
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -23,8 +23,8 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
23
23
  id: string;
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
- projectId: string;
27
26
  tenantId: string;
27
+ projectId: string;
28
28
  agentId: string;
29
29
  headersSchema: unknown;
30
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -45,8 +45,8 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
45
45
  id: string;
46
46
  createdAt: string;
47
47
  updatedAt: string;
48
- projectId: string;
49
48
  tenantId: string;
49
+ projectId: string;
50
50
  agentId: string;
51
51
  headersSchema: unknown;
52
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -85,8 +85,8 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
85
85
  id: string;
86
86
  createdAt: string;
87
87
  updatedAt: string;
88
- projectId: string;
89
88
  tenantId: string;
89
+ projectId: string;
90
90
  agentId: string;
91
91
  headersSchema: unknown;
92
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -66,8 +66,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  }) => Promise<{
67
67
  id: string;
68
68
  createdAt: string;
69
- projectId: string;
70
69
  tenantId: string;
70
+ projectId: string;
71
71
  agentId: string;
72
72
  subAgentId: string;
73
73
  dataComponentId: string;
@@ -108,8 +108,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  }) => Promise<{
109
109
  id: string;
110
110
  createdAt: string;
111
- projectId: string;
112
111
  tenantId: string;
112
+ projectId: string;
113
113
  agentId: string;
114
114
  subAgentId: string;
115
115
  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;
59
58
  createdAt: string;
60
59
  updatedAt: string;
61
- projectId: string;
60
+ description: string | null;
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;
101
100
  createdAt: string;
102
101
  updatedAt: string;
103
- projectId: string;
102
+ description: string | null;
104
103
  tenantId: string;
104
+ projectId: string;
105
105
  agentId: string;
106
106
  functionId: string;
107
107
  }>;
@@ -164,14 +164,14 @@ 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
- subAgentId: string;
171
- functionToolId: string;
172
170
  toolPolicies: Record<string, {
173
171
  needsApproval?: boolean;
174
172
  }> | null;
173
+ subAgentId: string;
174
+ functionToolId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -229,14 +229,14 @@ 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
- subAgentId: string;
236
- functionToolId: string;
237
235
  toolPolicies: Record<string, {
238
236
  needsApproval?: boolean;
239
237
  }> | null;
238
+ subAgentId: string;
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 };
@@ -11,12 +11,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- projectId: string;
14
+ headers: Record<string, string> | null;
15
15
  tenantId: string;
16
+ projectId: string;
16
17
  agentId: string;
17
- headers: Record<string, string> | null;
18
- subAgentId: string;
19
18
  externalAgentId: string;
19
+ subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -46,12 +46,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- projectId: string;
49
+ headers: Record<string, string> | null;
50
50
  tenantId: string;
51
+ projectId: string;
51
52
  agentId: string;
52
- headers: Record<string, string> | null;
53
- subAgentId: string;
54
53
  externalAgentId: string;
54
+ subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
@@ -59,12 +59,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- projectId: string;
62
+ headers: Record<string, string> | null;
63
63
  tenantId: string;
64
+ projectId: string;
64
65
  agentId: string;
65
- headers: Record<string, string> | null;
66
- subAgentId: string;
67
66
  externalAgentId: string;
67
+ subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -182,12 +182,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
182
182
  id: string;
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
- projectId: string;
185
+ headers: Record<string, string> | null;
186
186
  tenantId: string;
187
+ projectId: string;
187
188
  agentId: string;
188
- headers: Record<string, string> | null;
189
- subAgentId: string;
190
189
  externalAgentId: string;
190
+ subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -199,12 +199,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
199
199
  id: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
- projectId: string;
202
+ headers: Record<string, string> | null;
203
203
  tenantId: string;
204
+ projectId: string;
204
205
  agentId: string;
205
- headers: Record<string, string> | null;
206
- subAgentId: string;
207
206
  externalAgentId: string;
207
+ subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -220,12 +220,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
220
220
  id: string;
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
- projectId: string;
223
+ headers: Record<string, string> | null;
224
224
  tenantId: string;
225
+ projectId: string;
225
226
  agentId: string;
226
- headers: Record<string, string> | null;
227
- subAgentId: string;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -11,8 +11,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- projectId: string;
15
14
  tenantId: string;
15
+ projectId: string;
16
16
  agentId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
@@ -46,8 +46,8 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- projectId: string;
50
49
  tenantId: string;
50
+ projectId: string;
51
51
  agentId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
@@ -59,8 +59,8 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- projectId: string;
63
62
  tenantId: string;
63
+ projectId: string;
64
64
  agentId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
@@ -128,8 +128,8 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
128
128
  id: string;
129
129
  createdAt: string;
130
130
  updatedAt: string;
131
- projectId: string;
132
131
  tenantId: string;
132
+ projectId: string;
133
133
  agentId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
@@ -147,8 +147,8 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
- projectId: string;
151
150
  tenantId: string;
151
+ projectId: string;
152
152
  agentId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
@@ -161,8 +161,8 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
161
161
  id: string;
162
162
  createdAt: string;
163
163
  updatedAt: string;
164
- projectId: string;
165
164
  tenantId: string;
165
+ projectId: string;
166
166
  agentId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
@@ -206,15 +206,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- projectId: string;
209
+ headers: Record<string, string> | null;
210
210
  tenantId: string;
211
+ projectId: string;
211
212
  agentId: string;
212
- headers: Record<string, string> | null;
213
213
  toolId: string;
214
- subAgentId: string;
215
214
  toolPolicies: Record<string, {
216
215
  needsApproval?: boolean;
217
216
  }> | null;
217
+ subAgentId: string;
218
218
  selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -250,15 +250,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- projectId: string;
253
+ headers: Record<string, string> | null;
254
254
  tenantId: string;
255
+ projectId: string;
255
256
  agentId: string;
256
- headers: Record<string, string> | null;
257
257
  toolId: string;
258
- subAgentId: string;
259
258
  toolPolicies: Record<string, {
260
259
  needsApproval?: boolean;
261
260
  }> | null;
261
+ subAgentId: string;
262
262
  selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,10 +11,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- projectId: string;
14
+ headers: Record<string, string> | null;
15
15
  tenantId: string;
16
+ projectId: string;
16
17
  agentId: string;
17
- headers: Record<string, string> | null;
18
18
  subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
@@ -46,10 +46,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- projectId: string;
49
+ headers: Record<string, string> | null;
50
50
  tenantId: string;
51
+ projectId: string;
51
52
  agentId: string;
52
- headers: Record<string, string> | null;
53
53
  subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
@@ -59,10 +59,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- projectId: string;
62
+ headers: Record<string, string> | null;
63
63
  tenantId: string;
64
+ projectId: string;
64
65
  agentId: string;
65
- headers: Record<string, string> | null;
66
66
  subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
@@ -212,10 +212,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
212
212
  id: string;
213
213
  createdAt: string;
214
214
  updatedAt: string;
215
- projectId: string;
215
+ headers: Record<string, string> | null;
216
216
  tenantId: string;
217
+ projectId: string;
217
218
  agentId: string;
218
- headers: Record<string, string> | null;
219
219
  subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
@@ -229,10 +229,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- projectId: string;
232
+ headers: Record<string, string> | null;
233
233
  tenantId: string;
234
+ projectId: string;
234
235
  agentId: string;
235
- headers: Record<string, string> | null;
236
236
  subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
@@ -250,10 +250,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- projectId: string;
253
+ headers: Record<string, string> | null;
254
254
  tenantId: string;
255
+ projectId: string;
255
256
  agentId: string;
256
- headers: Record<string, string> | null;
257
257
  subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;