@inkeep/agents-core 0.0.0-dev-20260219215237 → 0.0.0-dev-20260219225345
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 +24 -24
- 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 +2 -2
- package/dist/data-access/manage/agents.d.ts +42 -42
- package/dist/data-access/manage/artifactComponents.d.ts +16 -16
- 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 +14 -14
- package/dist/data-access/manage/scope-helpers.d.ts +5 -5
- 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 +20 -20
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +24 -24
- 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 +31 -31
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/tasks.d.ts +9 -9
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +296 -296
- 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 +1873 -1873
- package/package.json +1 -1
|
@@ -8,14 +8,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
|
|
11
|
+
description: string | null;
|
|
12
|
+
tenantId: string;
|
|
12
13
|
name: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
id: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
description: string | null;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
18
|
models: {
|
|
20
19
|
base?: {
|
|
21
20
|
model?: string | undefined;
|
|
@@ -30,23 +29,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
30
29
|
providerOptions?: Record<string, any> | undefined;
|
|
31
30
|
} | undefined;
|
|
32
31
|
} | null;
|
|
33
|
-
prompt: string | null;
|
|
34
32
|
stopWhen: {
|
|
35
33
|
stepCountIs?: number | undefined;
|
|
36
34
|
} | null;
|
|
35
|
+
prompt: string | null;
|
|
37
36
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
37
|
+
agentId: string;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
|
|
42
|
+
description: string | null;
|
|
43
|
+
tenantId: string;
|
|
43
44
|
name: string;
|
|
45
|
+
projectId: string;
|
|
46
|
+
id: string;
|
|
44
47
|
createdAt: string;
|
|
45
48
|
updatedAt: string;
|
|
46
|
-
description: string | null;
|
|
47
|
-
agentId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
50
49
|
models: {
|
|
51
50
|
base?: {
|
|
52
51
|
model?: string | undefined;
|
|
@@ -61,11 +60,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
61
60
|
providerOptions?: Record<string, any> | undefined;
|
|
62
61
|
} | undefined;
|
|
63
62
|
} | null;
|
|
64
|
-
prompt: string | null;
|
|
65
63
|
stopWhen: {
|
|
66
64
|
stepCountIs?: number | undefined;
|
|
67
65
|
} | null;
|
|
66
|
+
prompt: string | null;
|
|
68
67
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
68
|
+
agentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -108,14 +108,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
-
|
|
111
|
+
description: string | null;
|
|
112
|
+
tenantId: string;
|
|
112
113
|
name: string;
|
|
114
|
+
projectId: string;
|
|
115
|
+
id: string;
|
|
113
116
|
createdAt: string;
|
|
114
117
|
updatedAt: string;
|
|
115
|
-
description: string | null;
|
|
116
|
-
agentId: string;
|
|
117
|
-
projectId: string;
|
|
118
|
-
tenantId: string;
|
|
119
118
|
models: {
|
|
120
119
|
base?: {
|
|
121
120
|
model?: string | undefined;
|
|
@@ -130,11 +129,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
130
129
|
providerOptions?: Record<string, any> | undefined;
|
|
131
130
|
} | undefined;
|
|
132
131
|
} | null;
|
|
133
|
-
prompt: string | null;
|
|
134
132
|
stopWhen: {
|
|
135
133
|
stepCountIs?: number | undefined;
|
|
136
134
|
} | null;
|
|
135
|
+
prompt: string | null;
|
|
137
136
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
137
|
+
agentId: string;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
140
140
|
scopes: AgentScopeConfig;
|
|
@@ -18,14 +18,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
18
18
|
scopes: ProjectScopeConfig;
|
|
19
19
|
toolId: string;
|
|
20
20
|
}) => Promise<{
|
|
21
|
-
|
|
21
|
+
description: string | null;
|
|
22
|
+
tenantId: string;
|
|
22
23
|
name: string;
|
|
24
|
+
projectId: string;
|
|
25
|
+
id: string;
|
|
23
26
|
createdAt: string;
|
|
24
27
|
updatedAt: string;
|
|
25
|
-
description: string | null;
|
|
26
28
|
headers: Record<string, string> | null;
|
|
27
|
-
projectId: string;
|
|
28
|
-
tenantId: string;
|
|
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
|
-
|
|
79
|
+
description: string | null;
|
|
80
|
+
tenantId: string;
|
|
80
81
|
name: string;
|
|
82
|
+
projectId: string;
|
|
83
|
+
id: string;
|
|
81
84
|
createdAt: string;
|
|
82
85
|
updatedAt: string;
|
|
83
|
-
description: string | null;
|
|
84
86
|
headers: Record<string, string> | null;
|
|
85
|
-
projectId: string;
|
|
86
|
-
tenantId: string;
|
|
87
87
|
config: {
|
|
88
88
|
type: "mcp";
|
|
89
89
|
mcp: ToolMcpConfig;
|
|
@@ -133,14 +133,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
133
133
|
needsApproval?: boolean;
|
|
134
134
|
}> | null;
|
|
135
135
|
}) => Promise<{
|
|
136
|
+
tenantId: string;
|
|
137
|
+
projectId: string;
|
|
138
|
+
subAgentId: string;
|
|
136
139
|
id: string;
|
|
137
140
|
createdAt: string;
|
|
138
141
|
updatedAt: string;
|
|
139
|
-
headers: Record<string, string> | null;
|
|
140
142
|
agentId: string;
|
|
141
|
-
|
|
142
|
-
tenantId: string;
|
|
143
|
-
subAgentId: string;
|
|
143
|
+
headers: Record<string, string> | null;
|
|
144
144
|
toolId: string;
|
|
145
145
|
toolPolicies: Record<string, {
|
|
146
146
|
needsApproval?: boolean;
|
|
@@ -152,14 +152,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
152
152
|
subAgentId: string;
|
|
153
153
|
toolId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
+
tenantId: string;
|
|
156
|
+
projectId: string;
|
|
157
|
+
subAgentId: string;
|
|
155
158
|
id: string;
|
|
156
159
|
createdAt: string;
|
|
157
160
|
updatedAt: string;
|
|
158
|
-
headers: Record<string, string> | null;
|
|
159
161
|
agentId: string;
|
|
160
|
-
|
|
161
|
-
tenantId: string;
|
|
162
|
-
subAgentId: string;
|
|
162
|
+
headers: Record<string, string> | null;
|
|
163
163
|
toolId: string;
|
|
164
164
|
toolPolicies: Record<string, {
|
|
165
165
|
needsApproval?: boolean;
|
|
@@ -180,14 +180,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
180
180
|
}> | null;
|
|
181
181
|
relationId?: string;
|
|
182
182
|
}) => Promise<{
|
|
183
|
+
tenantId: string;
|
|
184
|
+
projectId: string;
|
|
185
|
+
subAgentId: string;
|
|
183
186
|
id: string;
|
|
184
187
|
createdAt: string;
|
|
185
188
|
updatedAt: string;
|
|
186
|
-
headers: Record<string, string> | null;
|
|
187
189
|
agentId: string;
|
|
188
|
-
|
|
189
|
-
tenantId: string;
|
|
190
|
-
subAgentId: string;
|
|
190
|
+
headers: Record<string, string> | null;
|
|
191
191
|
toolId: string;
|
|
192
192
|
toolPolicies: Record<string, {
|
|
193
193
|
needsApproval?: boolean;
|
|
@@ -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
|
-
|
|
203
|
+
description: string | null;
|
|
204
|
+
tenantId: string;
|
|
204
205
|
name: string;
|
|
206
|
+
projectId: string;
|
|
207
|
+
id: string;
|
|
205
208
|
createdAt: string;
|
|
206
209
|
updatedAt: string;
|
|
207
|
-
description: string | null;
|
|
208
210
|
headers: Record<string, string> | null;
|
|
209
|
-
projectId: string;
|
|
210
|
-
tenantId: string;
|
|
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: "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
|
-
|
|
10
|
+
tenantId: string;
|
|
11
11
|
name: string | null;
|
|
12
|
+
projectId: string;
|
|
13
|
+
id: string;
|
|
12
14
|
createdAt: string;
|
|
13
15
|
updatedAt: string;
|
|
14
|
-
expiresAt: string | null;
|
|
15
16
|
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
17
|
publicId: string;
|
|
19
18
|
keyHash: string;
|
|
20
19
|
keyPrefix: string;
|
|
21
20
|
lastUsedAt: string | null;
|
|
21
|
+
expiresAt: string | null;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
|
-
|
|
24
|
+
tenantId: string;
|
|
25
25
|
name: string | null;
|
|
26
|
+
projectId: string;
|
|
27
|
+
id: string;
|
|
26
28
|
createdAt: string;
|
|
27
29
|
updatedAt: string;
|
|
28
|
-
expiresAt: string | null;
|
|
29
30
|
agentId: string;
|
|
30
|
-
projectId: string;
|
|
31
|
-
tenantId: string;
|
|
32
31
|
publicId: string;
|
|
33
32
|
keyHash: string;
|
|
34
33
|
keyPrefix: string;
|
|
35
34
|
lastUsedAt: string | null;
|
|
35
|
+
expiresAt: string | null;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
|
-
|
|
41
|
+
tenantId: string;
|
|
42
42
|
name: string | null;
|
|
43
|
+
projectId: string;
|
|
44
|
+
id: string;
|
|
43
45
|
createdAt: string;
|
|
44
46
|
updatedAt: string;
|
|
45
|
-
expiresAt: string | null;
|
|
46
47
|
agentId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
publicId: string;
|
|
50
49
|
keyHash: string;
|
|
51
50
|
keyPrefix: string;
|
|
52
51
|
lastUsedAt: string | null;
|
|
52
|
+
expiresAt: string | null;
|
|
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
|
-
|
|
68
|
+
tenantId: string;
|
|
69
69
|
name: string | null;
|
|
70
|
+
projectId: string;
|
|
71
|
+
id: string;
|
|
70
72
|
createdAt: string;
|
|
71
73
|
updatedAt: string;
|
|
72
|
-
expiresAt: string | null;
|
|
73
74
|
agentId: string;
|
|
74
|
-
projectId: string;
|
|
75
|
-
tenantId: string;
|
|
76
75
|
publicId: string;
|
|
77
76
|
keyHash: string;
|
|
78
77
|
keyPrefix: string;
|
|
79
78
|
lastUsedAt: string | null;
|
|
79
|
+
expiresAt: string | null;
|
|
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
|
+
title: string | null;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
userId: string | null;
|
|
21
|
+
projectId: string;
|
|
18
22
|
id: string;
|
|
19
23
|
createdAt: string;
|
|
20
24
|
updatedAt: string;
|
|
25
|
+
metadata: ConversationMetadata | null;
|
|
26
|
+
agentId: string | 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
|
+
title: string | null;
|
|
88
|
+
tenantId: string;
|
|
89
|
+
userId: string | null;
|
|
90
|
+
projectId: string;
|
|
87
91
|
id: string;
|
|
88
92
|
createdAt: string;
|
|
89
93
|
updatedAt: string;
|
|
94
|
+
metadata: ConversationMetadata | null;
|
|
95
|
+
agentId: string | 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
|
+
title: string | null;
|
|
124
|
+
tenantId: string;
|
|
125
|
+
userId: string | null;
|
|
126
|
+
projectId: string;
|
|
123
127
|
id: string;
|
|
124
128
|
createdAt: string;
|
|
125
129
|
updatedAt: string;
|
|
130
|
+
metadata: ConversationMetadata | null;
|
|
131
|
+
agentId: string | 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
|
+
title: string | null;
|
|
156
|
+
tenantId: string;
|
|
157
|
+
userId: string | null;
|
|
158
|
+
projectId: string;
|
|
155
159
|
id: string;
|
|
156
160
|
createdAt: string;
|
|
157
161
|
updatedAt: string;
|
|
162
|
+
metadata: ConversationMetadata | null;
|
|
163
|
+
agentId: string | 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,21 +9,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
messageId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
metadata: MessageMetadata | null;
|
|
16
|
-
role: string;
|
|
17
|
-
projectId: string;
|
|
18
12
|
tenantId: string;
|
|
19
13
|
content: MessageContent;
|
|
14
|
+
projectId: string;
|
|
20
15
|
fromSubAgentId: string | null;
|
|
21
16
|
toSubAgentId: string | null;
|
|
22
17
|
fromExternalAgentId: string | null;
|
|
23
18
|
toExternalAgentId: string | null;
|
|
24
19
|
taskId: string | null;
|
|
25
20
|
a2aTaskId: string | null;
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
metadata: MessageMetadata | null;
|
|
26
25
|
conversationId: string;
|
|
26
|
+
role: string;
|
|
27
27
|
fromTeamAgentId: string | null;
|
|
28
28
|
toTeamAgentId: string | null;
|
|
29
29
|
visibility: string;
|
|
@@ -140,21 +140,21 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
140
140
|
id: string;
|
|
141
141
|
}[]>;
|
|
142
142
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
143
|
-
id: string;
|
|
144
|
-
createdAt: string;
|
|
145
|
-
updatedAt: string;
|
|
146
|
-
metadata: MessageMetadata | null;
|
|
147
|
-
role: string;
|
|
148
|
-
projectId: string;
|
|
149
143
|
tenantId: string;
|
|
150
144
|
content: MessageContent;
|
|
145
|
+
projectId: string;
|
|
151
146
|
fromSubAgentId: string | null;
|
|
152
147
|
toSubAgentId: string | null;
|
|
153
148
|
fromExternalAgentId: string | null;
|
|
154
149
|
toExternalAgentId: string | null;
|
|
155
150
|
taskId: string | null;
|
|
156
151
|
a2aTaskId: string | null;
|
|
152
|
+
id: string;
|
|
153
|
+
createdAt: string;
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
metadata: MessageMetadata | null;
|
|
157
156
|
conversationId: string;
|
|
157
|
+
role: string;
|
|
158
158
|
fromTeamAgentId: string | null;
|
|
159
159
|
toTeamAgentId: string | null;
|
|
160
160
|
visibility: string;
|
|
@@ -193,21 +193,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
193
193
|
scopes: ProjectScopeConfig;
|
|
194
194
|
messageId: string;
|
|
195
195
|
}) => Promise<{
|
|
196
|
-
id: string;
|
|
197
|
-
createdAt: string;
|
|
198
|
-
updatedAt: string;
|
|
199
|
-
metadata: MessageMetadata | null;
|
|
200
|
-
role: string;
|
|
201
|
-
projectId: string;
|
|
202
196
|
tenantId: string;
|
|
203
197
|
content: MessageContent;
|
|
198
|
+
projectId: string;
|
|
204
199
|
fromSubAgentId: string | null;
|
|
205
200
|
toSubAgentId: string | null;
|
|
206
201
|
fromExternalAgentId: string | null;
|
|
207
202
|
toExternalAgentId: string | null;
|
|
208
203
|
taskId: string | null;
|
|
209
204
|
a2aTaskId: string | null;
|
|
205
|
+
id: string;
|
|
206
|
+
createdAt: string;
|
|
207
|
+
updatedAt: string;
|
|
208
|
+
metadata: MessageMetadata | null;
|
|
210
209
|
conversationId: string;
|
|
210
|
+
role: string;
|
|
211
211
|
fromTeamAgentId: string | null;
|
|
212
212
|
toTeamAgentId: string | null;
|
|
213
213
|
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
|
+
status: string;
|
|
10
|
+
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
12
|
+
subAgentId: string;
|
|
9
13
|
id: string;
|
|
10
14
|
createdAt: string;
|
|
11
15
|
updatedAt: string;
|
|
16
|
+
metadata: TaskMetadataConfig | null;
|
|
17
|
+
agentId: string;
|
|
18
|
+
contextId: string;
|
|
12
19
|
ref: {
|
|
13
|
-
type: "
|
|
20
|
+
type: "commit" | "tag" | "branch";
|
|
14
21
|
name: string;
|
|
15
22
|
hash: string;
|
|
16
23
|
} | null;
|
|
17
|
-
metadata: TaskMetadataConfig | null;
|
|
18
|
-
status: string;
|
|
19
|
-
agentId: string;
|
|
20
|
-
projectId: string;
|
|
21
|
-
tenantId: string;
|
|
22
|
-
subAgentId: string;
|
|
23
|
-
contextId: 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;
|