@inkeep/agents-core 0.74.4 → 0.75.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/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 +21 -21
- 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 +20 -20
- 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 +36 -36
- 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 +30 -30
- package/dist/data-access/manage/triggers.d.ts +3 -3
- 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 +16 -16
- 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 +4 -4
- package/dist/data-access/runtime/messages.d.ts +12 -12
- 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 +379 -379
- package/dist/db/runtime/runtime-schema.d.ts +4 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/setup/setup.js +0 -5
- package/dist/utils/error.d.ts +54 -48
- package/dist/utils/error.js +8 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/pow.d.ts +15 -1
- package/dist/utils/pow.js +59 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +38 -38
- package/dist/validation/schemas.d.ts +801 -801
- package/dist/validation/schemas.js +1 -1
- package/package.json +1 -1
|
@@ -20,14 +20,14 @@ 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
30
|
headers: Record<string, string> | null;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
@@ -78,14 +78,14 @@ 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
88
|
headers: Record<string, string> | null;
|
|
87
|
-
projectId: string;
|
|
88
|
-
tenantId: string;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
@@ -135,38 +135,38 @@ 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
146
|
headers: Record<string, string> | null;
|
|
142
|
-
agentId: string;
|
|
143
|
-
projectId: string;
|
|
144
|
-
tenantId: string;
|
|
145
|
-
subAgentId: string;
|
|
146
|
-
toolId: string;
|
|
147
|
-
selectedTools: string[] | null;
|
|
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;
|
|
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
165
|
headers: Record<string, string> | null;
|
|
161
|
-
agentId: string;
|
|
162
|
-
projectId: string;
|
|
163
|
-
tenantId: string;
|
|
164
|
-
subAgentId: string;
|
|
165
|
-
toolId: string;
|
|
166
|
-
selectedTools: string[] | null;
|
|
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)
|
|
@@ -182,19 +182,19 @@ 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
193
|
headers: Record<string, string> | null;
|
|
189
|
-
agentId: string;
|
|
190
|
-
projectId: string;
|
|
191
|
-
tenantId: string;
|
|
192
|
-
subAgentId: string;
|
|
193
|
-
toolId: string;
|
|
194
|
-
selectedTools: string[] | null;
|
|
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)
|
|
@@ -202,14 +202,14 @@ 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
212
|
headers: Record<string, string> | null;
|
|
211
|
-
projectId: string;
|
|
212
|
-
tenantId: string;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
@@ -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: {
|
|
@@ -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];
|
|
@@ -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;
|
|
@@ -6,15 +6,18 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
8
|
type: AppType;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
description: string | null;
|
|
10
|
+
tenantId: string | null;
|
|
11
|
+
projectId: string | null;
|
|
11
12
|
name: string;
|
|
13
|
+
id: string;
|
|
12
14
|
createdAt: string;
|
|
13
15
|
updatedAt: string;
|
|
14
|
-
description: string | null;
|
|
15
16
|
prompt: string | null;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
lastUsedAt: string | null;
|
|
19
|
+
defaultProjectId: string | null;
|
|
20
|
+
defaultAgentId: string | null;
|
|
18
21
|
config: {
|
|
19
22
|
type: "web_client";
|
|
20
23
|
webClient: {
|
|
@@ -45,9 +48,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
45
48
|
}[] | undefined;
|
|
46
49
|
};
|
|
47
50
|
};
|
|
48
|
-
lastUsedAt: string | null;
|
|
49
|
-
defaultProjectId: string | null;
|
|
50
|
-
defaultAgentId: string | null;
|
|
51
51
|
} | undefined>;
|
|
52
52
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
53
53
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -75,15 +75,18 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
75
75
|
}>;
|
|
76
76
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
77
77
|
type: AppType;
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
description: string | null;
|
|
79
|
+
tenantId: string | null;
|
|
80
|
+
projectId: string | null;
|
|
80
81
|
name: string;
|
|
82
|
+
id: string;
|
|
81
83
|
createdAt: string;
|
|
82
84
|
updatedAt: string;
|
|
83
|
-
description: string | null;
|
|
84
85
|
prompt: string | null;
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
enabled: boolean;
|
|
87
|
+
lastUsedAt: string | null;
|
|
88
|
+
defaultProjectId: string | null;
|
|
89
|
+
defaultAgentId: string | null;
|
|
87
90
|
config: {
|
|
88
91
|
type: "web_client";
|
|
89
92
|
webClient: {
|
|
@@ -114,9 +117,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
114
117
|
}[] | undefined;
|
|
115
118
|
};
|
|
116
119
|
};
|
|
117
|
-
lastUsedAt: string | null;
|
|
118
|
-
defaultProjectId: string | null;
|
|
119
|
-
defaultAgentId: string | null;
|
|
120
120
|
}>;
|
|
121
121
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
122
122
|
scopes: TenantScopeConfig;
|
|
@@ -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
|
-
agentId: string | null;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
|
-
properties: Record<string, unknown> | null;
|
|
32
|
-
title: string | null;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
userProperties: Record<string, unknown> | 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
|
-
agentId: string | null;
|
|
104
|
-
projectId: string;
|
|
105
|
-
tenantId: string;
|
|
106
|
-
properties: Record<string, unknown> | null;
|
|
107
|
-
title: string | null;
|
|
108
108
|
activeSubAgentId: string;
|
|
109
109
|
lastContextResolution: string | null;
|
|
110
110
|
userProperties: Record<string, unknown> | 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
|
-
agentId: string | null;
|
|
144
|
-
projectId: string;
|
|
145
|
-
tenantId: string;
|
|
146
|
-
properties: Record<string, unknown> | null;
|
|
147
|
-
title: string | null;
|
|
148
148
|
activeSubAgentId: string;
|
|
149
149
|
lastContextResolution: string | null;
|
|
150
150
|
userProperties: Record<string, unknown> | 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
|
-
agentId: string | null;
|
|
178
|
-
projectId: string;
|
|
179
|
-
tenantId: string;
|
|
180
|
-
properties: Record<string, unknown> | null;
|
|
181
|
-
title: string | null;
|
|
182
182
|
activeSubAgentId: string;
|
|
183
183
|
lastContextResolution: string | null;
|
|
184
184
|
userProperties: Record<string, unknown> | null;
|
|
@@ -8,16 +8,16 @@ import { EventInsert } from "../../types/entities.js";
|
|
|
8
8
|
declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
|
|
9
9
|
row: {
|
|
10
10
|
type: string;
|
|
11
|
+
properties: Record<string, unknown> | null;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
agentId: string | null;
|
|
11
15
|
id: string;
|
|
12
16
|
createdAt: string;
|
|
13
17
|
updatedAt: string;
|
|
14
18
|
metadata: Record<string, unknown> | null;
|
|
15
|
-
agentId: string | null;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
properties: Record<string, unknown> | null;
|
|
19
|
-
conversationId: string | null;
|
|
20
19
|
userProperties: Record<string, unknown> | null;
|
|
20
|
+
conversationId: string | null;
|
|
21
21
|
messageId: string | null;
|
|
22
22
|
serverMetadata: {
|
|
23
23
|
[k: string]: unknown;
|
|
@@ -71,11 +71,11 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
71
71
|
}[]>;
|
|
72
72
|
declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
|
|
73
73
|
type: "positive" | "negative";
|
|
74
|
+
tenantId: string;
|
|
75
|
+
projectId: string;
|
|
74
76
|
id: string;
|
|
75
77
|
createdAt: string;
|
|
76
78
|
updatedAt: string;
|
|
77
|
-
projectId: string;
|
|
78
|
-
tenantId: string;
|
|
79
79
|
conversationId: string;
|
|
80
80
|
messageId: string | null;
|
|
81
81
|
details: string | null;
|
|
@@ -101,11 +101,11 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
101
101
|
feedbackId: string;
|
|
102
102
|
}) => Promise<{
|
|
103
103
|
type: "positive" | "negative";
|
|
104
|
+
tenantId: string;
|
|
105
|
+
projectId: string;
|
|
104
106
|
id: string;
|
|
105
107
|
createdAt: string;
|
|
106
108
|
updatedAt: string;
|
|
107
|
-
projectId: string;
|
|
108
|
-
tenantId: string;
|
|
109
109
|
conversationId: string;
|
|
110
110
|
messageId: string | null;
|
|
111
111
|
details: string | null;
|
|
@@ -10,17 +10,17 @@ 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
|
-
projectId: string;
|
|
19
|
-
tenantId: string;
|
|
20
|
-
properties: Record<string, unknown> | null;
|
|
21
21
|
content: MessageContent;
|
|
22
|
-
conversationId: string;
|
|
23
22
|
userProperties: Record<string, unknown> | null;
|
|
23
|
+
conversationId: string;
|
|
24
24
|
fromSubAgentId: string | null;
|
|
25
25
|
toSubAgentId: string | null;
|
|
26
26
|
fromExternalAgentId: string | null;
|
|
@@ -154,17 +154,17 @@ 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
|
-
projectId: string;
|
|
163
|
-
tenantId: string;
|
|
164
|
-
properties: Record<string, unknown> | null;
|
|
165
165
|
content: MessageContent;
|
|
166
|
-
conversationId: string;
|
|
167
166
|
userProperties: Record<string, unknown> | null;
|
|
167
|
+
conversationId: string;
|
|
168
168
|
fromSubAgentId: string | null;
|
|
169
169
|
toSubAgentId: string | null;
|
|
170
170
|
fromExternalAgentId: string | null;
|
|
@@ -211,17 +211,17 @@ 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
|
-
projectId: string;
|
|
220
|
-
tenantId: string;
|
|
221
|
-
properties: Record<string, unknown> | null;
|
|
222
222
|
content: MessageContent;
|
|
223
|
-
conversationId: string;
|
|
224
223
|
userProperties: Record<string, unknown> | null;
|
|
224
|
+
conversationId: string;
|
|
225
225
|
fromSubAgentId: string | null;
|
|
226
226
|
toSubAgentId: string | null;
|
|
227
227
|
fromExternalAgentId: string | null;
|
|
@@ -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,10 +21,6 @@ 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
|
-
subAgentId: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|