@inkeep/agents-core 0.73.5 → 0.74.0
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/init.js +16 -1
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/data-access/index.d.ts +2 -2
- package/dist/data-access/index.js +2 -2
- package/dist/data-access/manage/agentFull.d.ts +10 -3
- package/dist/data-access/manage/agentFull.js +43 -7
- package/dist/data-access/manage/agents.d.ts +55 -46
- package/dist/data-access/manage/agents.js +1 -0
- package/dist/data-access/manage/artifactComponents.d.ts +16 -16
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +8 -8
- package/dist/data-access/manage/functionTools.d.ts +18 -18
- package/dist/data-access/manage/skills.d.ts +12 -12
- 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 +72 -18
- package/dist/data-access/manage/subAgents.js +2 -1
- package/dist/data-access/manage/tools.d.ts +27 -27
- package/dist/data-access/manage/triggers.d.ts +5 -5
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +10 -10
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/events.d.ts +5 -5
- package/dist/data-access/runtime/feedback.d.ts +8 -8
- 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 +417 -382
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +407 -407
- package/dist/evaluation/index.d.ts +3 -0
- package/dist/evaluation/index.js +3 -0
- package/dist/evaluation/pass-criteria-evaluator.d.ts +12 -0
- package/dist/evaluation/pass-criteria-evaluator.js +64 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +4 -3
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +35 -35
- package/dist/validation/schemas.d.ts +1975 -1338
- package/dist/validation/schemas.js +17 -3
- package/drizzle/manage/0021_furry_warlock.sql +2 -0
- package/drizzle/manage/meta/0021_snapshot.json +4098 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +5 -1
|
@@ -20,13 +20,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
|
|
23
|
+
description: string | null;
|
|
24
|
+
tenantId: string;
|
|
25
|
+
projectId: string;
|
|
24
26
|
name: string;
|
|
27
|
+
id: string;
|
|
25
28
|
createdAt: string;
|
|
26
29
|
updatedAt: string;
|
|
27
|
-
description: string | null;
|
|
28
|
-
projectId: string;
|
|
29
|
-
tenantId: string;
|
|
30
30
|
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
@@ -78,13 +78,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
|
|
81
|
+
description: string | null;
|
|
82
|
+
tenantId: string;
|
|
83
|
+
projectId: string;
|
|
82
84
|
name: string;
|
|
85
|
+
id: string;
|
|
83
86
|
createdAt: string;
|
|
84
87
|
updatedAt: string;
|
|
85
|
-
description: string | null;
|
|
86
|
-
projectId: string;
|
|
87
|
-
tenantId: string;
|
|
88
88
|
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
@@ -135,15 +135,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
+
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
140
|
+
agentId: string;
|
|
141
|
+
subAgentId: string;
|
|
142
|
+
toolId: string;
|
|
138
143
|
id: string;
|
|
139
144
|
createdAt: string;
|
|
140
145
|
updatedAt: string;
|
|
141
|
-
agentId: string;
|
|
142
|
-
projectId: string;
|
|
143
|
-
tenantId: string;
|
|
144
146
|
headers: Record<string, string> | null;
|
|
145
|
-
toolId: string;
|
|
146
|
-
subAgentId: string;
|
|
147
147
|
toolPolicies: Record<string, {
|
|
148
148
|
needsApproval?: boolean;
|
|
149
149
|
}> | null;
|
|
@@ -154,15 +154,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
+
tenantId: string;
|
|
158
|
+
projectId: string;
|
|
159
|
+
agentId: string;
|
|
160
|
+
subAgentId: string;
|
|
161
|
+
toolId: string;
|
|
157
162
|
id: string;
|
|
158
163
|
createdAt: string;
|
|
159
164
|
updatedAt: string;
|
|
160
|
-
agentId: string;
|
|
161
|
-
projectId: string;
|
|
162
|
-
tenantId: string;
|
|
163
165
|
headers: Record<string, string> | null;
|
|
164
|
-
toolId: string;
|
|
165
|
-
subAgentId: string;
|
|
166
166
|
toolPolicies: Record<string, {
|
|
167
167
|
needsApproval?: boolean;
|
|
168
168
|
}> | null;
|
|
@@ -182,15 +182,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
+
tenantId: string;
|
|
186
|
+
projectId: string;
|
|
187
|
+
agentId: string;
|
|
188
|
+
subAgentId: string;
|
|
189
|
+
toolId: string;
|
|
185
190
|
id: string;
|
|
186
191
|
createdAt: string;
|
|
187
192
|
updatedAt: string;
|
|
188
|
-
agentId: string;
|
|
189
|
-
projectId: string;
|
|
190
|
-
tenantId: string;
|
|
191
193
|
headers: Record<string, string> | null;
|
|
192
|
-
toolId: string;
|
|
193
|
-
subAgentId: string;
|
|
194
194
|
toolPolicies: Record<string, {
|
|
195
195
|
needsApproval?: boolean;
|
|
196
196
|
}> | null;
|
|
@@ -202,13 +202,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
|
|
205
|
+
description: string | null;
|
|
206
|
+
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
206
208
|
name: string;
|
|
209
|
+
id: string;
|
|
207
210
|
createdAt: string;
|
|
208
211
|
updatedAt: string;
|
|
209
|
-
description: string | null;
|
|
210
|
-
projectId: string;
|
|
211
|
-
tenantId: string;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
@@ -37,8 +37,8 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
37
37
|
authentication: unknown;
|
|
38
38
|
signingSecretCredentialReferenceId: string | null;
|
|
39
39
|
signatureVerification: {
|
|
40
|
-
algorithm: "
|
|
41
|
-
encoding: "
|
|
40
|
+
algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
|
|
41
|
+
encoding: "base64" | "hex";
|
|
42
42
|
signature: {
|
|
43
43
|
source: "query" | "body" | "header";
|
|
44
44
|
key: string;
|
|
@@ -131,11 +131,11 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
131
131
|
triggerId: string;
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
|
+
tenantId: string;
|
|
135
|
+
projectId: string;
|
|
136
|
+
agentId: string;
|
|
134
137
|
createdAt: string;
|
|
135
138
|
userId: string;
|
|
136
|
-
agentId: string;
|
|
137
|
-
projectId: string;
|
|
138
|
-
tenantId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
141
141
|
declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -8,28 +8,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
13
|
+
agentId: string;
|
|
12
14
|
name: string | null;
|
|
15
|
+
id: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
18
|
expiresAt: string | null;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
22
22
|
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
|
|
25
|
+
tenantId: string;
|
|
26
|
+
projectId: string;
|
|
27
|
+
agentId: string;
|
|
26
28
|
name: string | null;
|
|
29
|
+
id: string;
|
|
27
30
|
createdAt: string;
|
|
28
31
|
updatedAt: string;
|
|
29
32
|
expiresAt: string | null;
|
|
30
|
-
agentId: string;
|
|
31
|
-
projectId: string;
|
|
32
|
-
tenantId: string;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -39,14 +39,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
|
|
42
|
+
tenantId: string;
|
|
43
|
+
projectId: string;
|
|
44
|
+
agentId: string;
|
|
43
45
|
name: string | null;
|
|
46
|
+
id: string;
|
|
44
47
|
createdAt: string;
|
|
45
48
|
updatedAt: string;
|
|
46
49
|
expiresAt: string | null;
|
|
47
|
-
agentId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -66,14 +66,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
-
|
|
69
|
+
tenantId: string;
|
|
70
|
+
projectId: string;
|
|
71
|
+
agentId: string;
|
|
70
72
|
name: string | null;
|
|
73
|
+
id: string;
|
|
71
74
|
createdAt: string;
|
|
72
75
|
updatedAt: string;
|
|
73
76
|
expiresAt: string | null;
|
|
74
|
-
agentId: string;
|
|
75
|
-
projectId: string;
|
|
76
|
-
tenantId: string;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -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
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
createdAt: string;
|
|
11
|
-
updatedAt: string;
|
|
12
8
|
type: AppType;
|
|
13
9
|
description: string | null;
|
|
14
|
-
projectId: string | null;
|
|
15
10
|
tenantId: string | null;
|
|
11
|
+
projectId: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
id: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
prompt: string | null;
|
|
18
18
|
config: {
|
|
@@ -74,14 +74,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
74
74
|
};
|
|
75
75
|
}>;
|
|
76
76
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
77
|
-
id: string;
|
|
78
|
-
name: string;
|
|
79
|
-
createdAt: string;
|
|
80
|
-
updatedAt: string;
|
|
81
77
|
type: AppType;
|
|
82
78
|
description: string | null;
|
|
83
|
-
projectId: string | null;
|
|
84
79
|
tenantId: string | null;
|
|
80
|
+
projectId: string | null;
|
|
81
|
+
name: string;
|
|
82
|
+
id: string;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
85
|
enabled: boolean;
|
|
86
86
|
prompt: string | null;
|
|
87
87
|
config: {
|
|
@@ -15,6 +15,11 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
+
properties: Record<string, unknown> | null;
|
|
19
|
+
title: string | null;
|
|
20
|
+
tenantId: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
agentId: string | null;
|
|
18
23
|
id: string;
|
|
19
24
|
createdAt: string;
|
|
20
25
|
updatedAt: string;
|
|
@@ -25,11 +30,6 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
25
30
|
} | null;
|
|
26
31
|
userId: string | null;
|
|
27
32
|
metadata: ConversationMetadata | null;
|
|
28
|
-
properties: Record<string, unknown> | null;
|
|
29
|
-
title: string | null;
|
|
30
|
-
agentId: string | null;
|
|
31
|
-
projectId: string;
|
|
32
|
-
tenantId: string;
|
|
33
33
|
userProperties: Record<string, unknown> | null;
|
|
34
34
|
activeSubAgentId: string;
|
|
35
35
|
lastContextResolution: string | null;
|
|
@@ -90,6 +90,11 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
90
90
|
scopes: ProjectScopeConfig;
|
|
91
91
|
conversationId: string;
|
|
92
92
|
}) => Promise<{
|
|
93
|
+
properties: Record<string, unknown> | null;
|
|
94
|
+
title: string | null;
|
|
95
|
+
tenantId: string;
|
|
96
|
+
projectId: string;
|
|
97
|
+
agentId: string | null;
|
|
93
98
|
id: string;
|
|
94
99
|
createdAt: string;
|
|
95
100
|
updatedAt: string;
|
|
@@ -100,11 +105,6 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
100
105
|
} | null;
|
|
101
106
|
userId: string | null;
|
|
102
107
|
metadata: ConversationMetadata | null;
|
|
103
|
-
properties: Record<string, unknown> | null;
|
|
104
|
-
title: string | null;
|
|
105
|
-
agentId: string | null;
|
|
106
|
-
projectId: string;
|
|
107
|
-
tenantId: string;
|
|
108
108
|
userProperties: Record<string, unknown> | null;
|
|
109
109
|
activeSubAgentId: string;
|
|
110
110
|
lastContextResolution: string | null;
|
|
@@ -130,6 +130,11 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
130
130
|
userProperties?: Record<string, unknown> | null | undefined;
|
|
131
131
|
properties?: Record<string, unknown> | null | undefined;
|
|
132
132
|
} | {
|
|
133
|
+
properties: Record<string, unknown> | null;
|
|
134
|
+
title: string | null;
|
|
135
|
+
tenantId: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
agentId: string | null;
|
|
133
138
|
id: string;
|
|
134
139
|
createdAt: string;
|
|
135
140
|
updatedAt: string;
|
|
@@ -140,11 +145,6 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
140
145
|
} | null;
|
|
141
146
|
userId: string | null;
|
|
142
147
|
metadata: ConversationMetadata | null;
|
|
143
|
-
properties: Record<string, unknown> | null;
|
|
144
|
-
title: string | null;
|
|
145
|
-
agentId: string | null;
|
|
146
|
-
projectId: string;
|
|
147
|
-
tenantId: string;
|
|
148
148
|
userProperties: Record<string, unknown> | null;
|
|
149
149
|
activeSubAgentId: string;
|
|
150
150
|
lastContextResolution: string | null;
|
|
@@ -164,6 +164,11 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
164
164
|
scopes: ProjectScopeConfig;
|
|
165
165
|
conversationId: string;
|
|
166
166
|
}) => Promise<{
|
|
167
|
+
properties: Record<string, unknown> | null;
|
|
168
|
+
title: string | null;
|
|
169
|
+
tenantId: string;
|
|
170
|
+
projectId: string;
|
|
171
|
+
agentId: string | null;
|
|
167
172
|
id: string;
|
|
168
173
|
createdAt: string;
|
|
169
174
|
updatedAt: string;
|
|
@@ -174,11 +179,6 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
174
179
|
} | null;
|
|
175
180
|
userId: string | null;
|
|
176
181
|
metadata: ConversationMetadata | null;
|
|
177
|
-
properties: Record<string, unknown> | null;
|
|
178
|
-
title: string | null;
|
|
179
|
-
agentId: string | null;
|
|
180
|
-
projectId: string;
|
|
181
|
-
tenantId: string;
|
|
182
182
|
userProperties: Record<string, unknown> | null;
|
|
183
183
|
activeSubAgentId: string;
|
|
184
184
|
lastContextResolution: string | null;
|
|
@@ -7,15 +7,15 @@ import { EventInsert } from "../../types/entities.js";
|
|
|
7
7
|
//#region src/data-access/runtime/events.d.ts
|
|
8
8
|
declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
|
|
9
9
|
row: {
|
|
10
|
+
type: string;
|
|
11
|
+
properties: Record<string, unknown> | null;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
agentId: string | null;
|
|
10
15
|
id: string;
|
|
11
16
|
createdAt: string;
|
|
12
17
|
updatedAt: string;
|
|
13
|
-
type: string;
|
|
14
18
|
metadata: Record<string, unknown> | null;
|
|
15
|
-
properties: Record<string, unknown> | null;
|
|
16
|
-
agentId: string | null;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
19
|
conversationId: string | null;
|
|
20
20
|
userProperties: Record<string, unknown> | null;
|
|
21
21
|
messageId: string | null;
|
|
@@ -70,15 +70,15 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
70
70
|
agentId: string | null;
|
|
71
71
|
}[]>;
|
|
72
72
|
declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
|
|
73
|
+
type: "positive" | "negative";
|
|
74
|
+
tenantId: string;
|
|
75
|
+
projectId: string;
|
|
73
76
|
id: string;
|
|
74
77
|
createdAt: string;
|
|
75
78
|
updatedAt: string;
|
|
76
|
-
|
|
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: {
|
|
@@ -100,15 +100,15 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
100
100
|
scopes: ProjectScopeConfig;
|
|
101
101
|
feedbackId: string;
|
|
102
102
|
}) => Promise<{
|
|
103
|
+
type: "positive" | "negative";
|
|
104
|
+
tenantId: string;
|
|
105
|
+
projectId: string;
|
|
103
106
|
id: string;
|
|
104
107
|
createdAt: string;
|
|
105
108
|
updatedAt: string;
|
|
106
|
-
|
|
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 };
|
|
@@ -10,28 +10,28 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
properties: Record<string, unknown> | null;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
13
16
|
id: string;
|
|
14
17
|
createdAt: string;
|
|
15
18
|
updatedAt: string;
|
|
16
19
|
metadata: MessageMetadata | null;
|
|
17
20
|
role: string;
|
|
18
|
-
properties: Record<string, unknown> | null;
|
|
19
|
-
projectId: string;
|
|
20
|
-
tenantId: string;
|
|
21
21
|
content: MessageContent;
|
|
22
|
-
conversationId: string;
|
|
23
|
-
userProperties: Record<string, unknown> | null;
|
|
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: {
|
|
@@ -154,28 +154,28 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
154
154
|
scopes: ProjectScopeConfig;
|
|
155
155
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
156
156
|
}) => Promise<{
|
|
157
|
+
properties: Record<string, unknown> | null;
|
|
158
|
+
tenantId: string;
|
|
159
|
+
projectId: string;
|
|
157
160
|
id: string;
|
|
158
161
|
createdAt: string;
|
|
159
162
|
updatedAt: string;
|
|
160
163
|
metadata: MessageMetadata | null;
|
|
161
164
|
role: string;
|
|
162
|
-
properties: Record<string, unknown> | null;
|
|
163
|
-
projectId: string;
|
|
164
|
-
tenantId: string;
|
|
165
165
|
content: MessageContent;
|
|
166
|
-
conversationId: string;
|
|
167
|
-
userProperties: Record<string, unknown> | null;
|
|
168
166
|
fromSubAgentId: string | null;
|
|
169
167
|
toSubAgentId: string | null;
|
|
170
168
|
fromExternalAgentId: string | null;
|
|
171
169
|
toExternalAgentId: string | null;
|
|
170
|
+
taskId: string | null;
|
|
171
|
+
a2aTaskId: string | null;
|
|
172
|
+
conversationId: string;
|
|
173
|
+
userProperties: Record<string, unknown> | null;
|
|
172
174
|
fromTeamAgentId: string | null;
|
|
173
175
|
toTeamAgentId: string | null;
|
|
174
176
|
visibility: string;
|
|
175
177
|
messageType: string;
|
|
176
|
-
taskId: string | null;
|
|
177
178
|
parentMessageId: string | null;
|
|
178
|
-
a2aTaskId: string | null;
|
|
179
179
|
a2aSessionId: string | null;
|
|
180
180
|
}>;
|
|
181
181
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -211,28 +211,28 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
211
211
|
scopes: ProjectScopeConfig;
|
|
212
212
|
messageId: string;
|
|
213
213
|
}) => Promise<{
|
|
214
|
+
properties: Record<string, unknown> | null;
|
|
215
|
+
tenantId: string;
|
|
216
|
+
projectId: string;
|
|
214
217
|
id: string;
|
|
215
218
|
createdAt: string;
|
|
216
219
|
updatedAt: string;
|
|
217
220
|
metadata: MessageMetadata | null;
|
|
218
221
|
role: string;
|
|
219
|
-
properties: Record<string, unknown> | null;
|
|
220
|
-
projectId: string;
|
|
221
|
-
tenantId: string;
|
|
222
222
|
content: MessageContent;
|
|
223
|
-
conversationId: string;
|
|
224
|
-
userProperties: Record<string, unknown> | null;
|
|
225
223
|
fromSubAgentId: string | null;
|
|
226
224
|
toSubAgentId: string | null;
|
|
227
225
|
fromExternalAgentId: string | null;
|
|
228
226
|
toExternalAgentId: string | null;
|
|
227
|
+
taskId: string | null;
|
|
228
|
+
a2aTaskId: string | null;
|
|
229
|
+
conversationId: string;
|
|
230
|
+
userProperties: Record<string, unknown> | null;
|
|
229
231
|
fromTeamAgentId: string | null;
|
|
230
232
|
toTeamAgentId: string | null;
|
|
231
233
|
visibility: string;
|
|
232
234
|
messageType: string;
|
|
233
|
-
taskId: string | null;
|
|
234
235
|
parentMessageId: string | null;
|
|
235
|
-
a2aTaskId: string | null;
|
|
236
236
|
a2aSessionId: string | null;
|
|
237
237
|
}>;
|
|
238
238
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -15,9 +15,9 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
|
|
|
15
15
|
scheduledTriggerId: string;
|
|
16
16
|
userId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
+
tenantId: string;
|
|
18
19
|
createdAt: string;
|
|
19
20
|
userId: string;
|
|
20
|
-
tenantId: string;
|
|
21
21
|
scheduledTriggerId: string;
|
|
22
22
|
}>;
|
|
23
23
|
declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -7,6 +7,10 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
|
|
8
8
|
//#region src/data-access/runtime/tasks.d.ts
|
|
9
9
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
10
|
+
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
12
|
+
agentId: string;
|
|
13
|
+
subAgentId: string;
|
|
10
14
|
id: string;
|
|
11
15
|
createdAt: string;
|
|
12
16
|
updatedAt: string;
|
|
@@ -17,11 +21,7 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
17
21
|
} | null;
|
|
18
22
|
metadata: TaskMetadataConfig | null;
|
|
19
23
|
status: string;
|
|
20
|
-
agentId: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
tenantId: string;
|
|
23
24
|
contextId: string;
|
|
24
|
-
subAgentId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
27
27
|
id: string;
|