@inkeep/agents-core 0.80.4 → 0.80.6
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 +227 -227
- package/dist/auth/auth-types.d.ts +7 -0
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.js +1 -1
- package/dist/auth/init.js +2 -1
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +25 -25
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +8 -8
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +24 -24
- 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 +13 -13
- package/dist/data-access/runtime/conversations.d.ts +36 -36
- package/dist/data-access/runtime/events.d.ts +3 -3
- package/dist/data-access/runtime/feedback.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +7 -7
- package/dist/db/manage/manage-schema.d.ts +502 -502
- package/dist/db/runtime/runtime-schema.d.ts +462 -462
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
- package/dist/setup/setup.js +4 -0
- package/dist/test-utils/mocks/logger.js +1 -1
- 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 +41 -41
- package/dist/validation/schemas.d.ts +2138 -2138
- package/package.json +4 -4
|
@@ -11,12 +11,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
14
|
agentId: string;
|
|
18
|
-
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
19
17
|
subAgentId: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -46,12 +46,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
|
-
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
projectId: string;
|
|
52
49
|
agentId: string;
|
|
53
|
-
|
|
50
|
+
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
54
52
|
subAgentId: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -59,12 +59,12 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
|
-
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
projectId: string;
|
|
65
62
|
agentId: string;
|
|
66
|
-
|
|
63
|
+
projectId: string;
|
|
64
|
+
tenantId: string;
|
|
67
65
|
subAgentId: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -224,12 +224,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
|
-
updatedAt: string;
|
|
228
|
-
tenantId: string;
|
|
229
|
-
projectId: string;
|
|
230
227
|
agentId: string;
|
|
231
|
-
|
|
228
|
+
projectId: string;
|
|
229
|
+
tenantId: string;
|
|
232
230
|
subAgentId: string;
|
|
231
|
+
updatedAt: string;
|
|
232
|
+
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -241,12 +241,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
241
241
|
}) => Promise<{
|
|
242
242
|
id: string;
|
|
243
243
|
createdAt: string;
|
|
244
|
-
updatedAt: string;
|
|
245
|
-
tenantId: string;
|
|
246
|
-
projectId: string;
|
|
247
244
|
agentId: string;
|
|
248
|
-
|
|
245
|
+
projectId: string;
|
|
246
|
+
tenantId: string;
|
|
249
247
|
subAgentId: string;
|
|
248
|
+
updatedAt: string;
|
|
249
|
+
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -262,12 +262,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
262
262
|
}) => Promise<{
|
|
263
263
|
id: string;
|
|
264
264
|
createdAt: string;
|
|
265
|
-
updatedAt: string;
|
|
266
|
-
tenantId: string;
|
|
267
|
-
projectId: string;
|
|
268
265
|
agentId: string;
|
|
269
|
-
|
|
266
|
+
projectId: string;
|
|
267
|
+
tenantId: string;
|
|
270
268
|
subAgentId: string;
|
|
269
|
+
updatedAt: string;
|
|
270
|
+
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -12,6 +12,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
14
|
description: string | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
updatedAt: string;
|
|
15
20
|
models: {
|
|
16
21
|
base?: {
|
|
17
22
|
model?: string | undefined;
|
|
@@ -35,12 +40,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
35
40
|
stopWhen: {
|
|
36
41
|
stepCountIs?: number | undefined;
|
|
37
42
|
} | null;
|
|
38
|
-
createdAt: string;
|
|
39
|
-
updatedAt: string;
|
|
40
|
-
tenantId: string;
|
|
41
|
-
projectId: string;
|
|
42
43
|
prompt: string | null;
|
|
43
|
-
agentId: string;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
outputContract: {
|
|
46
46
|
[x: string]: unknown;
|
|
@@ -58,6 +58,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
58
58
|
id: string;
|
|
59
59
|
name: string;
|
|
60
60
|
description: string | null;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
agentId: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
tenantId: string;
|
|
65
|
+
updatedAt: string;
|
|
61
66
|
models: {
|
|
62
67
|
base?: {
|
|
63
68
|
model?: string | undefined;
|
|
@@ -81,12 +86,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
81
86
|
stopWhen: {
|
|
82
87
|
stepCountIs?: number | undefined;
|
|
83
88
|
} | null;
|
|
84
|
-
createdAt: string;
|
|
85
|
-
updatedAt: string;
|
|
86
|
-
tenantId: string;
|
|
87
|
-
projectId: string;
|
|
88
89
|
prompt: string | null;
|
|
89
|
-
agentId: string;
|
|
90
90
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
91
91
|
outputContract: {
|
|
92
92
|
[x: string]: unknown;
|
|
@@ -157,6 +157,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
157
157
|
id: string;
|
|
158
158
|
name: string;
|
|
159
159
|
description: string | null;
|
|
160
|
+
createdAt: string;
|
|
161
|
+
agentId: string;
|
|
162
|
+
projectId: string;
|
|
163
|
+
tenantId: string;
|
|
164
|
+
updatedAt: string;
|
|
160
165
|
models: {
|
|
161
166
|
base?: {
|
|
162
167
|
model?: string | undefined;
|
|
@@ -180,12 +185,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
180
185
|
stopWhen: {
|
|
181
186
|
stepCountIs?: number | undefined;
|
|
182
187
|
} | null;
|
|
183
|
-
createdAt: string;
|
|
184
|
-
updatedAt: string;
|
|
185
|
-
tenantId: string;
|
|
186
|
-
projectId: string;
|
|
187
188
|
prompt: string | null;
|
|
188
|
-
agentId: string;
|
|
189
189
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
190
190
|
outputContract: {
|
|
191
191
|
[x: string]: unknown;
|
|
@@ -24,16 +24,16 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
24
24
|
name: string;
|
|
25
25
|
description: string | null;
|
|
26
26
|
createdAt: string;
|
|
27
|
-
updatedAt: string;
|
|
28
|
-
tenantId: string;
|
|
29
27
|
projectId: string;
|
|
30
|
-
|
|
28
|
+
tenantId: string;
|
|
29
|
+
updatedAt: string;
|
|
31
30
|
config: {
|
|
32
31
|
type: "mcp";
|
|
33
32
|
mcp: ToolMcpConfig;
|
|
34
33
|
};
|
|
35
34
|
credentialReferenceId: string | null;
|
|
36
35
|
credentialScope: string;
|
|
36
|
+
headers: Record<string, string> | null;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
39
39
|
lastError: string | null;
|
|
@@ -82,16 +82,16 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
82
82
|
name: string;
|
|
83
83
|
description: string | null;
|
|
84
84
|
createdAt: string;
|
|
85
|
-
updatedAt: string;
|
|
86
|
-
tenantId: string;
|
|
87
85
|
projectId: string;
|
|
88
|
-
|
|
86
|
+
tenantId: string;
|
|
87
|
+
updatedAt: string;
|
|
89
88
|
config: {
|
|
90
89
|
type: "mcp";
|
|
91
90
|
mcp: ToolMcpConfig;
|
|
92
91
|
};
|
|
93
92
|
credentialReferenceId: string | null;
|
|
94
93
|
credentialScope: string;
|
|
94
|
+
headers: Record<string, string> | null;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
97
97
|
lastError: string | null;
|
|
@@ -137,17 +137,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
137
137
|
}) => Promise<{
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
|
-
updatedAt: string;
|
|
141
|
-
tenantId: string;
|
|
142
|
-
projectId: string;
|
|
143
140
|
agentId: string;
|
|
141
|
+
projectId: string;
|
|
142
|
+
tenantId: string;
|
|
143
|
+
subAgentId: string;
|
|
144
144
|
toolId: string;
|
|
145
|
+
updatedAt: string;
|
|
145
146
|
headers: Record<string, string> | null;
|
|
147
|
+
selectedTools: string[] | null;
|
|
146
148
|
toolPolicies: Record<string, {
|
|
147
149
|
needsApproval?: boolean;
|
|
148
150
|
}> | null;
|
|
149
|
-
subAgentId: string;
|
|
150
|
-
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
@@ -156,17 +156,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
158
|
createdAt: string;
|
|
159
|
-
updatedAt: string;
|
|
160
|
-
tenantId: string;
|
|
161
|
-
projectId: string;
|
|
162
159
|
agentId: string;
|
|
160
|
+
projectId: string;
|
|
161
|
+
tenantId: string;
|
|
162
|
+
subAgentId: string;
|
|
163
163
|
toolId: string;
|
|
164
|
+
updatedAt: string;
|
|
164
165
|
headers: Record<string, string> | null;
|
|
166
|
+
selectedTools: string[] | null;
|
|
165
167
|
toolPolicies: Record<string, {
|
|
166
168
|
needsApproval?: boolean;
|
|
167
169
|
}> | null;
|
|
168
|
-
subAgentId: string;
|
|
169
|
-
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -184,17 +184,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
184
184
|
}) => Promise<{
|
|
185
185
|
id: string;
|
|
186
186
|
createdAt: string;
|
|
187
|
-
updatedAt: string;
|
|
188
|
-
tenantId: string;
|
|
189
|
-
projectId: string;
|
|
190
187
|
agentId: string;
|
|
188
|
+
projectId: string;
|
|
189
|
+
tenantId: string;
|
|
190
|
+
subAgentId: string;
|
|
191
191
|
toolId: string;
|
|
192
|
+
updatedAt: string;
|
|
192
193
|
headers: Record<string, string> | null;
|
|
194
|
+
selectedTools: string[] | null;
|
|
193
195
|
toolPolicies: Record<string, {
|
|
194
196
|
needsApproval?: boolean;
|
|
195
197
|
}> | null;
|
|
196
|
-
subAgentId: string;
|
|
197
|
-
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -206,16 +206,16 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
206
206
|
name: string;
|
|
207
207
|
description: string | null;
|
|
208
208
|
createdAt: string;
|
|
209
|
-
updatedAt: string;
|
|
210
|
-
tenantId: string;
|
|
211
209
|
projectId: string;
|
|
212
|
-
|
|
210
|
+
tenantId: string;
|
|
211
|
+
updatedAt: string;
|
|
213
212
|
config: {
|
|
214
213
|
type: "mcp";
|
|
215
214
|
mcp: ToolMcpConfig;
|
|
216
215
|
};
|
|
217
216
|
credentialReferenceId: string | null;
|
|
218
217
|
credentialScope: string;
|
|
218
|
+
headers: Record<string, string> | null;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
221
221
|
lastError: string | null;
|
|
@@ -132,9 +132,9 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
134
|
createdAt: string;
|
|
135
|
-
tenantId: string;
|
|
136
|
-
projectId: string;
|
|
137
135
|
agentId: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
tenantId: string;
|
|
138
138
|
userId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
@@ -11,29 +11,29 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
id: string;
|
|
12
12
|
name: string | null;
|
|
13
13
|
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
14
|
agentId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
updatedAt: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
|
+
lastUsedAt: string | null;
|
|
19
20
|
publicId: string;
|
|
20
21
|
keyHash: string;
|
|
21
22
|
keyPrefix: string;
|
|
22
|
-
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
26
26
|
name: string | null;
|
|
27
27
|
createdAt: string;
|
|
28
|
-
updatedAt: string;
|
|
29
|
-
tenantId: string;
|
|
30
|
-
projectId: string;
|
|
31
28
|
agentId: string;
|
|
29
|
+
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
updatedAt: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
|
+
lastUsedAt: string | null;
|
|
33
34
|
publicId: string;
|
|
34
35
|
keyHash: string;
|
|
35
36
|
keyPrefix: string;
|
|
36
|
-
lastUsedAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -42,15 +42,15 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
42
42
|
id: string;
|
|
43
43
|
name: string | null;
|
|
44
44
|
createdAt: string;
|
|
45
|
-
updatedAt: string;
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
45
|
agentId: string;
|
|
46
|
+
projectId: string;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
updatedAt: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
|
+
lastUsedAt: string | null;
|
|
50
51
|
publicId: string;
|
|
51
52
|
keyHash: string;
|
|
52
53
|
keyPrefix: string;
|
|
53
|
-
lastUsedAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -69,15 +69,15 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
69
69
|
id: string;
|
|
70
70
|
name: string | null;
|
|
71
71
|
createdAt: string;
|
|
72
|
-
updatedAt: string;
|
|
73
|
-
tenantId: string;
|
|
74
|
-
projectId: string;
|
|
75
72
|
agentId: string;
|
|
73
|
+
projectId: string;
|
|
74
|
+
tenantId: string;
|
|
75
|
+
updatedAt: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
|
+
lastUsedAt: string | null;
|
|
77
78
|
publicId: string;
|
|
78
79
|
keyHash: string;
|
|
79
80
|
keyPrefix: string;
|
|
80
|
-
lastUsedAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -10,11 +10,10 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
10
10
|
name: string;
|
|
11
11
|
description: string | null;
|
|
12
12
|
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
tenantId: string | null;
|
|
15
13
|
projectId: string | null;
|
|
14
|
+
tenantId: string | null;
|
|
15
|
+
updatedAt: string;
|
|
16
16
|
enabled: boolean;
|
|
17
|
-
prompt: string | null;
|
|
18
17
|
config: {
|
|
19
18
|
type: "web_client";
|
|
20
19
|
webClient: {
|
|
@@ -22,7 +21,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
22
21
|
publicKeys: {
|
|
23
22
|
kid: string;
|
|
24
23
|
publicKey: string;
|
|
25
|
-
algorithm: "
|
|
24
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
26
25
|
addedAt: string;
|
|
27
26
|
}[];
|
|
28
27
|
allowAnonymous: boolean;
|
|
@@ -45,9 +44,10 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
45
44
|
}[] | undefined;
|
|
46
45
|
};
|
|
47
46
|
};
|
|
48
|
-
|
|
49
|
-
defaultProjectId: string | null;
|
|
47
|
+
prompt: string | null;
|
|
50
48
|
defaultAgentId: string | null;
|
|
49
|
+
defaultProjectId: string | null;
|
|
50
|
+
lastUsedAt: string | null;
|
|
51
51
|
} | undefined>;
|
|
52
52
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
53
53
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -79,11 +79,10 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
79
79
|
name: string;
|
|
80
80
|
description: string | null;
|
|
81
81
|
createdAt: string;
|
|
82
|
-
updatedAt: string;
|
|
83
|
-
tenantId: string | null;
|
|
84
82
|
projectId: string | null;
|
|
83
|
+
tenantId: string | null;
|
|
84
|
+
updatedAt: string;
|
|
85
85
|
enabled: boolean;
|
|
86
|
-
prompt: string | null;
|
|
87
86
|
config: {
|
|
88
87
|
type: "web_client";
|
|
89
88
|
webClient: {
|
|
@@ -91,7 +90,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
91
90
|
publicKeys: {
|
|
92
91
|
kid: string;
|
|
93
92
|
publicKey: string;
|
|
94
|
-
algorithm: "
|
|
93
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
95
94
|
addedAt: string;
|
|
96
95
|
}[];
|
|
97
96
|
allowAnonymous: boolean;
|
|
@@ -114,9 +113,10 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
114
113
|
}[] | undefined;
|
|
115
114
|
};
|
|
116
115
|
};
|
|
117
|
-
|
|
118
|
-
defaultProjectId: string | null;
|
|
116
|
+
prompt: string | null;
|
|
119
117
|
defaultAgentId: string | null;
|
|
118
|
+
defaultProjectId: string | null;
|
|
119
|
+
lastUsedAt: 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;
|
|
@@ -17,23 +17,23 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
19
|
id: string;
|
|
20
|
+
ref: {
|
|
21
|
+
type: "commit" | "tag" | "branch";
|
|
22
|
+
name: string;
|
|
23
|
+
hash: string;
|
|
24
|
+
} | null;
|
|
20
25
|
properties: Record<string, unknown> | null;
|
|
21
26
|
title: string | null;
|
|
22
27
|
createdAt: string;
|
|
23
|
-
|
|
24
|
-
tenantId: string;
|
|
28
|
+
agentId: string | null;
|
|
25
29
|
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
26
31
|
metadata: ConversationMetadata | null;
|
|
27
|
-
|
|
32
|
+
updatedAt: string;
|
|
28
33
|
userId: string | null;
|
|
29
|
-
ref: {
|
|
30
|
-
type: "commit" | "tag" | "branch";
|
|
31
|
-
name: string;
|
|
32
|
-
hash: string;
|
|
33
|
-
} | null;
|
|
34
|
-
userProperties: Record<string, unknown> | null;
|
|
35
34
|
activeSubAgentId: string;
|
|
36
35
|
lastContextResolution: string | null;
|
|
36
|
+
userProperties: Record<string, unknown> | null;
|
|
37
37
|
}>;
|
|
38
38
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -92,23 +92,23 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
92
92
|
conversationId: string;
|
|
93
93
|
}) => Promise<{
|
|
94
94
|
id: string;
|
|
95
|
+
ref: {
|
|
96
|
+
type: "commit" | "tag" | "branch";
|
|
97
|
+
name: string;
|
|
98
|
+
hash: string;
|
|
99
|
+
} | null;
|
|
95
100
|
properties: Record<string, unknown> | null;
|
|
96
101
|
title: string | null;
|
|
97
102
|
createdAt: string;
|
|
98
|
-
|
|
99
|
-
tenantId: string;
|
|
103
|
+
agentId: string | null;
|
|
100
104
|
projectId: string;
|
|
105
|
+
tenantId: string;
|
|
101
106
|
metadata: ConversationMetadata | null;
|
|
102
|
-
|
|
107
|
+
updatedAt: string;
|
|
103
108
|
userId: string | null;
|
|
104
|
-
ref: {
|
|
105
|
-
type: "commit" | "tag" | "branch";
|
|
106
|
-
name: string;
|
|
107
|
-
hash: string;
|
|
108
|
-
} | null;
|
|
109
|
-
userProperties: Record<string, unknown> | null;
|
|
110
109
|
activeSubAgentId: string;
|
|
111
110
|
lastContextResolution: string | null;
|
|
111
|
+
userProperties: Record<string, unknown> | null;
|
|
112
112
|
} | undefined>;
|
|
113
113
|
/**
|
|
114
114
|
* Batch-fetch conversations by id within a project scope.
|
|
@@ -147,23 +147,23 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
147
147
|
properties?: Record<string, unknown> | null | undefined;
|
|
148
148
|
} | {
|
|
149
149
|
id: string;
|
|
150
|
+
ref: {
|
|
151
|
+
type: "commit" | "tag" | "branch";
|
|
152
|
+
name: string;
|
|
153
|
+
hash: string;
|
|
154
|
+
} | null;
|
|
150
155
|
properties: Record<string, unknown> | null;
|
|
151
156
|
title: string | null;
|
|
152
157
|
createdAt: string;
|
|
153
|
-
|
|
154
|
-
tenantId: string;
|
|
158
|
+
agentId: string | null;
|
|
155
159
|
projectId: string;
|
|
160
|
+
tenantId: string;
|
|
156
161
|
metadata: ConversationMetadata | null;
|
|
157
|
-
|
|
162
|
+
updatedAt: string;
|
|
158
163
|
userId: string | null;
|
|
159
|
-
ref: {
|
|
160
|
-
type: "commit" | "tag" | "branch";
|
|
161
|
-
name: string;
|
|
162
|
-
hash: string;
|
|
163
|
-
} | null;
|
|
164
|
-
userProperties: Record<string, unknown> | null;
|
|
165
164
|
activeSubAgentId: string;
|
|
166
165
|
lastContextResolution: string | null;
|
|
166
|
+
userProperties: Record<string, unknown> | null;
|
|
167
167
|
}>;
|
|
168
168
|
/**
|
|
169
169
|
* Extract text content from message content object
|
|
@@ -185,23 +185,23 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
185
185
|
conversationId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
|
+
ref: {
|
|
189
|
+
type: "commit" | "tag" | "branch";
|
|
190
|
+
name: string;
|
|
191
|
+
hash: string;
|
|
192
|
+
} | null;
|
|
188
193
|
properties: Record<string, unknown> | null;
|
|
189
194
|
title: string | null;
|
|
190
195
|
createdAt: string;
|
|
191
|
-
|
|
192
|
-
tenantId: string;
|
|
196
|
+
agentId: string | null;
|
|
193
197
|
projectId: string;
|
|
198
|
+
tenantId: string;
|
|
194
199
|
metadata: ConversationMetadata | null;
|
|
195
|
-
|
|
200
|
+
updatedAt: string;
|
|
196
201
|
userId: string | null;
|
|
197
|
-
ref: {
|
|
198
|
-
type: "commit" | "tag" | "branch";
|
|
199
|
-
name: string;
|
|
200
|
-
hash: string;
|
|
201
|
-
} | null;
|
|
202
|
-
userProperties: Record<string, unknown> | null;
|
|
203
202
|
activeSubAgentId: string;
|
|
204
203
|
lastContextResolution: string | null;
|
|
204
|
+
userProperties: Record<string, unknown> | null;
|
|
205
205
|
} | undefined>;
|
|
206
206
|
/**
|
|
207
207
|
* Set active agent for a conversation (upsert operation)
|
|
@@ -11,11 +11,11 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
|
|
|
11
11
|
id: string;
|
|
12
12
|
properties: Record<string, unknown> | null;
|
|
13
13
|
createdAt: string;
|
|
14
|
-
|
|
15
|
-
tenantId: string;
|
|
14
|
+
agentId: string | null;
|
|
16
15
|
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
metadata: Record<string, unknown> | null;
|
|
18
|
-
|
|
18
|
+
updatedAt: string;
|
|
19
19
|
conversationId: string | null;
|
|
20
20
|
userProperties: Record<string, unknown> | null;
|
|
21
21
|
messageId: string | null;
|
|
@@ -73,12 +73,12 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
|
|
|
73
73
|
type: "positive" | "negative";
|
|
74
74
|
id: string;
|
|
75
75
|
createdAt: string;
|
|
76
|
-
updatedAt: string;
|
|
77
|
-
tenantId: string;
|
|
78
76
|
projectId: string;
|
|
79
|
-
|
|
77
|
+
tenantId: string;
|
|
78
|
+
updatedAt: string;
|
|
80
79
|
conversationId: string;
|
|
81
80
|
messageId: string | null;
|
|
81
|
+
details: string | null;
|
|
82
82
|
}>;
|
|
83
83
|
declare const createFeedbackBulk: (db: AgentsRunDatabaseClient) => (items: FeedbackInsert[]) => Promise<(typeof feedback.$inferSelect)[]>;
|
|
84
84
|
declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -103,12 +103,12 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
103
103
|
type: "positive" | "negative";
|
|
104
104
|
id: string;
|
|
105
105
|
createdAt: string;
|
|
106
|
-
updatedAt: string;
|
|
107
|
-
tenantId: string;
|
|
108
106
|
projectId: string;
|
|
109
|
-
|
|
107
|
+
tenantId: string;
|
|
108
|
+
updatedAt: string;
|
|
110
109
|
conversationId: string;
|
|
111
110
|
messageId: string | null;
|
|
111
|
+
details: string | null;
|
|
112
112
|
}>;
|
|
113
113
|
//#endregion
|
|
114
114
|
export { createFeedback, createFeedbackBulk, deleteFeedback, getFeedbackById, getFeedbackByIds, listFeedback, listFeedbackByConversation, updateFeedback };
|