@inkeep/agents-core 0.64.7 → 0.64.10
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 +108 -108
- package/dist/auth/auth-validation-schemas.d.ts +137 -137
- package/dist/data-access/manage/agents.d.ts +25 -25
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/skills.d.ts +10 -10
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +22 -22
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- 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 +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +354 -354
- package/dist/db/runtime/runtime-schema.d.ts +382 -382
- package/dist/validation/schemas/skills.d.ts +33 -33
- package/dist/validation/schemas.d.ts +358 -358
- package/package.json +1 -1
|
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
-
headers: Record<string, string> | null;
|
|
19
18
|
subAgentId: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
47
49
|
id: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
|
-
headers: Record<string, string> | null;
|
|
54
53
|
subAgentId: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
60
62
|
id: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
|
-
headers: Record<string, string> | null;
|
|
67
66
|
subAgentId: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -222,14 +222,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
222
222
|
headers?: Record<string, string> | null;
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
|
+
tenantId: string;
|
|
226
|
+
projectId: string;
|
|
225
227
|
id: string;
|
|
226
228
|
createdAt: string;
|
|
227
229
|
updatedAt: string;
|
|
228
|
-
tenantId: string;
|
|
229
|
-
projectId: string;
|
|
230
230
|
agentId: string;
|
|
231
|
-
headers: Record<string, string> | null;
|
|
232
231
|
subAgentId: string;
|
|
232
|
+
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -239,14 +239,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
239
239
|
scopes: SubAgentScopeConfig;
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
|
+
tenantId: string;
|
|
243
|
+
projectId: string;
|
|
242
244
|
id: string;
|
|
243
245
|
createdAt: string;
|
|
244
246
|
updatedAt: string;
|
|
245
|
-
tenantId: string;
|
|
246
|
-
projectId: string;
|
|
247
247
|
agentId: string;
|
|
248
|
-
headers: Record<string, string> | null;
|
|
249
248
|
subAgentId: string;
|
|
249
|
+
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -260,14 +260,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
260
260
|
headers?: Record<string, string> | null;
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
|
+
tenantId: string;
|
|
264
|
+
projectId: string;
|
|
263
265
|
id: string;
|
|
264
266
|
createdAt: string;
|
|
265
267
|
updatedAt: string;
|
|
266
|
-
tenantId: string;
|
|
267
|
-
projectId: string;
|
|
268
268
|
agentId: string;
|
|
269
|
-
headers: Record<string, string> | null;
|
|
270
269
|
subAgentId: string;
|
|
270
|
+
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,9 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
id: string;
|
|
13
15
|
name: string;
|
|
14
16
|
description: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
15
19
|
models: {
|
|
16
20
|
base?: {
|
|
17
21
|
model?: string | undefined;
|
|
@@ -35,20 +39,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
35
39
|
stopWhen: {
|
|
36
40
|
stepCountIs?: number | undefined;
|
|
37
41
|
} | null;
|
|
38
|
-
createdAt: string;
|
|
39
|
-
updatedAt: string;
|
|
40
|
-
tenantId: string;
|
|
41
|
-
projectId: string;
|
|
42
|
-
prompt: string | null;
|
|
43
42
|
agentId: string;
|
|
43
|
+
prompt: string | null;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
|
+
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
49
51
|
id: string;
|
|
50
52
|
name: string;
|
|
51
53
|
description: string | null;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
updatedAt: string;
|
|
52
56
|
models: {
|
|
53
57
|
base?: {
|
|
54
58
|
model?: string | undefined;
|
|
@@ -72,12 +76,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
72
76
|
stopWhen: {
|
|
73
77
|
stepCountIs?: number | undefined;
|
|
74
78
|
} | null;
|
|
75
|
-
createdAt: string;
|
|
76
|
-
updatedAt: string;
|
|
77
|
-
tenantId: string;
|
|
78
|
-
projectId: string;
|
|
79
|
-
prompt: string | null;
|
|
80
79
|
agentId: string;
|
|
80
|
+
prompt: string | null;
|
|
81
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -127,9 +127,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
|
+
tenantId: string;
|
|
131
|
+
projectId: string;
|
|
130
132
|
id: string;
|
|
131
133
|
name: string;
|
|
132
134
|
description: string | null;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
133
137
|
models: {
|
|
134
138
|
base?: {
|
|
135
139
|
model?: string | undefined;
|
|
@@ -153,12 +157,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
153
157
|
stopWhen: {
|
|
154
158
|
stepCountIs?: number | undefined;
|
|
155
159
|
} | null;
|
|
156
|
-
createdAt: string;
|
|
157
|
-
updatedAt: string;
|
|
158
|
-
tenantId: string;
|
|
159
|
-
projectId: string;
|
|
160
|
-
prompt: string | null;
|
|
161
160
|
agentId: string;
|
|
161
|
+
prompt: string | null;
|
|
162
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
163
163
|
}>;
|
|
164
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -20,19 +20,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
+
tenantId: string;
|
|
24
|
+
projectId: string;
|
|
23
25
|
id: string;
|
|
24
26
|
name: string;
|
|
25
27
|
description: string | null;
|
|
26
28
|
createdAt: string;
|
|
27
29
|
updatedAt: string;
|
|
28
|
-
|
|
29
|
-
projectId: string;
|
|
30
|
+
credentialReferenceId: string | null;
|
|
30
31
|
headers: Record<string, string> | null;
|
|
31
32
|
config: {
|
|
32
33
|
type: "mcp";
|
|
33
34
|
mcp: ToolMcpConfig;
|
|
34
35
|
};
|
|
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
|
+
tenantId: string;
|
|
82
|
+
projectId: string;
|
|
81
83
|
id: string;
|
|
82
84
|
name: string;
|
|
83
85
|
description: string | null;
|
|
84
86
|
createdAt: string;
|
|
85
87
|
updatedAt: string;
|
|
86
|
-
|
|
87
|
-
projectId: string;
|
|
88
|
+
credentialReferenceId: string | null;
|
|
88
89
|
headers: Record<string, string> | null;
|
|
89
90
|
config: {
|
|
90
91
|
type: "mcp";
|
|
91
92
|
mcp: ToolMcpConfig;
|
|
92
93
|
};
|
|
93
|
-
credentialReferenceId: string | null;
|
|
94
94
|
credentialScope: string;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -135,18 +135,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
+
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
138
140
|
id: string;
|
|
141
|
+
toolId: string;
|
|
139
142
|
createdAt: string;
|
|
140
143
|
updatedAt: string;
|
|
141
|
-
tenantId: string;
|
|
142
|
-
projectId: string;
|
|
143
144
|
agentId: string;
|
|
144
|
-
|
|
145
|
-
headers: Record<string, string> | null;
|
|
145
|
+
subAgentId: string;
|
|
146
146
|
toolPolicies: Record<string, {
|
|
147
147
|
needsApproval?: boolean;
|
|
148
148
|
}> | null;
|
|
149
|
-
|
|
149
|
+
headers: Record<string, string> | null;
|
|
150
150
|
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -154,18 +154,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
+
tenantId: string;
|
|
158
|
+
projectId: string;
|
|
157
159
|
id: string;
|
|
160
|
+
toolId: string;
|
|
158
161
|
createdAt: string;
|
|
159
162
|
updatedAt: string;
|
|
160
|
-
tenantId: string;
|
|
161
|
-
projectId: string;
|
|
162
163
|
agentId: string;
|
|
163
|
-
|
|
164
|
-
headers: Record<string, string> | null;
|
|
164
|
+
subAgentId: string;
|
|
165
165
|
toolPolicies: Record<string, {
|
|
166
166
|
needsApproval?: boolean;
|
|
167
167
|
}> | null;
|
|
168
|
-
|
|
168
|
+
headers: Record<string, string> | null;
|
|
169
169
|
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
@@ -182,18 +182,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
+
tenantId: string;
|
|
186
|
+
projectId: string;
|
|
185
187
|
id: string;
|
|
188
|
+
toolId: string;
|
|
186
189
|
createdAt: string;
|
|
187
190
|
updatedAt: string;
|
|
188
|
-
tenantId: string;
|
|
189
|
-
projectId: string;
|
|
190
191
|
agentId: string;
|
|
191
|
-
|
|
192
|
-
headers: Record<string, string> | null;
|
|
192
|
+
subAgentId: string;
|
|
193
193
|
toolPolicies: Record<string, {
|
|
194
194
|
needsApproval?: boolean;
|
|
195
195
|
}> | null;
|
|
196
|
-
|
|
196
|
+
headers: Record<string, string> | null;
|
|
197
197
|
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -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
|
+
tenantId: string;
|
|
206
|
+
projectId: string;
|
|
205
207
|
id: string;
|
|
206
208
|
name: string;
|
|
207
209
|
description: string | null;
|
|
208
210
|
createdAt: string;
|
|
209
211
|
updatedAt: string;
|
|
210
|
-
|
|
211
|
-
projectId: string;
|
|
212
|
+
credentialReferenceId: string | null;
|
|
212
213
|
headers: Record<string, string> | null;
|
|
213
214
|
config: {
|
|
214
215
|
type: "mcp";
|
|
215
216
|
mcp: ToolMcpConfig;
|
|
216
217
|
};
|
|
217
|
-
credentialReferenceId: string | null;
|
|
218
218
|
credentialScope: string;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | 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" | "header" | "body";
|
|
44
44
|
key: string;
|
|
@@ -8,12 +8,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
12
14
|
name: string | null;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
19
|
publicId: string;
|
|
@@ -22,12 +22,12 @@ 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
|
+
tenantId: string;
|
|
26
|
+
projectId: string;
|
|
25
27
|
id: string;
|
|
26
28
|
name: string | null;
|
|
27
29
|
createdAt: string;
|
|
28
30
|
updatedAt: string;
|
|
29
|
-
tenantId: string;
|
|
30
|
-
projectId: string;
|
|
31
31
|
agentId: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
33
|
publicId: string;
|
|
@@ -39,12 +39,12 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
+
tenantId: string;
|
|
43
|
+
projectId: string;
|
|
42
44
|
id: string;
|
|
43
45
|
name: string | null;
|
|
44
46
|
createdAt: string;
|
|
45
47
|
updatedAt: string;
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
48
|
agentId: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
50
|
publicId: string;
|
|
@@ -66,12 +66,12 @@ 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;
|
|
69
71
|
id: string;
|
|
70
72
|
name: string | null;
|
|
71
73
|
createdAt: string;
|
|
72
74
|
updatedAt: string;
|
|
73
|
-
tenantId: string;
|
|
74
|
-
projectId: string;
|
|
75
75
|
agentId: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
77
|
publicId: string;
|
|
@@ -5,16 +5,16 @@ 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
|
-
|
|
8
|
+
tenantId: string | null;
|
|
9
|
+
projectId: string | null;
|
|
9
10
|
id: string;
|
|
10
11
|
name: string;
|
|
11
12
|
description: string | null;
|
|
13
|
+
type: AppType;
|
|
12
14
|
createdAt: string;
|
|
13
15
|
updatedAt: string;
|
|
14
|
-
tenantId: string | null;
|
|
15
|
-
projectId: string | null;
|
|
16
|
-
enabled: boolean;
|
|
17
16
|
prompt: string | null;
|
|
17
|
+
enabled: boolean;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
20
20
|
webClient: {
|
|
@@ -61,16 +61,16 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
64
|
-
|
|
64
|
+
tenantId: string | null;
|
|
65
|
+
projectId: string | null;
|
|
65
66
|
id: string;
|
|
66
67
|
name: string;
|
|
67
68
|
description: string | null;
|
|
69
|
+
type: AppType;
|
|
68
70
|
createdAt: string;
|
|
69
71
|
updatedAt: string;
|
|
70
|
-
tenantId: string | null;
|
|
71
|
-
projectId: string | null;
|
|
72
|
-
enabled: boolean;
|
|
73
72
|
prompt: string | null;
|
|
73
|
+
enabled: boolean;
|
|
74
74
|
config: {
|
|
75
75
|
type: "web_client";
|
|
76
76
|
webClient: {
|
|
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
+
tenantId: string;
|
|
19
|
+
projectId: string;
|
|
18
20
|
id: string;
|
|
21
|
+
metadata: ConversationMetadata | null;
|
|
19
22
|
ref: {
|
|
20
23
|
type: "commit" | "tag" | "branch";
|
|
21
24
|
name: string;
|
|
22
25
|
hash: string;
|
|
23
26
|
} | null;
|
|
24
|
-
|
|
27
|
+
userId: string | null;
|
|
25
28
|
createdAt: string;
|
|
26
29
|
updatedAt: string;
|
|
27
|
-
|
|
28
|
-
projectId: string;
|
|
29
|
-
metadata: ConversationMetadata | null;
|
|
30
|
+
title: string | null;
|
|
30
31
|
agentId: string | null;
|
|
31
|
-
userId: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
84
84
|
scopes: ProjectScopeConfig;
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
|
+
tenantId: string;
|
|
88
|
+
projectId: string;
|
|
87
89
|
id: string;
|
|
90
|
+
metadata: ConversationMetadata | null;
|
|
88
91
|
ref: {
|
|
89
92
|
type: "commit" | "tag" | "branch";
|
|
90
93
|
name: string;
|
|
91
94
|
hash: string;
|
|
92
95
|
} | null;
|
|
93
|
-
|
|
96
|
+
userId: string | null;
|
|
94
97
|
createdAt: string;
|
|
95
98
|
updatedAt: string;
|
|
96
|
-
|
|
97
|
-
projectId: string;
|
|
98
|
-
metadata: ConversationMetadata | null;
|
|
99
|
+
title: string | null;
|
|
99
100
|
agentId: string | null;
|
|
100
|
-
userId: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
120
120
|
metadata?: ConversationMetadata | null | undefined;
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
|
+
tenantId: string;
|
|
124
|
+
projectId: string;
|
|
123
125
|
id: string;
|
|
126
|
+
metadata: ConversationMetadata | null;
|
|
124
127
|
ref: {
|
|
125
128
|
type: "commit" | "tag" | "branch";
|
|
126
129
|
name: string;
|
|
127
130
|
hash: string;
|
|
128
131
|
} | null;
|
|
129
|
-
|
|
132
|
+
userId: string | null;
|
|
130
133
|
createdAt: string;
|
|
131
134
|
updatedAt: string;
|
|
132
|
-
|
|
133
|
-
projectId: string;
|
|
134
|
-
metadata: ConversationMetadata | null;
|
|
135
|
+
title: string | null;
|
|
135
136
|
agentId: string | null;
|
|
136
|
-
userId: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
+
tenantId: string;
|
|
156
|
+
projectId: string;
|
|
155
157
|
id: string;
|
|
158
|
+
metadata: ConversationMetadata | null;
|
|
156
159
|
ref: {
|
|
157
160
|
type: "commit" | "tag" | "branch";
|
|
158
161
|
name: string;
|
|
159
162
|
hash: string;
|
|
160
163
|
} | null;
|
|
161
|
-
|
|
164
|
+
userId: string | null;
|
|
162
165
|
createdAt: string;
|
|
163
166
|
updatedAt: string;
|
|
164
|
-
|
|
165
|
-
projectId: string;
|
|
166
|
-
metadata: ConversationMetadata | null;
|
|
167
|
+
title: string | null;
|
|
167
168
|
agentId: string | null;
|
|
168
|
-
userId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -10,15 +10,15 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
id: string;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
13
|
tenantId: string;
|
|
17
14
|
projectId: string;
|
|
15
|
+
id: string;
|
|
18
16
|
metadata: MessageMetadata | null;
|
|
19
17
|
content: MessageContent;
|
|
20
|
-
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
21
20
|
conversationId: string;
|
|
21
|
+
role: string;
|
|
22
22
|
fromSubAgentId: string | null;
|
|
23
23
|
toSubAgentId: string | null;
|
|
24
24
|
fromExternalAgentId: string | null;
|
|
@@ -144,15 +144,15 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
144
144
|
scopes: ProjectScopeConfig;
|
|
145
145
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
146
146
|
}) => Promise<{
|
|
147
|
-
id: string;
|
|
148
|
-
createdAt: string;
|
|
149
|
-
updatedAt: string;
|
|
150
147
|
tenantId: string;
|
|
151
148
|
projectId: string;
|
|
149
|
+
id: string;
|
|
152
150
|
metadata: MessageMetadata | null;
|
|
153
151
|
content: MessageContent;
|
|
154
|
-
|
|
152
|
+
createdAt: string;
|
|
153
|
+
updatedAt: string;
|
|
155
154
|
conversationId: string;
|
|
155
|
+
role: string;
|
|
156
156
|
fromSubAgentId: string | null;
|
|
157
157
|
toSubAgentId: string | null;
|
|
158
158
|
fromExternalAgentId: string | null;
|
|
@@ -197,15 +197,15 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
197
197
|
scopes: ProjectScopeConfig;
|
|
198
198
|
messageId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
-
id: string;
|
|
201
|
-
createdAt: string;
|
|
202
|
-
updatedAt: string;
|
|
203
200
|
tenantId: string;
|
|
204
201
|
projectId: string;
|
|
202
|
+
id: string;
|
|
205
203
|
metadata: MessageMetadata | null;
|
|
206
204
|
content: MessageContent;
|
|
207
|
-
|
|
205
|
+
createdAt: string;
|
|
206
|
+
updatedAt: string;
|
|
208
207
|
conversationId: string;
|
|
208
|
+
role: string;
|
|
209
209
|
fromSubAgentId: string | null;
|
|
210
210
|
toSubAgentId: string | null;
|
|
211
211
|
fromExternalAgentId: string | null;
|
|
@@ -7,7 +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;
|
|
10
12
|
id: string;
|
|
13
|
+
metadata: TaskMetadataConfig | null;
|
|
11
14
|
ref: {
|
|
12
15
|
type: "commit" | "tag" | "branch";
|
|
13
16
|
name: string;
|
|
@@ -15,9 +18,6 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
15
18
|
} | null;
|
|
16
19
|
createdAt: string;
|
|
17
20
|
updatedAt: string;
|
|
18
|
-
tenantId: string;
|
|
19
|
-
projectId: string;
|
|
20
|
-
metadata: TaskMetadataConfig | null;
|
|
21
21
|
agentId: string;
|
|
22
22
|
subAgentId: string;
|
|
23
23
|
status: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
2
2
|
|
|
3
3
|
//#region src/db/manage/dolt-safe-jsonb.d.ts
|
|
4
4
|
declare function encodeBackslashes(value: unknown): unknown;
|
|
@@ -7,6 +7,6 @@ declare function decodeBackslashes(value: unknown): unknown;
|
|
|
7
7
|
* Drop-in replacement for drizzle-orm's `jsonb()`.
|
|
8
8
|
* Encodes backslashes on write and decodes on read to work around the Doltgres bug.
|
|
9
9
|
*/
|
|
10
|
-
declare function jsonb(name: string): ReturnType<typeof
|
|
10
|
+
declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core0.jsonb>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { decodeBackslashes, encodeBackslashes, jsonb };
|