@inkeep/agents-core 0.77.0 → 0.78.0

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 +163 -163
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/constants/models.d.ts +3 -0
  5. package/dist/constants/models.js +3 -0
  6. package/dist/data-access/index.d.ts +4 -4
  7. package/dist/data-access/index.js +4 -4
  8. package/dist/data-access/manage/agents.d.ts +19 -19
  9. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  10. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  11. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  12. package/dist/data-access/manage/functionTools.d.ts +8 -8
  13. package/dist/data-access/manage/skills.d.ts +10 -10
  14. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  15. package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
  16. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  17. package/dist/data-access/manage/subAgents.d.ts +9 -9
  18. package/dist/data-access/manage/tools.d.ts +15 -15
  19. package/dist/data-access/manage/triggers.d.ts +4 -4
  20. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  21. package/dist/data-access/runtime/apps.d.ts +11 -11
  22. package/dist/data-access/runtime/conversations.d.ts +57 -38
  23. package/dist/data-access/runtime/conversations.js +16 -1
  24. package/dist/data-access/runtime/evalRuns.d.ts +5 -1
  25. package/dist/data-access/runtime/evalRuns.js +4 -1
  26. package/dist/data-access/runtime/events.d.ts +7 -7
  27. package/dist/data-access/runtime/feedback.d.ts +4 -4
  28. package/dist/data-access/runtime/messages.d.ts +54 -25
  29. package/dist/data-access/runtime/messages.js +30 -1
  30. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  31. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  32. package/dist/data-access/runtime/tasks.d.ts +5 -5
  33. package/dist/db/manage/manage-schema.d.ts +383 -383
  34. package/dist/db/runtime/runtime-schema.d.ts +419 -419
  35. package/dist/index.d.ts +4 -4
  36. package/dist/index.js +4 -4
  37. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  38. package/dist/validation/schemas/skills.d.ts +51 -51
  39. package/dist/validation/schemas.d.ts +2405 -2405
  40. package/package.json +1 -1
@@ -15,15 +15,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
15
15
  scopes: ProjectScopeConfig;
16
16
  skillId: string;
17
17
  }) => Promise<{
18
- id: string;
19
18
  name: string;
19
+ description: string;
20
+ id: string;
21
+ metadata: Record<string, string> | null;
20
22
  createdAt: string;
21
23
  updatedAt: string;
22
- metadata: Record<string, string> | null;
23
- description: string;
24
- content: string;
25
24
  projectId: string;
26
25
  tenantId: string;
26
+ content: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -110,15 +110,15 @@ interface WithTenantIdProjectId {
110
110
  }
111
111
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
- id: string;
114
113
  name: string;
114
+ description: string;
115
+ id: string;
116
+ metadata: Record<string, string> | null;
115
117
  createdAt: string;
116
118
  updatedAt: string;
117
- metadata: Record<string, string> | null;
118
- description: string;
119
- content: string;
120
119
  projectId: string;
121
120
  tenantId: string;
121
+ content: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -140,13 +140,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
140
140
  alwaysLoaded?: boolean;
141
141
  }) => Promise<{
142
142
  id: string;
143
+ agentId: string;
143
144
  createdAt: string;
144
145
  updatedAt: string;
145
- skillId: string;
146
146
  projectId: string;
147
147
  tenantId: string;
148
- agentId: string;
149
148
  subAgentId: string;
149
+ skillId: string;
150
150
  index: number;
151
151
  alwaysLoaded: boolean;
152
152
  }>;
@@ -10,11 +10,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ agentId: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
16
  projectId: string;
16
17
  tenantId: string;
17
- agentId: string;
18
18
  subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  externalAgentId: string;
@@ -45,11 +45,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ agentId: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
51
  projectId: string;
51
52
  tenantId: string;
52
- agentId: string;
53
53
  subAgentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  externalAgentId: string;
@@ -58,11 +58,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ agentId: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
64
  projectId: string;
64
65
  tenantId: string;
65
- agentId: string;
66
66
  subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  externalAgentId: string;
@@ -187,11 +187,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
187
187
  };
188
188
  }) => Promise<{
189
189
  id: string;
190
+ agentId: string;
190
191
  createdAt: string;
191
192
  updatedAt: string;
192
193
  projectId: string;
193
194
  tenantId: string;
194
- agentId: string;
195
195
  subAgentId: string;
196
196
  headers: Record<string, string> | null;
197
197
  externalAgentId: string;
@@ -204,11 +204,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
204
204
  externalAgentId: string;
205
205
  }) => Promise<{
206
206
  id: string;
207
+ agentId: string;
207
208
  createdAt: string;
208
209
  updatedAt: string;
209
210
  projectId: string;
210
211
  tenantId: string;
211
- agentId: string;
212
212
  subAgentId: string;
213
213
  headers: Record<string, string> | null;
214
214
  externalAgentId: string;
@@ -225,11 +225,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
225
225
  };
226
226
  }) => Promise<{
227
227
  id: string;
228
+ agentId: string;
228
229
  createdAt: string;
229
230
  updatedAt: string;
230
231
  projectId: string;
231
232
  tenantId: string;
232
- agentId: string;
233
233
  subAgentId: string;
234
234
  headers: Record<string, string> | null;
235
235
  externalAgentId: string;
@@ -10,14 +10,14 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ agentId: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
16
  projectId: string;
16
17
  tenantId: string;
17
- agentId: string;
18
+ relationType: string | null;
18
19
  sourceSubAgentId: string;
19
20
  targetSubAgentId: string | null;
20
- relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -45,27 +45,27 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ agentId: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
51
  projectId: string;
51
52
  tenantId: string;
52
- agentId: string;
53
+ relationType: string | null;
53
54
  sourceSubAgentId: string;
54
55
  targetSubAgentId: string | null;
55
- relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ agentId: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
64
  projectId: string;
64
65
  tenantId: string;
65
- agentId: string;
66
+ relationType: string | null;
66
67
  sourceSubAgentId: string;
67
68
  targetSubAgentId: string | null;
68
- relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -127,14 +127,14 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
+ agentId: string;
130
131
  createdAt: string;
131
132
  updatedAt: string;
132
133
  projectId: string;
133
134
  tenantId: string;
134
- agentId: string;
135
+ relationType: string | null;
135
136
  sourceSubAgentId: string;
136
137
  targetSubAgentId: string | null;
137
- relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -146,28 +146,28 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
+ agentId: string;
149
150
  createdAt: string;
150
151
  updatedAt: string;
151
152
  projectId: string;
152
153
  tenantId: string;
153
- agentId: string;
154
+ relationType: string | null;
154
155
  sourceSubAgentId: string;
155
156
  targetSubAgentId: string | null;
156
- relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
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
162
  id: string;
163
+ agentId: string;
163
164
  createdAt: string;
164
165
  updatedAt: string;
165
166
  projectId: string;
166
167
  tenantId: string;
167
- agentId: string;
168
+ relationType: string | null;
168
169
  sourceSubAgentId: string;
169
170
  targetSubAgentId: string | null;
170
- relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -205,11 +205,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
+ agentId: string;
208
209
  createdAt: string;
209
210
  updatedAt: string;
210
211
  projectId: string;
211
212
  tenantId: string;
212
- agentId: string;
213
213
  subAgentId: string;
214
214
  toolId: string;
215
215
  headers: Record<string, string> | null;
@@ -249,11 +249,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
+ agentId: string;
252
253
  createdAt: string;
253
254
  updatedAt: string;
254
255
  projectId: string;
255
256
  tenantId: string;
256
- agentId: string;
257
257
  subAgentId: string;
258
258
  toolId: string;
259
259
  headers: Record<string, string> | null;
@@ -10,11 +10,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ agentId: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
16
  projectId: string;
16
17
  tenantId: string;
17
- agentId: string;
18
18
  subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  targetAgentId: string;
@@ -45,11 +45,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ agentId: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
51
  projectId: string;
51
52
  tenantId: string;
52
- agentId: string;
53
53
  subAgentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  targetAgentId: string;
@@ -58,11 +58,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ agentId: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
64
  projectId: string;
64
65
  tenantId: string;
65
- agentId: string;
66
66
  subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  targetAgentId: string;
@@ -223,11 +223,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
223
223
  };
224
224
  }) => Promise<{
225
225
  id: string;
226
+ agentId: string;
226
227
  createdAt: string;
227
228
  updatedAt: string;
228
229
  projectId: string;
229
230
  tenantId: string;
230
- agentId: string;
231
231
  subAgentId: string;
232
232
  headers: Record<string, string> | null;
233
233
  targetAgentId: string;
@@ -240,11 +240,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
242
  id: string;
243
+ agentId: string;
243
244
  createdAt: string;
244
245
  updatedAt: string;
245
246
  projectId: string;
246
247
  tenantId: string;
247
- agentId: string;
248
248
  subAgentId: string;
249
249
  headers: Record<string, string> | null;
250
250
  targetAgentId: string;
@@ -261,11 +261,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
261
261
  };
262
262
  }) => Promise<{
263
263
  id: string;
264
+ agentId: string;
264
265
  createdAt: string;
265
266
  updatedAt: string;
266
267
  projectId: string;
267
268
  tenantId: string;
268
- agentId: string;
269
269
  subAgentId: string;
270
270
  headers: Record<string, string> | null;
271
271
  targetAgentId: string;
@@ -9,11 +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;
13
+ description: string | null;
14
+ id: string;
15
+ agentId: string;
14
16
  createdAt: string;
15
17
  updatedAt: string;
16
- description: string | null;
17
18
  projectId: string;
18
19
  tenantId: string;
19
20
  models: {
@@ -39,7 +40,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
39
40
  stopWhen: {
40
41
  stepCountIs?: number | undefined;
41
42
  } | null;
42
- agentId: string;
43
43
  prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  outputContract: {
@@ -55,11 +55,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
55
55
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
57
57
  }) => Promise<{
58
- id: string;
59
58
  name: string;
59
+ description: string | null;
60
+ id: string;
61
+ agentId: string;
60
62
  createdAt: string;
61
63
  updatedAt: string;
62
- description: string | null;
63
64
  projectId: string;
64
65
  tenantId: string;
65
66
  models: {
@@ -85,7 +86,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
85
86
  stopWhen: {
86
87
  stepCountIs?: number | undefined;
87
88
  } | null;
88
- agentId: string;
89
89
  prompt: string | null;
90
90
  conversationHistoryConfig: ConversationHistoryConfig | null;
91
91
  outputContract: {
@@ -154,11 +154,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
154
154
  };
155
155
  }>;
156
156
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
157
- id: string;
158
157
  name: string;
158
+ description: string | null;
159
+ id: string;
160
+ agentId: string;
159
161
  createdAt: string;
160
162
  updatedAt: string;
161
- description: string | null;
162
163
  projectId: string;
163
164
  tenantId: string;
164
165
  models: {
@@ -184,7 +185,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
184
185
  stopWhen: {
185
186
  stepCountIs?: number | undefined;
186
187
  } | null;
187
- agentId: string;
188
188
  prompt: string | null;
189
189
  conversationHistoryConfig: ConversationHistoryConfig | null;
190
190
  outputContract: {
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- id: string;
24
23
  name: string;
24
+ description: string | null;
25
+ id: string;
25
26
  createdAt: string;
26
27
  updatedAt: string;
27
- description: string | null;
28
28
  projectId: string;
29
29
  tenantId: string;
30
- headers: Record<string, string> | null;
31
- credentialReferenceId: string | null;
32
30
  config: {
33
31
  type: "mcp";
34
32
  mcp: ToolMcpConfig;
35
33
  };
34
+ credentialReferenceId: string | null;
36
35
  credentialScope: string;
36
+ headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
39
39
  lastError: string | null;
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- id: string;
82
81
  name: string;
82
+ description: string | null;
83
+ id: string;
83
84
  createdAt: string;
84
85
  updatedAt: string;
85
- description: string | null;
86
86
  projectId: string;
87
87
  tenantId: string;
88
- headers: Record<string, string> | null;
89
- credentialReferenceId: string | null;
90
88
  config: {
91
89
  type: "mcp";
92
90
  mcp: ToolMcpConfig;
93
91
  };
92
+ credentialReferenceId: string | null;
94
93
  credentialScope: string;
94
+ headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -136,11 +136,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  }> | null;
137
137
  }) => Promise<{
138
138
  id: string;
139
+ agentId: string;
139
140
  createdAt: string;
140
141
  updatedAt: string;
141
142
  projectId: string;
142
143
  tenantId: string;
143
- agentId: string;
144
144
  subAgentId: string;
145
145
  toolId: string;
146
146
  headers: Record<string, string> | null;
@@ -155,11 +155,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  toolId: string;
156
156
  }) => Promise<{
157
157
  id: string;
158
+ agentId: string;
158
159
  createdAt: string;
159
160
  updatedAt: string;
160
161
  projectId: string;
161
162
  tenantId: string;
162
- agentId: string;
163
163
  subAgentId: string;
164
164
  toolId: string;
165
165
  headers: Record<string, string> | null;
@@ -183,11 +183,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
185
  id: string;
186
+ agentId: string;
186
187
  createdAt: string;
187
188
  updatedAt: string;
188
189
  projectId: string;
189
190
  tenantId: string;
190
- agentId: string;
191
191
  subAgentId: string;
192
192
  toolId: string;
193
193
  headers: Record<string, string> | null;
@@ -202,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- id: string;
206
205
  name: string;
206
+ description: string | null;
207
+ id: string;
207
208
  createdAt: string;
208
209
  updatedAt: string;
209
- description: string | null;
210
210
  projectId: string;
211
211
  tenantId: string;
212
- headers: Record<string, string> | null;
213
- credentialReferenceId: string | null;
214
212
  config: {
215
213
  type: "mcp";
216
214
  mcp: ToolMcpConfig;
217
215
  };
216
+ credentialReferenceId: string | null;
218
217
  credentialScope: string;
218
+ headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | 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;
@@ -131,11 +131,11 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
+ agentId: string;
134
135
  createdAt: string;
135
- userId: string;
136
136
  projectId: string;
137
137
  tenantId: string;
138
- agentId: string;
138
+ userId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -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;
12
+ id: string;
13
+ agentId: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- expiresAt: string | null;
16
16
  projectId: string;
17
17
  tenantId: string;
18
- agentId: 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;
26
+ id: string;
27
+ agentId: string;
27
28
  createdAt: string;
28
29
  updatedAt: string;
29
- expiresAt: string | null;
30
30
  projectId: string;
31
31
  tenantId: string;
32
- agentId: 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;
43
+ id: string;
44
+ agentId: string;
44
45
  createdAt: string;
45
46
  updatedAt: string;
46
- expiresAt: string | null;
47
47
  projectId: string;
48
48
  tenantId: string;
49
- agentId: 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;
70
+ id: string;
71
+ agentId: string;
71
72
  createdAt: string;
72
73
  updatedAt: string;
73
- expiresAt: string | null;
74
74
  projectId: string;
75
75
  tenantId: string;
76
- agentId: string;
76
+ expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -6,15 +6,13 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  type: AppType;
9
- id: string;
10
9
  name: string;
10
+ description: string | null;
11
+ id: string;
11
12
  createdAt: string;
12
13
  updatedAt: string;
13
- description: string | null;
14
- enabled: boolean;
15
14
  projectId: string | null;
16
15
  tenantId: string | null;
17
- prompt: string | null;
18
16
  config: {
19
17
  type: "web_client";
20
18
  webClient: {
@@ -22,7 +20,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
22
20
  publicKeys: {
23
21
  kid: string;
24
22
  publicKey: string;
25
- algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
23
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
26
24
  addedAt: string;
27
25
  }[];
28
26
  allowAnonymous: boolean;
@@ -45,9 +43,11 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
45
43
  }[] | undefined;
46
44
  };
47
45
  };
46
+ prompt: string | null;
48
47
  lastUsedAt: string | null;
49
48
  defaultProjectId: string | null;
50
49
  defaultAgentId: string | null;
50
+ enabled: boolean;
51
51
  } | undefined>;
52
52
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
53
53
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -75,15 +75,13 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
77
  type: AppType;
78
- id: string;
79
78
  name: string;
79
+ description: string | null;
80
+ id: string;
80
81
  createdAt: string;
81
82
  updatedAt: string;
82
- description: string | null;
83
- enabled: boolean;
84
83
  projectId: string | null;
85
84
  tenantId: string | null;
86
- prompt: string | null;
87
85
  config: {
88
86
  type: "web_client";
89
87
  webClient: {
@@ -91,7 +89,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
91
89
  publicKeys: {
92
90
  kid: string;
93
91
  publicKey: string;
94
- algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
92
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
95
93
  addedAt: string;
96
94
  }[];
97
95
  allowAnonymous: boolean;
@@ -114,9 +112,11 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
114
112
  }[] | undefined;
115
113
  };
116
114
  };
115
+ prompt: string | null;
117
116
  lastUsedAt: string | null;
118
117
  defaultProjectId: string | null;
119
118
  defaultAgentId: string | null;
119
+ enabled: boolean;
120
120
  }>;
121
121
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
122
122
  scopes: TenantScopeConfig;
@@ -174,7 +174,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
174
174
  publicKeys: {
175
175
  kid: string;
176
176
  publicKey: string;
177
- algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
177
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
178
178
  addedAt: string;
179
179
  }[];
180
180
  allowAnonymous: boolean;