@inkeep/agents-core 0.0.0-dev-20260410213051 → 0.0.0-dev-20260410224321
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 +1455 -87
- package/dist/auth/auth-schema.js +139 -6
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +2237 -6
- package/dist/auth/auth.js +23 -1
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agents.d.ts +37 -37
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- 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 +11 -11
- 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 +15 -15
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +13 -13
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/feedback.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +21 -21
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +457 -457
- package/dist/db/runtime/runtime-schema.d.ts +418 -418
- package/dist/db/runtime/runtime-schema.js +7 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +45 -45
- package/dist/validation/schemas.d.ts +2206 -2206
- package/drizzle/runtime/0036_swift_hammerhead.sql +90 -0
- package/drizzle/runtime/meta/0036_snapshot.json +5915 -0
- package/drizzle/runtime/meta/_journal.json +8 -1
- package/package.json +2 -1
|
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
|
-
|
|
17
|
+
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
51
|
projectId: string;
|
|
52
|
-
|
|
52
|
+
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
64
|
projectId: string;
|
|
65
|
-
|
|
65
|
+
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
129
|
id: string;
|
|
130
|
+
tenantId: string;
|
|
130
131
|
createdAt: string;
|
|
131
132
|
updatedAt: string;
|
|
132
|
-
agentId: string;
|
|
133
133
|
projectId: string;
|
|
134
|
-
|
|
134
|
+
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
|
+
tenantId: string;
|
|
149
150
|
createdAt: string;
|
|
150
151
|
updatedAt: string;
|
|
151
|
-
agentId: string;
|
|
152
152
|
projectId: string;
|
|
153
|
-
|
|
153
|
+
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
id: string;
|
|
163
|
+
tenantId: string;
|
|
163
164
|
createdAt: string;
|
|
164
165
|
updatedAt: string;
|
|
165
|
-
agentId: string;
|
|
166
166
|
projectId: string;
|
|
167
|
-
|
|
167
|
+
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -205,18 +205,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
|
+
tenantId: string;
|
|
208
209
|
createdAt: string;
|
|
209
210
|
updatedAt: string;
|
|
210
|
-
agentId: string;
|
|
211
211
|
projectId: string;
|
|
212
|
-
|
|
212
|
+
agentId: string;
|
|
213
213
|
subAgentId: string;
|
|
214
214
|
toolId: string;
|
|
215
215
|
headers: Record<string, string> | null;
|
|
216
|
+
selectedTools: string[] | null;
|
|
216
217
|
toolPolicies: Record<string, {
|
|
217
218
|
needsApproval?: boolean;
|
|
218
219
|
}> | null;
|
|
219
|
-
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -249,18 +249,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
+
tenantId: string;
|
|
252
253
|
createdAt: string;
|
|
253
254
|
updatedAt: string;
|
|
254
|
-
agentId: string;
|
|
255
255
|
projectId: string;
|
|
256
|
-
|
|
256
|
+
agentId: string;
|
|
257
257
|
subAgentId: string;
|
|
258
258
|
toolId: string;
|
|
259
259
|
headers: Record<string, string> | null;
|
|
260
|
+
selectedTools: string[] | null;
|
|
260
261
|
toolPolicies: Record<string, {
|
|
261
262
|
needsApproval?: boolean;
|
|
262
263
|
}> | null;
|
|
263
|
-
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -10,11 +10,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
|
-
|
|
17
|
+
agentId: string;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
@@ -45,11 +45,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
51
|
projectId: string;
|
|
52
|
-
|
|
52
|
+
agentId: string;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
@@ -58,11 +58,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
64
|
projectId: string;
|
|
65
|
-
|
|
65
|
+
agentId: string;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
@@ -223,11 +223,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
|
+
tenantId: string;
|
|
226
227
|
createdAt: string;
|
|
227
228
|
updatedAt: string;
|
|
228
|
-
agentId: string;
|
|
229
229
|
projectId: string;
|
|
230
|
-
|
|
230
|
+
agentId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
232
|
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
@@ -240,11 +240,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
242
|
id: string;
|
|
243
|
+
tenantId: string;
|
|
243
244
|
createdAt: string;
|
|
244
245
|
updatedAt: string;
|
|
245
|
-
agentId: string;
|
|
246
246
|
projectId: string;
|
|
247
|
-
|
|
247
|
+
agentId: string;
|
|
248
248
|
subAgentId: string;
|
|
249
249
|
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
@@ -261,11 +261,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
263
|
id: string;
|
|
264
|
+
tenantId: string;
|
|
264
265
|
createdAt: string;
|
|
265
266
|
updatedAt: string;
|
|
266
|
-
agentId: string;
|
|
267
267
|
projectId: string;
|
|
268
|
-
|
|
268
|
+
agentId: string;
|
|
269
269
|
subAgentId: string;
|
|
270
270
|
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
@@ -10,12 +10,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
name: string;
|
|
15
|
-
updatedAt: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
16
|
description: string | null;
|
|
20
17
|
models: {
|
|
21
18
|
base?: {
|
|
@@ -37,22 +34,22 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
37
34
|
allowedProviders?: string[] | undefined;
|
|
38
35
|
} | undefined;
|
|
39
36
|
} | null;
|
|
40
|
-
prompt: string | null;
|
|
41
37
|
stopWhen: {
|
|
42
38
|
stepCountIs?: number | undefined;
|
|
43
39
|
} | null;
|
|
40
|
+
updatedAt: string;
|
|
41
|
+
projectId: string;
|
|
42
|
+
agentId: string;
|
|
43
|
+
prompt: string | null;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
49
|
id: string;
|
|
50
|
+
tenantId: string;
|
|
50
51
|
createdAt: string;
|
|
51
52
|
name: string;
|
|
52
|
-
updatedAt: string;
|
|
53
|
-
agentId: string;
|
|
54
|
-
projectId: string;
|
|
55
|
-
tenantId: string;
|
|
56
53
|
description: string | null;
|
|
57
54
|
models: {
|
|
58
55
|
base?: {
|
|
@@ -74,10 +71,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
74
71
|
allowedProviders?: string[] | undefined;
|
|
75
72
|
} | undefined;
|
|
76
73
|
} | null;
|
|
77
|
-
prompt: string | null;
|
|
78
74
|
stopWhen: {
|
|
79
75
|
stepCountIs?: number | undefined;
|
|
80
76
|
} | null;
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
projectId: string;
|
|
79
|
+
agentId: string;
|
|
80
|
+
prompt: string | null;
|
|
81
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -128,12 +128,9 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
130
|
id: string;
|
|
131
|
+
tenantId: string;
|
|
131
132
|
createdAt: string;
|
|
132
133
|
name: string;
|
|
133
|
-
updatedAt: string;
|
|
134
|
-
agentId: string;
|
|
135
|
-
projectId: string;
|
|
136
|
-
tenantId: string;
|
|
137
134
|
description: string | null;
|
|
138
135
|
models: {
|
|
139
136
|
base?: {
|
|
@@ -155,10 +152,13 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
155
152
|
allowedProviders?: string[] | undefined;
|
|
156
153
|
} | undefined;
|
|
157
154
|
} | null;
|
|
158
|
-
prompt: string | null;
|
|
159
155
|
stopWhen: {
|
|
160
156
|
stepCountIs?: number | undefined;
|
|
161
157
|
} | null;
|
|
158
|
+
updatedAt: string;
|
|
159
|
+
projectId: string;
|
|
160
|
+
agentId: string;
|
|
161
|
+
prompt: string | null;
|
|
162
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
163
163
|
}>;
|
|
164
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -21,12 +21,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
id: string;
|
|
24
|
+
tenantId: string;
|
|
24
25
|
createdAt: string;
|
|
25
26
|
name: string;
|
|
27
|
+
description: string | null;
|
|
26
28
|
updatedAt: string;
|
|
27
29
|
projectId: string;
|
|
28
|
-
tenantId: string;
|
|
29
|
-
description: string | null;
|
|
30
30
|
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
@@ -79,12 +79,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
81
|
id: string;
|
|
82
|
+
tenantId: string;
|
|
82
83
|
createdAt: string;
|
|
83
84
|
name: string;
|
|
85
|
+
description: string | null;
|
|
84
86
|
updatedAt: string;
|
|
85
87
|
projectId: string;
|
|
86
|
-
tenantId: string;
|
|
87
|
-
description: string | null;
|
|
88
88
|
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
@@ -136,18 +136,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
138
|
id: string;
|
|
139
|
+
tenantId: string;
|
|
139
140
|
createdAt: string;
|
|
140
141
|
updatedAt: string;
|
|
141
|
-
agentId: string;
|
|
142
142
|
projectId: string;
|
|
143
|
-
|
|
143
|
+
agentId: string;
|
|
144
144
|
subAgentId: string;
|
|
145
145
|
toolId: string;
|
|
146
146
|
headers: Record<string, string> | null;
|
|
147
|
+
selectedTools: string[] | null;
|
|
147
148
|
toolPolicies: Record<string, {
|
|
148
149
|
needsApproval?: boolean;
|
|
149
150
|
}> | null;
|
|
150
|
-
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
@@ -155,18 +155,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
+
tenantId: string;
|
|
158
159
|
createdAt: string;
|
|
159
160
|
updatedAt: string;
|
|
160
|
-
agentId: string;
|
|
161
161
|
projectId: string;
|
|
162
|
-
|
|
162
|
+
agentId: string;
|
|
163
163
|
subAgentId: string;
|
|
164
164
|
toolId: string;
|
|
165
165
|
headers: Record<string, string> | null;
|
|
166
|
+
selectedTools: string[] | null;
|
|
166
167
|
toolPolicies: Record<string, {
|
|
167
168
|
needsApproval?: boolean;
|
|
168
169
|
}> | 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)
|
|
@@ -183,18 +183,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
185
|
id: string;
|
|
186
|
+
tenantId: string;
|
|
186
187
|
createdAt: string;
|
|
187
188
|
updatedAt: string;
|
|
188
|
-
agentId: string;
|
|
189
189
|
projectId: string;
|
|
190
|
-
|
|
190
|
+
agentId: string;
|
|
191
191
|
subAgentId: string;
|
|
192
192
|
toolId: string;
|
|
193
193
|
headers: Record<string, string> | null;
|
|
194
|
+
selectedTools: string[] | null;
|
|
194
195
|
toolPolicies: Record<string, {
|
|
195
196
|
needsApproval?: boolean;
|
|
196
197
|
}> | null;
|
|
197
|
-
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -203,12 +203,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
205
|
id: string;
|
|
206
|
+
tenantId: string;
|
|
206
207
|
createdAt: string;
|
|
207
208
|
name: string;
|
|
209
|
+
description: string | null;
|
|
208
210
|
updatedAt: string;
|
|
209
211
|
projectId: string;
|
|
210
|
-
tenantId: string;
|
|
211
|
-
description: string | null;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
@@ -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" | "body" | "header";
|
|
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" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -131,10 +131,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
131
131
|
triggerId: string;
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
|
+
tenantId: string;
|
|
134
135
|
createdAt: string;
|
|
135
|
-
agentId: string;
|
|
136
136
|
projectId: string;
|
|
137
|
-
|
|
137
|
+
agentId: string;
|
|
138
138
|
userId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
@@ -9,48 +9,48 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
+
tenantId: string;
|
|
12
13
|
createdAt: string;
|
|
13
14
|
name: string | null;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
|
-
|
|
17
|
+
agentId: string;
|
|
18
|
+
expiresAt: string | null;
|
|
19
|
+
lastUsedAt: string | null;
|
|
18
20
|
publicId: string;
|
|
19
21
|
keyHash: string;
|
|
20
22
|
keyPrefix: string;
|
|
21
|
-
lastUsedAt: string | null;
|
|
22
|
-
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
26
|
+
tenantId: string;
|
|
26
27
|
createdAt: string;
|
|
27
28
|
name: string | null;
|
|
28
29
|
updatedAt: string;
|
|
29
|
-
agentId: string;
|
|
30
30
|
projectId: string;
|
|
31
|
-
|
|
31
|
+
agentId: string;
|
|
32
|
+
expiresAt: string | null;
|
|
33
|
+
lastUsedAt: string | null;
|
|
32
34
|
publicId: string;
|
|
33
35
|
keyHash: string;
|
|
34
36
|
keyPrefix: string;
|
|
35
|
-
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
|
id: string;
|
|
43
|
+
tenantId: string;
|
|
43
44
|
createdAt: string;
|
|
44
45
|
name: string | null;
|
|
45
46
|
updatedAt: string;
|
|
46
|
-
agentId: string;
|
|
47
47
|
projectId: string;
|
|
48
|
-
|
|
48
|
+
agentId: string;
|
|
49
|
+
expiresAt: string | null;
|
|
50
|
+
lastUsedAt: string | null;
|
|
49
51
|
publicId: string;
|
|
50
52
|
keyHash: string;
|
|
51
53
|
keyPrefix: string;
|
|
52
|
-
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
|
id: string;
|
|
70
|
+
tenantId: string;
|
|
70
71
|
createdAt: string;
|
|
71
72
|
name: string | null;
|
|
72
73
|
updatedAt: string;
|
|
73
|
-
agentId: string;
|
|
74
74
|
projectId: string;
|
|
75
|
-
|
|
75
|
+
agentId: string;
|
|
76
|
+
expiresAt: string | null;
|
|
77
|
+
lastUsedAt: string | null;
|
|
76
78
|
publicId: string;
|
|
77
79
|
keyHash: string;
|
|
78
80
|
keyPrefix: string;
|
|
79
|
-
lastUsedAt: string | null;
|
|
80
|
-
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -5,14 +5,14 @@ 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
|
+
type: AppType;
|
|
8
9
|
id: string;
|
|
10
|
+
tenantId: string | null;
|
|
9
11
|
createdAt: string;
|
|
10
12
|
name: string;
|
|
13
|
+
description: string | null;
|
|
11
14
|
updatedAt: string;
|
|
12
15
|
projectId: string | null;
|
|
13
|
-
tenantId: string | null;
|
|
14
|
-
description: string | null;
|
|
15
|
-
type: AppType;
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
prompt: string | null;
|
|
18
18
|
config: {
|
|
@@ -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: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
26
26
|
addedAt: string;
|
|
27
27
|
}[];
|
|
28
28
|
allowAnonymous: boolean;
|
|
@@ -32,9 +32,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
32
32
|
type: "api";
|
|
33
33
|
api: Record<string, never>;
|
|
34
34
|
};
|
|
35
|
-
lastUsedAt: string | null;
|
|
36
|
-
defaultProjectId: string | null;
|
|
37
35
|
defaultAgentId: string | null;
|
|
36
|
+
defaultProjectId: string | null;
|
|
37
|
+
lastUsedAt: 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,14 +61,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
64
|
+
type: AppType;
|
|
64
65
|
id: string;
|
|
66
|
+
tenantId: string | null;
|
|
65
67
|
createdAt: string;
|
|
66
68
|
name: string;
|
|
69
|
+
description: string | null;
|
|
67
70
|
updatedAt: string;
|
|
68
71
|
projectId: string | null;
|
|
69
|
-
tenantId: string | null;
|
|
70
|
-
description: string | null;
|
|
71
|
-
type: AppType;
|
|
72
72
|
enabled: boolean;
|
|
73
73
|
prompt: string | null;
|
|
74
74
|
config: {
|
|
@@ -78,7 +78,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
78
78
|
publicKeys: {
|
|
79
79
|
kid: string;
|
|
80
80
|
publicKey: string;
|
|
81
|
-
algorithm: "
|
|
81
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
82
82
|
addedAt: string;
|
|
83
83
|
}[];
|
|
84
84
|
allowAnonymous: boolean;
|
|
@@ -88,9 +88,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
88
88
|
type: "api";
|
|
89
89
|
api: Record<string, never>;
|
|
90
90
|
};
|
|
91
|
-
lastUsedAt: string | null;
|
|
92
|
-
defaultProjectId: string | null;
|
|
93
91
|
defaultAgentId: string | null;
|
|
92
|
+
defaultProjectId: string | null;
|
|
93
|
+
lastUsedAt: string | null;
|
|
94
94
|
}>;
|
|
95
95
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
96
96
|
scopes: TenantScopeConfig;
|
|
@@ -148,7 +148,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
148
148
|
publicKeys: {
|
|
149
149
|
kid: string;
|
|
150
150
|
publicKey: string;
|
|
151
|
-
algorithm: "
|
|
151
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
152
152
|
addedAt: string;
|
|
153
153
|
}[];
|
|
154
154
|
allowAnonymous: boolean;
|
|
@@ -16,19 +16,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
+
tenantId: string;
|
|
19
20
|
createdAt: string;
|
|
21
|
+
metadata: ConversationMetadata | null;
|
|
22
|
+
title: string | null;
|
|
20
23
|
updatedAt: string;
|
|
21
|
-
agentId: string | null;
|
|
22
24
|
projectId: string;
|
|
23
|
-
|
|
24
|
-
title: string | null;
|
|
25
|
-
metadata: ConversationMetadata | null;
|
|
26
|
-
userId: string | null;
|
|
25
|
+
agentId: string | null;
|
|
27
26
|
ref: {
|
|
28
27
|
type: "commit" | "tag" | "branch";
|
|
29
28
|
name: string;
|
|
30
29
|
hash: string;
|
|
31
30
|
} | null;
|
|
31
|
+
userId: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -85,19 +85,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
87
|
id: string;
|
|
88
|
+
tenantId: string;
|
|
88
89
|
createdAt: string;
|
|
90
|
+
metadata: ConversationMetadata | null;
|
|
91
|
+
title: string | null;
|
|
89
92
|
updatedAt: string;
|
|
90
|
-
agentId: string | null;
|
|
91
93
|
projectId: string;
|
|
92
|
-
|
|
93
|
-
title: string | null;
|
|
94
|
-
metadata: ConversationMetadata | null;
|
|
95
|
-
userId: string | null;
|
|
94
|
+
agentId: string | null;
|
|
96
95
|
ref: {
|
|
97
96
|
type: "commit" | "tag" | "branch";
|
|
98
97
|
name: string;
|
|
99
98
|
hash: string;
|
|
100
99
|
} | null;
|
|
100
|
+
userId: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -121,19 +121,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
123
|
id: string;
|
|
124
|
+
tenantId: string;
|
|
124
125
|
createdAt: string;
|
|
126
|
+
metadata: ConversationMetadata | null;
|
|
127
|
+
title: string | null;
|
|
125
128
|
updatedAt: string;
|
|
126
|
-
agentId: string | null;
|
|
127
129
|
projectId: string;
|
|
128
|
-
|
|
129
|
-
title: string | null;
|
|
130
|
-
metadata: ConversationMetadata | null;
|
|
131
|
-
userId: string | null;
|
|
130
|
+
agentId: string | null;
|
|
132
131
|
ref: {
|
|
133
132
|
type: "commit" | "tag" | "branch";
|
|
134
133
|
name: string;
|
|
135
134
|
hash: string;
|
|
136
135
|
} | null;
|
|
136
|
+
userId: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -153,19 +153,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
155
|
id: string;
|
|
156
|
+
tenantId: string;
|
|
156
157
|
createdAt: string;
|
|
158
|
+
metadata: ConversationMetadata | null;
|
|
159
|
+
title: string | null;
|
|
157
160
|
updatedAt: string;
|
|
158
|
-
agentId: string | null;
|
|
159
161
|
projectId: string;
|
|
160
|
-
|
|
161
|
-
title: string | null;
|
|
162
|
-
metadata: ConversationMetadata | null;
|
|
163
|
-
userId: string | null;
|
|
162
|
+
agentId: string | null;
|
|
164
163
|
ref: {
|
|
165
164
|
type: "commit" | "tag" | "branch";
|
|
166
165
|
name: string;
|
|
167
166
|
hash: string;
|
|
168
167
|
} | null;
|
|
168
|
+
userId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|