@inkeep/agents-core 0.0.0-dev-20260414161812 → 0.0.0-dev-20260414201919
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.js +14 -0
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- 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 +5 -5
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/skills.d.ts +3 -3
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +3 -3
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +23 -8
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/invitationProjectAssignments.d.ts +16 -0
- package/dist/data-access/runtime/invitationProjectAssignments.js +25 -0
- 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/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +513 -411
- package/dist/db/runtime/runtime-schema.js +13 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/types/index.d.ts +2 -2
- package/dist/types/utility.d.ts +5 -4
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +24 -24
- package/dist/validation/schemas.d.ts +1863 -1765
- package/dist/validation/schemas.js +20 -4
- package/drizzle/runtime/0037_mysterious_gargoyle.sql +10 -0
- package/drizzle/runtime/meta/0037_snapshot.json +5990 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -14,8 +14,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
tenantId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -70,8 +70,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
description: string | null;
|
|
73
|
-
tenantId: string;
|
|
74
73
|
projectId: string;
|
|
74
|
+
tenantId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -143,9 +143,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
|
-
tenantId: string;
|
|
147
146
|
agentId: string;
|
|
148
147
|
projectId: string;
|
|
148
|
+
tenantId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -186,9 +186,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
188
|
createdAt: string;
|
|
189
|
-
tenantId: string;
|
|
190
189
|
agentId: string;
|
|
191
190
|
projectId: string;
|
|
191
|
+
tenantId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -12,9 +12,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
15
|
agentId: string;
|
|
17
16
|
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
18
|
headersSchema: unknown;
|
|
19
19
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
20
20
|
} | undefined>;
|
|
@@ -24,9 +24,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
24
24
|
id: string;
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
|
-
tenantId: string;
|
|
28
27
|
agentId: string;
|
|
29
28
|
projectId: string;
|
|
29
|
+
tenantId: string;
|
|
30
30
|
headersSchema: unknown;
|
|
31
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
32
32
|
}[]>;
|
|
@@ -46,9 +46,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
tenantId: string;
|
|
50
49
|
agentId: string;
|
|
51
50
|
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
52
|
headersSchema: unknown;
|
|
53
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
54
54
|
}>;
|
|
@@ -86,9 +86,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
86
86
|
id: string;
|
|
87
87
|
createdAt: string;
|
|
88
88
|
updatedAt: string;
|
|
89
|
-
tenantId: string;
|
|
90
89
|
agentId: string;
|
|
91
90
|
projectId: string;
|
|
91
|
+
tenantId: string;
|
|
92
92
|
headersSchema: unknown;
|
|
93
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
|
-
tenantId: string;
|
|
71
70
|
agentId: string;
|
|
72
71
|
projectId: string;
|
|
72
|
+
tenantId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
111
|
createdAt: string;
|
|
112
|
-
tenantId: string;
|
|
113
112
|
agentId: string;
|
|
114
113
|
projectId: string;
|
|
114
|
+
tenantId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -58,9 +58,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
58
58
|
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
agentId: string;
|
|
63
62
|
projectId: string;
|
|
63
|
+
tenantId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -100,9 +100,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
tenantId: string;
|
|
104
103
|
agentId: string;
|
|
105
104
|
projectId: string;
|
|
105
|
+
tenantId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -160,14 +160,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
160
160
|
id: string;
|
|
161
161
|
createdAt: string;
|
|
162
162
|
updatedAt: string;
|
|
163
|
-
tenantId: string;
|
|
164
163
|
agentId: string;
|
|
165
164
|
projectId: string;
|
|
165
|
+
tenantId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
|
+
functionToolId: string;
|
|
167
168
|
toolPolicies: Record<string, {
|
|
168
169
|
needsApproval?: boolean;
|
|
169
170
|
}> | null;
|
|
170
|
-
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Update an agent-function tool relation
|
|
@@ -225,14 +225,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
tenantId: string;
|
|
229
228
|
agentId: string;
|
|
230
229
|
projectId: string;
|
|
230
|
+
tenantId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
|
+
functionToolId: string;
|
|
232
233
|
toolPolicies: Record<string, {
|
|
233
234
|
needsApproval?: boolean;
|
|
234
235
|
}> | null;
|
|
235
|
-
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
238
238
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -21,9 +21,9 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
updatedAt: string;
|
|
22
22
|
metadata: Record<string, string> | null;
|
|
23
23
|
description: string;
|
|
24
|
+
projectId: string;
|
|
24
25
|
tenantId: string;
|
|
25
26
|
content: string;
|
|
26
|
-
projectId: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
29
29
|
scopes: ProjectScopeConfig;
|
|
@@ -116,9 +116,9 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
|
|
|
116
116
|
updatedAt: string;
|
|
117
117
|
metadata: Record<string, string> | null;
|
|
118
118
|
description: string;
|
|
119
|
+
projectId: string;
|
|
119
120
|
tenantId: string;
|
|
120
121
|
content: string;
|
|
121
|
-
projectId: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
124
124
|
scopes: ProjectScopeConfig;
|
|
@@ -142,9 +142,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
142
142
|
id: string;
|
|
143
143
|
createdAt: string;
|
|
144
144
|
updatedAt: string;
|
|
145
|
-
tenantId: string;
|
|
146
145
|
agentId: string;
|
|
147
146
|
projectId: string;
|
|
147
|
+
tenantId: string;
|
|
148
148
|
subAgentId: string;
|
|
149
149
|
index: number;
|
|
150
150
|
alwaysLoaded: boolean;
|
|
@@ -13,9 +13,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
headers: Record<string, string> | null;
|
|
16
|
-
tenantId: string;
|
|
17
16
|
agentId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -48,9 +48,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
headers: Record<string, string> | null;
|
|
51
|
-
tenantId: string;
|
|
52
51
|
agentId: string;
|
|
53
52
|
projectId: string;
|
|
53
|
+
tenantId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
@@ -61,9 +61,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
63
|
headers: Record<string, string> | null;
|
|
64
|
-
tenantId: string;
|
|
65
64
|
agentId: string;
|
|
66
65
|
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -190,9 +190,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
190
190
|
createdAt: string;
|
|
191
191
|
updatedAt: string;
|
|
192
192
|
headers: Record<string, string> | null;
|
|
193
|
-
tenantId: string;
|
|
194
193
|
agentId: string;
|
|
195
194
|
projectId: string;
|
|
195
|
+
tenantId: string;
|
|
196
196
|
subAgentId: string;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
@@ -207,9 +207,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
headers: Record<string, string> | null;
|
|
210
|
-
tenantId: string;
|
|
211
210
|
agentId: string;
|
|
212
211
|
projectId: string;
|
|
212
|
+
tenantId: string;
|
|
213
213
|
subAgentId: string;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
@@ -228,9 +228,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
228
228
|
createdAt: string;
|
|
229
229
|
updatedAt: string;
|
|
230
230
|
headers: Record<string, string> | null;
|
|
231
|
-
tenantId: string;
|
|
232
231
|
agentId: string;
|
|
233
232
|
projectId: string;
|
|
233
|
+
tenantId: string;
|
|
234
234
|
subAgentId: string;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
@@ -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
15
|
agentId: string;
|
|
17
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
50
|
agentId: string;
|
|
52
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
63
|
agentId: string;
|
|
65
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
132
|
agentId: string;
|
|
134
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
151
|
agentId: string;
|
|
153
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
165
|
agentId: string;
|
|
167
166
|
projectId: string;
|
|
167
|
+
tenantId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -208,11 +208,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
210
|
headers: Record<string, string> | null;
|
|
211
|
-
tenantId: string;
|
|
212
211
|
agentId: string;
|
|
213
212
|
projectId: string;
|
|
214
|
-
|
|
213
|
+
tenantId: string;
|
|
215
214
|
toolId: string;
|
|
215
|
+
subAgentId: string;
|
|
216
216
|
toolPolicies: Record<string, {
|
|
217
217
|
needsApproval?: boolean;
|
|
218
218
|
}> | null;
|
|
@@ -252,11 +252,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
254
|
headers: Record<string, string> | null;
|
|
255
|
-
tenantId: string;
|
|
256
255
|
agentId: string;
|
|
257
256
|
projectId: string;
|
|
258
|
-
|
|
257
|
+
tenantId: string;
|
|
259
258
|
toolId: string;
|
|
259
|
+
subAgentId: string;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
261
261
|
needsApproval?: boolean;
|
|
262
262
|
}> | null;
|
|
@@ -13,9 +13,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
headers: Record<string, string> | null;
|
|
16
|
-
tenantId: string;
|
|
17
16
|
agentId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -48,9 +48,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
headers: Record<string, string> | null;
|
|
51
|
-
tenantId: string;
|
|
52
51
|
agentId: string;
|
|
53
52
|
projectId: string;
|
|
53
|
+
tenantId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
@@ -61,9 +61,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
63
|
headers: Record<string, string> | null;
|
|
64
|
-
tenantId: string;
|
|
65
64
|
agentId: string;
|
|
66
65
|
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -226,9 +226,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
228
|
headers: Record<string, string> | null;
|
|
229
|
-
tenantId: string;
|
|
230
229
|
agentId: string;
|
|
231
230
|
projectId: string;
|
|
231
|
+
tenantId: string;
|
|
232
232
|
subAgentId: string;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
@@ -243,9 +243,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
243
243
|
createdAt: string;
|
|
244
244
|
updatedAt: string;
|
|
245
245
|
headers: Record<string, string> | null;
|
|
246
|
-
tenantId: string;
|
|
247
246
|
agentId: string;
|
|
248
247
|
projectId: string;
|
|
248
|
+
tenantId: string;
|
|
249
249
|
subAgentId: string;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
@@ -264,9 +264,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
264
264
|
createdAt: string;
|
|
265
265
|
updatedAt: string;
|
|
266
266
|
headers: Record<string, string> | null;
|
|
267
|
-
tenantId: string;
|
|
268
267
|
agentId: string;
|
|
269
268
|
projectId: string;
|
|
269
|
+
tenantId: string;
|
|
270
270
|
subAgentId: string;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
@@ -15,9 +15,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
17
|
prompt: string | null;
|
|
18
|
-
tenantId: string;
|
|
19
18
|
agentId: string;
|
|
20
19
|
projectId: string;
|
|
20
|
+
tenantId: string;
|
|
21
21
|
models: {
|
|
22
22
|
base?: {
|
|
23
23
|
model?: string | undefined;
|
|
@@ -52,9 +52,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
52
52
|
updatedAt: string;
|
|
53
53
|
description: string | null;
|
|
54
54
|
prompt: string | null;
|
|
55
|
-
tenantId: string;
|
|
56
55
|
agentId: string;
|
|
57
56
|
projectId: string;
|
|
57
|
+
tenantId: string;
|
|
58
58
|
models: {
|
|
59
59
|
base?: {
|
|
60
60
|
model?: string | undefined;
|
|
@@ -133,9 +133,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
133
133
|
updatedAt: string;
|
|
134
134
|
description: string | null;
|
|
135
135
|
prompt: string | null;
|
|
136
|
-
tenantId: string;
|
|
137
136
|
agentId: string;
|
|
138
137
|
projectId: string;
|
|
138
|
+
tenantId: string;
|
|
139
139
|
models: {
|
|
140
140
|
base?: {
|
|
141
141
|
model?: string | undefined;
|
|
@@ -26,13 +26,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
26
26
|
updatedAt: string;
|
|
27
27
|
description: string | null;
|
|
28
28
|
headers: Record<string, string> | null;
|
|
29
|
-
tenantId: string;
|
|
30
29
|
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
credentialReferenceId: string | null;
|
|
31
32
|
config: {
|
|
32
33
|
type: "mcp";
|
|
33
34
|
mcp: ToolMcpConfig;
|
|
34
35
|
};
|
|
35
|
-
credentialReferenceId: string | null;
|
|
36
36
|
credentialScope: string;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -84,13 +84,13 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
84
84
|
updatedAt: string;
|
|
85
85
|
description: string | null;
|
|
86
86
|
headers: Record<string, string> | null;
|
|
87
|
-
tenantId: string;
|
|
88
87
|
projectId: string;
|
|
88
|
+
tenantId: string;
|
|
89
|
+
credentialReferenceId: string | null;
|
|
89
90
|
config: {
|
|
90
91
|
type: "mcp";
|
|
91
92
|
mcp: ToolMcpConfig;
|
|
92
93
|
};
|
|
93
|
-
credentialReferenceId: string | null;
|
|
94
94
|
credentialScope: string;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -139,11 +139,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
141
|
headers: Record<string, string> | null;
|
|
142
|
-
tenantId: string;
|
|
143
142
|
agentId: string;
|
|
144
143
|
projectId: string;
|
|
145
|
-
|
|
144
|
+
tenantId: string;
|
|
146
145
|
toolId: string;
|
|
146
|
+
subAgentId: string;
|
|
147
147
|
toolPolicies: Record<string, {
|
|
148
148
|
needsApproval?: boolean;
|
|
149
149
|
}> | null;
|
|
@@ -158,11 +158,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
158
158
|
createdAt: string;
|
|
159
159
|
updatedAt: string;
|
|
160
160
|
headers: Record<string, string> | null;
|
|
161
|
-
tenantId: string;
|
|
162
161
|
agentId: string;
|
|
163
162
|
projectId: string;
|
|
164
|
-
|
|
163
|
+
tenantId: string;
|
|
165
164
|
toolId: string;
|
|
165
|
+
subAgentId: string;
|
|
166
166
|
toolPolicies: Record<string, {
|
|
167
167
|
needsApproval?: boolean;
|
|
168
168
|
}> | null;
|
|
@@ -186,11 +186,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
186
186
|
createdAt: string;
|
|
187
187
|
updatedAt: string;
|
|
188
188
|
headers: Record<string, string> | null;
|
|
189
|
-
tenantId: string;
|
|
190
189
|
agentId: string;
|
|
191
190
|
projectId: string;
|
|
192
|
-
|
|
191
|
+
tenantId: string;
|
|
193
192
|
toolId: string;
|
|
193
|
+
subAgentId: string;
|
|
194
194
|
toolPolicies: Record<string, {
|
|
195
195
|
needsApproval?: boolean;
|
|
196
196
|
}> | null;
|
|
@@ -208,13 +208,13 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
description: string | null;
|
|
210
210
|
headers: Record<string, string> | null;
|
|
211
|
-
tenantId: string;
|
|
212
211
|
projectId: string;
|
|
212
|
+
tenantId: string;
|
|
213
|
+
credentialReferenceId: string | null;
|
|
213
214
|
config: {
|
|
214
215
|
type: "mcp";
|
|
215
216
|
mcp: ToolMcpConfig;
|
|
216
217
|
};
|
|
217
|
-
credentialReferenceId: string | null;
|
|
218
218
|
credentialScope: string;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -133,9 +133,9 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
133
133
|
}) => Promise<{
|
|
134
134
|
createdAt: string;
|
|
135
135
|
userId: string;
|
|
136
|
-
tenantId: string;
|
|
137
136
|
agentId: string;
|
|
138
137
|
projectId: string;
|
|
138
|
+
tenantId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
141
141
|
declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -13,13 +13,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
expiresAt: string | null;
|
|
16
|
-
tenantId: string;
|
|
17
16
|
agentId: string;
|
|
18
17
|
projectId: string;
|
|
19
|
-
|
|
18
|
+
tenantId: string;
|
|
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
25
|
id: string;
|
|
@@ -27,13 +27,13 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
27
27
|
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
29
|
expiresAt: string | null;
|
|
30
|
-
tenantId: string;
|
|
31
30
|
agentId: string;
|
|
32
31
|
projectId: string;
|
|
33
|
-
|
|
32
|
+
tenantId: string;
|
|
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;
|
|
@@ -44,13 +44,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
46
|
expiresAt: string | null;
|
|
47
|
-
tenantId: string;
|
|
48
47
|
agentId: string;
|
|
49
48
|
projectId: string;
|
|
50
|
-
|
|
49
|
+
tenantId: string;
|
|
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;
|
|
@@ -71,13 +71,13 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
71
71
|
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
73
|
expiresAt: string | null;
|
|
74
|
-
tenantId: string;
|
|
75
74
|
agentId: string;
|
|
76
75
|
projectId: string;
|
|
77
|
-
|
|
76
|
+
tenantId: string;
|
|
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,15 +6,15 @@ 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
|
name: string;
|
|
12
11
|
createdAt: string;
|
|
13
12
|
updatedAt: string;
|
|
14
13
|
description: string | null;
|
|
14
|
+
enabled: boolean;
|
|
15
15
|
prompt: string | null;
|
|
16
|
-
tenantId: string | null;
|
|
17
16
|
projectId: string | null;
|
|
17
|
+
tenantId: string | null;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
20
20
|
webClient: {
|
|
@@ -31,10 +31,15 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
31
31
|
} | {
|
|
32
32
|
type: "api";
|
|
33
33
|
api: Record<string, never>;
|
|
34
|
+
} | {
|
|
35
|
+
type: "support_copilot";
|
|
36
|
+
supportCopilot: {
|
|
37
|
+
credentialReferenceIds: string[];
|
|
38
|
+
};
|
|
34
39
|
};
|
|
35
|
-
defaultAgentId: string | null;
|
|
36
|
-
defaultProjectId: string | null;
|
|
37
40
|
lastUsedAt: string | null;
|
|
41
|
+
defaultProjectId: string | null;
|
|
42
|
+
defaultAgentId: string | null;
|
|
38
43
|
} | undefined>;
|
|
39
44
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
40
45
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -62,15 +67,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
62
67
|
}>;
|
|
63
68
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
64
69
|
type: AppType;
|
|
65
|
-
enabled: boolean;
|
|
66
70
|
id: string;
|
|
67
71
|
name: string;
|
|
68
72
|
createdAt: string;
|
|
69
73
|
updatedAt: string;
|
|
70
74
|
description: string | null;
|
|
75
|
+
enabled: boolean;
|
|
71
76
|
prompt: string | null;
|
|
72
|
-
tenantId: string | null;
|
|
73
77
|
projectId: string | null;
|
|
78
|
+
tenantId: string | null;
|
|
74
79
|
config: {
|
|
75
80
|
type: "web_client";
|
|
76
81
|
webClient: {
|
|
@@ -87,10 +92,15 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
87
92
|
} | {
|
|
88
93
|
type: "api";
|
|
89
94
|
api: Record<string, never>;
|
|
95
|
+
} | {
|
|
96
|
+
type: "support_copilot";
|
|
97
|
+
supportCopilot: {
|
|
98
|
+
credentialReferenceIds: string[];
|
|
99
|
+
};
|
|
90
100
|
};
|
|
91
|
-
defaultAgentId: string | null;
|
|
92
|
-
defaultProjectId: string | null;
|
|
93
101
|
lastUsedAt: string | null;
|
|
102
|
+
defaultProjectId: string | null;
|
|
103
|
+
defaultAgentId: string | null;
|
|
94
104
|
}>;
|
|
95
105
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
96
106
|
scopes: TenantScopeConfig;
|
|
@@ -157,6 +167,11 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
157
167
|
} | {
|
|
158
168
|
type: "api";
|
|
159
169
|
api: Record<string, never>;
|
|
170
|
+
} | {
|
|
171
|
+
type: "support_copilot";
|
|
172
|
+
supportCopilot: {
|
|
173
|
+
credentialReferenceIds: string[];
|
|
174
|
+
};
|
|
160
175
|
};
|
|
161
176
|
lastUsedAt: string | null;
|
|
162
177
|
}>;
|