@inkeep/agents-core 0.0.0-dev-20260219204727 → 0.0.0-dev-20260219215237
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 +105 -105
- package/dist/auth/auth-validation-schemas.d.ts +148 -148
- package/dist/auth/auth.d.ts +53 -53
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +1 -1
- package/dist/constants/models.d.ts +1 -0
- package/dist/constants/models.js +1 -0
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/scope-helpers.d.ts +5 -5
- package/dist/data-access/manage/skills.d.ts +10 -10
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +2 -2
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/messages.d.ts +6 -6
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/utils/in-process-fetch.d.ts +30 -0
- package/dist/utils/in-process-fetch.js +51 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +2 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1718 -1718
- package/package.json +1 -1
|
@@ -8,10 +8,10 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
headers: Record<string, string> | null;
|
|
12
11
|
id: string;
|
|
13
12
|
createdAt: string;
|
|
14
13
|
updatedAt: string;
|
|
14
|
+
headers: Record<string, string> | null;
|
|
15
15
|
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: string;
|
|
@@ -43,10 +43,10 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
43
43
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
-
headers: Record<string, string> | null;
|
|
47
46
|
id: string;
|
|
48
47
|
createdAt: string;
|
|
49
48
|
updatedAt: string;
|
|
49
|
+
headers: Record<string, string> | null;
|
|
50
50
|
agentId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: string;
|
|
@@ -56,10 +56,10 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
headers: Record<string, string> | null;
|
|
60
59
|
id: string;
|
|
61
60
|
createdAt: string;
|
|
62
61
|
updatedAt: string;
|
|
62
|
+
headers: Record<string, string> | null;
|
|
63
63
|
agentId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
tenantId: string;
|
|
@@ -179,10 +179,10 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
179
179
|
headers?: Record<string, string> | null;
|
|
180
180
|
};
|
|
181
181
|
}) => Promise<{
|
|
182
|
-
headers: Record<string, string> | null;
|
|
183
182
|
id: string;
|
|
184
183
|
createdAt: string;
|
|
185
184
|
updatedAt: string;
|
|
185
|
+
headers: Record<string, string> | null;
|
|
186
186
|
agentId: string;
|
|
187
187
|
projectId: string;
|
|
188
188
|
tenantId: string;
|
|
@@ -196,10 +196,10 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
196
196
|
scopes: SubAgentScopeConfig;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}) => Promise<{
|
|
199
|
-
headers: Record<string, string> | null;
|
|
200
199
|
id: string;
|
|
201
200
|
createdAt: string;
|
|
202
201
|
updatedAt: string;
|
|
202
|
+
headers: Record<string, string> | null;
|
|
203
203
|
agentId: string;
|
|
204
204
|
projectId: string;
|
|
205
205
|
tenantId: string;
|
|
@@ -217,10 +217,10 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
217
217
|
headers?: Record<string, string> | null;
|
|
218
218
|
};
|
|
219
219
|
}) => Promise<{
|
|
220
|
-
headers: Record<string, string> | null;
|
|
221
220
|
id: string;
|
|
222
221
|
createdAt: string;
|
|
223
222
|
updatedAt: string;
|
|
223
|
+
headers: Record<string, string> | null;
|
|
224
224
|
agentId: string;
|
|
225
225
|
projectId: string;
|
|
226
226
|
tenantId: string;
|
|
@@ -203,10 +203,10 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
203
203
|
}> | null;
|
|
204
204
|
};
|
|
205
205
|
}) => Promise<{
|
|
206
|
-
headers: Record<string, string> | null;
|
|
207
206
|
id: string;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
209
|
+
headers: Record<string, string> | null;
|
|
210
210
|
agentId: string;
|
|
211
211
|
projectId: string;
|
|
212
212
|
tenantId: string;
|
|
@@ -247,10 +247,10 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
247
247
|
scopes: SubAgentScopeConfig;
|
|
248
248
|
relationId: string;
|
|
249
249
|
}) => Promise<{
|
|
250
|
-
headers: Record<string, string> | null;
|
|
251
250
|
id: string;
|
|
252
251
|
createdAt: string;
|
|
253
252
|
updatedAt: string;
|
|
253
|
+
headers: Record<string, string> | null;
|
|
254
254
|
agentId: string;
|
|
255
255
|
projectId: string;
|
|
256
256
|
tenantId: string;
|
|
@@ -8,10 +8,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
headers: Record<string, string> | null;
|
|
12
11
|
id: string;
|
|
13
12
|
createdAt: string;
|
|
14
13
|
updatedAt: string;
|
|
14
|
+
headers: Record<string, string> | null;
|
|
15
15
|
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: string;
|
|
@@ -43,10 +43,10 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
43
43
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
-
headers: Record<string, string> | null;
|
|
47
46
|
id: string;
|
|
48
47
|
createdAt: string;
|
|
49
48
|
updatedAt: string;
|
|
49
|
+
headers: Record<string, string> | null;
|
|
50
50
|
agentId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: string;
|
|
@@ -56,10 +56,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
headers: Record<string, string> | null;
|
|
60
59
|
id: string;
|
|
61
60
|
createdAt: string;
|
|
62
61
|
updatedAt: string;
|
|
62
|
+
headers: Record<string, string> | null;
|
|
63
63
|
agentId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
tenantId: string;
|
|
@@ -209,10 +209,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
209
209
|
headers?: Record<string, string> | null;
|
|
210
210
|
};
|
|
211
211
|
}) => Promise<{
|
|
212
|
-
headers: Record<string, string> | null;
|
|
213
212
|
id: string;
|
|
214
213
|
createdAt: string;
|
|
215
214
|
updatedAt: string;
|
|
215
|
+
headers: Record<string, string> | null;
|
|
216
216
|
agentId: string;
|
|
217
217
|
projectId: string;
|
|
218
218
|
tenantId: string;
|
|
@@ -226,10 +226,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
226
226
|
scopes: SubAgentScopeConfig;
|
|
227
227
|
targetAgentId: string;
|
|
228
228
|
}) => Promise<{
|
|
229
|
-
headers: Record<string, string> | null;
|
|
230
229
|
id: string;
|
|
231
230
|
createdAt: string;
|
|
232
231
|
updatedAt: string;
|
|
232
|
+
headers: Record<string, string> | null;
|
|
233
233
|
agentId: string;
|
|
234
234
|
projectId: string;
|
|
235
235
|
tenantId: string;
|
|
@@ -247,10 +247,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
247
247
|
headers?: Record<string, string> | null;
|
|
248
248
|
};
|
|
249
249
|
}) => Promise<{
|
|
250
|
-
headers: Record<string, string> | null;
|
|
251
250
|
id: string;
|
|
252
251
|
createdAt: string;
|
|
253
252
|
updatedAt: string;
|
|
253
|
+
headers: Record<string, string> | null;
|
|
254
254
|
agentId: string;
|
|
255
255
|
projectId: string;
|
|
256
256
|
tenantId: string;
|
|
@@ -8,14 +8,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
name: string;
|
|
12
11
|
id: string;
|
|
12
|
+
name: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
description: string | null;
|
|
15
16
|
agentId: string;
|
|
16
17
|
projectId: string;
|
|
17
18
|
tenantId: string;
|
|
18
|
-
description: string | null;
|
|
19
19
|
models: {
|
|
20
20
|
base?: {
|
|
21
21
|
model?: string | undefined;
|
|
@@ -39,14 +39,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
name: string;
|
|
43
42
|
id: string;
|
|
43
|
+
name: string;
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
+
description: string | null;
|
|
46
47
|
agentId: string;
|
|
47
48
|
projectId: string;
|
|
48
49
|
tenantId: string;
|
|
49
|
-
description: string | null;
|
|
50
50
|
models: {
|
|
51
51
|
base?: {
|
|
52
52
|
model?: string | undefined;
|
|
@@ -108,14 +108,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
-
name: string;
|
|
112
111
|
id: string;
|
|
112
|
+
name: string;
|
|
113
113
|
createdAt: string;
|
|
114
114
|
updatedAt: string;
|
|
115
|
+
description: string | null;
|
|
115
116
|
agentId: string;
|
|
116
117
|
projectId: string;
|
|
117
118
|
tenantId: string;
|
|
118
|
-
description: string | null;
|
|
119
119
|
models: {
|
|
120
120
|
base?: {
|
|
121
121
|
model?: string | undefined;
|
|
@@ -18,14 +18,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
18
18
|
scopes: ProjectScopeConfig;
|
|
19
19
|
toolId: string;
|
|
20
20
|
}) => Promise<{
|
|
21
|
-
name: string;
|
|
22
|
-
headers: Record<string, string> | null;
|
|
23
21
|
id: string;
|
|
22
|
+
name: string;
|
|
24
23
|
createdAt: string;
|
|
25
24
|
updatedAt: string;
|
|
25
|
+
description: string | null;
|
|
26
|
+
headers: Record<string, string> | null;
|
|
26
27
|
projectId: string;
|
|
27
28
|
tenantId: string;
|
|
28
|
-
description: string | null;
|
|
29
29
|
config: {
|
|
30
30
|
type: "mcp";
|
|
31
31
|
mcp: ToolMcpConfig;
|
|
@@ -76,14 +76,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
78
78
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
79
|
-
name: string;
|
|
80
|
-
headers: Record<string, string> | null;
|
|
81
79
|
id: string;
|
|
80
|
+
name: string;
|
|
82
81
|
createdAt: string;
|
|
83
82
|
updatedAt: string;
|
|
83
|
+
description: string | null;
|
|
84
|
+
headers: Record<string, string> | null;
|
|
84
85
|
projectId: string;
|
|
85
86
|
tenantId: string;
|
|
86
|
-
description: string | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "mcp";
|
|
89
89
|
mcp: ToolMcpConfig;
|
|
@@ -133,10 +133,10 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
133
133
|
needsApproval?: boolean;
|
|
134
134
|
}> | null;
|
|
135
135
|
}) => Promise<{
|
|
136
|
-
headers: Record<string, string> | null;
|
|
137
136
|
id: string;
|
|
138
137
|
createdAt: string;
|
|
139
138
|
updatedAt: string;
|
|
139
|
+
headers: Record<string, string> | null;
|
|
140
140
|
agentId: string;
|
|
141
141
|
projectId: string;
|
|
142
142
|
tenantId: string;
|
|
@@ -152,10 +152,10 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
152
152
|
subAgentId: string;
|
|
153
153
|
toolId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
-
headers: Record<string, string> | null;
|
|
156
155
|
id: string;
|
|
157
156
|
createdAt: string;
|
|
158
157
|
updatedAt: string;
|
|
158
|
+
headers: Record<string, string> | null;
|
|
159
159
|
agentId: string;
|
|
160
160
|
projectId: string;
|
|
161
161
|
tenantId: string;
|
|
@@ -180,10 +180,10 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
180
180
|
}> | null;
|
|
181
181
|
relationId?: string;
|
|
182
182
|
}) => Promise<{
|
|
183
|
-
headers: Record<string, string> | null;
|
|
184
183
|
id: string;
|
|
185
184
|
createdAt: string;
|
|
186
185
|
updatedAt: string;
|
|
186
|
+
headers: Record<string, string> | null;
|
|
187
187
|
agentId: string;
|
|
188
188
|
projectId: string;
|
|
189
189
|
tenantId: string;
|
|
@@ -200,14 +200,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
200
200
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
201
201
|
data: ToolInsert;
|
|
202
202
|
}) => Promise<{
|
|
203
|
-
name: string;
|
|
204
|
-
headers: Record<string, string> | null;
|
|
205
203
|
id: string;
|
|
204
|
+
name: string;
|
|
206
205
|
createdAt: string;
|
|
207
206
|
updatedAt: string;
|
|
207
|
+
description: string | null;
|
|
208
|
+
headers: Record<string, string> | null;
|
|
208
209
|
projectId: string;
|
|
209
210
|
tenantId: string;
|
|
210
|
-
description: string | null;
|
|
211
211
|
config: {
|
|
212
212
|
type: "mcp";
|
|
213
213
|
mcp: ToolMcpConfig;
|
|
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "
|
|
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: "
|
|
49
|
+
source: "literal" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -7,8 +7,8 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
name: string | null;
|
|
11
10
|
id: string;
|
|
11
|
+
name: string | null;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
expiresAt: string | null;
|
|
@@ -21,8 +21,8 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
21
21
|
lastUsedAt: string | null;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
|
-
name: string | null;
|
|
25
24
|
id: string;
|
|
25
|
+
name: string | null;
|
|
26
26
|
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
28
|
expiresAt: string | null;
|
|
@@ -38,8 +38,8 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
|
-
name: string | null;
|
|
42
41
|
id: string;
|
|
42
|
+
name: string | null;
|
|
43
43
|
createdAt: string;
|
|
44
44
|
updatedAt: string;
|
|
45
45
|
expiresAt: string | null;
|
|
@@ -65,8 +65,8 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
|
-
name: string | null;
|
|
69
68
|
id: string;
|
|
69
|
+
name: string | null;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
expiresAt: string | null;
|
|
@@ -15,21 +15,21 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
-
metadata: ConversationMetadata | null;
|
|
19
18
|
id: string;
|
|
20
|
-
userId: string | null;
|
|
21
19
|
createdAt: string;
|
|
22
20
|
updatedAt: string;
|
|
23
|
-
agentId: string | null;
|
|
24
|
-
projectId: string;
|
|
25
|
-
tenantId: string;
|
|
26
|
-
title: string | null;
|
|
27
|
-
activeSubAgentId: string;
|
|
28
21
|
ref: {
|
|
29
22
|
type: "tag" | "commit" | "branch";
|
|
30
23
|
name: string;
|
|
31
24
|
hash: string;
|
|
32
25
|
} | null;
|
|
26
|
+
userId: string | null;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
28
|
+
agentId: string | null;
|
|
29
|
+
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
title: string | null;
|
|
32
|
+
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
35
35
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -84,21 +84,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
84
84
|
scopes: ProjectScopeConfig;
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
|
-
metadata: ConversationMetadata | null;
|
|
88
87
|
id: string;
|
|
89
|
-
userId: string | null;
|
|
90
88
|
createdAt: string;
|
|
91
89
|
updatedAt: string;
|
|
92
|
-
agentId: string | null;
|
|
93
|
-
projectId: string;
|
|
94
|
-
tenantId: string;
|
|
95
|
-
title: string | null;
|
|
96
|
-
activeSubAgentId: string;
|
|
97
90
|
ref: {
|
|
98
91
|
type: "tag" | "commit" | "branch";
|
|
99
92
|
name: string;
|
|
100
93
|
hash: string;
|
|
101
94
|
} | null;
|
|
95
|
+
userId: string | null;
|
|
96
|
+
metadata: ConversationMetadata | null;
|
|
97
|
+
agentId: string | null;
|
|
98
|
+
projectId: string;
|
|
99
|
+
tenantId: string;
|
|
100
|
+
title: string | null;
|
|
101
|
+
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
104
104
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
@@ -120,21 +120,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
120
120
|
metadata?: ConversationMetadata | null | undefined;
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
|
-
metadata: ConversationMetadata | null;
|
|
124
123
|
id: string;
|
|
125
|
-
userId: string | null;
|
|
126
124
|
createdAt: string;
|
|
127
125
|
updatedAt: string;
|
|
128
|
-
agentId: string | null;
|
|
129
|
-
projectId: string;
|
|
130
|
-
tenantId: string;
|
|
131
|
-
title: string | null;
|
|
132
|
-
activeSubAgentId: string;
|
|
133
126
|
ref: {
|
|
134
127
|
type: "tag" | "commit" | "branch";
|
|
135
128
|
name: string;
|
|
136
129
|
hash: string;
|
|
137
130
|
} | null;
|
|
131
|
+
userId: string | null;
|
|
132
|
+
metadata: ConversationMetadata | null;
|
|
133
|
+
agentId: string | null;
|
|
134
|
+
projectId: string;
|
|
135
|
+
tenantId: string;
|
|
136
|
+
title: string | null;
|
|
137
|
+
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
140
140
|
/**
|
|
@@ -152,21 +152,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
-
metadata: ConversationMetadata | null;
|
|
156
155
|
id: string;
|
|
157
|
-
userId: string | null;
|
|
158
156
|
createdAt: string;
|
|
159
157
|
updatedAt: string;
|
|
160
|
-
agentId: string | null;
|
|
161
|
-
projectId: string;
|
|
162
|
-
tenantId: string;
|
|
163
|
-
title: string | null;
|
|
164
|
-
activeSubAgentId: string;
|
|
165
158
|
ref: {
|
|
166
159
|
type: "tag" | "commit" | "branch";
|
|
167
160
|
name: string;
|
|
168
161
|
hash: string;
|
|
169
162
|
} | null;
|
|
163
|
+
userId: string | null;
|
|
164
|
+
metadata: ConversationMetadata | null;
|
|
165
|
+
agentId: string | null;
|
|
166
|
+
projectId: string;
|
|
167
|
+
tenantId: string;
|
|
168
|
+
title: string | null;
|
|
169
|
+
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
172
172
|
/**
|
|
@@ -9,11 +9,11 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
messageId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
metadata: MessageMetadata | null;
|
|
13
12
|
id: string;
|
|
14
|
-
role: string;
|
|
15
13
|
createdAt: string;
|
|
16
14
|
updatedAt: string;
|
|
15
|
+
metadata: MessageMetadata | null;
|
|
16
|
+
role: string;
|
|
17
17
|
projectId: string;
|
|
18
18
|
tenantId: string;
|
|
19
19
|
content: MessageContent;
|
|
@@ -140,11 +140,11 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
140
140
|
id: string;
|
|
141
141
|
}[]>;
|
|
142
142
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
143
|
-
metadata: MessageMetadata | null;
|
|
144
143
|
id: string;
|
|
145
|
-
role: string;
|
|
146
144
|
createdAt: string;
|
|
147
145
|
updatedAt: string;
|
|
146
|
+
metadata: MessageMetadata | null;
|
|
147
|
+
role: string;
|
|
148
148
|
projectId: string;
|
|
149
149
|
tenantId: string;
|
|
150
150
|
content: MessageContent;
|
|
@@ -193,11 +193,11 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
193
193
|
scopes: ProjectScopeConfig;
|
|
194
194
|
messageId: string;
|
|
195
195
|
}) => Promise<{
|
|
196
|
-
metadata: MessageMetadata | null;
|
|
197
196
|
id: string;
|
|
198
|
-
role: string;
|
|
199
197
|
createdAt: string;
|
|
200
198
|
updatedAt: string;
|
|
199
|
+
metadata: MessageMetadata | null;
|
|
200
|
+
role: string;
|
|
201
201
|
projectId: string;
|
|
202
202
|
tenantId: string;
|
|
203
203
|
content: MessageContent;
|
|
@@ -6,20 +6,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
6
6
|
|
|
7
7
|
//#region src/data-access/runtime/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
|
-
metadata: TaskMetadataConfig | null;
|
|
10
9
|
id: string;
|
|
11
10
|
createdAt: string;
|
|
12
11
|
updatedAt: string;
|
|
13
|
-
status: string;
|
|
14
|
-
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
subAgentId: string;
|
|
18
12
|
ref: {
|
|
19
13
|
type: "tag" | "commit" | "branch";
|
|
20
14
|
name: string;
|
|
21
15
|
hash: string;
|
|
22
16
|
} | null;
|
|
17
|
+
metadata: TaskMetadataConfig | null;
|
|
18
|
+
status: string;
|
|
19
|
+
agentId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
tenantId: string;
|
|
22
|
+
subAgentId: string;
|
|
23
23
|
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -814,13 +814,13 @@ declare const triggers: drizzle_orm_pg_core1479.PgTableWithColumns<{
|
|
|
814
814
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
815
815
|
encoding: "hex" | "base64";
|
|
816
816
|
signature: {
|
|
817
|
-
source: "
|
|
817
|
+
source: "query" | "body" | "header";
|
|
818
818
|
key: string;
|
|
819
819
|
prefix?: string | undefined;
|
|
820
820
|
regex?: string | undefined;
|
|
821
821
|
};
|
|
822
822
|
signedComponents: {
|
|
823
|
-
source: "
|
|
823
|
+
source: "literal" | "body" | "header";
|
|
824
824
|
required: boolean;
|
|
825
825
|
key?: string | undefined;
|
|
826
826
|
value?: string | undefined;
|
|
@@ -851,13 +851,13 @@ declare const triggers: drizzle_orm_pg_core1479.PgTableWithColumns<{
|
|
|
851
851
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
852
852
|
encoding: "hex" | "base64";
|
|
853
853
|
signature: {
|
|
854
|
-
source: "
|
|
854
|
+
source: "query" | "body" | "header";
|
|
855
855
|
key: string;
|
|
856
856
|
prefix?: string | undefined;
|
|
857
857
|
regex?: string | undefined;
|
|
858
858
|
};
|
|
859
859
|
signedComponents: {
|
|
860
|
-
source: "
|
|
860
|
+
source: "literal" | "body" | "header";
|
|
861
861
|
required: boolean;
|
|
862
862
|
key?: string | undefined;
|
|
863
863
|
value?: string | undefined;
|