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