@inkeep/agents-core 0.53.0 → 0.53.2
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 +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +135 -135
- package/dist/auth/auth.d.ts +18 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +3 -3
- package/dist/data-access/manage/agents.d.ts +19 -19
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +16 -16
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +9 -9
- 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 +16 -16
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/organizations.d.ts +2 -0
- package/dist/data-access/runtime/organizations.js +6 -2
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +292 -292
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/slack-link-token.d.ts +33 -8
- package/dist/utils/slack-link-token.js +20 -9
- package/dist/validation/schemas.d.ts +1623 -1623
- package/package.json +1 -1
|
@@ -16,21 +16,21 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
total: number;
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
|
+
title: string | null;
|
|
20
|
+
tenantId: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
agentId: string | null;
|
|
23
|
+
userId: string | null;
|
|
19
24
|
id: string;
|
|
20
25
|
createdAt: string;
|
|
21
26
|
updatedAt: string;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
28
|
+
activeSubAgentId: string;
|
|
22
29
|
ref: {
|
|
23
30
|
type: "commit" | "tag" | "branch";
|
|
24
31
|
name: string;
|
|
25
32
|
hash: string;
|
|
26
33
|
} | null;
|
|
27
|
-
userId: string | null;
|
|
28
|
-
metadata: ConversationMetadata | null;
|
|
29
|
-
title: string | null;
|
|
30
|
-
tenantId: string;
|
|
31
|
-
projectId: string;
|
|
32
|
-
agentId: string | null;
|
|
33
|
-
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
36
36
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -85,21 +85,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
scopes: ProjectScopeConfig;
|
|
86
86
|
conversationId: string;
|
|
87
87
|
}) => Promise<{
|
|
88
|
+
title: string | null;
|
|
89
|
+
tenantId: string;
|
|
90
|
+
projectId: string;
|
|
91
|
+
agentId: string | null;
|
|
92
|
+
userId: string | null;
|
|
88
93
|
id: string;
|
|
89
94
|
createdAt: string;
|
|
90
95
|
updatedAt: string;
|
|
96
|
+
metadata: ConversationMetadata | null;
|
|
97
|
+
activeSubAgentId: string;
|
|
91
98
|
ref: {
|
|
92
99
|
type: "commit" | "tag" | "branch";
|
|
93
100
|
name: string;
|
|
94
101
|
hash: string;
|
|
95
102
|
} | null;
|
|
96
|
-
userId: string | null;
|
|
97
|
-
metadata: ConversationMetadata | null;
|
|
98
|
-
title: string | null;
|
|
99
|
-
tenantId: string;
|
|
100
|
-
projectId: string;
|
|
101
|
-
agentId: string | null;
|
|
102
|
-
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
105
105
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
@@ -121,21 +121,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
metadata?: ConversationMetadata | null | undefined;
|
|
122
122
|
contextConfigId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
|
+
title: string | null;
|
|
125
|
+
tenantId: string;
|
|
126
|
+
projectId: string;
|
|
127
|
+
agentId: string | null;
|
|
128
|
+
userId: string | null;
|
|
124
129
|
id: string;
|
|
125
130
|
createdAt: string;
|
|
126
131
|
updatedAt: string;
|
|
132
|
+
metadata: ConversationMetadata | null;
|
|
133
|
+
activeSubAgentId: string;
|
|
127
134
|
ref: {
|
|
128
135
|
type: "commit" | "tag" | "branch";
|
|
129
136
|
name: string;
|
|
130
137
|
hash: string;
|
|
131
138
|
} | null;
|
|
132
|
-
userId: string | null;
|
|
133
|
-
metadata: ConversationMetadata | null;
|
|
134
|
-
title: string | null;
|
|
135
|
-
tenantId: string;
|
|
136
|
-
projectId: string;
|
|
137
|
-
agentId: string | null;
|
|
138
|
-
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
141
141
|
/**
|
|
@@ -153,21 +153,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
scopes: ProjectScopeConfig;
|
|
154
154
|
conversationId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
+
title: string | null;
|
|
157
|
+
tenantId: string;
|
|
158
|
+
projectId: string;
|
|
159
|
+
agentId: string | null;
|
|
160
|
+
userId: string | null;
|
|
156
161
|
id: string;
|
|
157
162
|
createdAt: string;
|
|
158
163
|
updatedAt: string;
|
|
164
|
+
metadata: ConversationMetadata | null;
|
|
165
|
+
activeSubAgentId: string;
|
|
159
166
|
ref: {
|
|
160
167
|
type: "commit" | "tag" | "branch";
|
|
161
168
|
name: string;
|
|
162
169
|
hash: string;
|
|
163
170
|
} | null;
|
|
164
|
-
userId: string | null;
|
|
165
|
-
metadata: ConversationMetadata | null;
|
|
166
|
-
title: string | null;
|
|
167
|
-
tenantId: string;
|
|
168
|
-
projectId: string;
|
|
169
|
-
agentId: string | null;
|
|
170
|
-
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
173
173
|
/**
|
|
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
13
15
|
id: string;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
16
18
|
metadata: MessageMetadata | null;
|
|
17
|
-
role: string;
|
|
18
|
-
tenantId: string;
|
|
19
|
-
projectId: string;
|
|
20
19
|
content: MessageContent;
|
|
20
|
+
conversationId: string;
|
|
21
|
+
role: string;
|
|
21
22
|
fromSubAgentId: string | null;
|
|
22
23
|
toSubAgentId: string | null;
|
|
23
24
|
fromExternalAgentId: string | null;
|
|
24
25
|
toExternalAgentId: string | null;
|
|
25
|
-
taskId: string | null;
|
|
26
|
-
a2aTaskId: string | null;
|
|
27
|
-
conversationId: string;
|
|
28
26
|
fromTeamAgentId: string | null;
|
|
29
27
|
toTeamAgentId: string | null;
|
|
30
28
|
visibility: string;
|
|
31
29
|
messageType: string;
|
|
30
|
+
taskId: string | null;
|
|
32
31
|
parentMessageId: string | null;
|
|
32
|
+
a2aTaskId: string | null;
|
|
33
33
|
a2aSessionId: string | null;
|
|
34
34
|
} | undefined>;
|
|
35
35
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -141,26 +141,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
141
141
|
id: string;
|
|
142
142
|
}[]>;
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
|
+
tenantId: string;
|
|
145
|
+
projectId: string;
|
|
144
146
|
id: string;
|
|
145
147
|
createdAt: string;
|
|
146
148
|
updatedAt: string;
|
|
147
149
|
metadata: MessageMetadata | null;
|
|
148
|
-
role: string;
|
|
149
|
-
tenantId: string;
|
|
150
|
-
projectId: string;
|
|
151
150
|
content: MessageContent;
|
|
151
|
+
conversationId: string;
|
|
152
|
+
role: string;
|
|
152
153
|
fromSubAgentId: string | null;
|
|
153
154
|
toSubAgentId: string | null;
|
|
154
155
|
fromExternalAgentId: string | null;
|
|
155
156
|
toExternalAgentId: string | null;
|
|
156
|
-
taskId: string | null;
|
|
157
|
-
a2aTaskId: string | null;
|
|
158
|
-
conversationId: string;
|
|
159
157
|
fromTeamAgentId: string | null;
|
|
160
158
|
toTeamAgentId: string | null;
|
|
161
159
|
visibility: string;
|
|
162
160
|
messageType: string;
|
|
161
|
+
taskId: string | null;
|
|
163
162
|
parentMessageId: string | null;
|
|
163
|
+
a2aTaskId: string | null;
|
|
164
164
|
a2aSessionId: string | null;
|
|
165
165
|
}>;
|
|
166
166
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -194,26 +194,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
194
194
|
scopes: ProjectScopeConfig;
|
|
195
195
|
messageId: string;
|
|
196
196
|
}) => Promise<{
|
|
197
|
+
tenantId: string;
|
|
198
|
+
projectId: string;
|
|
197
199
|
id: string;
|
|
198
200
|
createdAt: string;
|
|
199
201
|
updatedAt: string;
|
|
200
202
|
metadata: MessageMetadata | null;
|
|
201
|
-
role: string;
|
|
202
|
-
tenantId: string;
|
|
203
|
-
projectId: string;
|
|
204
203
|
content: MessageContent;
|
|
204
|
+
conversationId: string;
|
|
205
|
+
role: string;
|
|
205
206
|
fromSubAgentId: string | null;
|
|
206
207
|
toSubAgentId: string | null;
|
|
207
208
|
fromExternalAgentId: string | null;
|
|
208
209
|
toExternalAgentId: string | null;
|
|
209
|
-
taskId: string | null;
|
|
210
|
-
a2aTaskId: string | null;
|
|
211
|
-
conversationId: string;
|
|
212
210
|
fromTeamAgentId: string | null;
|
|
213
211
|
toTeamAgentId: string | null;
|
|
214
212
|
visibility: string;
|
|
215
213
|
messageType: string;
|
|
214
|
+
taskId: string | null;
|
|
216
215
|
parentMessageId: string | null;
|
|
216
|
+
a2aTaskId: string | null;
|
|
217
217
|
a2aSessionId: string | null;
|
|
218
218
|
}>;
|
|
219
219
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -29,6 +29,7 @@ declare const getPendingInvitationsByEmail: (db: AgentsRunDatabaseClient) => (em
|
|
|
29
29
|
status: string;
|
|
30
30
|
expiresAt: Date;
|
|
31
31
|
inviterId: string;
|
|
32
|
+
authMethod: string | null;
|
|
32
33
|
}[]>;
|
|
33
34
|
/**
|
|
34
35
|
* Add user to organization
|
|
@@ -66,6 +67,7 @@ declare const createInvitationInDb: (db: AgentsRunDatabaseClient) => (data: {
|
|
|
66
67
|
email: string;
|
|
67
68
|
}) => Promise<{
|
|
68
69
|
id: string;
|
|
70
|
+
authMethod: string;
|
|
69
71
|
}>;
|
|
70
72
|
//#endregion
|
|
71
73
|
export { UserProviderInfo, addUserToOrganization, createInvitationInDb, getPendingInvitationsByEmail, getUserOrganizationsFromDb, getUserProvidersFromDb, upsertOrganization };
|
|
@@ -41,7 +41,8 @@ const getPendingInvitationsByEmail = (db) => async (email) => {
|
|
|
41
41
|
role: invitation.role,
|
|
42
42
|
status: invitation.status,
|
|
43
43
|
expiresAt: invitation.expiresAt,
|
|
44
|
-
inviterId: invitation.inviterId
|
|
44
|
+
inviterId: invitation.inviterId,
|
|
45
|
+
authMethod: invitation.authMethod
|
|
45
46
|
}).from(invitation).leftJoin(organization, eq(invitation.organizationId, organization.id)).where(and(eq(invitation.email, email), eq(invitation.status, "pending")))).filter((inv) => new Date(inv.expiresAt) > now);
|
|
46
47
|
};
|
|
47
48
|
/**
|
|
@@ -115,7 +116,10 @@ const createInvitationInDb = (db) => async (data) => {
|
|
|
115
116
|
inviterId: orgSettings.serviceAccountUserId,
|
|
116
117
|
authMethod: orgSettings.preferredAuthMethod
|
|
117
118
|
});
|
|
118
|
-
return {
|
|
119
|
+
return {
|
|
120
|
+
id: inviteId,
|
|
121
|
+
authMethod: orgSettings.preferredAuthMethod
|
|
122
|
+
};
|
|
119
123
|
};
|
|
120
124
|
|
|
121
125
|
//#endregion
|
|
@@ -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" | "running" | "completed" | "failed" | "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" | "running" | "completed" | "failed" | "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" | "running" | "completed" | "failed" | "cancelled";
|
|
212
212
|
scheduledFor: string;
|
|
213
213
|
startedAt: string | null;
|
|
214
214
|
completedAt: string | null;
|
|
@@ -6,20 +6,20 @@ 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
|
+
tenantId: string;
|
|
10
|
+
projectId: string;
|
|
11
|
+
agentId: string;
|
|
12
|
+
subAgentId: string;
|
|
9
13
|
id: string;
|
|
10
14
|
createdAt: string;
|
|
11
15
|
updatedAt: string;
|
|
16
|
+
metadata: TaskMetadataConfig | null;
|
|
12
17
|
ref: {
|
|
13
18
|
type: "commit" | "tag" | "branch";
|
|
14
19
|
name: string;
|
|
15
20
|
hash: string;
|
|
16
21
|
} | null;
|
|
17
|
-
metadata: TaskMetadataConfig | null;
|
|
18
22
|
status: string;
|
|
19
|
-
tenantId: string;
|
|
20
|
-
projectId: string;
|
|
21
|
-
agentId: string;
|
|
22
|
-
subAgentId: string;
|
|
23
23
|
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|