@inkeep/agents-core 0.0.0-dev-20260326201814 → 0.0.0-dev-20260326213425

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 (34) hide show
  1. package/dist/auth/auth-schema.d.ts +86 -86
  2. package/dist/auth/auth-validation-schemas.d.ts +137 -137
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/client-exports.d.ts +3 -106
  5. package/dist/client-exports.js +2 -60
  6. package/dist/data-access/manage/agents.d.ts +46 -46
  7. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  8. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  9. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  10. package/dist/data-access/manage/functionTools.d.ts +10 -10
  11. package/dist/data-access/manage/skills.d.ts +15 -15
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +21 -21
  13. package/dist/data-access/manage/subAgentRelations.d.ts +17 -17
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgents.d.ts +33 -33
  16. package/dist/data-access/manage/tools.d.ts +27 -27
  17. package/dist/data-access/manage/triggers.d.ts +2 -2
  18. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  19. package/dist/data-access/runtime/apps.d.ts +8 -8
  20. package/dist/data-access/runtime/conversations.d.ts +24 -24
  21. package/dist/data-access/runtime/messages.d.ts +18 -18
  22. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  23. package/dist/data-access/runtime/tasks.d.ts +6 -6
  24. package/dist/db/manage/manage-schema.d.ts +384 -384
  25. package/dist/db/runtime/runtime-schema.d.ts +314 -314
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +2 -2
  28. package/dist/validation/agentFull.js +0 -1
  29. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  30. package/dist/validation/index.d.ts +2 -2
  31. package/dist/validation/index.js +2 -2
  32. package/dist/validation/schemas.d.ts +2881 -2683
  33. package/dist/validation/schemas.js +53 -32
  34. package/package.json +1 -1
@@ -9,10 +9,10 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
12
  id: string;
14
13
  createdAt: string;
15
14
  updatedAt: string;
15
+ tenantId: string;
16
16
  projectId: string;
17
17
  agentId: string;
18
18
  sourceSubAgentId: string;
@@ -44,10 +44,10 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
47
  id: string;
49
48
  createdAt: string;
50
49
  updatedAt: string;
50
+ tenantId: string;
51
51
  projectId: string;
52
52
  agentId: string;
53
53
  sourceSubAgentId: string;
@@ -57,10 +57,10 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
60
  id: string;
62
61
  createdAt: string;
63
62
  updatedAt: string;
63
+ tenantId: string;
64
64
  projectId: string;
65
65
  agentId: string;
66
66
  sourceSubAgentId: string;
@@ -126,10 +126,10 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
- tenantId: string;
130
129
  id: string;
131
130
  createdAt: string;
132
131
  updatedAt: string;
132
+ tenantId: string;
133
133
  projectId: string;
134
134
  agentId: string;
135
135
  sourceSubAgentId: string;
@@ -145,10 +145,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
- tenantId: string;
149
148
  id: string;
150
149
  createdAt: string;
151
150
  updatedAt: string;
151
+ tenantId: string;
152
152
  projectId: string;
153
153
  agentId: string;
154
154
  sourceSubAgentId: string;
@@ -159,10 +159,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
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;
163
162
  id: string;
164
163
  createdAt: string;
165
164
  updatedAt: string;
165
+ tenantId: string;
166
166
  projectId: string;
167
167
  agentId: string;
168
168
  sourceSubAgentId: string;
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- tenantId: string;
208
207
  id: string;
209
208
  createdAt: string;
210
209
  updatedAt: string;
211
- headers: Record<string, string> | null;
210
+ tenantId: string;
212
211
  projectId: string;
213
212
  agentId: string;
214
213
  toolId: string;
215
- subAgentId: string;
216
- selectedTools: string[] | null;
214
+ headers: Record<string, string> | null;
217
215
  toolPolicies: Record<string, {
218
216
  needsApproval?: boolean;
219
217
  }> | null;
218
+ subAgentId: string;
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;
252
251
  id: string;
253
252
  createdAt: string;
254
253
  updatedAt: string;
255
- headers: Record<string, string> | null;
254
+ tenantId: string;
256
255
  projectId: string;
257
256
  agentId: string;
258
257
  toolId: string;
259
- subAgentId: string;
260
- selectedTools: string[] | null;
258
+ headers: Record<string, string> | null;
261
259
  toolPolicies: Record<string, {
262
260
  needsApproval?: boolean;
263
261
  }> | null;
262
+ subAgentId: string;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -410,15 +410,15 @@ declare const getAgentsForTool: (db: AgentsManageDatabaseClient) => (params: {
410
410
  models: {
411
411
  base?: {
412
412
  model?: string | undefined;
413
- providerOptions?: Record<string, any> | undefined;
413
+ providerOptions?: Record<string, unknown> | undefined;
414
414
  } | undefined;
415
415
  structuredOutput?: {
416
416
  model?: string | undefined;
417
- providerOptions?: Record<string, any> | undefined;
417
+ providerOptions?: Record<string, unknown> | undefined;
418
418
  } | undefined;
419
419
  summarizer?: {
420
420
  model?: string | undefined;
421
- providerOptions?: Record<string, any> | undefined;
421
+ providerOptions?: Record<string, unknown> | undefined;
422
422
  } | undefined;
423
423
  } | null;
424
424
  stopWhen: {
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
12
  id: string;
14
13
  createdAt: string;
15
14
  updatedAt: string;
16
- headers: Record<string, string> | null;
15
+ tenantId: string;
17
16
  projectId: string;
18
17
  agentId: string;
18
+ headers: Record<string, string> | null;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -44,26 +44,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
47
  id: string;
49
48
  createdAt: string;
50
49
  updatedAt: string;
51
- headers: Record<string, string> | null;
50
+ tenantId: string;
52
51
  projectId: string;
53
52
  agentId: string;
53
+ headers: Record<string, string> | null;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
60
  id: string;
62
61
  createdAt: string;
63
62
  updatedAt: string;
64
- headers: Record<string, string> | null;
63
+ tenantId: string;
65
64
  projectId: string;
66
65
  agentId: string;
66
+ headers: Record<string, string> | null;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -113,15 +113,15 @@ declare const getTeamAgentsForSubAgent: (db: AgentsManageDatabaseClient) => (par
113
113
  models: {
114
114
  base?: {
115
115
  model?: string | undefined;
116
- providerOptions?: Record<string, any> | undefined;
116
+ providerOptions?: Record<string, unknown> | undefined;
117
117
  } | undefined;
118
118
  structuredOutput?: {
119
119
  model?: string | undefined;
120
- providerOptions?: Record<string, any> | undefined;
120
+ providerOptions?: Record<string, unknown> | undefined;
121
121
  } | undefined;
122
122
  summarizer?: {
123
123
  model?: string | undefined;
124
- providerOptions?: Record<string, any> | undefined;
124
+ providerOptions?: Record<string, unknown> | undefined;
125
125
  } | undefined;
126
126
  } | null;
127
127
  statusUpdates: {
@@ -177,15 +177,15 @@ declare const getSubAgentsForTeamAgent: (db: AgentsManageDatabaseClient) => (par
177
177
  models: {
178
178
  base?: {
179
179
  model?: string | undefined;
180
- providerOptions?: Record<string, any> | undefined;
180
+ providerOptions?: Record<string, unknown> | undefined;
181
181
  } | undefined;
182
182
  structuredOutput?: {
183
183
  model?: string | undefined;
184
- providerOptions?: Record<string, any> | undefined;
184
+ providerOptions?: Record<string, unknown> | undefined;
185
185
  } | undefined;
186
186
  summarizer?: {
187
187
  model?: string | undefined;
188
- providerOptions?: Record<string, any> | undefined;
188
+ providerOptions?: Record<string, unknown> | undefined;
189
189
  } | undefined;
190
190
  } | null;
191
191
  stopWhen: {
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
- tenantId: string;
214
213
  id: string;
215
214
  createdAt: string;
216
215
  updatedAt: string;
217
- headers: Record<string, string> | null;
216
+ tenantId: string;
218
217
  projectId: string;
219
218
  agentId: string;
219
+ headers: Record<string, string> | null;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
- tenantId: string;
231
230
  id: string;
232
231
  createdAt: string;
233
232
  updatedAt: string;
234
- headers: Record<string, string> | null;
233
+ tenantId: string;
235
234
  projectId: string;
236
235
  agentId: string;
236
+ headers: Record<string, string> | null;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
- tenantId: string;
252
251
  id: string;
253
252
  createdAt: string;
254
253
  updatedAt: string;
255
- headers: Record<string, string> | null;
254
+ tenantId: string;
256
255
  projectId: string;
257
256
  agentId: string;
257
+ headers: Record<string, string> | null;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -9,62 +9,62 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- id: string;
14
12
  name: string;
15
- createdAt: string;
16
- updatedAt: string;
17
13
  description: string | null;
14
+ id: string;
18
15
  models: {
19
16
  base?: {
20
17
  model?: string | undefined;
21
- providerOptions?: Record<string, any> | undefined;
18
+ providerOptions?: Record<string, unknown> | undefined;
22
19
  } | undefined;
23
20
  structuredOutput?: {
24
21
  model?: string | undefined;
25
- providerOptions?: Record<string, any> | undefined;
22
+ providerOptions?: Record<string, unknown> | undefined;
26
23
  } | undefined;
27
24
  summarizer?: {
28
25
  model?: string | undefined;
29
- providerOptions?: Record<string, any> | undefined;
26
+ providerOptions?: Record<string, unknown> | undefined;
30
27
  } | undefined;
31
28
  } | null;
32
29
  stopWhen: {
33
30
  stepCountIs?: number | undefined;
34
31
  } | null;
35
- prompt: string | null;
32
+ createdAt: string;
33
+ updatedAt: string;
34
+ tenantId: string;
36
35
  projectId: string;
36
+ prompt: string | null;
37
37
  agentId: string;
38
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- tenantId: string;
44
- id: string;
45
43
  name: string;
46
- createdAt: string;
47
- updatedAt: string;
48
44
  description: string | null;
45
+ id: string;
49
46
  models: {
50
47
  base?: {
51
48
  model?: string | undefined;
52
- providerOptions?: Record<string, any> | undefined;
49
+ providerOptions?: Record<string, unknown> | undefined;
53
50
  } | undefined;
54
51
  structuredOutput?: {
55
52
  model?: string | undefined;
56
- providerOptions?: Record<string, any> | undefined;
53
+ providerOptions?: Record<string, unknown> | undefined;
57
54
  } | undefined;
58
55
  summarizer?: {
59
56
  model?: string | undefined;
60
- providerOptions?: Record<string, any> | undefined;
57
+ providerOptions?: Record<string, unknown> | undefined;
61
58
  } | undefined;
62
59
  } | null;
63
60
  stopWhen: {
64
61
  stepCountIs?: number | undefined;
65
62
  } | null;
66
- prompt: string | null;
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ tenantId: string;
67
66
  projectId: string;
67
+ prompt: string | null;
68
68
  agentId: string;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
@@ -80,15 +80,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
80
80
  models: {
81
81
  base?: {
82
82
  model?: string | undefined;
83
- providerOptions?: Record<string, any> | undefined;
83
+ providerOptions?: Record<string, unknown> | undefined;
84
84
  } | undefined;
85
85
  structuredOutput?: {
86
86
  model?: string | undefined;
87
- providerOptions?: Record<string, any> | undefined;
87
+ providerOptions?: Record<string, unknown> | undefined;
88
88
  } | undefined;
89
89
  summarizer?: {
90
90
  model?: string | undefined;
91
- providerOptions?: Record<string, any> | undefined;
91
+ providerOptions?: Record<string, unknown> | undefined;
92
92
  } | undefined;
93
93
  } | null;
94
94
  stopWhen: {
@@ -109,31 +109,31 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- tenantId: string;
113
- id: string;
114
112
  name: string;
115
- createdAt: string;
116
- updatedAt: string;
117
113
  description: string | null;
114
+ id: string;
118
115
  models: {
119
116
  base?: {
120
117
  model?: string | undefined;
121
- providerOptions?: Record<string, any> | undefined;
118
+ providerOptions?: Record<string, unknown> | undefined;
122
119
  } | undefined;
123
120
  structuredOutput?: {
124
121
  model?: string | undefined;
125
- providerOptions?: Record<string, any> | undefined;
122
+ providerOptions?: Record<string, unknown> | undefined;
126
123
  } | undefined;
127
124
  summarizer?: {
128
125
  model?: string | undefined;
129
- providerOptions?: Record<string, any> | undefined;
126
+ providerOptions?: Record<string, unknown> | undefined;
130
127
  } | undefined;
131
128
  } | null;
132
129
  stopWhen: {
133
130
  stepCountIs?: number | undefined;
134
131
  } | null;
135
- prompt: string | null;
132
+ createdAt: string;
133
+ updatedAt: string;
134
+ tenantId: string;
136
135
  projectId: string;
136
+ prompt: string | null;
137
137
  agentId: string;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
@@ -149,15 +149,15 @@ declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
149
149
  models: {
150
150
  base?: {
151
151
  model?: string | undefined;
152
- providerOptions?: Record<string, any> | undefined;
152
+ providerOptions?: Record<string, unknown> | undefined;
153
153
  } | undefined;
154
154
  structuredOutput?: {
155
155
  model?: string | undefined;
156
- providerOptions?: Record<string, any> | undefined;
156
+ providerOptions?: Record<string, unknown> | undefined;
157
157
  } | undefined;
158
158
  summarizer?: {
159
159
  model?: string | undefined;
160
- providerOptions?: Record<string, any> | undefined;
160
+ providerOptions?: Record<string, unknown> | undefined;
161
161
  } | undefined;
162
162
  } | null;
163
163
  stopWhen: {
@@ -196,15 +196,15 @@ declare const getSubAgentsByIds: (db: AgentsManageDatabaseClient) => (params: {
196
196
  models: {
197
197
  base?: {
198
198
  model?: string | undefined;
199
- providerOptions?: Record<string, any> | undefined;
199
+ providerOptions?: Record<string, unknown> | undefined;
200
200
  } | undefined;
201
201
  structuredOutput?: {
202
202
  model?: string | undefined;
203
- providerOptions?: Record<string, any> | undefined;
203
+ providerOptions?: Record<string, unknown> | undefined;
204
204
  } | undefined;
205
205
  summarizer?: {
206
206
  model?: string | undefined;
207
- providerOptions?: Record<string, any> | undefined;
207
+ providerOptions?: Record<string, unknown> | undefined;
208
208
  } | undefined;
209
209
  } | null;
210
210
  stopWhen: {
@@ -20,19 +20,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- tenantId: string;
24
- id: string;
25
23
  name: string;
24
+ description: string | null;
25
+ id: string;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
- description: string | null;
29
- headers: Record<string, string> | null;
28
+ tenantId: string;
30
29
  projectId: string;
31
- credentialReferenceId: string | null;
30
+ headers: Record<string, string> | null;
32
31
  config: {
33
32
  type: "mcp";
34
33
  mcp: ToolMcpConfig;
35
34
  };
35
+ credentialReferenceId: string | null;
36
36
  credentialScope: string;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
@@ -78,19 +78,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- tenantId: string;
82
- id: string;
83
81
  name: string;
82
+ description: string | null;
83
+ id: string;
84
84
  createdAt: string;
85
85
  updatedAt: string;
86
- description: string | null;
87
- headers: Record<string, string> | null;
86
+ tenantId: string;
88
87
  projectId: string;
89
- credentialReferenceId: string | null;
88
+ headers: Record<string, string> | null;
90
89
  config: {
91
90
  type: "mcp";
92
91
  mcp: ToolMcpConfig;
93
92
  };
93
+ credentialReferenceId: string | null;
94
94
  credentialScope: string;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- tenantId: string;
139
138
  id: string;
140
139
  createdAt: string;
141
140
  updatedAt: string;
142
- headers: Record<string, string> | null;
141
+ tenantId: string;
143
142
  projectId: string;
144
143
  agentId: string;
145
144
  toolId: string;
146
- subAgentId: string;
147
- selectedTools: string[] | null;
145
+ headers: Record<string, string> | null;
148
146
  toolPolicies: Record<string, {
149
147
  needsApproval?: boolean;
150
148
  }> | null;
149
+ subAgentId: string;
150
+ selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
- tenantId: string;
158
157
  id: string;
159
158
  createdAt: string;
160
159
  updatedAt: string;
161
- headers: Record<string, string> | null;
160
+ tenantId: string;
162
161
  projectId: string;
163
162
  agentId: string;
164
163
  toolId: string;
165
- subAgentId: string;
166
- selectedTools: string[] | null;
164
+ headers: Record<string, string> | null;
167
165
  toolPolicies: Record<string, {
168
166
  needsApproval?: boolean;
169
167
  }> | null;
168
+ subAgentId: string;
169
+ selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
- tenantId: string;
186
185
  id: string;
187
186
  createdAt: string;
188
187
  updatedAt: string;
189
- headers: Record<string, string> | null;
188
+ tenantId: string;
190
189
  projectId: string;
191
190
  agentId: string;
192
191
  toolId: string;
193
- subAgentId: string;
194
- selectedTools: string[] | null;
192
+ headers: Record<string, string> | null;
195
193
  toolPolicies: Record<string, {
196
194
  needsApproval?: boolean;
197
195
  }> | null;
196
+ subAgentId: string;
197
+ selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -202,19 +202,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- tenantId: string;
206
- id: string;
207
205
  name: string;
206
+ description: string | null;
207
+ id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- description: string | null;
211
- headers: Record<string, string> | null;
210
+ tenantId: string;
212
211
  projectId: string;
213
- credentialReferenceId: string | null;
212
+ headers: Record<string, string> | null;
214
213
  config: {
215
214
  type: "mcp";
216
215
  mcp: ToolMcpConfig;
217
216
  };
217
+ credentialReferenceId: string | null;
218
218
  credentialScope: string;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
@@ -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: "query" | "body" | "header";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "body" | "header";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -8,28 +8,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- id: string;
13
11
  name: string | null;
12
+ id: string;
14
13
  createdAt: string;
15
14
  updatedAt: string;
16
- expiresAt: string | null;
15
+ tenantId: string;
17
16
  projectId: string;
18
17
  agentId: string;
18
+ expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
22
22
  lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- tenantId: string;
26
- id: string;
27
25
  name: string | null;
26
+ id: string;
28
27
  createdAt: string;
29
28
  updatedAt: string;
30
- expiresAt: string | null;
29
+ tenantId: string;
31
30
  projectId: string;
32
31
  agentId: string;
32
+ expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -39,14 +39,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
- tenantId: string;
43
- id: string;
44
42
  name: string | null;
43
+ id: string;
45
44
  createdAt: string;
46
45
  updatedAt: string;
47
- expiresAt: string | null;
46
+ tenantId: string;
48
47
  projectId: string;
49
48
  agentId: string;
49
+ expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -66,14 +66,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- tenantId: string;
70
- id: string;
71
69
  name: string | null;
70
+ id: string;
72
71
  createdAt: string;
73
72
  updatedAt: string;
74
- expiresAt: string | null;
73
+ tenantId: string;
75
74
  projectId: string;
76
75
  agentId: string;
76
+ expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;