@inkeep/agents-core 0.73.4 → 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/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 +35 -26
- package/dist/data-access/manage/agents.js +1 -0
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +20 -20
- package/dist/data-access/manage/skills.d.ts +15 -15
- 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 +30 -30
- package/dist/data-access/manage/triggers.d.ts +6 -6
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/apps.d.ts +14 -14
- package/dist/data-access/runtime/conversations.d.ts +32 -32
- 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 +24 -24
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +522 -487
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +445 -445
- 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 +63 -63
- package/dist/validation/schemas.d.ts +3171 -2534
- 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,19 +20,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
+
description: string | null;
|
|
24
|
+
tenantId: string;
|
|
25
|
+
projectId: string;
|
|
26
|
+
name: string;
|
|
23
27
|
id: string;
|
|
24
28
|
createdAt: string;
|
|
25
|
-
name: string;
|
|
26
29
|
updatedAt: string;
|
|
27
|
-
projectId: string;
|
|
28
|
-
tenantId: string;
|
|
29
|
-
description: string | null;
|
|
30
30
|
headers: Record<string, string> | null;
|
|
31
|
-
credentialReferenceId: string | null;
|
|
32
31
|
config: {
|
|
33
32
|
type: "mcp";
|
|
34
33
|
mcp: ToolMcpConfig;
|
|
35
34
|
};
|
|
35
|
+
credentialReferenceId: string | null;
|
|
36
36
|
credentialScope: string;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -78,19 +78,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
+
description: string | null;
|
|
82
|
+
tenantId: string;
|
|
83
|
+
projectId: string;
|
|
84
|
+
name: string;
|
|
81
85
|
id: string;
|
|
82
86
|
createdAt: string;
|
|
83
|
-
name: string;
|
|
84
87
|
updatedAt: string;
|
|
85
|
-
projectId: string;
|
|
86
|
-
tenantId: string;
|
|
87
|
-
description: string | null;
|
|
88
88
|
headers: Record<string, string> | null;
|
|
89
|
-
credentialReferenceId: string | null;
|
|
90
89
|
config: {
|
|
91
90
|
type: "mcp";
|
|
92
91
|
mcp: ToolMcpConfig;
|
|
93
92
|
};
|
|
93
|
+
credentialReferenceId: string | null;
|
|
94
94
|
credentialScope: string;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
-
id: string;
|
|
139
|
-
createdAt: string;
|
|
140
|
-
updatedAt: string;
|
|
141
|
-
projectId: string;
|
|
142
138
|
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
143
140
|
agentId: string;
|
|
144
141
|
subAgentId: string;
|
|
145
142
|
toolId: string;
|
|
143
|
+
id: string;
|
|
144
|
+
createdAt: string;
|
|
145
|
+
updatedAt: string;
|
|
146
146
|
headers: Record<string, string> | null;
|
|
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
|
-
id: string;
|
|
158
|
-
createdAt: string;
|
|
159
|
-
updatedAt: string;
|
|
160
|
-
projectId: string;
|
|
161
157
|
tenantId: string;
|
|
158
|
+
projectId: string;
|
|
162
159
|
agentId: string;
|
|
163
160
|
subAgentId: string;
|
|
164
161
|
toolId: string;
|
|
162
|
+
id: string;
|
|
163
|
+
createdAt: string;
|
|
164
|
+
updatedAt: string;
|
|
165
165
|
headers: Record<string, string> | null;
|
|
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
|
-
id: string;
|
|
186
|
-
createdAt: string;
|
|
187
|
-
updatedAt: string;
|
|
188
|
-
projectId: string;
|
|
189
185
|
tenantId: string;
|
|
186
|
+
projectId: string;
|
|
190
187
|
agentId: string;
|
|
191
188
|
subAgentId: string;
|
|
192
189
|
toolId: string;
|
|
190
|
+
id: string;
|
|
191
|
+
createdAt: string;
|
|
192
|
+
updatedAt: string;
|
|
193
193
|
headers: Record<string, string> | null;
|
|
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,19 +202,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
+
description: string | null;
|
|
206
|
+
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
208
|
+
name: string;
|
|
205
209
|
id: string;
|
|
206
210
|
createdAt: string;
|
|
207
|
-
name: string;
|
|
208
211
|
updatedAt: string;
|
|
209
|
-
projectId: string;
|
|
210
|
-
tenantId: string;
|
|
211
|
-
description: string | null;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
213
|
-
credentialReferenceId: string | null;
|
|
214
213
|
config: {
|
|
215
214
|
type: "mcp";
|
|
216
215
|
mcp: ToolMcpConfig;
|
|
217
216
|
};
|
|
217
|
+
credentialReferenceId: string | null;
|
|
218
218
|
credentialScope: string;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | 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: "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,10 +131,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
131
131
|
triggerId: string;
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
|
-
createdAt: string;
|
|
135
|
-
projectId: string;
|
|
136
134
|
tenantId: string;
|
|
135
|
+
projectId: string;
|
|
137
136
|
agentId: string;
|
|
137
|
+
createdAt: string;
|
|
138
138
|
userId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
13
|
+
agentId: string;
|
|
14
|
+
name: string | null;
|
|
11
15
|
id: string;
|
|
12
16
|
createdAt: string;
|
|
13
|
-
name: string | null;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
agentId: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
|
-
lastUsedAt: string | null;
|
|
20
19
|
publicId: string;
|
|
21
20
|
keyHash: string;
|
|
22
21
|
keyPrefix: string;
|
|
22
|
+
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
+
tenantId: string;
|
|
26
|
+
projectId: string;
|
|
27
|
+
agentId: string;
|
|
28
|
+
name: string | null;
|
|
25
29
|
id: string;
|
|
26
30
|
createdAt: string;
|
|
27
|
-
name: string | null;
|
|
28
31
|
updatedAt: string;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
|
-
agentId: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
|
-
lastUsedAt: string | null;
|
|
34
33
|
publicId: string;
|
|
35
34
|
keyHash: string;
|
|
36
35
|
keyPrefix: string;
|
|
36
|
+
lastUsedAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
+
tenantId: string;
|
|
43
|
+
projectId: string;
|
|
44
|
+
agentId: string;
|
|
45
|
+
name: string | null;
|
|
42
46
|
id: string;
|
|
43
47
|
createdAt: string;
|
|
44
|
-
name: string | null;
|
|
45
48
|
updatedAt: string;
|
|
46
|
-
projectId: string;
|
|
47
|
-
tenantId: string;
|
|
48
|
-
agentId: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
|
-
lastUsedAt: string | null;
|
|
51
50
|
publicId: string;
|
|
52
51
|
keyHash: string;
|
|
53
52
|
keyPrefix: string;
|
|
53
|
+
lastUsedAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
+
tenantId: string;
|
|
70
|
+
projectId: string;
|
|
71
|
+
agentId: string;
|
|
72
|
+
name: string | null;
|
|
69
73
|
id: string;
|
|
70
74
|
createdAt: string;
|
|
71
|
-
name: string | null;
|
|
72
75
|
updatedAt: string;
|
|
73
|
-
projectId: string;
|
|
74
|
-
tenantId: string;
|
|
75
|
-
agentId: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
|
-
lastUsedAt: string | null;
|
|
78
77
|
publicId: string;
|
|
79
78
|
keyHash: string;
|
|
80
79
|
keyPrefix: string;
|
|
80
|
+
lastUsedAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -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
|
+
type: AppType;
|
|
9
|
+
description: string | null;
|
|
10
|
+
tenantId: string | null;
|
|
11
|
+
projectId: string | null;
|
|
12
|
+
name: string;
|
|
8
13
|
id: string;
|
|
9
14
|
createdAt: string;
|
|
10
|
-
name: string;
|
|
11
15
|
updatedAt: string;
|
|
12
|
-
projectId: string | null;
|
|
13
|
-
tenantId: string | null;
|
|
14
|
-
description: string | null;
|
|
15
|
-
type: AppType;
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
prompt: string | null;
|
|
18
18
|
config: {
|
|
@@ -45,9 +45,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
45
45
|
}[] | undefined;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
defaultAgentId: string | null;
|
|
49
|
-
defaultProjectId: string | null;
|
|
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: {
|
|
@@ -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
|
+
type: AppType;
|
|
78
|
+
description: string | null;
|
|
79
|
+
tenantId: string | null;
|
|
80
|
+
projectId: string | null;
|
|
81
|
+
name: string;
|
|
77
82
|
id: string;
|
|
78
83
|
createdAt: string;
|
|
79
|
-
name: string;
|
|
80
84
|
updatedAt: string;
|
|
81
|
-
projectId: string | null;
|
|
82
|
-
tenantId: string | null;
|
|
83
|
-
description: string | null;
|
|
84
|
-
type: AppType;
|
|
85
85
|
enabled: boolean;
|
|
86
86
|
prompt: string | null;
|
|
87
87
|
config: {
|
|
@@ -114,9 +114,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
114
114
|
}[] | undefined;
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
defaultAgentId: string | null;
|
|
118
|
-
defaultProjectId: string | null;
|
|
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,24 +15,24 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
-
id: string;
|
|
19
|
-
createdAt: string;
|
|
20
|
-
updatedAt: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
tenantId: string;
|
|
23
|
-
metadata: ConversationMetadata | null;
|
|
24
18
|
properties: Record<string, unknown> | null;
|
|
25
19
|
title: string | null;
|
|
20
|
+
tenantId: string;
|
|
21
|
+
projectId: string;
|
|
26
22
|
agentId: string | null;
|
|
27
|
-
|
|
23
|
+
id: string;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
updatedAt: string;
|
|
28
26
|
ref: {
|
|
29
27
|
type: "commit" | "tag" | "branch";
|
|
30
28
|
name: string;
|
|
31
29
|
hash: string;
|
|
32
30
|
} | null;
|
|
31
|
+
userId: string | null;
|
|
32
|
+
metadata: ConversationMetadata | null;
|
|
33
|
+
userProperties: Record<string, unknown> | null;
|
|
33
34
|
activeSubAgentId: string;
|
|
34
35
|
lastContextResolution: string | null;
|
|
35
|
-
userProperties: Record<string, unknown> | null;
|
|
36
36
|
}>;
|
|
37
37
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
@@ -90,24 +90,24 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
90
90
|
scopes: ProjectScopeConfig;
|
|
91
91
|
conversationId: string;
|
|
92
92
|
}) => Promise<{
|
|
93
|
-
id: string;
|
|
94
|
-
createdAt: string;
|
|
95
|
-
updatedAt: string;
|
|
96
|
-
projectId: string;
|
|
97
|
-
tenantId: string;
|
|
98
|
-
metadata: ConversationMetadata | null;
|
|
99
93
|
properties: Record<string, unknown> | null;
|
|
100
94
|
title: string | null;
|
|
95
|
+
tenantId: string;
|
|
96
|
+
projectId: string;
|
|
101
97
|
agentId: string | null;
|
|
102
|
-
|
|
98
|
+
id: string;
|
|
99
|
+
createdAt: string;
|
|
100
|
+
updatedAt: string;
|
|
103
101
|
ref: {
|
|
104
102
|
type: "commit" | "tag" | "branch";
|
|
105
103
|
name: string;
|
|
106
104
|
hash: string;
|
|
107
105
|
} | null;
|
|
106
|
+
userId: string | null;
|
|
107
|
+
metadata: ConversationMetadata | null;
|
|
108
|
+
userProperties: Record<string, unknown> | null;
|
|
108
109
|
activeSubAgentId: string;
|
|
109
110
|
lastContextResolution: string | null;
|
|
110
|
-
userProperties: Record<string, unknown> | null;
|
|
111
111
|
} | undefined>;
|
|
112
112
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
113
113
|
activeSubAgentId: string;
|
|
@@ -130,24 +130,24 @@ 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
|
-
id: string;
|
|
134
|
-
createdAt: string;
|
|
135
|
-
updatedAt: string;
|
|
136
|
-
projectId: string;
|
|
137
|
-
tenantId: string;
|
|
138
|
-
metadata: ConversationMetadata | null;
|
|
139
133
|
properties: Record<string, unknown> | null;
|
|
140
134
|
title: string | null;
|
|
135
|
+
tenantId: string;
|
|
136
|
+
projectId: string;
|
|
141
137
|
agentId: string | null;
|
|
142
|
-
|
|
138
|
+
id: string;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
updatedAt: string;
|
|
143
141
|
ref: {
|
|
144
142
|
type: "commit" | "tag" | "branch";
|
|
145
143
|
name: string;
|
|
146
144
|
hash: string;
|
|
147
145
|
} | null;
|
|
146
|
+
userId: string | null;
|
|
147
|
+
metadata: ConversationMetadata | null;
|
|
148
|
+
userProperties: Record<string, unknown> | null;
|
|
148
149
|
activeSubAgentId: string;
|
|
149
150
|
lastContextResolution: string | null;
|
|
150
|
-
userProperties: Record<string, unknown> | null;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
153
|
* Get conversation history with filtering and context management
|
|
@@ -164,24 +164,24 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
164
164
|
scopes: ProjectScopeConfig;
|
|
165
165
|
conversationId: string;
|
|
166
166
|
}) => Promise<{
|
|
167
|
-
id: string;
|
|
168
|
-
createdAt: string;
|
|
169
|
-
updatedAt: string;
|
|
170
|
-
projectId: string;
|
|
171
|
-
tenantId: string;
|
|
172
|
-
metadata: ConversationMetadata | null;
|
|
173
167
|
properties: Record<string, unknown> | null;
|
|
174
168
|
title: string | null;
|
|
169
|
+
tenantId: string;
|
|
170
|
+
projectId: string;
|
|
175
171
|
agentId: string | null;
|
|
176
|
-
|
|
172
|
+
id: string;
|
|
173
|
+
createdAt: string;
|
|
174
|
+
updatedAt: string;
|
|
177
175
|
ref: {
|
|
178
176
|
type: "commit" | "tag" | "branch";
|
|
179
177
|
name: string;
|
|
180
178
|
hash: string;
|
|
181
179
|
} | null;
|
|
180
|
+
userId: string | null;
|
|
181
|
+
metadata: ConversationMetadata | null;
|
|
182
|
+
userProperties: Record<string, unknown> | null;
|
|
182
183
|
activeSubAgentId: string;
|
|
183
184
|
lastContextResolution: string | null;
|
|
184
|
-
userProperties: Record<string, unknown> | null;
|
|
185
185
|
} | undefined>;
|
|
186
186
|
/**
|
|
187
187
|
* Set active agent for a conversation (upsert operation)
|
|
@@ -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
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
18
|
metadata: Record<string, unknown> | null;
|
|
16
|
-
type: string;
|
|
17
|
-
properties: Record<string, unknown> | null;
|
|
18
|
-
agentId: string | null;
|
|
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
|
-
tenantId: string;
|
|
78
|
-
type: "positive" | "negative";
|
|
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
|
-
tenantId: string;
|
|
108
|
-
type: "positive" | "negative";
|
|
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
|
-
content: MessageContent;
|
|
15
17
|
createdAt: string;
|
|
16
18
|
updatedAt: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
19
|
metadata: MessageMetadata | null;
|
|
20
|
-
properties: Record<string, unknown> | null;
|
|
21
20
|
role: string;
|
|
22
|
-
|
|
23
|
-
userProperties: Record<string, unknown> | null;
|
|
21
|
+
content: MessageContent;
|
|
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
|
-
content: MessageContent;
|
|
159
161
|
createdAt: string;
|
|
160
162
|
updatedAt: string;
|
|
161
|
-
projectId: string;
|
|
162
|
-
tenantId: string;
|
|
163
163
|
metadata: MessageMetadata | null;
|
|
164
|
-
properties: Record<string, unknown> | null;
|
|
165
164
|
role: string;
|
|
166
|
-
|
|
167
|
-
userProperties: Record<string, unknown> | null;
|
|
165
|
+
content: MessageContent;
|
|
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
|
-
content: MessageContent;
|
|
216
218
|
createdAt: string;
|
|
217
219
|
updatedAt: string;
|
|
218
|
-
projectId: string;
|
|
219
|
-
tenantId: string;
|
|
220
220
|
metadata: MessageMetadata | null;
|
|
221
|
-
properties: Record<string, unknown> | null;
|
|
222
221
|
role: string;
|
|
223
|
-
|
|
224
|
-
userProperties: Record<string, unknown> | null;
|
|
222
|
+
content: MessageContent;
|
|
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: {
|
|
@@ -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;
|
|
@@ -15,8 +15,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
|
|
|
15
15
|
scheduledTriggerId: string;
|
|
16
16
|
userId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
createdAt: string;
|
|
19
18
|
tenantId: string;
|
|
19
|
+
createdAt: string;
|
|
20
20
|
userId: string;
|
|
21
21
|
scheduledTriggerId: string;
|
|
22
22
|
}>;
|