@inkeep/agents-core 0.53.11 → 0.53.13

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