@inkeep/agents-core 0.0.0-dev-20260312153728 → 0.0.0-dev-20260312190837
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 +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +135 -135
- package/dist/client-exports.d.ts +3 -3
- package/dist/data-access/index.d.ts +3 -1
- package/dist/data-access/index.js +3 -1
- package/dist/data-access/manage/agents.d.ts +16 -16
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/audit-queries.d.ts +29 -0
- package/dist/data-access/manage/audit-queries.js +29 -0
- package/dist/data-access/manage/contextConfigs.d.ts +16 -16
- 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 +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +8 -8
- package/dist/data-access/runtime/audit-queries.d.ts +41 -0
- package/dist/data-access/runtime/audit-queries.js +37 -0
- package/dist/data-access/runtime/conversations.d.ts +27 -27
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +7 -7
- package/dist/data-reconciliation/audit.d.ts +6 -0
- package/dist/data-reconciliation/audit.js +37 -0
- package/dist/data-reconciliation/index.d.ts +4 -0
- package/dist/data-reconciliation/index.js +5 -0
- package/dist/data-reconciliation/reconcile.d.ts +6 -0
- package/dist/data-reconciliation/reconcile.js +58 -0
- package/dist/data-reconciliation/types.d.ts +116 -0
- package/dist/data-reconciliation/types.js +7 -0
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +330 -330
- package/dist/index.d.ts +7 -1
- package/dist/index.js +6 -1
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/schemas.d.ts +1782 -1782
- package/package.json +1 -1
|
@@ -9,13 +9,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
headers: Record<string, string> | null;
|
|
13
12
|
id: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
projectId: string;
|
|
18
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
headers: Record<string, string> | null;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -44,26 +44,26 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
headers: Record<string, string> | null;
|
|
48
47
|
id: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
|
-
tenantId: string;
|
|
52
|
-
projectId: string;
|
|
53
50
|
agentId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
53
|
+
headers: Record<string, string> | null;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
headers: Record<string, string> | null;
|
|
61
60
|
id: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
|
-
tenantId: string;
|
|
65
|
-
projectId: string;
|
|
66
63
|
agentId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
66
|
+
headers: Record<string, string> | null;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -180,13 +180,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
180
180
|
headers?: Record<string, string> | null;
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
|
-
headers: Record<string, string> | null;
|
|
184
183
|
id: string;
|
|
185
184
|
createdAt: string;
|
|
186
185
|
updatedAt: string;
|
|
187
|
-
tenantId: string;
|
|
188
|
-
projectId: string;
|
|
189
186
|
agentId: string;
|
|
187
|
+
projectId: string;
|
|
188
|
+
tenantId: string;
|
|
189
|
+
headers: Record<string, string> | null;
|
|
190
190
|
subAgentId: string;
|
|
191
191
|
externalAgentId: string;
|
|
192
192
|
}>;
|
|
@@ -197,13 +197,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
197
197
|
scopes: SubAgentScopeConfig;
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
-
headers: Record<string, string> | null;
|
|
201
200
|
id: string;
|
|
202
201
|
createdAt: string;
|
|
203
202
|
updatedAt: string;
|
|
204
|
-
tenantId: string;
|
|
205
|
-
projectId: string;
|
|
206
203
|
agentId: string;
|
|
204
|
+
projectId: string;
|
|
205
|
+
tenantId: string;
|
|
206
|
+
headers: Record<string, string> | null;
|
|
207
207
|
subAgentId: string;
|
|
208
208
|
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
@@ -218,13 +218,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
218
218
|
headers?: Record<string, string> | null;
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
|
-
headers: Record<string, string> | null;
|
|
222
221
|
id: string;
|
|
223
222
|
createdAt: string;
|
|
224
223
|
updatedAt: string;
|
|
225
|
-
tenantId: string;
|
|
226
|
-
projectId: string;
|
|
227
224
|
agentId: string;
|
|
225
|
+
projectId: string;
|
|
226
|
+
tenantId: string;
|
|
227
|
+
headers: Record<string, string> | null;
|
|
228
228
|
subAgentId: string;
|
|
229
229
|
externalAgentId: string;
|
|
230
230
|
}>;
|
|
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
agentId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
agentId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
-
tenantId: string;
|
|
133
|
-
projectId: string;
|
|
134
132
|
agentId: string;
|
|
133
|
+
projectId: string;
|
|
134
|
+
tenantId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
-
tenantId: string;
|
|
152
|
-
projectId: string;
|
|
153
151
|
agentId: string;
|
|
152
|
+
projectId: string;
|
|
153
|
+
tenantId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
tenantId: string;
|
|
166
|
-
projectId: string;
|
|
167
165
|
agentId: string;
|
|
166
|
+
projectId: string;
|
|
167
|
+
tenantId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -204,13 +204,13 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
headers: Record<string, string> | null;
|
|
208
207
|
id: string;
|
|
209
208
|
createdAt: string;
|
|
210
209
|
updatedAt: string;
|
|
211
|
-
tenantId: string;
|
|
212
|
-
projectId: string;
|
|
213
210
|
agentId: string;
|
|
211
|
+
projectId: string;
|
|
212
|
+
tenantId: string;
|
|
213
|
+
headers: Record<string, string> | null;
|
|
214
214
|
subAgentId: string;
|
|
215
215
|
toolId: string;
|
|
216
216
|
toolPolicies: Record<string, {
|
|
@@ -248,13 +248,13 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
headers: Record<string, string> | null;
|
|
252
251
|
id: string;
|
|
253
252
|
createdAt: string;
|
|
254
253
|
updatedAt: string;
|
|
255
|
-
tenantId: string;
|
|
256
|
-
projectId: string;
|
|
257
254
|
agentId: string;
|
|
255
|
+
projectId: string;
|
|
256
|
+
tenantId: string;
|
|
257
|
+
headers: Record<string, string> | null;
|
|
258
258
|
subAgentId: string;
|
|
259
259
|
toolId: string;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
headers: Record<string, string> | null;
|
|
13
12
|
id: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
projectId: string;
|
|
18
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
headers: Record<string, string> | null;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -44,26 +44,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
headers: Record<string, string> | null;
|
|
48
47
|
id: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
|
-
tenantId: string;
|
|
52
|
-
projectId: string;
|
|
53
50
|
agentId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
53
|
+
headers: Record<string, string> | null;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
headers: Record<string, string> | null;
|
|
61
60
|
id: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
|
-
tenantId: string;
|
|
65
|
-
projectId: string;
|
|
66
63
|
agentId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
66
|
+
headers: Record<string, string> | null;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
210
|
headers?: Record<string, string> | null;
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
|
-
headers: Record<string, string> | null;
|
|
214
213
|
id: string;
|
|
215
214
|
createdAt: string;
|
|
216
215
|
updatedAt: string;
|
|
217
|
-
tenantId: string;
|
|
218
|
-
projectId: string;
|
|
219
216
|
agentId: string;
|
|
217
|
+
projectId: string;
|
|
218
|
+
tenantId: string;
|
|
219
|
+
headers: Record<string, string> | null;
|
|
220
220
|
subAgentId: string;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
227
|
scopes: SubAgentScopeConfig;
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
|
-
headers: Record<string, string> | null;
|
|
231
230
|
id: string;
|
|
232
231
|
createdAt: string;
|
|
233
232
|
updatedAt: string;
|
|
234
|
-
tenantId: string;
|
|
235
|
-
projectId: string;
|
|
236
233
|
agentId: string;
|
|
234
|
+
projectId: string;
|
|
235
|
+
tenantId: string;
|
|
236
|
+
headers: Record<string, string> | null;
|
|
237
237
|
subAgentId: string;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
248
|
headers?: Record<string, string> | null;
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
headers: Record<string, string> | null;
|
|
252
251
|
id: string;
|
|
253
252
|
createdAt: string;
|
|
254
253
|
updatedAt: string;
|
|
255
|
-
tenantId: string;
|
|
256
|
-
projectId: string;
|
|
257
254
|
agentId: string;
|
|
255
|
+
projectId: string;
|
|
256
|
+
tenantId: string;
|
|
257
|
+
headers: Record<string, string> | null;
|
|
258
258
|
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
@@ -11,12 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
14
|
name: string;
|
|
16
|
-
|
|
17
|
-
tenantId: string;
|
|
18
|
-
projectId: string;
|
|
15
|
+
updatedAt: string;
|
|
19
16
|
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
description: string | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -42,12 +42,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
42
42
|
}) => Promise<{
|
|
43
43
|
id: string;
|
|
44
44
|
createdAt: string;
|
|
45
|
-
updatedAt: string;
|
|
46
45
|
name: string;
|
|
47
|
-
|
|
48
|
-
tenantId: string;
|
|
49
|
-
projectId: string;
|
|
46
|
+
updatedAt: string;
|
|
50
47
|
agentId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
tenantId: string;
|
|
50
|
+
description: string | null;
|
|
51
51
|
models: {
|
|
52
52
|
base?: {
|
|
53
53
|
model?: string | undefined;
|
|
@@ -111,12 +111,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
112
|
id: string;
|
|
113
113
|
createdAt: string;
|
|
114
|
-
updatedAt: string;
|
|
115
114
|
name: string;
|
|
116
|
-
|
|
117
|
-
tenantId: string;
|
|
118
|
-
projectId: string;
|
|
115
|
+
updatedAt: string;
|
|
119
116
|
agentId: string;
|
|
117
|
+
projectId: string;
|
|
118
|
+
tenantId: string;
|
|
119
|
+
description: string | null;
|
|
120
120
|
models: {
|
|
121
121
|
base?: {
|
|
122
122
|
model?: string | undefined;
|
|
@@ -20,14 +20,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
headers: Record<string, string> | null;
|
|
24
23
|
id: string;
|
|
25
24
|
createdAt: string;
|
|
26
|
-
updatedAt: string;
|
|
27
25
|
name: string;
|
|
28
|
-
|
|
29
|
-
tenantId: string;
|
|
26
|
+
updatedAt: string;
|
|
30
27
|
projectId: string;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
description: string | null;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
@@ -78,14 +78,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
headers: Record<string, string> | null;
|
|
82
81
|
id: string;
|
|
83
82
|
createdAt: string;
|
|
84
|
-
updatedAt: string;
|
|
85
83
|
name: string;
|
|
86
|
-
|
|
87
|
-
tenantId: string;
|
|
84
|
+
updatedAt: string;
|
|
88
85
|
projectId: string;
|
|
86
|
+
tenantId: string;
|
|
87
|
+
description: string | null;
|
|
88
|
+
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
@@ -135,13 +135,13 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
-
headers: Record<string, string> | null;
|
|
139
138
|
id: string;
|
|
140
139
|
createdAt: string;
|
|
141
140
|
updatedAt: string;
|
|
142
|
-
tenantId: string;
|
|
143
|
-
projectId: string;
|
|
144
141
|
agentId: string;
|
|
142
|
+
projectId: string;
|
|
143
|
+
tenantId: string;
|
|
144
|
+
headers: Record<string, string> | null;
|
|
145
145
|
subAgentId: string;
|
|
146
146
|
toolId: string;
|
|
147
147
|
toolPolicies: Record<string, {
|
|
@@ -154,13 +154,13 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
-
headers: Record<string, string> | null;
|
|
158
157
|
id: string;
|
|
159
158
|
createdAt: string;
|
|
160
159
|
updatedAt: string;
|
|
161
|
-
tenantId: string;
|
|
162
|
-
projectId: string;
|
|
163
160
|
agentId: string;
|
|
161
|
+
projectId: string;
|
|
162
|
+
tenantId: string;
|
|
163
|
+
headers: Record<string, string> | null;
|
|
164
164
|
subAgentId: string;
|
|
165
165
|
toolId: string;
|
|
166
166
|
toolPolicies: Record<string, {
|
|
@@ -182,13 +182,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
-
headers: Record<string, string> | null;
|
|
186
185
|
id: string;
|
|
187
186
|
createdAt: string;
|
|
188
187
|
updatedAt: string;
|
|
189
|
-
tenantId: string;
|
|
190
|
-
projectId: string;
|
|
191
188
|
agentId: string;
|
|
189
|
+
projectId: string;
|
|
190
|
+
tenantId: string;
|
|
191
|
+
headers: Record<string, string> | null;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
toolId: string;
|
|
194
194
|
toolPolicies: Record<string, {
|
|
@@ -202,14 +202,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
headers: Record<string, string> | null;
|
|
206
205
|
id: string;
|
|
207
206
|
createdAt: string;
|
|
208
|
-
updatedAt: string;
|
|
209
207
|
name: string;
|
|
210
|
-
|
|
211
|
-
tenantId: string;
|
|
208
|
+
updatedAt: string;
|
|
212
209
|
projectId: string;
|
|
210
|
+
tenantId: string;
|
|
211
|
+
description: string | null;
|
|
212
|
+
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "
|
|
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: "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -10,12 +10,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
expiresAt: string | null;
|
|
15
13
|
name: string | null;
|
|
16
|
-
|
|
17
|
-
projectId: string;
|
|
14
|
+
updatedAt: string;
|
|
18
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
expiresAt: string | null;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
@@ -24,12 +24,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
26
26
|
createdAt: string;
|
|
27
|
-
updatedAt: string;
|
|
28
|
-
expiresAt: string | null;
|
|
29
27
|
name: string | null;
|
|
30
|
-
|
|
31
|
-
projectId: string;
|
|
28
|
+
updatedAt: string;
|
|
32
29
|
agentId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
32
|
+
expiresAt: string | null;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -41,12 +41,12 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
43
|
createdAt: string;
|
|
44
|
-
updatedAt: string;
|
|
45
|
-
expiresAt: string | null;
|
|
46
44
|
name: string | null;
|
|
47
|
-
|
|
48
|
-
projectId: string;
|
|
45
|
+
updatedAt: string;
|
|
49
46
|
agentId: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
expiresAt: string | null;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -68,12 +68,12 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
69
|
id: string;
|
|
70
70
|
createdAt: string;
|
|
71
|
-
updatedAt: string;
|
|
72
|
-
expiresAt: string | null;
|
|
73
71
|
name: string | null;
|
|
74
|
-
|
|
75
|
-
projectId: string;
|
|
72
|
+
updatedAt: string;
|
|
76
73
|
agentId: string;
|
|
74
|
+
projectId: string;
|
|
75
|
+
tenantId: string;
|
|
76
|
+
expiresAt: string | null;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -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
|
-
enabled: boolean;
|
|
10
9
|
id: string;
|
|
11
10
|
createdAt: string;
|
|
12
|
-
updatedAt: string;
|
|
13
11
|
name: string;
|
|
14
|
-
|
|
15
|
-
tenantId: string | null;
|
|
12
|
+
updatedAt: string;
|
|
16
13
|
projectId: string | null;
|
|
14
|
+
tenantId: string | null;
|
|
15
|
+
description: string | null;
|
|
16
|
+
enabled: boolean;
|
|
17
17
|
config: {
|
|
18
18
|
type: "web_client";
|
|
19
19
|
webClient: {
|
|
@@ -49,14 +49,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
49
49
|
}>;
|
|
50
50
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
51
51
|
type: AppType;
|
|
52
|
-
enabled: boolean;
|
|
53
52
|
id: string;
|
|
54
53
|
createdAt: string;
|
|
55
|
-
updatedAt: string;
|
|
56
54
|
name: string;
|
|
57
|
-
|
|
58
|
-
tenantId: string | null;
|
|
55
|
+
updatedAt: string;
|
|
59
56
|
projectId: string | null;
|
|
57
|
+
tenantId: string | null;
|
|
58
|
+
description: string | null;
|
|
59
|
+
enabled: boolean;
|
|
60
60
|
config: {
|
|
61
61
|
type: "web_client";
|
|
62
62
|
webClient: {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import "../../types/utility.js";
|
|
3
|
+
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
4
|
+
|
|
5
|
+
//#region src/data-access/runtime/audit-queries.d.ts
|
|
6
|
+
declare const listGitHubToolAccessByProject: (db: AgentsRunDatabaseClient) => (params: {
|
|
7
|
+
scopes: ProjectScopeConfig;
|
|
8
|
+
}) => Promise<{
|
|
9
|
+
id: string;
|
|
10
|
+
toolId: string;
|
|
11
|
+
}[]>;
|
|
12
|
+
declare const listGitHubToolAccessModeByProject: (db: AgentsRunDatabaseClient) => (params: {
|
|
13
|
+
scopes: ProjectScopeConfig;
|
|
14
|
+
}) => Promise<{
|
|
15
|
+
toolId: string;
|
|
16
|
+
}[]>;
|
|
17
|
+
declare const listSlackToolAccessConfigByProject: (db: AgentsRunDatabaseClient) => (params: {
|
|
18
|
+
scopes: ProjectScopeConfig;
|
|
19
|
+
}) => Promise<{
|
|
20
|
+
toolId: string;
|
|
21
|
+
}[]>;
|
|
22
|
+
declare const listContextCacheByProject: (db: AgentsRunDatabaseClient) => (params: {
|
|
23
|
+
scopes: ProjectScopeConfig;
|
|
24
|
+
}) => Promise<{
|
|
25
|
+
id: string;
|
|
26
|
+
contextConfigId: string;
|
|
27
|
+
}[]>;
|
|
28
|
+
declare const listApiKeysByProject: (db: AgentsRunDatabaseClient) => (params: {
|
|
29
|
+
scopes: ProjectScopeConfig;
|
|
30
|
+
}) => Promise<{
|
|
31
|
+
id: string;
|
|
32
|
+
agentId: string;
|
|
33
|
+
}[]>;
|
|
34
|
+
declare const listSlackChannelAgentConfigsByProject: (db: AgentsRunDatabaseClient) => (params: {
|
|
35
|
+
scopes: ProjectScopeConfig;
|
|
36
|
+
}) => Promise<{
|
|
37
|
+
id: string;
|
|
38
|
+
agentId: string;
|
|
39
|
+
}[]>;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { listApiKeysByProject, listContextCacheByProject, listGitHubToolAccessByProject, listGitHubToolAccessModeByProject, listSlackChannelAgentConfigsByProject, listSlackToolAccessConfigByProject };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { apiKeys, contextCache, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig } from "../../db/runtime/runtime-schema.js";
|
|
2
|
+
import { and, eq } from "drizzle-orm";
|
|
3
|
+
|
|
4
|
+
//#region src/data-access/runtime/audit-queries.ts
|
|
5
|
+
const listGitHubToolAccessByProject = (db) => async (params) => {
|
|
6
|
+
return db.select({
|
|
7
|
+
id: workAppGitHubMcpToolRepositoryAccess.id,
|
|
8
|
+
toolId: workAppGitHubMcpToolRepositoryAccess.toolId
|
|
9
|
+
}).from(workAppGitHubMcpToolRepositoryAccess).where(and(eq(workAppGitHubMcpToolRepositoryAccess.tenantId, params.scopes.tenantId), eq(workAppGitHubMcpToolRepositoryAccess.projectId, params.scopes.projectId)));
|
|
10
|
+
};
|
|
11
|
+
const listGitHubToolAccessModeByProject = (db) => async (params) => {
|
|
12
|
+
return db.select({ toolId: workAppGitHubMcpToolAccessMode.toolId }).from(workAppGitHubMcpToolAccessMode).where(and(eq(workAppGitHubMcpToolAccessMode.tenantId, params.scopes.tenantId), eq(workAppGitHubMcpToolAccessMode.projectId, params.scopes.projectId)));
|
|
13
|
+
};
|
|
14
|
+
const listSlackToolAccessConfigByProject = (db) => async (params) => {
|
|
15
|
+
return db.select({ toolId: workAppSlackMcpToolAccessConfig.toolId }).from(workAppSlackMcpToolAccessConfig).where(and(eq(workAppSlackMcpToolAccessConfig.tenantId, params.scopes.tenantId), eq(workAppSlackMcpToolAccessConfig.projectId, params.scopes.projectId)));
|
|
16
|
+
};
|
|
17
|
+
const listContextCacheByProject = (db) => async (params) => {
|
|
18
|
+
return db.select({
|
|
19
|
+
id: contextCache.id,
|
|
20
|
+
contextConfigId: contextCache.contextConfigId
|
|
21
|
+
}).from(contextCache).where(and(eq(contextCache.tenantId, params.scopes.tenantId), eq(contextCache.projectId, params.scopes.projectId)));
|
|
22
|
+
};
|
|
23
|
+
const listApiKeysByProject = (db) => async (params) => {
|
|
24
|
+
return db.select({
|
|
25
|
+
id: apiKeys.id,
|
|
26
|
+
agentId: apiKeys.agentId
|
|
27
|
+
}).from(apiKeys).where(and(eq(apiKeys.tenantId, params.scopes.tenantId), eq(apiKeys.projectId, params.scopes.projectId)));
|
|
28
|
+
};
|
|
29
|
+
const listSlackChannelAgentConfigsByProject = (db) => async (params) => {
|
|
30
|
+
return db.select({
|
|
31
|
+
id: workAppSlackChannelAgentConfigs.id,
|
|
32
|
+
agentId: workAppSlackChannelAgentConfigs.agentId
|
|
33
|
+
}).from(workAppSlackChannelAgentConfigs).where(and(eq(workAppSlackChannelAgentConfigs.tenantId, params.scopes.tenantId), eq(workAppSlackChannelAgentConfigs.projectId, params.scopes.projectId)));
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { listApiKeysByProject, listContextCacheByProject, listGitHubToolAccessByProject, listGitHubToolAccessModeByProject, listSlackChannelAgentConfigsByProject, listSlackToolAccessConfigByProject };
|