@inkeep/agents-core 0.40.0 → 0.41.0

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 (39) hide show
  1. package/dist/_virtual/rolldown_runtime.js +2 -2
  2. package/dist/auth/auth.d.ts +67 -58
  3. package/dist/auth/permissions.d.ts +15 -14
  4. package/dist/auth/permissions.js +2 -1
  5. package/dist/client-exports.d.ts +14 -1
  6. package/dist/constants/otel-attributes.d.ts +1 -3
  7. package/dist/constants/otel-attributes.js +2 -4
  8. package/dist/constants/signoz-queries.d.ts +0 -1
  9. package/dist/constants/signoz-queries.js +0 -1
  10. package/dist/credential-stores/index.d.ts +2 -1
  11. package/dist/credential-stores/index.js +2 -1
  12. package/dist/data-access/agents.d.ts +21 -21
  13. package/dist/data-access/apiKeys.d.ts +20 -20
  14. package/dist/data-access/artifactComponents.d.ts +30 -10
  15. package/dist/data-access/artifactComponents.js +22 -1
  16. package/dist/data-access/contextConfigs.d.ts +12 -12
  17. package/dist/data-access/conversations.d.ts +12 -12
  18. package/dist/data-access/dataComponents.d.ts +4 -4
  19. package/dist/data-access/functionTools.d.ts +8 -8
  20. package/dist/data-access/messages.d.ts +9 -9
  21. package/dist/data-access/subAgentExternalAgentRelations.d.ts +24 -24
  22. package/dist/data-access/subAgentRelations.d.ts +30 -30
  23. package/dist/data-access/subAgentTeamAgentRelations.d.ts +18 -18
  24. package/dist/data-access/subAgents.d.ts +15 -15
  25. package/dist/data-access/tasks.d.ts +3 -3
  26. package/dist/data-access/tools.d.ts +36 -36
  27. package/dist/db/schema.d.ts +25 -0
  28. package/dist/db/schema.js +3 -2
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +3 -2
  31. package/dist/utils/logger.js +19 -3
  32. package/dist/utils/mcp-client.js +19 -5
  33. package/dist/utils/schema-conversion.d.ts +1 -1
  34. package/dist/utils/schema-conversion.js +1 -1
  35. package/dist/validation/schemas.d.ts +1656 -1256
  36. package/drizzle/0007_slim_karma.sql +1 -0
  37. package/drizzle/meta/0007_snapshot.json +3772 -0
  38. package/drizzle/meta/_journal.json +7 -0
  39. package/package.json +9 -9
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- agentId: string;
15
12
  createdAt: string;
16
13
  updatedAt: string;
17
14
  headers: Record<string, string> | null;
18
- externalAgentId: string;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
19
18
  subAgentId: string;
19
+ externalAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
43
43
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- tenantId: string;
47
- projectId: string;
48
46
  id: string;
49
- agentId: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
52
49
  headers: Record<string, string> | null;
53
- externalAgentId: string;
50
+ tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
54
53
  subAgentId: string;
54
+ externalAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- tenantId: string;
60
- projectId: string;
61
59
  id: string;
62
- agentId: string;
63
60
  createdAt: string;
64
61
  updatedAt: string;
65
62
  headers: Record<string, string> | null;
66
- externalAgentId: string;
63
+ tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
67
66
  subAgentId: string;
67
+ externalAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
- tenantId: string;
183
- projectId: string;
184
182
  id: string;
185
- agentId: string;
186
183
  createdAt: string;
187
184
  updatedAt: string;
188
185
  headers: Record<string, string> | null;
189
- externalAgentId: string;
186
+ tenantId: string;
187
+ projectId: string;
188
+ agentId: string;
190
189
  subAgentId: string;
190
+ externalAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
- tenantId: string;
200
- projectId: string;
201
199
  id: string;
202
- agentId: string;
203
200
  createdAt: string;
204
201
  updatedAt: string;
205
202
  headers: Record<string, string> | null;
206
- externalAgentId: string;
203
+ tenantId: string;
204
+ projectId: string;
205
+ agentId: string;
207
206
  subAgentId: 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)
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
- tenantId: string;
221
- projectId: string;
222
220
  id: string;
223
- agentId: string;
224
221
  createdAt: string;
225
222
  updatedAt: string;
226
223
  headers: Record<string, string> | null;
227
- externalAgentId: string;
224
+ tenantId: string;
225
+ projectId: string;
226
+ agentId: string;
228
227
  subAgentId: string;
228
+ externalAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -8,12 +8,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- agentId: string;
15
12
  createdAt: string;
16
13
  updatedAt: string;
14
+ tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -43,12 +43,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
43
43
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- tenantId: string;
47
- projectId: string;
48
46
  id: string;
49
- agentId: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
49
+ tenantId: string;
50
+ projectId: string;
51
+ agentId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -56,12 +56,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
56
56
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- tenantId: string;
60
- projectId: string;
61
59
  id: string;
62
- agentId: string;
63
60
  createdAt: string;
64
61
  updatedAt: string;
62
+ tenantId: string;
63
+ projectId: string;
64
+ agentId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -125,12 +125,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
125
125
  }[];
126
126
  }>;
127
127
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
128
- tenantId: string;
129
- projectId: string;
130
128
  id: string;
131
- agentId: string;
132
129
  createdAt: string;
133
130
  updatedAt: string;
131
+ tenantId: string;
132
+ projectId: string;
133
+ agentId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -144,12 +144,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
144
144
  targetSubAgentId?: string;
145
145
  relationType: string;
146
146
  }) => Promise<{
147
- tenantId: string;
148
- projectId: string;
149
147
  id: string;
150
- agentId: string;
151
148
  createdAt: string;
152
149
  updatedAt: string;
150
+ tenantId: string;
151
+ projectId: string;
152
+ agentId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -158,12 +158,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
159
159
  */
160
160
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
161
- tenantId: string;
162
- projectId: string;
163
161
  id: string;
164
- agentId: string;
165
162
  createdAt: string;
166
163
  updatedAt: string;
164
+ tenantId: string;
165
+ projectId: string;
166
+ agentId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -203,19 +203,19 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
- tenantId: string;
207
- projectId: string;
208
206
  id: string;
209
- agentId: string;
210
207
  createdAt: string;
211
208
  updatedAt: string;
212
- toolId: string;
213
209
  headers: Record<string, string> | null;
210
+ tenantId: string;
211
+ projectId: string;
212
+ agentId: string;
213
+ toolId: string;
214
+ subAgentId: string;
215
+ selectedTools: string[] | null;
214
216
  toolPolicies: Record<string, {
215
217
  needsApproval?: boolean;
216
218
  }> | null;
217
- subAgentId: string;
218
- selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -247,19 +247,19 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
- tenantId: string;
251
- projectId: string;
252
250
  id: string;
253
- agentId: string;
254
251
  createdAt: string;
255
252
  updatedAt: string;
256
- toolId: string;
257
253
  headers: Record<string, string> | null;
254
+ tenantId: string;
255
+ projectId: string;
256
+ agentId: string;
257
+ toolId: string;
258
+ subAgentId: string;
259
+ selectedTools: string[] | null;
258
260
  toolPolicies: Record<string, {
259
261
  needsApproval?: boolean;
260
262
  }> | null;
261
- subAgentId: string;
262
- selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -8,13 +8,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- agentId: string;
15
12
  createdAt: string;
16
13
  updatedAt: string;
17
14
  headers: Record<string, string> | null;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
@@ -43,26 +43,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
43
43
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- tenantId: string;
47
- projectId: string;
48
46
  id: string;
49
- agentId: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
52
49
  headers: Record<string, string> | null;
50
+ tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
53
  subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- tenantId: string;
60
- projectId: string;
61
59
  id: string;
62
- agentId: string;
63
60
  createdAt: string;
64
61
  updatedAt: string;
65
62
  headers: Record<string, string> | null;
63
+ tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
66
  subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
@@ -209,13 +209,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
- tenantId: string;
213
- projectId: string;
214
212
  id: string;
215
- agentId: string;
216
213
  createdAt: string;
217
214
  updatedAt: string;
218
215
  headers: Record<string, string> | null;
216
+ tenantId: string;
217
+ projectId: string;
218
+ agentId: string;
219
219
  subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
@@ -226,13 +226,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
- tenantId: string;
230
- projectId: string;
231
229
  id: string;
232
- agentId: string;
233
230
  createdAt: string;
234
231
  updatedAt: string;
235
232
  headers: Record<string, string> | null;
233
+ tenantId: string;
234
+ projectId: string;
235
+ agentId: string;
236
236
  subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
@@ -247,13 +247,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
- tenantId: string;
251
- projectId: string;
252
250
  id: string;
253
- agentId: string;
254
251
  createdAt: string;
255
252
  updatedAt: string;
256
253
  headers: Record<string, string> | null;
254
+ tenantId: string;
255
+ projectId: string;
256
+ agentId: string;
257
257
  subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
@@ -8,15 +8,11 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
12
  name: string;
15
- description: string | null;
16
- prompt: string | null;
17
- agentId: string;
18
13
  createdAt: string;
19
14
  updatedAt: string;
15
+ description: string | null;
20
16
  models: {
21
17
  base?: {
22
18
  model?: string | undefined;
@@ -34,20 +30,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
34
30
  stopWhen: {
35
31
  stepCountIs?: number | undefined;
36
32
  } | null;
33
+ tenantId: string;
34
+ prompt: string | null;
35
+ projectId: string;
36
+ agentId: string;
37
37
  conversationHistoryConfig: ConversationHistoryConfig | null;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: DatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
- tenantId: string;
43
- projectId: string;
44
42
  id: string;
45
43
  name: string;
46
- description: string | null;
47
- prompt: string | null;
48
- agentId: string;
49
44
  createdAt: string;
50
45
  updatedAt: string;
46
+ description: string | null;
51
47
  models: {
52
48
  base?: {
53
49
  model?: string | undefined;
@@ -65,6 +61,10 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
65
61
  stopWhen: {
66
62
  stepCountIs?: number | undefined;
67
63
  } | null;
64
+ tenantId: string;
65
+ prompt: string | null;
66
+ projectId: string;
67
+ agentId: string;
68
68
  conversationHistoryConfig: ConversationHistoryConfig | null;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -108,15 +108,11 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- tenantId: string;
112
- projectId: string;
113
111
  id: string;
114
112
  name: string;
115
- description: string | null;
116
- prompt: string | null;
117
- agentId: string;
118
113
  createdAt: string;
119
114
  updatedAt: string;
115
+ description: string | null;
120
116
  models: {
121
117
  base?: {
122
118
  model?: string | undefined;
@@ -134,6 +130,10 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
134
130
  stopWhen: {
135
131
  stepCountIs?: number | undefined;
136
132
  } | null;
133
+ tenantId: string;
134
+ prompt: string | null;
135
+ projectId: string;
136
+ agentId: string;
137
137
  conversationHistoryConfig: ConversationHistoryConfig | null;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -6,14 +6,14 @@ import { DatabaseClient } from "../db/client.js";
6
6
 
7
7
  //#region src/data-access/tasks.d.ts
8
8
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
9
- tenantId: string;
10
- projectId: string;
11
9
  id: string;
12
- agentId: string;
13
10
  createdAt: string;
14
11
  updatedAt: string;
15
12
  metadata: TaskMetadataConfig | null;
16
13
  status: string;
14
+ tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
17
17
  contextId: string;
18
18
  subAgentId: string;
19
19
  }>;
@@ -12,19 +12,19 @@ declare const getToolById: (db: DatabaseClient) => (params: {
12
12
  scopes: ProjectScopeConfig;
13
13
  toolId: string;
14
14
  }) => Promise<{
15
- tenantId: string;
16
- projectId: string;
17
15
  id: string;
18
16
  name: string;
17
+ createdAt: string;
18
+ updatedAt: string;
19
19
  description: string | null;
20
+ headers: Record<string, string> | null;
21
+ tenantId: string;
22
+ projectId: string;
23
+ credentialReferenceId: string | null;
20
24
  config: {
21
25
  type: "mcp";
22
26
  mcp: ToolMcpConfig;
23
27
  };
24
- credentialReferenceId: string | null;
25
- createdAt: string;
26
- updatedAt: string;
27
- headers: Record<string, string> | null;
28
28
  credentialScope: string;
29
29
  imageUrl: string | null;
30
30
  capabilities: ToolServerCapabilities | null;
@@ -61,19 +61,19 @@ declare const listTools: (db: DatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
64
- tenantId: string;
65
- projectId: string;
66
64
  id: string;
67
65
  name: string;
66
+ createdAt: string;
67
+ updatedAt: string;
68
68
  description: string | null;
69
+ headers: Record<string, string> | null;
70
+ tenantId: string;
71
+ projectId: string;
72
+ credentialReferenceId: string | null;
69
73
  config: {
70
74
  type: "mcp";
71
75
  mcp: ToolMcpConfig;
72
76
  };
73
- credentialReferenceId: string | null;
74
- createdAt: string;
75
- updatedAt: string;
76
- headers: Record<string, string> | null;
77
77
  credentialScope: string;
78
78
  imageUrl: string | null;
79
79
  capabilities: ToolServerCapabilities | null;
@@ -116,38 +116,38 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
116
116
  needsApproval?: boolean;
117
117
  }> | null;
118
118
  }) => Promise<{
119
- tenantId: string;
120
- projectId: string;
121
119
  id: string;
122
- agentId: string;
123
120
  createdAt: string;
124
121
  updatedAt: string;
125
- toolId: string;
126
122
  headers: Record<string, string> | null;
123
+ tenantId: string;
124
+ projectId: string;
125
+ agentId: string;
126
+ toolId: string;
127
+ subAgentId: string;
128
+ selectedTools: string[] | null;
127
129
  toolPolicies: Record<string, {
128
130
  needsApproval?: boolean;
129
131
  }> | null;
130
- subAgentId: string;
131
- selectedTools: string[] | null;
132
132
  }>;
133
133
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
134
134
  scopes: AgentScopeConfig;
135
135
  subAgentId: string;
136
136
  toolId: string;
137
137
  }) => Promise<{
138
- tenantId: string;
139
- projectId: string;
140
138
  id: string;
141
- agentId: string;
142
139
  createdAt: string;
143
140
  updatedAt: string;
144
- toolId: string;
145
141
  headers: Record<string, string> | null;
142
+ tenantId: string;
143
+ projectId: string;
144
+ agentId: string;
145
+ toolId: string;
146
+ subAgentId: string;
147
+ selectedTools: string[] | null;
146
148
  toolPolicies: Record<string, {
147
149
  needsApproval?: boolean;
148
150
  }> | null;
149
- subAgentId: string;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  /**
153
153
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -163,19 +163,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
163
163
  }> | null;
164
164
  relationId?: string;
165
165
  }) => Promise<{
166
- tenantId: string;
167
- projectId: string;
168
166
  id: string;
169
- agentId: string;
170
167
  createdAt: string;
171
168
  updatedAt: string;
172
- toolId: string;
173
169
  headers: Record<string, string> | null;
170
+ tenantId: string;
171
+ projectId: string;
172
+ agentId: string;
173
+ toolId: string;
174
+ subAgentId: string;
175
+ selectedTools: string[] | null;
174
176
  toolPolicies: Record<string, {
175
177
  needsApproval?: boolean;
176
178
  }> | null;
177
- subAgentId: string;
178
- selectedTools: string[] | null;
179
179
  }>;
180
180
  /**
181
181
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -183,19 +183,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
183
183
  declare const upsertTool: (db: DatabaseClient) => (params: {
184
184
  data: ToolInsert;
185
185
  }) => Promise<{
186
- tenantId: string;
187
- projectId: string;
188
186
  id: string;
189
187
  name: string;
188
+ createdAt: string;
189
+ updatedAt: string;
190
190
  description: string | null;
191
+ headers: Record<string, string> | null;
192
+ tenantId: string;
193
+ projectId: string;
194
+ credentialReferenceId: string | null;
191
195
  config: {
192
196
  type: "mcp";
193
197
  mcp: ToolMcpConfig;
194
198
  };
195
- credentialReferenceId: string | null;
196
- createdAt: string;
197
- updatedAt: string;
198
- headers: Record<string, string> | null;
199
199
  credentialScope: string;
200
200
  imageUrl: string | null;
201
201
  capabilities: ToolServerCapabilities | null;
@@ -2220,6 +2220,31 @@ declare const artifactComponents: drizzle_orm_pg_core208.PgTableWithColumns<{
2220
2220
  }, {}, {
2221
2221
  $type: Record<string, unknown>;
2222
2222
  }>;
2223
+ render: drizzle_orm_pg_core208.PgColumn<{
2224
+ name: "render";
2225
+ tableName: "artifact_components";
2226
+ dataType: "json";
2227
+ columnType: "PgJsonb";
2228
+ data: {
2229
+ component: string;
2230
+ mockData: Record<string, unknown>;
2231
+ };
2232
+ driverParam: unknown;
2233
+ notNull: false;
2234
+ hasDefault: false;
2235
+ isPrimaryKey: false;
2236
+ isAutoincrement: false;
2237
+ hasRuntimeDefault: false;
2238
+ enumValues: undefined;
2239
+ baseColumn: never;
2240
+ identity: undefined;
2241
+ generated: undefined;
2242
+ }, {}, {
2243
+ $type: {
2244
+ component: string;
2245
+ mockData: Record<string, unknown>;
2246
+ };
2247
+ }>;
2223
2248
  name: drizzle_orm_pg_core208.PgColumn<{
2224
2249
  name: "name";
2225
2250
  tableName: "artifact_components";
package/dist/db/schema.js CHANGED
@@ -1,10 +1,10 @@
1
- import { __export } from "../_virtual/rolldown_runtime.js";
1
+ import { __exportAll } from "../_virtual/rolldown_runtime.js";
2
2
  import { account, deviceCode, invitation, member, organization, session, ssoProvider, user, verification } from "../auth/auth-schema.js";
3
3
  import { relations } from "drizzle-orm";
4
4
  import { foreignKey, index, integer, jsonb, pgTable, primaryKey, text, timestamp, unique, varchar } from "drizzle-orm/pg-core";
5
5
 
6
6
  //#region src/db/schema.ts
7
- var schema_exports = /* @__PURE__ */ __export({
7
+ var schema_exports = /* @__PURE__ */ __exportAll({
8
8
  account: () => account,
9
9
  agentRelations: () => agentRelations,
10
10
  agentToolRelationsRelations: () => agentToolRelationsRelations,
@@ -344,6 +344,7 @@ const artifactComponents = pgTable("artifact_components", {
344
344
  ...projectScoped,
345
345
  ...uiProperties,
346
346
  props: jsonb("props").$type(),
347
+ render: jsonb("render").$type(),
347
348
  ...timestamps
348
349
  }, (table) => [primaryKey({ columns: [
349
350
  table.tenantId,