@inkeep/agents-core 0.81.0 → 0.81.1
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-config-utils.js +1 -2
- package/dist/auth/auth-schema.d.ts +220 -220
- package/dist/auth/auth-validation-schemas.d.ts +137 -137
- package/dist/auth/auth.d.ts +12 -11
- package/dist/auth/auth.js +1 -0
- package/dist/auth/permissions.d.ts +7 -7
- package/dist/context/TemplateEngine.js +2 -1
- package/dist/credential-stores/defaults.js +2 -1
- package/dist/credential-stores/memory-store.js +6 -0
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- 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 +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/triggers.d.ts +5 -5
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/apps.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/events.d.ts +2 -2
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- 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/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +405 -405
- package/dist/db/runtime/runtime-schema.d.ts +424 -424
- package/dist/env.d.ts +5 -0
- package/dist/env.js +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/env-detection.d.ts +3 -1
- package/dist/utils/env-detection.js +7 -1
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +32 -32
- package/dist/validation/schemas.d.ts +1866 -1866
- package/package.json +5 -5
|
@@ -12,9 +12,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
headers: Record<string, string> | null;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
18
|
agentId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
@@ -47,9 +47,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
headers: Record<string, string> | null;
|
|
51
|
+
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
53
53
|
agentId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
@@ -60,9 +60,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
headers: Record<string, string> | null;
|
|
64
|
+
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
66
66
|
agentId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
@@ -225,9 +225,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
tenantId: string;
|
|
229
|
-
projectId: string;
|
|
230
228
|
headers: Record<string, string> | null;
|
|
229
|
+
projectId: string;
|
|
230
|
+
tenantId: string;
|
|
231
231
|
agentId: string;
|
|
232
232
|
subAgentId: string;
|
|
233
233
|
targetAgentId: string;
|
|
@@ -242,9 +242,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
242
242
|
id: string;
|
|
243
243
|
createdAt: string;
|
|
244
244
|
updatedAt: string;
|
|
245
|
-
tenantId: string;
|
|
246
|
-
projectId: string;
|
|
247
245
|
headers: Record<string, string> | null;
|
|
246
|
+
projectId: string;
|
|
247
|
+
tenantId: string;
|
|
248
248
|
agentId: string;
|
|
249
249
|
subAgentId: string;
|
|
250
250
|
targetAgentId: string;
|
|
@@ -263,9 +263,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
263
263
|
id: string;
|
|
264
264
|
createdAt: string;
|
|
265
265
|
updatedAt: string;
|
|
266
|
-
tenantId: string;
|
|
267
|
-
projectId: string;
|
|
268
266
|
headers: Record<string, string> | null;
|
|
267
|
+
projectId: string;
|
|
268
|
+
tenantId: string;
|
|
269
269
|
agentId: string;
|
|
270
270
|
subAgentId: string;
|
|
271
271
|
targetAgentId: string;
|
|
@@ -14,8 +14,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
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
|
models: {
|
|
20
20
|
base?: {
|
|
21
21
|
model?: string | undefined;
|
|
@@ -39,8 +39,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
39
|
stopWhen: {
|
|
40
40
|
stepCountIs?: number | undefined;
|
|
41
41
|
} | null;
|
|
42
|
-
prompt: string | null;
|
|
43
42
|
agentId: string;
|
|
43
|
+
prompt: string | null;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
outputContract: {
|
|
46
46
|
[x: string]: unknown;
|
|
@@ -60,8 +60,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
description: string | null;
|
|
63
|
-
tenantId: string;
|
|
64
63
|
projectId: string;
|
|
64
|
+
tenantId: string;
|
|
65
65
|
models: {
|
|
66
66
|
base?: {
|
|
67
67
|
model?: string | undefined;
|
|
@@ -85,8 +85,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
85
85
|
stopWhen: {
|
|
86
86
|
stepCountIs?: number | undefined;
|
|
87
87
|
} | null;
|
|
88
|
-
prompt: string | null;
|
|
89
88
|
agentId: string;
|
|
89
|
+
prompt: string | null;
|
|
90
90
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
91
91
|
outputContract: {
|
|
92
92
|
[x: string]: unknown;
|
|
@@ -159,8 +159,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
159
159
|
createdAt: string;
|
|
160
160
|
updatedAt: string;
|
|
161
161
|
description: string | null;
|
|
162
|
-
tenantId: string;
|
|
163
162
|
projectId: string;
|
|
163
|
+
tenantId: string;
|
|
164
164
|
models: {
|
|
165
165
|
base?: {
|
|
166
166
|
model?: string | undefined;
|
|
@@ -184,8 +184,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
184
184
|
stopWhen: {
|
|
185
185
|
stepCountIs?: number | undefined;
|
|
186
186
|
} | null;
|
|
187
|
-
prompt: string | null;
|
|
188
187
|
agentId: string;
|
|
188
|
+
prompt: string | null;
|
|
189
189
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
190
190
|
outputContract: {
|
|
191
191
|
[x: string]: unknown;
|
|
@@ -25,15 +25,15 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
27
|
description: string | null;
|
|
28
|
-
|
|
28
|
+
headers: Record<string, string> | null;
|
|
29
29
|
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
30
31
|
config: {
|
|
31
32
|
type: "mcp";
|
|
32
33
|
mcp: ToolMcpConfig;
|
|
33
34
|
};
|
|
34
35
|
credentialReferenceId: string | null;
|
|
35
36
|
credentialScope: string;
|
|
36
|
-
headers: Record<string, string> | null;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
39
39
|
lastError: string | null;
|
|
@@ -83,15 +83,15 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
83
83
|
createdAt: string;
|
|
84
84
|
updatedAt: string;
|
|
85
85
|
description: string | null;
|
|
86
|
-
|
|
86
|
+
headers: Record<string, string> | null;
|
|
87
87
|
projectId: string;
|
|
88
|
+
tenantId: string;
|
|
88
89
|
config: {
|
|
89
90
|
type: "mcp";
|
|
90
91
|
mcp: ToolMcpConfig;
|
|
91
92
|
};
|
|
92
93
|
credentialReferenceId: string | null;
|
|
93
94
|
credentialScope: string;
|
|
94
|
-
headers: Record<string, string> | null;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
97
97
|
lastError: string | null;
|
|
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
|
-
tenantId: string;
|
|
142
|
-
projectId: string;
|
|
143
141
|
headers: Record<string, string> | null;
|
|
144
|
-
|
|
142
|
+
projectId: string;
|
|
143
|
+
tenantId: string;
|
|
145
144
|
agentId: string;
|
|
146
145
|
subAgentId: string;
|
|
147
|
-
|
|
146
|
+
toolId: string;
|
|
148
147
|
toolPolicies: Record<string, {
|
|
149
148
|
needsApproval?: boolean;
|
|
150
149
|
}> | null;
|
|
150
|
+
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
157
157
|
id: string;
|
|
158
158
|
createdAt: string;
|
|
159
159
|
updatedAt: string;
|
|
160
|
-
tenantId: string;
|
|
161
|
-
projectId: string;
|
|
162
160
|
headers: Record<string, string> | null;
|
|
163
|
-
|
|
161
|
+
projectId: string;
|
|
162
|
+
tenantId: string;
|
|
164
163
|
agentId: string;
|
|
165
164
|
subAgentId: string;
|
|
166
|
-
|
|
165
|
+
toolId: string;
|
|
167
166
|
toolPolicies: Record<string, {
|
|
168
167
|
needsApproval?: boolean;
|
|
169
168
|
}> | 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)
|
|
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
185
185
|
id: string;
|
|
186
186
|
createdAt: string;
|
|
187
187
|
updatedAt: string;
|
|
188
|
-
tenantId: string;
|
|
189
|
-
projectId: string;
|
|
190
188
|
headers: Record<string, string> | null;
|
|
191
|
-
|
|
189
|
+
projectId: string;
|
|
190
|
+
tenantId: string;
|
|
192
191
|
agentId: string;
|
|
193
192
|
subAgentId: string;
|
|
194
|
-
|
|
193
|
+
toolId: string;
|
|
195
194
|
toolPolicies: Record<string, {
|
|
196
195
|
needsApproval?: boolean;
|
|
197
196
|
}> | null;
|
|
197
|
+
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -207,15 +207,15 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
description: string | null;
|
|
210
|
-
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
211
|
projectId: string;
|
|
212
|
+
tenantId: string;
|
|
212
213
|
config: {
|
|
213
214
|
type: "mcp";
|
|
214
215
|
mcp: ToolMcpConfig;
|
|
215
216
|
};
|
|
216
217
|
credentialReferenceId: string | null;
|
|
217
218
|
credentialScope: string;
|
|
218
|
-
headers: Record<string, string> | null;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
221
221
|
lastError: string | 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" | "body" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "
|
|
49
|
+
source: "body" | "header" | "literal";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -133,8 +133,8 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
133
133
|
}) => Promise<{
|
|
134
134
|
createdAt: string;
|
|
135
135
|
userId: string;
|
|
136
|
-
tenantId: string;
|
|
137
136
|
projectId: string;
|
|
137
|
+
tenantId: string;
|
|
138
138
|
agentId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
@@ -13,8 +13,8 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
expiresAt: string | null;
|
|
16
|
-
tenantId: string;
|
|
17
16
|
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
18
|
agentId: string;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
@@ -27,8 +27,8 @@ 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
|
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
32
32
|
agentId: string;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
@@ -44,8 +44,8 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
46
|
expiresAt: string | null;
|
|
47
|
-
tenantId: string;
|
|
48
47
|
projectId: string;
|
|
48
|
+
tenantId: string;
|
|
49
49
|
agentId: string;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
@@ -71,8 +71,8 @@ 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
|
projectId: string;
|
|
75
|
+
tenantId: string;
|
|
76
76
|
agentId: string;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
@@ -12,8 +12,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
12
12
|
updatedAt: string;
|
|
13
13
|
description: string | null;
|
|
14
14
|
enabled: boolean;
|
|
15
|
-
tenantId: string | null;
|
|
16
15
|
projectId: string | null;
|
|
16
|
+
tenantId: string | null;
|
|
17
|
+
prompt: string | null;
|
|
17
18
|
config: {
|
|
18
19
|
type: "web_client";
|
|
19
20
|
webClient: {
|
|
@@ -44,7 +45,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
44
45
|
}[] | undefined;
|
|
45
46
|
};
|
|
46
47
|
};
|
|
47
|
-
prompt: string | null;
|
|
48
48
|
lastUsedAt: string | null;
|
|
49
49
|
defaultProjectId: string | null;
|
|
50
50
|
defaultAgentId: string | null;
|
|
@@ -81,8 +81,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
81
81
|
updatedAt: string;
|
|
82
82
|
description: string | null;
|
|
83
83
|
enabled: boolean;
|
|
84
|
-
tenantId: string | null;
|
|
85
84
|
projectId: string | null;
|
|
85
|
+
tenantId: string | null;
|
|
86
|
+
prompt: string | null;
|
|
86
87
|
config: {
|
|
87
88
|
type: "web_client";
|
|
88
89
|
webClient: {
|
|
@@ -113,7 +114,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
113
114
|
}[] | undefined;
|
|
114
115
|
};
|
|
115
116
|
};
|
|
116
|
-
prompt: string | null;
|
|
117
117
|
lastUsedAt: string | null;
|
|
118
118
|
defaultProjectId: string | null;
|
|
119
119
|
defaultAgentId: string | null;
|
|
@@ -26,14 +26,14 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
26
26
|
} | null;
|
|
27
27
|
userId: string | null;
|
|
28
28
|
metadata: ConversationMetadata | null;
|
|
29
|
-
tenantId: string;
|
|
30
29
|
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
31
|
properties: Record<string, unknown> | null;
|
|
32
32
|
title: string | null;
|
|
33
33
|
agentId: string | null;
|
|
34
|
+
userProperties: Record<string, unknown> | null;
|
|
34
35
|
activeSubAgentId: string;
|
|
35
36
|
lastContextResolution: string | null;
|
|
36
|
-
userProperties: Record<string, unknown> | null;
|
|
37
37
|
}>;
|
|
38
38
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -101,14 +101,14 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
101
101
|
} | null;
|
|
102
102
|
userId: string | null;
|
|
103
103
|
metadata: ConversationMetadata | null;
|
|
104
|
-
tenantId: string;
|
|
105
104
|
projectId: string;
|
|
105
|
+
tenantId: string;
|
|
106
106
|
properties: Record<string, unknown> | null;
|
|
107
107
|
title: string | null;
|
|
108
108
|
agentId: string | null;
|
|
109
|
+
userProperties: Record<string, unknown> | null;
|
|
109
110
|
activeSubAgentId: string;
|
|
110
111
|
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.
|
|
@@ -156,14 +156,14 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
156
156
|
} | null;
|
|
157
157
|
userId: string | null;
|
|
158
158
|
metadata: ConversationMetadata | null;
|
|
159
|
-
tenantId: string;
|
|
160
159
|
projectId: string;
|
|
160
|
+
tenantId: string;
|
|
161
161
|
properties: Record<string, unknown> | null;
|
|
162
162
|
title: string | null;
|
|
163
163
|
agentId: string | null;
|
|
164
|
+
userProperties: Record<string, unknown> | null;
|
|
164
165
|
activeSubAgentId: string;
|
|
165
166
|
lastContextResolution: string | null;
|
|
166
|
-
userProperties: Record<string, unknown> | null;
|
|
167
167
|
}>;
|
|
168
168
|
/**
|
|
169
169
|
* Extract text content from message content object
|
|
@@ -194,14 +194,14 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
194
194
|
} | null;
|
|
195
195
|
userId: string | null;
|
|
196
196
|
metadata: ConversationMetadata | null;
|
|
197
|
-
tenantId: string;
|
|
198
197
|
projectId: string;
|
|
198
|
+
tenantId: string;
|
|
199
199
|
properties: Record<string, unknown> | null;
|
|
200
200
|
title: string | null;
|
|
201
201
|
agentId: string | null;
|
|
202
|
+
userProperties: Record<string, unknown> | null;
|
|
202
203
|
activeSubAgentId: string;
|
|
203
204
|
lastContextResolution: string | null;
|
|
204
|
-
userProperties: Record<string, unknown> | null;
|
|
205
205
|
} | undefined>;
|
|
206
206
|
/**
|
|
207
207
|
* Set active agent for a conversation (upsert operation)
|
|
@@ -12,12 +12,12 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
metadata: Record<string, unknown> | null;
|
|
15
|
-
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
properties: Record<string, unknown> | null;
|
|
18
18
|
agentId: string | null;
|
|
19
|
-
userProperties: Record<string, unknown> | null;
|
|
20
19
|
conversationId: string | null;
|
|
20
|
+
userProperties: Record<string, unknown> | null;
|
|
21
21
|
messageId: string | null;
|
|
22
22
|
serverMetadata: {
|
|
23
23
|
[k: string]: unknown;
|
|
@@ -74,11 +74,11 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
|
|
|
74
74
|
id: string;
|
|
75
75
|
createdAt: string;
|
|
76
76
|
updatedAt: string;
|
|
77
|
-
tenantId: string;
|
|
78
77
|
projectId: string;
|
|
78
|
+
tenantId: string;
|
|
79
|
+
details: string | null;
|
|
79
80
|
conversationId: string;
|
|
80
81
|
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: {
|
|
@@ -104,11 +104,11 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
104
104
|
id: string;
|
|
105
105
|
createdAt: string;
|
|
106
106
|
updatedAt: string;
|
|
107
|
-
tenantId: string;
|
|
108
107
|
projectId: string;
|
|
108
|
+
tenantId: string;
|
|
109
|
+
details: string | null;
|
|
109
110
|
conversationId: string;
|
|
110
111
|
messageId: string | null;
|
|
111
|
-
details: string | null;
|
|
112
112
|
}>;
|
|
113
113
|
//#endregion
|
|
114
114
|
export { createFeedback, createFeedbackBulk, deleteFeedback, getFeedbackById, getFeedbackByIds, listFeedback, listFeedbackByConversation, updateFeedback };
|
|
@@ -15,23 +15,23 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
metadata: MessageMetadata | null;
|
|
17
17
|
role: string;
|
|
18
|
-
tenantId: string;
|
|
19
|
-
projectId: string;
|
|
20
18
|
content: MessageContent;
|
|
19
|
+
projectId: string;
|
|
20
|
+
tenantId: string;
|
|
21
21
|
properties: Record<string, unknown> | null;
|
|
22
|
-
userProperties: Record<string, unknown> | null;
|
|
23
|
-
conversationId: string;
|
|
24
22
|
fromSubAgentId: string | null;
|
|
25
23
|
toSubAgentId: string | null;
|
|
26
24
|
fromExternalAgentId: string | null;
|
|
27
25
|
toExternalAgentId: string | null;
|
|
26
|
+
taskId: string | null;
|
|
27
|
+
a2aTaskId: string | null;
|
|
28
|
+
conversationId: string;
|
|
29
|
+
userProperties: Record<string, unknown> | null;
|
|
28
30
|
fromTeamAgentId: string | null;
|
|
29
31
|
toTeamAgentId: string | null;
|
|
30
32
|
visibility: string;
|
|
31
33
|
messageType: string;
|
|
32
|
-
taskId: string | null;
|
|
33
34
|
parentMessageId: string | null;
|
|
34
|
-
a2aTaskId: string | null;
|
|
35
35
|
a2aSessionId: string | null;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -188,23 +188,23 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
188
188
|
updatedAt: string;
|
|
189
189
|
metadata: MessageMetadata | null;
|
|
190
190
|
role: string;
|
|
191
|
-
tenantId: string;
|
|
192
|
-
projectId: string;
|
|
193
191
|
content: MessageContent;
|
|
192
|
+
projectId: string;
|
|
193
|
+
tenantId: string;
|
|
194
194
|
properties: Record<string, unknown> | null;
|
|
195
|
-
userProperties: Record<string, unknown> | null;
|
|
196
|
-
conversationId: string;
|
|
197
195
|
fromSubAgentId: string | null;
|
|
198
196
|
toSubAgentId: string | null;
|
|
199
197
|
fromExternalAgentId: string | null;
|
|
200
198
|
toExternalAgentId: string | null;
|
|
199
|
+
taskId: string | null;
|
|
200
|
+
a2aTaskId: string | null;
|
|
201
|
+
conversationId: string;
|
|
202
|
+
userProperties: Record<string, unknown> | null;
|
|
201
203
|
fromTeamAgentId: string | null;
|
|
202
204
|
toTeamAgentId: string | null;
|
|
203
205
|
visibility: string;
|
|
204
206
|
messageType: string;
|
|
205
|
-
taskId: string | null;
|
|
206
207
|
parentMessageId: string | null;
|
|
207
|
-
a2aTaskId: string | null;
|
|
208
208
|
a2aSessionId: string | null;
|
|
209
209
|
}>;
|
|
210
210
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -245,23 +245,23 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
245
245
|
updatedAt: string;
|
|
246
246
|
metadata: MessageMetadata | null;
|
|
247
247
|
role: string;
|
|
248
|
-
tenantId: string;
|
|
249
|
-
projectId: string;
|
|
250
248
|
content: MessageContent;
|
|
249
|
+
projectId: string;
|
|
250
|
+
tenantId: string;
|
|
251
251
|
properties: Record<string, unknown> | null;
|
|
252
|
-
userProperties: Record<string, unknown> | null;
|
|
253
|
-
conversationId: string;
|
|
254
252
|
fromSubAgentId: string | null;
|
|
255
253
|
toSubAgentId: string | null;
|
|
256
254
|
fromExternalAgentId: string | null;
|
|
257
255
|
toExternalAgentId: string | null;
|
|
256
|
+
taskId: string | null;
|
|
257
|
+
a2aTaskId: string | null;
|
|
258
|
+
conversationId: string;
|
|
259
|
+
userProperties: Record<string, unknown> | null;
|
|
258
260
|
fromTeamAgentId: string | null;
|
|
259
261
|
toTeamAgentId: string | null;
|
|
260
262
|
visibility: string;
|
|
261
263
|
messageType: string;
|
|
262
|
-
taskId: string | null;
|
|
263
264
|
parentMessageId: string | null;
|
|
264
|
-
a2aTaskId: string | null;
|
|
265
265
|
a2aSessionId: string | null;
|
|
266
266
|
}>;
|
|
267
267
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|
|
43
|
-
status: "pending" | "
|
|
43
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
44
44
|
scheduledFor: string;
|
|
45
45
|
startedAt: string | null;
|
|
46
46
|
completedAt: string | null;
|
|
@@ -199,7 +199,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
|
|
|
199
199
|
name: string;
|
|
200
200
|
hash: string;
|
|
201
201
|
} | null;
|
|
202
|
-
status: "pending" | "
|
|
202
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
203
203
|
scheduledFor: string;
|
|
204
204
|
startedAt: string | null;
|
|
205
205
|
completedAt: string | null;
|
|
@@ -239,7 +239,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
|
|
|
239
239
|
name: string;
|
|
240
240
|
hash: string;
|
|
241
241
|
} | null;
|
|
242
|
-
status: "pending" | "
|
|
242
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
243
243
|
scheduledFor: string;
|
|
244
244
|
startedAt: string | null;
|
|
245
245
|
completedAt: string | null;
|
|
@@ -292,7 +292,7 @@ declare const listScheduledTriggerInvocationsByTriggerId: (db: AgentsRunDatabase
|
|
|
292
292
|
name: string;
|
|
293
293
|
hash: string;
|
|
294
294
|
} | null;
|
|
295
|
-
status: "pending" | "
|
|
295
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
296
296
|
scheduledFor: string;
|
|
297
297
|
startedAt: string | null;
|
|
298
298
|
completedAt: string | null;
|
|
@@ -320,7 +320,7 @@ declare const listScheduledTriggerInvocationsByDatasetRunId: (db: AgentsRunDatab
|
|
|
320
320
|
name: string;
|
|
321
321
|
hash: string;
|
|
322
322
|
} | null;
|
|
323
|
-
status: "pending" | "
|
|
323
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
324
324
|
scheduledFor: string;
|
|
325
325
|
startedAt: string | null;
|
|
326
326
|
completedAt: string | null;
|
|
@@ -17,8 +17,8 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
17
17
|
} | null;
|
|
18
18
|
metadata: TaskMetadataConfig | null;
|
|
19
19
|
status: string;
|
|
20
|
-
tenantId: string;
|
|
21
20
|
projectId: string;
|
|
21
|
+
tenantId: string;
|
|
22
22
|
agentId: string;
|
|
23
23
|
subAgentId: string;
|
|
24
24
|
contextId: string;
|