@inkeep/agents-core 0.0.0-dev-20260122081407 → 0.0.0-dev-20260122090358
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.d.ts +57 -57
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/validation/schemas.d.ts +17 -17
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AgentsRunDatabaseClient } from "../db/runtime/runtime-client.js";
|
|
|
2
2
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
3
3
|
import * as better_auth0 from "better-auth";
|
|
4
4
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
6
6
|
import * as zod0 from "zod";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
@@ -219,7 +219,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
219
219
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
220
220
|
}[];
|
|
221
221
|
};
|
|
222
|
-
options:
|
|
222
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
223
223
|
}, {
|
|
224
224
|
id: "sso";
|
|
225
225
|
endpoints: {
|
|
@@ -847,30 +847,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
847
847
|
};
|
|
848
848
|
}, {
|
|
849
849
|
id: "organization";
|
|
850
|
-
endpoints:
|
|
850
|
+
endpoints: better_auth_plugins20.OrganizationEndpoints<{
|
|
851
851
|
allowUserToCreateOrganization: true;
|
|
852
|
-
ac:
|
|
852
|
+
ac: better_auth_plugins20.AccessControl;
|
|
853
853
|
roles: {
|
|
854
854
|
member: {
|
|
855
|
-
authorize<K_1 extends "organization" | "
|
|
856
|
-
actions:
|
|
855
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
856
|
+
actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
857
857
|
connector: "OR" | "AND";
|
|
858
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
859
|
-
statements:
|
|
858
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
859
|
+
statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
860
860
|
};
|
|
861
861
|
admin: {
|
|
862
|
-
authorize<K_1 extends "organization" | "
|
|
863
|
-
actions:
|
|
862
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
863
|
+
actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
864
864
|
connector: "OR" | "AND";
|
|
865
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
866
|
-
statements:
|
|
865
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
866
|
+
statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
867
867
|
};
|
|
868
868
|
owner: {
|
|
869
|
-
authorize<K_1 extends "organization" | "
|
|
870
|
-
actions:
|
|
869
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
870
|
+
actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
871
871
|
connector: "OR" | "AND";
|
|
872
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
873
|
-
statements:
|
|
872
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
873
|
+
statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
874
874
|
};
|
|
875
875
|
};
|
|
876
876
|
membershipLimit: number;
|
|
@@ -880,9 +880,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
880
880
|
id: string;
|
|
881
881
|
role: string;
|
|
882
882
|
email: string;
|
|
883
|
-
organization:
|
|
884
|
-
invitation:
|
|
885
|
-
inviter:
|
|
883
|
+
organization: better_auth_plugins20.Organization;
|
|
884
|
+
invitation: better_auth_plugins20.Invitation;
|
|
885
|
+
inviter: better_auth_plugins20.Member & {
|
|
886
886
|
user: better_auth0.User;
|
|
887
887
|
};
|
|
888
888
|
}): Promise<void>;
|
|
@@ -892,28 +892,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
892
892
|
user,
|
|
893
893
|
organization: org
|
|
894
894
|
}: {
|
|
895
|
-
invitation:
|
|
896
|
-
member:
|
|
895
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
896
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
897
897
|
user: better_auth0.User & Record<string, any>;
|
|
898
|
-
organization:
|
|
898
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
899
899
|
}) => Promise<void>;
|
|
900
900
|
afterUpdateMemberRole: ({
|
|
901
901
|
member,
|
|
902
902
|
organization: org,
|
|
903
903
|
previousRole
|
|
904
904
|
}: {
|
|
905
|
-
member:
|
|
905
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
906
906
|
previousRole: string;
|
|
907
907
|
user: better_auth0.User & Record<string, any>;
|
|
908
|
-
organization:
|
|
908
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
909
909
|
}) => Promise<void>;
|
|
910
910
|
afterRemoveMember: ({
|
|
911
911
|
member,
|
|
912
912
|
organization: org
|
|
913
913
|
}: {
|
|
914
|
-
member:
|
|
914
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
915
915
|
user: better_auth0.User & Record<string, any>;
|
|
916
|
-
organization:
|
|
916
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
917
917
|
}) => Promise<void>;
|
|
918
918
|
};
|
|
919
919
|
}>;
|
|
@@ -1044,8 +1044,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1044
1044
|
id: string;
|
|
1045
1045
|
organizationId: string;
|
|
1046
1046
|
email: string;
|
|
1047
|
-
role: "
|
|
1048
|
-
status:
|
|
1047
|
+
role: "owner" | "admin" | "member";
|
|
1048
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1049
1049
|
inviterId: string;
|
|
1050
1050
|
expiresAt: Date;
|
|
1051
1051
|
createdAt: Date;
|
|
@@ -1053,7 +1053,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1053
1053
|
Member: {
|
|
1054
1054
|
id: string;
|
|
1055
1055
|
organizationId: string;
|
|
1056
|
-
role: "
|
|
1056
|
+
role: "owner" | "admin" | "member";
|
|
1057
1057
|
createdAt: Date;
|
|
1058
1058
|
userId: string;
|
|
1059
1059
|
user: {
|
|
@@ -1069,7 +1069,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1069
1069
|
members: {
|
|
1070
1070
|
id: string;
|
|
1071
1071
|
organizationId: string;
|
|
1072
|
-
role: "
|
|
1072
|
+
role: "owner" | "admin" | "member";
|
|
1073
1073
|
createdAt: Date;
|
|
1074
1074
|
userId: string;
|
|
1075
1075
|
user: {
|
|
@@ -1083,8 +1083,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1083
1083
|
id: string;
|
|
1084
1084
|
organizationId: string;
|
|
1085
1085
|
email: string;
|
|
1086
|
-
role: "
|
|
1087
|
-
status:
|
|
1086
|
+
role: "owner" | "admin" | "member";
|
|
1087
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1088
1088
|
inviterId: string;
|
|
1089
1089
|
expiresAt: Date;
|
|
1090
1090
|
createdAt: Date;
|
|
@@ -1158,28 +1158,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1158
1158
|
};
|
|
1159
1159
|
options: NoInfer<{
|
|
1160
1160
|
allowUserToCreateOrganization: true;
|
|
1161
|
-
ac:
|
|
1161
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1162
1162
|
roles: {
|
|
1163
1163
|
member: {
|
|
1164
|
-
authorize<K_1 extends "organization" | "
|
|
1165
|
-
actions:
|
|
1164
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1165
|
+
actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1166
1166
|
connector: "OR" | "AND";
|
|
1167
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1168
|
-
statements:
|
|
1167
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1168
|
+
statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1169
1169
|
};
|
|
1170
1170
|
admin: {
|
|
1171
|
-
authorize<K_1 extends "organization" | "
|
|
1172
|
-
actions:
|
|
1171
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1172
|
+
actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1173
1173
|
connector: "OR" | "AND";
|
|
1174
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1175
|
-
statements:
|
|
1174
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1175
|
+
statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1176
1176
|
};
|
|
1177
1177
|
owner: {
|
|
1178
|
-
authorize<K_1 extends "organization" | "
|
|
1179
|
-
actions:
|
|
1178
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1179
|
+
actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1180
1180
|
connector: "OR" | "AND";
|
|
1181
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1182
|
-
statements:
|
|
1181
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1182
|
+
statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1183
1183
|
};
|
|
1184
1184
|
};
|
|
1185
1185
|
membershipLimit: number;
|
|
@@ -1189,9 +1189,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1189
1189
|
id: string;
|
|
1190
1190
|
role: string;
|
|
1191
1191
|
email: string;
|
|
1192
|
-
organization:
|
|
1193
|
-
invitation:
|
|
1194
|
-
inviter:
|
|
1192
|
+
organization: better_auth_plugins20.Organization;
|
|
1193
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1194
|
+
inviter: better_auth_plugins20.Member & {
|
|
1195
1195
|
user: better_auth0.User;
|
|
1196
1196
|
};
|
|
1197
1197
|
}): Promise<void>;
|
|
@@ -1201,28 +1201,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1201
1201
|
user,
|
|
1202
1202
|
organization: org
|
|
1203
1203
|
}: {
|
|
1204
|
-
invitation:
|
|
1205
|
-
member:
|
|
1204
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
1205
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1206
1206
|
user: better_auth0.User & Record<string, any>;
|
|
1207
|
-
organization:
|
|
1207
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1208
1208
|
}) => Promise<void>;
|
|
1209
1209
|
afterUpdateMemberRole: ({
|
|
1210
1210
|
member,
|
|
1211
1211
|
organization: org,
|
|
1212
1212
|
previousRole
|
|
1213
1213
|
}: {
|
|
1214
|
-
member:
|
|
1214
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1215
1215
|
previousRole: string;
|
|
1216
1216
|
user: better_auth0.User & Record<string, any>;
|
|
1217
|
-
organization:
|
|
1217
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1218
1218
|
}) => Promise<void>;
|
|
1219
1219
|
afterRemoveMember: ({
|
|
1220
1220
|
member,
|
|
1221
1221
|
organization: org
|
|
1222
1222
|
}: {
|
|
1223
|
-
member:
|
|
1223
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1224
1224
|
user: better_auth0.User & Record<string, any>;
|
|
1225
|
-
organization:
|
|
1225
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1226
1226
|
}) => Promise<void>;
|
|
1227
1227
|
};
|
|
1228
1228
|
}>;
|
|
@@ -1559,8 +1559,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1559
1559
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1560
1560
|
};
|
|
1561
1561
|
options: Partial<{
|
|
1562
|
-
expiresIn:
|
|
1563
|
-
interval:
|
|
1562
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1563
|
+
interval: better_auth_plugins20.TimeString;
|
|
1564
1564
|
deviceCodeLength: number;
|
|
1565
1565
|
userCodeLength: number;
|
|
1566
1566
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "organization" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
69
69
|
id: string;
|
|
70
70
|
agentId: string;
|
|
71
71
|
createdAt: string;
|
|
72
|
-
subAgentId: string;
|
|
73
72
|
dataComponentId: string;
|
|
73
|
+
subAgentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
76
76
|
* Remove association between data component and agent
|
|
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
111
111
|
id: string;
|
|
112
112
|
agentId: string;
|
|
113
113
|
createdAt: string;
|
|
114
|
-
subAgentId: string;
|
|
115
114
|
dataComponentId: string;
|
|
115
|
+
subAgentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
118
118
|
* Count data components for a tenant/project
|
|
@@ -14,9 +14,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
14
14
|
agentId: string;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
17
|
-
relationType: string | null;
|
|
18
17
|
sourceSubAgentId: string;
|
|
19
18
|
targetSubAgentId: string | null;
|
|
19
|
+
relationType: string | null;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
@@ -49,9 +49,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
49
49
|
agentId: string;
|
|
50
50
|
createdAt: string;
|
|
51
51
|
updatedAt: string;
|
|
52
|
-
relationType: string | null;
|
|
53
52
|
sourceSubAgentId: string;
|
|
54
53
|
targetSubAgentId: string | null;
|
|
54
|
+
relationType: string | null;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
@@ -62,9 +62,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
62
62
|
agentId: string;
|
|
63
63
|
createdAt: string;
|
|
64
64
|
updatedAt: string;
|
|
65
|
-
relationType: string | null;
|
|
66
65
|
sourceSubAgentId: string;
|
|
67
66
|
targetSubAgentId: string | null;
|
|
67
|
+
relationType: string | null;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -131,9 +131,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
131
131
|
agentId: string;
|
|
132
132
|
createdAt: string;
|
|
133
133
|
updatedAt: string;
|
|
134
|
-
relationType: string | null;
|
|
135
134
|
sourceSubAgentId: string;
|
|
136
135
|
targetSubAgentId: string | null;
|
|
136
|
+
relationType: string | null;
|
|
137
137
|
}>;
|
|
138
138
|
/**
|
|
139
139
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -150,9 +150,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
150
150
|
agentId: string;
|
|
151
151
|
createdAt: string;
|
|
152
152
|
updatedAt: string;
|
|
153
|
-
relationType: string | null;
|
|
154
153
|
sourceSubAgentId: string;
|
|
155
154
|
targetSubAgentId: string | null;
|
|
155
|
+
relationType: string | null;
|
|
156
156
|
} | undefined>;
|
|
157
157
|
/**
|
|
158
158
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
@@ -164,9 +164,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
164
164
|
agentId: string;
|
|
165
165
|
createdAt: string;
|
|
166
166
|
updatedAt: string;
|
|
167
|
-
relationType: string | null;
|
|
168
167
|
sourceSubAgentId: string;
|
|
169
168
|
targetSubAgentId: string | null;
|
|
169
|
+
relationType: string | null;
|
|
170
170
|
}>;
|
|
171
171
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
172
172
|
scopes: AgentScopeConfig;
|
|
@@ -19,8 +19,8 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
19
19
|
hash: string;
|
|
20
20
|
} | null;
|
|
21
21
|
status: string;
|
|
22
|
-
contextId: string;
|
|
23
22
|
subAgentId: string;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|
|
@@ -5546,9 +5546,9 @@ declare const TaskApiUpdateSchema: z.ZodObject<{
|
|
|
5546
5546
|
hash: z.ZodString;
|
|
5547
5547
|
}, z.core.$strip>>>;
|
|
5548
5548
|
status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5549
|
-
contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5550
5549
|
subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5551
5550
|
conversationId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
5551
|
+
contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5552
5552
|
}, z.core.$strip>;
|
|
5553
5553
|
declare const TaskRelationSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
5554
5554
|
createdAt: drizzle_orm_pg_core662.PgColumn<{
|
|
@@ -5899,9 +5899,9 @@ declare const TaskRelationApiUpdateSchema: z.ZodObject<{
|
|
|
5899
5899
|
id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5900
5900
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
5901
5901
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
5902
|
+
relationType: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
5902
5903
|
parentTaskId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5903
5904
|
childTaskId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5904
|
-
relationType: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
5905
5905
|
}, z.core.$strip>;
|
|
5906
5906
|
declare const McpTransportConfigSchema: z.ZodObject<{
|
|
5907
5907
|
type: z.ZodEnum<{
|
|
@@ -8947,15 +8947,15 @@ declare const DatasetRunApiInsertSchema: z.ZodObject<{
|
|
|
8947
8947
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
8948
8948
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
8949
8949
|
datasetId: z.ZodString;
|
|
8950
|
-
datasetRunConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8951
8950
|
evaluationJobConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8951
|
+
datasetRunConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8952
8952
|
}, z.core.$strip>;
|
|
8953
8953
|
declare const DatasetRunApiUpdateSchema: z.ZodObject<{
|
|
8954
8954
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
8955
8955
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
8956
8956
|
datasetId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
8957
|
-
datasetRunConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
8958
8957
|
evaluationJobConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
8958
|
+
datasetRunConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
8959
8959
|
}, z.core.$strip>;
|
|
8960
8960
|
declare const DatasetRunConversationRelationSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
8961
8961
|
createdAt: drizzle_orm_pg_core662.PgColumn<{
|
|
@@ -9662,16 +9662,16 @@ declare const EvaluationResultApiInsertSchema: z.ZodObject<{
|
|
|
9662
9662
|
output: z.ZodOptional<z.ZodNullable<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
|
|
9663
9663
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
9664
9664
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
9665
|
-
conversationId: z.ZodString;
|
|
9666
9665
|
evaluatorId: z.ZodString;
|
|
9666
|
+
conversationId: z.ZodString;
|
|
9667
9667
|
evaluationRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9668
9668
|
}, z.core.$strip>;
|
|
9669
9669
|
declare const EvaluationResultApiUpdateSchema: z.ZodObject<{
|
|
9670
9670
|
output: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>>>;
|
|
9671
9671
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
9672
9672
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
9673
|
-
conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
9674
9673
|
evaluatorId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
9674
|
+
conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
9675
9675
|
evaluationRunId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
9676
9676
|
}, z.core.$strip>;
|
|
9677
9677
|
declare const EvaluationRunSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
@@ -9963,14 +9963,14 @@ declare const EvaluationRunApiSelectSchema: z.ZodObject<OmitProjectScope<{
|
|
|
9963
9963
|
declare const EvaluationRunApiInsertSchema: z.ZodObject<{
|
|
9964
9964
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
9965
9965
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
9966
|
-
evaluationJobConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9967
9966
|
evaluationRunConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9967
|
+
evaluationJobConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9968
9968
|
}, z.core.$strip>;
|
|
9969
9969
|
declare const EvaluationRunApiUpdateSchema: z.ZodObject<{
|
|
9970
9970
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
9971
9971
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
9972
|
-
evaluationJobConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
9973
9972
|
evaluationRunConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
9973
|
+
evaluationJobConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
9974
9974
|
}, z.core.$strip>;
|
|
9975
9975
|
declare const EvaluationRunConfigSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
9976
9976
|
createdAt: drizzle_orm_pg_core662.PgColumn<{
|
|
@@ -11349,14 +11349,14 @@ declare const EvaluationRunConfigEvaluationSuiteConfigRelationApiSelectSchema: z
|
|
|
11349
11349
|
declare const EvaluationRunConfigEvaluationSuiteConfigRelationApiInsertSchema: z.ZodObject<{
|
|
11350
11350
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
11351
11351
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
11352
|
-
evaluationRunConfigId: z.ZodString;
|
|
11353
11352
|
evaluationSuiteConfigId: z.ZodString;
|
|
11353
|
+
evaluationRunConfigId: z.ZodString;
|
|
11354
11354
|
}, z.core.$strip>;
|
|
11355
11355
|
declare const EvaluationRunConfigEvaluationSuiteConfigRelationApiUpdateSchema: z.ZodObject<{
|
|
11356
11356
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
11357
11357
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
11358
|
-
evaluationRunConfigId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11359
11358
|
evaluationSuiteConfigId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11359
|
+
evaluationRunConfigId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11360
11360
|
}, z.core.$strip>;
|
|
11361
11361
|
declare const EvaluationJobConfigEvaluatorRelationSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
11362
11362
|
createdAt: drizzle_orm_pg_core662.PgColumn<{
|
|
@@ -11647,14 +11647,14 @@ declare const EvaluationJobConfigEvaluatorRelationApiSelectSchema: z.ZodObject<O
|
|
|
11647
11647
|
declare const EvaluationJobConfigEvaluatorRelationApiInsertSchema: z.ZodObject<{
|
|
11648
11648
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
11649
11649
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
11650
|
-
evaluationJobConfigId: z.ZodString;
|
|
11651
11650
|
evaluatorId: z.ZodString;
|
|
11651
|
+
evaluationJobConfigId: z.ZodString;
|
|
11652
11652
|
}, z.core.$strip>;
|
|
11653
11653
|
declare const EvaluationJobConfigEvaluatorRelationApiUpdateSchema: z.ZodObject<{
|
|
11654
11654
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
11655
11655
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
11656
|
-
evaluationJobConfigId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11657
11656
|
evaluatorId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11657
|
+
evaluationJobConfigId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11658
11658
|
}, z.core.$strip>;
|
|
11659
11659
|
declare const EvaluationSuiteConfigEvaluatorRelationSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
11660
11660
|
createdAt: drizzle_orm_pg_core662.PgColumn<{
|
|
@@ -11945,14 +11945,14 @@ declare const EvaluationSuiteConfigEvaluatorRelationApiSelectSchema: z.ZodObject
|
|
|
11945
11945
|
declare const EvaluationSuiteConfigEvaluatorRelationApiInsertSchema: z.ZodObject<{
|
|
11946
11946
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
11947
11947
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
11948
|
-
evaluatorId: z.ZodString;
|
|
11949
11948
|
evaluationSuiteConfigId: z.ZodString;
|
|
11949
|
+
evaluatorId: z.ZodString;
|
|
11950
11950
|
}, z.core.$strip>;
|
|
11951
11951
|
declare const EvaluationSuiteConfigEvaluatorRelationApiUpdateSchema: z.ZodObject<{
|
|
11952
11952
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
11953
11953
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
11954
|
-
evaluatorId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11955
11954
|
evaluationSuiteConfigId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11955
|
+
evaluatorId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11956
11956
|
}, z.core.$strip>;
|
|
11957
11957
|
declare const EvaluatorSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
11958
11958
|
createdAt: drizzle_orm_pg_core662.PgColumn<{
|
|
@@ -15170,7 +15170,7 @@ declare const SubAgentDataComponentInsertSchema: drizzle_zod19.BuildSchema<"inse
|
|
|
15170
15170
|
}, {}, {
|
|
15171
15171
|
length: 256;
|
|
15172
15172
|
}>;
|
|
15173
|
-
}, "tenantId" | "projectId" | "id" | "agentId" | "createdAt" | "
|
|
15173
|
+
}, "tenantId" | "projectId" | "id" | "agentId" | "createdAt" | "dataComponentId" | "subAgentId">, undefined>, undefined>;
|
|
15174
15174
|
declare const SubAgentDataComponentUpdateSchema: z.ZodObject<{
|
|
15175
15175
|
dataComponentId: z.ZodOptional<z.ZodString>;
|
|
15176
15176
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -15194,8 +15194,8 @@ declare const SubAgentDataComponentApiSelectSchema: z.ZodObject<OmitAgentScope<{
|
|
|
15194
15194
|
}>, z.core.$strip>;
|
|
15195
15195
|
declare const SubAgentDataComponentApiInsertSchema: z.ZodObject<{
|
|
15196
15196
|
agentId: z.ZodString;
|
|
15197
|
-
subAgentId: z.ZodString;
|
|
15198
15197
|
dataComponentId: z.ZodString;
|
|
15198
|
+
subAgentId: z.ZodString;
|
|
15199
15199
|
}, {
|
|
15200
15200
|
out: {};
|
|
15201
15201
|
in: {};
|
|
@@ -15203,8 +15203,8 @@ declare const SubAgentDataComponentApiInsertSchema: z.ZodObject<{
|
|
|
15203
15203
|
declare const SubAgentDataComponentApiUpdateSchema: z.ZodObject<{
|
|
15204
15204
|
id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
15205
15205
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
15206
|
-
subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
15207
15206
|
dataComponentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
15207
|
+
subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
15208
15208
|
}, z.core.$strip>;
|
|
15209
15209
|
declare const ArtifactComponentSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
15210
15210
|
createdAt: drizzle_orm_pg_core662.PgColumn<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260122090358",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|