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

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,10 +11,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
- createdAt: string;
15
14
  name: string;
16
- updatedAt: string;
17
15
  description: string | null;
16
+ prompt: string | null;
17
+ createdAt: string;
18
+ updatedAt: string;
18
19
  models: {
19
20
  base?: {
20
21
  model?: string | undefined;
@@ -34,7 +35,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
35
  } | null;
35
36
  defaultSubAgentId: string | null;
36
37
  contextConfigId: string | null;
37
- prompt: string | null;
38
38
  statusUpdates: {
39
39
  enabled?: boolean | undefined;
40
40
  numEvents?: number | undefined;
@@ -57,10 +57,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
57
57
  tenantId: string;
58
58
  projectId: string;
59
59
  id: string;
60
- createdAt: string;
61
60
  name: string;
62
- updatedAt: string;
63
61
  description: string | null;
62
+ prompt: string | null;
63
+ createdAt: string;
64
+ updatedAt: string;
64
65
  models: {
65
66
  base?: {
66
67
  model?: string | undefined;
@@ -80,7 +81,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
80
81
  } | null;
81
82
  defaultSubAgentId: string | null;
82
83
  contextConfigId: string | null;
83
- prompt: string | null;
84
84
  statusUpdates: {
85
85
  enabled?: boolean | undefined;
86
86
  numEvents?: number | undefined;
@@ -100,10 +100,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
100
100
  tenantId: string;
101
101
  projectId: string;
102
102
  id: string;
103
- createdAt: string;
104
103
  name: string;
105
- updatedAt: string;
106
104
  description: string | null;
105
+ prompt: string | null;
106
+ agentId: string;
107
+ createdAt: string;
108
+ updatedAt: string;
107
109
  models: {
108
110
  base?: {
109
111
  model?: string | undefined;
@@ -121,8 +123,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
121
123
  stopWhen: {
122
124
  stepCountIs?: number | undefined;
123
125
  } | null;
124
- agentId: string;
125
- prompt: string | null;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
@@ -132,10 +132,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
132
132
  tenantId: string;
133
133
  projectId: string;
134
134
  id: string;
135
- createdAt: string;
136
135
  name: string;
137
- updatedAt: string;
138
136
  description: string | null;
137
+ prompt: string | null;
138
+ createdAt: string;
139
+ updatedAt: string;
139
140
  models: {
140
141
  base?: {
141
142
  model?: string | undefined;
@@ -155,7 +156,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
155
156
  } | null;
156
157
  defaultSubAgentId: string | null;
157
158
  contextConfigId: string | null;
158
- prompt: string | null;
159
159
  statusUpdates: {
160
160
  enabled?: boolean | undefined;
161
161
  numEvents?: number | undefined;
@@ -231,10 +231,11 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
231
231
  tenantId: string;
232
232
  projectId: string;
233
233
  id: string;
234
- createdAt: string;
235
234
  name: string;
236
- updatedAt: string;
237
235
  description: string | null;
236
+ prompt: string | null;
237
+ createdAt: string;
238
+ updatedAt: string;
238
239
  models: {
239
240
  base?: {
240
241
  model?: string | undefined;
@@ -254,7 +255,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
254
255
  } | null;
255
256
  defaultSubAgentId: string | null;
256
257
  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
- createdAt: string;
14
13
  name: string;
15
- updatedAt: string;
16
14
  description: string | null;
15
+ createdAt: string;
16
+ updatedAt: string;
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
- createdAt: string;
56
55
  name: string;
57
- updatedAt: string;
58
56
  description: string | null;
57
+ createdAt: string;
58
+ updatedAt: string;
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;
110
111
  createdAt: string;
111
112
  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;
153
154
  createdAt: string;
154
155
  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;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
17
  headersSchema: unknown;
17
18
  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;
26
27
  createdAt: string;
27
28
  updatedAt: string;
28
29
  headersSchema: unknown;
29
30
  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;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
51
  headersSchema: unknown;
51
52
  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;
88
89
  createdAt: string;
89
90
  updatedAt: string;
90
91
  headersSchema: unknown;
91
92
  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;
70
71
  createdAt: string;
71
72
  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;
112
113
  createdAt: string;
113
114
  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;
60
59
  name: string;
61
- updatedAt: string;
62
60
  description: string | null;
63
61
  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;
102
101
  name: string;
103
- updatedAt: string;
104
102
  description: string | null;
105
103
  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;
156
157
  createdAt: string;
157
158
  updatedAt: string;
158
159
  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;
212
213
  createdAt: string;
213
214
  updatedAt: string;
214
215
  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;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- subAgentId: string;
17
17
  headers: Record<string, string> | null;
18
- agentId: 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
  tenantId: string;
47
47
  projectId: string;
48
48
  id: string;
49
+ agentId: string;
49
50
  createdAt: string;
50
51
  updatedAt: string;
51
- subAgentId: string;
52
52
  headers: Record<string, string> | null;
53
- agentId: 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
  tenantId: string;
60
60
  projectId: string;
61
61
  id: string;
62
+ agentId: string;
62
63
  createdAt: string;
63
64
  updatedAt: string;
64
- subAgentId: string;
65
65
  headers: Record<string, string> | null;
66
- agentId: 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
  tenantId: string;
183
183
  projectId: string;
184
184
  id: string;
185
+ agentId: string;
185
186
  createdAt: string;
186
187
  updatedAt: string;
187
- subAgentId: string;
188
188
  headers: Record<string, string> | null;
189
- agentId: 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
  tenantId: string;
200
200
  projectId: string;
201
201
  id: string;
202
+ agentId: string;
202
203
  createdAt: string;
203
204
  updatedAt: string;
204
- subAgentId: string;
205
205
  headers: Record<string, string> | null;
206
- agentId: 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
  tenantId: string;
221
221
  projectId: string;
222
222
  id: string;
223
+ agentId: string;
223
224
  createdAt: string;
224
225
  updatedAt: string;
225
- subAgentId: string;
226
226
  headers: Record<string, string> | null;
227
- agentId: string;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -11,12 +11,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
+ agentId: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- agentId: string;
17
+ relationType: string | null;
17
18
  sourceSubAgentId: string;
18
19
  targetSubAgentId: string | null;
19
- relationType: string | null;
20
20
  } | undefined>;
21
21
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
@@ -46,12 +46,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  tenantId: string;
47
47
  projectId: string;
48
48
  id: string;
49
+ agentId: string;
49
50
  createdAt: string;
50
51
  updatedAt: string;
51
- agentId: string;
52
+ relationType: string | null;
52
53
  sourceSubAgentId: string;
53
54
  targetSubAgentId: string | null;
54
- relationType: string | null;
55
55
  }[]>;
56
56
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
@@ -59,12 +59,12 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  tenantId: string;
60
60
  projectId: string;
61
61
  id: string;
62
+ agentId: string;
62
63
  createdAt: string;
63
64
  updatedAt: string;
64
- agentId: string;
65
+ relationType: string | null;
65
66
  sourceSubAgentId: string;
66
67
  targetSubAgentId: string | null;
67
- relationType: string | null;
68
68
  }[]>;
69
69
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -128,12 +128,12 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
128
128
  tenantId: string;
129
129
  projectId: string;
130
130
  id: string;
131
+ agentId: string;
131
132
  createdAt: string;
132
133
  updatedAt: string;
133
- agentId: string;
134
+ relationType: string | null;
134
135
  sourceSubAgentId: string;
135
136
  targetSubAgentId: string | null;
136
- relationType: string | null;
137
137
  }>;
138
138
  /**
139
139
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -147,12 +147,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  tenantId: string;
148
148
  projectId: string;
149
149
  id: string;
150
+ agentId: string;
150
151
  createdAt: string;
151
152
  updatedAt: string;
152
- agentId: string;
153
+ relationType: string | null;
153
154
  sourceSubAgentId: string;
154
155
  targetSubAgentId: string | null;
155
- relationType: string | null;
156
156
  } | undefined>;
157
157
  /**
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -161,12 +161,12 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
161
161
  tenantId: string;
162
162
  projectId: string;
163
163
  id: string;
164
+ agentId: string;
164
165
  createdAt: string;
165
166
  updatedAt: string;
166
- agentId: string;
167
+ relationType: string | null;
167
168
  sourceSubAgentId: string;
168
169
  targetSubAgentId: string | null;
169
- relationType: string | null;
170
170
  }>;
171
171
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
172
172
  scopes: AgentScopeConfig;
@@ -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;
209
210
  createdAt: string;
210
211
  updatedAt: string;
211
- subAgentId: string;
212
- headers: Record<string, string> | null;
213
- agentId: string;
214
212
  toolId: string;
215
- selectedTools: string[] | null;
213
+ headers: Record<string, string> | null;
216
214
  toolPolicies: Record<string, {
217
215
  needsApproval?: boolean;
218
216
  }> | 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;
253
254
  createdAt: string;
254
255
  updatedAt: string;
255
- subAgentId: string;
256
- headers: Record<string, string> | null;
257
- agentId: string;
258
256
  toolId: string;
259
- selectedTools: string[] | null;
257
+ headers: Record<string, string> | null;
260
258
  toolPolicies: Record<string, {
261
259
  needsApproval?: boolean;
262
260
  }> | null;
261
+ subAgentId: string;
262
+ selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;