@inkeep/agents-core 0.0.0-dev-20260204182014 → 0.0.0-dev-20260204210021
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 +104 -104
- package/dist/auth/auth-validation-schemas.d.ts +129 -129
- package/dist/auth/auth.d.ts +54 -54
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/data-access/index.d.ts +1 -3
- package/dist/data-access/index.js +1 -3
- package/dist/data-access/manage/agents.d.ts +36 -36
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +16 -16
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- 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 +18 -18
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +27 -27
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +304 -524
- package/dist/db/manage/manage-schema.js +2 -27
- package/dist/db/runtime/runtime-schema.d.ts +240 -1153
- package/dist/db/runtime/runtime-schema.js +2 -98
- package/dist/index.d.ts +5 -10
- package/dist/index.js +4 -9
- package/dist/types/entities.d.ts +2 -8
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.d.ts +1 -4
- package/dist/utils/index.js +1 -4
- package/dist/utils/trigger-auth.d.ts +1 -1
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas.d.ts +1627 -4187
- package/dist/validation/schemas.js +4 -66
- package/drizzle/manage/meta/_journal.json +0 -7
- package/drizzle/runtime/meta/_journal.json +0 -14
- package/package.json +1 -1
- package/dist/auth/create-test-users.d.ts +0 -1
- package/dist/auth/create-test-users.js +0 -102
- package/dist/data-access/manage/workAppConfigs.d.ts +0 -228
- package/dist/data-access/manage/workAppConfigs.js +0 -120
- package/dist/data-access/runtime/workAppSlack.d.ts +0 -45
- package/dist/data-access/runtime/workAppSlack.js +0 -154
- package/dist/utils/slack-link-token.d.ts +0 -60
- package/dist/utils/slack-link-token.js +0 -124
- package/dist/utils/slack-user-token.d.ts +0 -87
- package/dist/utils/slack-user-token.js +0 -156
- package/dist/utils/sse-parser.d.ts +0 -35
- package/dist/utils/sse-parser.js +0 -71
- package/drizzle/manage/0007_whole_skreet.sql +0 -17
- package/drizzle/manage/meta/0007_snapshot.json +0 -3265
- package/drizzle/runtime/0011_grey_energizer.sql +0 -131
- package/drizzle/runtime/0012_salty_zuras.sql +0 -6
- package/drizzle/runtime/meta/0011_snapshot.json +0 -3747
- package/drizzle/runtime/meta/0012_snapshot.json +0 -3747
|
@@ -9,13 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
12
|
name: string;
|
|
13
|
+
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
18
17
|
description: string | null;
|
|
18
|
+
prompt: string | null;
|
|
19
|
+
agentId: string;
|
|
19
20
|
models: {
|
|
20
21
|
base?: {
|
|
21
22
|
model?: string | undefined;
|
|
@@ -30,7 +31,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
30
31
|
providerOptions?: Record<string, any> | undefined;
|
|
31
32
|
} | undefined;
|
|
32
33
|
} | null;
|
|
33
|
-
prompt: string | null;
|
|
34
34
|
stopWhen: {
|
|
35
35
|
stepCountIs?: number | undefined;
|
|
36
36
|
} | null;
|
|
@@ -40,13 +40,14 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
|
-
createdAt: string;
|
|
44
43
|
name: string;
|
|
44
|
+
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
-
agentId: string;
|
|
47
|
-
projectId: string;
|
|
48
46
|
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
49
48
|
description: string | null;
|
|
49
|
+
prompt: string | null;
|
|
50
|
+
agentId: string;
|
|
50
51
|
models: {
|
|
51
52
|
base?: {
|
|
52
53
|
model?: string | undefined;
|
|
@@ -61,7 +62,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
61
62
|
providerOptions?: Record<string, any> | undefined;
|
|
62
63
|
} | undefined;
|
|
63
64
|
} | null;
|
|
64
|
-
prompt: string | null;
|
|
65
65
|
stopWhen: {
|
|
66
66
|
stepCountIs?: number | undefined;
|
|
67
67
|
} | null;
|
|
@@ -109,13 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
111
|
id: string;
|
|
112
|
-
createdAt: string;
|
|
113
112
|
name: string;
|
|
113
|
+
createdAt: string;
|
|
114
114
|
updatedAt: string;
|
|
115
|
-
agentId: string;
|
|
116
|
-
projectId: string;
|
|
117
115
|
tenantId: string;
|
|
116
|
+
projectId: string;
|
|
118
117
|
description: string | null;
|
|
118
|
+
prompt: string | null;
|
|
119
|
+
agentId: string;
|
|
119
120
|
models: {
|
|
120
121
|
base?: {
|
|
121
122
|
model?: string | undefined;
|
|
@@ -130,7 +131,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
130
131
|
providerOptions?: Record<string, any> | undefined;
|
|
131
132
|
} | undefined;
|
|
132
133
|
} | null;
|
|
133
|
-
prompt: string | null;
|
|
134
134
|
stopWhen: {
|
|
135
135
|
stepCountIs?: number | undefined;
|
|
136
136
|
} | null;
|
|
@@ -19,13 +19,13 @@ 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
|
-
|
|
25
|
+
headers: Record<string, string> | null;
|
|
26
26
|
tenantId: string;
|
|
27
|
+
projectId: string;
|
|
27
28
|
description: string | null;
|
|
28
|
-
headers: Record<string, string> | null;
|
|
29
29
|
config: {
|
|
30
30
|
type: "mcp";
|
|
31
31
|
mcp: ToolMcpConfig;
|
|
@@ -77,13 +77,13 @@ 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
|
-
|
|
83
|
+
headers: Record<string, string> | null;
|
|
84
84
|
tenantId: string;
|
|
85
|
+
projectId: string;
|
|
85
86
|
description: string | null;
|
|
86
|
-
headers: Record<string, string> | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "mcp";
|
|
89
89
|
mcp: ToolMcpConfig;
|
|
@@ -136,15 +136,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
id: string;
|
|
137
137
|
createdAt: string;
|
|
138
138
|
updatedAt: string;
|
|
139
|
-
agentId: string;
|
|
140
|
-
projectId: string;
|
|
141
|
-
tenantId: string;
|
|
142
139
|
headers: Record<string, string> | null;
|
|
140
|
+
subAgentId: string;
|
|
141
|
+
tenantId: string;
|
|
142
|
+
projectId: string;
|
|
143
|
+
agentId: string;
|
|
143
144
|
toolId: 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: {
|
|
@@ -155,15 +155,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
id: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
|
-
agentId: string;
|
|
159
|
-
projectId: string;
|
|
160
|
-
tenantId: string;
|
|
161
158
|
headers: Record<string, string> | null;
|
|
159
|
+
subAgentId: string;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
projectId: string;
|
|
162
|
+
agentId: string;
|
|
162
163
|
toolId: 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
|
/**
|
|
@@ -183,15 +183,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
id: string;
|
|
184
184
|
createdAt: string;
|
|
185
185
|
updatedAt: string;
|
|
186
|
-
agentId: string;
|
|
187
|
-
projectId: string;
|
|
188
|
-
tenantId: string;
|
|
189
186
|
headers: Record<string, string> | null;
|
|
187
|
+
subAgentId: string;
|
|
188
|
+
tenantId: string;
|
|
189
|
+
projectId: string;
|
|
190
|
+
agentId: string;
|
|
190
191
|
toolId: 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,13 +201,13 @@ 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
|
-
|
|
207
|
+
headers: Record<string, string> | null;
|
|
208
208
|
tenantId: string;
|
|
209
|
+
projectId: string;
|
|
209
210
|
description: string | null;
|
|
210
|
-
headers: Record<string, string> | null;
|
|
211
211
|
config: {
|
|
212
212
|
type: "mcp";
|
|
213
213
|
mcp: ToolMcpConfig;
|
|
@@ -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
|
-
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
14
|
expiresAt: string | null;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
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
|
-
agentId: string;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
28
|
expiresAt: string | null;
|
|
29
|
+
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
agentId: string;
|
|
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
|
-
agentId: string;
|
|
46
|
-
projectId: string;
|
|
47
|
-
tenantId: string;
|
|
48
45
|
expiresAt: string | null;
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
agentId: string;
|
|
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
|
-
agentId: string;
|
|
73
|
-
projectId: string;
|
|
74
|
-
tenantId: string;
|
|
75
72
|
expiresAt: string | null;
|
|
73
|
+
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
75
|
+
agentId: string;
|
|
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
|
+
tenantId: string;
|
|
29
|
+
projectId: string;
|
|
30
|
+
title: string | null;
|
|
31
|
+
agentId: 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;
|
|
@@ -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
|
+
tenantId: string;
|
|
98
|
+
projectId: string;
|
|
99
|
+
title: string | null;
|
|
100
|
+
agentId: 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
|
};
|
|
@@ -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
|
+
tenantId: string;
|
|
134
|
+
projectId: string;
|
|
135
|
+
title: string | null;
|
|
136
|
+
agentId: string | null;
|
|
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
|
+
tenantId: string;
|
|
166
|
+
projectId: string;
|
|
167
|
+
title: string | null;
|
|
168
|
+
agentId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -12,10 +12,7 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
15
|
metadata: MessageMetadata | null;
|
|
18
|
-
content: MessageContent;
|
|
19
16
|
role: string;
|
|
20
17
|
fromSubAgentId: string | null;
|
|
21
18
|
toSubAgentId: string | null;
|
|
@@ -23,6 +20,9 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
23
20
|
toExternalAgentId: string | null;
|
|
24
21
|
taskId: string | null;
|
|
25
22
|
a2aTaskId: string | null;
|
|
23
|
+
tenantId: string;
|
|
24
|
+
projectId: string;
|
|
25
|
+
content: MessageContent;
|
|
26
26
|
conversationId: string;
|
|
27
27
|
fromTeamAgentId: string | null;
|
|
28
28
|
toTeamAgentId: string | null;
|
|
@@ -143,10 +143,7 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
143
143
|
id: string;
|
|
144
144
|
createdAt: string;
|
|
145
145
|
updatedAt: string;
|
|
146
|
-
projectId: string;
|
|
147
|
-
tenantId: string;
|
|
148
146
|
metadata: MessageMetadata | null;
|
|
149
|
-
content: MessageContent;
|
|
150
147
|
role: string;
|
|
151
148
|
fromSubAgentId: string | null;
|
|
152
149
|
toSubAgentId: string | null;
|
|
@@ -154,6 +151,9 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
154
151
|
toExternalAgentId: string | null;
|
|
155
152
|
taskId: string | null;
|
|
156
153
|
a2aTaskId: string | null;
|
|
154
|
+
tenantId: string;
|
|
155
|
+
projectId: string;
|
|
156
|
+
content: MessageContent;
|
|
157
157
|
conversationId: string;
|
|
158
158
|
fromTeamAgentId: string | null;
|
|
159
159
|
toTeamAgentId: string | null;
|
|
@@ -196,10 +196,7 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
196
196
|
id: string;
|
|
197
197
|
createdAt: string;
|
|
198
198
|
updatedAt: string;
|
|
199
|
-
projectId: string;
|
|
200
|
-
tenantId: string;
|
|
201
199
|
metadata: MessageMetadata | null;
|
|
202
|
-
content: MessageContent;
|
|
203
200
|
role: string;
|
|
204
201
|
fromSubAgentId: string | null;
|
|
205
202
|
toSubAgentId: string | null;
|
|
@@ -207,6 +204,9 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
207
204
|
toExternalAgentId: string | null;
|
|
208
205
|
taskId: string | null;
|
|
209
206
|
a2aTaskId: string | null;
|
|
207
|
+
tenantId: string;
|
|
208
|
+
projectId: string;
|
|
209
|
+
content: MessageContent;
|
|
210
210
|
conversationId: string;
|
|
211
211
|
fromTeamAgentId: string | null;
|
|
212
212
|
toTeamAgentId: string | null;
|
|
@@ -9,17 +9,17 @@ 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
|
subAgentId: string;
|
|
20
|
+
tenantId: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
agentId: string;
|
|
23
23
|
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -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;
|