@inkeep/agents-core 0.0.0-dev-20260331194528 → 0.0.0-dev-20260401041551

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 (43) hide show
  1. package/dist/auth/auth-schema.d.ts +108 -108
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/init.js +2 -4
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +2 -2
  6. package/dist/client-exports.js +2 -2
  7. package/dist/data-access/manage/agents.d.ts +41 -41
  8. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  9. package/dist/data-access/manage/contextConfigs.d.ts +16 -16
  10. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  11. package/dist/data-access/manage/functionTools.d.ts +14 -14
  12. package/dist/data-access/manage/skills.d.ts +9 -9
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  14. package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  16. package/dist/data-access/manage/subAgents.d.ts +15 -15
  17. package/dist/data-access/manage/tools.d.ts +21 -21
  18. package/dist/data-access/manage/tools.js +41 -4
  19. package/dist/data-access/manage/triggers.d.ts +2 -2
  20. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  21. package/dist/data-access/runtime/apps.d.ts +38 -47
  22. package/dist/data-access/runtime/conversations.d.ts +32 -32
  23. package/dist/data-access/runtime/messages.d.ts +12 -12
  24. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  25. package/dist/data-access/runtime/tasks.d.ts +7 -7
  26. package/dist/db/manage/manage-schema.d.ts +449 -449
  27. package/dist/db/runtime/runtime-schema.d.ts +394 -400
  28. package/dist/index.d.ts +3 -3
  29. package/dist/index.js +2 -2
  30. package/dist/middleware/no-auth.d.ts +2 -2
  31. package/dist/types/index.d.ts +2 -2
  32. package/dist/types/utility.d.ts +2 -3
  33. package/dist/utils/mcp-client.d.ts +1 -1
  34. package/dist/utils/mcp-client.js +1 -1
  35. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  36. package/dist/validation/index.d.ts +2 -2
  37. package/dist/validation/index.js +2 -2
  38. package/dist/validation/schemas/skills.d.ts +40 -40
  39. package/dist/validation/schemas.d.ts +2653 -2732
  40. package/dist/validation/schemas.js +7 -9
  41. package/drizzle/runtime/0030_set-allow-anonymous-for-existing-apps.sql +56 -0
  42. package/drizzle/runtime/meta/_journal.json +7 -0
  43. package/package.json +1 -1
@@ -9,26 +9,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
12
13
  id: string;
14
+ headersSchema: unknown;
15
+ contextVariables: Record<string, ContextFetchDefinition> | null;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
- projectId: string;
16
- tenantId: string;
17
18
  agentId: string;
18
- headersSchema: unknown;
19
- contextVariables: Record<string, ContextFetchDefinition> | null;
19
+ projectId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
+ tenantId: string;
24
25
  id: string;
26
+ headersSchema: unknown;
27
+ contextVariables: Record<string, ContextFetchDefinition> | null;
25
28
  createdAt: string;
26
29
  updatedAt: string;
27
- projectId: string;
28
- tenantId: string;
29
30
  agentId: string;
30
- headersSchema: unknown;
31
- contextVariables: Record<string, ContextFetchDefinition> | null;
31
+ projectId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -43,14 +43,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
43
43
  };
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
+ tenantId: string;
46
47
  id: string;
48
+ headersSchema: unknown;
49
+ contextVariables: Record<string, ContextFetchDefinition> | null;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
- projectId: string;
50
- tenantId: string;
51
52
  agentId: string;
52
- headersSchema: unknown;
53
- contextVariables: Record<string, ContextFetchDefinition> | null;
53
+ projectId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -83,14 +83,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
83
83
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
+ tenantId: string;
86
87
  id: string;
88
+ headersSchema: unknown;
89
+ contextVariables: Record<string, ContextFetchDefinition> | null;
87
90
  createdAt: string;
88
91
  updatedAt: string;
89
- projectId: string;
90
- tenantId: string;
91
92
  agentId: string;
92
- headersSchema: unknown;
93
- contextVariables: Record<string, ContextFetchDefinition> | null;
93
+ projectId: string;
94
94
  }>;
95
95
  //#endregion
96
96
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -65,11 +65,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
65
65
  scopes: SubAgentScopeConfig;
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
+ tenantId: string;
68
69
  id: string;
69
70
  createdAt: string;
70
- projectId: string;
71
- tenantId: string;
72
71
  agentId: string;
72
+ projectId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -107,11 +107,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
107
107
  scopes: SubAgentScopeConfig;
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
+ tenantId: string;
110
111
  id: string;
111
112
  createdAt: string;
112
- projectId: string;
113
- tenantId: string;
114
113
  agentId: string;
114
+ projectId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
+ tenantId: string;
56
57
  id: string;
57
- name: string;
58
- description: string | null;
59
58
  createdAt: string;
59
+ name: string;
60
60
  updatedAt: string;
61
- projectId: string;
62
- tenantId: string;
63
61
  agentId: string;
62
+ projectId: string;
63
+ description: string | null;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
+ tenantId: string;
98
99
  id: string;
99
- name: string;
100
- description: string | null;
101
100
  createdAt: string;
101
+ name: string;
102
102
  updatedAt: string;
103
- projectId: string;
104
- tenantId: string;
105
103
  agentId: string;
104
+ projectId: string;
105
+ description: string | null;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -157,17 +157,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
157
157
  needsApproval?: boolean;
158
158
  }> | null;
159
159
  }) => Promise<{
160
+ tenantId: string;
160
161
  id: string;
161
162
  createdAt: string;
162
163
  updatedAt: string;
163
- projectId: string;
164
- tenantId: string;
165
164
  agentId: string;
165
+ projectId: string;
166
166
  subAgentId: string;
167
+ functionToolId: string;
167
168
  toolPolicies: Record<string, {
168
169
  needsApproval?: boolean;
169
170
  }> | null;
170
- functionToolId: string;
171
171
  }>;
172
172
  /**
173
173
  * Update an agent-function tool relation
@@ -222,17 +222,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
222
222
  needsApproval?: boolean;
223
223
  }> | null;
224
224
  }) => Promise<{
225
+ tenantId: string;
225
226
  id: string;
226
227
  createdAt: string;
227
228
  updatedAt: string;
228
- projectId: string;
229
- tenantId: string;
230
229
  agentId: string;
230
+ projectId: string;
231
231
  subAgentId: string;
232
+ functionToolId: string;
232
233
  toolPolicies: Record<string, {
233
234
  needsApproval?: boolean;
234
235
  }> | null;
235
- functionToolId: string;
236
236
  }>;
237
237
  //#endregion
238
238
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -15,13 +15,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
15
15
  scopes: ProjectScopeConfig;
16
16
  skillId: string;
17
17
  }) => Promise<{
18
+ tenantId: string;
18
19
  id: string;
19
- name: string;
20
- description: string;
21
20
  createdAt: string;
21
+ name: string;
22
22
  updatedAt: string;
23
23
  projectId: string;
24
- tenantId: string;
24
+ description: string;
25
25
  metadata: Record<string, string> | null;
26
26
  content: string;
27
27
  } | null>;
@@ -110,13 +110,13 @@ interface WithTenantIdProjectId {
110
110
  }
111
111
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
+ tenantId: string;
113
114
  id: string;
114
- name: string;
115
- description: string;
116
115
  createdAt: string;
116
+ name: string;
117
117
  updatedAt: string;
118
118
  projectId: string;
119
- tenantId: string;
119
+ description: string;
120
120
  metadata: Record<string, string> | null;
121
121
  content: string;
122
122
  }>;
@@ -139,16 +139,16 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
139
139
  index: number;
140
140
  alwaysLoaded?: boolean;
141
141
  }) => Promise<{
142
+ tenantId: string;
142
143
  id: string;
143
144
  createdAt: string;
144
145
  updatedAt: string;
145
- projectId: string;
146
- tenantId: string;
147
146
  agentId: string;
147
+ projectId: string;
148
148
  subAgentId: string;
149
- skillId: string;
150
149
  index: number;
151
150
  alwaysLoaded: boolean;
151
+ skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -9,12 +9,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
12
13
  id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- projectId: string;
16
- tenantId: string;
17
16
  agentId: string;
17
+ projectId: string;
18
18
  subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  externalAgentId: string;
@@ -44,12 +44,12 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ tenantId: string;
47
48
  id: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- projectId: string;
51
- tenantId: string;
52
51
  agentId: string;
52
+ projectId: string;
53
53
  subAgentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  externalAgentId: string;
@@ -57,12 +57,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ tenantId: string;
60
61
  id: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- projectId: string;
64
- tenantId: string;
65
64
  agentId: string;
65
+ projectId: string;
66
66
  subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  externalAgentId: string;
@@ -186,12 +186,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
186
186
  headers?: Record<string, string> | null;
187
187
  };
188
188
  }) => Promise<{
189
+ tenantId: string;
189
190
  id: string;
190
191
  createdAt: string;
191
192
  updatedAt: string;
192
- projectId: string;
193
- tenantId: string;
194
193
  agentId: string;
194
+ projectId: string;
195
195
  subAgentId: string;
196
196
  headers: Record<string, string> | null;
197
197
  externalAgentId: string;
@@ -203,12 +203,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
203
203
  scopes: SubAgentScopeConfig;
204
204
  externalAgentId: string;
205
205
  }) => Promise<{
206
+ tenantId: string;
206
207
  id: string;
207
208
  createdAt: string;
208
209
  updatedAt: string;
209
- projectId: string;
210
- tenantId: string;
211
210
  agentId: string;
211
+ projectId: string;
212
212
  subAgentId: string;
213
213
  headers: Record<string, string> | null;
214
214
  externalAgentId: string;
@@ -224,12 +224,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
224
224
  headers?: Record<string, string> | null;
225
225
  };
226
226
  }) => Promise<{
227
+ tenantId: string;
227
228
  id: string;
228
229
  createdAt: string;
229
230
  updatedAt: string;
230
- projectId: string;
231
- tenantId: string;
232
231
  agentId: string;
232
+ projectId: string;
233
233
  subAgentId: string;
234
234
  headers: Record<string, string> | null;
235
235
  externalAgentId: string;
@@ -9,15 +9,15 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
12
13
  id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- projectId: string;
16
- tenantId: string;
17
16
  agentId: string;
18
- relationType: string | null;
17
+ projectId: string;
19
18
  sourceSubAgentId: string;
20
19
  targetSubAgentId: string | null;
20
+ relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -44,28 +44,28 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ tenantId: string;
47
48
  id: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- projectId: string;
51
- tenantId: string;
52
51
  agentId: string;
53
- relationType: string | null;
52
+ projectId: string;
54
53
  sourceSubAgentId: string;
55
54
  targetSubAgentId: string | null;
55
+ relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ tenantId: string;
60
61
  id: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- projectId: string;
64
- tenantId: string;
65
64
  agentId: string;
66
- relationType: string | null;
65
+ projectId: string;
67
66
  sourceSubAgentId: string;
68
67
  targetSubAgentId: string | null;
68
+ relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -126,15 +126,15 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
+ tenantId: string;
129
130
  id: string;
130
131
  createdAt: string;
131
132
  updatedAt: string;
132
- projectId: string;
133
- tenantId: string;
134
133
  agentId: string;
135
- relationType: string | null;
134
+ projectId: string;
136
135
  sourceSubAgentId: string;
137
136
  targetSubAgentId: string | null;
137
+ relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -145,29 +145,29 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
+ tenantId: string;
148
149
  id: string;
149
150
  createdAt: string;
150
151
  updatedAt: string;
151
- projectId: string;
152
- tenantId: string;
153
152
  agentId: string;
154
- relationType: string | null;
153
+ projectId: string;
155
154
  sourceSubAgentId: string;
156
155
  targetSubAgentId: string | null;
156
+ relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
+ tenantId: string;
162
163
  id: string;
163
164
  createdAt: string;
164
165
  updatedAt: string;
165
- projectId: string;
166
- tenantId: string;
167
166
  agentId: string;
168
- relationType: string | null;
167
+ projectId: string;
169
168
  sourceSubAgentId: string;
170
169
  targetSubAgentId: string | null;
170
+ relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
+ tenantId: string;
207
208
  id: string;
208
209
  createdAt: string;
209
210
  updatedAt: string;
210
- projectId: string;
211
- tenantId: string;
212
211
  agentId: string;
212
+ projectId: string;
213
213
  subAgentId: string;
214
214
  toolId: string;
215
215
  headers: Record<string, string> | null;
216
- selectedTools: string[] | null;
217
216
  toolPolicies: Record<string, {
218
217
  needsApproval?: boolean;
219
218
  }> | null;
219
+ selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -248,19 +248,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
+ tenantId: string;
251
252
  id: string;
252
253
  createdAt: string;
253
254
  updatedAt: string;
254
- projectId: string;
255
- tenantId: string;
256
255
  agentId: string;
256
+ projectId: string;
257
257
  subAgentId: string;
258
258
  toolId: string;
259
259
  headers: Record<string, string> | null;
260
- selectedTools: string[] | null;
261
260
  toolPolicies: Record<string, {
262
261
  needsApproval?: boolean;
263
262
  }> | null;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -9,12 +9,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
12
13
  id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- projectId: string;
16
- tenantId: string;
17
16
  agentId: string;
17
+ projectId: string;
18
18
  subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  targetAgentId: string;
@@ -44,12 +44,12 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ tenantId: string;
47
48
  id: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- projectId: string;
51
- tenantId: string;
52
51
  agentId: string;
52
+ projectId: string;
53
53
  subAgentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  targetAgentId: string;
@@ -57,12 +57,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ tenantId: string;
60
61
  id: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- projectId: string;
64
- tenantId: string;
65
64
  agentId: string;
65
+ projectId: string;
66
66
  subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  targetAgentId: string;
@@ -222,12 +222,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
222
222
  headers?: Record<string, string> | null;
223
223
  };
224
224
  }) => Promise<{
225
+ tenantId: string;
225
226
  id: string;
226
227
  createdAt: string;
227
228
  updatedAt: string;
228
- projectId: string;
229
- tenantId: string;
230
229
  agentId: string;
230
+ projectId: string;
231
231
  subAgentId: string;
232
232
  headers: Record<string, string> | null;
233
233
  targetAgentId: string;
@@ -239,12 +239,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
239
239
  scopes: SubAgentScopeConfig;
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
+ tenantId: string;
242
243
  id: string;
243
244
  createdAt: string;
244
245
  updatedAt: string;
245
- projectId: string;
246
- tenantId: string;
247
246
  agentId: string;
247
+ projectId: string;
248
248
  subAgentId: string;
249
249
  headers: Record<string, string> | null;
250
250
  targetAgentId: string;
@@ -260,12 +260,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
260
260
  headers?: Record<string, string> | null;
261
261
  };
262
262
  }) => Promise<{
263
+ tenantId: string;
263
264
  id: string;
264
265
  createdAt: string;
265
266
  updatedAt: string;
266
- projectId: string;
267
- tenantId: string;
268
267
  agentId: string;
268
+ projectId: string;
269
269
  subAgentId: string;
270
270
  headers: Record<string, string> | null;
271
271
  targetAgentId: string;
@@ -9,15 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
12
13
  id: string;
13
- name: string;
14
- description: string | null;
15
14
  createdAt: string;
15
+ name: string;
16
16
  updatedAt: string;
17
- projectId: string;
18
- tenantId: string;
19
17
  agentId: string;
20
- prompt: string | null;
18
+ projectId: string;
19
+ description: string | null;
21
20
  models: {
22
21
  base?: {
23
22
  model?: string | undefined;
@@ -38,6 +37,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
38
37
  allowedProviders?: string[] | undefined;
39
38
  } | undefined;
40
39
  } | null;
40
+ prompt: string | null;
41
41
  stopWhen: {
42
42
  stepCountIs?: number | undefined;
43
43
  } | null;
@@ -46,15 +46,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
48
48
  }) => Promise<{
49
+ tenantId: string;
49
50
  id: string;
50
- name: string;
51
- description: string | null;
52
51
  createdAt: string;
52
+ name: string;
53
53
  updatedAt: string;
54
- projectId: string;
55
- tenantId: string;
56
54
  agentId: string;
57
- prompt: string | null;
55
+ projectId: string;
56
+ description: string | null;
58
57
  models: {
59
58
  base?: {
60
59
  model?: string | undefined;
@@ -75,6 +74,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
75
74
  allowedProviders?: string[] | undefined;
76
75
  } | undefined;
77
76
  } | null;
77
+ prompt: string | null;
78
78
  stopWhen: {
79
79
  stepCountIs?: number | undefined;
80
80
  } | null;
@@ -127,15 +127,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
127
127
  };
128
128
  }>;
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
+ tenantId: string;
130
131
  id: string;
131
- name: string;
132
- description: string | null;
133
132
  createdAt: string;
133
+ name: string;
134
134
  updatedAt: string;
135
- projectId: string;
136
- tenantId: string;
137
135
  agentId: string;
138
- prompt: string | null;
136
+ projectId: string;
137
+ description: string | null;
139
138
  models: {
140
139
  base?: {
141
140
  model?: string | undefined;
@@ -156,6 +155,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
156
155
  allowedProviders?: string[] | undefined;
157
156
  } | undefined;
158
157
  } | null;
158
+ prompt: string | null;
159
159
  stopWhen: {
160
160
  stepCountIs?: number | undefined;
161
161
  } | null;