@inkeep/agents-core 0.0.0-dev-20260127010045 → 0.0.0-dev-20260127181710

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.
@@ -67,8 +67,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  tenantId: string;
68
68
  projectId: string;
69
69
  id: string;
70
- createdAt: string;
71
70
  agentId: string;
71
+ createdAt: string;
72
72
  subAgentId: string;
73
73
  dataComponentId: string;
74
74
  }>;
@@ -109,8 +109,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  tenantId: string;
110
110
  projectId: string;
111
111
  id: string;
112
- createdAt: string;
113
112
  agentId: string;
113
+ createdAt: string;
114
114
  subAgentId: string;
115
115
  dataComponentId: string;
116
116
  } | null>;
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- name: string;
57
- description: string | null;
58
56
  tenantId: string;
59
57
  projectId: string;
60
58
  id: string;
59
+ name: string;
60
+ description: string | null;
61
+ agentId: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- name: string;
99
- description: string | null;
100
98
  tenantId: string;
101
99
  projectId: string;
102
100
  id: string;
101
+ name: string;
102
+ description: string | null;
103
+ agentId: string;
103
104
  createdAt: string;
104
105
  updatedAt: string;
105
- agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -164,14 +164,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  tenantId: string;
165
165
  projectId: string;
166
166
  id: string;
167
+ agentId: string;
167
168
  createdAt: string;
168
169
  updatedAt: string;
169
- agentId: string;
170
- subAgentId: string;
171
- functionToolId: string;
172
170
  toolPolicies: Record<string, {
173
171
  needsApproval?: boolean;
174
172
  }> | null;
173
+ subAgentId: string;
174
+ functionToolId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -229,14 +229,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  tenantId: string;
230
230
  projectId: string;
231
231
  id: string;
232
+ agentId: string;
232
233
  createdAt: string;
233
234
  updatedAt: string;
234
- agentId: string;
235
- subAgentId: string;
236
- functionToolId: string;
237
235
  toolPolicies: Record<string, {
238
236
  needsApproval?: boolean;
239
237
  }> | null;
238
+ subAgentId: string;
239
+ functionToolId: string;
240
240
  }>;
241
241
  //#endregion
242
242
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -11,12 +11,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
+ agentId: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- agentId: string;
17
17
  headers: Record<string, string> | null;
18
- subAgentId: string;
19
18
  externalAgentId: string;
19
+ subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -46,12 +46,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  tenantId: string;
47
47
  projectId: string;
48
48
  id: string;
49
+ agentId: string;
49
50
  createdAt: string;
50
51
  updatedAt: string;
51
- agentId: string;
52
52
  headers: Record<string, string> | null;
53
- subAgentId: string;
54
53
  externalAgentId: string;
54
+ subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
@@ -59,12 +59,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
59
59
  tenantId: string;
60
60
  projectId: string;
61
61
  id: string;
62
+ agentId: string;
62
63
  createdAt: string;
63
64
  updatedAt: string;
64
- agentId: string;
65
65
  headers: Record<string, string> | null;
66
- subAgentId: string;
67
66
  externalAgentId: string;
67
+ subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -182,12 +182,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
182
182
  tenantId: string;
183
183
  projectId: string;
184
184
  id: string;
185
+ agentId: string;
185
186
  createdAt: string;
186
187
  updatedAt: string;
187
- agentId: string;
188
188
  headers: Record<string, string> | null;
189
- subAgentId: string;
190
189
  externalAgentId: string;
190
+ subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -199,12 +199,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
199
199
  tenantId: string;
200
200
  projectId: string;
201
201
  id: string;
202
+ agentId: string;
202
203
  createdAt: string;
203
204
  updatedAt: string;
204
- agentId: string;
205
205
  headers: Record<string, string> | null;
206
- subAgentId: string;
207
206
  externalAgentId: string;
207
+ subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -220,12 +220,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
220
220
  tenantId: string;
221
221
  projectId: string;
222
222
  id: string;
223
+ agentId: string;
223
224
  createdAt: string;
224
225
  updatedAt: string;
225
- agentId: string;
226
226
  headers: Record<string, string> | null;
227
- subAgentId: string;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -11,9 +11,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
+ agentId: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- agentId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -46,9 +46,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  tenantId: string;
47
47
  projectId: string;
48
48
  id: string;
49
+ agentId: string;
49
50
  createdAt: string;
50
51
  updatedAt: string;
51
- agentId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -59,9 +59,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  tenantId: string;
60
60
  projectId: string;
61
61
  id: string;
62
+ agentId: string;
62
63
  createdAt: string;
63
64
  updatedAt: string;
64
- agentId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -128,9 +128,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
128
128
  tenantId: string;
129
129
  projectId: string;
130
130
  id: string;
131
+ agentId: string;
131
132
  createdAt: string;
132
133
  updatedAt: string;
133
- agentId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -147,9 +147,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  tenantId: string;
148
148
  projectId: string;
149
149
  id: string;
150
+ agentId: string;
150
151
  createdAt: string;
151
152
  updatedAt: string;
152
- agentId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -161,9 +161,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
161
161
  tenantId: string;
162
162
  projectId: string;
163
163
  id: string;
164
+ agentId: string;
164
165
  createdAt: string;
165
166
  updatedAt: string;
166
- agentId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -206,15 +206,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  tenantId: string;
207
207
  projectId: string;
208
208
  id: string;
209
+ agentId: string;
209
210
  createdAt: string;
210
211
  updatedAt: string;
211
- agentId: string;
212
- headers: Record<string, string> | null;
213
212
  toolId: string;
214
- subAgentId: string;
213
+ headers: Record<string, string> | null;
215
214
  toolPolicies: Record<string, {
216
215
  needsApproval?: boolean;
217
216
  }> | null;
217
+ subAgentId: string;
218
218
  selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -250,15 +250,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  tenantId: string;
251
251
  projectId: string;
252
252
  id: string;
253
+ agentId: string;
253
254
  createdAt: string;
254
255
  updatedAt: string;
255
- agentId: string;
256
- headers: Record<string, string> | null;
257
256
  toolId: string;
258
- subAgentId: string;
257
+ headers: Record<string, string> | null;
259
258
  toolPolicies: Record<string, {
260
259
  needsApproval?: boolean;
261
260
  }> | null;
261
+ subAgentId: string;
262
262
  selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,9 +11,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  tenantId: string;
12
12
  projectId: string;
13
13
  id: string;
14
+ agentId: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- agentId: string;
17
17
  headers: Record<string, string> | null;
18
18
  subAgentId: string;
19
19
  targetAgentId: string;
@@ -46,9 +46,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  tenantId: string;
47
47
  projectId: string;
48
48
  id: string;
49
+ agentId: string;
49
50
  createdAt: string;
50
51
  updatedAt: string;
51
- agentId: string;
52
52
  headers: Record<string, string> | null;
53
53
  subAgentId: string;
54
54
  targetAgentId: string;
@@ -59,9 +59,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  tenantId: string;
60
60
  projectId: string;
61
61
  id: string;
62
+ agentId: string;
62
63
  createdAt: string;
63
64
  updatedAt: string;
64
- agentId: string;
65
65
  headers: Record<string, string> | null;
66
66
  subAgentId: string;
67
67
  targetAgentId: string;
@@ -212,9 +212,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
212
212
  tenantId: string;
213
213
  projectId: string;
214
214
  id: string;
215
+ agentId: string;
215
216
  createdAt: string;
216
217
  updatedAt: string;
217
- agentId: string;
218
218
  headers: Record<string, string> | null;
219
219
  subAgentId: string;
220
220
  targetAgentId: string;
@@ -229,9 +229,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
229
229
  tenantId: string;
230
230
  projectId: string;
231
231
  id: string;
232
+ agentId: string;
232
233
  createdAt: string;
233
234
  updatedAt: string;
234
- agentId: string;
235
235
  headers: Record<string, string> | null;
236
236
  subAgentId: string;
237
237
  targetAgentId: string;
@@ -250,9 +250,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
250
250
  tenantId: string;
251
251
  projectId: string;
252
252
  id: string;
253
+ agentId: string;
253
254
  createdAt: string;
254
255
  updatedAt: string;
255
- agentId: string;
256
256
  headers: Record<string, string> | null;
257
257
  subAgentId: string;
258
258
  targetAgentId: string;
@@ -8,16 +8,15 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
- name: string;
12
- description: string | null;
13
11
  tenantId: string;
14
12
  projectId: string;
15
- stopWhen: {
16
- stepCountIs?: number | undefined;
17
- } | null;
18
- prompt: string | null;
19
13
  id: string;
20
- conversationHistoryConfig: ConversationHistoryConfig | null;
14
+ name: string;
15
+ description: string | null;
16
+ prompt: string | null;
17
+ agentId: string;
18
+ createdAt: string;
19
+ updatedAt: string;
21
20
  models: {
22
21
  base?: {
23
22
  model?: string | undefined;
@@ -32,23 +31,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
32
31
  providerOptions?: Record<string, any> | undefined;
33
32
  } | undefined;
34
33
  } | null;
35
- createdAt: string;
36
- updatedAt: string;
37
- agentId: string;
34
+ stopWhen: {
35
+ stepCountIs?: number | undefined;
36
+ } | null;
37
+ conversationHistoryConfig: ConversationHistoryConfig | null;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
- name: string;
43
- description: string | null;
44
42
  tenantId: string;
45
43
  projectId: string;
46
- stopWhen: {
47
- stepCountIs?: number | undefined;
48
- } | null;
49
- prompt: string | null;
50
44
  id: string;
51
- conversationHistoryConfig: ConversationHistoryConfig | null;
45
+ name: string;
46
+ description: string | null;
47
+ prompt: string | null;
48
+ agentId: string;
49
+ createdAt: string;
50
+ updatedAt: string;
52
51
  models: {
53
52
  base?: {
54
53
  model?: string | undefined;
@@ -63,9 +62,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
63
62
  providerOptions?: Record<string, any> | undefined;
64
63
  } | undefined;
65
64
  } | null;
66
- createdAt: string;
67
- updatedAt: string;
68
- agentId: string;
65
+ stopWhen: {
66
+ stepCountIs?: number | undefined;
67
+ } | null;
68
+ conversationHistoryConfig: ConversationHistoryConfig | null;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -108,16 +108,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- name: string;
112
- description: string | null;
113
111
  tenantId: string;
114
112
  projectId: string;
115
- stopWhen: {
116
- stepCountIs?: number | undefined;
117
- } | null;
118
- prompt: string | null;
119
113
  id: string;
120
- conversationHistoryConfig: ConversationHistoryConfig | null;
114
+ name: string;
115
+ description: string | null;
116
+ prompt: string | null;
117
+ agentId: string;
118
+ createdAt: string;
119
+ updatedAt: string;
121
120
  models: {
122
121
  base?: {
123
122
  model?: string | undefined;
@@ -132,9 +131,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
132
131
  providerOptions?: Record<string, any> | undefined;
133
132
  } | undefined;
134
133
  } | null;
135
- createdAt: string;
136
- updatedAt: string;
137
- agentId: string;
134
+ stopWhen: {
135
+ stepCountIs?: number | undefined;
136
+ } | null;
137
+ conversationHistoryConfig: ConversationHistoryConfig | null;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
140
140
  scopes: AgentScopeConfig;
@@ -18,19 +18,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- name: string;
22
- description: string | null;
23
21
  tenantId: string;
24
22
  projectId: string;
25
23
  id: string;
26
- createdAt: string;
27
- updatedAt: string;
28
- headers: Record<string, string> | null;
24
+ name: string;
25
+ description: string | null;
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;
@@ -74,19 +74,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
74
74
  };
75
75
  }>;
76
76
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
77
- name: string;
78
- description: string | null;
79
77
  tenantId: string;
80
78
  projectId: string;
81
79
  id: string;
82
- createdAt: string;
83
- updatedAt: string;
84
- headers: Record<string, string> | null;
80
+ name: string;
81
+ description: string | null;
85
82
  config: {
86
83
  type: "mcp";
87
84
  mcp: ToolMcpConfig;
88
85
  };
89
86
  credentialReferenceId: string | null;
87
+ createdAt: string;
88
+ updatedAt: string;
89
+ headers: Record<string, string> | null;
90
90
  credentialScope: string;
91
91
  imageUrl: string | null;
92
92
  capabilities: ToolServerCapabilities | null;
@@ -132,15 +132,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
132
132
  tenantId: string;
133
133
  projectId: string;
134
134
  id: string;
135
+ agentId: string;
135
136
  createdAt: string;
136
137
  updatedAt: string;
137
- agentId: string;
138
- headers: Record<string, string> | null;
139
138
  toolId: string;
140
- subAgentId: string;
139
+ headers: Record<string, string> | null;
141
140
  toolPolicies: Record<string, {
142
141
  needsApproval?: boolean;
143
142
  }> | null;
143
+ subAgentId: string;
144
144
  selectedTools: string[] | null;
145
145
  }>;
146
146
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -151,15 +151,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
151
151
  tenantId: string;
152
152
  projectId: string;
153
153
  id: string;
154
+ agentId: string;
154
155
  createdAt: string;
155
156
  updatedAt: string;
156
- agentId: string;
157
- headers: Record<string, string> | null;
158
157
  toolId: string;
159
- subAgentId: string;
158
+ headers: Record<string, string> | null;
160
159
  toolPolicies: Record<string, {
161
160
  needsApproval?: boolean;
162
161
  }> | null;
162
+ subAgentId: string;
163
163
  selectedTools: string[] | null;
164
164
  }>;
165
165
  /**
@@ -179,15 +179,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
179
179
  tenantId: string;
180
180
  projectId: string;
181
181
  id: string;
182
+ agentId: string;
182
183
  createdAt: string;
183
184
  updatedAt: string;
184
- agentId: string;
185
- headers: Record<string, string> | null;
186
185
  toolId: string;
187
- subAgentId: string;
186
+ headers: Record<string, string> | null;
188
187
  toolPolicies: Record<string, {
189
188
  needsApproval?: boolean;
190
189
  }> | null;
190
+ subAgentId: string;
191
191
  selectedTools: string[] | null;
192
192
  }>;
193
193
  /**
@@ -196,19 +196,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
196
196
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
197
197
  data: ToolInsert;
198
198
  }) => Promise<{
199
- name: string;
200
- description: string | null;
201
199
  tenantId: string;
202
200
  projectId: string;
203
201
  id: string;
204
- createdAt: string;
205
- updatedAt: string;
206
- headers: Record<string, string> | null;
202
+ name: string;
203
+ description: string | null;
207
204
  config: {
208
205
  type: "mcp";
209
206
  mcp: ToolMcpConfig;
210
207
  };
211
208
  credentialReferenceId: string | null;
209
+ createdAt: string;
210
+ updatedAt: string;
211
+ headers: Record<string, string> | null;
212
212
  credentialScope: string;
213
213
  imageUrl: string | null;
214
214
  capabilities: ToolServerCapabilities | null;
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "query" | "header" | "body";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
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
- name: string | null;
11
10
  tenantId: string;
12
11
  projectId: string;
13
12
  id: string;
14
- createdAt: string;
15
- updatedAt: string;
13
+ name: string | null;
16
14
  agentId: string;
17
15
  publicId: string;
18
16
  keyHash: string;
19
17
  keyPrefix: string;
20
18
  lastUsedAt: string | null;
21
19
  expiresAt: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
- name: string | null;
25
24
  tenantId: string;
26
25
  projectId: string;
27
26
  id: string;
28
- createdAt: string;
29
- updatedAt: string;
27
+ name: string | null;
30
28
  agentId: string;
31
29
  publicId: string;
32
30
  keyHash: string;
33
31
  keyPrefix: string;
34
32
  lastUsedAt: string | null;
35
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
- name: string | null;
42
41
  tenantId: string;
43
42
  projectId: string;
44
43
  id: string;
45
- createdAt: string;
46
- updatedAt: string;
44
+ name: string | null;
47
45
  agentId: string;
48
46
  publicId: string;
49
47
  keyHash: string;
50
48
  keyPrefix: string;
51
49
  lastUsedAt: string | null;
52
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
- name: string | null;
69
68
  tenantId: string;
70
69
  projectId: string;
71
70
  id: string;
72
- createdAt: string;
73
- updatedAt: string;
71
+ name: string | null;
74
72
  agentId: string;
75
73
  publicId: string;
76
74
  keyHash: string;
77
75
  keyPrefix: string;
78
76
  lastUsedAt: string | null;
79
77
  expiresAt: string | null;
78
+ createdAt: string;
79
+ updatedAt: string;
80
80
  }>;
81
81
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;