@inkeep/agents-core 0.0.0-dev-20260122191720 → 0.0.0-dev-20260122200302

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.
@@ -1,9 +1,9 @@
1
1
  import { z } from "@hono/zod-openapi";
2
2
  import * as drizzle_orm_pg_core80 from "drizzle-orm/pg-core";
3
- import * as drizzle_zod3 from "drizzle-zod";
3
+ import * as drizzle_zod0 from "drizzle-zod";
4
4
 
5
5
  //#region src/auth/auth-validation-schemas.d.ts
6
- declare const UserSelectSchema: drizzle_zod3.BuildSchema<"select", {
6
+ declare const UserSelectSchema: drizzle_zod0.BuildSchema<"select", {
7
7
  id: drizzle_orm_pg_core80.PgColumn<{
8
8
  name: "id";
9
9
  tableName: "user";
@@ -124,7 +124,7 @@ declare const UserSelectSchema: drizzle_zod3.BuildSchema<"select", {
124
124
  generated: undefined;
125
125
  }, {}, {}>;
126
126
  }, undefined, undefined>;
127
- declare const UserInsertSchema: drizzle_zod3.BuildSchema<"insert", {
127
+ declare const UserInsertSchema: drizzle_zod0.BuildSchema<"insert", {
128
128
  id: drizzle_orm_pg_core80.PgColumn<{
129
129
  name: "id";
130
130
  tableName: "user";
@@ -245,7 +245,7 @@ declare const UserInsertSchema: drizzle_zod3.BuildSchema<"insert", {
245
245
  generated: undefined;
246
246
  }, {}, {}>;
247
247
  }, undefined, undefined>;
248
- declare const SessionSelectSchema: drizzle_zod3.BuildSchema<"select", {
248
+ declare const SessionSelectSchema: drizzle_zod0.BuildSchema<"select", {
249
249
  id: drizzle_orm_pg_core80.PgColumn<{
250
250
  name: "id";
251
251
  tableName: "session";
@@ -400,7 +400,7 @@ declare const SessionSelectSchema: drizzle_zod3.BuildSchema<"select", {
400
400
  generated: undefined;
401
401
  }, {}, {}>;
402
402
  }, undefined, undefined>;
403
- declare const SessionInsertSchema: drizzle_zod3.BuildSchema<"insert", {
403
+ declare const SessionInsertSchema: drizzle_zod0.BuildSchema<"insert", {
404
404
  id: drizzle_orm_pg_core80.PgColumn<{
405
405
  name: "id";
406
406
  tableName: "session";
@@ -555,7 +555,7 @@ declare const SessionInsertSchema: drizzle_zod3.BuildSchema<"insert", {
555
555
  generated: undefined;
556
556
  }, {}, {}>;
557
557
  }, undefined, undefined>;
558
- declare const AccountSelectSchema: drizzle_zod3.BuildSchema<"select", {
558
+ declare const AccountSelectSchema: drizzle_zod0.BuildSchema<"select", {
559
559
  id: drizzle_orm_pg_core80.PgColumn<{
560
560
  name: "id";
561
561
  tableName: "account";
@@ -778,7 +778,7 @@ declare const AccountSelectSchema: drizzle_zod3.BuildSchema<"select", {
778
778
  generated: undefined;
779
779
  }, {}, {}>;
780
780
  }, undefined, undefined>;
781
- declare const AccountInsertSchema: drizzle_zod3.BuildSchema<"insert", {
781
+ declare const AccountInsertSchema: drizzle_zod0.BuildSchema<"insert", {
782
782
  id: drizzle_orm_pg_core80.PgColumn<{
783
783
  name: "id";
784
784
  tableName: "account";
@@ -1001,7 +1001,7 @@ declare const AccountInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1001
1001
  generated: undefined;
1002
1002
  }, {}, {}>;
1003
1003
  }, undefined, undefined>;
1004
- declare const OrganizationSelectSchema: drizzle_zod3.BuildSchema<"select", {
1004
+ declare const OrganizationSelectSchema: drizzle_zod0.BuildSchema<"select", {
1005
1005
  id: drizzle_orm_pg_core80.PgColumn<{
1006
1006
  name: "id";
1007
1007
  tableName: "organization";
@@ -1105,7 +1105,7 @@ declare const OrganizationSelectSchema: drizzle_zod3.BuildSchema<"select", {
1105
1105
  generated: undefined;
1106
1106
  }, {}, {}>;
1107
1107
  }, undefined, undefined>;
1108
- declare const OrganizationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1108
+ declare const OrganizationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1109
1109
  id: drizzle_orm_pg_core80.PgColumn<{
1110
1110
  name: "id";
1111
1111
  tableName: "organization";
@@ -1209,7 +1209,7 @@ declare const OrganizationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1209
1209
  generated: undefined;
1210
1210
  }, {}, {}>;
1211
1211
  }, undefined, undefined>;
1212
- declare const MemberSelectSchema: drizzle_zod3.BuildSchema<"select", {
1212
+ declare const MemberSelectSchema: drizzle_zod0.BuildSchema<"select", {
1213
1213
  id: drizzle_orm_pg_core80.PgColumn<{
1214
1214
  name: "id";
1215
1215
  tableName: "member";
@@ -1296,7 +1296,7 @@ declare const MemberSelectSchema: drizzle_zod3.BuildSchema<"select", {
1296
1296
  generated: undefined;
1297
1297
  }, {}, {}>;
1298
1298
  }, undefined, undefined>;
1299
- declare const MemberInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1299
+ declare const MemberInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1300
1300
  id: drizzle_orm_pg_core80.PgColumn<{
1301
1301
  name: "id";
1302
1302
  tableName: "member";
@@ -1383,7 +1383,7 @@ declare const MemberInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1383
1383
  generated: undefined;
1384
1384
  }, {}, {}>;
1385
1385
  }, undefined, undefined>;
1386
- declare const InvitationSelectSchema: drizzle_zod3.BuildSchema<"select", {
1386
+ declare const InvitationSelectSchema: drizzle_zod0.BuildSchema<"select", {
1387
1387
  id: drizzle_orm_pg_core80.PgColumn<{
1388
1388
  name: "id";
1389
1389
  tableName: "invitation";
@@ -1521,7 +1521,7 @@ declare const InvitationSelectSchema: drizzle_zod3.BuildSchema<"select", {
1521
1521
  generated: undefined;
1522
1522
  }, {}, {}>;
1523
1523
  }, undefined, undefined>;
1524
- declare const InvitationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1524
+ declare const InvitationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1525
1525
  id: drizzle_orm_pg_core80.PgColumn<{
1526
1526
  name: "id";
1527
1527
  tableName: "invitation";
@@ -1659,7 +1659,7 @@ declare const InvitationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1659
1659
  generated: undefined;
1660
1660
  }, {}, {}>;
1661
1661
  }, undefined, undefined>;
1662
- declare const DeviceCodeSelectSchema: drizzle_zod3.BuildSchema<"select", {
1662
+ declare const DeviceCodeSelectSchema: drizzle_zod0.BuildSchema<"select", {
1663
1663
  id: drizzle_orm_pg_core80.PgColumn<{
1664
1664
  name: "id";
1665
1665
  tableName: "device_code";
@@ -1831,7 +1831,7 @@ declare const DeviceCodeSelectSchema: drizzle_zod3.BuildSchema<"select", {
1831
1831
  generated: undefined;
1832
1832
  }, {}, {}>;
1833
1833
  }, undefined, undefined>;
1834
- declare const DeviceCodeInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1834
+ declare const DeviceCodeInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1835
1835
  id: drizzle_orm_pg_core80.PgColumn<{
1836
1836
  name: "id";
1837
1837
  tableName: "device_code";
@@ -2003,7 +2003,7 @@ declare const DeviceCodeInsertSchema: drizzle_zod3.BuildSchema<"insert", {
2003
2003
  generated: undefined;
2004
2004
  }, {}, {}>;
2005
2005
  }, undefined, undefined>;
2006
- declare const VerificationSelectSchema: drizzle_zod3.BuildSchema<"select", {
2006
+ declare const VerificationSelectSchema: drizzle_zod0.BuildSchema<"select", {
2007
2007
  id: drizzle_orm_pg_core80.PgColumn<{
2008
2008
  name: "id";
2009
2009
  tableName: "verification";
@@ -2107,7 +2107,7 @@ declare const VerificationSelectSchema: drizzle_zod3.BuildSchema<"select", {
2107
2107
  generated: undefined;
2108
2108
  }, {}, {}>;
2109
2109
  }, undefined, undefined>;
2110
- declare const VerificationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
2110
+ declare const VerificationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
2111
2111
  id: drizzle_orm_pg_core80.PgColumn<{
2112
2112
  name: "id";
2113
2113
  tableName: "verification";
@@ -11,11 +11,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
- name: string;
15
- description: string | null;
16
- prompt: string | null;
17
14
  createdAt: string;
15
+ name: string;
18
16
  updatedAt: string;
17
+ description: string | null;
19
18
  models: {
20
19
  base?: {
21
20
  model?: string | undefined;
@@ -35,6 +34,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
35
34
  } | null;
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;
@@ -57,11 +57,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
57
57
  tenantId: string;
58
58
  projectId: string;
59
59
  id: string;
60
- name: string;
61
- description: string | null;
62
- prompt: string | null;
63
60
  createdAt: string;
61
+ name: string;
64
62
  updatedAt: string;
63
+ description: string | null;
65
64
  models: {
66
65
  base?: {
67
66
  model?: string | undefined;
@@ -81,6 +80,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
81
80
  } | null;
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;
@@ -100,12 +100,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
100
100
  tenantId: string;
101
101
  projectId: string;
102
102
  id: string;
103
- name: string;
104
- description: string | null;
105
- prompt: string | null;
106
- agentId: string;
107
103
  createdAt: string;
104
+ name: string;
108
105
  updatedAt: string;
106
+ description: string | null;
109
107
  models: {
110
108
  base?: {
111
109
  model?: string | undefined;
@@ -123,6 +121,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
123
121
  stopWhen: {
124
122
  stepCountIs?: number | undefined;
125
123
  } | null;
124
+ agentId: string;
125
+ prompt: string | null;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
@@ -132,11 +132,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
132
132
  tenantId: string;
133
133
  projectId: string;
134
134
  id: string;
135
- name: string;
136
- description: string | null;
137
- prompt: string | null;
138
135
  createdAt: string;
136
+ name: string;
139
137
  updatedAt: string;
138
+ description: string | null;
140
139
  models: {
141
140
  base?: {
142
141
  model?: string | undefined;
@@ -156,6 +155,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
156
155
  } | null;
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;
@@ -231,11 +231,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
231
231
  tenantId: string;
232
232
  projectId: string;
233
233
  id: string;
234
- name: string;
235
- description: string | null;
236
- prompt: string | null;
237
234
  createdAt: string;
235
+ name: string;
238
236
  updatedAt: string;
237
+ description: string | null;
239
238
  models: {
240
239
  base?: {
241
240
  model?: string | undefined;
@@ -255,6 +254,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
255
254
  } | null;
256
255
  defaultSubAgentId: string | null;
257
256
  contextConfigId: string | null;
257
+ prompt: string | null;
258
258
  statusUpdates: {
259
259
  enabled?: boolean | undefined;
260
260
  numEvents?: number | undefined;
@@ -10,10 +10,10 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
10
10
  tenantId: string;
11
11
  projectId: string;
12
12
  id: string;
13
- name: string;
14
- description: string | null;
15
13
  createdAt: string;
14
+ name: string;
16
15
  updatedAt: string;
16
+ description: string | null;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
19
19
  component: string;
@@ -52,10 +52,10 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
52
52
  tenantId: string;
53
53
  projectId: string;
54
54
  id: string;
55
- name: string;
56
- description: string | null;
57
55
  createdAt: string;
56
+ name: string;
58
57
  updatedAt: string;
58
+ description: string | null;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -107,8 +107,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
107
107
  tenantId: string;
108
108
  projectId: string;
109
109
  id: string;
110
- agentId: string;
111
110
  createdAt: string;
111
+ agentId: string;
112
112
  subAgentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
@@ -150,8 +150,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
150
150
  tenantId: string;
151
151
  projectId: string;
152
152
  id: string;
153
- agentId: string;
154
153
  createdAt: string;
154
+ agentId: string;
155
155
  subAgentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
@@ -11,9 +11,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
11
11
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
- agentId: string;
15
14
  createdAt: string;
16
15
  updatedAt: string;
16
+ agentId: string;
17
17
  headersSchema: unknown;
18
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
19
  } | undefined>;
@@ -23,9 +23,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
23
23
  tenantId: string;
24
24
  projectId: string;
25
25
  id: string;
26
- agentId: string;
27
26
  createdAt: string;
28
27
  updatedAt: string;
28
+ agentId: string;
29
29
  headersSchema: unknown;
30
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
31
  }[]>;
@@ -45,9 +45,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
45
45
  tenantId: string;
46
46
  projectId: string;
47
47
  id: string;
48
- agentId: string;
49
48
  createdAt: string;
50
49
  updatedAt: string;
50
+ agentId: string;
51
51
  headersSchema: unknown;
52
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
53
  }>;
@@ -85,9 +85,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
85
85
  tenantId: string;
86
86
  projectId: string;
87
87
  id: string;
88
- agentId: string;
89
88
  createdAt: string;
90
89
  updatedAt: string;
90
+ agentId: string;
91
91
  headersSchema: unknown;
92
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
93
  }>;
@@ -67,8 +67,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  tenantId: string;
68
68
  projectId: string;
69
69
  id: string;
70
- agentId: string;
71
70
  createdAt: string;
71
+ agentId: string;
72
72
  subAgentId: string;
73
73
  dataComponentId: string;
74
74
  }>;
@@ -109,8 +109,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  tenantId: string;
110
110
  projectId: string;
111
111
  id: string;
112
- agentId: string;
113
112
  createdAt: string;
113
+ agentId: string;
114
114
  subAgentId: string;
115
115
  dataComponentId: string;
116
116
  } | null>;
@@ -56,12 +56,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
56
56
  tenantId: string;
57
57
  projectId: string;
58
58
  id: string;
59
- name: string;
60
- description: string | null;
61
- agentId: string;
62
59
  createdAt: string;
60
+ name: string;
63
61
  updatedAt: string;
62
+ description: string | null;
64
63
  functionId: string;
64
+ agentId: string;
65
65
  }>;
66
66
  /**
67
67
  * Update a function tool (agent-scoped)
@@ -98,12 +98,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
98
98
  tenantId: string;
99
99
  projectId: string;
100
100
  id: string;
101
- name: string;
102
- description: string | null;
103
- agentId: string;
104
101
  createdAt: string;
102
+ name: string;
105
103
  updatedAt: string;
104
+ description: string | null;
106
105
  functionId: string;
106
+ agentId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
109
109
  scopes: {
@@ -155,11 +155,11 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
155
155
  tenantId: string;
156
156
  projectId: string;
157
157
  id: string;
158
- agentId: string;
159
158
  createdAt: string;
160
159
  updatedAt: string;
161
- subAgentId: string;
160
+ agentId: string;
162
161
  functionToolId: string;
162
+ subAgentId: string;
163
163
  }>;
164
164
  /**
165
165
  * Update an agent-function tool relation
@@ -211,11 +211,11 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
211
211
  tenantId: string;
212
212
  projectId: string;
213
213
  id: string;
214
- agentId: string;
215
214
  createdAt: string;
216
215
  updatedAt: string;
217
- subAgentId: string;
216
+ agentId: string;
218
217
  functionToolId: string;
218
+ subAgentId: string;
219
219
  }>;
220
220
  //#endregion
221
221
  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
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
- agentId: string;
15
14
  createdAt: string;
16
15
  updatedAt: string;
17
16
  headers: Record<string, string> | null;
18
- externalAgentId: string;
17
+ agentId: string;
19
18
  subAgentId: string;
19
+ externalAgentId: 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
  tenantId: string;
47
47
  projectId: string;
48
48
  id: string;
49
- agentId: string;
50
49
  createdAt: string;
51
50
  updatedAt: string;
52
51
  headers: Record<string, string> | null;
53
- externalAgentId: string;
52
+ agentId: string;
54
53
  subAgentId: string;
54
+ externalAgentId: 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
  tenantId: string;
60
60
  projectId: string;
61
61
  id: string;
62
- agentId: string;
63
62
  createdAt: string;
64
63
  updatedAt: string;
65
64
  headers: Record<string, string> | null;
66
- externalAgentId: string;
65
+ agentId: string;
67
66
  subAgentId: string;
67
+ externalAgentId: 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
  tenantId: string;
183
183
  projectId: string;
184
184
  id: string;
185
- agentId: string;
186
185
  createdAt: string;
187
186
  updatedAt: string;
188
187
  headers: Record<string, string> | null;
189
- externalAgentId: string;
188
+ agentId: string;
190
189
  subAgentId: string;
190
+ externalAgentId: 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
  tenantId: string;
200
200
  projectId: string;
201
201
  id: string;
202
- agentId: string;
203
202
  createdAt: string;
204
203
  updatedAt: string;
205
204
  headers: Record<string, string> | null;
206
- externalAgentId: string;
205
+ agentId: string;
207
206
  subAgentId: string;
207
+ externalAgentId: 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
  tenantId: string;
221
221
  projectId: string;
222
222
  id: string;
223
- agentId: string;
224
223
  createdAt: string;
225
224
  updatedAt: string;
226
225
  headers: Record<string, string> | null;
227
- externalAgentId: string;
226
+ agentId: string;
228
227
  subAgentId: string;
228
+ externalAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -11,9 +11,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
- agentId: string;
15
14
  createdAt: string;
16
15
  updatedAt: string;
16
+ agentId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -46,9 +46,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  tenantId: string;
47
47
  projectId: string;
48
48
  id: string;
49
- agentId: string;
50
49
  createdAt: string;
51
50
  updatedAt: string;
51
+ agentId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -59,9 +59,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  tenantId: string;
60
60
  projectId: string;
61
61
  id: string;
62
- agentId: string;
63
62
  createdAt: string;
64
63
  updatedAt: string;
64
+ agentId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -128,9 +128,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
128
128
  tenantId: string;
129
129
  projectId: string;
130
130
  id: string;
131
- agentId: string;
132
131
  createdAt: string;
133
132
  updatedAt: string;
133
+ agentId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -147,9 +147,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  tenantId: string;
148
148
  projectId: string;
149
149
  id: string;
150
- agentId: string;
151
150
  createdAt: string;
152
151
  updatedAt: string;
152
+ agentId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -161,9 +161,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
161
161
  tenantId: string;
162
162
  projectId: string;
163
163
  id: string;
164
- agentId: string;
165
164
  createdAt: string;
166
165
  updatedAt: string;
166
+ agentId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -206,16 +206,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  tenantId: string;
207
207
  projectId: string;
208
208
  id: string;
209
- agentId: string;
210
209
  createdAt: string;
211
210
  updatedAt: string;
212
- toolId: string;
213
211
  headers: Record<string, string> | null;
212
+ agentId: string;
213
+ subAgentId: string;
214
+ toolId: string;
215
+ selectedTools: string[] | null;
214
216
  toolPolicies: Record<string, {
215
217
  needsApproval?: boolean;
216
218
  }> | null;
217
- subAgentId: string;
218
- selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -250,16 +250,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  tenantId: string;
251
251
  projectId: string;
252
252
  id: string;
253
- agentId: string;
254
253
  createdAt: string;
255
254
  updatedAt: string;
256
- toolId: string;
257
255
  headers: Record<string, string> | null;
256
+ agentId: string;
257
+ subAgentId: string;
258
+ toolId: string;
259
+ selectedTools: string[] | null;
258
260
  toolPolicies: Record<string, {
259
261
  needsApproval?: boolean;
260
262
  }> | null;
261
- subAgentId: string;
262
- selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -11,10 +11,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
- agentId: string;
15
14
  createdAt: string;
16
15
  updatedAt: string;
17
16
  headers: Record<string, string> | null;
17
+ agentId: string;
18
18
  subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
@@ -46,10 +46,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  tenantId: string;
47
47
  projectId: string;
48
48
  id: string;
49
- agentId: string;
50
49
  createdAt: string;
51
50
  updatedAt: string;
52
51
  headers: Record<string, string> | null;
52
+ agentId: string;
53
53
  subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
@@ -59,10 +59,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  tenantId: string;
60
60
  projectId: string;
61
61
  id: string;
62
- agentId: string;
63
62
  createdAt: string;
64
63
  updatedAt: string;
65
64
  headers: Record<string, string> | null;
65
+ agentId: string;
66
66
  subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
@@ -212,10 +212,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
212
212
  tenantId: string;
213
213
  projectId: string;
214
214
  id: string;
215
- agentId: string;
216
215
  createdAt: string;
217
216
  updatedAt: string;
218
217
  headers: Record<string, string> | null;
218
+ agentId: string;
219
219
  subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
@@ -229,10 +229,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
229
229
  tenantId: string;
230
230
  projectId: string;
231
231
  id: string;
232
- agentId: string;
233
232
  createdAt: string;
234
233
  updatedAt: string;
235
234
  headers: Record<string, string> | null;
235
+ agentId: string;
236
236
  subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
@@ -250,10 +250,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
250
250
  tenantId: string;
251
251
  projectId: string;
252
252
  id: string;
253
- agentId: string;
254
253
  createdAt: string;
255
254
  updatedAt: string;
256
255
  headers: Record<string, string> | null;
256
+ agentId: string;
257
257
  subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;