@inkeep/agents-core 0.0.0-dev-20260407230245 → 0.0.0-dev-20260408005804
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 +86 -86
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/constants/index.d.ts +14 -0
- package/dist/constants/index.js +15 -0
- package/dist/constants/relation-types.d.ts +5 -0
- package/dist/constants/relation-types.js +6 -0
- package/dist/constants/session-events.d.ts +13 -0
- package/dist/constants/session-events.js +14 -0
- package/dist/constants/tool-names.d.ts +7 -0
- package/dist/constants/tool-names.js +8 -0
- package/dist/constants/workflow.d.ts +7 -0
- package/dist/constants/workflow.js +8 -0
- package/dist/data-access/manage/agents.d.ts +6 -6
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +4 -4
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +6 -6
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/feedback.d.ts +2 -2
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +403 -403
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -1
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +31 -31
- package/dist/validation/schemas.d.ts +1963 -1963
- package/package.json +1 -1
|
@@ -9,14 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name: string;
|
|
13
12
|
id: string;
|
|
13
|
+
name: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
17
|
tenantId: string;
|
|
18
18
|
projectId: string;
|
|
19
|
-
agentId: string;
|
|
20
19
|
models: {
|
|
21
20
|
base?: {
|
|
22
21
|
model?: string | undefined;
|
|
@@ -42,18 +41,18 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
42
41
|
} | null;
|
|
43
42
|
prompt: string | null;
|
|
44
43
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
44
|
+
agentId: string;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
|
-
name: string;
|
|
50
49
|
id: string;
|
|
50
|
+
name: string;
|
|
51
51
|
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
53
|
description: string | null;
|
|
54
54
|
tenantId: string;
|
|
55
55
|
projectId: string;
|
|
56
|
-
agentId: string;
|
|
57
56
|
models: {
|
|
58
57
|
base?: {
|
|
59
58
|
model?: string | undefined;
|
|
@@ -79,6 +78,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
79
78
|
} | null;
|
|
80
79
|
prompt: string | null;
|
|
81
80
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
81
|
+
agentId: string;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
84
84
|
scopes: AgentScopeConfig;
|
|
@@ -127,14 +127,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
|
-
name: string;
|
|
131
130
|
id: string;
|
|
131
|
+
name: string;
|
|
132
132
|
createdAt: string;
|
|
133
133
|
updatedAt: string;
|
|
134
134
|
description: string | null;
|
|
135
135
|
tenantId: string;
|
|
136
136
|
projectId: string;
|
|
137
|
-
agentId: string;
|
|
138
137
|
models: {
|
|
139
138
|
base?: {
|
|
140
139
|
model?: string | undefined;
|
|
@@ -160,6 +159,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
160
159
|
} | null;
|
|
161
160
|
prompt: string | null;
|
|
162
161
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
162
|
+
agentId: string;
|
|
163
163
|
}>;
|
|
164
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
165
165
|
scopes: AgentScopeConfig;
|
|
@@ -20,14 +20,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
headers: Record<string, string> | null;
|
|
24
|
-
name: string;
|
|
25
23
|
id: string;
|
|
24
|
+
name: string;
|
|
26
25
|
createdAt: string;
|
|
27
26
|
updatedAt: string;
|
|
28
27
|
description: string | null;
|
|
29
28
|
tenantId: string;
|
|
30
29
|
projectId: string;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
@@ -78,14 +78,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
headers: Record<string, string> | null;
|
|
82
|
-
name: string;
|
|
83
81
|
id: string;
|
|
82
|
+
name: string;
|
|
84
83
|
createdAt: string;
|
|
85
84
|
updatedAt: string;
|
|
86
85
|
description: string | null;
|
|
87
86
|
tenantId: string;
|
|
88
87
|
projectId: string;
|
|
88
|
+
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
@@ -135,14 +135,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
-
headers: Record<string, string> | null;
|
|
139
138
|
id: string;
|
|
140
139
|
createdAt: string;
|
|
141
140
|
updatedAt: string;
|
|
142
141
|
tenantId: string;
|
|
143
142
|
projectId: string;
|
|
144
|
-
agentId: string;
|
|
145
143
|
subAgentId: string;
|
|
144
|
+
agentId: string;
|
|
145
|
+
headers: Record<string, string> | null;
|
|
146
146
|
toolId: string;
|
|
147
147
|
toolPolicies: Record<string, {
|
|
148
148
|
needsApproval?: boolean;
|
|
@@ -154,14 +154,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
-
headers: Record<string, string> | null;
|
|
158
157
|
id: string;
|
|
159
158
|
createdAt: string;
|
|
160
159
|
updatedAt: string;
|
|
161
160
|
tenantId: string;
|
|
162
161
|
projectId: string;
|
|
163
|
-
agentId: string;
|
|
164
162
|
subAgentId: string;
|
|
163
|
+
agentId: string;
|
|
164
|
+
headers: Record<string, string> | null;
|
|
165
165
|
toolId: string;
|
|
166
166
|
toolPolicies: Record<string, {
|
|
167
167
|
needsApproval?: boolean;
|
|
@@ -182,14 +182,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
-
headers: Record<string, string> | null;
|
|
186
185
|
id: string;
|
|
187
186
|
createdAt: string;
|
|
188
187
|
updatedAt: string;
|
|
189
188
|
tenantId: string;
|
|
190
189
|
projectId: string;
|
|
191
|
-
agentId: string;
|
|
192
190
|
subAgentId: string;
|
|
191
|
+
agentId: string;
|
|
192
|
+
headers: Record<string, string> | null;
|
|
193
193
|
toolId: string;
|
|
194
194
|
toolPolicies: Record<string, {
|
|
195
195
|
needsApproval?: boolean;
|
|
@@ -202,14 +202,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
headers: Record<string, string> | null;
|
|
206
|
-
name: string;
|
|
207
205
|
id: string;
|
|
206
|
+
name: string;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
210
209
|
description: string | null;
|
|
211
210
|
tenantId: string;
|
|
212
211
|
projectId: string;
|
|
212
|
+
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
@@ -37,16 +37,16 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
37
37
|
authentication: unknown;
|
|
38
38
|
signingSecretCredentialReferenceId: string | null;
|
|
39
39
|
signatureVerification: {
|
|
40
|
-
algorithm: "
|
|
41
|
-
encoding: "
|
|
40
|
+
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
|
+
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "
|
|
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: "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -8,11 +8,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
name: string | null;
|
|
12
11
|
id: string;
|
|
12
|
+
name: string | null;
|
|
13
13
|
createdAt: string;
|
|
14
|
-
expiresAt: string | null;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
expiresAt: string | null;
|
|
16
16
|
tenantId: string;
|
|
17
17
|
projectId: string;
|
|
18
18
|
agentId: string;
|
|
@@ -22,11 +22,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
22
22
|
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
name: string | null;
|
|
26
25
|
id: string;
|
|
26
|
+
name: string | null;
|
|
27
27
|
createdAt: string;
|
|
28
|
-
expiresAt: string | null;
|
|
29
28
|
updatedAt: string;
|
|
29
|
+
expiresAt: string | null;
|
|
30
30
|
tenantId: string;
|
|
31
31
|
projectId: string;
|
|
32
32
|
agentId: string;
|
|
@@ -39,11 +39,11 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
name: string | null;
|
|
43
42
|
id: string;
|
|
43
|
+
name: string | null;
|
|
44
44
|
createdAt: string;
|
|
45
|
-
expiresAt: string | null;
|
|
46
45
|
updatedAt: string;
|
|
46
|
+
expiresAt: string | null;
|
|
47
47
|
tenantId: string;
|
|
48
48
|
projectId: string;
|
|
49
49
|
agentId: string;
|
|
@@ -66,11 +66,11 @@ 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
69
|
id: string;
|
|
70
|
+
name: string | null;
|
|
71
71
|
createdAt: string;
|
|
72
|
-
expiresAt: string | null;
|
|
73
72
|
updatedAt: string;
|
|
73
|
+
expiresAt: string | null;
|
|
74
74
|
tenantId: string;
|
|
75
75
|
projectId: string;
|
|
76
76
|
agentId: string;
|
|
@@ -5,16 +5,16 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
5
5
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
|
-
type: AppType;
|
|
9
|
-
name: string;
|
|
10
8
|
id: string;
|
|
9
|
+
name: string;
|
|
11
10
|
createdAt: string;
|
|
12
11
|
updatedAt: string;
|
|
13
|
-
|
|
12
|
+
type: AppType;
|
|
14
13
|
description: string | null;
|
|
15
14
|
tenantId: string | null;
|
|
16
15
|
projectId: string | null;
|
|
17
16
|
prompt: string | null;
|
|
17
|
+
enabled: boolean;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
20
20
|
webClient: {
|
|
@@ -61,16 +61,16 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
64
|
-
type: AppType;
|
|
65
|
-
name: string;
|
|
66
64
|
id: string;
|
|
65
|
+
name: string;
|
|
67
66
|
createdAt: string;
|
|
68
67
|
updatedAt: string;
|
|
69
|
-
|
|
68
|
+
type: AppType;
|
|
70
69
|
description: string | null;
|
|
71
70
|
tenantId: string | null;
|
|
72
71
|
projectId: string | null;
|
|
73
72
|
prompt: string | null;
|
|
73
|
+
enabled: boolean;
|
|
74
74
|
config: {
|
|
75
75
|
type: "web_client";
|
|
76
76
|
webClient: {
|
|
@@ -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
|
-
metadata: ConversationMetadata | null;
|
|
19
|
-
userId: string | null;
|
|
20
18
|
id: string;
|
|
21
19
|
createdAt: string;
|
|
22
20
|
updatedAt: string;
|
|
23
|
-
title: string | null;
|
|
24
|
-
tenantId: string;
|
|
25
|
-
projectId: string;
|
|
26
|
-
agentId: string | null;
|
|
27
21
|
ref: {
|
|
28
22
|
type: "commit" | "tag" | "branch";
|
|
29
23
|
name: string;
|
|
30
24
|
hash: string;
|
|
31
25
|
} | null;
|
|
26
|
+
userId: string | null;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
28
|
+
title: string | null;
|
|
29
|
+
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
agentId: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
84
84
|
scopes: ProjectScopeConfig;
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
|
-
metadata: ConversationMetadata | null;
|
|
88
|
-
userId: string | null;
|
|
89
87
|
id: string;
|
|
90
88
|
createdAt: string;
|
|
91
89
|
updatedAt: string;
|
|
92
|
-
title: string | null;
|
|
93
|
-
tenantId: string;
|
|
94
|
-
projectId: string;
|
|
95
|
-
agentId: string | null;
|
|
96
90
|
ref: {
|
|
97
91
|
type: "commit" | "tag" | "branch";
|
|
98
92
|
name: string;
|
|
99
93
|
hash: string;
|
|
100
94
|
} | null;
|
|
95
|
+
userId: string | null;
|
|
96
|
+
metadata: ConversationMetadata | null;
|
|
97
|
+
title: string | null;
|
|
98
|
+
tenantId: string;
|
|
99
|
+
projectId: string;
|
|
100
|
+
agentId: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
120
120
|
metadata?: ConversationMetadata | null | undefined;
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
|
-
metadata: ConversationMetadata | null;
|
|
124
|
-
userId: string | null;
|
|
125
123
|
id: string;
|
|
126
124
|
createdAt: string;
|
|
127
125
|
updatedAt: string;
|
|
128
|
-
title: string | null;
|
|
129
|
-
tenantId: string;
|
|
130
|
-
projectId: string;
|
|
131
|
-
agentId: string | null;
|
|
132
126
|
ref: {
|
|
133
127
|
type: "commit" | "tag" | "branch";
|
|
134
128
|
name: string;
|
|
135
129
|
hash: string;
|
|
136
130
|
} | null;
|
|
131
|
+
userId: string | null;
|
|
132
|
+
metadata: ConversationMetadata | null;
|
|
133
|
+
title: string | null;
|
|
134
|
+
tenantId: string;
|
|
135
|
+
projectId: string;
|
|
136
|
+
agentId: 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
|
-
metadata: ConversationMetadata | null;
|
|
156
|
-
userId: string | null;
|
|
157
155
|
id: string;
|
|
158
156
|
createdAt: string;
|
|
159
157
|
updatedAt: string;
|
|
160
|
-
title: string | null;
|
|
161
|
-
tenantId: string;
|
|
162
|
-
projectId: string;
|
|
163
|
-
agentId: string | null;
|
|
164
158
|
ref: {
|
|
165
159
|
type: "commit" | "tag" | "branch";
|
|
166
160
|
name: string;
|
|
167
161
|
hash: string;
|
|
168
162
|
} | null;
|
|
163
|
+
userId: string | null;
|
|
164
|
+
metadata: ConversationMetadata | null;
|
|
165
|
+
title: string | null;
|
|
166
|
+
tenantId: string;
|
|
167
|
+
projectId: string;
|
|
168
|
+
agentId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -58,10 +58,10 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
58
58
|
total: number;
|
|
59
59
|
}>;
|
|
60
60
|
declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
|
|
61
|
-
type: "positive" | "negative";
|
|
62
61
|
id: string;
|
|
63
62
|
createdAt: string;
|
|
64
63
|
updatedAt: string;
|
|
64
|
+
type: "positive" | "negative";
|
|
65
65
|
tenantId: string;
|
|
66
66
|
projectId: string;
|
|
67
67
|
details: string | null;
|
|
@@ -87,10 +87,10 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
87
87
|
scopes: ProjectScopeConfig;
|
|
88
88
|
feedbackId: string;
|
|
89
89
|
}) => Promise<{
|
|
90
|
-
type: "positive" | "negative";
|
|
91
90
|
id: string;
|
|
92
91
|
createdAt: string;
|
|
93
92
|
updatedAt: string;
|
|
93
|
+
type: "positive" | "negative";
|
|
94
94
|
tenantId: string;
|
|
95
95
|
projectId: string;
|
|
96
96
|
details: string | null;
|
|
@@ -10,14 +10,14 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
metadata: MessageMetadata | null;
|
|
14
|
-
role: string;
|
|
15
13
|
id: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
16
|
+
metadata: MessageMetadata | null;
|
|
17
|
+
role: string;
|
|
18
|
+
content: MessageContent;
|
|
18
19
|
tenantId: string;
|
|
19
20
|
projectId: string;
|
|
20
|
-
content: MessageContent;
|
|
21
21
|
fromSubAgentId: string | null;
|
|
22
22
|
toSubAgentId: string | null;
|
|
23
23
|
fromExternalAgentId: string | null;
|
|
@@ -144,14 +144,14 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
144
144
|
scopes: ProjectScopeConfig;
|
|
145
145
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
146
146
|
}) => Promise<{
|
|
147
|
-
metadata: MessageMetadata | null;
|
|
148
|
-
role: string;
|
|
149
147
|
id: string;
|
|
150
148
|
createdAt: string;
|
|
151
149
|
updatedAt: string;
|
|
150
|
+
metadata: MessageMetadata | null;
|
|
151
|
+
role: string;
|
|
152
|
+
content: MessageContent;
|
|
152
153
|
tenantId: string;
|
|
153
154
|
projectId: string;
|
|
154
|
-
content: MessageContent;
|
|
155
155
|
fromSubAgentId: string | null;
|
|
156
156
|
toSubAgentId: string | null;
|
|
157
157
|
fromExternalAgentId: string | null;
|
|
@@ -197,14 +197,14 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
197
197
|
scopes: ProjectScopeConfig;
|
|
198
198
|
messageId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
-
metadata: MessageMetadata | null;
|
|
201
|
-
role: string;
|
|
202
200
|
id: string;
|
|
203
201
|
createdAt: string;
|
|
204
202
|
updatedAt: string;
|
|
203
|
+
metadata: MessageMetadata | null;
|
|
204
|
+
role: string;
|
|
205
|
+
content: MessageContent;
|
|
205
206
|
tenantId: string;
|
|
206
207
|
projectId: string;
|
|
207
|
-
content: MessageContent;
|
|
208
208
|
fromSubAgentId: string | null;
|
|
209
209
|
toSubAgentId: string | null;
|
|
210
210
|
fromExternalAgentId: string | null;
|
|
@@ -15,8 +15,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
|
|
|
15
15
|
scheduledTriggerId: string;
|
|
16
16
|
userId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
userId: string;
|
|
19
18
|
createdAt: string;
|
|
19
|
+
userId: string;
|
|
20
20
|
tenantId: string;
|
|
21
21
|
scheduledTriggerId: string;
|
|
22
22
|
}>;
|
|
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
|
|
8
8
|
//#region src/data-access/runtime/tasks.d.ts
|
|
9
9
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
10
|
-
metadata: TaskMetadataConfig | null;
|
|
11
10
|
id: string;
|
|
12
11
|
createdAt: string;
|
|
13
|
-
status: string;
|
|
14
12
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
agentId: string;
|
|
18
|
-
subAgentId: string;
|
|
19
13
|
ref: {
|
|
20
14
|
type: "commit" | "tag" | "branch";
|
|
21
15
|
name: string;
|
|
22
16
|
hash: string;
|
|
23
17
|
} | null;
|
|
18
|
+
metadata: TaskMetadataConfig | null;
|
|
19
|
+
status: string;
|
|
20
|
+
tenantId: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
subAgentId: string;
|
|
23
|
+
agentId: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as drizzle_orm_pg_core1846 from "drizzle-orm/pg-core";
|
|
2
2
|
|
|
3
3
|
//#region src/db/manage/dolt-safe-jsonb.d.ts
|
|
4
4
|
declare function encodeBackslashes(value: unknown): unknown;
|
|
@@ -7,6 +7,6 @@ declare function decodeBackslashes(value: unknown): unknown;
|
|
|
7
7
|
* Drop-in replacement for drizzle-orm's `jsonb()`.
|
|
8
8
|
* Encodes backslashes on write and decodes on read to work around the Doltgres bug.
|
|
9
9
|
*/
|
|
10
|
-
declare function jsonb(name: string): ReturnType<typeof
|
|
10
|
+
declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core1846.jsonb>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { decodeBackslashes, encodeBackslashes, jsonb };
|