@inkeep/agents-core 0.0.0-dev-20260403194639 → 0.0.0-dev-20260404012728
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 +86 -86
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/index.d.ts +2 -1
- package/dist/data-access/index.js +2 -1
- package/dist/data-access/manage/agents.d.ts +15 -15
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- 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 +8 -8
- package/dist/data-access/manage/skills.d.ts +9 -9
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +9 -9
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +14 -14
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/streamChunks.d.ts +29 -0
- package/dist/data-access/runtime/streamChunks.js +65 -0
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +354 -354
- package/dist/db/runtime/runtime-schema.d.ts +480 -348
- package/dist/db/runtime/runtime-schema.js +20 -1
- package/dist/dolt/ref-helpers.js +15 -1
- package/dist/dolt/ref-scope.js +29 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/utils/service-token-auth.d.ts +3 -0
- package/dist/utils/service-token-auth.js +5 -2
- package/dist/validation/schemas/skills.d.ts +36 -36
- package/dist/validation/schemas.d.ts +1816 -1816
- package/drizzle/runtime/0031_fantastic_gorilla_man.sql +13 -0
- package/drizzle/runtime/meta/0031_snapshot.json +4872 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -9,12 +9,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
subAgentId: string;
|
|
13
15
|
id: string;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
18
|
agentId: string;
|
|
19
19
|
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
@@ -44,12 +44,12 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
47
49
|
subAgentId: string;
|
|
48
50
|
id: string;
|
|
49
51
|
createdAt: string;
|
|
50
52
|
updatedAt: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
tenantId: string;
|
|
53
53
|
agentId: string;
|
|
54
54
|
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
@@ -57,12 +57,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
60
62
|
subAgentId: string;
|
|
61
63
|
id: string;
|
|
62
64
|
createdAt: string;
|
|
63
65
|
updatedAt: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
tenantId: string;
|
|
66
66
|
agentId: string;
|
|
67
67
|
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
@@ -186,12 +186,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
186
186
|
headers?: Record<string, string> | null;
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
|
+
tenantId: string;
|
|
190
|
+
projectId: string;
|
|
189
191
|
subAgentId: string;
|
|
190
192
|
id: string;
|
|
191
193
|
createdAt: string;
|
|
192
194
|
updatedAt: string;
|
|
193
|
-
projectId: string;
|
|
194
|
-
tenantId: string;
|
|
195
195
|
agentId: string;
|
|
196
196
|
headers: Record<string, string> | null;
|
|
197
197
|
externalAgentId: string;
|
|
@@ -203,12 +203,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
203
203
|
scopes: SubAgentScopeConfig;
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
|
+
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
206
208
|
subAgentId: string;
|
|
207
209
|
id: string;
|
|
208
210
|
createdAt: string;
|
|
209
211
|
updatedAt: string;
|
|
210
|
-
projectId: string;
|
|
211
|
-
tenantId: string;
|
|
212
212
|
agentId: string;
|
|
213
213
|
headers: Record<string, string> | null;
|
|
214
214
|
externalAgentId: string;
|
|
@@ -224,12 +224,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
224
224
|
headers?: Record<string, string> | null;
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
|
+
tenantId: string;
|
|
228
|
+
projectId: string;
|
|
227
229
|
subAgentId: string;
|
|
228
230
|
id: string;
|
|
229
231
|
createdAt: string;
|
|
230
232
|
updatedAt: string;
|
|
231
|
-
projectId: string;
|
|
232
|
-
tenantId: string;
|
|
233
233
|
agentId: string;
|
|
234
234
|
headers: Record<string, string> | null;
|
|
235
235
|
externalAgentId: string;
|
|
@@ -9,15 +9,15 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
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;
|
|
@@ -44,28 +44,28 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
47
49
|
id: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
tenantId: string;
|
|
52
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
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
60
62
|
id: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
tenantId: string;
|
|
65
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;
|
|
@@ -126,15 +126,15 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
+
tenantId: string;
|
|
130
|
+
projectId: string;
|
|
129
131
|
id: string;
|
|
130
132
|
createdAt: string;
|
|
131
133
|
updatedAt: string;
|
|
132
|
-
projectId: string;
|
|
133
|
-
tenantId: string;
|
|
134
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
|
|
@@ -145,29 +145,29 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
+
tenantId: string;
|
|
149
|
+
projectId: string;
|
|
148
150
|
id: string;
|
|
149
151
|
createdAt: string;
|
|
150
152
|
updatedAt: string;
|
|
151
|
-
projectId: string;
|
|
152
|
-
tenantId: string;
|
|
153
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
|
+
tenantId: string;
|
|
163
|
+
projectId: string;
|
|
162
164
|
id: string;
|
|
163
165
|
createdAt: string;
|
|
164
166
|
updatedAt: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
tenantId: string;
|
|
167
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;
|
|
@@ -204,15 +204,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
+
tenantId: string;
|
|
208
|
+
projectId: string;
|
|
207
209
|
subAgentId: string;
|
|
208
210
|
id: string;
|
|
209
211
|
createdAt: string;
|
|
210
212
|
updatedAt: string;
|
|
211
|
-
projectId: string;
|
|
212
|
-
tenantId: string;
|
|
213
213
|
agentId: string;
|
|
214
|
-
headers: Record<string, string> | null;
|
|
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
|
+
tenantId: string;
|
|
252
|
+
projectId: string;
|
|
251
253
|
subAgentId: string;
|
|
252
254
|
id: string;
|
|
253
255
|
createdAt: string;
|
|
254
256
|
updatedAt: string;
|
|
255
|
-
projectId: string;
|
|
256
|
-
tenantId: string;
|
|
257
257
|
agentId: string;
|
|
258
|
-
headers: Record<string, string> | null;
|
|
259
258
|
toolId: string;
|
|
259
|
+
headers: Record<string, string> | null;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
261
261
|
needsApproval?: boolean;
|
|
262
262
|
}> | null;
|
|
@@ -9,12 +9,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
subAgentId: string;
|
|
13
15
|
id: string;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
18
|
agentId: 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
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
47
49
|
subAgentId: string;
|
|
48
50
|
id: string;
|
|
49
51
|
createdAt: string;
|
|
50
52
|
updatedAt: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
tenantId: string;
|
|
53
53
|
agentId: 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
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
60
62
|
subAgentId: string;
|
|
61
63
|
id: string;
|
|
62
64
|
createdAt: string;
|
|
63
65
|
updatedAt: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
tenantId: string;
|
|
66
66
|
agentId: 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
|
+
tenantId: string;
|
|
226
|
+
projectId: string;
|
|
225
227
|
subAgentId: string;
|
|
226
228
|
id: string;
|
|
227
229
|
createdAt: string;
|
|
228
230
|
updatedAt: string;
|
|
229
|
-
projectId: string;
|
|
230
|
-
tenantId: string;
|
|
231
231
|
agentId: 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
|
+
tenantId: string;
|
|
243
|
+
projectId: string;
|
|
242
244
|
subAgentId: string;
|
|
243
245
|
id: string;
|
|
244
246
|
createdAt: string;
|
|
245
247
|
updatedAt: string;
|
|
246
|
-
projectId: string;
|
|
247
|
-
tenantId: string;
|
|
248
248
|
agentId: 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
|
+
tenantId: string;
|
|
264
|
+
projectId: string;
|
|
263
265
|
subAgentId: string;
|
|
264
266
|
id: string;
|
|
265
267
|
createdAt: string;
|
|
266
268
|
updatedAt: string;
|
|
267
|
-
projectId: string;
|
|
268
|
-
tenantId: string;
|
|
269
269
|
agentId: string;
|
|
270
270
|
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
@@ -11,11 +11,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
name: string;
|
|
13
13
|
description: string | null;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
14
16
|
id: string;
|
|
15
17
|
createdAt: string;
|
|
16
18
|
updatedAt: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
19
|
models: {
|
|
20
20
|
base?: {
|
|
21
21
|
model?: string | undefined;
|
|
@@ -39,20 +39,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
39
|
stopWhen: {
|
|
40
40
|
stepCountIs?: number | undefined;
|
|
41
41
|
} | null;
|
|
42
|
+
agentId: string;
|
|
42
43
|
prompt: string | null;
|
|
43
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
44
|
-
agentId: string;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
49
|
name: string;
|
|
50
50
|
description: string | null;
|
|
51
|
+
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
51
53
|
id: string;
|
|
52
54
|
createdAt: string;
|
|
53
55
|
updatedAt: string;
|
|
54
|
-
projectId: string;
|
|
55
|
-
tenantId: string;
|
|
56
56
|
models: {
|
|
57
57
|
base?: {
|
|
58
58
|
model?: string | undefined;
|
|
@@ -76,9 +76,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
76
76
|
stopWhen: {
|
|
77
77
|
stepCountIs?: number | undefined;
|
|
78
78
|
} | null;
|
|
79
|
+
agentId: string;
|
|
79
80
|
prompt: string | null;
|
|
80
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
81
|
-
agentId: string;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
84
84
|
scopes: AgentScopeConfig;
|
|
@@ -129,11 +129,11 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
130
|
name: string;
|
|
131
131
|
description: string | null;
|
|
132
|
+
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
132
134
|
id: string;
|
|
133
135
|
createdAt: string;
|
|
134
136
|
updatedAt: string;
|
|
135
|
-
projectId: string;
|
|
136
|
-
tenantId: string;
|
|
137
137
|
models: {
|
|
138
138
|
base?: {
|
|
139
139
|
model?: string | undefined;
|
|
@@ -157,9 +157,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
157
157
|
stopWhen: {
|
|
158
158
|
stepCountIs?: number | undefined;
|
|
159
159
|
} | null;
|
|
160
|
+
agentId: string;
|
|
160
161
|
prompt: string | null;
|
|
161
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
162
|
-
agentId: string;
|
|
163
163
|
}>;
|
|
164
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
165
165
|
scopes: AgentScopeConfig;
|
|
@@ -22,11 +22,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
name: string;
|
|
24
24
|
description: string | null;
|
|
25
|
+
tenantId: string;
|
|
26
|
+
projectId: string;
|
|
25
27
|
id: string;
|
|
26
28
|
createdAt: string;
|
|
27
29
|
updatedAt: string;
|
|
28
|
-
projectId: string;
|
|
29
|
-
tenantId: string;
|
|
30
30
|
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
@@ -80,11 +80,11 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
81
|
name: string;
|
|
82
82
|
description: string | null;
|
|
83
|
+
tenantId: string;
|
|
84
|
+
projectId: string;
|
|
83
85
|
id: string;
|
|
84
86
|
createdAt: string;
|
|
85
87
|
updatedAt: string;
|
|
86
|
-
projectId: string;
|
|
87
|
-
tenantId: string;
|
|
88
88
|
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
@@ -135,15 +135,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
+
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
138
140
|
subAgentId: string;
|
|
139
141
|
id: string;
|
|
140
142
|
createdAt: string;
|
|
141
143
|
updatedAt: string;
|
|
142
|
-
projectId: string;
|
|
143
|
-
tenantId: string;
|
|
144
144
|
agentId: string;
|
|
145
|
-
headers: Record<string, string> | null;
|
|
146
145
|
toolId: string;
|
|
146
|
+
headers: Record<string, string> | null;
|
|
147
147
|
toolPolicies: Record<string, {
|
|
148
148
|
needsApproval?: boolean;
|
|
149
149
|
}> | null;
|
|
@@ -154,15 +154,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
+
tenantId: string;
|
|
158
|
+
projectId: string;
|
|
157
159
|
subAgentId: string;
|
|
158
160
|
id: string;
|
|
159
161
|
createdAt: string;
|
|
160
162
|
updatedAt: string;
|
|
161
|
-
projectId: string;
|
|
162
|
-
tenantId: string;
|
|
163
163
|
agentId: string;
|
|
164
|
-
headers: Record<string, string> | null;
|
|
165
164
|
toolId: string;
|
|
165
|
+
headers: Record<string, string> | null;
|
|
166
166
|
toolPolicies: Record<string, {
|
|
167
167
|
needsApproval?: boolean;
|
|
168
168
|
}> | null;
|
|
@@ -182,15 +182,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
+
tenantId: string;
|
|
186
|
+
projectId: string;
|
|
185
187
|
subAgentId: string;
|
|
186
188
|
id: string;
|
|
187
189
|
createdAt: string;
|
|
188
190
|
updatedAt: string;
|
|
189
|
-
projectId: string;
|
|
190
|
-
tenantId: string;
|
|
191
191
|
agentId: string;
|
|
192
|
-
headers: Record<string, string> | null;
|
|
193
192
|
toolId: string;
|
|
193
|
+
headers: Record<string, string> | null;
|
|
194
194
|
toolPolicies: Record<string, {
|
|
195
195
|
needsApproval?: boolean;
|
|
196
196
|
}> | null;
|
|
@@ -204,11 +204,11 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
204
204
|
}) => Promise<{
|
|
205
205
|
name: string;
|
|
206
206
|
description: string | null;
|
|
207
|
+
tenantId: string;
|
|
208
|
+
projectId: string;
|
|
207
209
|
id: string;
|
|
208
210
|
createdAt: string;
|
|
209
211
|
updatedAt: string;
|
|
210
|
-
projectId: string;
|
|
211
|
-
tenantId: string;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
@@ -37,8 +37,8 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
37
37
|
authentication: unknown;
|
|
38
38
|
signingSecretCredentialReferenceId: string | null;
|
|
39
39
|
signatureVerification: {
|
|
40
|
-
algorithm: "
|
|
41
|
-
encoding: "
|
|
40
|
+
algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
|
|
41
|
+
encoding: "base64" | "hex";
|
|
42
42
|
signature: {
|
|
43
43
|
source: "query" | "header" | "body";
|
|
44
44
|
key: string;
|
|
@@ -9,48 +9,48 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
name: string | null;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
+
expiresAt: string | null;
|
|
18
19
|
publicId: string;
|
|
19
20
|
keyHash: string;
|
|
20
21
|
keyPrefix: string;
|
|
21
22
|
lastUsedAt: string | null;
|
|
22
|
-
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
name: string | null;
|
|
26
|
+
tenantId: string;
|
|
27
|
+
projectId: string;
|
|
26
28
|
id: string;
|
|
27
29
|
createdAt: string;
|
|
28
30
|
updatedAt: string;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
31
|
agentId: string;
|
|
32
|
+
expiresAt: string | null;
|
|
32
33
|
publicId: string;
|
|
33
34
|
keyHash: string;
|
|
34
35
|
keyPrefix: string;
|
|
35
36
|
lastUsedAt: string | null;
|
|
36
|
-
expiresAt: 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
42
|
name: string | null;
|
|
43
|
+
tenantId: string;
|
|
44
|
+
projectId: string;
|
|
43
45
|
id: string;
|
|
44
46
|
createdAt: string;
|
|
45
47
|
updatedAt: string;
|
|
46
|
-
projectId: string;
|
|
47
|
-
tenantId: string;
|
|
48
48
|
agentId: string;
|
|
49
|
+
expiresAt: string | null;
|
|
49
50
|
publicId: string;
|
|
50
51
|
keyHash: string;
|
|
51
52
|
keyPrefix: string;
|
|
52
53
|
lastUsedAt: string | null;
|
|
53
|
-
expiresAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -67,17 +67,17 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
69
|
name: string | null;
|
|
70
|
+
tenantId: string;
|
|
71
|
+
projectId: string;
|
|
70
72
|
id: string;
|
|
71
73
|
createdAt: string;
|
|
72
74
|
updatedAt: string;
|
|
73
|
-
projectId: string;
|
|
74
|
-
tenantId: string;
|
|
75
75
|
agentId: string;
|
|
76
|
+
expiresAt: string | null;
|
|
76
77
|
publicId: string;
|
|
77
78
|
keyHash: string;
|
|
78
79
|
keyPrefix: string;
|
|
79
80
|
lastUsedAt: string | null;
|
|
80
|
-
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -5,16 +5,19 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
5
5
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
|
-
|
|
8
|
+
enabled: boolean;
|
|
9
9
|
name: string;
|
|
10
|
+
type: AppType;
|
|
10
11
|
description: string | null;
|
|
12
|
+
tenantId: string | null;
|
|
13
|
+
projectId: string | null;
|
|
11
14
|
id: string;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
updatedAt: string;
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
lastUsedAt: string | null;
|
|
18
|
+
defaultProjectId: string | null;
|
|
19
|
+
defaultAgentId: string | null;
|
|
16
20
|
prompt: string | null;
|
|
17
|
-
enabled: boolean;
|
|
18
21
|
config: {
|
|
19
22
|
type: "web_client";
|
|
20
23
|
webClient: {
|
|
@@ -32,9 +35,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
32
35
|
type: "api";
|
|
33
36
|
api: Record<string, never>;
|
|
34
37
|
};
|
|
35
|
-
lastUsedAt: string | null;
|
|
36
|
-
defaultProjectId: string | null;
|
|
37
|
-
defaultAgentId: string | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
40
40
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -61,16 +61,19 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
64
|
-
|
|
64
|
+
enabled: boolean;
|
|
65
65
|
name: string;
|
|
66
|
+
type: AppType;
|
|
66
67
|
description: string | null;
|
|
68
|
+
tenantId: string | null;
|
|
69
|
+
projectId: string | null;
|
|
67
70
|
id: string;
|
|
68
71
|
createdAt: string;
|
|
69
72
|
updatedAt: string;
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
lastUsedAt: string | null;
|
|
74
|
+
defaultProjectId: string | null;
|
|
75
|
+
defaultAgentId: string | null;
|
|
72
76
|
prompt: string | null;
|
|
73
|
-
enabled: boolean;
|
|
74
77
|
config: {
|
|
75
78
|
type: "web_client";
|
|
76
79
|
webClient: {
|
|
@@ -88,9 +91,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
88
91
|
type: "api";
|
|
89
92
|
api: Record<string, never>;
|
|
90
93
|
};
|
|
91
|
-
lastUsedAt: string | null;
|
|
92
|
-
defaultProjectId: string | null;
|
|
93
|
-
defaultAgentId: string | null;
|
|
94
94
|
}>;
|
|
95
95
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
96
96
|
scopes: TenantScopeConfig;
|