@inkeep/agents-core 0.58.7 → 0.58.8

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 (58) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +9 -9
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +6 -4
  6. package/dist/client-exports.js +2 -2
  7. package/dist/data-access/index.d.ts +2 -1
  8. package/dist/data-access/index.js +2 -1
  9. package/dist/data-access/manage/agents.d.ts +10 -10
  10. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  11. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  12. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  13. package/dist/data-access/manage/functionTools.d.ts +8 -8
  14. package/dist/data-access/manage/skills.d.ts +11 -11
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  16. package/dist/data-access/manage/subAgentRelations.d.ts +16 -16
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  18. package/dist/data-access/manage/subAgents.d.ts +6 -6
  19. package/dist/data-access/manage/tools.d.ts +12 -12
  20. package/dist/data-access/manage/triggers.d.ts +2 -2
  21. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  22. package/dist/data-access/runtime/apps.d.ts +113 -0
  23. package/dist/data-access/runtime/apps.js +86 -0
  24. package/dist/data-access/runtime/cascade-delete.d.ts +2 -0
  25. package/dist/data-access/runtime/cascade-delete.js +16 -4
  26. package/dist/data-access/runtime/conversations.d.ts +32 -31
  27. package/dist/data-access/runtime/conversations.js +1 -0
  28. package/dist/data-access/runtime/messages.d.ts +9 -9
  29. package/dist/data-access/runtime/tasks.d.ts +9 -9
  30. package/dist/db/manage/manage-schema.d.ts +453 -453
  31. package/dist/db/runtime/runtime-schema.d.ts +582 -321
  32. package/dist/db/runtime/runtime-schema.js +16 -1
  33. package/dist/index.d.ts +10 -7
  34. package/dist/index.js +7 -4
  35. package/dist/middleware/no-auth.d.ts +2 -2
  36. package/dist/setup/setup.js +10 -0
  37. package/dist/types/entities.d.ts +10 -2
  38. package/dist/types/index.d.ts +4 -4
  39. package/dist/types/utility.d.ts +9 -3
  40. package/dist/utils/apiKeys.d.ts +6 -1
  41. package/dist/utils/apiKeys.js +9 -1
  42. package/dist/utils/domain-validation.d.ts +4 -0
  43. package/dist/utils/domain-validation.js +25 -0
  44. package/dist/utils/error.d.ts +51 -51
  45. package/dist/utils/index.d.ts +4 -2
  46. package/dist/utils/index.js +4 -2
  47. package/dist/utils/pow.d.ts +13 -0
  48. package/dist/utils/pow.js +52 -0
  49. package/dist/validation/dolt-schemas.d.ts +1 -1
  50. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  51. package/dist/validation/index.d.ts +2 -2
  52. package/dist/validation/index.js +2 -2
  53. package/dist/validation/schemas.d.ts +3282 -2001
  54. package/dist/validation/schemas.js +57 -3
  55. package/drizzle/runtime/0022_superb_micromacro.sql +17 -0
  56. package/drizzle/runtime/meta/0022_snapshot.json +4240 -0
  57. package/drizzle/runtime/meta/_journal.json +7 -0
  58. package/package.json +3 -2
@@ -11,8 +11,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
- createdAt: string;
15
- updatedAt: string;
16
14
  description: string | null;
17
15
  defaultSubAgentId: string | null;
18
16
  tenantId: string;
@@ -35,6 +33,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
35
33
  stopWhen: {
36
34
  transferCountIs?: number | undefined;
37
35
  } | null;
36
+ createdAt: string;
37
+ updatedAt: string;
38
38
  contextConfigId: string | null;
39
39
  statusUpdates: {
40
40
  enabled?: boolean | undefined;
@@ -57,8 +57,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
57
57
  }) => Promise<{
58
58
  id: string;
59
59
  name: string;
60
- createdAt: string;
61
- updatedAt: string;
62
60
  description: string | null;
63
61
  defaultSubAgentId: string | null;
64
62
  tenantId: string;
@@ -81,6 +79,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
81
79
  stopWhen: {
82
80
  transferCountIs?: number | undefined;
83
81
  } | null;
82
+ createdAt: string;
83
+ updatedAt: string;
84
84
  contextConfigId: string | null;
85
85
  statusUpdates: {
86
86
  enabled?: boolean | undefined;
@@ -100,8 +100,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
100
100
  defaultSubAgent: {
101
101
  id: string;
102
102
  name: string;
103
- createdAt: string;
104
- updatedAt: string;
105
103
  description: string | null;
106
104
  tenantId: string;
107
105
  projectId: string;
@@ -125,6 +123,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
125
123
  stopWhen: {
126
124
  stepCountIs?: number | undefined;
127
125
  } | null;
126
+ createdAt: string;
127
+ updatedAt: string;
128
128
  } | null;
129
129
  } | null>;
130
130
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -132,8 +132,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
132
132
  }) => Promise<{
133
133
  id: string;
134
134
  name: string;
135
- createdAt: string;
136
- updatedAt: string;
137
135
  description: string | null;
138
136
  defaultSubAgentId: string | null;
139
137
  tenantId: string;
@@ -156,6 +154,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
156
154
  stopWhen: {
157
155
  transferCountIs?: number | undefined;
158
156
  } | null;
157
+ createdAt: string;
158
+ updatedAt: string;
159
159
  contextConfigId: string | null;
160
160
  statusUpdates: {
161
161
  enabled?: boolean | undefined;
@@ -248,8 +248,6 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
248
248
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
249
249
  id: string;
250
250
  name: string;
251
- createdAt: string;
252
- updatedAt: string;
253
251
  description: string | null;
254
252
  defaultSubAgentId: string | null;
255
253
  tenantId: string;
@@ -272,6 +270,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
272
270
  stopWhen: {
273
271
  transferCountIs?: number | undefined;
274
272
  } | null;
273
+ createdAt: string;
274
+ updatedAt: string;
275
275
  contextConfigId: string | null;
276
276
  statusUpdates: {
277
277
  enabled?: boolean | undefined;
@@ -11,11 +11,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
- createdAt: string;
15
- updatedAt: string;
16
14
  description: string | null;
17
15
  tenantId: string;
18
16
  projectId: string;
17
+ createdAt: string;
18
+ updatedAt: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -67,11 +67,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
68
  id: string;
69
69
  name: string;
70
- createdAt: string;
71
- updatedAt: string;
72
70
  description: string | null;
73
71
  tenantId: string;
74
72
  projectId: string;
73
+ createdAt: string;
74
+ updatedAt: string;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -142,10 +142,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
144
  id: string;
145
- createdAt: string;
146
145
  tenantId: string;
147
146
  projectId: string;
148
147
  agentId: string;
148
+ createdAt: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
@@ -185,10 +185,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
187
  id: string;
188
- createdAt: string;
189
188
  tenantId: string;
190
189
  projectId: string;
191
190
  agentId: string;
191
+ createdAt: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -10,11 +10,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
13
  tenantId: string;
16
14
  projectId: string;
17
15
  agentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
@@ -22,11 +22,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
24
  id: string;
25
- createdAt: string;
26
- updatedAt: string;
27
25
  tenantId: string;
28
26
  projectId: string;
29
27
  agentId: string;
28
+ createdAt: string;
29
+ updatedAt: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -44,11 +44,11 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
46
  id: string;
47
- createdAt: string;
48
- updatedAt: string;
49
47
  tenantId: string;
50
48
  projectId: string;
51
49
  agentId: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -84,11 +84,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
86
  id: string;
87
- createdAt: string;
88
- updatedAt: string;
89
87
  tenantId: string;
90
88
  projectId: string;
91
89
  agentId: string;
90
+ createdAt: string;
91
+ updatedAt: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
68
  id: string;
69
- createdAt: string;
70
69
  tenantId: string;
71
70
  projectId: string;
72
71
  agentId: string;
72
+ createdAt: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
110
  id: string;
111
- createdAt: string;
112
111
  tenantId: string;
113
112
  projectId: string;
114
113
  agentId: string;
114
+ createdAt: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
- createdAt: string;
59
- updatedAt: string;
60
58
  description: string | null;
61
59
  tenantId: string;
62
60
  projectId: string;
63
61
  agentId: string;
62
+ createdAt: string;
63
+ updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -97,12 +97,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
- createdAt: string;
101
- updatedAt: string;
102
100
  description: string | null;
103
101
  tenantId: string;
104
102
  projectId: string;
105
103
  agentId: string;
104
+ createdAt: string;
105
+ updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -162,11 +162,11 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
162
162
  }> | null;
163
163
  }) => Promise<{
164
164
  id: string;
165
- createdAt: string;
166
- updatedAt: string;
167
165
  tenantId: string;
168
166
  projectId: string;
169
167
  agentId: string;
168
+ createdAt: string;
169
+ updatedAt: string;
170
170
  toolPolicies: Record<string, {
171
171
  needsApproval?: boolean;
172
172
  }> | null;
@@ -227,11 +227,11 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
227
227
  }> | null;
228
228
  }) => Promise<{
229
229
  id: string;
230
- createdAt: string;
231
- updatedAt: string;
232
230
  tenantId: string;
233
231
  projectId: string;
234
232
  agentId: string;
233
+ createdAt: string;
234
+ updatedAt: string;
235
235
  toolPolicies: Record<string, {
236
236
  needsApproval?: boolean;
237
237
  }> | null;
@@ -10,12 +10,12 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
- createdAt: string;
14
- updatedAt: string;
15
- metadata: Record<string, string> | null;
16
13
  description: string;
17
14
  tenantId: string;
18
15
  projectId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
+ metadata: Record<string, string> | null;
19
19
  content: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,23 +43,23 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
44
  id: string;
45
45
  name: string;
46
- createdAt: string;
47
- updatedAt: string;
48
- metadata: Record<string, string> | null;
49
46
  description: string;
50
47
  tenantId: string;
51
48
  projectId: string;
49
+ createdAt: string;
50
+ updatedAt: string;
51
+ metadata: Record<string, string> | null;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
55
  id: string;
56
56
  name: string;
57
- createdAt: string;
58
- updatedAt: string;
59
- metadata: Record<string, string> | null;
60
57
  description: string;
61
58
  tenantId: string;
62
59
  projectId: string;
60
+ createdAt: string;
61
+ updatedAt: string;
62
+ metadata: Record<string, string> | null;
63
63
  content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -92,11 +92,11 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
94
  id: string;
95
- createdAt: string;
96
- updatedAt: string;
97
95
  tenantId: string;
98
96
  projectId: string;
99
97
  agentId: string;
98
+ createdAt: string;
99
+ updatedAt: string;
100
100
  index: number;
101
101
  alwaysLoaded: boolean;
102
102
  subAgentId: string;
@@ -10,11 +10,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
13
  tenantId: string;
16
14
  projectId: string;
17
15
  agentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
18
  headers: Record<string, string> | null;
19
19
  externalAgentId: string;
20
20
  subAgentId: string;
@@ -45,11 +45,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- createdAt: string;
49
- updatedAt: string;
50
48
  tenantId: string;
51
49
  projectId: string;
52
50
  agentId: string;
51
+ createdAt: string;
52
+ updatedAt: string;
53
53
  headers: Record<string, string> | null;
54
54
  externalAgentId: string;
55
55
  subAgentId: string;
@@ -58,11 +58,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
61
  tenantId: string;
64
62
  projectId: string;
65
63
  agentId: string;
64
+ createdAt: string;
65
+ updatedAt: string;
66
66
  headers: Record<string, string> | null;
67
67
  externalAgentId: string;
68
68
  subAgentId: string;
@@ -181,11 +181,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
181
181
  };
182
182
  }) => Promise<{
183
183
  id: string;
184
- createdAt: string;
185
- updatedAt: string;
186
184
  tenantId: string;
187
185
  projectId: string;
188
186
  agentId: string;
187
+ createdAt: string;
188
+ updatedAt: string;
189
189
  headers: Record<string, string> | null;
190
190
  externalAgentId: string;
191
191
  subAgentId: string;
@@ -198,11 +198,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
200
  id: string;
201
- createdAt: string;
202
- updatedAt: string;
203
201
  tenantId: string;
204
202
  projectId: string;
205
203
  agentId: string;
204
+ createdAt: string;
205
+ updatedAt: string;
206
206
  headers: Record<string, string> | null;
207
207
  externalAgentId: string;
208
208
  subAgentId: string;
@@ -219,11 +219,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
219
219
  };
220
220
  }) => Promise<{
221
221
  id: string;
222
- createdAt: string;
223
- updatedAt: string;
224
222
  tenantId: string;
225
223
  projectId: string;
226
224
  agentId: string;
225
+ createdAt: string;
226
+ updatedAt: string;
227
227
  headers: Record<string, string> | null;
228
228
  externalAgentId: string;
229
229
  subAgentId: string;
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
13
  tenantId: string;
16
14
  projectId: string;
17
15
  agentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- createdAt: string;
49
- updatedAt: string;
50
48
  tenantId: string;
51
49
  projectId: string;
52
50
  agentId: string;
51
+ createdAt: string;
52
+ updatedAt: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
61
  tenantId: string;
64
62
  projectId: string;
65
63
  agentId: string;
64
+ createdAt: string;
65
+ updatedAt: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
- createdAt: string;
131
- updatedAt: string;
132
130
  tenantId: string;
133
131
  projectId: string;
134
132
  agentId: string;
133
+ createdAt: string;
134
+ updatedAt: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
- createdAt: string;
150
- updatedAt: string;
151
149
  tenantId: string;
152
150
  projectId: string;
153
151
  agentId: string;
152
+ createdAt: string;
153
+ updatedAt: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
- createdAt: string;
164
- updatedAt: string;
165
163
  tenantId: string;
166
164
  projectId: string;
167
165
  agentId: string;
166
+ createdAt: string;
167
+ updatedAt: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -205,11 +205,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
- createdAt: string;
209
- updatedAt: string;
210
208
  tenantId: string;
211
209
  projectId: string;
212
210
  agentId: string;
211
+ createdAt: string;
212
+ updatedAt: string;
213
213
  toolId: string;
214
214
  headers: Record<string, string> | null;
215
215
  toolPolicies: Record<string, {
@@ -249,11 +249,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
- createdAt: string;
253
- updatedAt: string;
254
252
  tenantId: string;
255
253
  projectId: string;
256
254
  agentId: string;
255
+ createdAt: string;
256
+ updatedAt: string;
257
257
  toolId: string;
258
258
  headers: Record<string, string> | null;
259
259
  toolPolicies: Record<string, {
@@ -10,11 +10,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
13
  tenantId: string;
16
14
  projectId: string;
17
15
  agentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
18
  headers: Record<string, string> | null;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
@@ -45,11 +45,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- createdAt: string;
49
- updatedAt: string;
50
48
  tenantId: string;
51
49
  projectId: string;
52
50
  agentId: string;
51
+ createdAt: string;
52
+ updatedAt: string;
53
53
  headers: Record<string, string> | null;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
@@ -58,11 +58,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
61
  tenantId: string;
64
62
  projectId: string;
65
63
  agentId: string;
64
+ createdAt: string;
65
+ updatedAt: string;
66
66
  headers: Record<string, string> | null;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
@@ -211,11 +211,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
211
211
  };
212
212
  }) => Promise<{
213
213
  id: string;
214
- createdAt: string;
215
- updatedAt: string;
216
214
  tenantId: string;
217
215
  projectId: string;
218
216
  agentId: string;
217
+ createdAt: string;
218
+ updatedAt: string;
219
219
  headers: Record<string, string> | null;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
@@ -228,11 +228,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
230
  id: string;
231
- createdAt: string;
232
- updatedAt: string;
233
231
  tenantId: string;
234
232
  projectId: string;
235
233
  agentId: string;
234
+ createdAt: string;
235
+ updatedAt: string;
236
236
  headers: Record<string, string> | null;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
@@ -249,11 +249,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
249
249
  };
250
250
  }) => Promise<{
251
251
  id: string;
252
- createdAt: string;
253
- updatedAt: string;
254
252
  tenantId: string;
255
253
  projectId: string;
256
254
  agentId: string;
255
+ createdAt: string;
256
+ updatedAt: string;
257
257
  headers: Record<string, string> | null;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
@@ -11,8 +11,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
- createdAt: string;
15
- updatedAt: string;
16
14
  description: string | null;
17
15
  tenantId: string;
18
16
  projectId: string;
@@ -36,14 +34,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
36
34
  stopWhen: {
37
35
  stepCountIs?: number | undefined;
38
36
  } | null;
37
+ createdAt: string;
38
+ updatedAt: string;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
43
  id: string;
44
44
  name: string;
45
- createdAt: string;
46
- updatedAt: string;
47
45
  description: string | null;
48
46
  tenantId: string;
49
47
  projectId: string;
@@ -67,6 +65,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
67
65
  stopWhen: {
68
66
  stepCountIs?: number | undefined;
69
67
  } | null;
68
+ createdAt: string;
69
+ updatedAt: string;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -111,8 +111,6 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  id: string;
113
113
  name: string;
114
- createdAt: string;
115
- updatedAt: string;
116
114
  description: string | null;
117
115
  tenantId: string;
118
116
  projectId: string;
@@ -136,6 +134,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
136
134
  stopWhen: {
137
135
  stepCountIs?: number | undefined;
138
136
  } | null;
137
+ createdAt: string;
138
+ updatedAt: string;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;