@inkeep/agents-core 0.0.0-dev-20260121145510 → 0.0.0-dev-20260121150358
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-validation-schemas.d.ts +17 -17
- package/dist/auth/auth.d.ts +63 -57
- package/dist/auth/auth.js +8 -0
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -3
- package/dist/data-access/manage/agents.d.ts +41 -41
- 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 +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 +15 -15
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- 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 +7 -7
- package/dist/db/manage/manage-schema.d.ts +299 -299
- package/dist/db/runtime/runtime-schema.d.ts +163 -163
- 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 +1316 -1316
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
2
|
import * as drizzle_orm_pg_core80 from "drizzle-orm/pg-core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as drizzle_zod0 from "drizzle-zod";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/auth-validation-schemas.d.ts
|
|
6
|
-
declare const UserSelectSchema:
|
|
6
|
+
declare const UserSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
7
7
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
8
8
|
name: "id";
|
|
9
9
|
tableName: "user";
|
|
@@ -124,7 +124,7 @@ declare const UserSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
|
124
124
|
generated: undefined;
|
|
125
125
|
}, {}, {}>;
|
|
126
126
|
}, undefined, undefined>;
|
|
127
|
-
declare const UserInsertSchema:
|
|
127
|
+
declare const UserInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
128
128
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
129
129
|
name: "id";
|
|
130
130
|
tableName: "user";
|
|
@@ -245,7 +245,7 @@ declare const UserInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
|
245
245
|
generated: undefined;
|
|
246
246
|
}, {}, {}>;
|
|
247
247
|
}, undefined, undefined>;
|
|
248
|
-
declare const SessionSelectSchema:
|
|
248
|
+
declare const SessionSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
249
249
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
250
250
|
name: "id";
|
|
251
251
|
tableName: "session";
|
|
@@ -400,7 +400,7 @@ declare const SessionSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
|
400
400
|
generated: undefined;
|
|
401
401
|
}, {}, {}>;
|
|
402
402
|
}, undefined, undefined>;
|
|
403
|
-
declare const SessionInsertSchema:
|
|
403
|
+
declare const SessionInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
404
404
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
405
405
|
name: "id";
|
|
406
406
|
tableName: "session";
|
|
@@ -555,7 +555,7 @@ declare const SessionInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
|
555
555
|
generated: undefined;
|
|
556
556
|
}, {}, {}>;
|
|
557
557
|
}, undefined, undefined>;
|
|
558
|
-
declare const AccountSelectSchema:
|
|
558
|
+
declare const AccountSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
559
559
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
560
560
|
name: "id";
|
|
561
561
|
tableName: "account";
|
|
@@ -778,7 +778,7 @@ declare const AccountSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
|
778
778
|
generated: undefined;
|
|
779
779
|
}, {}, {}>;
|
|
780
780
|
}, undefined, undefined>;
|
|
781
|
-
declare const AccountInsertSchema:
|
|
781
|
+
declare const AccountInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
782
782
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
783
783
|
name: "id";
|
|
784
784
|
tableName: "account";
|
|
@@ -1001,7 +1001,7 @@ declare const AccountInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
|
1001
1001
|
generated: undefined;
|
|
1002
1002
|
}, {}, {}>;
|
|
1003
1003
|
}, undefined, undefined>;
|
|
1004
|
-
declare const OrganizationSelectSchema:
|
|
1004
|
+
declare const OrganizationSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
1005
1005
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
1006
1006
|
name: "id";
|
|
1007
1007
|
tableName: "organization";
|
|
@@ -1105,7 +1105,7 @@ declare const OrganizationSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
|
1105
1105
|
generated: undefined;
|
|
1106
1106
|
}, {}, {}>;
|
|
1107
1107
|
}, undefined, undefined>;
|
|
1108
|
-
declare const OrganizationInsertSchema:
|
|
1108
|
+
declare const OrganizationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
1109
1109
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
1110
1110
|
name: "id";
|
|
1111
1111
|
tableName: "organization";
|
|
@@ -1209,7 +1209,7 @@ declare const OrganizationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
|
1209
1209
|
generated: undefined;
|
|
1210
1210
|
}, {}, {}>;
|
|
1211
1211
|
}, undefined, undefined>;
|
|
1212
|
-
declare const MemberSelectSchema:
|
|
1212
|
+
declare const MemberSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
1213
1213
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
1214
1214
|
name: "id";
|
|
1215
1215
|
tableName: "member";
|
|
@@ -1296,7 +1296,7 @@ declare const MemberSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
|
1296
1296
|
generated: undefined;
|
|
1297
1297
|
}, {}, {}>;
|
|
1298
1298
|
}, undefined, undefined>;
|
|
1299
|
-
declare const MemberInsertSchema:
|
|
1299
|
+
declare const MemberInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
1300
1300
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
1301
1301
|
name: "id";
|
|
1302
1302
|
tableName: "member";
|
|
@@ -1383,7 +1383,7 @@ declare const MemberInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
|
1383
1383
|
generated: undefined;
|
|
1384
1384
|
}, {}, {}>;
|
|
1385
1385
|
}, undefined, undefined>;
|
|
1386
|
-
declare const InvitationSelectSchema:
|
|
1386
|
+
declare const InvitationSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
1387
1387
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
1388
1388
|
name: "id";
|
|
1389
1389
|
tableName: "invitation";
|
|
@@ -1521,7 +1521,7 @@ declare const InvitationSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
|
1521
1521
|
generated: undefined;
|
|
1522
1522
|
}, {}, {}>;
|
|
1523
1523
|
}, undefined, undefined>;
|
|
1524
|
-
declare const InvitationInsertSchema:
|
|
1524
|
+
declare const InvitationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
1525
1525
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
1526
1526
|
name: "id";
|
|
1527
1527
|
tableName: "invitation";
|
|
@@ -1659,7 +1659,7 @@ declare const InvitationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
|
1659
1659
|
generated: undefined;
|
|
1660
1660
|
}, {}, {}>;
|
|
1661
1661
|
}, undefined, undefined>;
|
|
1662
|
-
declare const DeviceCodeSelectSchema:
|
|
1662
|
+
declare const DeviceCodeSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
1663
1663
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
1664
1664
|
name: "id";
|
|
1665
1665
|
tableName: "device_code";
|
|
@@ -1831,7 +1831,7 @@ declare const DeviceCodeSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
|
1831
1831
|
generated: undefined;
|
|
1832
1832
|
}, {}, {}>;
|
|
1833
1833
|
}, undefined, undefined>;
|
|
1834
|
-
declare const DeviceCodeInsertSchema:
|
|
1834
|
+
declare const DeviceCodeInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
1835
1835
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
1836
1836
|
name: "id";
|
|
1837
1837
|
tableName: "device_code";
|
|
@@ -2003,7 +2003,7 @@ declare const DeviceCodeInsertSchema: drizzle_zod3.BuildSchema<"insert", {
|
|
|
2003
2003
|
generated: undefined;
|
|
2004
2004
|
}, {}, {}>;
|
|
2005
2005
|
}, undefined, undefined>;
|
|
2006
|
-
declare const VerificationSelectSchema:
|
|
2006
|
+
declare const VerificationSelectSchema: drizzle_zod0.BuildSchema<"select", {
|
|
2007
2007
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
2008
2008
|
name: "id";
|
|
2009
2009
|
tableName: "verification";
|
|
@@ -2107,7 +2107,7 @@ declare const VerificationSelectSchema: drizzle_zod3.BuildSchema<"select", {
|
|
|
2107
2107
|
generated: undefined;
|
|
2108
2108
|
}, {}, {}>;
|
|
2109
2109
|
}, undefined, undefined>;
|
|
2110
|
-
declare const VerificationInsertSchema:
|
|
2110
|
+
declare const VerificationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
2111
2111
|
id: drizzle_orm_pg_core80.PgColumn<{
|
|
2112
2112
|
name: "id";
|
|
2113
2113
|
tableName: "verification";
|
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_plugins0 from "better-auth/plugins";
|
|
6
6
|
import * as zod0 from "zod";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
@@ -81,6 +81,12 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
81
81
|
requireEmailVerification: false;
|
|
82
82
|
autoSignIn: true;
|
|
83
83
|
};
|
|
84
|
+
account: {
|
|
85
|
+
accountLinking: {
|
|
86
|
+
enabled: true;
|
|
87
|
+
trustedProviders: ("google" | "email-password" | "auth0")[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
84
90
|
databaseHooks: {
|
|
85
91
|
session: {
|
|
86
92
|
create: {
|
|
@@ -213,7 +219,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
213
219
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
214
220
|
}[];
|
|
215
221
|
};
|
|
216
|
-
options:
|
|
222
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
217
223
|
}, {
|
|
218
224
|
id: "sso";
|
|
219
225
|
endpoints: {
|
|
@@ -841,30 +847,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
841
847
|
};
|
|
842
848
|
}, {
|
|
843
849
|
id: "organization";
|
|
844
|
-
endpoints:
|
|
850
|
+
endpoints: better_auth_plugins0.OrganizationEndpoints<{
|
|
845
851
|
allowUserToCreateOrganization: true;
|
|
846
|
-
ac:
|
|
852
|
+
ac: better_auth_plugins0.AccessControl;
|
|
847
853
|
roles: {
|
|
848
854
|
member: {
|
|
849
|
-
authorize<K_1 extends "
|
|
850
|
-
actions:
|
|
855
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
856
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
851
857
|
connector: "OR" | "AND";
|
|
852
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
853
|
-
statements:
|
|
858
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
859
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
854
860
|
};
|
|
855
861
|
admin: {
|
|
856
|
-
authorize<K_1 extends "
|
|
857
|
-
actions:
|
|
862
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
863
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
858
864
|
connector: "OR" | "AND";
|
|
859
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
860
|
-
statements:
|
|
865
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
866
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
861
867
|
};
|
|
862
868
|
owner: {
|
|
863
|
-
authorize<K_1 extends "
|
|
864
|
-
actions:
|
|
869
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
870
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
865
871
|
connector: "OR" | "AND";
|
|
866
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
867
|
-
statements:
|
|
872
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
873
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
868
874
|
};
|
|
869
875
|
};
|
|
870
876
|
membershipLimit: number;
|
|
@@ -874,9 +880,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
874
880
|
id: string;
|
|
875
881
|
role: string;
|
|
876
882
|
email: string;
|
|
877
|
-
organization:
|
|
878
|
-
invitation:
|
|
879
|
-
inviter:
|
|
883
|
+
organization: better_auth_plugins0.Organization;
|
|
884
|
+
invitation: better_auth_plugins0.Invitation;
|
|
885
|
+
inviter: better_auth_plugins0.Member & {
|
|
880
886
|
user: better_auth0.User;
|
|
881
887
|
};
|
|
882
888
|
}): Promise<void>;
|
|
@@ -886,28 +892,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
886
892
|
user,
|
|
887
893
|
organization: org
|
|
888
894
|
}: {
|
|
889
|
-
invitation:
|
|
890
|
-
member:
|
|
895
|
+
invitation: better_auth_plugins0.Invitation & Record<string, any>;
|
|
896
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
891
897
|
user: better_auth0.User & Record<string, any>;
|
|
892
|
-
organization:
|
|
898
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
893
899
|
}) => Promise<void>;
|
|
894
900
|
afterUpdateMemberRole: ({
|
|
895
901
|
member,
|
|
896
902
|
organization: org,
|
|
897
903
|
previousRole
|
|
898
904
|
}: {
|
|
899
|
-
member:
|
|
905
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
900
906
|
previousRole: string;
|
|
901
907
|
user: better_auth0.User & Record<string, any>;
|
|
902
|
-
organization:
|
|
908
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
903
909
|
}) => Promise<void>;
|
|
904
910
|
afterRemoveMember: ({
|
|
905
911
|
member,
|
|
906
912
|
organization: org
|
|
907
913
|
}: {
|
|
908
|
-
member:
|
|
914
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
909
915
|
user: better_auth0.User & Record<string, any>;
|
|
910
|
-
organization:
|
|
916
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
911
917
|
}) => Promise<void>;
|
|
912
918
|
};
|
|
913
919
|
}>;
|
|
@@ -1038,8 +1044,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1038
1044
|
id: string;
|
|
1039
1045
|
organizationId: string;
|
|
1040
1046
|
email: string;
|
|
1041
|
-
role: "
|
|
1042
|
-
status:
|
|
1047
|
+
role: "member" | "admin" | "owner";
|
|
1048
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1043
1049
|
inviterId: string;
|
|
1044
1050
|
expiresAt: Date;
|
|
1045
1051
|
createdAt: Date;
|
|
@@ -1047,7 +1053,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1047
1053
|
Member: {
|
|
1048
1054
|
id: string;
|
|
1049
1055
|
organizationId: string;
|
|
1050
|
-
role: "
|
|
1056
|
+
role: "member" | "admin" | "owner";
|
|
1051
1057
|
createdAt: Date;
|
|
1052
1058
|
userId: string;
|
|
1053
1059
|
user: {
|
|
@@ -1063,7 +1069,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1063
1069
|
members: {
|
|
1064
1070
|
id: string;
|
|
1065
1071
|
organizationId: string;
|
|
1066
|
-
role: "
|
|
1072
|
+
role: "member" | "admin" | "owner";
|
|
1067
1073
|
createdAt: Date;
|
|
1068
1074
|
userId: string;
|
|
1069
1075
|
user: {
|
|
@@ -1077,8 +1083,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1077
1083
|
id: string;
|
|
1078
1084
|
organizationId: string;
|
|
1079
1085
|
email: string;
|
|
1080
|
-
role: "
|
|
1081
|
-
status:
|
|
1086
|
+
role: "member" | "admin" | "owner";
|
|
1087
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1082
1088
|
inviterId: string;
|
|
1083
1089
|
expiresAt: Date;
|
|
1084
1090
|
createdAt: Date;
|
|
@@ -1152,28 +1158,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1152
1158
|
};
|
|
1153
1159
|
options: NoInfer<{
|
|
1154
1160
|
allowUserToCreateOrganization: true;
|
|
1155
|
-
ac:
|
|
1161
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1156
1162
|
roles: {
|
|
1157
1163
|
member: {
|
|
1158
|
-
authorize<K_1 extends "
|
|
1159
|
-
actions:
|
|
1164
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1165
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1160
1166
|
connector: "OR" | "AND";
|
|
1161
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1162
|
-
statements:
|
|
1167
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1168
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1163
1169
|
};
|
|
1164
1170
|
admin: {
|
|
1165
|
-
authorize<K_1 extends "
|
|
1166
|
-
actions:
|
|
1171
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1172
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1167
1173
|
connector: "OR" | "AND";
|
|
1168
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1169
|
-
statements:
|
|
1174
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1175
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1170
1176
|
};
|
|
1171
1177
|
owner: {
|
|
1172
|
-
authorize<K_1 extends "
|
|
1173
|
-
actions:
|
|
1178
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1179
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1174
1180
|
connector: "OR" | "AND";
|
|
1175
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1176
|
-
statements:
|
|
1181
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1182
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1177
1183
|
};
|
|
1178
1184
|
};
|
|
1179
1185
|
membershipLimit: number;
|
|
@@ -1183,9 +1189,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1183
1189
|
id: string;
|
|
1184
1190
|
role: string;
|
|
1185
1191
|
email: string;
|
|
1186
|
-
organization:
|
|
1187
|
-
invitation:
|
|
1188
|
-
inviter:
|
|
1192
|
+
organization: better_auth_plugins0.Organization;
|
|
1193
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1194
|
+
inviter: better_auth_plugins0.Member & {
|
|
1189
1195
|
user: better_auth0.User;
|
|
1190
1196
|
};
|
|
1191
1197
|
}): Promise<void>;
|
|
@@ -1195,28 +1201,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1195
1201
|
user,
|
|
1196
1202
|
organization: org
|
|
1197
1203
|
}: {
|
|
1198
|
-
invitation:
|
|
1199
|
-
member:
|
|
1204
|
+
invitation: better_auth_plugins0.Invitation & Record<string, any>;
|
|
1205
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1200
1206
|
user: better_auth0.User & Record<string, any>;
|
|
1201
|
-
organization:
|
|
1207
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1202
1208
|
}) => Promise<void>;
|
|
1203
1209
|
afterUpdateMemberRole: ({
|
|
1204
1210
|
member,
|
|
1205
1211
|
organization: org,
|
|
1206
1212
|
previousRole
|
|
1207
1213
|
}: {
|
|
1208
|
-
member:
|
|
1214
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1209
1215
|
previousRole: string;
|
|
1210
1216
|
user: better_auth0.User & Record<string, any>;
|
|
1211
|
-
organization:
|
|
1217
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1212
1218
|
}) => Promise<void>;
|
|
1213
1219
|
afterRemoveMember: ({
|
|
1214
1220
|
member,
|
|
1215
1221
|
organization: org
|
|
1216
1222
|
}: {
|
|
1217
|
-
member:
|
|
1223
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1218
1224
|
user: better_auth0.User & Record<string, any>;
|
|
1219
|
-
organization:
|
|
1225
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1220
1226
|
}) => Promise<void>;
|
|
1221
1227
|
};
|
|
1222
1228
|
}>;
|
|
@@ -1553,8 +1559,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1553
1559
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1554
1560
|
};
|
|
1555
1561
|
options: Partial<{
|
|
1556
|
-
expiresIn:
|
|
1557
|
-
interval:
|
|
1562
|
+
expiresIn: better_auth_plugins0.TimeString;
|
|
1563
|
+
interval: better_auth_plugins0.TimeString;
|
|
1558
1564
|
deviceCodeLength: number;
|
|
1559
1565
|
userCodeLength: number;
|
|
1560
1566
|
schema: {
|
package/dist/auth/auth.js
CHANGED
|
@@ -76,6 +76,14 @@ function createAuth(config) {
|
|
|
76
76
|
requireEmailVerification: false,
|
|
77
77
|
autoSignIn: true
|
|
78
78
|
},
|
|
79
|
+
account: { accountLinking: {
|
|
80
|
+
enabled: true,
|
|
81
|
+
trustedProviders: [
|
|
82
|
+
"auth0",
|
|
83
|
+
"google",
|
|
84
|
+
"email-password"
|
|
85
|
+
]
|
|
86
|
+
} },
|
|
79
87
|
databaseHooks: { session: { create: { before: async (session) => {
|
|
80
88
|
const organization$1 = await getInitialOrganization(config.dbClient, session.userId);
|
|
81
89
|
return { data: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins69 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 "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import "./types/index.js";
|
|
|
6
6
|
import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
|
|
7
7
|
import { detectAuthenticationRequired } from "./utils/auth-detection.js";
|
|
8
8
|
import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
|
|
9
|
-
import "./index.js";
|
|
10
9
|
import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse } from "./validation/schemas.js";
|
|
11
10
|
import { z } from "@hono/zod-openapi";
|
|
12
11
|
|
|
@@ -65,8 +64,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
|
|
|
65
64
|
canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
65
|
canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
66
|
type: z.ZodOptional<z.ZodEnum<{
|
|
68
|
-
internal: "internal";
|
|
69
67
|
external: "external";
|
|
68
|
+
internal: "internal";
|
|
70
69
|
}>>;
|
|
71
70
|
}, z.core.$strip>;
|
|
72
71
|
declare const ToolApiInsertSchema: z.ZodObject<{
|
|
@@ -193,9 +192,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
193
192
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
194
193
|
id: z.ZodString;
|
|
195
194
|
name: z.ZodString;
|
|
196
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
195
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
198
196
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
197
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
198
|
models: z.ZodOptional<z.ZodObject<{
|
|
200
199
|
base: z.ZodOptional<z.ZodObject<{
|
|
201
200
|
model: z.ZodOptional<z.ZodString>;
|