@inkeep/agents-core 0.50.0 → 0.50.1
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 +105 -105
- package/dist/auth/auth-validation-schemas.d.ts +148 -148
- package/dist/auth/auth.d.ts +22 -22
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +3 -4
- package/dist/data-access/manage/agents.d.ts +44 -44
- package/dist/data-access/manage/agents.js +8 -6
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- package/dist/data-access/manage/artifactComponents.js +3 -3
- package/dist/data-access/manage/contextConfigs.d.ts +20 -20
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/dataComponents.js +2 -2
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/skills.d.ts +16 -16
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +22 -22
- package/dist/data-access/manage/subAgentRelations.js +2 -2
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- 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/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +8 -8
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +298 -298
- package/dist/setup/index.d.ts +2 -0
- package/dist/setup/index.js +3 -0
- package/dist/setup/setup.d.ts +24 -0
- package/dist/setup/setup.js +506 -0
- 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 +1953 -1953
- package/package.json +5 -1
|
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "query" | "
|
|
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: "literal" | "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -8,48 +8,48 @@ 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;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
12
|
tenantId: string;
|
|
17
|
-
|
|
13
|
+
projectId: string;
|
|
14
|
+
agentId: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
18
17
|
publicId: string;
|
|
19
18
|
keyHash: string;
|
|
20
19
|
keyPrefix: string;
|
|
21
20
|
lastUsedAt: string | null;
|
|
21
|
+
expiresAt: string | null;
|
|
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;
|
|
27
|
-
updatedAt: string;
|
|
28
|
-
agentId: string;
|
|
29
|
-
projectId: string;
|
|
30
26
|
tenantId: string;
|
|
31
|
-
|
|
27
|
+
projectId: string;
|
|
28
|
+
agentId: string;
|
|
29
|
+
createdAt: string;
|
|
30
|
+
updatedAt: string;
|
|
32
31
|
publicId: string;
|
|
33
32
|
keyHash: string;
|
|
34
33
|
keyPrefix: string;
|
|
35
34
|
lastUsedAt: string | null;
|
|
35
|
+
expiresAt: string | null;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
41
|
id: string;
|
|
42
|
-
createdAt: string;
|
|
43
42
|
name: string | null;
|
|
44
|
-
updatedAt: string;
|
|
45
|
-
agentId: string;
|
|
46
|
-
projectId: string;
|
|
47
43
|
tenantId: string;
|
|
48
|
-
|
|
44
|
+
projectId: string;
|
|
45
|
+
agentId: string;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
updatedAt: string;
|
|
49
48
|
publicId: string;
|
|
50
49
|
keyHash: string;
|
|
51
50
|
keyPrefix: string;
|
|
52
51
|
lastUsedAt: string | null;
|
|
52
|
+
expiresAt: string | null;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -66,17 +66,17 @@ 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;
|
|
71
|
-
updatedAt: string;
|
|
72
|
-
agentId: string;
|
|
73
|
-
projectId: string;
|
|
74
70
|
tenantId: string;
|
|
75
|
-
|
|
71
|
+
projectId: string;
|
|
72
|
+
agentId: string;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
updatedAt: string;
|
|
76
75
|
publicId: string;
|
|
77
76
|
keyHash: string;
|
|
78
77
|
keyPrefix: string;
|
|
79
78
|
lastUsedAt: string | null;
|
|
79
|
+
expiresAt: string | null;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|
|
@@ -16,19 +16,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
createdAt: string;
|
|
20
|
-
updatedAt: string;
|
|
21
|
-
agentId: string | null;
|
|
22
|
-
projectId: string;
|
|
23
19
|
tenantId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
agentId: string | null;
|
|
24
22
|
title: string | null;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
updatedAt: string;
|
|
25
25
|
metadata: ConversationMetadata | null;
|
|
26
|
+
userId: string | null;
|
|
26
27
|
ref: {
|
|
27
|
-
type: "
|
|
28
|
+
type: "commit" | "tag" | "branch";
|
|
28
29
|
name: string;
|
|
29
30
|
hash: string;
|
|
30
31
|
} | null;
|
|
31
|
-
userId: 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;
|
|
@@ -85,19 +85,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
87
|
id: string;
|
|
88
|
-
createdAt: string;
|
|
89
|
-
updatedAt: string;
|
|
90
|
-
agentId: string | null;
|
|
91
|
-
projectId: string;
|
|
92
88
|
tenantId: string;
|
|
89
|
+
projectId: string;
|
|
90
|
+
agentId: string | null;
|
|
93
91
|
title: string | null;
|
|
92
|
+
createdAt: string;
|
|
93
|
+
updatedAt: string;
|
|
94
94
|
metadata: ConversationMetadata | null;
|
|
95
|
+
userId: string | null;
|
|
95
96
|
ref: {
|
|
96
|
-
type: "
|
|
97
|
+
type: "commit" | "tag" | "branch";
|
|
97
98
|
name: string;
|
|
98
99
|
hash: string;
|
|
99
100
|
} | null;
|
|
100
|
-
userId: 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
|
};
|
|
@@ -121,19 +121,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
123
|
id: string;
|
|
124
|
-
createdAt: string;
|
|
125
|
-
updatedAt: string;
|
|
126
|
-
agentId: string | null;
|
|
127
|
-
projectId: string;
|
|
128
124
|
tenantId: string;
|
|
125
|
+
projectId: string;
|
|
126
|
+
agentId: string | null;
|
|
129
127
|
title: string | null;
|
|
128
|
+
createdAt: string;
|
|
129
|
+
updatedAt: string;
|
|
130
130
|
metadata: ConversationMetadata | null;
|
|
131
|
+
userId: string | null;
|
|
131
132
|
ref: {
|
|
132
|
-
type: "
|
|
133
|
+
type: "commit" | "tag" | "branch";
|
|
133
134
|
name: string;
|
|
134
135
|
hash: string;
|
|
135
136
|
} | null;
|
|
136
|
-
userId: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -153,19 +153,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
155
|
id: string;
|
|
156
|
-
createdAt: string;
|
|
157
|
-
updatedAt: string;
|
|
158
|
-
agentId: string | null;
|
|
159
|
-
projectId: string;
|
|
160
156
|
tenantId: string;
|
|
157
|
+
projectId: string;
|
|
158
|
+
agentId: string | null;
|
|
161
159
|
title: string | null;
|
|
160
|
+
createdAt: string;
|
|
161
|
+
updatedAt: string;
|
|
162
162
|
metadata: ConversationMetadata | null;
|
|
163
|
+
userId: string | null;
|
|
163
164
|
ref: {
|
|
164
|
-
type: "
|
|
165
|
+
type: "commit" | "tag" | "branch";
|
|
165
166
|
name: string;
|
|
166
167
|
hash: string;
|
|
167
168
|
} | null;
|
|
168
|
-
userId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -10,13 +10,12 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
messageId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
17
|
metadata: MessageMetadata | null;
|
|
18
18
|
content: MessageContent;
|
|
19
|
-
role: string;
|
|
20
19
|
fromSubAgentId: string | null;
|
|
21
20
|
toSubAgentId: string | null;
|
|
22
21
|
fromExternalAgentId: string | null;
|
|
@@ -24,6 +23,7 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
24
23
|
taskId: string | null;
|
|
25
24
|
a2aTaskId: string | null;
|
|
26
25
|
conversationId: string;
|
|
26
|
+
role: string;
|
|
27
27
|
fromTeamAgentId: string | null;
|
|
28
28
|
toTeamAgentId: string | null;
|
|
29
29
|
visibility: string;
|
|
@@ -141,13 +141,12 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
141
141
|
}[]>;
|
|
142
142
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
143
143
|
id: string;
|
|
144
|
+
tenantId: string;
|
|
145
|
+
projectId: string;
|
|
144
146
|
createdAt: string;
|
|
145
147
|
updatedAt: string;
|
|
146
|
-
projectId: string;
|
|
147
|
-
tenantId: string;
|
|
148
148
|
metadata: MessageMetadata | null;
|
|
149
149
|
content: MessageContent;
|
|
150
|
-
role: string;
|
|
151
150
|
fromSubAgentId: string | null;
|
|
152
151
|
toSubAgentId: string | null;
|
|
153
152
|
fromExternalAgentId: string | null;
|
|
@@ -155,6 +154,7 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
155
154
|
taskId: string | null;
|
|
156
155
|
a2aTaskId: string | null;
|
|
157
156
|
conversationId: string;
|
|
157
|
+
role: string;
|
|
158
158
|
fromTeamAgentId: string | null;
|
|
159
159
|
toTeamAgentId: string | null;
|
|
160
160
|
visibility: string;
|
|
@@ -194,13 +194,12 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
194
194
|
messageId: string;
|
|
195
195
|
}) => Promise<{
|
|
196
196
|
id: string;
|
|
197
|
+
tenantId: string;
|
|
198
|
+
projectId: string;
|
|
197
199
|
createdAt: string;
|
|
198
200
|
updatedAt: string;
|
|
199
|
-
projectId: string;
|
|
200
|
-
tenantId: string;
|
|
201
201
|
metadata: MessageMetadata | null;
|
|
202
202
|
content: MessageContent;
|
|
203
|
-
role: string;
|
|
204
203
|
fromSubAgentId: string | null;
|
|
205
204
|
toSubAgentId: string | null;
|
|
206
205
|
fromExternalAgentId: string | null;
|
|
@@ -208,6 +207,7 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
208
207
|
taskId: string | null;
|
|
209
208
|
a2aTaskId: string | null;
|
|
210
209
|
conversationId: string;
|
|
210
|
+
role: string;
|
|
211
211
|
fromTeamAgentId: string | null;
|
|
212
212
|
toTeamAgentId: string | null;
|
|
213
213
|
visibility: string;
|
|
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
34
34
|
}) => Promise<{
|
|
35
35
|
data: {
|
|
36
36
|
scheduledTriggerId: string;
|
|
37
|
-
status: "pending" | "
|
|
37
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
38
38
|
scheduledFor: string;
|
|
39
39
|
startedAt: string | null;
|
|
40
40
|
completedAt: string | null;
|
|
@@ -174,7 +174,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
|
|
|
174
174
|
}) => Promise<{
|
|
175
175
|
data: {
|
|
176
176
|
scheduledTriggerId: string;
|
|
177
|
-
status: "pending" | "
|
|
177
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
178
178
|
scheduledFor: string;
|
|
179
179
|
startedAt: string | null;
|
|
180
180
|
completedAt: string | null;
|
|
@@ -208,7 +208,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
|
|
|
208
208
|
}) => Promise<{
|
|
209
209
|
data: {
|
|
210
210
|
scheduledTriggerId: string;
|
|
211
|
-
status: "pending" | "
|
|
211
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
212
212
|
scheduledFor: string;
|
|
213
213
|
startedAt: string | null;
|
|
214
214
|
completedAt: string | null;
|
|
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
//#region src/data-access/runtime/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
9
|
id: string;
|
|
10
|
+
tenantId: string;
|
|
11
|
+
projectId: 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
|
+
subAgentId: string;
|
|
17
|
+
status: string;
|
|
18
|
+
contextId: string;
|
|
16
19
|
ref: {
|
|
17
|
-
type: "
|
|
20
|
+
type: "commit" | "tag" | "branch";
|
|
18
21
|
name: string;
|
|
19
22
|
hash: string;
|
|
20
23
|
} | null;
|
|
21
|
-
status: string;
|
|
22
|
-
subAgentId: string;
|
|
23
|
-
contextId: 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;
|