@inkeep/agents-core 0.0.0-dev-20260122200302 → 0.0.0-dev-20260122212954
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/data-access/manage/agents.d.ts +16 -16
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- 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 +12 -12
- package/dist/data-access/runtime/conversations.d.ts +19 -19
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +375 -375
- package/dist/db/runtime/runtime-schema.d.ts +181 -181
- 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 +448 -448
- package/package.json +1 -1
|
@@ -15,16 +15,16 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
id: string;
|
|
18
|
-
createdAt: string;
|
|
19
18
|
name: string;
|
|
20
|
-
updatedAt: string;
|
|
21
19
|
description: string | null;
|
|
22
|
-
headers: Record<string, 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;
|
|
27
|
+
headers: Record<string, string> | null;
|
|
28
28
|
credentialScope: string;
|
|
29
29
|
imageUrl: string | null;
|
|
30
30
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -71,16 +71,16 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
71
71
|
tenantId: string;
|
|
72
72
|
projectId: string;
|
|
73
73
|
id: string;
|
|
74
|
-
createdAt: string;
|
|
75
74
|
name: string;
|
|
76
|
-
updatedAt: string;
|
|
77
75
|
description: string | null;
|
|
78
|
-
headers: Record<string, 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;
|
|
83
|
+
headers: Record<string, string> | null;
|
|
84
84
|
credentialScope: string;
|
|
85
85
|
imageUrl: string | null;
|
|
86
86
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -126,16 +126,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
126
126
|
tenantId: string;
|
|
127
127
|
projectId: string;
|
|
128
128
|
id: string;
|
|
129
|
+
agentId: string;
|
|
129
130
|
createdAt: string;
|
|
130
131
|
updatedAt: string;
|
|
131
|
-
headers: Record<string, string> | null;
|
|
132
|
-
agentId: string;
|
|
133
|
-
subAgentId: string;
|
|
134
132
|
toolId: string;
|
|
135
|
-
|
|
133
|
+
headers: Record<string, 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;
|
|
@@ -145,16 +145,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
145
145
|
tenantId: string;
|
|
146
146
|
projectId: string;
|
|
147
147
|
id: string;
|
|
148
|
+
agentId: string;
|
|
148
149
|
createdAt: string;
|
|
149
150
|
updatedAt: string;
|
|
150
|
-
headers: Record<string, string> | null;
|
|
151
|
-
agentId: string;
|
|
152
|
-
subAgentId: string;
|
|
153
151
|
toolId: string;
|
|
154
|
-
|
|
152
|
+
headers: Record<string, 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)
|
|
@@ -173,16 +173,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
173
173
|
tenantId: string;
|
|
174
174
|
projectId: string;
|
|
175
175
|
id: string;
|
|
176
|
+
agentId: string;
|
|
176
177
|
createdAt: string;
|
|
177
178
|
updatedAt: string;
|
|
178
|
-
headers: Record<string, string> | null;
|
|
179
|
-
agentId: string;
|
|
180
|
-
subAgentId: string;
|
|
181
179
|
toolId: string;
|
|
182
|
-
|
|
180
|
+
headers: Record<string, 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)
|
|
@@ -193,16 +193,16 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
193
193
|
tenantId: string;
|
|
194
194
|
projectId: string;
|
|
195
195
|
id: string;
|
|
196
|
-
createdAt: string;
|
|
197
196
|
name: string;
|
|
198
|
-
updatedAt: string;
|
|
199
197
|
description: string | null;
|
|
200
|
-
headers: Record<string, 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;
|
|
205
|
+
headers: Record<string, string> | null;
|
|
206
206
|
credentialScope: string;
|
|
207
207
|
imageUrl: string | null;
|
|
208
208
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -10,29 +10,29 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
tenantId: string;
|
|
11
11
|
projectId: string;
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
13
|
name: string | null;
|
|
15
|
-
updatedAt: string;
|
|
16
|
-
expiresAt: string | null;
|
|
17
14
|
agentId: string;
|
|
18
15
|
publicId: string;
|
|
19
16
|
keyHash: string;
|
|
20
17
|
keyPrefix: string;
|
|
21
18
|
lastUsedAt: string | null;
|
|
19
|
+
expiresAt: string | null;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
24
|
tenantId: string;
|
|
25
25
|
projectId: string;
|
|
26
26
|
id: string;
|
|
27
|
-
createdAt: string;
|
|
28
27
|
name: string | null;
|
|
29
|
-
updatedAt: string;
|
|
30
|
-
expiresAt: string | null;
|
|
31
28
|
agentId: string;
|
|
32
29
|
publicId: string;
|
|
33
30
|
keyHash: string;
|
|
34
31
|
keyPrefix: string;
|
|
35
32
|
lastUsedAt: string | null;
|
|
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;
|
|
@@ -41,15 +41,15 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
41
41
|
tenantId: string;
|
|
42
42
|
projectId: string;
|
|
43
43
|
id: string;
|
|
44
|
-
createdAt: string;
|
|
45
44
|
name: string | null;
|
|
46
|
-
updatedAt: string;
|
|
47
|
-
expiresAt: string | null;
|
|
48
45
|
agentId: string;
|
|
49
46
|
publicId: string;
|
|
50
47
|
keyHash: string;
|
|
51
48
|
keyPrefix: string;
|
|
52
49
|
lastUsedAt: string | null;
|
|
50
|
+
expiresAt: string | null;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -68,15 +68,15 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
68
68
|
tenantId: string;
|
|
69
69
|
projectId: string;
|
|
70
70
|
id: string;
|
|
71
|
-
createdAt: string;
|
|
72
71
|
name: string | null;
|
|
73
|
-
updatedAt: string;
|
|
74
|
-
expiresAt: string | null;
|
|
75
72
|
agentId: string;
|
|
76
73
|
publicId: string;
|
|
77
74
|
keyHash: string;
|
|
78
75
|
keyPrefix: string;
|
|
79
76
|
lastUsedAt: string | null;
|
|
77
|
+
expiresAt: string | null;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|
|
@@ -18,17 +18,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
18
18
|
tenantId: string;
|
|
19
19
|
projectId: string;
|
|
20
20
|
id: string;
|
|
21
|
+
title: string | null;
|
|
22
|
+
agentId: string | null;
|
|
21
23
|
createdAt: string;
|
|
22
24
|
updatedAt: string;
|
|
23
|
-
|
|
25
|
+
userId: string | null;
|
|
24
26
|
metadata: ConversationMetadata | null;
|
|
25
27
|
ref: {
|
|
26
|
-
type: "
|
|
28
|
+
type: "commit" | "tag" | "branch";
|
|
27
29
|
name: string;
|
|
28
30
|
hash: string;
|
|
29
31
|
} | null;
|
|
30
|
-
userId: 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
|
tenantId: string;
|
|
88
88
|
projectId: string;
|
|
89
89
|
id: string;
|
|
90
|
+
title: string | null;
|
|
91
|
+
agentId: string | null;
|
|
90
92
|
createdAt: string;
|
|
91
93
|
updatedAt: string;
|
|
92
|
-
|
|
94
|
+
userId: string | null;
|
|
93
95
|
metadata: ConversationMetadata | null;
|
|
94
96
|
ref: {
|
|
95
|
-
type: "
|
|
97
|
+
type: "commit" | "tag" | "branch";
|
|
96
98
|
name: string;
|
|
97
99
|
hash: string;
|
|
98
100
|
} | null;
|
|
99
|
-
userId: 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
|
tenantId: string;
|
|
124
124
|
projectId: string;
|
|
125
125
|
id: string;
|
|
126
|
+
title: string | null;
|
|
127
|
+
agentId: string | null;
|
|
126
128
|
createdAt: string;
|
|
127
129
|
updatedAt: string;
|
|
128
|
-
|
|
130
|
+
userId: string | null;
|
|
129
131
|
metadata: ConversationMetadata | null;
|
|
130
132
|
ref: {
|
|
131
|
-
type: "
|
|
133
|
+
type: "commit" | "tag" | "branch";
|
|
132
134
|
name: string;
|
|
133
135
|
hash: string;
|
|
134
136
|
} | null;
|
|
135
|
-
userId: 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
|
tenantId: string;
|
|
156
156
|
projectId: string;
|
|
157
157
|
id: string;
|
|
158
|
+
title: string | null;
|
|
159
|
+
agentId: string | null;
|
|
158
160
|
createdAt: string;
|
|
159
161
|
updatedAt: string;
|
|
160
|
-
|
|
162
|
+
userId: string | null;
|
|
161
163
|
metadata: ConversationMetadata | null;
|
|
162
164
|
ref: {
|
|
163
|
-
type: "
|
|
165
|
+
type: "commit" | "tag" | "branch";
|
|
164
166
|
name: string;
|
|
165
167
|
hash: string;
|
|
166
168
|
} | null;
|
|
167
|
-
userId: string | null;
|
|
168
|
-
agentId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -17,18 +17,18 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
metadata: MessageMetadata | null;
|
|
18
18
|
content: MessageContent;
|
|
19
19
|
role: string;
|
|
20
|
+
conversationId: string;
|
|
20
21
|
fromSubAgentId: string | null;
|
|
21
22
|
toSubAgentId: string | null;
|
|
22
23
|
fromExternalAgentId: string | null;
|
|
23
24
|
toExternalAgentId: string | null;
|
|
24
|
-
taskId: string | null;
|
|
25
|
-
a2aTaskId: string | null;
|
|
26
|
-
conversationId: string;
|
|
27
25
|
fromTeamAgentId: string | null;
|
|
28
26
|
toTeamAgentId: string | null;
|
|
29
27
|
visibility: string;
|
|
30
28
|
messageType: string;
|
|
29
|
+
taskId: string | null;
|
|
31
30
|
parentMessageId: string | null;
|
|
31
|
+
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -148,18 +148,18 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
148
148
|
metadata: MessageMetadata | null;
|
|
149
149
|
content: MessageContent;
|
|
150
150
|
role: string;
|
|
151
|
+
conversationId: string;
|
|
151
152
|
fromSubAgentId: string | null;
|
|
152
153
|
toSubAgentId: string | null;
|
|
153
154
|
fromExternalAgentId: string | null;
|
|
154
155
|
toExternalAgentId: string | null;
|
|
155
|
-
taskId: string | null;
|
|
156
|
-
a2aTaskId: string | null;
|
|
157
|
-
conversationId: string;
|
|
158
156
|
fromTeamAgentId: string | null;
|
|
159
157
|
toTeamAgentId: string | null;
|
|
160
158
|
visibility: string;
|
|
161
159
|
messageType: string;
|
|
160
|
+
taskId: string | null;
|
|
162
161
|
parentMessageId: string | null;
|
|
162
|
+
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -201,18 +201,18 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
201
201
|
metadata: MessageMetadata | null;
|
|
202
202
|
content: MessageContent;
|
|
203
203
|
role: string;
|
|
204
|
+
conversationId: string;
|
|
204
205
|
fromSubAgentId: string | null;
|
|
205
206
|
toSubAgentId: string | null;
|
|
206
207
|
fromExternalAgentId: string | null;
|
|
207
208
|
toExternalAgentId: string | null;
|
|
208
|
-
taskId: string | null;
|
|
209
|
-
a2aTaskId: string | null;
|
|
210
|
-
conversationId: string;
|
|
211
209
|
fromTeamAgentId: string | null;
|
|
212
210
|
toTeamAgentId: string | null;
|
|
213
211
|
visibility: string;
|
|
214
212
|
messageType: string;
|
|
213
|
+
taskId: string | null;
|
|
215
214
|
parentMessageId: string | null;
|
|
215
|
+
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -9,18 +9,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
9
9
|
tenantId: string;
|
|
10
10
|
projectId: string;
|
|
11
11
|
id: string;
|
|
12
|
+
agentId: string;
|
|
12
13
|
createdAt: string;
|
|
13
14
|
updatedAt: string;
|
|
14
15
|
metadata: TaskMetadataConfig | null;
|
|
15
16
|
ref: {
|
|
16
|
-
type: "
|
|
17
|
+
type: "commit" | "tag" | "branch";
|
|
17
18
|
name: string;
|
|
18
19
|
hash: string;
|
|
19
20
|
} | null;
|
|
20
21
|
status: string;
|
|
21
|
-
agentId: string;
|
|
22
|
-
subAgentId: string;
|
|
23
22
|
contextId: string;
|
|
23
|
+
subAgentId: 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;
|