@inkeep/agents-core 0.75.0 → 0.75.4
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-validation-schemas.d.ts +154 -154
- 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/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -2
- package/dist/constants/otel-attributes.d.ts +5 -3
- package/dist/constants/otel-attributes.js +5 -2
- package/dist/data-access/manage/agents.d.ts +41 -41
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- 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 +16 -16
- package/dist/data-access/manage/skills.d.ts +11 -11
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- 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 +7 -7
- package/dist/data-access/manage/webhookDestinations.js +18 -14
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +11 -11
- 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 +6 -6
- package/dist/data-access/runtime/messages.d.ts +24 -24
- 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 +488 -488
- package/dist/db/runtime/runtime-schema.d.ts +449 -449
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +39 -39
- package/dist/validation/schemas.d.ts +2367 -2367
- package/dist/validation/schemas.js +1 -1
- package/package.json +1 -1
|
@@ -21,13 +21,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
id: string;
|
|
24
|
-
tenantId: string;
|
|
25
|
-
createdAt: string;
|
|
26
24
|
name: string;
|
|
27
|
-
|
|
28
|
-
projectId: string;
|
|
25
|
+
createdAt: string;
|
|
29
26
|
updatedAt: string;
|
|
27
|
+
description: string | null;
|
|
30
28
|
headers: Record<string, string> | null;
|
|
29
|
+
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
@@ -79,13 +79,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
81
|
id: string;
|
|
82
|
-
tenantId: string;
|
|
83
|
-
createdAt: string;
|
|
84
82
|
name: string;
|
|
85
|
-
|
|
86
|
-
projectId: string;
|
|
83
|
+
createdAt: string;
|
|
87
84
|
updatedAt: string;
|
|
85
|
+
description: string | null;
|
|
88
86
|
headers: Record<string, string> | null;
|
|
87
|
+
projectId: string;
|
|
88
|
+
tenantId: string;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
@@ -136,14 +136,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
138
|
id: string;
|
|
139
|
-
tenantId: string;
|
|
140
139
|
createdAt: string;
|
|
141
|
-
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
headers: Record<string, string> | null;
|
|
142
142
|
agentId: string;
|
|
143
|
+
projectId: string;
|
|
144
|
+
tenantId: string;
|
|
143
145
|
subAgentId: string;
|
|
144
146
|
toolId: string;
|
|
145
|
-
updatedAt: string;
|
|
146
|
-
headers: Record<string, string> | null;
|
|
147
147
|
toolPolicies: Record<string, {
|
|
148
148
|
needsApproval?: boolean;
|
|
149
149
|
}> | null;
|
|
@@ -155,14 +155,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
-
tenantId: string;
|
|
159
158
|
createdAt: string;
|
|
160
|
-
|
|
159
|
+
updatedAt: string;
|
|
160
|
+
headers: Record<string, string> | null;
|
|
161
161
|
agentId: string;
|
|
162
|
+
projectId: string;
|
|
163
|
+
tenantId: string;
|
|
162
164
|
subAgentId: string;
|
|
163
165
|
toolId: string;
|
|
164
|
-
updatedAt: string;
|
|
165
|
-
headers: Record<string, string> | null;
|
|
166
166
|
toolPolicies: Record<string, {
|
|
167
167
|
needsApproval?: boolean;
|
|
168
168
|
}> | null;
|
|
@@ -183,14 +183,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
185
|
id: string;
|
|
186
|
-
tenantId: string;
|
|
187
186
|
createdAt: string;
|
|
188
|
-
|
|
187
|
+
updatedAt: string;
|
|
188
|
+
headers: Record<string, string> | null;
|
|
189
189
|
agentId: string;
|
|
190
|
+
projectId: string;
|
|
191
|
+
tenantId: string;
|
|
190
192
|
subAgentId: string;
|
|
191
193
|
toolId: string;
|
|
192
|
-
updatedAt: string;
|
|
193
|
-
headers: Record<string, string> | null;
|
|
194
194
|
toolPolicies: Record<string, {
|
|
195
195
|
needsApproval?: boolean;
|
|
196
196
|
}> | null;
|
|
@@ -203,13 +203,13 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
205
|
id: string;
|
|
206
|
-
tenantId: string;
|
|
207
|
-
createdAt: string;
|
|
208
206
|
name: string;
|
|
209
|
-
|
|
210
|
-
projectId: string;
|
|
207
|
+
createdAt: string;
|
|
211
208
|
updatedAt: string;
|
|
209
|
+
description: string | null;
|
|
212
210
|
headers: Record<string, string> | null;
|
|
211
|
+
projectId: string;
|
|
212
|
+
tenantId: string;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
@@ -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: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
|
|
41
|
+
encoding: "base64" | "hex";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "query" | "
|
|
43
|
+
source: "query" | "body" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -131,11 +131,11 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
131
131
|
triggerId: string;
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
|
-
tenantId: string;
|
|
135
134
|
createdAt: string;
|
|
136
|
-
projectId: string;
|
|
137
|
-
agentId: string;
|
|
138
135
|
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: {
|
|
@@ -63,23 +63,27 @@ const listWebhookDestinationsPaginated = (db) => async (params) => {
|
|
|
63
63
|
};
|
|
64
64
|
const listWebhookDestinationsForEvent = (db) => async (params) => {
|
|
65
65
|
const { scopes, eventType, agentId } = params;
|
|
66
|
-
const
|
|
67
|
-
|
|
66
|
+
const filtered = (await db.select({
|
|
67
|
+
dest: webhookDestinations,
|
|
68
|
+
scopedAgentId: webhookDestinationAgents.agentId
|
|
69
|
+
}).from(webhookDestinations).leftJoin(webhookDestinationAgents, and(eq(webhookDestinationAgents.tenantId, webhookDestinations.tenantId), eq(webhookDestinationAgents.projectId, webhookDestinations.projectId), eq(webhookDestinationAgents.webhookDestinationId, webhookDestinations.id))).where(and(projectScopedWhere(webhookDestinations, scopes), eq(webhookDestinations.enabled, true)))).filter((row) => {
|
|
70
|
+
const types = row.dest.eventTypes;
|
|
68
71
|
return Array.isArray(types) && types.includes(eventType);
|
|
69
72
|
});
|
|
70
|
-
if (
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
if (filtered.length === 0) return [];
|
|
74
|
+
const destMap = /* @__PURE__ */ new Map();
|
|
75
|
+
for (const row of filtered) {
|
|
76
|
+
const existing = destMap.get(row.dest.id);
|
|
77
|
+
if (existing) {
|
|
78
|
+
if (row.scopedAgentId) existing.agents.push(row.scopedAgentId);
|
|
79
|
+
} else destMap.set(row.dest.id, {
|
|
80
|
+
dest: row.dest,
|
|
81
|
+
agents: row.scopedAgentId ? [row.scopedAgentId] : []
|
|
82
|
+
});
|
|
78
83
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
});
|
|
84
|
+
const results = [];
|
|
85
|
+
for (const { dest, agents } of destMap.values()) if (agents.length === 0 || agents.includes(agentId)) results.push(dest);
|
|
86
|
+
return results;
|
|
83
87
|
};
|
|
84
88
|
const createWebhookDestination = (db) => async (params) => {
|
|
85
89
|
return (await db.insert(webhookDestinations).values(params).returning())[0];
|
|
@@ -9,13 +9,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
tenantId: string;
|
|
13
|
-
createdAt: string;
|
|
14
12
|
name: string | null;
|
|
15
|
-
|
|
16
|
-
agentId: string;
|
|
13
|
+
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
18
15
|
expiresAt: string | null;
|
|
16
|
+
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: 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
|
-
tenantId: string;
|
|
27
|
-
createdAt: string;
|
|
28
26
|
name: string | null;
|
|
29
|
-
|
|
30
|
-
agentId: string;
|
|
27
|
+
createdAt: string;
|
|
31
28
|
updatedAt: string;
|
|
32
29
|
expiresAt: string | null;
|
|
30
|
+
agentId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
tenantId: 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
|
-
tenantId: string;
|
|
44
|
-
createdAt: string;
|
|
45
43
|
name: string | null;
|
|
46
|
-
|
|
47
|
-
agentId: string;
|
|
44
|
+
createdAt: string;
|
|
48
45
|
updatedAt: string;
|
|
49
46
|
expiresAt: string | null;
|
|
47
|
+
agentId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
tenantId: 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
|
-
tenantId: string;
|
|
71
|
-
createdAt: string;
|
|
72
70
|
name: string | null;
|
|
73
|
-
|
|
74
|
-
agentId: string;
|
|
71
|
+
createdAt: string;
|
|
75
72
|
updatedAt: string;
|
|
76
73
|
expiresAt: string | null;
|
|
74
|
+
agentId: string;
|
|
75
|
+
projectId: string;
|
|
76
|
+
tenantId: string;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -7,14 +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
|
-
tenantId: string | null;
|
|
11
|
-
createdAt: string;
|
|
12
10
|
name: string;
|
|
13
|
-
|
|
14
|
-
projectId: string | null;
|
|
11
|
+
createdAt: string;
|
|
15
12
|
updatedAt: string;
|
|
13
|
+
description: string | null;
|
|
16
14
|
enabled: boolean;
|
|
17
15
|
prompt: string | null;
|
|
16
|
+
projectId: string | null;
|
|
17
|
+
tenantId: string | null;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
20
20
|
webClient: {
|
|
@@ -22,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
22
22
|
publicKeys: {
|
|
23
23
|
kid: string;
|
|
24
24
|
publicKey: string;
|
|
25
|
-
algorithm: "
|
|
25
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
26
26
|
addedAt: string;
|
|
27
27
|
}[];
|
|
28
28
|
allowAnonymous: boolean;
|
|
@@ -76,14 +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
|
-
tenantId: string | null;
|
|
80
|
-
createdAt: string;
|
|
81
79
|
name: string;
|
|
82
|
-
|
|
83
|
-
projectId: string | null;
|
|
80
|
+
createdAt: string;
|
|
84
81
|
updatedAt: string;
|
|
82
|
+
description: string | null;
|
|
85
83
|
enabled: boolean;
|
|
86
84
|
prompt: string | null;
|
|
85
|
+
projectId: string | null;
|
|
86
|
+
tenantId: string | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "web_client";
|
|
89
89
|
webClient: {
|
|
@@ -91,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
91
91
|
publicKeys: {
|
|
92
92
|
kid: string;
|
|
93
93
|
publicKey: string;
|
|
94
|
-
algorithm: "
|
|
94
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
95
95
|
addedAt: string;
|
|
96
96
|
}[];
|
|
97
97
|
allowAnonymous: boolean;
|
|
@@ -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: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
178
178
|
addedAt: string;
|
|
179
179
|
}[];
|
|
180
180
|
allowAnonymous: boolean;
|
|
@@ -16,20 +16,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
tenantId: string;
|
|
20
19
|
createdAt: string;
|
|
21
|
-
metadata: ConversationMetadata | null;
|
|
22
|
-
title: string | null;
|
|
23
|
-
properties: Record<string, unknown> | null;
|
|
24
|
-
projectId: string;
|
|
25
|
-
agentId: string | null;
|
|
26
20
|
updatedAt: string;
|
|
27
|
-
userId: string | null;
|
|
28
21
|
ref: {
|
|
29
22
|
type: "commit" | "tag" | "branch";
|
|
30
23
|
name: string;
|
|
31
24
|
hash: string;
|
|
32
25
|
} | null;
|
|
26
|
+
userId: string | null;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
28
|
+
agentId: string | null;
|
|
29
|
+
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
properties: Record<string, unknown> | null;
|
|
32
|
+
title: string | null;
|
|
33
33
|
userProperties: Record<string, unknown> | null;
|
|
34
34
|
activeSubAgentId: string;
|
|
35
35
|
lastContextResolution: string | null;
|
|
@@ -91,20 +91,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
91
91
|
conversationId: string;
|
|
92
92
|
}) => Promise<{
|
|
93
93
|
id: string;
|
|
94
|
-
tenantId: string;
|
|
95
94
|
createdAt: string;
|
|
96
|
-
metadata: ConversationMetadata | null;
|
|
97
|
-
title: string | null;
|
|
98
|
-
properties: Record<string, unknown> | null;
|
|
99
|
-
projectId: string;
|
|
100
|
-
agentId: string | null;
|
|
101
95
|
updatedAt: string;
|
|
102
|
-
userId: string | null;
|
|
103
96
|
ref: {
|
|
104
97
|
type: "commit" | "tag" | "branch";
|
|
105
98
|
name: string;
|
|
106
99
|
hash: string;
|
|
107
100
|
} | null;
|
|
101
|
+
userId: string | null;
|
|
102
|
+
metadata: ConversationMetadata | null;
|
|
103
|
+
agentId: string | null;
|
|
104
|
+
projectId: string;
|
|
105
|
+
tenantId: string;
|
|
106
|
+
properties: Record<string, unknown> | null;
|
|
107
|
+
title: string | null;
|
|
108
108
|
userProperties: Record<string, unknown> | null;
|
|
109
109
|
activeSubAgentId: string;
|
|
110
110
|
lastContextResolution: string | null;
|
|
@@ -131,20 +131,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
131
131
|
properties?: Record<string, unknown> | null | undefined;
|
|
132
132
|
} | {
|
|
133
133
|
id: string;
|
|
134
|
-
tenantId: string;
|
|
135
134
|
createdAt: string;
|
|
136
|
-
metadata: ConversationMetadata | null;
|
|
137
|
-
title: string | null;
|
|
138
|
-
properties: Record<string, unknown> | null;
|
|
139
|
-
projectId: string;
|
|
140
|
-
agentId: string | null;
|
|
141
135
|
updatedAt: string;
|
|
142
|
-
userId: string | null;
|
|
143
136
|
ref: {
|
|
144
137
|
type: "commit" | "tag" | "branch";
|
|
145
138
|
name: string;
|
|
146
139
|
hash: string;
|
|
147
140
|
} | null;
|
|
141
|
+
userId: string | null;
|
|
142
|
+
metadata: ConversationMetadata | null;
|
|
143
|
+
agentId: string | null;
|
|
144
|
+
projectId: string;
|
|
145
|
+
tenantId: string;
|
|
146
|
+
properties: Record<string, unknown> | null;
|
|
147
|
+
title: string | null;
|
|
148
148
|
userProperties: Record<string, unknown> | null;
|
|
149
149
|
activeSubAgentId: string;
|
|
150
150
|
lastContextResolution: string | null;
|
|
@@ -165,20 +165,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
165
165
|
conversationId: string;
|
|
166
166
|
}) => Promise<{
|
|
167
167
|
id: string;
|
|
168
|
-
tenantId: string;
|
|
169
168
|
createdAt: string;
|
|
170
|
-
metadata: ConversationMetadata | null;
|
|
171
|
-
title: string | null;
|
|
172
|
-
properties: Record<string, unknown> | null;
|
|
173
|
-
projectId: string;
|
|
174
|
-
agentId: string | null;
|
|
175
169
|
updatedAt: string;
|
|
176
|
-
userId: string | null;
|
|
177
170
|
ref: {
|
|
178
171
|
type: "commit" | "tag" | "branch";
|
|
179
172
|
name: string;
|
|
180
173
|
hash: string;
|
|
181
174
|
} | null;
|
|
175
|
+
userId: string | null;
|
|
176
|
+
metadata: ConversationMetadata | null;
|
|
177
|
+
agentId: string | null;
|
|
178
|
+
projectId: string;
|
|
179
|
+
tenantId: string;
|
|
180
|
+
properties: Record<string, unknown> | null;
|
|
181
|
+
title: string | null;
|
|
182
182
|
userProperties: Record<string, unknown> | null;
|
|
183
183
|
activeSubAgentId: string;
|
|
184
184
|
lastContextResolution: string | null;
|
|
@@ -9,13 +9,13 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
|
|
|
9
9
|
row: {
|
|
10
10
|
type: string;
|
|
11
11
|
id: string;
|
|
12
|
-
tenantId: string;
|
|
13
12
|
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
14
|
metadata: Record<string, unknown> | null;
|
|
15
|
-
properties: Record<string, unknown> | null;
|
|
16
|
-
projectId: string;
|
|
17
15
|
agentId: string | null;
|
|
18
|
-
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
properties: Record<string, unknown> | null;
|
|
19
19
|
conversationId: string | null;
|
|
20
20
|
userProperties: Record<string, unknown> | null;
|
|
21
21
|
messageId: string | null;
|
|
@@ -72,13 +72,13 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
72
72
|
declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
|
|
73
73
|
type: "positive" | "negative";
|
|
74
74
|
id: string;
|
|
75
|
-
tenantId: string;
|
|
76
75
|
createdAt: string;
|
|
77
|
-
projectId: string;
|
|
78
76
|
updatedAt: string;
|
|
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: {
|
|
@@ -102,13 +102,13 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
102
102
|
}) => Promise<{
|
|
103
103
|
type: "positive" | "negative";
|
|
104
104
|
id: string;
|
|
105
|
-
tenantId: string;
|
|
106
105
|
createdAt: string;
|
|
107
|
-
projectId: string;
|
|
108
106
|
updatedAt: string;
|
|
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 };
|
|
@@ -11,27 +11,27 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
-
tenantId: string;
|
|
15
14
|
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
16
|
metadata: MessageMetadata | null;
|
|
17
|
+
role: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
17
20
|
properties: Record<string, unknown> | null;
|
|
18
21
|
content: MessageContent;
|
|
19
|
-
projectId: string;
|
|
20
|
-
updatedAt: string;
|
|
21
|
-
conversationId: string;
|
|
22
|
-
role: 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: {
|
|
@@ -155,27 +155,27 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
155
155
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
-
tenantId: string;
|
|
159
158
|
createdAt: string;
|
|
159
|
+
updatedAt: string;
|
|
160
160
|
metadata: MessageMetadata | null;
|
|
161
|
+
role: string;
|
|
162
|
+
projectId: string;
|
|
163
|
+
tenantId: string;
|
|
161
164
|
properties: Record<string, unknown> | null;
|
|
162
165
|
content: MessageContent;
|
|
163
|
-
projectId: string;
|
|
164
|
-
updatedAt: string;
|
|
165
|
-
conversationId: string;
|
|
166
|
-
role: 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: {
|
|
@@ -212,27 +212,27 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
212
212
|
messageId: string;
|
|
213
213
|
}) => Promise<{
|
|
214
214
|
id: string;
|
|
215
|
-
tenantId: string;
|
|
216
215
|
createdAt: string;
|
|
216
|
+
updatedAt: string;
|
|
217
217
|
metadata: MessageMetadata | null;
|
|
218
|
+
role: string;
|
|
219
|
+
projectId: string;
|
|
220
|
+
tenantId: string;
|
|
218
221
|
properties: Record<string, unknown> | null;
|
|
219
222
|
content: MessageContent;
|
|
220
|
-
projectId: string;
|
|
221
|
-
updatedAt: string;
|
|
222
|
-
conversationId: string;
|
|
223
|
-
role: 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;
|
|
19
18
|
createdAt: string;
|
|
20
19
|
userId: string;
|
|
20
|
+
tenantId: string;
|
|
21
21
|
scheduledTriggerId: string;
|
|
22
22
|
}>;
|
|
23
23
|
declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -8,19 +8,19 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
8
8
|
//#region src/data-access/runtime/tasks.d.ts
|
|
9
9
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
10
10
|
id: string;
|
|
11
|
-
tenantId: string;
|
|
12
11
|
createdAt: string;
|
|
13
|
-
metadata: TaskMetadataConfig | null;
|
|
14
|
-
projectId: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
subAgentId: string;
|
|
17
12
|
updatedAt: string;
|
|
18
|
-
status: string;
|
|
19
13
|
ref: {
|
|
20
14
|
type: "commit" | "tag" | "branch";
|
|
21
15
|
name: string;
|
|
22
16
|
hash: string;
|
|
23
17
|
} | null;
|
|
18
|
+
metadata: TaskMetadataConfig | null;
|
|
19
|
+
status: string;
|
|
20
|
+
agentId: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
tenantId: string;
|
|
23
|
+
subAgentId: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|