@inkeep/agents-core 0.78.0 → 0.78.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth-schema.d.ts +163 -163
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/constants/otel-attributes.d.ts +1 -0
- package/dist/constants/otel-attributes.js +1 -0
- package/dist/data-access/manage/agents.d.ts +32 -32
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +8 -8
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +8 -8
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +3 -3
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +17 -17
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/events.d.ts +7 -7
- 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/tasks.d.ts +3 -3
- package/dist/db/manage/manage-schema.d.ts +383 -383
- package/dist/db/runtime/runtime-schema.d.ts +417 -417
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/cache-debug-walk.d.ts +4 -9
- package/dist/utils/cache-debug-walk.js +4 -23
- package/dist/utils/cache-state.d.ts +1 -5
- package/dist/utils/cache-state.js +3 -4
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/usage-cost-middleware.d.ts +7 -1
- package/dist/utils/usage-cost-middleware.js +21 -2
- package/dist/validation/schemas/skills.d.ts +42 -42
- package/dist/validation/schemas.d.ts +844 -844
- package/package.json +1 -1
|
@@ -9,14 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name: string;
|
|
13
|
-
description: string | null;
|
|
14
12
|
id: string;
|
|
15
|
-
agentId: string;
|
|
16
13
|
createdAt: string;
|
|
14
|
+
name: string;
|
|
17
15
|
updatedAt: string;
|
|
16
|
+
agentId: string;
|
|
18
17
|
projectId: string;
|
|
19
18
|
tenantId: string;
|
|
19
|
+
description: string | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -37,10 +37,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
37
37
|
allowedProviders?: string[] | undefined;
|
|
38
38
|
} | undefined;
|
|
39
39
|
} | null;
|
|
40
|
+
prompt: string | null;
|
|
40
41
|
stopWhen: {
|
|
41
42
|
stepCountIs?: number | undefined;
|
|
42
43
|
} | null;
|
|
43
|
-
prompt: string | null;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
outputContract: {
|
|
46
46
|
[x: string]: unknown;
|
|
@@ -55,14 +55,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
55
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
57
57
|
}) => Promise<{
|
|
58
|
-
name: string;
|
|
59
|
-
description: string | null;
|
|
60
58
|
id: string;
|
|
61
|
-
agentId: string;
|
|
62
59
|
createdAt: string;
|
|
60
|
+
name: string;
|
|
63
61
|
updatedAt: string;
|
|
62
|
+
agentId: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
tenantId: string;
|
|
65
|
+
description: string | null;
|
|
66
66
|
models: {
|
|
67
67
|
base?: {
|
|
68
68
|
model?: string | undefined;
|
|
@@ -83,10 +83,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
83
83
|
allowedProviders?: string[] | undefined;
|
|
84
84
|
} | undefined;
|
|
85
85
|
} | null;
|
|
86
|
+
prompt: string | null;
|
|
86
87
|
stopWhen: {
|
|
87
88
|
stepCountIs?: number | undefined;
|
|
88
89
|
} | null;
|
|
89
|
-
prompt: string | null;
|
|
90
90
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
91
91
|
outputContract: {
|
|
92
92
|
[x: string]: unknown;
|
|
@@ -154,14 +154,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
154
154
|
};
|
|
155
155
|
}>;
|
|
156
156
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
157
|
-
name: string;
|
|
158
|
-
description: string | null;
|
|
159
157
|
id: string;
|
|
160
|
-
agentId: string;
|
|
161
158
|
createdAt: string;
|
|
159
|
+
name: string;
|
|
162
160
|
updatedAt: string;
|
|
161
|
+
agentId: string;
|
|
163
162
|
projectId: string;
|
|
164
163
|
tenantId: string;
|
|
164
|
+
description: string | null;
|
|
165
165
|
models: {
|
|
166
166
|
base?: {
|
|
167
167
|
model?: string | undefined;
|
|
@@ -182,10 +182,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
182
182
|
allowedProviders?: string[] | undefined;
|
|
183
183
|
} | undefined;
|
|
184
184
|
} | null;
|
|
185
|
+
prompt: string | null;
|
|
185
186
|
stopWhen: {
|
|
186
187
|
stepCountIs?: number | undefined;
|
|
187
188
|
} | null;
|
|
188
|
-
prompt: string | null;
|
|
189
189
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
190
190
|
outputContract: {
|
|
191
191
|
[x: string]: unknown;
|
|
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
name: string;
|
|
24
|
-
description: string | null;
|
|
25
23
|
id: string;
|
|
26
24
|
createdAt: string;
|
|
25
|
+
name: string;
|
|
27
26
|
updatedAt: string;
|
|
28
27
|
projectId: string;
|
|
29
28
|
tenantId: string;
|
|
29
|
+
description: string | null;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
30
31
|
config: {
|
|
31
32
|
type: "mcp";
|
|
32
33
|
mcp: ToolMcpConfig;
|
|
33
34
|
};
|
|
34
35
|
credentialReferenceId: string | null;
|
|
35
36
|
credentialScope: string;
|
|
36
|
-
headers: Record<string, string> | null;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
39
39
|
lastError: string | null;
|
|
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
name: string;
|
|
82
|
-
description: string | null;
|
|
83
81
|
id: string;
|
|
84
82
|
createdAt: string;
|
|
83
|
+
name: string;
|
|
85
84
|
updatedAt: string;
|
|
86
85
|
projectId: string;
|
|
87
86
|
tenantId: string;
|
|
87
|
+
description: string | null;
|
|
88
|
+
headers: Record<string, string> | null;
|
|
88
89
|
config: {
|
|
89
90
|
type: "mcp";
|
|
90
91
|
mcp: ToolMcpConfig;
|
|
91
92
|
};
|
|
92
93
|
credentialReferenceId: string | null;
|
|
93
94
|
credentialScope: string;
|
|
94
|
-
headers: Record<string, string> | null;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
97
97
|
lastError: string | null;
|
|
@@ -136,9 +136,9 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
138
|
id: string;
|
|
139
|
-
agentId: string;
|
|
140
139
|
createdAt: string;
|
|
141
140
|
updatedAt: string;
|
|
141
|
+
agentId: string;
|
|
142
142
|
projectId: string;
|
|
143
143
|
tenantId: string;
|
|
144
144
|
subAgentId: string;
|
|
@@ -155,9 +155,9 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
-
agentId: string;
|
|
159
158
|
createdAt: string;
|
|
160
159
|
updatedAt: string;
|
|
160
|
+
agentId: string;
|
|
161
161
|
projectId: string;
|
|
162
162
|
tenantId: string;
|
|
163
163
|
subAgentId: string;
|
|
@@ -183,9 +183,9 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
185
|
id: string;
|
|
186
|
-
agentId: string;
|
|
187
186
|
createdAt: string;
|
|
188
187
|
updatedAt: string;
|
|
188
|
+
agentId: string;
|
|
189
189
|
projectId: string;
|
|
190
190
|
tenantId: string;
|
|
191
191
|
subAgentId: string;
|
|
@@ -202,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
name: string;
|
|
206
|
-
description: string | null;
|
|
207
205
|
id: string;
|
|
208
206
|
createdAt: string;
|
|
207
|
+
name: string;
|
|
209
208
|
updatedAt: string;
|
|
210
209
|
projectId: string;
|
|
211
210
|
tenantId: string;
|
|
211
|
+
description: string | null;
|
|
212
|
+
headers: Record<string, string> | null;
|
|
212
213
|
config: {
|
|
213
214
|
type: "mcp";
|
|
214
215
|
mcp: ToolMcpConfig;
|
|
215
216
|
};
|
|
216
217
|
credentialReferenceId: string | null;
|
|
217
218
|
credentialScope: string;
|
|
218
|
-
headers: Record<string, string> | null;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
221
221
|
lastError: string | null;
|
|
@@ -37,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,8 +131,8 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
131
131
|
triggerId: string;
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
|
-
agentId: string;
|
|
135
134
|
createdAt: string;
|
|
135
|
+
agentId: string;
|
|
136
136
|
projectId: string;
|
|
137
137
|
tenantId: string;
|
|
138
138
|
userId: string;
|
|
@@ -8,11 +8,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
name: string | null;
|
|
12
11
|
id: string;
|
|
13
|
-
agentId: string;
|
|
14
12
|
createdAt: string;
|
|
13
|
+
name: string | null;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: string;
|
|
18
18
|
expiresAt: string | null;
|
|
@@ -22,11 +22,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
22
22
|
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
name: string | null;
|
|
26
25
|
id: string;
|
|
27
|
-
agentId: string;
|
|
28
26
|
createdAt: string;
|
|
27
|
+
name: string | null;
|
|
29
28
|
updatedAt: string;
|
|
29
|
+
agentId: string;
|
|
30
30
|
projectId: string;
|
|
31
31
|
tenantId: string;
|
|
32
32
|
expiresAt: string | null;
|
|
@@ -39,11 +39,11 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
name: string | null;
|
|
43
42
|
id: string;
|
|
44
|
-
agentId: string;
|
|
45
43
|
createdAt: string;
|
|
44
|
+
name: string | null;
|
|
46
45
|
updatedAt: string;
|
|
46
|
+
agentId: string;
|
|
47
47
|
projectId: string;
|
|
48
48
|
tenantId: string;
|
|
49
49
|
expiresAt: string | null;
|
|
@@ -66,11 +66,11 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
-
name: string | null;
|
|
70
69
|
id: string;
|
|
71
|
-
agentId: string;
|
|
72
70
|
createdAt: string;
|
|
71
|
+
name: string | null;
|
|
73
72
|
updatedAt: string;
|
|
73
|
+
agentId: string;
|
|
74
74
|
projectId: string;
|
|
75
75
|
tenantId: string;
|
|
76
76
|
expiresAt: string | null;
|
|
@@ -6,13 +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
|
-
name: string;
|
|
10
|
-
description: string | null;
|
|
11
9
|
id: string;
|
|
12
10
|
createdAt: string;
|
|
11
|
+
name: string;
|
|
13
12
|
updatedAt: string;
|
|
14
13
|
projectId: string | null;
|
|
15
14
|
tenantId: string | null;
|
|
15
|
+
description: string | null;
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
prompt: string | null;
|
|
18
|
+
lastUsedAt: string | null;
|
|
19
|
+
defaultProjectId: string | null;
|
|
20
|
+
defaultAgentId: string | null;
|
|
16
21
|
config: {
|
|
17
22
|
type: "web_client";
|
|
18
23
|
webClient: {
|
|
@@ -20,7 +25,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
20
25
|
publicKeys: {
|
|
21
26
|
kid: string;
|
|
22
27
|
publicKey: string;
|
|
23
|
-
algorithm: "
|
|
28
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
24
29
|
addedAt: string;
|
|
25
30
|
}[];
|
|
26
31
|
allowAnonymous: boolean;
|
|
@@ -43,11 +48,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
43
48
|
}[] | undefined;
|
|
44
49
|
};
|
|
45
50
|
};
|
|
46
|
-
prompt: string | null;
|
|
47
|
-
lastUsedAt: string | null;
|
|
48
|
-
defaultProjectId: string | null;
|
|
49
|
-
defaultAgentId: string | null;
|
|
50
|
-
enabled: boolean;
|
|
51
51
|
} | undefined>;
|
|
52
52
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
53
53
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -75,13 +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
|
-
name: string;
|
|
79
|
-
description: string | null;
|
|
80
78
|
id: string;
|
|
81
79
|
createdAt: string;
|
|
80
|
+
name: string;
|
|
82
81
|
updatedAt: string;
|
|
83
82
|
projectId: string | null;
|
|
84
83
|
tenantId: string | null;
|
|
84
|
+
description: string | null;
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
prompt: string | null;
|
|
87
|
+
lastUsedAt: string | null;
|
|
88
|
+
defaultProjectId: string | null;
|
|
89
|
+
defaultAgentId: string | null;
|
|
85
90
|
config: {
|
|
86
91
|
type: "web_client";
|
|
87
92
|
webClient: {
|
|
@@ -89,7 +94,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
89
94
|
publicKeys: {
|
|
90
95
|
kid: string;
|
|
91
96
|
publicKey: string;
|
|
92
|
-
algorithm: "
|
|
97
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
93
98
|
addedAt: string;
|
|
94
99
|
}[];
|
|
95
100
|
allowAnonymous: boolean;
|
|
@@ -112,11 +117,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
112
117
|
}[] | undefined;
|
|
113
118
|
};
|
|
114
119
|
};
|
|
115
|
-
prompt: string | null;
|
|
116
|
-
lastUsedAt: string | null;
|
|
117
|
-
defaultProjectId: string | null;
|
|
118
|
-
defaultAgentId: string | null;
|
|
119
|
-
enabled: boolean;
|
|
120
120
|
}>;
|
|
121
121
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
122
122
|
scopes: TenantScopeConfig;
|
|
@@ -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;
|
|
@@ -17,23 +17,23 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
19
|
id: string;
|
|
20
|
-
agentId: string | null;
|
|
21
|
-
properties: Record<string, unknown> | null;
|
|
22
|
-
userProperties: Record<string, unknown> | null;
|
|
23
|
-
metadata: ConversationMetadata | null;
|
|
24
20
|
createdAt: string;
|
|
25
21
|
updatedAt: string;
|
|
22
|
+
agentId: string | null;
|
|
26
23
|
projectId: string;
|
|
27
24
|
tenantId: string;
|
|
25
|
+
properties: Record<string, unknown> | null;
|
|
28
26
|
title: string | null;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
29
28
|
userId: string | null;
|
|
30
|
-
activeSubAgentId: string;
|
|
31
29
|
ref: {
|
|
32
30
|
type: "commit" | "tag" | "branch";
|
|
33
31
|
name: string;
|
|
34
32
|
hash: string;
|
|
35
33
|
} | null;
|
|
34
|
+
activeSubAgentId: string;
|
|
36
35
|
lastContextResolution: string | null;
|
|
36
|
+
userProperties: Record<string, unknown> | null;
|
|
37
37
|
}>;
|
|
38
38
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -92,23 +92,23 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
92
92
|
conversationId: string;
|
|
93
93
|
}) => Promise<{
|
|
94
94
|
id: string;
|
|
95
|
-
agentId: string | null;
|
|
96
|
-
properties: Record<string, unknown> | null;
|
|
97
|
-
userProperties: Record<string, unknown> | null;
|
|
98
|
-
metadata: ConversationMetadata | null;
|
|
99
95
|
createdAt: string;
|
|
100
96
|
updatedAt: string;
|
|
97
|
+
agentId: string | null;
|
|
101
98
|
projectId: string;
|
|
102
99
|
tenantId: string;
|
|
100
|
+
properties: Record<string, unknown> | null;
|
|
103
101
|
title: string | null;
|
|
102
|
+
metadata: ConversationMetadata | null;
|
|
104
103
|
userId: string | null;
|
|
105
|
-
activeSubAgentId: string;
|
|
106
104
|
ref: {
|
|
107
105
|
type: "commit" | "tag" | "branch";
|
|
108
106
|
name: string;
|
|
109
107
|
hash: string;
|
|
110
108
|
} | null;
|
|
109
|
+
activeSubAgentId: string;
|
|
111
110
|
lastContextResolution: string | null;
|
|
111
|
+
userProperties: Record<string, unknown> | null;
|
|
112
112
|
} | undefined>;
|
|
113
113
|
/**
|
|
114
114
|
* Batch-fetch conversations by id within a project scope.
|
|
@@ -147,23 +147,23 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
147
147
|
properties?: Record<string, unknown> | null | undefined;
|
|
148
148
|
} | {
|
|
149
149
|
id: string;
|
|
150
|
-
agentId: string | null;
|
|
151
|
-
properties: Record<string, unknown> | null;
|
|
152
|
-
userProperties: Record<string, unknown> | null;
|
|
153
|
-
metadata: ConversationMetadata | null;
|
|
154
150
|
createdAt: string;
|
|
155
151
|
updatedAt: string;
|
|
152
|
+
agentId: string | null;
|
|
156
153
|
projectId: string;
|
|
157
154
|
tenantId: string;
|
|
155
|
+
properties: Record<string, unknown> | null;
|
|
158
156
|
title: string | null;
|
|
157
|
+
metadata: ConversationMetadata | null;
|
|
159
158
|
userId: string | null;
|
|
160
|
-
activeSubAgentId: string;
|
|
161
159
|
ref: {
|
|
162
160
|
type: "commit" | "tag" | "branch";
|
|
163
161
|
name: string;
|
|
164
162
|
hash: string;
|
|
165
163
|
} | null;
|
|
164
|
+
activeSubAgentId: string;
|
|
166
165
|
lastContextResolution: string | null;
|
|
166
|
+
userProperties: Record<string, unknown> | null;
|
|
167
167
|
}>;
|
|
168
168
|
/**
|
|
169
169
|
* Extract text content from message content object
|
|
@@ -185,23 +185,23 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
185
185
|
conversationId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
|
-
agentId: string | null;
|
|
189
|
-
properties: Record<string, unknown> | null;
|
|
190
|
-
userProperties: Record<string, unknown> | null;
|
|
191
|
-
metadata: ConversationMetadata | null;
|
|
192
188
|
createdAt: string;
|
|
193
189
|
updatedAt: string;
|
|
190
|
+
agentId: string | null;
|
|
194
191
|
projectId: string;
|
|
195
192
|
tenantId: string;
|
|
193
|
+
properties: Record<string, unknown> | null;
|
|
196
194
|
title: string | null;
|
|
195
|
+
metadata: ConversationMetadata | null;
|
|
197
196
|
userId: string | null;
|
|
198
|
-
activeSubAgentId: string;
|
|
199
197
|
ref: {
|
|
200
198
|
type: "commit" | "tag" | "branch";
|
|
201
199
|
name: string;
|
|
202
200
|
hash: string;
|
|
203
201
|
} | null;
|
|
202
|
+
activeSubAgentId: string;
|
|
204
203
|
lastContextResolution: string | null;
|
|
204
|
+
userProperties: Record<string, unknown> | null;
|
|
205
205
|
} | undefined>;
|
|
206
206
|
/**
|
|
207
207
|
* Set active agent for a conversation (upsert operation)
|
|
@@ -9,20 +9,20 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
|
|
|
9
9
|
row: {
|
|
10
10
|
type: string;
|
|
11
11
|
id: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
12
14
|
agentId: string | null;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
15
17
|
properties: Record<string, unknown> | null;
|
|
16
|
-
userProperties: Record<string, unknown> | null;
|
|
17
18
|
metadata: Record<string, unknown> | null;
|
|
19
|
+
userProperties: Record<string, unknown> | null;
|
|
20
|
+
conversationId: string | null;
|
|
21
|
+
messageId: string | null;
|
|
18
22
|
serverMetadata: {
|
|
19
23
|
[k: string]: unknown;
|
|
20
24
|
authMethod?: string;
|
|
21
25
|
} | null;
|
|
22
|
-
createdAt: string;
|
|
23
|
-
updatedAt: string;
|
|
24
|
-
projectId: string;
|
|
25
|
-
tenantId: string;
|
|
26
26
|
};
|
|
27
27
|
conflict: false;
|
|
28
28
|
} | {
|
|
@@ -72,12 +72,12 @@ 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
|
-
conversationId: string;
|
|
76
|
-
messageId: string | null;
|
|
77
75
|
createdAt: string;
|
|
78
76
|
updatedAt: string;
|
|
79
77
|
projectId: string;
|
|
80
78
|
tenantId: string;
|
|
79
|
+
conversationId: string;
|
|
80
|
+
messageId: string | null;
|
|
81
81
|
details: string | null;
|
|
82
82
|
}>;
|
|
83
83
|
declare const createFeedbackBulk: (db: AgentsRunDatabaseClient) => (items: FeedbackInsert[]) => Promise<(typeof feedback.$inferSelect)[]>;
|
|
@@ -102,12 +102,12 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
102
102
|
}) => Promise<{
|
|
103
103
|
type: "positive" | "negative";
|
|
104
104
|
id: string;
|
|
105
|
-
conversationId: string;
|
|
106
|
-
messageId: string | null;
|
|
107
105
|
createdAt: string;
|
|
108
106
|
updatedAt: string;
|
|
109
107
|
projectId: string;
|
|
110
108
|
tenantId: string;
|
|
109
|
+
conversationId: string;
|
|
110
|
+
messageId: string | null;
|
|
111
111
|
details: string | null;
|
|
112
112
|
}>;
|
|
113
113
|
//#endregion
|
|
@@ -11,16 +11,16 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
-
conversationId: string;
|
|
15
|
-
properties: Record<string, unknown> | null;
|
|
16
|
-
userProperties: Record<string, unknown> | null;
|
|
17
|
-
metadata: MessageMetadata | null;
|
|
18
14
|
createdAt: string;
|
|
19
15
|
updatedAt: string;
|
|
20
16
|
projectId: string;
|
|
21
17
|
tenantId: string;
|
|
18
|
+
properties: Record<string, unknown> | null;
|
|
19
|
+
metadata: MessageMetadata | null;
|
|
22
20
|
content: MessageContent;
|
|
23
21
|
role: string;
|
|
22
|
+
userProperties: Record<string, unknown> | null;
|
|
23
|
+
conversationId: string;
|
|
24
24
|
fromSubAgentId: string | null;
|
|
25
25
|
toSubAgentId: string | null;
|
|
26
26
|
fromExternalAgentId: string | null;
|
|
@@ -184,16 +184,16 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
184
184
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
185
185
|
}) => Promise<{
|
|
186
186
|
id: string;
|
|
187
|
-
conversationId: string;
|
|
188
|
-
properties: Record<string, unknown> | null;
|
|
189
|
-
userProperties: Record<string, unknown> | null;
|
|
190
|
-
metadata: MessageMetadata | null;
|
|
191
187
|
createdAt: string;
|
|
192
188
|
updatedAt: string;
|
|
193
189
|
projectId: string;
|
|
194
190
|
tenantId: string;
|
|
191
|
+
properties: Record<string, unknown> | null;
|
|
192
|
+
metadata: MessageMetadata | null;
|
|
195
193
|
content: MessageContent;
|
|
196
194
|
role: string;
|
|
195
|
+
userProperties: Record<string, unknown> | null;
|
|
196
|
+
conversationId: string;
|
|
197
197
|
fromSubAgentId: string | null;
|
|
198
198
|
toSubAgentId: string | null;
|
|
199
199
|
fromExternalAgentId: string | null;
|
|
@@ -241,16 +241,16 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
241
241
|
messageId: string;
|
|
242
242
|
}) => Promise<{
|
|
243
243
|
id: string;
|
|
244
|
-
conversationId: string;
|
|
245
|
-
properties: Record<string, unknown> | null;
|
|
246
|
-
userProperties: Record<string, unknown> | null;
|
|
247
|
-
metadata: MessageMetadata | null;
|
|
248
244
|
createdAt: string;
|
|
249
245
|
updatedAt: string;
|
|
250
246
|
projectId: string;
|
|
251
247
|
tenantId: string;
|
|
248
|
+
properties: Record<string, unknown> | null;
|
|
249
|
+
metadata: MessageMetadata | null;
|
|
252
250
|
content: MessageContent;
|
|
253
251
|
role: string;
|
|
252
|
+
userProperties: Record<string, unknown> | null;
|
|
253
|
+
conversationId: string;
|
|
254
254
|
fromSubAgentId: string | null;
|
|
255
255
|
toSubAgentId: string | null;
|
|
256
256
|
fromExternalAgentId: string | null;
|
|
@@ -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
|
-
agentId: string;
|
|
12
|
-
metadata: TaskMetadataConfig | null;
|
|
13
11
|
createdAt: string;
|
|
14
12
|
updatedAt: string;
|
|
13
|
+
agentId: string;
|
|
15
14
|
projectId: string;
|
|
16
15
|
tenantId: string;
|
|
16
|
+
metadata: TaskMetadataConfig | null;
|
|
17
17
|
subAgentId: string;
|
|
18
|
+
status: string;
|
|
18
19
|
ref: {
|
|
19
20
|
type: "commit" | "tag" | "branch";
|
|
20
21
|
name: string;
|
|
21
22
|
hash: string;
|
|
22
23
|
} | null;
|
|
23
|
-
status: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|