@inkeep/agents-core 0.78.1 → 0.78.3
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-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/auth.js +7 -0
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/signoz-queries.d.ts +2 -0
- package/dist/constants/signoz-queries.js +3 -1
- package/dist/data-access/manage/agents.d.ts +37 -37
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- 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 +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +7 -7
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +15 -15
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/events.d.ts +4 -4
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +27 -27
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +387 -387
- package/dist/db/runtime/runtime-schema.d.ts +415 -415
- package/dist/types/utility.d.ts +1 -0
- 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 +37 -37
- package/dist/validation/schemas.d.ts +2290 -2290
- package/package.json +1 -1
|
@@ -12,12 +12,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
18
|
-
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
19
18
|
sourceSubAgentId: string;
|
|
20
19
|
targetSubAgentId: string | null;
|
|
20
|
+
relationType: string | null;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: AgentScopeConfig;
|
|
@@ -47,12 +47,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
53
|
-
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
54
53
|
sourceSubAgentId: string;
|
|
55
54
|
targetSubAgentId: string | null;
|
|
55
|
+
relationType: string | null;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
@@ -60,12 +60,12 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
tenantId: string;
|
|
66
|
-
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
67
66
|
sourceSubAgentId: string;
|
|
68
67
|
targetSubAgentId: string | null;
|
|
68
|
+
relationType: string | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -129,12 +129,12 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
-
agentId: string;
|
|
133
|
-
projectId: string;
|
|
134
132
|
tenantId: string;
|
|
135
|
-
|
|
133
|
+
projectId: string;
|
|
134
|
+
agentId: string;
|
|
136
135
|
sourceSubAgentId: string;
|
|
137
136
|
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
|
|
@@ -148,12 +148,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
-
agentId: string;
|
|
152
|
-
projectId: string;
|
|
153
151
|
tenantId: string;
|
|
154
|
-
|
|
152
|
+
projectId: string;
|
|
153
|
+
agentId: string;
|
|
155
154
|
sourceSubAgentId: string;
|
|
156
155
|
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)
|
|
@@ -162,12 +162,12 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
agentId: string;
|
|
166
|
-
projectId: string;
|
|
167
165
|
tenantId: string;
|
|
168
|
-
|
|
166
|
+
projectId: string;
|
|
167
|
+
agentId: string;
|
|
169
168
|
sourceSubAgentId: string;
|
|
170
169
|
targetSubAgentId: string | null;
|
|
170
|
+
relationType: string | null;
|
|
171
171
|
}>;
|
|
172
172
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
173
173
|
scopes: AgentScopeConfig;
|
|
@@ -207,12 +207,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
-
agentId: string;
|
|
211
|
-
projectId: string;
|
|
212
210
|
tenantId: string;
|
|
213
|
-
|
|
211
|
+
projectId: string;
|
|
212
|
+
agentId: string;
|
|
214
213
|
toolId: string;
|
|
215
214
|
headers: Record<string, string> | null;
|
|
215
|
+
subAgentId: string;
|
|
216
216
|
selectedTools: string[] | null;
|
|
217
217
|
toolPolicies: Record<string, {
|
|
218
218
|
needsApproval?: boolean;
|
|
@@ -251,12 +251,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
-
agentId: string;
|
|
255
|
-
projectId: string;
|
|
256
254
|
tenantId: string;
|
|
257
|
-
|
|
255
|
+
projectId: string;
|
|
256
|
+
agentId: string;
|
|
258
257
|
toolId: string;
|
|
259
258
|
headers: Record<string, string> | null;
|
|
259
|
+
subAgentId: string;
|
|
260
260
|
selectedTools: string[] | null;
|
|
261
261
|
toolPolicies: Record<string, {
|
|
262
262
|
needsApproval?: boolean;
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
18
|
-
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
53
|
-
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
54
|
+
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
tenantId: string;
|
|
66
|
-
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
67
|
+
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -225,11 +225,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
agentId: string;
|
|
229
|
-
projectId: string;
|
|
230
228
|
tenantId: string;
|
|
231
|
-
|
|
229
|
+
projectId: string;
|
|
230
|
+
agentId: string;
|
|
232
231
|
headers: Record<string, string> | null;
|
|
232
|
+
subAgentId: string;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -242,11 +242,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
242
242
|
id: string;
|
|
243
243
|
createdAt: string;
|
|
244
244
|
updatedAt: string;
|
|
245
|
-
agentId: string;
|
|
246
|
-
projectId: string;
|
|
247
245
|
tenantId: string;
|
|
248
|
-
|
|
246
|
+
projectId: string;
|
|
247
|
+
agentId: string;
|
|
249
248
|
headers: Record<string, string> | null;
|
|
249
|
+
subAgentId: string;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -263,11 +263,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
263
263
|
id: string;
|
|
264
264
|
createdAt: string;
|
|
265
265
|
updatedAt: string;
|
|
266
|
-
agentId: string;
|
|
267
|
-
projectId: string;
|
|
268
266
|
tenantId: string;
|
|
269
|
-
|
|
267
|
+
projectId: string;
|
|
268
|
+
agentId: string;
|
|
270
269
|
headers: Record<string, string> | null;
|
|
270
|
+
subAgentId: string;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,12 +10,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
13
|
name: string;
|
|
14
|
+
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
16
|
description: string | null;
|
|
20
17
|
models: {
|
|
21
18
|
base?: {
|
|
@@ -37,10 +34,13 @@ 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
|
+
tenantId: string;
|
|
41
|
+
prompt: string | null;
|
|
42
|
+
projectId: string;
|
|
43
|
+
agentId: string;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
outputContract: {
|
|
46
46
|
[x: string]: unknown;
|
|
@@ -56,12 +56,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
57
57
|
}) => Promise<{
|
|
58
58
|
id: string;
|
|
59
|
-
createdAt: string;
|
|
60
59
|
name: string;
|
|
60
|
+
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
agentId: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
tenantId: string;
|
|
65
62
|
description: string | null;
|
|
66
63
|
models: {
|
|
67
64
|
base?: {
|
|
@@ -83,10 +80,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
83
80
|
allowedProviders?: string[] | undefined;
|
|
84
81
|
} | undefined;
|
|
85
82
|
} | null;
|
|
86
|
-
prompt: string | null;
|
|
87
83
|
stopWhen: {
|
|
88
84
|
stepCountIs?: number | undefined;
|
|
89
85
|
} | null;
|
|
86
|
+
tenantId: string;
|
|
87
|
+
prompt: string | null;
|
|
88
|
+
projectId: string;
|
|
89
|
+
agentId: string;
|
|
90
90
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
91
91
|
outputContract: {
|
|
92
92
|
[x: string]: unknown;
|
|
@@ -155,12 +155,9 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
155
155
|
}>;
|
|
156
156
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
-
createdAt: string;
|
|
159
158
|
name: string;
|
|
159
|
+
createdAt: string;
|
|
160
160
|
updatedAt: string;
|
|
161
|
-
agentId: string;
|
|
162
|
-
projectId: string;
|
|
163
|
-
tenantId: string;
|
|
164
161
|
description: string | null;
|
|
165
162
|
models: {
|
|
166
163
|
base?: {
|
|
@@ -182,10 +179,13 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
182
179
|
allowedProviders?: string[] | undefined;
|
|
183
180
|
} | undefined;
|
|
184
181
|
} | null;
|
|
185
|
-
prompt: string | null;
|
|
186
182
|
stopWhen: {
|
|
187
183
|
stepCountIs?: number | undefined;
|
|
188
184
|
} | null;
|
|
185
|
+
tenantId: string;
|
|
186
|
+
prompt: string | null;
|
|
187
|
+
projectId: string;
|
|
188
|
+
agentId: string;
|
|
189
189
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
190
190
|
outputContract: {
|
|
191
191
|
[x: string]: unknown;
|
|
@@ -21,18 +21,18 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
id: string;
|
|
24
|
-
createdAt: string;
|
|
25
24
|
name: string;
|
|
25
|
+
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
|
-
projectId: string;
|
|
28
|
-
tenantId: string;
|
|
29
27
|
description: string | null;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
projectId: string;
|
|
30
30
|
headers: Record<string, string> | null;
|
|
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;
|
|
@@ -79,18 +79,18 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
81
|
id: string;
|
|
82
|
-
createdAt: string;
|
|
83
82
|
name: string;
|
|
83
|
+
createdAt: string;
|
|
84
84
|
updatedAt: string;
|
|
85
|
-
projectId: string;
|
|
86
|
-
tenantId: string;
|
|
87
85
|
description: string | null;
|
|
86
|
+
tenantId: string;
|
|
87
|
+
projectId: string;
|
|
88
88
|
headers: Record<string, string> | null;
|
|
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;
|
|
@@ -138,12 +138,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
|
-
agentId: string;
|
|
142
|
-
projectId: string;
|
|
143
141
|
tenantId: string;
|
|
144
|
-
|
|
142
|
+
projectId: string;
|
|
143
|
+
agentId: string;
|
|
145
144
|
toolId: string;
|
|
146
145
|
headers: Record<string, string> | null;
|
|
146
|
+
subAgentId: string;
|
|
147
147
|
selectedTools: string[] | null;
|
|
148
148
|
toolPolicies: Record<string, {
|
|
149
149
|
needsApproval?: boolean;
|
|
@@ -157,12 +157,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
157
157
|
id: string;
|
|
158
158
|
createdAt: string;
|
|
159
159
|
updatedAt: string;
|
|
160
|
-
agentId: string;
|
|
161
|
-
projectId: string;
|
|
162
160
|
tenantId: string;
|
|
163
|
-
|
|
161
|
+
projectId: string;
|
|
162
|
+
agentId: string;
|
|
164
163
|
toolId: string;
|
|
165
164
|
headers: Record<string, string> | null;
|
|
165
|
+
subAgentId: string;
|
|
166
166
|
selectedTools: string[] | null;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
168
168
|
needsApproval?: boolean;
|
|
@@ -185,12 +185,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
185
185
|
id: string;
|
|
186
186
|
createdAt: string;
|
|
187
187
|
updatedAt: string;
|
|
188
|
-
agentId: string;
|
|
189
|
-
projectId: string;
|
|
190
188
|
tenantId: string;
|
|
191
|
-
|
|
189
|
+
projectId: string;
|
|
190
|
+
agentId: string;
|
|
192
191
|
toolId: string;
|
|
193
192
|
headers: Record<string, string> | null;
|
|
193
|
+
subAgentId: string;
|
|
194
194
|
selectedTools: string[] | null;
|
|
195
195
|
toolPolicies: Record<string, {
|
|
196
196
|
needsApproval?: boolean;
|
|
@@ -203,18 +203,18 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
205
|
id: string;
|
|
206
|
-
createdAt: string;
|
|
207
206
|
name: string;
|
|
207
|
+
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
-
projectId: string;
|
|
210
|
-
tenantId: string;
|
|
211
209
|
description: string | null;
|
|
210
|
+
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
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;
|
|
@@ -37,16 +37,16 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
37
37
|
authentication: unknown;
|
|
38
38
|
signingSecretCredentialReferenceId: string | null;
|
|
39
39
|
signatureVerification: {
|
|
40
|
-
algorithm: "
|
|
41
|
-
encoding: "
|
|
40
|
+
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
|
+
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "query" | "
|
|
43
|
+
source: "query" | "header" | "body";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -132,10 +132,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
134
|
createdAt: string;
|
|
135
|
-
agentId: string;
|
|
136
|
-
projectId: string;
|
|
137
|
-
tenantId: string;
|
|
138
135
|
userId: string;
|
|
136
|
+
tenantId: string;
|
|
137
|
+
projectId: string;
|
|
138
|
+
agentId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
141
141
|
declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,13 +9,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
12
|
name: string | null;
|
|
13
|
+
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
15
|
expiresAt: string | null;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
@@ -23,13 +23,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
26
|
-
createdAt: string;
|
|
27
26
|
name: string | null;
|
|
27
|
+
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
|
-
agentId: string;
|
|
30
|
-
projectId: string;
|
|
31
|
-
tenantId: string;
|
|
32
29
|
expiresAt: string | null;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
agentId: string;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -40,13 +40,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
|
-
createdAt: string;
|
|
44
43
|
name: string | null;
|
|
44
|
+
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
-
agentId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
tenantId: string;
|
|
49
46
|
expiresAt: string | null;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
agentId: string;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -67,13 +67,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
69
|
id: string;
|
|
70
|
-
createdAt: string;
|
|
71
70
|
name: string | null;
|
|
71
|
+
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
|
-
agentId: string;
|
|
74
|
-
projectId: string;
|
|
75
|
-
tenantId: string;
|
|
76
73
|
expiresAt: string | null;
|
|
74
|
+
tenantId: string;
|
|
75
|
+
projectId: string;
|
|
76
|
+
agentId: string;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -7,17 +7,14 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
8
|
type: AppType;
|
|
9
9
|
id: string;
|
|
10
|
-
createdAt: string;
|
|
11
10
|
name: string;
|
|
11
|
+
createdAt: string;
|
|
12
12
|
updatedAt: string;
|
|
13
|
-
projectId: string | null;
|
|
14
|
-
tenantId: string | null;
|
|
15
13
|
description: string | null;
|
|
14
|
+
tenantId: string | null;
|
|
16
15
|
enabled: boolean;
|
|
17
16
|
prompt: string | null;
|
|
18
|
-
|
|
19
|
-
defaultProjectId: string | null;
|
|
20
|
-
defaultAgentId: string | null;
|
|
17
|
+
projectId: string | null;
|
|
21
18
|
config: {
|
|
22
19
|
type: "web_client";
|
|
23
20
|
webClient: {
|
|
@@ -25,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
25
22
|
publicKeys: {
|
|
26
23
|
kid: string;
|
|
27
24
|
publicKey: string;
|
|
28
|
-
algorithm: "
|
|
25
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
29
26
|
addedAt: string;
|
|
30
27
|
}[];
|
|
31
28
|
allowAnonymous: boolean;
|
|
@@ -48,6 +45,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
48
45
|
}[] | undefined;
|
|
49
46
|
};
|
|
50
47
|
};
|
|
48
|
+
lastUsedAt: string | null;
|
|
49
|
+
defaultProjectId: string | null;
|
|
50
|
+
defaultAgentId: string | null;
|
|
51
51
|
} | undefined>;
|
|
52
52
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
53
53
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -76,17 +76,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
76
76
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
77
77
|
type: AppType;
|
|
78
78
|
id: string;
|
|
79
|
-
createdAt: string;
|
|
80
79
|
name: string;
|
|
80
|
+
createdAt: string;
|
|
81
81
|
updatedAt: string;
|
|
82
|
-
projectId: string | null;
|
|
83
|
-
tenantId: string | null;
|
|
84
82
|
description: string | null;
|
|
83
|
+
tenantId: string | null;
|
|
85
84
|
enabled: boolean;
|
|
86
85
|
prompt: string | null;
|
|
87
|
-
|
|
88
|
-
defaultProjectId: string | null;
|
|
89
|
-
defaultAgentId: string | null;
|
|
86
|
+
projectId: string | null;
|
|
90
87
|
config: {
|
|
91
88
|
type: "web_client";
|
|
92
89
|
webClient: {
|
|
@@ -94,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
94
91
|
publicKeys: {
|
|
95
92
|
kid: string;
|
|
96
93
|
publicKey: string;
|
|
97
|
-
algorithm: "
|
|
94
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
98
95
|
addedAt: string;
|
|
99
96
|
}[];
|
|
100
97
|
allowAnonymous: boolean;
|
|
@@ -117,6 +114,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
117
114
|
}[] | undefined;
|
|
118
115
|
};
|
|
119
116
|
};
|
|
117
|
+
lastUsedAt: string | null;
|
|
118
|
+
defaultProjectId: string | null;
|
|
119
|
+
defaultAgentId: string | null;
|
|
120
120
|
}>;
|
|
121
121
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
122
122
|
scopes: TenantScopeConfig;
|
|
@@ -174,7 +174,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
174
174
|
publicKeys: {
|
|
175
175
|
kid: string;
|
|
176
176
|
publicKey: string;
|
|
177
|
-
algorithm: "
|
|
177
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
178
178
|
addedAt: string;
|
|
179
179
|
}[];
|
|
180
180
|
allowAnonymous: boolean;
|