@inkeep/agents-core 0.0.0-dev-20260120193424 → 0.0.0-dev-20260120221941

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_zod0 from "drizzle-zod";
3
+ import * as drizzle_zod3 from "drizzle-zod";
4
4
 
5
5
  //#region src/auth/auth-validation-schemas.d.ts
6
- declare const UserSelectSchema: drizzle_zod0.BuildSchema<"select", {
6
+ declare const UserSelectSchema: drizzle_zod3.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_zod0.BuildSchema<"select", {
124
124
  generated: undefined;
125
125
  }, {}, {}>;
126
126
  }, undefined, undefined>;
127
- declare const UserInsertSchema: drizzle_zod0.BuildSchema<"insert", {
127
+ declare const UserInsertSchema: drizzle_zod3.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_zod0.BuildSchema<"insert", {
245
245
  generated: undefined;
246
246
  }, {}, {}>;
247
247
  }, undefined, undefined>;
248
- declare const SessionSelectSchema: drizzle_zod0.BuildSchema<"select", {
248
+ declare const SessionSelectSchema: drizzle_zod3.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_zod0.BuildSchema<"select", {
400
400
  generated: undefined;
401
401
  }, {}, {}>;
402
402
  }, undefined, undefined>;
403
- declare const SessionInsertSchema: drizzle_zod0.BuildSchema<"insert", {
403
+ declare const SessionInsertSchema: drizzle_zod3.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_zod0.BuildSchema<"insert", {
555
555
  generated: undefined;
556
556
  }, {}, {}>;
557
557
  }, undefined, undefined>;
558
- declare const AccountSelectSchema: drizzle_zod0.BuildSchema<"select", {
558
+ declare const AccountSelectSchema: drizzle_zod3.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_zod0.BuildSchema<"select", {
778
778
  generated: undefined;
779
779
  }, {}, {}>;
780
780
  }, undefined, undefined>;
781
- declare const AccountInsertSchema: drizzle_zod0.BuildSchema<"insert", {
781
+ declare const AccountInsertSchema: drizzle_zod3.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_zod0.BuildSchema<"insert", {
1001
1001
  generated: undefined;
1002
1002
  }, {}, {}>;
1003
1003
  }, undefined, undefined>;
1004
- declare const OrganizationSelectSchema: drizzle_zod0.BuildSchema<"select", {
1004
+ declare const OrganizationSelectSchema: drizzle_zod3.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_zod0.BuildSchema<"select", {
1105
1105
  generated: undefined;
1106
1106
  }, {}, {}>;
1107
1107
  }, undefined, undefined>;
1108
- declare const OrganizationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1108
+ declare const OrganizationInsertSchema: drizzle_zod3.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_zod0.BuildSchema<"insert", {
1209
1209
  generated: undefined;
1210
1210
  }, {}, {}>;
1211
1211
  }, undefined, undefined>;
1212
- declare const MemberSelectSchema: drizzle_zod0.BuildSchema<"select", {
1212
+ declare const MemberSelectSchema: drizzle_zod3.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_zod0.BuildSchema<"select", {
1296
1296
  generated: undefined;
1297
1297
  }, {}, {}>;
1298
1298
  }, undefined, undefined>;
1299
- declare const MemberInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1299
+ declare const MemberInsertSchema: drizzle_zod3.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_zod0.BuildSchema<"insert", {
1383
1383
  generated: undefined;
1384
1384
  }, {}, {}>;
1385
1385
  }, undefined, undefined>;
1386
- declare const InvitationSelectSchema: drizzle_zod0.BuildSchema<"select", {
1386
+ declare const InvitationSelectSchema: drizzle_zod3.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_zod0.BuildSchema<"select", {
1521
1521
  generated: undefined;
1522
1522
  }, {}, {}>;
1523
1523
  }, undefined, undefined>;
1524
- declare const InvitationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1524
+ declare const InvitationInsertSchema: drizzle_zod3.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_zod0.BuildSchema<"insert", {
1659
1659
  generated: undefined;
1660
1660
  }, {}, {}>;
1661
1661
  }, undefined, undefined>;
1662
- declare const DeviceCodeSelectSchema: drizzle_zod0.BuildSchema<"select", {
1662
+ declare const DeviceCodeSelectSchema: drizzle_zod3.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_zod0.BuildSchema<"select", {
1831
1831
  generated: undefined;
1832
1832
  }, {}, {}>;
1833
1833
  }, undefined, undefined>;
1834
- declare const DeviceCodeInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1834
+ declare const DeviceCodeInsertSchema: drizzle_zod3.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_zod0.BuildSchema<"insert", {
2003
2003
  generated: undefined;
2004
2004
  }, {}, {}>;
2005
2005
  }, undefined, undefined>;
2006
- declare const VerificationSelectSchema: drizzle_zod0.BuildSchema<"select", {
2006
+ declare const VerificationSelectSchema: drizzle_zod3.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_zod0.BuildSchema<"select", {
2107
2107
  generated: undefined;
2108
2108
  }, {}, {}>;
2109
2109
  }, undefined, undefined>;
2110
- declare const VerificationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
2110
+ declare const VerificationInsertSchema: drizzle_zod3.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,9 +107,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
107
107
  tenantId: string;
108
108
  projectId: string;
109
109
  id: string;
110
- agentId: string;
111
110
  createdAt: string;
112
111
  subAgentId: string;
112
+ agentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
115
115
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -150,9 +150,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
150
150
  tenantId: string;
151
151
  projectId: string;
152
152
  id: string;
153
- agentId: string;
154
153
  createdAt: string;
155
154
  subAgentId: string;
155
+ agentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
158
158
  /**
@@ -11,11 +11,11 @@ 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;
17
16
  headersSchema: unknown;
18
17
  contextVariables: Record<string, ContextFetchDefinition> | null;
18
+ agentId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
@@ -23,11 +23,11 @@ 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;
29
28
  headersSchema: unknown;
30
29
  contextVariables: Record<string, ContextFetchDefinition> | null;
30
+ agentId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -45,11 +45,11 @@ 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;
51
50
  headersSchema: unknown;
52
51
  contextVariables: Record<string, ContextFetchDefinition> | null;
52
+ agentId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -85,11 +85,11 @@ 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;
91
90
  headersSchema: unknown;
92
91
  contextVariables: Record<string, ContextFetchDefinition> | null;
92
+ agentId: string;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  tenantId: string;
68
68
  projectId: string;
69
69
  id: string;
70
- agentId: string;
71
70
  createdAt: string;
72
71
  subAgentId: string;
72
+ agentId: string;
73
73
  dataComponentId: string;
74
74
  }>;
75
75
  /**
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  tenantId: string;
110
110
  projectId: string;
111
111
  id: string;
112
- agentId: string;
113
112
  createdAt: string;
114
113
  subAgentId: string;
114
+ agentId: string;
115
115
  dataComponentId: string;
116
116
  } | null>;
117
117
  /**
@@ -56,11 +56,11 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
56
56
  tenantId: string;
57
57
  projectId: string;
58
58
  id: string;
59
+ createdAt: string;
59
60
  name: string;
61
+ updatedAt: string;
60
62
  description: string | null;
61
63
  agentId: string;
62
- createdAt: string;
63
- updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -98,11 +98,11 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
98
98
  tenantId: string;
99
99
  projectId: string;
100
100
  id: string;
101
+ createdAt: string;
101
102
  name: string;
103
+ updatedAt: string;
102
104
  description: string | null;
103
105
  agentId: string;
104
- createdAt: string;
105
- updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -153,10 +153,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
153
153
  tenantId: string;
154
154
  projectId: string;
155
155
  id: string;
156
- agentId: string;
157
156
  createdAt: string;
158
157
  updatedAt: string;
159
158
  subAgentId: string;
159
+ agentId: string;
160
160
  functionToolId: string;
161
161
  }>;
162
162
  /**
@@ -209,10 +209,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
209
209
  tenantId: string;
210
210
  projectId: string;
211
211
  id: string;
212
- agentId: string;
213
212
  createdAt: string;
214
213
  updatedAt: string;
215
214
  subAgentId: string;
215
+ agentId: string;
216
216
  functionToolId: string;
217
217
  }>;
218
218
  //#endregion
@@ -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;
16
+ subAgentId: string;
17
17
  headers: Record<string, string> | null;
18
+ agentId: string;
18
19
  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
  tenantId: string;
47
47
  projectId: string;
48
48
  id: string;
49
- agentId: string;
50
49
  createdAt: string;
51
50
  updatedAt: string;
51
+ subAgentId: string;
52
52
  headers: Record<string, string> | null;
53
+ agentId: string;
53
54
  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
  tenantId: string;
60
60
  projectId: string;
61
61
  id: string;
62
- agentId: string;
63
62
  createdAt: string;
64
63
  updatedAt: string;
64
+ subAgentId: string;
65
65
  headers: Record<string, string> | null;
66
+ agentId: string;
66
67
  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
  tenantId: string;
183
183
  projectId: string;
184
184
  id: string;
185
- agentId: string;
186
185
  createdAt: string;
187
186
  updatedAt: string;
187
+ subAgentId: string;
188
188
  headers: Record<string, string> | null;
189
+ agentId: string;
189
190
  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
  tenantId: string;
200
200
  projectId: string;
201
201
  id: string;
202
- agentId: string;
203
202
  createdAt: string;
204
203
  updatedAt: string;
204
+ subAgentId: string;
205
205
  headers: Record<string, string> | null;
206
+ agentId: string;
206
207
  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
  tenantId: string;
221
221
  projectId: string;
222
222
  id: string;
223
- agentId: string;
224
223
  createdAt: string;
225
224
  updatedAt: string;
225
+ subAgentId: string;
226
226
  headers: Record<string, string> | null;
227
+ agentId: string;
227
228
  externalAgentId: string;
228
- subAgentId: 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;
211
+ subAgentId: string;
213
212
  headers: Record<string, string> | null;
213
+ agentId: 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;
255
+ subAgentId: string;
257
256
  headers: Record<string, string> | null;
257
+ agentId: 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;