@inkeep/agents-core 0.0.0-dev-20260204182014 → 0.0.0-dev-20260204210021

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 (59) hide show
  1. package/dist/auth/auth-schema.d.ts +104 -104
  2. package/dist/auth/auth-validation-schemas.d.ts +129 -129
  3. package/dist/auth/auth.d.ts +54 -54
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +2 -2
  6. package/dist/data-access/index.d.ts +1 -3
  7. package/dist/data-access/index.js +1 -3
  8. package/dist/data-access/manage/agents.d.ts +36 -36
  9. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  10. package/dist/data-access/manage/contextConfigs.d.ts +16 -16
  11. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  12. package/dist/data-access/manage/functionTools.d.ts +12 -12
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  16. package/dist/data-access/manage/subAgents.d.ts +12 -12
  17. package/dist/data-access/manage/tools.d.ts +21 -21
  18. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  19. package/dist/data-access/runtime/conversations.d.ts +27 -27
  20. package/dist/data-access/runtime/messages.d.ts +9 -9
  21. package/dist/data-access/runtime/tasks.d.ts +6 -6
  22. package/dist/db/manage/manage-schema.d.ts +304 -524
  23. package/dist/db/manage/manage-schema.js +2 -27
  24. package/dist/db/runtime/runtime-schema.d.ts +240 -1153
  25. package/dist/db/runtime/runtime-schema.js +2 -98
  26. package/dist/index.d.ts +5 -10
  27. package/dist/index.js +4 -9
  28. package/dist/types/entities.d.ts +2 -8
  29. package/dist/types/index.d.ts +2 -2
  30. package/dist/utils/index.d.ts +1 -4
  31. package/dist/utils/index.js +1 -4
  32. package/dist/utils/trigger-auth.d.ts +1 -1
  33. package/dist/validation/dolt-schemas.d.ts +1 -1
  34. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  35. package/dist/validation/index.d.ts +2 -2
  36. package/dist/validation/index.js +2 -2
  37. package/dist/validation/schemas.d.ts +1627 -4187
  38. package/dist/validation/schemas.js +4 -66
  39. package/drizzle/manage/meta/_journal.json +0 -7
  40. package/drizzle/runtime/meta/_journal.json +0 -14
  41. package/package.json +1 -1
  42. package/dist/auth/create-test-users.d.ts +0 -1
  43. package/dist/auth/create-test-users.js +0 -102
  44. package/dist/data-access/manage/workAppConfigs.d.ts +0 -228
  45. package/dist/data-access/manage/workAppConfigs.js +0 -120
  46. package/dist/data-access/runtime/workAppSlack.d.ts +0 -45
  47. package/dist/data-access/runtime/workAppSlack.js +0 -154
  48. package/dist/utils/slack-link-token.d.ts +0 -60
  49. package/dist/utils/slack-link-token.js +0 -124
  50. package/dist/utils/slack-user-token.d.ts +0 -87
  51. package/dist/utils/slack-user-token.js +0 -156
  52. package/dist/utils/sse-parser.d.ts +0 -35
  53. package/dist/utils/sse-parser.js +0 -71
  54. package/drizzle/manage/0007_whole_skreet.sql +0 -17
  55. package/drizzle/manage/meta/0007_snapshot.json +0 -3265
  56. package/drizzle/runtime/0011_grey_energizer.sql +0 -131
  57. package/drizzle/runtime/0012_salty_zuras.sql +0 -6
  58. package/drizzle/runtime/meta/0011_snapshot.json +0 -3747
  59. package/drizzle/runtime/meta/0012_snapshot.json +0 -3747
@@ -9,14 +9,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
11
  id: string;
12
- createdAt: string;
13
12
  name: string;
13
+ createdAt: string;
14
14
  updatedAt: string;
15
- projectId: string;
16
15
  tenantId: string;
16
+ projectId: string;
17
17
  description: string | null;
18
- defaultSubAgentId: string | null;
19
- contextConfigId: string | null;
18
+ prompt: string | null;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -31,7 +30,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
30
  providerOptions?: Record<string, any> | undefined;
32
31
  } | undefined;
33
32
  } | null;
34
- prompt: string | null;
33
+ stopWhen: {
34
+ transferCountIs?: number | undefined;
35
+ } | null;
36
+ defaultSubAgentId: string | null;
37
+ contextConfigId: string | null;
35
38
  statusUpdates: {
36
39
  enabled?: boolean | undefined;
37
40
  numEvents?: number | undefined;
@@ -47,22 +50,18 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
47
50
  } | undefined;
48
51
  }[] | undefined;
49
52
  } | null;
50
- stopWhen: {
51
- transferCountIs?: number | undefined;
52
- } | null;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
57
  id: string;
58
- createdAt: string;
59
58
  name: string;
59
+ createdAt: string;
60
60
  updatedAt: string;
61
- projectId: string;
62
61
  tenantId: string;
62
+ projectId: string;
63
63
  description: string | null;
64
- defaultSubAgentId: string | null;
65
- contextConfigId: string | null;
64
+ prompt: string | null;
66
65
  models: {
67
66
  base?: {
68
67
  model?: string | undefined;
@@ -77,7 +76,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
77
76
  providerOptions?: Record<string, any> | undefined;
78
77
  } | undefined;
79
78
  } | null;
80
- prompt: string | null;
79
+ stopWhen: {
80
+ transferCountIs?: number | undefined;
81
+ } | null;
82
+ defaultSubAgentId: string | null;
83
+ contextConfigId: string | null;
81
84
  statusUpdates: {
82
85
  enabled?: boolean | undefined;
83
86
  numEvents?: number | undefined;
@@ -93,18 +96,16 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
93
96
  } | undefined;
94
97
  }[] | undefined;
95
98
  } | null;
96
- stopWhen: {
97
- transferCountIs?: number | undefined;
98
- } | null;
99
99
  defaultSubAgent: {
100
100
  id: string;
101
- createdAt: string;
102
101
  name: string;
102
+ createdAt: string;
103
103
  updatedAt: string;
104
- agentId: string;
105
- projectId: string;
106
104
  tenantId: string;
105
+ projectId: string;
107
106
  description: string | null;
107
+ prompt: string | null;
108
+ agentId: string;
108
109
  models: {
109
110
  base?: {
110
111
  model?: string | undefined;
@@ -119,7 +120,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
119
120
  providerOptions?: Record<string, any> | undefined;
120
121
  } | undefined;
121
122
  } | null;
122
- prompt: string | null;
123
123
  stopWhen: {
124
124
  stepCountIs?: number | undefined;
125
125
  } | null;
@@ -130,14 +130,13 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
132
  id: string;
133
- createdAt: string;
134
133
  name: string;
134
+ createdAt: string;
135
135
  updatedAt: string;
136
- projectId: string;
137
136
  tenantId: string;
137
+ projectId: string;
138
138
  description: string | null;
139
- defaultSubAgentId: string | null;
140
- contextConfigId: string | null;
139
+ prompt: string | null;
141
140
  models: {
142
141
  base?: {
143
142
  model?: string | undefined;
@@ -152,7 +151,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
152
151
  providerOptions?: Record<string, any> | undefined;
153
152
  } | undefined;
154
153
  } | null;
155
- prompt: string | null;
154
+ stopWhen: {
155
+ transferCountIs?: number | undefined;
156
+ } | null;
157
+ defaultSubAgentId: string | null;
158
+ contextConfigId: string | null;
156
159
  statusUpdates: {
157
160
  enabled?: boolean | undefined;
158
161
  numEvents?: number | undefined;
@@ -168,9 +171,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
168
171
  } | undefined;
169
172
  }[] | undefined;
170
173
  } | null;
171
- stopWhen: {
172
- transferCountIs?: number | undefined;
173
- } | null;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -246,14 +246,13 @@ declare function listAgentsAcrossProjectBranches(db: AgentsManageDatabaseClient,
246
246
  }): Promise<AvailableAgentInfo[]>;
247
247
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
248
248
  id: string;
249
- createdAt: string;
250
249
  name: string;
250
+ createdAt: string;
251
251
  updatedAt: string;
252
- projectId: string;
253
252
  tenantId: string;
253
+ projectId: string;
254
254
  description: string | null;
255
- defaultSubAgentId: string | null;
256
- contextConfigId: string | null;
255
+ prompt: string | null;
257
256
  models: {
258
257
  base?: {
259
258
  model?: string | undefined;
@@ -268,7 +267,11 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
268
267
  providerOptions?: Record<string, any> | undefined;
269
268
  } | undefined;
270
269
  } | null;
271
- prompt: string | null;
270
+ stopWhen: {
271
+ transferCountIs?: number | undefined;
272
+ } | null;
273
+ defaultSubAgentId: string | null;
274
+ contextConfigId: string | null;
272
275
  statusUpdates: {
273
276
  enabled?: boolean | undefined;
274
277
  numEvents?: number | undefined;
@@ -284,9 +287,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
284
287
  } | undefined;
285
288
  }[] | undefined;
286
289
  } | null;
287
- stopWhen: {
288
- transferCountIs?: number | undefined;
289
- } | null;
290
290
  }>;
291
291
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
292
292
  scopes: AgentScopeConfig;
@@ -8,11 +8,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
8
8
  id: string;
9
9
  }) => Promise<{
10
10
  id: string;
11
- createdAt: string;
12
11
  name: string;
12
+ createdAt: string;
13
13
  updatedAt: string;
14
- projectId: string;
15
14
  tenantId: string;
15
+ projectId: string;
16
16
  description: string | null;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
@@ -50,11 +50,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
52
  id: string;
53
- createdAt: string;
54
53
  name: string;
54
+ createdAt: string;
55
55
  updatedAt: string;
56
- projectId: string;
57
56
  tenantId: string;
57
+ projectId: string;
58
58
  description: string | null;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
@@ -106,10 +106,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
106
106
  }) => Promise<{
107
107
  id: string;
108
108
  createdAt: string;
109
- agentId: string;
110
- projectId: string;
111
- tenantId: string;
112
109
  subAgentId: string;
110
+ tenantId: string;
111
+ projectId: string;
112
+ agentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
115
115
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -149,10 +149,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
149
149
  }) => Promise<{
150
150
  id: string;
151
151
  createdAt: string;
152
- agentId: string;
153
- projectId: string;
154
- tenantId: string;
155
152
  subAgentId: string;
153
+ tenantId: string;
154
+ projectId: string;
155
+ agentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
158
158
  /**
@@ -9,25 +9,25 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
9
9
  id: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
- headersSchema: unknown;
13
- contextVariables: Record<string, ContextFetchDefinition> | null;
14
12
  createdAt: string;
15
13
  updatedAt: string;
16
- agentId: string;
17
- projectId: string;
18
14
  tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
17
+ headersSchema: unknown;
18
+ contextVariables: Record<string, ContextFetchDefinition> | null;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
22
22
  }) => Promise<{
23
23
  id: string;
24
- headersSchema: unknown;
25
- contextVariables: Record<string, ContextFetchDefinition> | null;
26
24
  createdAt: string;
27
25
  updatedAt: string;
28
- agentId: string;
29
- projectId: string;
30
26
  tenantId: string;
27
+ projectId: string;
28
+ agentId: string;
29
+ headersSchema: unknown;
30
+ contextVariables: Record<string, ContextFetchDefinition> | null;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -43,13 +43,13 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
43
43
  }>;
44
44
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
45
45
  id: string;
46
- headersSchema: unknown;
47
- contextVariables: Record<string, ContextFetchDefinition> | null;
48
46
  createdAt: string;
49
47
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
48
  tenantId: string;
49
+ projectId: string;
50
+ agentId: string;
51
+ headersSchema: unknown;
52
+ contextVariables: Record<string, ContextFetchDefinition> | null;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -83,13 +83,13 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
83
83
  data: ContextConfigInsert;
84
84
  }) => Promise<{
85
85
  id: string;
86
- headersSchema: unknown;
87
- contextVariables: Record<string, ContextFetchDefinition> | null;
88
86
  createdAt: string;
89
87
  updatedAt: string;
90
- agentId: string;
91
- projectId: string;
92
88
  tenantId: string;
89
+ projectId: string;
90
+ agentId: string;
91
+ headersSchema: unknown;
92
+ contextVariables: Record<string, ContextFetchDefinition> | null;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  }) => Promise<{
67
67
  id: string;
68
68
  createdAt: string;
69
- agentId: string;
70
- projectId: string;
71
- tenantId: string;
72
69
  subAgentId: string;
70
+ tenantId: string;
71
+ projectId: string;
72
+ agentId: string;
73
73
  dataComponentId: string;
74
74
  }>;
75
75
  /**
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  }) => Promise<{
109
109
  id: string;
110
110
  createdAt: string;
111
- agentId: string;
112
- projectId: string;
113
- tenantId: string;
114
111
  subAgentId: string;
112
+ tenantId: string;
113
+ projectId: string;
114
+ agentId: string;
115
115
  dataComponentId: string;
116
116
  } | null>;
117
117
  /**
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
56
  id: string;
57
- createdAt: string;
58
57
  name: string;
58
+ createdAt: string;
59
59
  updatedAt: string;
60
- agentId: string;
61
- projectId: string;
62
60
  tenantId: string;
61
+ projectId: string;
63
62
  description: string | null;
63
+ agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -96,13 +96,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
98
  id: string;
99
- createdAt: string;
100
99
  name: string;
100
+ createdAt: string;
101
101
  updatedAt: string;
102
- agentId: string;
103
- projectId: string;
104
102
  tenantId: string;
103
+ projectId: string;
105
104
  description: string | null;
105
+ agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -164,13 +164,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  id: string;
165
165
  createdAt: string;
166
166
  updatedAt: string;
167
- agentId: string;
168
- projectId: string;
167
+ subAgentId: string;
169
168
  tenantId: string;
169
+ projectId: string;
170
+ agentId: string;
170
171
  toolPolicies: Record<string, {
171
172
  needsApproval?: boolean;
172
173
  }> | null;
173
- subAgentId: string;
174
174
  functionToolId: string;
175
175
  }>;
176
176
  /**
@@ -229,13 +229,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- agentId: string;
233
- projectId: string;
232
+ subAgentId: string;
234
233
  tenantId: string;
234
+ projectId: string;
235
+ agentId: string;
235
236
  toolPolicies: Record<string, {
236
237
  needsApproval?: boolean;
237
238
  }> | null;
238
- subAgentId: string;
239
239
  functionToolId: string;
240
240
  }>;
241
241
  //#endregion
@@ -11,12 +11,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string;
15
- projectId: string;
16
- tenantId: string;
17
14
  headers: Record<string, string> | null;
18
- externalAgentId: string;
19
15
  subAgentId: string;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: 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
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- agentId: string;
50
- projectId: string;
51
- tenantId: string;
52
49
  headers: Record<string, string> | null;
53
- externalAgentId: string;
54
50
  subAgentId: string;
51
+ tenantId: string;
52
+ projectId: string;
53
+ agentId: 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
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- agentId: string;
63
- projectId: string;
64
- tenantId: string;
65
62
  headers: Record<string, string> | null;
66
- externalAgentId: string;
67
63
  subAgentId: string;
64
+ tenantId: string;
65
+ projectId: string;
66
+ agentId: 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
  id: string;
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
- agentId: string;
186
- projectId: string;
187
- tenantId: string;
188
185
  headers: Record<string, string> | null;
189
- externalAgentId: string;
190
186
  subAgentId: string;
187
+ tenantId: string;
188
+ projectId: string;
189
+ agentId: 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
  id: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
- agentId: string;
203
- projectId: string;
204
- tenantId: string;
205
202
  headers: Record<string, string> | null;
206
- externalAgentId: string;
207
203
  subAgentId: string;
204
+ tenantId: string;
205
+ projectId: string;
206
+ agentId: 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
  id: string;
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
- agentId: string;
224
- projectId: string;
225
- tenantId: string;
226
223
  headers: Record<string, string> | null;
227
- externalAgentId: string;
228
224
  subAgentId: string;
225
+ tenantId: string;
226
+ projectId: string;
227
+ agentId: 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
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string;
15
- projectId: string;
16
14
  tenantId: string;
15
+ projectId: 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
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- agentId: string;
50
- projectId: string;
51
49
  tenantId: string;
50
+ projectId: 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
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- agentId: string;
63
- projectId: string;
64
62
  tenantId: string;
63
+ projectId: 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
  id: string;
129
129
  createdAt: string;
130
130
  updatedAt: string;
131
- agentId: string;
132
- projectId: string;
133
131
  tenantId: string;
132
+ projectId: 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
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
- agentId: string;
151
- projectId: string;
152
150
  tenantId: string;
151
+ projectId: 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
  id: string;
162
162
  createdAt: string;
163
163
  updatedAt: string;
164
- agentId: string;
165
- projectId: string;
166
164
  tenantId: string;
165
+ projectId: string;
166
+ agentId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: 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
- agentId: string;
210
- projectId: string;
211
- tenantId: string;
212
209
  headers: Record<string, string> | null;
210
+ subAgentId: string;
211
+ tenantId: string;
212
+ projectId: string;
213
+ agentId: string;
213
214
  toolId: string;
214
215
  toolPolicies: Record<string, {
215
216
  needsApproval?: boolean;
216
217
  }> | 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
- agentId: string;
254
- projectId: string;
255
- tenantId: string;
256
253
  headers: Record<string, string> | null;
254
+ subAgentId: string;
255
+ tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
257
258
  toolId: string;
258
259
  toolPolicies: Record<string, {
259
260
  needsApproval?: boolean;
260
261
  }> | null;
261
- subAgentId: string;
262
262
  selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,11 +11,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string;
15
- projectId: string;
16
- tenantId: string;
17
14
  headers: Record<string, string> | null;
18
15
  subAgentId: string;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,11 +46,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- agentId: string;
50
- projectId: string;
51
- tenantId: string;
52
49
  headers: Record<string, string> | null;
53
50
  subAgentId: string;
51
+ tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,11 +59,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- agentId: string;
63
- projectId: string;
64
- tenantId: string;
65
62
  headers: Record<string, string> | null;
66
63
  subAgentId: string;
64
+ tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -212,11 +212,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
212
212
  id: string;
213
213
  createdAt: string;
214
214
  updatedAt: string;
215
- agentId: string;
216
- projectId: string;
217
- tenantId: string;
218
215
  headers: Record<string, string> | null;
219
216
  subAgentId: string;
217
+ tenantId: string;
218
+ projectId: string;
219
+ agentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -229,11 +229,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- agentId: string;
233
- projectId: string;
234
- tenantId: string;
235
232
  headers: Record<string, string> | null;
236
233
  subAgentId: string;
234
+ tenantId: string;
235
+ projectId: string;
236
+ agentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -250,11 +250,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- agentId: string;
254
- projectId: string;
255
- tenantId: string;
256
253
  headers: Record<string, string> | null;
257
254
  subAgentId: string;
255
+ tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {