@inkeep/agents-core 0.74.3 → 0.75.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.
- package/dist/auth/auth-schema.d.ts +227 -227
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/constants/models.d.ts +1 -0
- package/dist/constants/models.js +1 -0
- package/dist/data-access/manage/agents.d.ts +30 -30
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/skills.d.ts +13 -13
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +3 -3
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +17 -17
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/events.d.ts +4 -4
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +21 -21
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +484 -484
- package/dist/db/runtime/runtime-schema.d.ts +451 -451
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/setup/setup.js +0 -5
- package/dist/utils/error.d.ts +57 -51
- package/dist/utils/error.js +8 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/pow.d.ts +15 -1
- package/dist/utils/pow.js +59 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +56 -56
- package/dist/validation/schemas.d.ts +2488 -2488
- package/package.json +1 -1
|
@@ -9,11 +9,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
id: string;
|
|
12
13
|
tenantId: string;
|
|
14
|
+
createdAt: string;
|
|
13
15
|
projectId: string;
|
|
14
16
|
agentId: string;
|
|
15
|
-
id: string;
|
|
16
|
-
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
@@ -44,11 +44,11 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
id: string;
|
|
47
48
|
tenantId: string;
|
|
49
|
+
createdAt: string;
|
|
48
50
|
projectId: string;
|
|
49
51
|
agentId: string;
|
|
50
|
-
id: string;
|
|
51
|
-
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
@@ -57,11 +57,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
id: string;
|
|
60
61
|
tenantId: string;
|
|
62
|
+
createdAt: string;
|
|
61
63
|
projectId: string;
|
|
62
64
|
agentId: string;
|
|
63
|
-
id: string;
|
|
64
|
-
createdAt: string;
|
|
65
65
|
updatedAt: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
@@ -126,11 +126,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
+
id: string;
|
|
129
130
|
tenantId: string;
|
|
131
|
+
createdAt: string;
|
|
130
132
|
projectId: string;
|
|
131
133
|
agentId: string;
|
|
132
|
-
id: string;
|
|
133
|
-
createdAt: string;
|
|
134
134
|
updatedAt: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
@@ -145,11 +145,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
+
id: string;
|
|
148
149
|
tenantId: string;
|
|
150
|
+
createdAt: string;
|
|
149
151
|
projectId: string;
|
|
150
152
|
agentId: string;
|
|
151
|
-
id: string;
|
|
152
|
-
createdAt: string;
|
|
153
153
|
updatedAt: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
@@ -159,11 +159,11 @@ 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;
|
|
162
163
|
tenantId: string;
|
|
164
|
+
createdAt: string;
|
|
163
165
|
projectId: string;
|
|
164
166
|
agentId: string;
|
|
165
|
-
id: string;
|
|
166
|
-
createdAt: string;
|
|
167
167
|
updatedAt: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
+
id: string;
|
|
207
208
|
tenantId: string;
|
|
209
|
+
createdAt: string;
|
|
208
210
|
projectId: string;
|
|
209
211
|
agentId: string;
|
|
210
212
|
subAgentId: string;
|
|
211
213
|
toolId: string;
|
|
212
|
-
id: string;
|
|
213
|
-
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
215
|
headers: Record<string, string> | null;
|
|
216
|
-
selectedTools: string[] | null;
|
|
217
216
|
toolPolicies: Record<string, {
|
|
218
217
|
needsApproval?: boolean;
|
|
219
218
|
}> | null;
|
|
219
|
+
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -248,19 +248,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
+
id: string;
|
|
251
252
|
tenantId: string;
|
|
253
|
+
createdAt: string;
|
|
252
254
|
projectId: string;
|
|
253
255
|
agentId: string;
|
|
254
256
|
subAgentId: string;
|
|
255
257
|
toolId: string;
|
|
256
|
-
id: string;
|
|
257
|
-
createdAt: string;
|
|
258
258
|
updatedAt: string;
|
|
259
259
|
headers: Record<string, string> | null;
|
|
260
|
-
selectedTools: string[] | null;
|
|
261
260
|
toolPolicies: Record<string, {
|
|
262
261
|
needsApproval?: boolean;
|
|
263
262
|
}> | null;
|
|
263
|
+
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -9,12 +9,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
id: string;
|
|
12
13
|
tenantId: string;
|
|
14
|
+
createdAt: string;
|
|
13
15
|
projectId: string;
|
|
14
16
|
agentId: string;
|
|
15
17
|
subAgentId: string;
|
|
16
|
-
id: string;
|
|
17
|
-
createdAt: string;
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
@@ -44,12 +44,12 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
id: string;
|
|
47
48
|
tenantId: string;
|
|
49
|
+
createdAt: string;
|
|
48
50
|
projectId: string;
|
|
49
51
|
agentId: string;
|
|
50
52
|
subAgentId: string;
|
|
51
|
-
id: string;
|
|
52
|
-
createdAt: string;
|
|
53
53
|
updatedAt: string;
|
|
54
54
|
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
@@ -57,12 +57,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
id: string;
|
|
60
61
|
tenantId: string;
|
|
62
|
+
createdAt: string;
|
|
61
63
|
projectId: string;
|
|
62
64
|
agentId: string;
|
|
63
65
|
subAgentId: string;
|
|
64
|
-
id: string;
|
|
65
|
-
createdAt: string;
|
|
66
66
|
updatedAt: string;
|
|
67
67
|
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
@@ -222,12 +222,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
222
222
|
headers?: Record<string, string> | null;
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
|
+
id: string;
|
|
225
226
|
tenantId: string;
|
|
227
|
+
createdAt: string;
|
|
226
228
|
projectId: string;
|
|
227
229
|
agentId: string;
|
|
228
230
|
subAgentId: string;
|
|
229
|
-
id: string;
|
|
230
|
-
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
232
|
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
@@ -239,12 +239,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
239
239
|
scopes: SubAgentScopeConfig;
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
|
+
id: string;
|
|
242
243
|
tenantId: string;
|
|
244
|
+
createdAt: string;
|
|
243
245
|
projectId: string;
|
|
244
246
|
agentId: string;
|
|
245
247
|
subAgentId: string;
|
|
246
|
-
id: string;
|
|
247
|
-
createdAt: string;
|
|
248
248
|
updatedAt: string;
|
|
249
249
|
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
@@ -260,12 +260,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
260
260
|
headers?: Record<string, string> | null;
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
|
+
id: string;
|
|
263
264
|
tenantId: string;
|
|
265
|
+
createdAt: string;
|
|
264
266
|
projectId: string;
|
|
265
267
|
agentId: string;
|
|
266
268
|
subAgentId: string;
|
|
267
|
-
id: string;
|
|
268
|
-
createdAt: string;
|
|
269
269
|
updatedAt: string;
|
|
270
270
|
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
@@ -9,15 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
|
|
12
|
+
id: string;
|
|
13
13
|
tenantId: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string | null;
|
|
14
17
|
projectId: string;
|
|
15
18
|
agentId: string;
|
|
16
|
-
name: string;
|
|
17
|
-
id: string;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
updatedAt: string;
|
|
20
|
-
prompt: string | null;
|
|
21
19
|
models: {
|
|
22
20
|
base?: {
|
|
23
21
|
model?: string | undefined;
|
|
@@ -41,6 +39,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
39
|
stopWhen: {
|
|
42
40
|
stepCountIs?: number | undefined;
|
|
43
41
|
} | null;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
prompt: string | null;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
outputContract: {
|
|
46
46
|
[x: string]: unknown;
|
|
@@ -55,15 +55,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
55
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
57
57
|
}) => Promise<{
|
|
58
|
-
|
|
58
|
+
id: string;
|
|
59
59
|
tenantId: string;
|
|
60
|
+
createdAt: string;
|
|
61
|
+
name: string;
|
|
62
|
+
description: string | null;
|
|
60
63
|
projectId: string;
|
|
61
64
|
agentId: string;
|
|
62
|
-
name: string;
|
|
63
|
-
id: string;
|
|
64
|
-
createdAt: string;
|
|
65
|
-
updatedAt: string;
|
|
66
|
-
prompt: string | null;
|
|
67
65
|
models: {
|
|
68
66
|
base?: {
|
|
69
67
|
model?: string | undefined;
|
|
@@ -87,6 +85,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
87
85
|
stopWhen: {
|
|
88
86
|
stepCountIs?: number | undefined;
|
|
89
87
|
} | null;
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
prompt: string | null;
|
|
90
90
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
91
91
|
outputContract: {
|
|
92
92
|
[x: string]: unknown;
|
|
@@ -154,15 +154,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
154
154
|
};
|
|
155
155
|
}>;
|
|
156
156
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
157
|
-
|
|
157
|
+
id: string;
|
|
158
158
|
tenantId: string;
|
|
159
|
+
createdAt: string;
|
|
160
|
+
name: string;
|
|
161
|
+
description: string | null;
|
|
159
162
|
projectId: string;
|
|
160
163
|
agentId: string;
|
|
161
|
-
name: string;
|
|
162
|
-
id: string;
|
|
163
|
-
createdAt: string;
|
|
164
|
-
updatedAt: string;
|
|
165
|
-
prompt: string | null;
|
|
166
164
|
models: {
|
|
167
165
|
base?: {
|
|
168
166
|
model?: string | undefined;
|
|
@@ -186,6 +184,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
186
184
|
stopWhen: {
|
|
187
185
|
stepCountIs?: number | undefined;
|
|
188
186
|
} | null;
|
|
187
|
+
updatedAt: string;
|
|
188
|
+
prompt: string | null;
|
|
189
189
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
190
190
|
outputContract: {
|
|
191
191
|
[x: string]: unknown;
|
|
@@ -20,12 +20,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
description: string | null;
|
|
24
|
-
tenantId: string;
|
|
25
|
-
projectId: string;
|
|
26
|
-
name: string;
|
|
27
23
|
id: string;
|
|
24
|
+
tenantId: string;
|
|
28
25
|
createdAt: string;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string | null;
|
|
28
|
+
projectId: string;
|
|
29
29
|
updatedAt: string;
|
|
30
30
|
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
@@ -78,12 +78,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
description: string | null;
|
|
82
|
-
tenantId: string;
|
|
83
|
-
projectId: string;
|
|
84
|
-
name: string;
|
|
85
81
|
id: string;
|
|
82
|
+
tenantId: string;
|
|
86
83
|
createdAt: string;
|
|
84
|
+
name: string;
|
|
85
|
+
description: string | null;
|
|
86
|
+
projectId: string;
|
|
87
87
|
updatedAt: string;
|
|
88
88
|
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
+
id: string;
|
|
138
139
|
tenantId: string;
|
|
140
|
+
createdAt: string;
|
|
139
141
|
projectId: string;
|
|
140
142
|
agentId: string;
|
|
141
143
|
subAgentId: string;
|
|
142
144
|
toolId: string;
|
|
143
|
-
id: string;
|
|
144
|
-
createdAt: string;
|
|
145
145
|
updatedAt: string;
|
|
146
146
|
headers: Record<string, string> | null;
|
|
147
|
-
selectedTools: string[] | null;
|
|
148
147
|
toolPolicies: Record<string, {
|
|
149
148
|
needsApproval?: boolean;
|
|
150
149
|
}> | null;
|
|
150
|
+
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
+
id: string;
|
|
157
158
|
tenantId: string;
|
|
159
|
+
createdAt: string;
|
|
158
160
|
projectId: string;
|
|
159
161
|
agentId: string;
|
|
160
162
|
subAgentId: string;
|
|
161
163
|
toolId: string;
|
|
162
|
-
id: string;
|
|
163
|
-
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
165
|
headers: Record<string, string> | null;
|
|
166
|
-
selectedTools: string[] | null;
|
|
167
166
|
toolPolicies: Record<string, {
|
|
168
167
|
needsApproval?: boolean;
|
|
169
168
|
}> | null;
|
|
169
|
+
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
+
id: string;
|
|
185
186
|
tenantId: string;
|
|
187
|
+
createdAt: string;
|
|
186
188
|
projectId: string;
|
|
187
189
|
agentId: string;
|
|
188
190
|
subAgentId: string;
|
|
189
191
|
toolId: string;
|
|
190
|
-
id: string;
|
|
191
|
-
createdAt: string;
|
|
192
192
|
updatedAt: string;
|
|
193
193
|
headers: Record<string, string> | null;
|
|
194
|
-
selectedTools: string[] | null;
|
|
195
194
|
toolPolicies: Record<string, {
|
|
196
195
|
needsApproval?: boolean;
|
|
197
196
|
}> | null;
|
|
197
|
+
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -202,12 +202,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
description: string | null;
|
|
206
|
-
tenantId: string;
|
|
207
|
-
projectId: string;
|
|
208
|
-
name: string;
|
|
209
205
|
id: string;
|
|
206
|
+
tenantId: string;
|
|
210
207
|
createdAt: string;
|
|
208
|
+
name: string;
|
|
209
|
+
description: string | null;
|
|
210
|
+
projectId: string;
|
|
211
211
|
updatedAt: string;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
@@ -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" | "
|
|
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" | "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -132,9 +132,9 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
134
|
tenantId: string;
|
|
135
|
+
createdAt: string;
|
|
135
136
|
projectId: string;
|
|
136
137
|
agentId: string;
|
|
137
|
-
createdAt: string;
|
|
138
138
|
userId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
id: string;
|
|
11
12
|
tenantId: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
name: string | null;
|
|
12
15
|
projectId: string;
|
|
13
16
|
agentId: string;
|
|
14
|
-
name: string | null;
|
|
15
|
-
id: string;
|
|
16
|
-
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
|
-
lastUsedAt: string | null;
|
|
20
19
|
publicId: string;
|
|
21
20
|
keyHash: string;
|
|
22
21
|
keyPrefix: string;
|
|
22
|
+
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
+
id: string;
|
|
25
26
|
tenantId: string;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
name: string | null;
|
|
26
29
|
projectId: string;
|
|
27
30
|
agentId: string;
|
|
28
|
-
name: string | null;
|
|
29
|
-
id: string;
|
|
30
|
-
createdAt: string;
|
|
31
31
|
updatedAt: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
|
-
lastUsedAt: string | null;
|
|
34
33
|
publicId: string;
|
|
35
34
|
keyHash: string;
|
|
36
35
|
keyPrefix: string;
|
|
36
|
+
lastUsedAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
+
id: string;
|
|
42
43
|
tenantId: string;
|
|
44
|
+
createdAt: string;
|
|
45
|
+
name: string | null;
|
|
43
46
|
projectId: string;
|
|
44
47
|
agentId: string;
|
|
45
|
-
name: string | null;
|
|
46
|
-
id: string;
|
|
47
|
-
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
|
-
lastUsedAt: string | null;
|
|
51
50
|
publicId: string;
|
|
52
51
|
keyHash: string;
|
|
53
52
|
keyPrefix: string;
|
|
53
|
+
lastUsedAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
+
id: string;
|
|
69
70
|
tenantId: string;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
name: string | null;
|
|
70
73
|
projectId: string;
|
|
71
74
|
agentId: string;
|
|
72
|
-
name: string | null;
|
|
73
|
-
id: string;
|
|
74
|
-
createdAt: string;
|
|
75
75
|
updatedAt: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
|
-
lastUsedAt: string | null;
|
|
78
77
|
publicId: string;
|
|
79
78
|
keyHash: string;
|
|
80
79
|
keyPrefix: string;
|
|
80
|
+
lastUsedAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -6,14 +6,14 @@ 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
|
-
description: string | null;
|
|
10
|
-
tenantId: string | null;
|
|
11
|
-
projectId: string | null;
|
|
12
|
-
name: string;
|
|
13
|
-
enabled: boolean;
|
|
14
9
|
id: string;
|
|
10
|
+
tenantId: string | null;
|
|
15
11
|
createdAt: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string | null;
|
|
14
|
+
projectId: string | null;
|
|
16
15
|
updatedAt: string;
|
|
16
|
+
enabled: boolean;
|
|
17
17
|
prompt: string | null;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
@@ -22,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
22
22
|
publicKeys: {
|
|
23
23
|
kid: string;
|
|
24
24
|
publicKey: string;
|
|
25
|
-
algorithm: "
|
|
25
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
26
26
|
addedAt: string;
|
|
27
27
|
}[];
|
|
28
28
|
allowAnonymous: boolean;
|
|
@@ -45,9 +45,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
45
45
|
}[] | undefined;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
defaultAgentId: string | null;
|
|
49
|
-
defaultProjectId: string | null;
|
|
50
48
|
lastUsedAt: string | null;
|
|
49
|
+
defaultProjectId: string | null;
|
|
50
|
+
defaultAgentId: string | null;
|
|
51
51
|
} | undefined>;
|
|
52
52
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
53
53
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -75,14 +75,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
75
75
|
}>;
|
|
76
76
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
77
77
|
type: AppType;
|
|
78
|
-
description: string | null;
|
|
79
|
-
tenantId: string | null;
|
|
80
|
-
projectId: string | null;
|
|
81
|
-
name: string;
|
|
82
|
-
enabled: boolean;
|
|
83
78
|
id: string;
|
|
79
|
+
tenantId: string | null;
|
|
84
80
|
createdAt: string;
|
|
81
|
+
name: string;
|
|
82
|
+
description: string | null;
|
|
83
|
+
projectId: string | null;
|
|
85
84
|
updatedAt: string;
|
|
85
|
+
enabled: boolean;
|
|
86
86
|
prompt: string | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "web_client";
|
|
@@ -91,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
91
91
|
publicKeys: {
|
|
92
92
|
kid: string;
|
|
93
93
|
publicKey: string;
|
|
94
|
-
algorithm: "
|
|
94
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
95
95
|
addedAt: string;
|
|
96
96
|
}[];
|
|
97
97
|
allowAnonymous: boolean;
|
|
@@ -114,9 +114,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
114
114
|
}[] | undefined;
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
defaultAgentId: string | null;
|
|
118
|
-
defaultProjectId: string | null;
|
|
119
117
|
lastUsedAt: string | null;
|
|
118
|
+
defaultProjectId: string | null;
|
|
119
|
+
defaultAgentId: string | null;
|
|
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: "
|
|
177
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
178
178
|
addedAt: string;
|
|
179
179
|
}[];
|
|
180
180
|
allowAnonymous: boolean;
|