@inkeep/agents-core 0.44.0 → 0.45.1

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 (46) hide show
  1. package/dist/auth/auth-schema.d.ts +82 -82
  2. package/dist/auth/auth-validation-schemas.d.ts +146 -146
  3. package/dist/auth/auth.d.ts +57 -57
  4. package/dist/auth/authz/index.d.ts +2 -2
  5. package/dist/auth/authz/index.js +2 -2
  6. package/dist/auth/authz/permissions.d.ts +16 -1
  7. package/dist/auth/authz/permissions.js +26 -1
  8. package/dist/auth/permissions.d.ts +13 -13
  9. package/dist/constants/otel-attributes.d.ts +1 -0
  10. package/dist/constants/otel-attributes.js +1 -0
  11. package/dist/data-access/index.d.ts +2 -2
  12. package/dist/data-access/index.js +4 -4
  13. package/dist/data-access/manage/agents.d.ts +59 -42
  14. package/dist/data-access/manage/agents.js +33 -2
  15. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  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 +24 -24
  20. package/dist/data-access/manage/subAgentRelations.d.ts +32 -32
  21. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  22. package/dist/data-access/manage/subAgents.d.ts +15 -15
  23. package/dist/data-access/manage/tools.d.ts +27 -27
  24. package/dist/data-access/manage/tools.js +1 -1
  25. package/dist/data-access/manage/triggers.d.ts +2 -2
  26. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  27. package/dist/data-access/runtime/conversations.d.ts +31 -31
  28. package/dist/data-access/runtime/messages.d.ts +18 -18
  29. package/dist/data-access/runtime/tasks.d.ts +7 -7
  30. package/dist/db/manage/manage-schema.d.ts +4 -4
  31. package/dist/db/runtime/runtime-schema.d.ts +8 -8
  32. package/dist/dolt/branch.js +1 -1
  33. package/dist/dolt/branches-api.js +1 -1
  34. package/dist/dolt/index.js +3 -3
  35. package/dist/dolt/migrate-all-branches.js +1 -1
  36. package/dist/dolt/ref-helpers.js +1 -1
  37. package/dist/dolt/ref-scope.js +1 -1
  38. package/dist/index.d.ts +3 -3
  39. package/dist/index.js +11 -11
  40. package/dist/utils/temp-jwt.d.ts +2 -1
  41. package/dist/utils/temp-jwt.js +3 -2
  42. package/dist/validation/dolt-schemas.d.ts +1 -1
  43. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  44. package/dist/validation/schemas.d.ts +1666 -1666
  45. package/dist/validation/schemas.js +50 -52
  46. package/package.json +2 -2
@@ -8,15 +8,15 @@ 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
+ relationType: string | null;
17
18
  sourceSubAgentId: string;
18
19
  targetSubAgentId: string | null;
19
- relationType: string | null;
20
20
  } | undefined>;
21
21
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
@@ -43,28 +43,28 @@ 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
+ relationType: string | null;
52
53
  sourceSubAgentId: string;
53
54
  targetSubAgentId: string | null;
54
- relationType: string | null;
55
55
  }[]>;
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
+ relationType: string | null;
65
66
  sourceSubAgentId: string;
66
67
  targetSubAgentId: string | null;
67
- relationType: string | null;
68
68
  }[]>;
69
69
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -125,15 +125,15 @@ 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
+ relationType: string | null;
134
135
  sourceSubAgentId: string;
135
136
  targetSubAgentId: string | null;
136
- relationType: string | null;
137
137
  }>;
138
138
  /**
139
139
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -144,29 +144,29 @@ 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
+ relationType: string | null;
153
154
  sourceSubAgentId: string;
154
155
  targetSubAgentId: string | null;
155
- relationType: string | null;
156
156
  } | undefined>;
157
157
  /**
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
+ relationType: string | null;
167
168
  sourceSubAgentId: string;
168
169
  targetSubAgentId: string | null;
169
- relationType: string | null;
170
170
  }>;
171
171
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
172
172
  scopes: AgentScopeConfig;
@@ -203,18 +203,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
+ tenantId: string;
207
+ projectId: string;
206
208
  id: string;
209
+ agentId: string;
207
210
  createdAt: string;
208
211
  updatedAt: string;
212
+ toolId: string;
209
213
  headers: Record<string, string> | null;
210
- agentId: string;
211
- projectId: string;
212
- tenantId: 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
+ tenantId: string;
251
+ projectId: string;
250
252
  id: string;
253
+ agentId: string;
251
254
  createdAt: string;
252
255
  updatedAt: string;
256
+ toolId: string;
253
257
  headers: Record<string, string> | null;
254
- agentId: string;
255
- projectId: string;
256
- tenantId: 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,13 +8,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
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
17
  headers: Record<string, string> | null;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
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
+ tenantId: string;
47
+ projectId: string;
46
48
  id: string;
49
+ agentId: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
52
  headers: Record<string, string> | null;
50
- agentId: string;
51
- projectId: string;
52
- tenantId: string;
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
+ tenantId: string;
60
+ projectId: string;
59
61
  id: string;
62
+ agentId: string;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
65
  headers: Record<string, string> | null;
63
- agentId: string;
64
- projectId: string;
65
- tenantId: string;
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
+ tenantId: string;
213
+ projectId: string;
212
214
  id: string;
215
+ agentId: string;
213
216
  createdAt: string;
214
217
  updatedAt: string;
215
218
  headers: Record<string, string> | null;
216
- agentId: string;
217
- projectId: string;
218
- tenantId: string;
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
+ tenantId: string;
230
+ projectId: string;
229
231
  id: string;
232
+ agentId: string;
230
233
  createdAt: string;
231
234
  updatedAt: string;
232
235
  headers: Record<string, string> | null;
233
- agentId: string;
234
- projectId: string;
235
- tenantId: string;
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
+ tenantId: string;
251
+ projectId: string;
250
252
  id: string;
253
+ agentId: string;
251
254
  createdAt: string;
252
255
  updatedAt: string;
253
256
  headers: Record<string, string> | null;
254
- agentId: string;
255
- projectId: string;
256
- tenantId: string;
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
14
  name: string;
13
- createdAt: string;
14
- updatedAt: 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
45
  name: string;
44
- createdAt: string;
45
- updatedAt: 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
114
  name: string;
113
- createdAt: string;
114
- updatedAt: 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
+ tenantId: string;
22
+ projectId: string;
21
23
  id: string;
22
24
  name: string;
23
- createdAt: string;
24
- updatedAt: string;
25
25
  description: string | null;
26
- headers: Record<string, 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
+ tenantId: string;
80
+ projectId: string;
79
81
  id: string;
80
82
  name: string;
81
- createdAt: string;
82
- updatedAt: string;
83
83
  description: string | null;
84
- headers: Record<string, 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
+ tenantId: string;
137
+ projectId: string;
136
138
  id: string;
139
+ agentId: string;
137
140
  createdAt: string;
138
141
  updatedAt: string;
142
+ toolId: string;
139
143
  headers: Record<string, string> | null;
140
- agentId: string;
141
- projectId: string;
142
- tenantId: 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
+ tenantId: string;
156
+ projectId: string;
155
157
  id: string;
158
+ agentId: string;
156
159
  createdAt: string;
157
160
  updatedAt: string;
161
+ toolId: string;
158
162
  headers: Record<string, string> | null;
159
- agentId: string;
160
- projectId: string;
161
- tenantId: 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
+ tenantId: string;
184
+ projectId: string;
183
185
  id: string;
186
+ agentId: string;
184
187
  createdAt: string;
185
188
  updatedAt: string;
189
+ toolId: string;
186
190
  headers: Record<string, string> | null;
187
- agentId: string;
188
- projectId: string;
189
- tenantId: 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,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
+ tenantId: string;
204
+ projectId: string;
203
205
  id: string;
204
206
  name: string;
205
- createdAt: string;
206
- updatedAt: string;
207
207
  description: string | null;
208
- headers: Record<string, 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;
@@ -8,8 +8,8 @@ import { CredentialStuffer } from "../../credential-stuffer/CredentialStuffer.js
8
8
  import "../../credential-stuffer/index.js";
9
9
  import { createAgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
10
10
  import { generateId } from "../../utils/conversations.js";
11
- import { updateAgentToolRelation } from "./subAgentRelations.js";
12
11
  import { getActiveBranch } from "../../dolt/schema-sync.js";
12
+ import { updateAgentToolRelation } from "./subAgentRelations.js";
13
13
  import { toISODateString } from "../../utils/date.js";
14
14
  import { McpClient } from "../../utils/mcp-client.js";
15
15
  import { buildComposioMCPUrl } from "../../utils/third-party-mcp-servers/composio-client.js";
@@ -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;
@@ -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
13
  name: string | null;
12
- createdAt: string;
13
- updatedAt: string;
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
27
  name: string | null;
26
- createdAt: string;
27
- updatedAt: string;
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
44
  name: string | null;
43
- createdAt: string;
44
- updatedAt: string;
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
71
  name: string | null;
70
- createdAt: string;
71
- updatedAt: string;
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;