@inkeep/agents-core 0.0.0-dev-20260106225040 → 0.0.0-dev-20260106230438
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 +146 -146
- package/dist/auth/auth.d.ts +39 -39
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/agents.d.ts +46 -46
- package/dist/data-access/apiKeys.d.ts +20 -20
- package/dist/data-access/artifactComponents.d.ts +14 -14
- package/dist/data-access/contextConfigs.d.ts +20 -20
- package/dist/data-access/conversations.d.ts +16 -16
- package/dist/data-access/dataComponents.d.ts +6 -6
- package/dist/data-access/functionTools.d.ts +10 -10
- package/dist/data-access/messages.d.ts +9 -9
- package/dist/data-access/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/subAgentRelations.d.ts +28 -28
- package/dist/data-access/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/subAgents.d.ts +18 -18
- package/dist/data-access/tasks.d.ts +4 -4
- package/dist/data-access/tools.d.ts +36 -36
- package/dist/db/schema.d.ts +405 -405
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +149 -149
- package/package.json +1 -1
|
@@ -8,14 +8,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
12
13
|
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string | null;
|
|
16
|
+
prompt: string | null;
|
|
17
|
+
agentId: string;
|
|
13
18
|
createdAt: string;
|
|
14
19
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
description: string | null;
|
|
19
20
|
models: {
|
|
20
21
|
base?: {
|
|
21
22
|
model?: string | undefined;
|
|
@@ -30,7 +31,6 @@ declare const getSubAgentById: (db: DatabaseClient) => (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;
|
|
@@ -39,14 +39,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
39
39
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
|
|
42
|
+
tenantId: string;
|
|
43
|
+
projectId: string;
|
|
43
44
|
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
description: string | null;
|
|
47
|
+
prompt: string | null;
|
|
48
|
+
agentId: string;
|
|
44
49
|
createdAt: string;
|
|
45
50
|
updatedAt: string;
|
|
46
|
-
agentId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
tenantId: string;
|
|
49
|
-
description: string | null;
|
|
50
51
|
models: {
|
|
51
52
|
base?: {
|
|
52
53
|
model?: string | undefined;
|
|
@@ -61,7 +62,6 @@ declare const listSubAgents: (db: DatabaseClient) => (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;
|
|
@@ -108,14 +108,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
-
|
|
111
|
+
tenantId: string;
|
|
112
|
+
projectId: string;
|
|
112
113
|
id: string;
|
|
114
|
+
name: string;
|
|
115
|
+
description: string | null;
|
|
116
|
+
prompt: string | null;
|
|
117
|
+
agentId: string;
|
|
113
118
|
createdAt: string;
|
|
114
119
|
updatedAt: string;
|
|
115
|
-
agentId: string;
|
|
116
|
-
projectId: string;
|
|
117
|
-
tenantId: string;
|
|
118
|
-
description: string | null;
|
|
119
120
|
models: {
|
|
120
121
|
base?: {
|
|
121
122
|
model?: string | undefined;
|
|
@@ -130,7 +131,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
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;
|
|
@@ -6,15 +6,15 @@ import { DatabaseClient } from "../db/client.js";
|
|
|
6
6
|
|
|
7
7
|
//#region src/data-access/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
|
+
tenantId: string;
|
|
10
|
+
projectId: string;
|
|
9
11
|
id: string;
|
|
12
|
+
agentId: string;
|
|
10
13
|
createdAt: string;
|
|
11
14
|
updatedAt: string;
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
15
|
metadata: TaskMetadataConfig | null;
|
|
16
|
-
contextId: string;
|
|
17
16
|
status: string;
|
|
17
|
+
contextId: string;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
}>;
|
|
20
20
|
declare const getTask: (db: DatabaseClient) => (params: {
|
|
@@ -12,20 +12,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
12
12
|
scopes: ProjectScopeConfig;
|
|
13
13
|
toolId: string;
|
|
14
14
|
}) => Promise<{
|
|
15
|
-
name: string;
|
|
16
|
-
id: string;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
projectId: string;
|
|
20
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
21
19
|
description: string | null;
|
|
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;
|
|
@@ -61,20 +61,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
64
|
-
name: string;
|
|
65
|
-
id: string;
|
|
66
|
-
createdAt: string;
|
|
67
|
-
updatedAt: string;
|
|
68
|
-
projectId: string;
|
|
69
64
|
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
70
68
|
description: string | null;
|
|
71
|
-
credentialReferenceId: string | null;
|
|
72
69
|
config: {
|
|
73
70
|
type: "mcp";
|
|
74
71
|
mcp: ToolMcpConfig;
|
|
75
72
|
};
|
|
76
|
-
|
|
73
|
+
credentialReferenceId: string | null;
|
|
74
|
+
createdAt: string;
|
|
75
|
+
updatedAt: string;
|
|
77
76
|
headers: Record<string, string> | null;
|
|
77
|
+
credentialScope: string;
|
|
78
78
|
imageUrl: string | null;
|
|
79
79
|
capabilities: ToolServerCapabilities | null;
|
|
80
80
|
lastError: string | null;
|
|
@@ -116,38 +116,38 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
116
116
|
needsApproval?: boolean;
|
|
117
117
|
}> | null;
|
|
118
118
|
}) => Promise<{
|
|
119
|
+
tenantId: string;
|
|
120
|
+
projectId: string;
|
|
119
121
|
id: string;
|
|
122
|
+
agentId: string;
|
|
120
123
|
createdAt: string;
|
|
121
124
|
updatedAt: string;
|
|
122
|
-
agentId: string;
|
|
123
|
-
projectId: string;
|
|
124
|
-
tenantId: string;
|
|
125
125
|
toolId: string;
|
|
126
|
-
subAgentId: string;
|
|
127
126
|
headers: Record<string, string> | null;
|
|
128
|
-
selectedTools: string[] | null;
|
|
129
127
|
toolPolicies: Record<string, {
|
|
130
128
|
needsApproval?: boolean;
|
|
131
129
|
}> | null;
|
|
130
|
+
subAgentId: string;
|
|
131
|
+
selectedTools: string[] | null;
|
|
132
132
|
}>;
|
|
133
133
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
134
134
|
scopes: AgentScopeConfig;
|
|
135
135
|
subAgentId: string;
|
|
136
136
|
toolId: string;
|
|
137
137
|
}) => Promise<{
|
|
138
|
+
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
138
140
|
id: string;
|
|
141
|
+
agentId: string;
|
|
139
142
|
createdAt: string;
|
|
140
143
|
updatedAt: string;
|
|
141
|
-
agentId: string;
|
|
142
|
-
projectId: string;
|
|
143
|
-
tenantId: string;
|
|
144
144
|
toolId: string;
|
|
145
|
-
subAgentId: string;
|
|
146
145
|
headers: Record<string, string> | null;
|
|
147
|
-
selectedTools: string[] | null;
|
|
148
146
|
toolPolicies: Record<string, {
|
|
149
147
|
needsApproval?: boolean;
|
|
150
148
|
}> | null;
|
|
149
|
+
subAgentId: string;
|
|
150
|
+
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
153
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -163,19 +163,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
163
163
|
}> | null;
|
|
164
164
|
relationId?: string;
|
|
165
165
|
}) => Promise<{
|
|
166
|
+
tenantId: string;
|
|
167
|
+
projectId: string;
|
|
166
168
|
id: string;
|
|
169
|
+
agentId: string;
|
|
167
170
|
createdAt: string;
|
|
168
171
|
updatedAt: string;
|
|
169
|
-
agentId: string;
|
|
170
|
-
projectId: string;
|
|
171
|
-
tenantId: string;
|
|
172
172
|
toolId: string;
|
|
173
|
-
subAgentId: string;
|
|
174
173
|
headers: Record<string, string> | null;
|
|
175
|
-
selectedTools: string[] | null;
|
|
176
174
|
toolPolicies: Record<string, {
|
|
177
175
|
needsApproval?: boolean;
|
|
178
176
|
}> | null;
|
|
177
|
+
subAgentId: string;
|
|
178
|
+
selectedTools: string[] | null;
|
|
179
179
|
}>;
|
|
180
180
|
/**
|
|
181
181
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -183,20 +183,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
183
183
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
184
184
|
data: ToolInsert;
|
|
185
185
|
}) => Promise<{
|
|
186
|
-
name: string;
|
|
187
|
-
id: string;
|
|
188
|
-
createdAt: string;
|
|
189
|
-
updatedAt: string;
|
|
190
|
-
projectId: string;
|
|
191
186
|
tenantId: string;
|
|
187
|
+
projectId: string;
|
|
188
|
+
id: string;
|
|
189
|
+
name: string;
|
|
192
190
|
description: string | null;
|
|
193
|
-
credentialReferenceId: string | null;
|
|
194
191
|
config: {
|
|
195
192
|
type: "mcp";
|
|
196
193
|
mcp: ToolMcpConfig;
|
|
197
194
|
};
|
|
198
|
-
|
|
195
|
+
credentialReferenceId: string | null;
|
|
196
|
+
createdAt: string;
|
|
197
|
+
updatedAt: string;
|
|
199
198
|
headers: Record<string, string> | null;
|
|
199
|
+
credentialScope: string;
|
|
200
200
|
imageUrl: string | null;
|
|
201
201
|
capabilities: ToolServerCapabilities | null;
|
|
202
202
|
lastError: string | null;
|