@inkeep/agents-core 0.50.0 → 0.50.3
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 +83 -83
- package/dist/auth/auth-validation-schemas.d.ts +148 -148
- package/dist/auth/auth.d.ts +20 -20
- package/dist/auth/auth.js +8 -9
- package/dist/auth/authz/sync.d.ts +22 -1
- package/dist/auth/authz/sync.js +59 -4
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +11 -11
- package/dist/constants/models.d.ts +1 -0
- package/dist/constants/models.js +1 -0
- package/dist/constants/otel-attributes.d.ts +4 -0
- package/dist/constants/otel-attributes.js +4 -0
- package/dist/data-access/manage/agents.d.ts +46 -46
- package/dist/data-access/manage/agents.js +8 -6
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/artifactComponents.js +3 -3
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.js +2 -2
- package/dist/data-access/manage/functionTools.d.ts +8 -8
- package/dist/data-access/manage/scope-helpers.d.ts +25 -0
- package/dist/data-access/manage/scope-helpers.js +18 -0
- package/dist/data-access/manage/skills.d.ts +11 -11
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.js +13 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +2 -2
- package/dist/data-access/manage/subAgentRelations.js +2 -2
- package/dist/data-access/manage/subAgents.d.ts +27 -27
- package/dist/data-access/manage/tools.d.ts +9 -9
- 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/conversations.d.ts +27 -27
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +7 -7
- package/dist/db/manage/manage-schema.d.ts +96 -96
- package/dist/db/runtime/runtime-schema.d.ts +38 -38
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/middleware/authz-meta.d.ts +15 -0
- package/dist/middleware/authz-meta.js +11 -0
- package/dist/middleware/create-protected-route.d.ts +30 -0
- package/dist/middleware/create-protected-route.js +20 -0
- package/dist/middleware/index.d.ts +5 -0
- package/dist/middleware/index.js +6 -0
- package/dist/middleware/inherited-auth.d.ts +43 -0
- package/dist/middleware/inherited-auth.js +50 -0
- package/dist/middleware/no-auth.d.ts +6 -0
- package/dist/middleware/no-auth.js +11 -0
- package/dist/setup/index.d.ts +2 -0
- package/dist/setup/index.js +3 -0
- package/dist/setup/setup.d.ts +24 -0
- package/dist/setup/setup.js +506 -0
- 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/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +2065 -2065
- package/package.json +9 -1
|
@@ -19,12 +19,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
19
19
|
toolId: string;
|
|
20
20
|
}) => Promise<{
|
|
21
21
|
id: string;
|
|
22
|
-
createdAt: string;
|
|
23
22
|
name: string;
|
|
23
|
+
createdAt: string;
|
|
24
24
|
updatedAt: string;
|
|
25
|
+
description: string | null;
|
|
25
26
|
projectId: string;
|
|
26
27
|
tenantId: string;
|
|
27
|
-
description: string | null;
|
|
28
28
|
headers: Record<string, string> | null;
|
|
29
29
|
config: {
|
|
30
30
|
type: "mcp";
|
|
@@ -77,12 +77,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
77
77
|
}>;
|
|
78
78
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
79
79
|
id: string;
|
|
80
|
-
createdAt: string;
|
|
81
80
|
name: string;
|
|
81
|
+
createdAt: string;
|
|
82
82
|
updatedAt: string;
|
|
83
|
+
description: string | null;
|
|
83
84
|
projectId: string;
|
|
84
85
|
tenantId: string;
|
|
85
|
-
description: string | null;
|
|
86
86
|
headers: Record<string, string> | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "mcp";
|
|
@@ -141,10 +141,10 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
141
141
|
tenantId: string;
|
|
142
142
|
headers: Record<string, string> | null;
|
|
143
143
|
toolId: string;
|
|
144
|
+
subAgentId: string;
|
|
144
145
|
toolPolicies: Record<string, {
|
|
145
146
|
needsApproval?: boolean;
|
|
146
147
|
}> | null;
|
|
147
|
-
subAgentId: string;
|
|
148
148
|
selectedTools: string[] | null;
|
|
149
149
|
}>;
|
|
150
150
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -160,10 +160,10 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
160
160
|
tenantId: string;
|
|
161
161
|
headers: Record<string, string> | null;
|
|
162
162
|
toolId: string;
|
|
163
|
+
subAgentId: string;
|
|
163
164
|
toolPolicies: Record<string, {
|
|
164
165
|
needsApproval?: boolean;
|
|
165
166
|
}> | null;
|
|
166
|
-
subAgentId: string;
|
|
167
167
|
selectedTools: string[] | null;
|
|
168
168
|
}>;
|
|
169
169
|
/**
|
|
@@ -188,10 +188,10 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
188
188
|
tenantId: string;
|
|
189
189
|
headers: Record<string, string> | null;
|
|
190
190
|
toolId: string;
|
|
191
|
+
subAgentId: string;
|
|
191
192
|
toolPolicies: Record<string, {
|
|
192
193
|
needsApproval?: boolean;
|
|
193
194
|
}> | null;
|
|
194
|
-
subAgentId: string;
|
|
195
195
|
selectedTools: string[] | null;
|
|
196
196
|
}>;
|
|
197
197
|
/**
|
|
@@ -201,12 +201,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
201
201
|
data: ToolInsert;
|
|
202
202
|
}) => Promise<{
|
|
203
203
|
id: string;
|
|
204
|
-
createdAt: string;
|
|
205
204
|
name: string;
|
|
205
|
+
createdAt: string;
|
|
206
206
|
updatedAt: string;
|
|
207
|
+
description: string | null;
|
|
207
208
|
projectId: string;
|
|
208
209
|
tenantId: string;
|
|
209
|
-
description: string | null;
|
|
210
210
|
headers: Record<string, string> | null;
|
|
211
211
|
config: {
|
|
212
212
|
type: "mcp";
|
|
@@ -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;
|
|
@@ -8,13 +8,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
10
|
id: string;
|
|
11
|
-
createdAt: string;
|
|
12
11
|
name: string | null;
|
|
12
|
+
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
expiresAt: string | null;
|
|
14
15
|
agentId: string;
|
|
15
16
|
projectId: string;
|
|
16
17
|
tenantId: string;
|
|
17
|
-
expiresAt: string | null;
|
|
18
18
|
publicId: string;
|
|
19
19
|
keyHash: string;
|
|
20
20
|
keyPrefix: string;
|
|
@@ -22,13 +22,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
-
createdAt: string;
|
|
26
25
|
name: string | null;
|
|
26
|
+
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
|
+
expiresAt: string | null;
|
|
28
29
|
agentId: string;
|
|
29
30
|
projectId: string;
|
|
30
31
|
tenantId: string;
|
|
31
|
-
expiresAt: string | null;
|
|
32
32
|
publicId: string;
|
|
33
33
|
keyHash: string;
|
|
34
34
|
keyPrefix: string;
|
|
@@ -39,13 +39,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
41
|
id: string;
|
|
42
|
-
createdAt: string;
|
|
43
42
|
name: string | null;
|
|
43
|
+
createdAt: string;
|
|
44
44
|
updatedAt: string;
|
|
45
|
+
expiresAt: string | null;
|
|
45
46
|
agentId: string;
|
|
46
47
|
projectId: string;
|
|
47
48
|
tenantId: string;
|
|
48
|
-
expiresAt: string | null;
|
|
49
49
|
publicId: string;
|
|
50
50
|
keyHash: string;
|
|
51
51
|
keyPrefix: string;
|
|
@@ -66,13 +66,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
-
createdAt: string;
|
|
70
69
|
name: string | null;
|
|
70
|
+
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
|
+
expiresAt: string | null;
|
|
72
73
|
agentId: string;
|
|
73
74
|
projectId: string;
|
|
74
75
|
tenantId: string;
|
|
75
|
-
expiresAt: string | null;
|
|
76
76
|
publicId: string;
|
|
77
77
|
keyHash: string;
|
|
78
78
|
keyPrefix: string;
|
|
@@ -18,17 +18,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
18
18
|
id: string;
|
|
19
19
|
createdAt: string;
|
|
20
20
|
updatedAt: string;
|
|
21
|
-
agentId: string | null;
|
|
22
|
-
projectId: string;
|
|
23
|
-
tenantId: string;
|
|
24
|
-
title: string | null;
|
|
25
|
-
metadata: ConversationMetadata | null;
|
|
26
21
|
ref: {
|
|
27
|
-
type: "
|
|
22
|
+
type: "commit" | "tag" | "branch";
|
|
28
23
|
name: string;
|
|
29
24
|
hash: string;
|
|
30
25
|
} | null;
|
|
31
26
|
userId: string | null;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
28
|
+
title: string | null;
|
|
29
|
+
agentId: string | null;
|
|
30
|
+
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
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;
|
|
@@ -87,17 +87,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
87
87
|
id: string;
|
|
88
88
|
createdAt: string;
|
|
89
89
|
updatedAt: string;
|
|
90
|
-
agentId: string | null;
|
|
91
|
-
projectId: string;
|
|
92
|
-
tenantId: string;
|
|
93
|
-
title: string | null;
|
|
94
|
-
metadata: ConversationMetadata | null;
|
|
95
90
|
ref: {
|
|
96
|
-
type: "
|
|
91
|
+
type: "commit" | "tag" | "branch";
|
|
97
92
|
name: string;
|
|
98
93
|
hash: string;
|
|
99
94
|
} | null;
|
|
100
95
|
userId: string | null;
|
|
96
|
+
metadata: ConversationMetadata | null;
|
|
97
|
+
title: string | null;
|
|
98
|
+
agentId: string | null;
|
|
99
|
+
projectId: string;
|
|
100
|
+
tenantId: string;
|
|
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
|
};
|
|
@@ -123,17 +123,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
123
123
|
id: string;
|
|
124
124
|
createdAt: string;
|
|
125
125
|
updatedAt: string;
|
|
126
|
-
agentId: string | null;
|
|
127
|
-
projectId: string;
|
|
128
|
-
tenantId: string;
|
|
129
|
-
title: string | null;
|
|
130
|
-
metadata: ConversationMetadata | null;
|
|
131
126
|
ref: {
|
|
132
|
-
type: "
|
|
127
|
+
type: "commit" | "tag" | "branch";
|
|
133
128
|
name: string;
|
|
134
129
|
hash: string;
|
|
135
130
|
} | null;
|
|
136
131
|
userId: string | null;
|
|
132
|
+
metadata: ConversationMetadata | null;
|
|
133
|
+
title: string | null;
|
|
134
|
+
agentId: string | null;
|
|
135
|
+
projectId: string;
|
|
136
|
+
tenantId: string;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -155,17 +155,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
155
155
|
id: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
|
-
agentId: string | null;
|
|
159
|
-
projectId: string;
|
|
160
|
-
tenantId: string;
|
|
161
|
-
title: string | null;
|
|
162
|
-
metadata: ConversationMetadata | null;
|
|
163
158
|
ref: {
|
|
164
|
-
type: "
|
|
159
|
+
type: "commit" | "tag" | "branch";
|
|
165
160
|
name: string;
|
|
166
161
|
hash: string;
|
|
167
162
|
} | null;
|
|
168
163
|
userId: string | null;
|
|
164
|
+
metadata: ConversationMetadata | null;
|
|
165
|
+
title: string | null;
|
|
166
|
+
agentId: string | null;
|
|
167
|
+
projectId: string;
|
|
168
|
+
tenantId: string;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -12,23 +12,23 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
metadata: MessageMetadata | null;
|
|
16
|
+
role: string;
|
|
15
17
|
projectId: string;
|
|
16
18
|
tenantId: string;
|
|
17
|
-
metadata: MessageMetadata | null;
|
|
18
19
|
content: MessageContent;
|
|
19
|
-
|
|
20
|
+
conversationId: string;
|
|
20
21
|
fromSubAgentId: string | null;
|
|
21
22
|
toSubAgentId: string | null;
|
|
22
23
|
fromExternalAgentId: string | null;
|
|
23
24
|
toExternalAgentId: string | null;
|
|
24
|
-
taskId: string | null;
|
|
25
|
-
a2aTaskId: string | null;
|
|
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: {
|
|
@@ -143,23 +143,23 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
143
143
|
id: string;
|
|
144
144
|
createdAt: string;
|
|
145
145
|
updatedAt: string;
|
|
146
|
+
metadata: MessageMetadata | null;
|
|
147
|
+
role: string;
|
|
146
148
|
projectId: string;
|
|
147
149
|
tenantId: string;
|
|
148
|
-
metadata: MessageMetadata | null;
|
|
149
150
|
content: MessageContent;
|
|
150
|
-
|
|
151
|
+
conversationId: string;
|
|
151
152
|
fromSubAgentId: string | null;
|
|
152
153
|
toSubAgentId: string | null;
|
|
153
154
|
fromExternalAgentId: string | null;
|
|
154
155
|
toExternalAgentId: string | null;
|
|
155
|
-
taskId: string | null;
|
|
156
|
-
a2aTaskId: string | null;
|
|
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: {
|
|
@@ -196,23 +196,23 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
196
196
|
id: string;
|
|
197
197
|
createdAt: string;
|
|
198
198
|
updatedAt: string;
|
|
199
|
+
metadata: MessageMetadata | null;
|
|
200
|
+
role: string;
|
|
199
201
|
projectId: string;
|
|
200
202
|
tenantId: string;
|
|
201
|
-
metadata: MessageMetadata | null;
|
|
202
203
|
content: MessageContent;
|
|
203
|
-
|
|
204
|
+
conversationId: string;
|
|
204
205
|
fromSubAgentId: string | null;
|
|
205
206
|
toSubAgentId: string | null;
|
|
206
207
|
fromExternalAgentId: string | null;
|
|
207
208
|
toExternalAgentId: string | null;
|
|
208
|
-
taskId: string | null;
|
|
209
|
-
a2aTaskId: string | null;
|
|
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: {
|
|
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
34
34
|
}) => Promise<{
|
|
35
35
|
data: {
|
|
36
36
|
scheduledTriggerId: string;
|
|
37
|
-
status: "pending" | "
|
|
37
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
38
38
|
scheduledFor: string;
|
|
39
39
|
startedAt: string | null;
|
|
40
40
|
completedAt: string | null;
|
|
@@ -174,7 +174,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
|
|
|
174
174
|
}) => Promise<{
|
|
175
175
|
data: {
|
|
176
176
|
scheduledTriggerId: string;
|
|
177
|
-
status: "pending" | "
|
|
177
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
178
178
|
scheduledFor: string;
|
|
179
179
|
startedAt: string | null;
|
|
180
180
|
completedAt: string | null;
|
|
@@ -208,7 +208,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
|
|
|
208
208
|
}) => Promise<{
|
|
209
209
|
data: {
|
|
210
210
|
scheduledTriggerId: string;
|
|
211
|
-
status: "pending" | "
|
|
211
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
212
212
|
scheduledFor: string;
|
|
213
213
|
startedAt: string | null;
|
|
214
214
|
completedAt: string | null;
|
|
@@ -9,18 +9,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
9
9
|
id: string;
|
|
10
10
|
createdAt: string;
|
|
11
11
|
updatedAt: string;
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
metadata: TaskMetadataConfig | null;
|
|
16
12
|
ref: {
|
|
17
|
-
type: "
|
|
13
|
+
type: "commit" | "tag" | "branch";
|
|
18
14
|
name: string;
|
|
19
15
|
hash: string;
|
|
20
16
|
} | null;
|
|
17
|
+
metadata: TaskMetadataConfig | null;
|
|
21
18
|
status: string;
|
|
22
|
-
|
|
19
|
+
agentId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
tenantId: 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;
|