@inkeep/agents-core 0.0.0-dev-20260120221941 → 0.0.0-dev-20260120222159
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-validation-schemas.d.ts +17 -17
- package/dist/data-access/manage/agents.d.ts +16 -16
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +19 -19
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/runtime/runtime-schema.d.ts +6 -6
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +251 -251
- package/package.json +1 -1
|
@@ -11,11 +11,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
11
11
|
tenantId: string;
|
|
12
12
|
projectId: string;
|
|
13
13
|
id: string;
|
|
14
|
+
agentId: string;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
|
-
subAgentId: string;
|
|
17
17
|
headers: Record<string, string> | null;
|
|
18
|
-
|
|
18
|
+
subAgentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -46,11 +46,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
46
46
|
tenantId: string;
|
|
47
47
|
projectId: string;
|
|
48
48
|
id: string;
|
|
49
|
+
agentId: string;
|
|
49
50
|
createdAt: string;
|
|
50
51
|
updatedAt: string;
|
|
51
|
-
subAgentId: string;
|
|
52
52
|
headers: Record<string, string> | null;
|
|
53
|
-
|
|
53
|
+
subAgentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -59,11 +59,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
59
59
|
tenantId: string;
|
|
60
60
|
projectId: string;
|
|
61
61
|
id: string;
|
|
62
|
+
agentId: string;
|
|
62
63
|
createdAt: string;
|
|
63
64
|
updatedAt: string;
|
|
64
|
-
subAgentId: string;
|
|
65
65
|
headers: Record<string, string> | null;
|
|
66
|
-
|
|
66
|
+
subAgentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -212,11 +212,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
212
212
|
tenantId: string;
|
|
213
213
|
projectId: string;
|
|
214
214
|
id: string;
|
|
215
|
+
agentId: string;
|
|
215
216
|
createdAt: string;
|
|
216
217
|
updatedAt: string;
|
|
217
|
-
subAgentId: string;
|
|
218
218
|
headers: Record<string, string> | null;
|
|
219
|
-
|
|
219
|
+
subAgentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -229,11 +229,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
229
229
|
tenantId: string;
|
|
230
230
|
projectId: string;
|
|
231
231
|
id: string;
|
|
232
|
+
agentId: string;
|
|
232
233
|
createdAt: string;
|
|
233
234
|
updatedAt: string;
|
|
234
|
-
subAgentId: string;
|
|
235
235
|
headers: Record<string, string> | null;
|
|
236
|
-
|
|
236
|
+
subAgentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -250,11 +250,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
250
250
|
tenantId: string;
|
|
251
251
|
projectId: string;
|
|
252
252
|
id: string;
|
|
253
|
+
agentId: string;
|
|
253
254
|
createdAt: string;
|
|
254
255
|
updatedAt: string;
|
|
255
|
-
subAgentId: string;
|
|
256
256
|
headers: Record<string, string> | null;
|
|
257
|
-
|
|
257
|
+
subAgentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -11,10 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
tenantId: string;
|
|
12
12
|
projectId: string;
|
|
13
13
|
id: string;
|
|
14
|
-
createdAt: string;
|
|
15
14
|
name: string;
|
|
16
|
-
updatedAt: string;
|
|
17
15
|
description: string | null;
|
|
16
|
+
prompt: string | null;
|
|
17
|
+
agentId: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
18
20
|
models: {
|
|
19
21
|
base?: {
|
|
20
22
|
model?: string | undefined;
|
|
@@ -32,8 +34,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
32
34
|
stopWhen: {
|
|
33
35
|
stepCountIs?: number | undefined;
|
|
34
36
|
} | null;
|
|
35
|
-
agentId: string;
|
|
36
|
-
prompt: string | null;
|
|
37
37
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -42,10 +42,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
42
42
|
tenantId: string;
|
|
43
43
|
projectId: string;
|
|
44
44
|
id: string;
|
|
45
|
-
createdAt: string;
|
|
46
45
|
name: string;
|
|
47
|
-
updatedAt: string;
|
|
48
46
|
description: string | null;
|
|
47
|
+
prompt: string | null;
|
|
48
|
+
agentId: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
49
51
|
models: {
|
|
50
52
|
base?: {
|
|
51
53
|
model?: string | undefined;
|
|
@@ -63,8 +65,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
65
|
stopWhen: {
|
|
64
66
|
stepCountIs?: number | undefined;
|
|
65
67
|
} | null;
|
|
66
|
-
agentId: string;
|
|
67
|
-
prompt: string | null;
|
|
68
68
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -111,10 +111,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
111
111
|
tenantId: string;
|
|
112
112
|
projectId: string;
|
|
113
113
|
id: string;
|
|
114
|
-
createdAt: string;
|
|
115
114
|
name: string;
|
|
116
|
-
updatedAt: string;
|
|
117
115
|
description: string | null;
|
|
116
|
+
prompt: string | null;
|
|
117
|
+
agentId: string;
|
|
118
|
+
createdAt: string;
|
|
119
|
+
updatedAt: string;
|
|
118
120
|
models: {
|
|
119
121
|
base?: {
|
|
120
122
|
model?: string | undefined;
|
|
@@ -132,8 +134,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
132
134
|
stopWhen: {
|
|
133
135
|
stepCountIs?: number | undefined;
|
|
134
136
|
} | null;
|
|
135
|
-
agentId: string;
|
|
136
|
-
prompt: string | null;
|
|
137
137
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -15,16 +15,16 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
id: string;
|
|
18
|
-
createdAt: string;
|
|
19
18
|
name: string;
|
|
20
|
-
updatedAt: string;
|
|
21
19
|
description: string | null;
|
|
22
|
-
headers: Record<string, string> | null;
|
|
23
20
|
config: {
|
|
24
21
|
type: "mcp";
|
|
25
22
|
mcp: ToolMcpConfig;
|
|
26
23
|
};
|
|
27
24
|
credentialReferenceId: string | null;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
headers: Record<string, string> | null;
|
|
28
28
|
credentialScope: string;
|
|
29
29
|
imageUrl: string | null;
|
|
30
30
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -64,16 +64,16 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
64
64
|
tenantId: string;
|
|
65
65
|
projectId: string;
|
|
66
66
|
id: string;
|
|
67
|
-
createdAt: string;
|
|
68
67
|
name: string;
|
|
69
|
-
updatedAt: string;
|
|
70
68
|
description: string | null;
|
|
71
|
-
headers: Record<string, string> | null;
|
|
72
69
|
config: {
|
|
73
70
|
type: "mcp";
|
|
74
71
|
mcp: ToolMcpConfig;
|
|
75
72
|
};
|
|
76
73
|
credentialReferenceId: string | null;
|
|
74
|
+
createdAt: string;
|
|
75
|
+
updatedAt: string;
|
|
76
|
+
headers: Record<string, string> | null;
|
|
77
77
|
credentialScope: string;
|
|
78
78
|
imageUrl: string | null;
|
|
79
79
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -119,16 +119,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
119
119
|
tenantId: string;
|
|
120
120
|
projectId: string;
|
|
121
121
|
id: string;
|
|
122
|
+
agentId: string;
|
|
122
123
|
createdAt: string;
|
|
123
124
|
updatedAt: string;
|
|
124
|
-
subAgentId: string;
|
|
125
|
-
headers: Record<string, string> | null;
|
|
126
|
-
agentId: string;
|
|
127
125
|
toolId: string;
|
|
128
|
-
|
|
126
|
+
headers: Record<string, string> | null;
|
|
129
127
|
toolPolicies: Record<string, {
|
|
130
128
|
needsApproval?: boolean;
|
|
131
129
|
}> | null;
|
|
130
|
+
subAgentId: string;
|
|
131
|
+
selectedTools: string[] | null;
|
|
132
132
|
}>;
|
|
133
133
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
134
134
|
scopes: AgentScopeConfig;
|
|
@@ -138,16 +138,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
138
138
|
tenantId: string;
|
|
139
139
|
projectId: string;
|
|
140
140
|
id: string;
|
|
141
|
+
agentId: string;
|
|
141
142
|
createdAt: string;
|
|
142
143
|
updatedAt: string;
|
|
143
|
-
subAgentId: string;
|
|
144
|
-
headers: Record<string, string> | null;
|
|
145
|
-
agentId: string;
|
|
146
144
|
toolId: string;
|
|
147
|
-
|
|
145
|
+
headers: Record<string, string> | null;
|
|
148
146
|
toolPolicies: Record<string, {
|
|
149
147
|
needsApproval?: boolean;
|
|
150
148
|
}> | null;
|
|
149
|
+
subAgentId: string;
|
|
150
|
+
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
153
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -166,16 +166,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
166
166
|
tenantId: string;
|
|
167
167
|
projectId: string;
|
|
168
168
|
id: string;
|
|
169
|
+
agentId: string;
|
|
169
170
|
createdAt: string;
|
|
170
171
|
updatedAt: string;
|
|
171
|
-
subAgentId: string;
|
|
172
|
-
headers: Record<string, string> | null;
|
|
173
|
-
agentId: string;
|
|
174
172
|
toolId: string;
|
|
175
|
-
|
|
173
|
+
headers: Record<string, string> | null;
|
|
176
174
|
toolPolicies: Record<string, {
|
|
177
175
|
needsApproval?: boolean;
|
|
178
176
|
}> | null;
|
|
177
|
+
subAgentId: string;
|
|
178
|
+
selectedTools: string[] | null;
|
|
179
179
|
}>;
|
|
180
180
|
/**
|
|
181
181
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -186,16 +186,16 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
186
186
|
tenantId: string;
|
|
187
187
|
projectId: string;
|
|
188
188
|
id: string;
|
|
189
|
-
createdAt: string;
|
|
190
189
|
name: string;
|
|
191
|
-
updatedAt: string;
|
|
192
190
|
description: string | null;
|
|
193
|
-
headers: Record<string, string> | null;
|
|
194
191
|
config: {
|
|
195
192
|
type: "mcp";
|
|
196
193
|
mcp: ToolMcpConfig;
|
|
197
194
|
};
|
|
198
195
|
credentialReferenceId: string | null;
|
|
196
|
+
createdAt: string;
|
|
197
|
+
updatedAt: string;
|
|
198
|
+
headers: Record<string, string> | null;
|
|
199
199
|
credentialScope: string;
|
|
200
200
|
imageUrl: string | null;
|
|
201
201
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -10,29 +10,29 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
tenantId: string;
|
|
11
11
|
projectId: string;
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
13
|
name: string | null;
|
|
15
|
-
updatedAt: string;
|
|
16
|
-
expiresAt: string | null;
|
|
17
14
|
agentId: string;
|
|
18
15
|
publicId: string;
|
|
19
16
|
keyHash: string;
|
|
20
17
|
keyPrefix: string;
|
|
21
18
|
lastUsedAt: string | null;
|
|
19
|
+
expiresAt: string | null;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
24
|
tenantId: string;
|
|
25
25
|
projectId: string;
|
|
26
26
|
id: string;
|
|
27
|
-
createdAt: string;
|
|
28
27
|
name: string | null;
|
|
29
|
-
updatedAt: string;
|
|
30
|
-
expiresAt: string | null;
|
|
31
28
|
agentId: string;
|
|
32
29
|
publicId: string;
|
|
33
30
|
keyHash: string;
|
|
34
31
|
keyPrefix: string;
|
|
35
32
|
lastUsedAt: string | null;
|
|
33
|
+
expiresAt: string | null;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
@@ -41,15 +41,15 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
41
41
|
tenantId: string;
|
|
42
42
|
projectId: string;
|
|
43
43
|
id: string;
|
|
44
|
-
createdAt: string;
|
|
45
44
|
name: string | null;
|
|
46
|
-
updatedAt: string;
|
|
47
|
-
expiresAt: string | null;
|
|
48
45
|
agentId: string;
|
|
49
46
|
publicId: string;
|
|
50
47
|
keyHash: string;
|
|
51
48
|
keyPrefix: string;
|
|
52
49
|
lastUsedAt: string | null;
|
|
50
|
+
expiresAt: string | null;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -68,15 +68,15 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
68
68
|
tenantId: string;
|
|
69
69
|
projectId: string;
|
|
70
70
|
id: string;
|
|
71
|
-
createdAt: string;
|
|
72
71
|
name: string | null;
|
|
73
|
-
updatedAt: string;
|
|
74
|
-
expiresAt: string | null;
|
|
75
72
|
agentId: string;
|
|
76
73
|
publicId: string;
|
|
77
74
|
keyHash: string;
|
|
78
75
|
keyPrefix: string;
|
|
79
76
|
lastUsedAt: string | null;
|
|
77
|
+
expiresAt: string | null;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|
|
@@ -18,17 +18,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
18
18
|
tenantId: string;
|
|
19
19
|
projectId: string;
|
|
20
20
|
id: string;
|
|
21
|
+
title: string | null;
|
|
22
|
+
agentId: string | null;
|
|
21
23
|
createdAt: string;
|
|
22
24
|
updatedAt: string;
|
|
23
|
-
|
|
25
|
+
userId: string | null;
|
|
24
26
|
metadata: ConversationMetadata | null;
|
|
25
27
|
ref: {
|
|
26
|
-
type: "
|
|
28
|
+
type: "tag" | "commit" | "branch";
|
|
27
29
|
name: string;
|
|
28
30
|
hash: string;
|
|
29
31
|
} | null;
|
|
30
|
-
userId: string | null;
|
|
31
|
-
agentId: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
43
43
|
agentId: string | null;
|
|
44
44
|
activeSubAgentId: string;
|
|
45
45
|
ref: {
|
|
46
|
-
type: "
|
|
46
|
+
type: "tag" | "commit" | "branch";
|
|
47
47
|
name: string;
|
|
48
48
|
hash: string;
|
|
49
49
|
} | null;
|
|
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
|
|
|
69
69
|
agentId: string | null;
|
|
70
70
|
activeSubAgentId: string;
|
|
71
71
|
ref: {
|
|
72
|
-
type: "
|
|
72
|
+
type: "tag" | "commit" | "branch";
|
|
73
73
|
name: string;
|
|
74
74
|
hash: string;
|
|
75
75
|
} | null;
|
|
@@ -87,17 +87,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
87
87
|
tenantId: string;
|
|
88
88
|
projectId: string;
|
|
89
89
|
id: string;
|
|
90
|
+
title: string | null;
|
|
91
|
+
agentId: string | null;
|
|
90
92
|
createdAt: string;
|
|
91
93
|
updatedAt: string;
|
|
92
|
-
|
|
94
|
+
userId: string | null;
|
|
93
95
|
metadata: ConversationMetadata | null;
|
|
94
96
|
ref: {
|
|
95
|
-
type: "
|
|
97
|
+
type: "tag" | "commit" | "branch";
|
|
96
98
|
name: string;
|
|
97
99
|
hash: string;
|
|
98
100
|
} | null;
|
|
99
|
-
userId: string | null;
|
|
100
|
-
agentId: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
107
107
|
tenantId: string;
|
|
108
108
|
id: string;
|
|
109
109
|
ref: {
|
|
110
|
-
type: "
|
|
110
|
+
type: "tag" | "commit" | "branch";
|
|
111
111
|
name: string;
|
|
112
112
|
hash: string;
|
|
113
113
|
};
|
|
@@ -123,17 +123,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
123
123
|
tenantId: string;
|
|
124
124
|
projectId: string;
|
|
125
125
|
id: string;
|
|
126
|
+
title: string | null;
|
|
127
|
+
agentId: string | null;
|
|
126
128
|
createdAt: string;
|
|
127
129
|
updatedAt: string;
|
|
128
|
-
|
|
130
|
+
userId: string | null;
|
|
129
131
|
metadata: ConversationMetadata | null;
|
|
130
132
|
ref: {
|
|
131
|
-
type: "
|
|
133
|
+
type: "tag" | "commit" | "branch";
|
|
132
134
|
name: string;
|
|
133
135
|
hash: string;
|
|
134
136
|
} | null;
|
|
135
|
-
userId: string | null;
|
|
136
|
-
agentId: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -155,17 +155,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
155
155
|
tenantId: string;
|
|
156
156
|
projectId: string;
|
|
157
157
|
id: string;
|
|
158
|
+
title: string | null;
|
|
159
|
+
agentId: string | null;
|
|
158
160
|
createdAt: string;
|
|
159
161
|
updatedAt: string;
|
|
160
|
-
|
|
162
|
+
userId: string | null;
|
|
161
163
|
metadata: ConversationMetadata | null;
|
|
162
164
|
ref: {
|
|
163
|
-
type: "
|
|
165
|
+
type: "tag" | "commit" | "branch";
|
|
164
166
|
name: string;
|
|
165
167
|
hash: string;
|
|
166
168
|
} | null;
|
|
167
|
-
userId: string | null;
|
|
168
|
-
agentId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -16,19 +16,19 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
metadata: MessageMetadata | null;
|
|
18
18
|
content: MessageContent;
|
|
19
|
+
role: string;
|
|
20
|
+
conversationId: string;
|
|
19
21
|
fromSubAgentId: string | null;
|
|
20
22
|
toSubAgentId: string | null;
|
|
21
23
|
fromExternalAgentId: string | null;
|
|
22
24
|
toExternalAgentId: string | null;
|
|
23
|
-
taskId: string | null;
|
|
24
|
-
a2aTaskId: string | null;
|
|
25
|
-
role: string;
|
|
26
|
-
conversationId: string;
|
|
27
25
|
fromTeamAgentId: string | null;
|
|
28
26
|
toTeamAgentId: string | null;
|
|
29
27
|
visibility: string;
|
|
30
28
|
messageType: string;
|
|
29
|
+
taskId: string | null;
|
|
31
30
|
parentMessageId: string | null;
|
|
31
|
+
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -147,19 +147,19 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
147
147
|
updatedAt: string;
|
|
148
148
|
metadata: MessageMetadata | null;
|
|
149
149
|
content: MessageContent;
|
|
150
|
+
role: string;
|
|
151
|
+
conversationId: string;
|
|
150
152
|
fromSubAgentId: string | null;
|
|
151
153
|
toSubAgentId: string | null;
|
|
152
154
|
fromExternalAgentId: string | null;
|
|
153
155
|
toExternalAgentId: string | null;
|
|
154
|
-
taskId: string | null;
|
|
155
|
-
a2aTaskId: string | null;
|
|
156
|
-
role: string;
|
|
157
|
-
conversationId: string;
|
|
158
156
|
fromTeamAgentId: string | null;
|
|
159
157
|
toTeamAgentId: string | null;
|
|
160
158
|
visibility: string;
|
|
161
159
|
messageType: string;
|
|
160
|
+
taskId: string | null;
|
|
162
161
|
parentMessageId: string | null;
|
|
162
|
+
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -200,19 +200,19 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
200
200
|
updatedAt: string;
|
|
201
201
|
metadata: MessageMetadata | null;
|
|
202
202
|
content: MessageContent;
|
|
203
|
+
role: string;
|
|
204
|
+
conversationId: string;
|
|
203
205
|
fromSubAgentId: string | null;
|
|
204
206
|
toSubAgentId: string | null;
|
|
205
207
|
fromExternalAgentId: string | null;
|
|
206
208
|
toExternalAgentId: string | null;
|
|
207
|
-
taskId: string | null;
|
|
208
|
-
a2aTaskId: string | null;
|
|
209
|
-
role: string;
|
|
210
|
-
conversationId: string;
|
|
211
209
|
fromTeamAgentId: string | null;
|
|
212
210
|
toTeamAgentId: string | null;
|
|
213
211
|
visibility: string;
|
|
214
212
|
messageType: string;
|
|
213
|
+
taskId: string | null;
|
|
215
214
|
parentMessageId: string | null;
|
|
215
|
+
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -9,18 +9,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
9
9
|
tenantId: string;
|
|
10
10
|
projectId: string;
|
|
11
11
|
id: string;
|
|
12
|
+
agentId: string;
|
|
12
13
|
createdAt: string;
|
|
13
14
|
updatedAt: string;
|
|
14
15
|
metadata: TaskMetadataConfig | null;
|
|
15
|
-
subAgentId: string;
|
|
16
16
|
ref: {
|
|
17
|
-
type: "
|
|
17
|
+
type: "tag" | "commit" | "branch";
|
|
18
18
|
name: string;
|
|
19
19
|
hash: string;
|
|
20
20
|
} | null;
|
|
21
21
|
status: string;
|
|
22
|
-
agentId: string;
|
|
23
22
|
contextId: string;
|
|
23
|
+
subAgentId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|
|
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
36
36
|
updatedAt: string;
|
|
37
37
|
contextId: string;
|
|
38
38
|
ref: {
|
|
39
|
-
type: "
|
|
39
|
+
type: "tag" | "commit" | "branch";
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|
|
@@ -216,7 +216,7 @@ declare const conversations: drizzle_orm_pg_core1600.PgTableWithColumns<{
|
|
|
216
216
|
dataType: "json";
|
|
217
217
|
columnType: "PgJsonb";
|
|
218
218
|
data: {
|
|
219
|
-
type: "
|
|
219
|
+
type: "tag" | "commit" | "branch";
|
|
220
220
|
name: string;
|
|
221
221
|
hash: string;
|
|
222
222
|
};
|
|
@@ -232,7 +232,7 @@ declare const conversations: drizzle_orm_pg_core1600.PgTableWithColumns<{
|
|
|
232
232
|
generated: undefined;
|
|
233
233
|
}, {}, {
|
|
234
234
|
$type: {
|
|
235
|
-
type: "
|
|
235
|
+
type: "tag" | "commit" | "branch";
|
|
236
236
|
name: string;
|
|
237
237
|
hash: string;
|
|
238
238
|
};
|
|
@@ -413,7 +413,7 @@ declare const tasks: drizzle_orm_pg_core1600.PgTableWithColumns<{
|
|
|
413
413
|
dataType: "json";
|
|
414
414
|
columnType: "PgJsonb";
|
|
415
415
|
data: {
|
|
416
|
-
type: "
|
|
416
|
+
type: "tag" | "commit" | "branch";
|
|
417
417
|
name: string;
|
|
418
418
|
hash: string;
|
|
419
419
|
};
|
|
@@ -429,7 +429,7 @@ declare const tasks: drizzle_orm_pg_core1600.PgTableWithColumns<{
|
|
|
429
429
|
generated: undefined;
|
|
430
430
|
}, {}, {
|
|
431
431
|
$type: {
|
|
432
|
-
type: "
|
|
432
|
+
type: "tag" | "commit" | "branch";
|
|
433
433
|
name: string;
|
|
434
434
|
hash: string;
|
|
435
435
|
};
|
|
@@ -2011,7 +2011,7 @@ declare const contextCache: drizzle_orm_pg_core1600.PgTableWithColumns<{
|
|
|
2011
2011
|
dataType: "json";
|
|
2012
2012
|
columnType: "PgJsonb";
|
|
2013
2013
|
data: {
|
|
2014
|
-
type: "
|
|
2014
|
+
type: "tag" | "commit" | "branch";
|
|
2015
2015
|
name: string;
|
|
2016
2016
|
hash: string;
|
|
2017
2017
|
};
|
|
@@ -2027,7 +2027,7 @@ declare const contextCache: drizzle_orm_pg_core1600.PgTableWithColumns<{
|
|
|
2027
2027
|
generated: undefined;
|
|
2028
2028
|
}, {}, {
|
|
2029
2029
|
$type: {
|
|
2030
|
-
type: "
|
|
2030
|
+
type: "tag" | "commit" | "branch";
|
|
2031
2031
|
name: string;
|
|
2032
2032
|
hash: string;
|
|
2033
2033
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_zod15 from "drizzle-zod";
|
|
3
3
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
|
4
4
|
|
|
5
5
|
//#region src/validation/drizzle-schema-helpers.d.ts
|
|
@@ -22,8 +22,8 @@ declare const resourceIdSchema: z.ZodString;
|
|
|
22
22
|
declare function createResourceIdSchema(description: string, options?: {
|
|
23
23
|
example?: string;
|
|
24
24
|
}): z.ZodString;
|
|
25
|
-
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
26
|
-
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
25
|
+
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod15.BuildSchema<"select", T["_"]["columns"], drizzle_zod15.BuildRefine<T["_"]["columns"], undefined>, undefined>;
|
|
26
|
+
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod15.BuildSchema<"insert", T["_"]["columns"], drizzle_zod15.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
|
|
27
27
|
declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
|
|
28
28
|
declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
|
|
29
29
|
/**
|