@inkeep/agents-core 0.52.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth-schema.d.ts +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +57 -57
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/data-access/manage/agents.d.ts +25 -25
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/skills.d.ts +17 -17
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +22 -22
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +33 -33
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/tasks.d.ts +7 -7
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +290 -290
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/setup/setup.js +52 -14
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1827 -1827
- package/package.json +1 -1
|
@@ -19,20 +19,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
19
19
|
scopes: ProjectScopeConfig;
|
|
20
20
|
toolId: string;
|
|
21
21
|
}) => Promise<{
|
|
22
|
-
description: string | null;
|
|
23
|
-
name: string;
|
|
24
|
-
tenantId: string;
|
|
25
|
-
projectId: string;
|
|
26
22
|
id: string;
|
|
23
|
+
name: string;
|
|
27
24
|
createdAt: string;
|
|
28
25
|
updatedAt: string;
|
|
29
|
-
|
|
26
|
+
description: string | null;
|
|
27
|
+
headers: Record<string, string> | null;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
projectId: string;
|
|
30
30
|
config: {
|
|
31
31
|
type: "mcp";
|
|
32
32
|
mcp: ToolMcpConfig;
|
|
33
33
|
};
|
|
34
|
+
credentialReferenceId: string | null;
|
|
34
35
|
credentialScope: string;
|
|
35
|
-
headers: Record<string, string> | null;
|
|
36
36
|
imageUrl: string | null;
|
|
37
37
|
capabilities: ToolServerCapabilities | null;
|
|
38
38
|
lastError: string | null;
|
|
@@ -77,20 +77,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
77
77
|
};
|
|
78
78
|
}>;
|
|
79
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
|
-
description: string | null;
|
|
81
|
-
name: string;
|
|
82
|
-
tenantId: string;
|
|
83
|
-
projectId: string;
|
|
84
80
|
id: string;
|
|
81
|
+
name: string;
|
|
85
82
|
createdAt: string;
|
|
86
83
|
updatedAt: string;
|
|
87
|
-
|
|
84
|
+
description: string | null;
|
|
85
|
+
headers: Record<string, string> | null;
|
|
86
|
+
tenantId: string;
|
|
87
|
+
projectId: string;
|
|
88
88
|
config: {
|
|
89
89
|
type: "mcp";
|
|
90
90
|
mcp: ToolMcpConfig;
|
|
91
91
|
};
|
|
92
|
+
credentialReferenceId: string | null;
|
|
92
93
|
credentialScope: string;
|
|
93
|
-
headers: Record<string, string> | null;
|
|
94
94
|
imageUrl: string | null;
|
|
95
95
|
capabilities: ToolServerCapabilities | null;
|
|
96
96
|
lastError: string | null;
|
|
@@ -134,38 +134,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
134
|
needsApproval?: boolean;
|
|
135
135
|
}> | null;
|
|
136
136
|
}) => Promise<{
|
|
137
|
-
tenantId: string;
|
|
138
|
-
projectId: string;
|
|
139
|
-
subAgentId: string;
|
|
140
137
|
id: string;
|
|
141
138
|
createdAt: string;
|
|
142
139
|
updatedAt: string;
|
|
140
|
+
headers: Record<string, string> | null;
|
|
141
|
+
tenantId: string;
|
|
142
|
+
projectId: string;
|
|
143
143
|
agentId: string;
|
|
144
|
+
subAgentId: string;
|
|
144
145
|
toolId: string;
|
|
145
|
-
headers: Record<string, string> | null;
|
|
146
|
-
selectedTools: string[] | null;
|
|
147
146
|
toolPolicies: Record<string, {
|
|
148
147
|
needsApproval?: boolean;
|
|
149
148
|
}> | null;
|
|
149
|
+
selectedTools: string[] | null;
|
|
150
150
|
}>;
|
|
151
151
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
152
152
|
scopes: AgentScopeConfig;
|
|
153
153
|
subAgentId: string;
|
|
154
154
|
toolId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
-
tenantId: string;
|
|
157
|
-
projectId: string;
|
|
158
|
-
subAgentId: string;
|
|
159
156
|
id: string;
|
|
160
157
|
createdAt: string;
|
|
161
158
|
updatedAt: string;
|
|
159
|
+
headers: Record<string, string> | null;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
projectId: string;
|
|
162
162
|
agentId: string;
|
|
163
|
+
subAgentId: string;
|
|
163
164
|
toolId: string;
|
|
164
|
-
headers: Record<string, string> | null;
|
|
165
|
-
selectedTools: string[] | null;
|
|
166
165
|
toolPolicies: Record<string, {
|
|
167
166
|
needsApproval?: boolean;
|
|
168
167
|
}> | null;
|
|
168
|
+
selectedTools: string[] | null;
|
|
169
169
|
}>;
|
|
170
170
|
/**
|
|
171
171
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -181,19 +181,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
181
181
|
}> | null;
|
|
182
182
|
relationId?: string;
|
|
183
183
|
}) => Promise<{
|
|
184
|
-
tenantId: string;
|
|
185
|
-
projectId: string;
|
|
186
|
-
subAgentId: string;
|
|
187
184
|
id: string;
|
|
188
185
|
createdAt: string;
|
|
189
186
|
updatedAt: string;
|
|
187
|
+
headers: Record<string, string> | null;
|
|
188
|
+
tenantId: string;
|
|
189
|
+
projectId: string;
|
|
190
190
|
agentId: string;
|
|
191
|
+
subAgentId: string;
|
|
191
192
|
toolId: string;
|
|
192
|
-
headers: Record<string, string> | null;
|
|
193
|
-
selectedTools: string[] | null;
|
|
194
193
|
toolPolicies: Record<string, {
|
|
195
194
|
needsApproval?: boolean;
|
|
196
195
|
}> | null;
|
|
196
|
+
selectedTools: string[] | null;
|
|
197
197
|
}>;
|
|
198
198
|
/**
|
|
199
199
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -201,20 +201,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
201
201
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
202
202
|
data: ToolInsert;
|
|
203
203
|
}) => Promise<{
|
|
204
|
-
description: string | null;
|
|
205
|
-
name: string;
|
|
206
|
-
tenantId: string;
|
|
207
|
-
projectId: string;
|
|
208
204
|
id: string;
|
|
205
|
+
name: string;
|
|
209
206
|
createdAt: string;
|
|
210
207
|
updatedAt: string;
|
|
211
|
-
|
|
208
|
+
description: string | null;
|
|
209
|
+
headers: Record<string, string> | null;
|
|
210
|
+
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
212
212
|
config: {
|
|
213
213
|
type: "mcp";
|
|
214
214
|
mcp: ToolMcpConfig;
|
|
215
215
|
};
|
|
216
|
+
credentialReferenceId: string | null;
|
|
216
217
|
credentialScope: string;
|
|
217
|
-
headers: Record<string, string> | null;
|
|
218
218
|
imageUrl: string | null;
|
|
219
219
|
capabilities: ToolServerCapabilities | null;
|
|
220
220
|
lastError: string | null;
|
|
@@ -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: "query" | "
|
|
43
|
+
source: "query" | "body" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
name: string | null;
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
11
|
id: string;
|
|
12
|
+
name: string | null;
|
|
15
13
|
createdAt: string;
|
|
16
14
|
updatedAt: string;
|
|
15
|
+
expiresAt: string | null;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
17
18
|
agentId: string;
|
|
18
19
|
publicId: string;
|
|
19
20
|
keyHash: string;
|
|
20
21
|
keyPrefix: string;
|
|
21
22
|
lastUsedAt: string | null;
|
|
22
|
-
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
name: string | null;
|
|
26
|
-
tenantId: string;
|
|
27
|
-
projectId: string;
|
|
28
25
|
id: string;
|
|
26
|
+
name: string | null;
|
|
29
27
|
createdAt: string;
|
|
30
28
|
updatedAt: string;
|
|
29
|
+
expiresAt: string | null;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
projectId: string;
|
|
31
32
|
agentId: string;
|
|
32
33
|
publicId: string;
|
|
33
34
|
keyHash: string;
|
|
34
35
|
keyPrefix: string;
|
|
35
36
|
lastUsedAt: string | null;
|
|
36
|
-
expiresAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
name: string | null;
|
|
43
|
-
tenantId: string;
|
|
44
|
-
projectId: string;
|
|
45
42
|
id: string;
|
|
43
|
+
name: string | null;
|
|
46
44
|
createdAt: string;
|
|
47
45
|
updatedAt: string;
|
|
46
|
+
expiresAt: string | null;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
48
49
|
agentId: string;
|
|
49
50
|
publicId: string;
|
|
50
51
|
keyHash: string;
|
|
51
52
|
keyPrefix: string;
|
|
52
53
|
lastUsedAt: string | null;
|
|
53
|
-
expiresAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
-
name: string | null;
|
|
70
|
-
tenantId: string;
|
|
71
|
-
projectId: string;
|
|
72
69
|
id: string;
|
|
70
|
+
name: string | null;
|
|
73
71
|
createdAt: string;
|
|
74
72
|
updatedAt: string;
|
|
73
|
+
expiresAt: string | null;
|
|
74
|
+
tenantId: string;
|
|
75
|
+
projectId: string;
|
|
75
76
|
agentId: string;
|
|
76
77
|
publicId: string;
|
|
77
78
|
keyHash: string;
|
|
78
79
|
keyPrefix: string;
|
|
79
80
|
lastUsedAt: string | null;
|
|
80
|
-
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -16,20 +16,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
total: number;
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
|
-
title: string | null;
|
|
20
|
-
tenantId: string;
|
|
21
|
-
projectId: string;
|
|
22
19
|
id: string;
|
|
23
20
|
createdAt: string;
|
|
24
21
|
updatedAt: string;
|
|
25
|
-
metadata: ConversationMetadata | null;
|
|
26
|
-
agentId: string | null;
|
|
27
|
-
userId: string | null;
|
|
28
22
|
ref: {
|
|
29
23
|
type: "commit" | "tag" | "branch";
|
|
30
24
|
name: string;
|
|
31
25
|
hash: string;
|
|
32
26
|
} | null;
|
|
27
|
+
userId: string | null;
|
|
28
|
+
metadata: ConversationMetadata | null;
|
|
29
|
+
title: string | null;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
agentId: string | null;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
scopes: ProjectScopeConfig;
|
|
86
86
|
conversationId: string;
|
|
87
87
|
}) => Promise<{
|
|
88
|
-
title: string | null;
|
|
89
|
-
tenantId: string;
|
|
90
|
-
projectId: string;
|
|
91
88
|
id: string;
|
|
92
89
|
createdAt: string;
|
|
93
90
|
updatedAt: string;
|
|
94
|
-
metadata: ConversationMetadata | null;
|
|
95
|
-
agentId: string | null;
|
|
96
|
-
userId: string | null;
|
|
97
91
|
ref: {
|
|
98
92
|
type: "commit" | "tag" | "branch";
|
|
99
93
|
name: string;
|
|
100
94
|
hash: string;
|
|
101
95
|
} | null;
|
|
96
|
+
userId: string | null;
|
|
97
|
+
metadata: ConversationMetadata | null;
|
|
98
|
+
title: string | null;
|
|
99
|
+
tenantId: string;
|
|
100
|
+
projectId: string;
|
|
101
|
+
agentId: string | null;
|
|
102
102
|
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
metadata?: ConversationMetadata | null | undefined;
|
|
122
122
|
contextConfigId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
|
-
title: string | null;
|
|
125
|
-
tenantId: string;
|
|
126
|
-
projectId: string;
|
|
127
124
|
id: string;
|
|
128
125
|
createdAt: string;
|
|
129
126
|
updatedAt: string;
|
|
130
|
-
metadata: ConversationMetadata | null;
|
|
131
|
-
agentId: string | null;
|
|
132
|
-
userId: string | null;
|
|
133
127
|
ref: {
|
|
134
128
|
type: "commit" | "tag" | "branch";
|
|
135
129
|
name: string;
|
|
136
130
|
hash: string;
|
|
137
131
|
} | null;
|
|
132
|
+
userId: string | null;
|
|
133
|
+
metadata: ConversationMetadata | null;
|
|
134
|
+
title: string | null;
|
|
135
|
+
tenantId: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
agentId: string | null;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -153,20 +153,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
scopes: ProjectScopeConfig;
|
|
154
154
|
conversationId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
-
title: string | null;
|
|
157
|
-
tenantId: string;
|
|
158
|
-
projectId: string;
|
|
159
156
|
id: string;
|
|
160
157
|
createdAt: string;
|
|
161
158
|
updatedAt: string;
|
|
162
|
-
metadata: ConversationMetadata | null;
|
|
163
|
-
agentId: string | null;
|
|
164
|
-
userId: string | null;
|
|
165
159
|
ref: {
|
|
166
160
|
type: "commit" | "tag" | "branch";
|
|
167
161
|
name: string;
|
|
168
162
|
hash: string;
|
|
169
163
|
} | null;
|
|
164
|
+
userId: string | null;
|
|
165
|
+
metadata: ConversationMetadata | null;
|
|
166
|
+
title: string | null;
|
|
167
|
+
tenantId: string;
|
|
168
|
+
projectId: string;
|
|
169
|
+
agentId: string | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -10,21 +10,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
|
|
13
|
+
id: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
metadata: MessageMetadata | null;
|
|
17
|
+
role: string;
|
|
14
18
|
tenantId: string;
|
|
15
19
|
projectId: string;
|
|
20
|
+
content: MessageContent;
|
|
16
21
|
fromSubAgentId: string | null;
|
|
17
22
|
toSubAgentId: string | null;
|
|
18
23
|
fromExternalAgentId: string | null;
|
|
19
24
|
toExternalAgentId: string | null;
|
|
20
25
|
taskId: string | null;
|
|
21
26
|
a2aTaskId: string | null;
|
|
22
|
-
id: string;
|
|
23
|
-
createdAt: string;
|
|
24
|
-
updatedAt: string;
|
|
25
|
-
metadata: MessageMetadata | null;
|
|
26
27
|
conversationId: string;
|
|
27
|
-
role: string;
|
|
28
28
|
fromTeamAgentId: string | null;
|
|
29
29
|
toTeamAgentId: string | null;
|
|
30
30
|
visibility: string;
|
|
@@ -141,21 +141,21 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
141
141
|
id: string;
|
|
142
142
|
}[]>;
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
|
-
|
|
144
|
+
id: string;
|
|
145
|
+
createdAt: string;
|
|
146
|
+
updatedAt: string;
|
|
147
|
+
metadata: MessageMetadata | null;
|
|
148
|
+
role: string;
|
|
145
149
|
tenantId: string;
|
|
146
150
|
projectId: string;
|
|
151
|
+
content: MessageContent;
|
|
147
152
|
fromSubAgentId: string | null;
|
|
148
153
|
toSubAgentId: string | null;
|
|
149
154
|
fromExternalAgentId: string | null;
|
|
150
155
|
toExternalAgentId: string | null;
|
|
151
156
|
taskId: string | null;
|
|
152
157
|
a2aTaskId: string | null;
|
|
153
|
-
id: string;
|
|
154
|
-
createdAt: string;
|
|
155
|
-
updatedAt: string;
|
|
156
|
-
metadata: MessageMetadata | null;
|
|
157
158
|
conversationId: string;
|
|
158
|
-
role: string;
|
|
159
159
|
fromTeamAgentId: string | null;
|
|
160
160
|
toTeamAgentId: string | null;
|
|
161
161
|
visibility: string;
|
|
@@ -194,21 +194,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
194
194
|
scopes: ProjectScopeConfig;
|
|
195
195
|
messageId: string;
|
|
196
196
|
}) => Promise<{
|
|
197
|
-
|
|
197
|
+
id: string;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
updatedAt: string;
|
|
200
|
+
metadata: MessageMetadata | null;
|
|
201
|
+
role: string;
|
|
198
202
|
tenantId: string;
|
|
199
203
|
projectId: string;
|
|
204
|
+
content: MessageContent;
|
|
200
205
|
fromSubAgentId: string | null;
|
|
201
206
|
toSubAgentId: string | null;
|
|
202
207
|
fromExternalAgentId: string | null;
|
|
203
208
|
toExternalAgentId: string | null;
|
|
204
209
|
taskId: string | null;
|
|
205
210
|
a2aTaskId: string | null;
|
|
206
|
-
id: string;
|
|
207
|
-
createdAt: string;
|
|
208
|
-
updatedAt: string;
|
|
209
|
-
metadata: MessageMetadata | null;
|
|
210
211
|
conversationId: string;
|
|
211
|
-
role: string;
|
|
212
212
|
fromTeamAgentId: string | null;
|
|
213
213
|
toTeamAgentId: string | null;
|
|
214
214
|
visibility: string;
|
|
@@ -6,21 +6,21 @@ 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
|
-
tenantId: string;
|
|
10
|
-
projectId: string;
|
|
11
|
-
subAgentId: string;
|
|
12
9
|
id: string;
|
|
13
10
|
createdAt: string;
|
|
14
11
|
updatedAt: string;
|
|
15
|
-
metadata: TaskMetadataConfig | null;
|
|
16
|
-
agentId: string;
|
|
17
|
-
status: string;
|
|
18
|
-
contextId: string;
|
|
19
12
|
ref: {
|
|
20
13
|
type: "commit" | "tag" | "branch";
|
|
21
14
|
name: string;
|
|
22
15
|
hash: string;
|
|
23
16
|
} | null;
|
|
17
|
+
metadata: TaskMetadataConfig | null;
|
|
18
|
+
status: string;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
agentId: string;
|
|
22
|
+
subAgentId: string;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|