@inkeep/agents-core 0.0.0-dev-20260206080126 → 0.0.0-dev-20260206214018

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/auth/auth-schema.d.ts +99 -82
  2. package/dist/auth/auth-schema.js +4 -3
  3. package/dist/auth/auth-validation-schemas.d.ts +34 -0
  4. package/dist/auth/auth.d.ts +52 -18
  5. package/dist/auth/auth.js +15 -1
  6. package/dist/auth/init.js +2 -2
  7. package/dist/auth/password-reset-link-store.d.ts +26 -0
  8. package/dist/auth/password-reset-link-store.js +40 -0
  9. package/dist/auth/permissions.d.ts +9 -9
  10. package/dist/client-exports.d.ts +1 -1
  11. package/dist/constants/models.d.ts +2 -0
  12. package/dist/constants/models.js +2 -0
  13. package/dist/data-access/index.d.ts +3 -3
  14. package/dist/data-access/index.js +3 -3
  15. package/dist/data-access/manage/agents.d.ts +9 -9
  16. package/dist/data-access/manage/agents.js +4 -4
  17. package/dist/data-access/manage/artifactComponents.d.ts +2 -2
  18. package/dist/data-access/manage/functionTools.d.ts +4 -4
  19. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  20. package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
  21. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  22. package/dist/data-access/manage/subAgents.d.ts +3 -3
  23. package/dist/data-access/manage/tools.d.ts +12 -12
  24. package/dist/data-access/manage/triggers.d.ts +2 -2
  25. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  26. package/dist/data-access/runtime/conversations.d.ts +8 -8
  27. package/dist/data-access/runtime/messages.d.ts +6 -6
  28. package/dist/data-access/runtime/organizations.d.ts +10 -1
  29. package/dist/data-access/runtime/organizations.js +24 -3
  30. package/dist/data-access/runtime/tasks.d.ts +2 -2
  31. package/dist/db/manage/manage-schema.d.ts +306 -306
  32. package/dist/db/runtime/runtime-schema.d.ts +204 -204
  33. package/dist/index.d.ts +4 -3
  34. package/dist/index.js +4 -3
  35. package/dist/validation/schemas.d.ts +1340 -1340
  36. package/drizzle/runtime/0011_colorful_vivisector.sql +50 -0
  37. package/drizzle/runtime/meta/0011_snapshot.json +3088 -0
  38. package/drizzle/runtime/meta/_journal.json +7 -0
  39. package/package.json +5 -1
@@ -9,9 +9,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
11
  id: string;
12
+ name: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
14
- name: string;
15
15
  description: string | null;
16
16
  projectId: string;
17
17
  tenantId: string;
@@ -55,9 +55,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
57
  id: string;
58
+ name: string;
58
59
  createdAt: string;
59
60
  updatedAt: string;
60
- name: string;
61
61
  description: string | null;
62
62
  projectId: string;
63
63
  tenantId: string;
@@ -98,9 +98,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
98
98
  } | null;
99
99
  defaultSubAgent: {
100
100
  id: string;
101
+ name: string;
101
102
  createdAt: string;
102
103
  updatedAt: string;
103
- name: string;
104
104
  description: string | null;
105
105
  agentId: string;
106
106
  projectId: string;
@@ -130,9 +130,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
132
  id: string;
133
+ name: string;
133
134
  createdAt: string;
134
135
  updatedAt: string;
135
- name: string;
136
136
  description: string | null;
137
137
  projectId: string;
138
138
  tenantId: string;
@@ -233,22 +233,22 @@ type AvailableAgentInfo = {
233
233
  projectId: string;
234
234
  };
235
235
  /**
236
- * List agents across multiple project branches for a tenant.
236
+ * List agents across multiple project main branches for a tenant.
237
237
  *
238
- * Use this when you need to query agents across projects without middleware-provided db.
238
+ * Uses Dolt AS OF queries against each project's main branch without checkout.
239
239
  *
240
240
  * @param db - Database client
241
241
  * @param params - Tenant and project IDs
242
242
  */
243
- declare function listAgentsAcrossProjectBranches(db: AgentsManageDatabaseClient, params: {
243
+ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseClient, params: {
244
244
  tenantId: string;
245
245
  projectIds: string[];
246
246
  }): Promise<AvailableAgentInfo[]>;
247
247
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
248
248
  id: string;
249
+ name: string;
249
250
  createdAt: string;
250
251
  updatedAt: string;
251
- name: string;
252
252
  description: string | null;
253
253
  projectId: string;
254
254
  tenantId: string;
@@ -382,4 +382,4 @@ declare const upsertAgent: (db: AgentsManageDatabaseClient) => (params: {
382
382
  data: AgentInsert;
383
383
  }) => Promise<AgentSelect | null>;
384
384
  //#endregion
385
- export { AvailableAgentInfo, createAgent, deleteAgent, fetchComponentRelationships, getAgentById, getAgentSubAgentInfos, getAgentWithDefaultSubAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, listAgents, listAgentsAcrossProjectBranches, listAgentsPaginated, updateAgent, upsertAgent };
385
+ export { AvailableAgentInfo, createAgent, deleteAgent, fetchComponentRelationships, getAgentById, getAgentSubAgentInfos, getAgentWithDefaultSubAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, listAgents, listAgentsAcrossProjectMainBranches, listAgentsPaginated, updateAgent, upsertAgent };
@@ -47,14 +47,14 @@ const listAgentsPaginated = (db) => async (params) => {
47
47
  };
48
48
  const agentsLogger = getLogger("agents-data-access");
49
49
  /**
50
- * List agents across multiple project branches for a tenant.
50
+ * List agents across multiple project main branches for a tenant.
51
51
  *
52
- * Use this when you need to query agents across projects without middleware-provided db.
52
+ * Uses Dolt AS OF queries against each project's main branch without checkout.
53
53
  *
54
54
  * @param db - Database client
55
55
  * @param params - Tenant and project IDs
56
56
  */
57
- async function listAgentsAcrossProjectBranches(db, params) {
57
+ async function listAgentsAcrossProjectMainBranches(db, params) {
58
58
  const { tenantId, projectIds } = params;
59
59
  const allAgents = [];
60
60
  for (const projectId of projectIds) try {
@@ -558,4 +558,4 @@ const upsertAgent = (db) => async (params) => {
558
558
  };
559
559
 
560
560
  //#endregion
561
- export { createAgent, deleteAgent, fetchComponentRelationships, getAgentById, getAgentSubAgentInfos, getAgentWithDefaultSubAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, listAgents, listAgentsAcrossProjectBranches, listAgentsPaginated, updateAgent, upsertAgent };
561
+ export { createAgent, deleteAgent, fetchComponentRelationships, getAgentById, getAgentSubAgentInfos, getAgentWithDefaultSubAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, listAgents, listAgentsAcrossProjectMainBranches, listAgentsPaginated, updateAgent, upsertAgent };
@@ -8,9 +8,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
8
8
  id: string;
9
9
  }) => Promise<{
10
10
  id: string;
11
+ name: string;
11
12
  createdAt: string;
12
13
  updatedAt: string;
13
- name: string;
14
14
  description: string | null;
15
15
  projectId: string;
16
16
  tenantId: string;
@@ -50,9 +50,9 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
52
  id: string;
53
+ name: string;
53
54
  createdAt: string;
54
55
  updatedAt: string;
55
- name: string;
56
56
  description: string | null;
57
57
  projectId: string;
58
58
  tenantId: string;
@@ -54,9 +54,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
56
  id: string;
57
+ name: string;
57
58
  createdAt: string;
58
59
  updatedAt: string;
59
- name: string;
60
60
  description: string | null;
61
61
  agentId: string;
62
62
  projectId: string;
@@ -96,9 +96,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
98
  id: string;
99
+ name: string;
99
100
  createdAt: string;
100
101
  updatedAt: string;
101
- name: string;
102
102
  description: string | null;
103
103
  agentId: string;
104
104
  projectId: string;
@@ -167,11 +167,11 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
167
167
  agentId: string;
168
168
  projectId: string;
169
169
  tenantId: string;
170
- functionToolId: string;
171
170
  toolPolicies: Record<string, {
172
171
  needsApproval?: boolean;
173
172
  }> | null;
174
173
  subAgentId: string;
174
+ functionToolId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -232,11 +232,11 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
232
232
  agentId: string;
233
233
  projectId: string;
234
234
  tenantId: string;
235
- functionToolId: string;
236
235
  toolPolicies: Record<string, {
237
236
  needsApproval?: boolean;
238
237
  }> | null;
239
238
  subAgentId: string;
239
+ functionToolId: string;
240
240
  }>;
241
241
  //#endregion
242
242
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- headers: Record<string, string> | null;
12
11
  id: string;
13
12
  createdAt: string;
14
13
  updatedAt: string;
14
+ headers: Record<string, string> | null;
15
15
  agentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
18
- subAgentId: string;
19
18
  externalAgentId: string;
19
+ subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
43
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- headers: Record<string, string> | null;
47
46
  id: string;
48
47
  createdAt: string;
49
48
  updatedAt: string;
49
+ headers: Record<string, string> | null;
50
50
  agentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
53
- subAgentId: string;
54
53
  externalAgentId: string;
54
+ subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- headers: Record<string, string> | null;
60
59
  id: string;
61
60
  createdAt: string;
62
61
  updatedAt: string;
62
+ headers: Record<string, string> | null;
63
63
  agentId: string;
64
64
  projectId: string;
65
65
  tenantId: string;
66
- subAgentId: string;
67
66
  externalAgentId: string;
67
+ subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
- headers: Record<string, string> | null;
183
182
  id: string;
184
183
  createdAt: string;
185
184
  updatedAt: string;
185
+ headers: Record<string, string> | null;
186
186
  agentId: string;
187
187
  projectId: string;
188
188
  tenantId: string;
189
- subAgentId: string;
190
189
  externalAgentId: string;
190
+ subAgentId: 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: AgentsManageDatabas
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
- headers: Record<string, string> | null;
200
199
  id: string;
201
200
  createdAt: string;
202
201
  updatedAt: string;
202
+ headers: Record<string, string> | null;
203
203
  agentId: string;
204
204
  projectId: string;
205
205
  tenantId: string;
206
- subAgentId: string;
207
206
  externalAgentId: string;
207
+ subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
- headers: Record<string, string> | null;
221
220
  id: string;
222
221
  createdAt: string;
223
222
  updatedAt: string;
223
+ headers: Record<string, string> | null;
224
224
  agentId: string;
225
225
  projectId: string;
226
226
  tenantId: string;
227
- subAgentId: string;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -203,18 +203,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
- headers: Record<string, string> | null;
207
206
  id: string;
208
207
  createdAt: string;
209
208
  updatedAt: string;
209
+ headers: Record<string, string> | null;
210
210
  agentId: string;
211
211
  projectId: string;
212
212
  tenantId: string;
213
+ toolId: string;
213
214
  toolPolicies: Record<string, {
214
215
  needsApproval?: boolean;
215
216
  }> | null;
216
217
  subAgentId: string;
217
- toolId: string;
218
218
  selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -247,18 +247,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
- headers: Record<string, string> | null;
251
250
  id: string;
252
251
  createdAt: string;
253
252
  updatedAt: string;
253
+ headers: Record<string, string> | null;
254
254
  agentId: string;
255
255
  projectId: string;
256
256
  tenantId: string;
257
+ toolId: string;
257
258
  toolPolicies: Record<string, {
258
259
  needsApproval?: boolean;
259
260
  }> | null;
260
261
  subAgentId: string;
261
- toolId: string;
262
262
  selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,10 +8,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- headers: Record<string, string> | null;
12
11
  id: string;
13
12
  createdAt: string;
14
13
  updatedAt: string;
14
+ headers: Record<string, string> | null;
15
15
  agentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
@@ -43,10 +43,10 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
43
43
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- headers: Record<string, string> | null;
47
46
  id: string;
48
47
  createdAt: string;
49
48
  updatedAt: string;
49
+ headers: Record<string, string> | null;
50
50
  agentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
@@ -56,10 +56,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- headers: Record<string, string> | null;
60
59
  id: string;
61
60
  createdAt: string;
62
61
  updatedAt: string;
62
+ headers: Record<string, string> | null;
63
63
  agentId: string;
64
64
  projectId: string;
65
65
  tenantId: string;
@@ -209,10 +209,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
- headers: Record<string, string> | null;
213
212
  id: string;
214
213
  createdAt: string;
215
214
  updatedAt: string;
215
+ headers: Record<string, string> | null;
216
216
  agentId: string;
217
217
  projectId: string;
218
218
  tenantId: string;
@@ -226,10 +226,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
- headers: Record<string, string> | null;
230
229
  id: string;
231
230
  createdAt: string;
232
231
  updatedAt: string;
232
+ headers: Record<string, string> | null;
233
233
  agentId: string;
234
234
  projectId: string;
235
235
  tenantId: string;
@@ -247,10 +247,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
- headers: Record<string, string> | null;
251
250
  id: string;
252
251
  createdAt: string;
253
252
  updatedAt: string;
253
+ headers: Record<string, string> | null;
254
254
  agentId: string;
255
255
  projectId: string;
256
256
  tenantId: string;
@@ -9,9 +9,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
+ name: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
14
- name: string;
15
15
  description: string | null;
16
16
  agentId: string;
17
17
  projectId: string;
@@ -40,9 +40,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
42
  id: string;
43
+ name: string;
43
44
  createdAt: string;
44
45
  updatedAt: string;
45
- name: string;
46
46
  description: string | null;
47
47
  agentId: string;
48
48
  projectId: string;
@@ -109,9 +109,9 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
111
  id: string;
112
+ name: string;
112
113
  createdAt: string;
113
114
  updatedAt: string;
114
- name: string;
115
115
  description: string | null;
116
116
  agentId: string;
117
117
  projectId: string;
@@ -18,12 +18,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- headers: Record<string, string> | null;
22
21
  id: string;
22
+ name: string;
23
23
  createdAt: string;
24
24
  updatedAt: string;
25
- name: string;
26
25
  description: string | null;
26
+ headers: Record<string, string> | null;
27
27
  projectId: string;
28
28
  tenantId: string;
29
29
  config: {
@@ -76,12 +76,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
76
76
  };
77
77
  }>;
78
78
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
- headers: Record<string, string> | null;
80
79
  id: string;
80
+ name: string;
81
81
  createdAt: string;
82
82
  updatedAt: string;
83
- name: string;
84
83
  description: string | null;
84
+ headers: Record<string, string> | null;
85
85
  projectId: string;
86
86
  tenantId: string;
87
87
  config: {
@@ -133,18 +133,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
133
  needsApproval?: boolean;
134
134
  }> | null;
135
135
  }) => Promise<{
136
- headers: Record<string, string> | null;
137
136
  id: string;
138
137
  createdAt: string;
139
138
  updatedAt: string;
139
+ headers: Record<string, string> | null;
140
140
  agentId: string;
141
141
  projectId: string;
142
142
  tenantId: string;
143
+ toolId: string;
143
144
  toolPolicies: Record<string, {
144
145
  needsApproval?: boolean;
145
146
  }> | null;
146
147
  subAgentId: string;
147
- toolId: string;
148
148
  selectedTools: string[] | null;
149
149
  }>;
150
150
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -152,18 +152,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
152
152
  subAgentId: string;
153
153
  toolId: string;
154
154
  }) => Promise<{
155
- headers: Record<string, string> | null;
156
155
  id: string;
157
156
  createdAt: string;
158
157
  updatedAt: string;
158
+ headers: Record<string, string> | null;
159
159
  agentId: string;
160
160
  projectId: string;
161
161
  tenantId: string;
162
+ toolId: string;
162
163
  toolPolicies: Record<string, {
163
164
  needsApproval?: boolean;
164
165
  }> | null;
165
166
  subAgentId: string;
166
- toolId: string;
167
167
  selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
@@ -180,18 +180,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
180
180
  }> | null;
181
181
  relationId?: string;
182
182
  }) => Promise<{
183
- headers: Record<string, string> | null;
184
183
  id: string;
185
184
  createdAt: string;
186
185
  updatedAt: string;
186
+ headers: Record<string, string> | null;
187
187
  agentId: string;
188
188
  projectId: string;
189
189
  tenantId: string;
190
+ toolId: string;
190
191
  toolPolicies: Record<string, {
191
192
  needsApproval?: boolean;
192
193
  }> | null;
193
194
  subAgentId: string;
194
- toolId: string;
195
195
  selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
@@ -200,12 +200,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
200
200
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
201
201
  data: ToolInsert;
202
202
  }) => Promise<{
203
- headers: Record<string, string> | null;
204
203
  id: string;
204
+ name: string;
205
205
  createdAt: string;
206
206
  updatedAt: string;
207
- name: string;
208
207
  description: string | null;
208
+ headers: Record<string, string> | null;
209
209
  projectId: string;
210
210
  tenantId: string;
211
211
  config: {
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "body" | "query" | "header";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "body" | "header" | "literal";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -8,9 +8,9 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  id: string;
9
9
  }) => Promise<{
10
10
  id: string;
11
+ name: string | null;
11
12
  createdAt: string;
12
13
  updatedAt: string;
13
- name: string | null;
14
14
  expiresAt: string | null;
15
15
  agentId: string;
16
16
  projectId: string;
@@ -22,9 +22,9 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
24
  id: string;
25
+ name: string | null;
25
26
  createdAt: string;
26
27
  updatedAt: string;
27
- name: string | null;
28
28
  expiresAt: string | null;
29
29
  agentId: string;
30
30
  projectId: string;
@@ -39,9 +39,9 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
41
  id: string;
42
+ name: string | null;
42
43
  createdAt: string;
43
44
  updatedAt: string;
44
- name: string | null;
45
45
  expiresAt: string | null;
46
46
  agentId: string;
47
47
  projectId: string;
@@ -66,9 +66,9 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
68
  id: string;
69
+ name: string | null;
69
70
  createdAt: string;
70
71
  updatedAt: string;
71
- name: string | null;
72
72
  expiresAt: string | null;
73
73
  agentId: string;
74
74
  projectId: string;
@@ -15,9 +15,7 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- metadata: ConversationMetadata | null;
19
18
  id: string;
20
- userId: string | null;
21
19
  createdAt: string;
22
20
  updatedAt: string;
23
21
  ref: {
@@ -25,6 +23,8 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
25
23
  name: string;
26
24
  hash: string;
27
25
  } | null;
26
+ userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
28
  agentId: string | null;
29
29
  projectId: string;
30
30
  tenantId: string;
@@ -84,9 +84,7 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
- metadata: ConversationMetadata | null;
88
87
  id: string;
89
- userId: string | null;
90
88
  createdAt: string;
91
89
  updatedAt: string;
92
90
  ref: {
@@ -94,6 +92,8 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
94
92
  name: string;
95
93
  hash: string;
96
94
  } | null;
95
+ userId: string | null;
96
+ metadata: ConversationMetadata | null;
97
97
  agentId: string | null;
98
98
  projectId: string;
99
99
  tenantId: string;
@@ -120,9 +120,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
- metadata: ConversationMetadata | null;
124
123
  id: string;
125
- userId: string | null;
126
124
  createdAt: string;
127
125
  updatedAt: string;
128
126
  ref: {
@@ -130,6 +128,8 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
130
128
  name: string;
131
129
  hash: string;
132
130
  } | null;
131
+ userId: string | null;
132
+ metadata: ConversationMetadata | null;
133
133
  agentId: string | null;
134
134
  projectId: string;
135
135
  tenantId: string;
@@ -152,9 +152,7 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
- metadata: ConversationMetadata | null;
156
155
  id: string;
157
- userId: string | null;
158
156
  createdAt: string;
159
157
  updatedAt: string;
160
158
  ref: {
@@ -162,6 +160,8 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
162
160
  name: string;
163
161
  hash: string;
164
162
  } | null;
163
+ userId: string | null;
164
+ metadata: ConversationMetadata | null;
165
165
  agentId: string | null;
166
166
  projectId: string;
167
167
  tenantId: string;