@inkeep/agents-core 0.53.0 → 0.53.2

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