@inkeep/agents-core 0.55.0 → 0.55.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 +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agents.d.ts +42 -42
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- 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 +18 -18
- package/dist/data-access/manage/skills.d.ts +14 -14
- 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 +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- 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 +31 -31
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/tasks.d.ts +9 -9
- package/dist/db/manage/manage-schema.d.ts +4 -4
- package/dist/db/runtime/runtime-schema.d.ts +8 -8
- package/dist/middleware/inherited-auth.d.ts +2 -2
- package/dist/middleware/inherited-auth.js +3 -3
- package/dist/utils/error.d.ts +51 -51
- 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 +1927 -1927
- package/package.json +1 -1
|
@@ -17,19 +17,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
19
|
id: string;
|
|
20
|
-
tenantId: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
agentId: string | null;
|
|
23
|
-
title: string | null;
|
|
24
20
|
createdAt: string;
|
|
25
21
|
updatedAt: string;
|
|
26
|
-
metadata: ConversationMetadata | null;
|
|
27
|
-
userId: string | null;
|
|
28
22
|
ref: {
|
|
29
|
-
type: "
|
|
23
|
+
type: "tag" | "commit" | "branch";
|
|
30
24
|
name: string;
|
|
31
25
|
hash: string;
|
|
32
26
|
} | null;
|
|
27
|
+
userId: string | null;
|
|
28
|
+
metadata: ConversationMetadata | null;
|
|
29
|
+
agentId: string | null;
|
|
30
|
+
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
32
|
+
title: string | null;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
@@ -44,7 +44,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
44
44
|
agentId: string | null;
|
|
45
45
|
activeSubAgentId: string;
|
|
46
46
|
ref: {
|
|
47
|
-
type: "
|
|
47
|
+
type: "tag" | "commit" | "branch";
|
|
48
48
|
name: string;
|
|
49
49
|
hash: string;
|
|
50
50
|
} | null;
|
|
@@ -70,7 +70,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
|
|
|
70
70
|
agentId: string | null;
|
|
71
71
|
activeSubAgentId: string;
|
|
72
72
|
ref: {
|
|
73
|
-
type: "
|
|
73
|
+
type: "tag" | "commit" | "branch";
|
|
74
74
|
name: string;
|
|
75
75
|
hash: string;
|
|
76
76
|
} | null;
|
|
@@ -86,19 +86,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
86
86
|
conversationId: string;
|
|
87
87
|
}) => Promise<{
|
|
88
88
|
id: string;
|
|
89
|
-
tenantId: string;
|
|
90
|
-
projectId: string;
|
|
91
|
-
agentId: string | null;
|
|
92
|
-
title: string | null;
|
|
93
89
|
createdAt: string;
|
|
94
90
|
updatedAt: string;
|
|
95
|
-
metadata: ConversationMetadata | null;
|
|
96
|
-
userId: string | null;
|
|
97
91
|
ref: {
|
|
98
|
-
type: "
|
|
92
|
+
type: "tag" | "commit" | "branch";
|
|
99
93
|
name: string;
|
|
100
94
|
hash: string;
|
|
101
95
|
} | null;
|
|
96
|
+
userId: string | null;
|
|
97
|
+
metadata: ConversationMetadata | null;
|
|
98
|
+
agentId: string | null;
|
|
99
|
+
projectId: string;
|
|
100
|
+
tenantId: string;
|
|
101
|
+
title: string | null;
|
|
102
102
|
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
@@ -108,7 +108,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
108
108
|
tenantId: string;
|
|
109
109
|
id: string;
|
|
110
110
|
ref: {
|
|
111
|
-
type: "
|
|
111
|
+
type: "tag" | "commit" | "branch";
|
|
112
112
|
name: string;
|
|
113
113
|
hash: string;
|
|
114
114
|
};
|
|
@@ -122,19 +122,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
122
122
|
contextConfigId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
124
|
id: string;
|
|
125
|
-
tenantId: string;
|
|
126
|
-
projectId: string;
|
|
127
|
-
agentId: string | null;
|
|
128
|
-
title: string | null;
|
|
129
125
|
createdAt: string;
|
|
130
126
|
updatedAt: string;
|
|
131
|
-
metadata: ConversationMetadata | null;
|
|
132
|
-
userId: string | null;
|
|
133
127
|
ref: {
|
|
134
|
-
type: "
|
|
128
|
+
type: "tag" | "commit" | "branch";
|
|
135
129
|
name: string;
|
|
136
130
|
hash: string;
|
|
137
131
|
} | null;
|
|
132
|
+
userId: string | null;
|
|
133
|
+
metadata: ConversationMetadata | null;
|
|
134
|
+
agentId: string | null;
|
|
135
|
+
projectId: string;
|
|
136
|
+
tenantId: string;
|
|
137
|
+
title: string | null;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -154,19 +154,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
154
154
|
conversationId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
156
|
id: string;
|
|
157
|
-
tenantId: string;
|
|
158
|
-
projectId: string;
|
|
159
|
-
agentId: string | null;
|
|
160
|
-
title: string | null;
|
|
161
157
|
createdAt: string;
|
|
162
158
|
updatedAt: string;
|
|
163
|
-
metadata: ConversationMetadata | null;
|
|
164
|
-
userId: string | null;
|
|
165
159
|
ref: {
|
|
166
|
-
type: "
|
|
160
|
+
type: "tag" | "commit" | "branch";
|
|
167
161
|
name: string;
|
|
168
162
|
hash: string;
|
|
169
163
|
} | null;
|
|
164
|
+
userId: string | null;
|
|
165
|
+
metadata: ConversationMetadata | null;
|
|
166
|
+
agentId: string | null;
|
|
167
|
+
projectId: string;
|
|
168
|
+
tenantId: string;
|
|
169
|
+
title: string | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -11,25 +11,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
16
|
metadata: MessageMetadata | null;
|
|
17
|
+
role: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
19
20
|
content: MessageContent;
|
|
21
|
+
conversationId: string;
|
|
20
22
|
fromSubAgentId: string | null;
|
|
21
23
|
toSubAgentId: string | null;
|
|
22
24
|
fromExternalAgentId: string | null;
|
|
23
25
|
toExternalAgentId: string | null;
|
|
24
|
-
taskId: string | null;
|
|
25
|
-
a2aTaskId: string | null;
|
|
26
|
-
conversationId: string;
|
|
27
|
-
role: 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: {
|
|
@@ -142,25 +142,25 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
142
142
|
}[]>;
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
144
|
id: string;
|
|
145
|
-
tenantId: string;
|
|
146
|
-
projectId: string;
|
|
147
145
|
createdAt: string;
|
|
148
146
|
updatedAt: string;
|
|
149
147
|
metadata: MessageMetadata | null;
|
|
148
|
+
role: string;
|
|
149
|
+
projectId: string;
|
|
150
|
+
tenantId: string;
|
|
150
151
|
content: MessageContent;
|
|
152
|
+
conversationId: string;
|
|
151
153
|
fromSubAgentId: string | null;
|
|
152
154
|
toSubAgentId: string | null;
|
|
153
155
|
fromExternalAgentId: string | null;
|
|
154
156
|
toExternalAgentId: string | null;
|
|
155
|
-
taskId: string | null;
|
|
156
|
-
a2aTaskId: string | null;
|
|
157
|
-
conversationId: string;
|
|
158
|
-
role: 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: {
|
|
@@ -195,25 +195,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
195
195
|
messageId: string;
|
|
196
196
|
}) => Promise<{
|
|
197
197
|
id: string;
|
|
198
|
-
tenantId: string;
|
|
199
|
-
projectId: string;
|
|
200
198
|
createdAt: string;
|
|
201
199
|
updatedAt: string;
|
|
202
200
|
metadata: MessageMetadata | null;
|
|
201
|
+
role: string;
|
|
202
|
+
projectId: string;
|
|
203
|
+
tenantId: string;
|
|
203
204
|
content: MessageContent;
|
|
205
|
+
conversationId: string;
|
|
204
206
|
fromSubAgentId: string | null;
|
|
205
207
|
toSubAgentId: string | null;
|
|
206
208
|
fromExternalAgentId: string | null;
|
|
207
209
|
toExternalAgentId: string | null;
|
|
208
|
-
taskId: string | null;
|
|
209
|
-
a2aTaskId: string | null;
|
|
210
|
-
conversationId: string;
|
|
211
|
-
role: 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: {
|
|
@@ -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;
|
|
13
10
|
createdAt: string;
|
|
14
11
|
updatedAt: string;
|
|
15
|
-
metadata: TaskMetadataConfig | null;
|
|
16
|
-
subAgentId: string;
|
|
17
|
-
status: string;
|
|
18
|
-
contextId: string;
|
|
19
12
|
ref: {
|
|
20
|
-
type: "
|
|
13
|
+
type: "tag" | "commit" | "branch";
|
|
21
14
|
name: string;
|
|
22
15
|
hash: string;
|
|
23
16
|
} | null;
|
|
17
|
+
metadata: TaskMetadataConfig | null;
|
|
18
|
+
status: string;
|
|
19
|
+
agentId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
tenantId: 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: "tag" | "commit" | "branch";
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|
|
@@ -814,13 +814,13 @@ declare const triggers: drizzle_orm_pg_core1547.PgTableWithColumns<{
|
|
|
814
814
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
815
815
|
encoding: "hex" | "base64";
|
|
816
816
|
signature: {
|
|
817
|
-
source: "query" | "
|
|
817
|
+
source: "query" | "body" | "header";
|
|
818
818
|
key: string;
|
|
819
819
|
prefix?: string | undefined;
|
|
820
820
|
regex?: string | undefined;
|
|
821
821
|
};
|
|
822
822
|
signedComponents: {
|
|
823
|
-
source: "
|
|
823
|
+
source: "body" | "header" | "literal";
|
|
824
824
|
required: boolean;
|
|
825
825
|
key?: string | undefined;
|
|
826
826
|
value?: string | undefined;
|
|
@@ -851,13 +851,13 @@ declare const triggers: drizzle_orm_pg_core1547.PgTableWithColumns<{
|
|
|
851
851
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
852
852
|
encoding: "hex" | "base64";
|
|
853
853
|
signature: {
|
|
854
|
-
source: "query" | "
|
|
854
|
+
source: "query" | "body" | "header";
|
|
855
855
|
key: string;
|
|
856
856
|
prefix?: string | undefined;
|
|
857
857
|
regex?: string | undefined;
|
|
858
858
|
};
|
|
859
859
|
signedComponents: {
|
|
860
|
-
source: "
|
|
860
|
+
source: "body" | "header" | "literal";
|
|
861
861
|
required: boolean;
|
|
862
862
|
key?: string | undefined;
|
|
863
863
|
value?: string | undefined;
|
|
@@ -216,7 +216,7 @@ declare const conversations: drizzle_orm_pg_core1901.PgTableWithColumns<{
|
|
|
216
216
|
dataType: "json";
|
|
217
217
|
columnType: "PgJsonb";
|
|
218
218
|
data: {
|
|
219
|
-
type: "
|
|
219
|
+
type: "tag" | "commit" | "branch";
|
|
220
220
|
name: string;
|
|
221
221
|
hash: string;
|
|
222
222
|
};
|
|
@@ -232,7 +232,7 @@ declare const conversations: drizzle_orm_pg_core1901.PgTableWithColumns<{
|
|
|
232
232
|
generated: undefined;
|
|
233
233
|
}, {}, {
|
|
234
234
|
$type: {
|
|
235
|
-
type: "
|
|
235
|
+
type: "tag" | "commit" | "branch";
|
|
236
236
|
name: string;
|
|
237
237
|
hash: string;
|
|
238
238
|
};
|
|
@@ -413,7 +413,7 @@ declare const tasks: drizzle_orm_pg_core1901.PgTableWithColumns<{
|
|
|
413
413
|
dataType: "json";
|
|
414
414
|
columnType: "PgJsonb";
|
|
415
415
|
data: {
|
|
416
|
-
type: "
|
|
416
|
+
type: "tag" | "commit" | "branch";
|
|
417
417
|
name: string;
|
|
418
418
|
hash: string;
|
|
419
419
|
};
|
|
@@ -429,7 +429,7 @@ declare const tasks: drizzle_orm_pg_core1901.PgTableWithColumns<{
|
|
|
429
429
|
generated: undefined;
|
|
430
430
|
}, {}, {
|
|
431
431
|
$type: {
|
|
432
|
-
type: "
|
|
432
|
+
type: "tag" | "commit" | "branch";
|
|
433
433
|
name: string;
|
|
434
434
|
hash: string;
|
|
435
435
|
};
|
|
@@ -3083,7 +3083,7 @@ declare const contextCache: drizzle_orm_pg_core1901.PgTableWithColumns<{
|
|
|
3083
3083
|
dataType: "json";
|
|
3084
3084
|
columnType: "PgJsonb";
|
|
3085
3085
|
data: {
|
|
3086
|
-
type: "
|
|
3086
|
+
type: "tag" | "commit" | "branch";
|
|
3087
3087
|
name: string;
|
|
3088
3088
|
hash: string;
|
|
3089
3089
|
};
|
|
@@ -3099,7 +3099,7 @@ declare const contextCache: drizzle_orm_pg_core1901.PgTableWithColumns<{
|
|
|
3099
3099
|
generated: undefined;
|
|
3100
3100
|
}, {}, {
|
|
3101
3101
|
$type: {
|
|
3102
|
-
type: "
|
|
3102
|
+
type: "tag" | "commit" | "branch";
|
|
3103
3103
|
name: string;
|
|
3104
3104
|
hash: string;
|
|
3105
3105
|
};
|
|
@@ -4003,7 +4003,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1901.PgTableWithCol
|
|
|
4003
4003
|
tableName: "work_app_github_installations";
|
|
4004
4004
|
dataType: "string";
|
|
4005
4005
|
columnType: "PgVarchar";
|
|
4006
|
-
data: "
|
|
4006
|
+
data: "User" | "Organization";
|
|
4007
4007
|
driverParam: string;
|
|
4008
4008
|
notNull: true;
|
|
4009
4009
|
hasDefault: false;
|
|
@@ -4016,7 +4016,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1901.PgTableWithCol
|
|
|
4016
4016
|
generated: undefined;
|
|
4017
4017
|
}, {}, {
|
|
4018
4018
|
length: 20;
|
|
4019
|
-
$type: "
|
|
4019
|
+
$type: "User" | "Organization";
|
|
4020
4020
|
}>;
|
|
4021
4021
|
status: drizzle_orm_pg_core1901.PgColumn<{
|
|
4022
4022
|
name: "status";
|
|
@@ -11,7 +11,7 @@ import * as hono0 from "hono";
|
|
|
11
11
|
* auth requirement.
|
|
12
12
|
*
|
|
13
13
|
* Use this when the route lives under a path that already has
|
|
14
|
-
* middleware applied (e.g. `/manage/tenants/*` has `
|
|
14
|
+
* middleware applied (e.g. `/manage/tenants/*` has `manageBearerOrSessionAuth`).
|
|
15
15
|
*/
|
|
16
16
|
declare const inheritedAuth: (meta: {
|
|
17
17
|
resource?: string;
|
|
@@ -20,7 +20,7 @@ declare const inheritedAuth: (meta: {
|
|
|
20
20
|
}) => hono0.MiddlewareHandler<any, string, {}, Response>;
|
|
21
21
|
/**
|
|
22
22
|
* Marker for routes under `/manage/tenants/*` whose auth is handled
|
|
23
|
-
* by `
|
|
23
|
+
* by `manageBearerOrSessionAuth()` in createApp.ts.
|
|
24
24
|
*
|
|
25
25
|
* No auth check runs at the route level — this is purely for OpenAPI documentation.
|
|
26
26
|
*/
|
|
@@ -11,7 +11,7 @@ import { createMiddleware } from "hono/factory";
|
|
|
11
11
|
* auth requirement.
|
|
12
12
|
*
|
|
13
13
|
* Use this when the route lives under a path that already has
|
|
14
|
-
* middleware applied (e.g. `/manage/tenants/*` has `
|
|
14
|
+
* middleware applied (e.g. `/manage/tenants/*` has `manageBearerOrSessionAuth`).
|
|
15
15
|
*/
|
|
16
16
|
const inheritedAuth = (meta) => {
|
|
17
17
|
const mw = createMiddleware(async (_c, next) => {
|
|
@@ -22,14 +22,14 @@ const inheritedAuth = (meta) => {
|
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Marker for routes under `/manage/tenants/*` whose auth is handled
|
|
25
|
-
* by `
|
|
25
|
+
* by `manageBearerOrSessionAuth()` in createApp.ts.
|
|
26
26
|
*
|
|
27
27
|
* No auth check runs at the route level — this is purely for OpenAPI documentation.
|
|
28
28
|
*/
|
|
29
29
|
const inheritedManageTenantAuth = () => inheritedAuth({
|
|
30
30
|
resource: "organization",
|
|
31
31
|
permission: "member",
|
|
32
|
-
description: "Requires organization membership. Auth is enforced by the
|
|
32
|
+
description: "Requires organization membership. Auth is enforced by the manageBearerOrSessionAuth middleware in createApp.ts."
|
|
33
33
|
});
|
|
34
34
|
/**
|
|
35
35
|
* Marker for routes under `/run/*` whose auth is handled
|