@inkeep/agents-core 0.0.0-dev-20260121072820 → 0.0.0-dev-20260121145510
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-validation-schemas.d.ts +17 -17
- package/dist/auth/auth.d.ts +57 -57
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +4 -3
- package/dist/data-access/manage/agents.d.ts +26 -26
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- 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 +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- 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 +33 -33
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +19 -19
- package/dist/data-access/runtime/messages.d.ts +6 -6
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +299 -299
- package/dist/db/runtime/runtime-schema.d.ts +163 -163
- 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 +1417 -1417
- package/package.json +1 -1
|
@@ -12,20 +12,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
12
12
|
scopes: ProjectScopeConfig;
|
|
13
13
|
toolId: string;
|
|
14
14
|
}) => Promise<{
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
15
17
|
id: string;
|
|
16
18
|
name: string;
|
|
17
19
|
description: string | null;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
updatedAt: string;
|
|
20
|
-
tenantId: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
credentialReferenceId: string | null;
|
|
23
20
|
config: {
|
|
24
21
|
type: "mcp";
|
|
25
22
|
mcp: ToolMcpConfig;
|
|
26
23
|
};
|
|
27
|
-
|
|
24
|
+
credentialReferenceId: string | null;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
28
27
|
headers: Record<string, string> | null;
|
|
28
|
+
credentialScope: string;
|
|
29
29
|
imageUrl: string | null;
|
|
30
30
|
capabilities: ToolServerCapabilities | null;
|
|
31
31
|
lastError: string | null;
|
|
@@ -68,20 +68,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
68
68
|
};
|
|
69
69
|
}>;
|
|
70
70
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
71
|
+
tenantId: string;
|
|
72
|
+
projectId: string;
|
|
71
73
|
id: string;
|
|
72
74
|
name: string;
|
|
73
75
|
description: string | null;
|
|
74
|
-
createdAt: string;
|
|
75
|
-
updatedAt: string;
|
|
76
|
-
tenantId: string;
|
|
77
|
-
projectId: string;
|
|
78
|
-
credentialReferenceId: string | null;
|
|
79
76
|
config: {
|
|
80
77
|
type: "mcp";
|
|
81
78
|
mcp: ToolMcpConfig;
|
|
82
79
|
};
|
|
83
|
-
|
|
80
|
+
credentialReferenceId: string | null;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
updatedAt: string;
|
|
84
83
|
headers: Record<string, string> | null;
|
|
84
|
+
credentialScope: string;
|
|
85
85
|
imageUrl: string | null;
|
|
86
86
|
capabilities: ToolServerCapabilities | null;
|
|
87
87
|
lastError: string | null;
|
|
@@ -123,38 +123,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
123
123
|
needsApproval?: boolean;
|
|
124
124
|
}> | null;
|
|
125
125
|
}) => Promise<{
|
|
126
|
-
id: string;
|
|
127
|
-
createdAt: string;
|
|
128
|
-
updatedAt: string;
|
|
129
126
|
tenantId: string;
|
|
130
127
|
projectId: string;
|
|
128
|
+
id: string;
|
|
131
129
|
agentId: string;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
132
|
toolId: string;
|
|
133
|
-
subAgentId: string;
|
|
134
133
|
headers: Record<string, string> | null;
|
|
135
|
-
selectedTools: string[] | null;
|
|
136
134
|
toolPolicies: Record<string, {
|
|
137
135
|
needsApproval?: boolean;
|
|
138
136
|
}> | null;
|
|
137
|
+
subAgentId: string;
|
|
138
|
+
selectedTools: string[] | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
142
142
|
subAgentId: string;
|
|
143
143
|
toolId: string;
|
|
144
144
|
}) => Promise<{
|
|
145
|
-
id: string;
|
|
146
|
-
createdAt: string;
|
|
147
|
-
updatedAt: string;
|
|
148
145
|
tenantId: string;
|
|
149
146
|
projectId: string;
|
|
147
|
+
id: string;
|
|
150
148
|
agentId: string;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
updatedAt: string;
|
|
151
151
|
toolId: string;
|
|
152
|
-
subAgentId: string;
|
|
153
152
|
headers: Record<string, string> | null;
|
|
154
|
-
selectedTools: string[] | null;
|
|
155
153
|
toolPolicies: Record<string, {
|
|
156
154
|
needsApproval?: boolean;
|
|
157
155
|
}> | null;
|
|
156
|
+
subAgentId: string;
|
|
157
|
+
selectedTools: string[] | null;
|
|
158
158
|
}>;
|
|
159
159
|
/**
|
|
160
160
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -170,19 +170,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
170
170
|
}> | null;
|
|
171
171
|
relationId?: string;
|
|
172
172
|
}) => Promise<{
|
|
173
|
-
id: string;
|
|
174
|
-
createdAt: string;
|
|
175
|
-
updatedAt: string;
|
|
176
173
|
tenantId: string;
|
|
177
174
|
projectId: string;
|
|
175
|
+
id: string;
|
|
178
176
|
agentId: string;
|
|
177
|
+
createdAt: string;
|
|
178
|
+
updatedAt: string;
|
|
179
179
|
toolId: string;
|
|
180
|
-
subAgentId: string;
|
|
181
180
|
headers: Record<string, string> | null;
|
|
182
|
-
selectedTools: string[] | null;
|
|
183
181
|
toolPolicies: Record<string, {
|
|
184
182
|
needsApproval?: boolean;
|
|
185
183
|
}> | null;
|
|
184
|
+
subAgentId: string;
|
|
185
|
+
selectedTools: string[] | null;
|
|
186
186
|
}>;
|
|
187
187
|
/**
|
|
188
188
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -190,20 +190,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
190
190
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
191
191
|
data: ToolInsert;
|
|
192
192
|
}) => Promise<{
|
|
193
|
+
tenantId: string;
|
|
194
|
+
projectId: string;
|
|
193
195
|
id: string;
|
|
194
196
|
name: string;
|
|
195
197
|
description: string | null;
|
|
196
|
-
createdAt: string;
|
|
197
|
-
updatedAt: string;
|
|
198
|
-
tenantId: string;
|
|
199
|
-
projectId: string;
|
|
200
|
-
credentialReferenceId: string | null;
|
|
201
198
|
config: {
|
|
202
199
|
type: "mcp";
|
|
203
200
|
mcp: ToolMcpConfig;
|
|
204
201
|
};
|
|
205
|
-
|
|
202
|
+
credentialReferenceId: string | null;
|
|
203
|
+
createdAt: string;
|
|
204
|
+
updatedAt: string;
|
|
206
205
|
headers: Record<string, string> | null;
|
|
206
|
+
credentialScope: string;
|
|
207
207
|
imageUrl: string | null;
|
|
208
208
|
capabilities: ToolServerCapabilities | null;
|
|
209
209
|
lastError: string | null;
|
|
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
id: string;
|
|
11
|
-
name: string | null;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
10
|
tenantId: string;
|
|
15
11
|
projectId: string;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string | null;
|
|
16
14
|
agentId: string;
|
|
17
15
|
publicId: string;
|
|
18
16
|
keyHash: string;
|
|
19
17
|
keyPrefix: string;
|
|
20
18
|
lastUsedAt: string | null;
|
|
21
19
|
expiresAt: string | null;
|
|
22
|
-
} | undefined>;
|
|
23
|
-
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
|
-
id: string;
|
|
25
|
-
name: string | null;
|
|
26
20
|
createdAt: string;
|
|
27
21
|
updatedAt: string;
|
|
22
|
+
} | undefined>;
|
|
23
|
+
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
28
24
|
tenantId: string;
|
|
29
25
|
projectId: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string | null;
|
|
30
28
|
agentId: string;
|
|
31
29
|
publicId: string;
|
|
32
30
|
keyHash: string;
|
|
33
31
|
keyPrefix: string;
|
|
34
32
|
lastUsedAt: string | null;
|
|
35
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
|
-
id: string;
|
|
42
|
-
name: string | null;
|
|
43
|
-
createdAt: string;
|
|
44
|
-
updatedAt: string;
|
|
45
41
|
tenantId: string;
|
|
46
42
|
projectId: string;
|
|
43
|
+
id: string;
|
|
44
|
+
name: string | null;
|
|
47
45
|
agentId: string;
|
|
48
46
|
publicId: string;
|
|
49
47
|
keyHash: string;
|
|
50
48
|
keyPrefix: string;
|
|
51
49
|
lastUsedAt: string | null;
|
|
52
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
|
-
id: string;
|
|
69
|
-
name: string | null;
|
|
70
|
-
createdAt: string;
|
|
71
|
-
updatedAt: string;
|
|
72
68
|
tenantId: string;
|
|
73
69
|
projectId: string;
|
|
70
|
+
id: string;
|
|
71
|
+
name: string | null;
|
|
74
72
|
agentId: string;
|
|
75
73
|
publicId: string;
|
|
76
74
|
keyHash: string;
|
|
77
75
|
keyPrefix: string;
|
|
78
76
|
lastUsedAt: string | null;
|
|
79
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,17 +15,17 @@ 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;
|
|
19
21
|
title: string | null;
|
|
22
|
+
agentId: string | null;
|
|
20
23
|
createdAt: string;
|
|
21
24
|
updatedAt: string;
|
|
22
|
-
tenantId: string;
|
|
23
|
-
projectId: string;
|
|
24
|
-
agentId: string | null;
|
|
25
25
|
userId: string | null;
|
|
26
26
|
metadata: ConversationMetadata | null;
|
|
27
27
|
ref: {
|
|
28
|
-
type: "
|
|
28
|
+
type: "tag" | "commit" | "branch";
|
|
29
29
|
name: string;
|
|
30
30
|
hash: string;
|
|
31
31
|
} | null;
|
|
@@ -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: "tag" | "commit" | "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: "tag" | "commit" | "branch";
|
|
73
73
|
name: string;
|
|
74
74
|
hash: string;
|
|
75
75
|
} | null;
|
|
@@ -84,17 +84,17 @@ 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;
|
|
88
90
|
title: string | null;
|
|
91
|
+
agentId: string | null;
|
|
89
92
|
createdAt: string;
|
|
90
93
|
updatedAt: string;
|
|
91
|
-
tenantId: string;
|
|
92
|
-
projectId: string;
|
|
93
|
-
agentId: string | null;
|
|
94
94
|
userId: string | null;
|
|
95
95
|
metadata: ConversationMetadata | null;
|
|
96
96
|
ref: {
|
|
97
|
-
type: "
|
|
97
|
+
type: "tag" | "commit" | "branch";
|
|
98
98
|
name: string;
|
|
99
99
|
hash: string;
|
|
100
100
|
} | null;
|
|
@@ -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: "tag" | "commit" | "branch";
|
|
111
111
|
name: string;
|
|
112
112
|
hash: string;
|
|
113
113
|
};
|
|
@@ -120,17 +120,17 @@ 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;
|
|
124
126
|
title: string | null;
|
|
127
|
+
agentId: string | null;
|
|
125
128
|
createdAt: string;
|
|
126
129
|
updatedAt: string;
|
|
127
|
-
tenantId: string;
|
|
128
|
-
projectId: string;
|
|
129
|
-
agentId: string | null;
|
|
130
130
|
userId: string | null;
|
|
131
131
|
metadata: ConversationMetadata | null;
|
|
132
132
|
ref: {
|
|
133
|
-
type: "
|
|
133
|
+
type: "tag" | "commit" | "branch";
|
|
134
134
|
name: string;
|
|
135
135
|
hash: string;
|
|
136
136
|
} | null;
|
|
@@ -152,17 +152,17 @@ 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;
|
|
156
158
|
title: string | null;
|
|
159
|
+
agentId: string | null;
|
|
157
160
|
createdAt: string;
|
|
158
161
|
updatedAt: string;
|
|
159
|
-
tenantId: string;
|
|
160
|
-
projectId: string;
|
|
161
|
-
agentId: string | null;
|
|
162
162
|
userId: string | null;
|
|
163
163
|
metadata: ConversationMetadata | null;
|
|
164
164
|
ref: {
|
|
165
|
-
type: "
|
|
165
|
+
type: "tag" | "commit" | "branch";
|
|
166
166
|
name: string;
|
|
167
167
|
hash: string;
|
|
168
168
|
} | null;
|
|
@@ -9,11 +9,11 @@ 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
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
17
|
metadata: MessageMetadata | null;
|
|
18
18
|
content: MessageContent;
|
|
19
19
|
role: string;
|
|
@@ -140,11 +140,11 @@ 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
|
-
tenantId: string;
|
|
147
|
-
projectId: string;
|
|
148
148
|
metadata: MessageMetadata | null;
|
|
149
149
|
content: MessageContent;
|
|
150
150
|
role: string;
|
|
@@ -193,11 +193,11 @@ 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
|
-
tenantId: string;
|
|
200
|
-
projectId: string;
|
|
201
201
|
metadata: MessageMetadata | null;
|
|
202
202
|
content: MessageContent;
|
|
203
203
|
role: string;
|
|
@@ -6,16 +6,16 @@ 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
|
-
id: string;
|
|
10
|
-
createdAt: string;
|
|
11
|
-
updatedAt: string;
|
|
12
9
|
tenantId: string;
|
|
13
10
|
projectId: string;
|
|
11
|
+
id: string;
|
|
14
12
|
agentId: string;
|
|
15
|
-
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
16
15
|
metadata: TaskMetadataConfig | null;
|
|
16
|
+
subAgentId: string;
|
|
17
17
|
ref: {
|
|
18
|
-
type: "
|
|
18
|
+
type: "tag" | "commit" | "branch";
|
|
19
19
|
name: string;
|
|
20
20
|
hash: string;
|
|
21
21
|
} | null;
|
|
@@ -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: "tag" | "commit" | "branch";
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|