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

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 (40) 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 +56 -22
  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 +4 -4
  11. package/dist/data-access/index.d.ts +3 -3
  12. package/dist/data-access/index.js +3 -3
  13. package/dist/data-access/manage/agents.d.ts +49 -49
  14. package/dist/data-access/manage/agents.js +4 -4
  15. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  16. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  17. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  18. package/dist/data-access/manage/functionTools.d.ts +16 -16
  19. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +30 -30
  20. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  21. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  22. package/dist/data-access/manage/subAgents.d.ts +15 -15
  23. package/dist/data-access/manage/tools.d.ts +30 -30
  24. package/dist/data-access/manage/triggers.d.ts +2 -2
  25. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  26. package/dist/data-access/runtime/conversations.d.ts +31 -31
  27. package/dist/data-access/runtime/messages.d.ts +12 -12
  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 +7 -7
  31. package/dist/db/manage/manage-schema.d.ts +306 -306
  32. package/dist/db/runtime/runtime-schema.d.ts +212 -212
  33. package/dist/index.d.ts +4 -3
  34. package/dist/index.js +4 -3
  35. package/dist/validation/dolt-schemas.d.ts +1 -1
  36. package/dist/validation/schemas.d.ts +1540 -1540
  37. package/drizzle/runtime/0011_colorful_vivisector.sql +50 -0
  38. package/drizzle/runtime/meta/0011_snapshot.json +3088 -0
  39. package/drizzle/runtime/meta/_journal.json +7 -0
  40. package/package.json +5 -1
@@ -8,12 +8,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
14
+ agentId: string;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
- agentId: string;
15
- projectId: string;
16
- tenantId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -43,12 +43,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ tenantId: string;
47
+ projectId: string;
46
48
  id: string;
49
+ agentId: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
- agentId: string;
50
- projectId: string;
51
- tenantId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -56,12 +56,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
56
56
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ tenantId: string;
60
+ projectId: string;
59
61
  id: string;
62
+ agentId: string;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
- agentId: string;
63
- projectId: string;
64
- tenantId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -125,12 +125,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
125
125
  }[];
126
126
  }>;
127
127
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
128
+ tenantId: string;
129
+ projectId: string;
128
130
  id: string;
131
+ agentId: string;
129
132
  createdAt: string;
130
133
  updatedAt: string;
131
- agentId: string;
132
- projectId: string;
133
- tenantId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -144,12 +144,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
144
144
  targetSubAgentId?: string;
145
145
  relationType: string;
146
146
  }) => Promise<{
147
+ tenantId: string;
148
+ projectId: string;
147
149
  id: string;
150
+ agentId: string;
148
151
  createdAt: string;
149
152
  updatedAt: string;
150
- agentId: string;
151
- projectId: string;
152
- tenantId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -158,12 +158,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
159
159
  */
160
160
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
161
+ tenantId: string;
162
+ projectId: string;
161
163
  id: string;
164
+ agentId: string;
162
165
  createdAt: string;
163
166
  updatedAt: string;
164
- agentId: string;
165
- projectId: string;
166
- tenantId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -203,18 +203,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
- headers: Record<string, string> | null;
206
+ tenantId: string;
207
+ projectId: string;
207
208
  id: string;
209
+ agentId: string;
208
210
  createdAt: string;
209
211
  updatedAt: string;
210
- agentId: string;
211
- projectId: string;
212
- tenantId: string;
212
+ toolId: string;
213
+ headers: Record<string, string> | null;
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;
250
+ tenantId: string;
251
+ projectId: string;
251
252
  id: string;
253
+ agentId: string;
252
254
  createdAt: string;
253
255
  updatedAt: string;
254
- agentId: string;
255
- projectId: string;
256
- tenantId: string;
256
+ toolId: string;
257
+ headers: Record<string, string> | null;
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,13 +8,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- headers: Record<string, string> | null;
11
+ tenantId: string;
12
+ projectId: string;
12
13
  id: string;
14
+ agentId: string;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
17
+ headers: Record<string, string> | null;
18
18
  subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
@@ -43,26 +43,26 @@ 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;
46
+ tenantId: string;
47
+ projectId: string;
47
48
  id: string;
49
+ agentId: string;
48
50
  createdAt: string;
49
51
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
- tenantId: string;
52
+ headers: Record<string, string> | null;
53
53
  subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- headers: Record<string, string> | null;
59
+ tenantId: string;
60
+ projectId: string;
60
61
  id: string;
62
+ agentId: string;
61
63
  createdAt: string;
62
64
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
- tenantId: string;
65
+ headers: Record<string, string> | null;
66
66
  subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
@@ -209,13 +209,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
- headers: Record<string, string> | null;
212
+ tenantId: string;
213
+ projectId: string;
213
214
  id: string;
215
+ agentId: string;
214
216
  createdAt: string;
215
217
  updatedAt: string;
216
- agentId: string;
217
- projectId: string;
218
- tenantId: string;
218
+ headers: Record<string, string> | null;
219
219
  subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
@@ -226,13 +226,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
- headers: Record<string, string> | null;
229
+ tenantId: string;
230
+ projectId: string;
230
231
  id: string;
232
+ agentId: string;
231
233
  createdAt: string;
232
234
  updatedAt: string;
233
- agentId: string;
234
- projectId: string;
235
- tenantId: string;
235
+ headers: Record<string, string> | null;
236
236
  subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
@@ -247,13 +247,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
- headers: Record<string, string> | null;
250
+ tenantId: string;
251
+ projectId: string;
251
252
  id: string;
253
+ agentId: string;
252
254
  createdAt: string;
253
255
  updatedAt: string;
254
- agentId: string;
255
- projectId: string;
256
- tenantId: string;
256
+ headers: Record<string, string> | null;
257
257
  subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
@@ -8,14 +8,15 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
12
- createdAt: string;
13
- updatedAt: string;
14
14
  name: string;
15
15
  description: string | null;
16
+ prompt: string | null;
16
17
  agentId: string;
17
- projectId: string;
18
- tenantId: string;
18
+ createdAt: string;
19
+ updatedAt: string;
19
20
  models: {
20
21
  base?: {
21
22
  model?: string | undefined;
@@ -30,7 +31,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
31
  providerOptions?: Record<string, any> | undefined;
31
32
  } | undefined;
32
33
  } | null;
33
- prompt: string | null;
34
34
  stopWhen: {
35
35
  stepCountIs?: number | undefined;
36
36
  } | null;
@@ -39,14 +39,15 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
+ tenantId: string;
43
+ projectId: string;
42
44
  id: string;
43
- createdAt: string;
44
- updatedAt: string;
45
45
  name: string;
46
46
  description: string | null;
47
+ prompt: string | null;
47
48
  agentId: string;
48
- projectId: string;
49
- tenantId: string;
49
+ createdAt: string;
50
+ updatedAt: string;
50
51
  models: {
51
52
  base?: {
52
53
  model?: string | undefined;
@@ -61,7 +62,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
61
62
  providerOptions?: Record<string, any> | undefined;
62
63
  } | undefined;
63
64
  } | null;
64
- prompt: string | null;
65
65
  stopWhen: {
66
66
  stepCountIs?: number | undefined;
67
67
  } | null;
@@ -108,14 +108,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
+ tenantId: string;
112
+ projectId: string;
111
113
  id: string;
112
- createdAt: string;
113
- updatedAt: string;
114
114
  name: string;
115
115
  description: string | null;
116
+ prompt: string | null;
116
117
  agentId: string;
117
- projectId: string;
118
- tenantId: string;
118
+ createdAt: string;
119
+ updatedAt: string;
119
120
  models: {
120
121
  base?: {
121
122
  model?: string | undefined;
@@ -130,7 +131,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
130
131
  providerOptions?: Record<string, any> | undefined;
131
132
  } | undefined;
132
133
  } | null;
133
- prompt: string | null;
134
134
  stopWhen: {
135
135
  stepCountIs?: number | undefined;
136
136
  } | null;
@@ -18,19 +18,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- headers: Record<string, string> | null;
21
+ tenantId: string;
22
+ projectId: string;
22
23
  id: string;
23
- createdAt: string;
24
- updatedAt: string;
25
24
  name: string;
26
25
  description: string | null;
27
- projectId: string;
28
- tenantId: string;
29
26
  config: {
30
27
  type: "mcp";
31
28
  mcp: ToolMcpConfig;
32
29
  };
33
30
  credentialReferenceId: string | null;
31
+ createdAt: string;
32
+ updatedAt: string;
33
+ headers: Record<string, string> | null;
34
34
  credentialScope: string;
35
35
  imageUrl: string | null;
36
36
  capabilities: ToolServerCapabilities | null;
@@ -76,19 +76,19 @@ 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;
79
+ tenantId: string;
80
+ projectId: string;
80
81
  id: string;
81
- createdAt: string;
82
- updatedAt: string;
83
82
  name: string;
84
83
  description: string | null;
85
- projectId: string;
86
- tenantId: string;
87
84
  config: {
88
85
  type: "mcp";
89
86
  mcp: ToolMcpConfig;
90
87
  };
91
88
  credentialReferenceId: string | null;
89
+ createdAt: string;
90
+ updatedAt: string;
91
+ headers: Record<string, string> | null;
92
92
  credentialScope: string;
93
93
  imageUrl: string | null;
94
94
  capabilities: ToolServerCapabilities | null;
@@ -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;
136
+ tenantId: string;
137
+ projectId: string;
137
138
  id: string;
139
+ agentId: string;
138
140
  createdAt: string;
139
141
  updatedAt: string;
140
- agentId: string;
141
- projectId: string;
142
- tenantId: string;
142
+ toolId: string;
143
+ headers: Record<string, string> | null;
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;
155
+ tenantId: string;
156
+ projectId: string;
156
157
  id: string;
158
+ agentId: string;
157
159
  createdAt: string;
158
160
  updatedAt: string;
159
- agentId: string;
160
- projectId: string;
161
- tenantId: string;
161
+ toolId: string;
162
+ headers: Record<string, string> | null;
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;
183
+ tenantId: string;
184
+ projectId: string;
184
185
  id: string;
186
+ agentId: string;
185
187
  createdAt: string;
186
188
  updatedAt: string;
187
- agentId: string;
188
- projectId: string;
189
- tenantId: string;
189
+ toolId: string;
190
+ headers: Record<string, string> | null;
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,19 +200,19 @@ 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;
203
+ tenantId: string;
204
+ projectId: string;
204
205
  id: string;
205
- createdAt: string;
206
- updatedAt: string;
207
206
  name: string;
208
207
  description: string | null;
209
- projectId: string;
210
- tenantId: string;
211
208
  config: {
212
209
  type: "mcp";
213
210
  mcp: ToolMcpConfig;
214
211
  };
215
212
  credentialReferenceId: string | null;
213
+ createdAt: string;
214
+ updatedAt: string;
215
+ headers: Record<string, string> | null;
216
216
  credentialScope: string;
217
217
  imageUrl: string | null;
218
218
  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: "body" | "query" | "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: "body" | "header" | "literal";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
+ tenantId: string;
11
+ projectId: string;
10
12
  id: string;
11
- createdAt: string;
12
- updatedAt: string;
13
13
  name: string | null;
14
- expiresAt: string | null;
15
14
  agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
15
  publicId: string;
19
16
  keyHash: string;
20
17
  keyPrefix: string;
21
18
  lastUsedAt: string | null;
19
+ expiresAt: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
+ tenantId: string;
25
+ projectId: string;
24
26
  id: string;
25
- createdAt: string;
26
- updatedAt: string;
27
27
  name: string | null;
28
- expiresAt: string | null;
29
28
  agentId: string;
30
- projectId: string;
31
- tenantId: string;
32
29
  publicId: string;
33
30
  keyHash: string;
34
31
  keyPrefix: string;
35
32
  lastUsedAt: string | null;
33
+ expiresAt: string | null;
34
+ createdAt: string;
35
+ updatedAt: string;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
+ tenantId: string;
42
+ projectId: string;
41
43
  id: string;
42
- createdAt: string;
43
- updatedAt: string;
44
44
  name: string | null;
45
- expiresAt: string | null;
46
45
  agentId: string;
47
- projectId: string;
48
- tenantId: string;
49
46
  publicId: string;
50
47
  keyHash: string;
51
48
  keyPrefix: string;
52
49
  lastUsedAt: string | null;
50
+ expiresAt: string | null;
51
+ createdAt: string;
52
+ updatedAt: string;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
+ tenantId: string;
69
+ projectId: string;
68
70
  id: string;
69
- createdAt: string;
70
- updatedAt: string;
71
71
  name: string | null;
72
- expiresAt: string | null;
73
72
  agentId: string;
74
- projectId: string;
75
- tenantId: string;
76
73
  publicId: string;
77
74
  keyHash: string;
78
75
  keyPrefix: string;
79
76
  lastUsedAt: string | null;
77
+ expiresAt: string | null;
78
+ createdAt: string;
79
+ updatedAt: string;
80
80
  }>;
81
81
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;