@xk2800/nextjs-template 0.7.2-beta.5 → 0.7.2-beta.6
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/components/ui/drawer.tsx +88 -0
- package/dist/activity/queries.d.mts +1 -1
- package/dist/activity/queries.d.ts +1 -1
- package/dist/auth/helpers.d.mts +3 -3
- package/dist/auth/helpers.d.ts +3 -3
- package/dist/auth/index.d.mts +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth-client/index.d.mts +16 -16
- package/dist/auth-client/index.d.ts +16 -16
- package/dist/db/index.d.mts +1 -1
- package/dist/db/index.d.ts +1 -1
- package/dist/db/schema.d.mts +1 -1
- package/dist/db/schema.d.ts +1 -1
- package/dist/{schema-DzC5zdOq.d.mts → schema-BPvJz0PE.d.mts} +1 -1
- package/dist/{schema-DzC5zdOq.d.ts → schema-BPvJz0PE.d.ts} +1 -1
- package/dist/settings/queries.d.mts +1 -1
- package/dist/settings/queries.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import { Drawer as DrawerPrimitive } from "vaul"
|
|
5
|
+
|
|
6
|
+
import { cn } from "../../lib/utils"
|
|
7
|
+
|
|
8
|
+
function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {
|
|
9
|
+
return <DrawerPrimitive.Root data-slot="drawer" {...props} />
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {
|
|
13
|
+
return <DrawerPrimitive.Trigger data-slot="drawer-trigger" {...props} />
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {
|
|
17
|
+
return <DrawerPrimitive.Portal data-slot="drawer-portal" {...props} />
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {
|
|
21
|
+
return <DrawerPrimitive.Close data-slot="drawer-close" {...props} />
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {
|
|
25
|
+
return (
|
|
26
|
+
<DrawerPrimitive.Overlay
|
|
27
|
+
data-slot="drawer-overlay"
|
|
28
|
+
className={cn("fixed inset-0 z-50 bg-black/50", className)}
|
|
29
|
+
{...props}
|
|
30
|
+
/>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Bottom sheet by default; pass direction="top|left|right" on <Drawer> for other edges.
|
|
35
|
+
function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {
|
|
36
|
+
return (
|
|
37
|
+
<DrawerPortal>
|
|
38
|
+
<DrawerOverlay />
|
|
39
|
+
<DrawerPrimitive.Content
|
|
40
|
+
data-slot="drawer-content"
|
|
41
|
+
className={cn(
|
|
42
|
+
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col border-(length:--surface-border-width) border-(--surface-border-color)",
|
|
43
|
+
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[90dvh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:pb-[env(safe-area-inset-bottom)]",
|
|
44
|
+
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[90dvh] data-[vaul-drawer-direction=top]:rounded-b-xl",
|
|
45
|
+
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
46
|
+
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
47
|
+
className
|
|
48
|
+
)}
|
|
49
|
+
{...props}
|
|
50
|
+
>
|
|
51
|
+
<div
|
|
52
|
+
aria-hidden
|
|
53
|
+
className="bg-muted-foreground/30 mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"
|
|
54
|
+
/>
|
|
55
|
+
{children}
|
|
56
|
+
</DrawerPrimitive.Content>
|
|
57
|
+
</DrawerPortal>
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function DrawerHeader({ className, ...props }: React.ComponentProps<"div">) {
|
|
62
|
+
return <div data-slot="drawer-header" className={cn("flex flex-col gap-1.5 p-4", className)} {...props} />
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function DrawerFooter({ className, ...props }: React.ComponentProps<"div">) {
|
|
66
|
+
return <div data-slot="drawer-footer" className={cn("mt-auto flex flex-col gap-2 p-4", className)} {...props} />
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {
|
|
70
|
+
return <DrawerPrimitive.Title data-slot="drawer-title" className={cn("text-foreground font-semibold", className)} {...props} />
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {
|
|
74
|
+
return <DrawerPrimitive.Description data-slot="drawer-description" className={cn("text-muted-foreground text-sm", className)} {...props} />
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
Drawer,
|
|
79
|
+
DrawerClose,
|
|
80
|
+
DrawerContent,
|
|
81
|
+
DrawerDescription,
|
|
82
|
+
DrawerFooter,
|
|
83
|
+
DrawerHeader,
|
|
84
|
+
DrawerOverlay,
|
|
85
|
+
DrawerPortal,
|
|
86
|
+
DrawerTitle,
|
|
87
|
+
DrawerTrigger,
|
|
88
|
+
}
|
package/dist/auth/helpers.d.mts
CHANGED
|
@@ -27,8 +27,8 @@ declare const getCurrentSession: () => Promise<{
|
|
|
27
27
|
image?: string | null | undefined | undefined;
|
|
28
28
|
role: string | null | undefined;
|
|
29
29
|
banned: boolean | null | undefined;
|
|
30
|
-
banReason?: string | null | undefined;
|
|
31
30
|
banExpires?: Date | null | undefined;
|
|
31
|
+
banReason?: string | null | undefined;
|
|
32
32
|
twoFactorEnabled: boolean | null | undefined;
|
|
33
33
|
};
|
|
34
34
|
} | null>;
|
|
@@ -50,8 +50,8 @@ declare const requireAuth: () => Promise<{
|
|
|
50
50
|
name: string;
|
|
51
51
|
image?: string | null | undefined | undefined;
|
|
52
52
|
banned: boolean | null | undefined;
|
|
53
|
-
banReason?: string | null | undefined;
|
|
54
53
|
banExpires?: Date | null | undefined;
|
|
54
|
+
banReason?: string | null | undefined;
|
|
55
55
|
twoFactorEnabled: boolean | null | undefined;
|
|
56
56
|
};
|
|
57
57
|
session: {
|
|
@@ -84,8 +84,8 @@ declare function requireRole(requiredRole: 'user' | 'admin'): Promise<{
|
|
|
84
84
|
name: string;
|
|
85
85
|
image?: string | null | undefined | undefined;
|
|
86
86
|
banned: boolean | null | undefined;
|
|
87
|
-
banReason?: string | null | undefined;
|
|
88
87
|
banExpires?: Date | null | undefined;
|
|
88
|
+
banReason?: string | null | undefined;
|
|
89
89
|
twoFactorEnabled: boolean | null | undefined;
|
|
90
90
|
};
|
|
91
91
|
session: {
|
package/dist/auth/helpers.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ declare const getCurrentSession: () => Promise<{
|
|
|
27
27
|
image?: string | null | undefined | undefined;
|
|
28
28
|
role: string | null | undefined;
|
|
29
29
|
banned: boolean | null | undefined;
|
|
30
|
-
banReason?: string | null | undefined;
|
|
31
30
|
banExpires?: Date | null | undefined;
|
|
31
|
+
banReason?: string | null | undefined;
|
|
32
32
|
twoFactorEnabled: boolean | null | undefined;
|
|
33
33
|
};
|
|
34
34
|
} | null>;
|
|
@@ -50,8 +50,8 @@ declare const requireAuth: () => Promise<{
|
|
|
50
50
|
name: string;
|
|
51
51
|
image?: string | null | undefined | undefined;
|
|
52
52
|
banned: boolean | null | undefined;
|
|
53
|
-
banReason?: string | null | undefined;
|
|
54
53
|
banExpires?: Date | null | undefined;
|
|
54
|
+
banReason?: string | null | undefined;
|
|
55
55
|
twoFactorEnabled: boolean | null | undefined;
|
|
56
56
|
};
|
|
57
57
|
session: {
|
|
@@ -84,8 +84,8 @@ declare function requireRole(requiredRole: 'user' | 'admin'): Promise<{
|
|
|
84
84
|
name: string;
|
|
85
85
|
image?: string | null | undefined | undefined;
|
|
86
86
|
banned: boolean | null | undefined;
|
|
87
|
-
banReason?: string | null | undefined;
|
|
88
87
|
banExpires?: Date | null | undefined;
|
|
88
|
+
banReason?: string | null | undefined;
|
|
89
89
|
twoFactorEnabled: boolean | null | undefined;
|
|
90
90
|
};
|
|
91
91
|
session: {
|
package/dist/auth/index.d.mts
CHANGED
|
@@ -970,7 +970,7 @@ declare function createAuth(overrides?: AuthOverrides): better_auth.Auth<{
|
|
|
970
970
|
$Infer: {
|
|
971
971
|
body: {
|
|
972
972
|
permissions: {
|
|
973
|
-
readonly user?: ("
|
|
973
|
+
readonly user?: ("create" | "update" | "delete" | "set-role" | "list" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
974
974
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
975
975
|
};
|
|
976
976
|
} & {
|
|
@@ -3307,7 +3307,7 @@ declare const auth: better_auth.Auth<{
|
|
|
3307
3307
|
$Infer: {
|
|
3308
3308
|
body: {
|
|
3309
3309
|
permissions: {
|
|
3310
|
-
readonly user?: ("
|
|
3310
|
+
readonly user?: ("create" | "update" | "delete" | "set-role" | "list" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
3311
3311
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3312
3312
|
};
|
|
3313
3313
|
} & {
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -970,7 +970,7 @@ declare function createAuth(overrides?: AuthOverrides): better_auth.Auth<{
|
|
|
970
970
|
$Infer: {
|
|
971
971
|
body: {
|
|
972
972
|
permissions: {
|
|
973
|
-
readonly user?: ("
|
|
973
|
+
readonly user?: ("create" | "update" | "delete" | "set-role" | "list" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
974
974
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
975
975
|
};
|
|
976
976
|
} & {
|
|
@@ -3307,7 +3307,7 @@ declare const auth: better_auth.Auth<{
|
|
|
3307
3307
|
$Infer: {
|
|
3308
3308
|
body: {
|
|
3309
3309
|
permissions: {
|
|
3310
|
-
readonly user?: ("
|
|
3310
|
+
readonly user?: ("create" | "update" | "delete" | "set-role" | "list" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
3311
3311
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3312
3312
|
};
|
|
3313
3313
|
} & {
|
|
@@ -826,8 +826,8 @@ declare const authClient: better_auth_react.ReactAuthClient<{
|
|
|
826
826
|
$Infer: {
|
|
827
827
|
body: {
|
|
828
828
|
permissions: {
|
|
829
|
-
readonly user?: ("
|
|
830
|
-
readonly session?: ("
|
|
829
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
830
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
831
831
|
};
|
|
832
832
|
} & {
|
|
833
833
|
userId?: string | undefined;
|
|
@@ -916,8 +916,8 @@ declare const authClient: better_auth_react.ReactAuthClient<{
|
|
|
916
916
|
admin: {
|
|
917
917
|
checkRolePermission: <R extends "user" | "admin">(data: {
|
|
918
918
|
permissions: {
|
|
919
|
-
readonly user?: ("
|
|
920
|
-
readonly session?: ("
|
|
919
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
920
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
921
921
|
};
|
|
922
922
|
} & {
|
|
923
923
|
role: R;
|
|
@@ -2423,8 +2423,8 @@ declare const useSession: () => {
|
|
|
2423
2423
|
banned: boolean | null | undefined;
|
|
2424
2424
|
} & {
|
|
2425
2425
|
role?: string | null | undefined;
|
|
2426
|
-
banReason?: string | null | undefined;
|
|
2427
2426
|
banExpires?: Date | null | undefined;
|
|
2427
|
+
banReason?: string | null | undefined;
|
|
2428
2428
|
} & {
|
|
2429
2429
|
twoFactorEnabled: boolean | null | undefined;
|
|
2430
2430
|
} & {}>;
|
|
@@ -2450,7 +2450,7 @@ declare const useSession: () => {
|
|
|
2450
2450
|
};
|
|
2451
2451
|
declare const signIn: {
|
|
2452
2452
|
social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
2453
|
-
provider:
|
|
2453
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2454
2454
|
callbackURL?: string | undefined;
|
|
2455
2455
|
newUserCallbackURL?: string | undefined;
|
|
2456
2456
|
errorCallbackURL?: string | undefined;
|
|
@@ -2475,7 +2475,7 @@ declare const signIn: {
|
|
|
2475
2475
|
additionalParams?: Record<string, string> | undefined;
|
|
2476
2476
|
additionalData?: Record<string, any> | undefined;
|
|
2477
2477
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, string | undefined> | undefined>>(data_0: better_auth.Prettify<Omit<{
|
|
2478
|
-
provider:
|
|
2478
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2479
2479
|
callbackURL?: string | undefined;
|
|
2480
2480
|
newUserCallbackURL?: string | undefined;
|
|
2481
2481
|
errorCallbackURL?: string | undefined;
|
|
@@ -2502,7 +2502,7 @@ declare const signIn: {
|
|
|
2502
2502
|
} & {
|
|
2503
2503
|
fetchOptions?: FetchOptions | undefined;
|
|
2504
2504
|
}, "provider"> & {
|
|
2505
|
-
provider:
|
|
2505
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2506
2506
|
fetchOptions?: FetchOptions | undefined;
|
|
2507
2507
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
2508
2508
|
redirect: boolean;
|
|
@@ -2533,8 +2533,8 @@ declare const signIn: {
|
|
|
2533
2533
|
banned: boolean | null | undefined;
|
|
2534
2534
|
} & {
|
|
2535
2535
|
role?: string | null | undefined;
|
|
2536
|
-
banReason?: string | null | undefined;
|
|
2537
2536
|
banExpires?: Date | null | undefined;
|
|
2537
|
+
banReason?: string | null | undefined;
|
|
2538
2538
|
} & {
|
|
2539
2539
|
twoFactorEnabled: boolean | null | undefined;
|
|
2540
2540
|
} & {}>;
|
|
@@ -2581,8 +2581,8 @@ declare const signIn: {
|
|
|
2581
2581
|
banned: boolean | null | undefined;
|
|
2582
2582
|
} & {
|
|
2583
2583
|
role?: string | null | undefined;
|
|
2584
|
-
banReason?: string | null | undefined;
|
|
2585
2584
|
banExpires?: Date | null | undefined;
|
|
2585
|
+
banReason?: string | null | undefined;
|
|
2586
2586
|
} & {
|
|
2587
2587
|
twoFactorEnabled: boolean | null | undefined;
|
|
2588
2588
|
} & {}>;
|
|
@@ -3481,8 +3481,8 @@ declare const signUp: {
|
|
|
3481
3481
|
$Infer: {
|
|
3482
3482
|
body: {
|
|
3483
3483
|
permissions: {
|
|
3484
|
-
readonly user?: ("
|
|
3485
|
-
readonly session?: ("
|
|
3484
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
3485
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3486
3486
|
};
|
|
3487
3487
|
} & {
|
|
3488
3488
|
userId?: string | undefined;
|
|
@@ -3571,8 +3571,8 @@ declare const signUp: {
|
|
|
3571
3571
|
admin: {
|
|
3572
3572
|
checkRolePermission: <R extends "user" | "admin">(data: {
|
|
3573
3573
|
permissions: {
|
|
3574
|
-
readonly user?: ("
|
|
3575
|
-
readonly session?: ("
|
|
3574
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
3575
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3576
3576
|
};
|
|
3577
3577
|
} & {
|
|
3578
3578
|
role: R;
|
|
@@ -5155,8 +5155,8 @@ declare const signUp: {
|
|
|
5155
5155
|
banned: boolean | null | undefined;
|
|
5156
5156
|
} & {
|
|
5157
5157
|
role?: string | null | undefined;
|
|
5158
|
-
banReason?: string | null | undefined;
|
|
5159
5158
|
banExpires?: Date | null | undefined;
|
|
5159
|
+
banReason?: string | null | undefined;
|
|
5160
5160
|
} & {
|
|
5161
5161
|
twoFactorEnabled: boolean | null | undefined;
|
|
5162
5162
|
} & {}>;
|
|
@@ -5184,8 +5184,8 @@ declare const signUp: {
|
|
|
5184
5184
|
banned: boolean | null | undefined;
|
|
5185
5185
|
} & {
|
|
5186
5186
|
role?: string | null | undefined;
|
|
5187
|
-
banReason?: string | null | undefined;
|
|
5188
5187
|
banExpires?: Date | null | undefined;
|
|
5188
|
+
banReason?: string | null | undefined;
|
|
5189
5189
|
} & {
|
|
5190
5190
|
twoFactorEnabled: boolean | null | undefined;
|
|
5191
5191
|
} & {}>;
|
|
@@ -826,8 +826,8 @@ declare const authClient: better_auth_react.ReactAuthClient<{
|
|
|
826
826
|
$Infer: {
|
|
827
827
|
body: {
|
|
828
828
|
permissions: {
|
|
829
|
-
readonly user?: ("
|
|
830
|
-
readonly session?: ("
|
|
829
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
830
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
831
831
|
};
|
|
832
832
|
} & {
|
|
833
833
|
userId?: string | undefined;
|
|
@@ -916,8 +916,8 @@ declare const authClient: better_auth_react.ReactAuthClient<{
|
|
|
916
916
|
admin: {
|
|
917
917
|
checkRolePermission: <R extends "user" | "admin">(data: {
|
|
918
918
|
permissions: {
|
|
919
|
-
readonly user?: ("
|
|
920
|
-
readonly session?: ("
|
|
919
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
920
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
921
921
|
};
|
|
922
922
|
} & {
|
|
923
923
|
role: R;
|
|
@@ -2423,8 +2423,8 @@ declare const useSession: () => {
|
|
|
2423
2423
|
banned: boolean | null | undefined;
|
|
2424
2424
|
} & {
|
|
2425
2425
|
role?: string | null | undefined;
|
|
2426
|
-
banReason?: string | null | undefined;
|
|
2427
2426
|
banExpires?: Date | null | undefined;
|
|
2427
|
+
banReason?: string | null | undefined;
|
|
2428
2428
|
} & {
|
|
2429
2429
|
twoFactorEnabled: boolean | null | undefined;
|
|
2430
2430
|
} & {}>;
|
|
@@ -2450,7 +2450,7 @@ declare const useSession: () => {
|
|
|
2450
2450
|
};
|
|
2451
2451
|
declare const signIn: {
|
|
2452
2452
|
social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
2453
|
-
provider:
|
|
2453
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2454
2454
|
callbackURL?: string | undefined;
|
|
2455
2455
|
newUserCallbackURL?: string | undefined;
|
|
2456
2456
|
errorCallbackURL?: string | undefined;
|
|
@@ -2475,7 +2475,7 @@ declare const signIn: {
|
|
|
2475
2475
|
additionalParams?: Record<string, string> | undefined;
|
|
2476
2476
|
additionalData?: Record<string, any> | undefined;
|
|
2477
2477
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, string | undefined> | undefined>>(data_0: better_auth.Prettify<Omit<{
|
|
2478
|
-
provider:
|
|
2478
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2479
2479
|
callbackURL?: string | undefined;
|
|
2480
2480
|
newUserCallbackURL?: string | undefined;
|
|
2481
2481
|
errorCallbackURL?: string | undefined;
|
|
@@ -2502,7 +2502,7 @@ declare const signIn: {
|
|
|
2502
2502
|
} & {
|
|
2503
2503
|
fetchOptions?: FetchOptions | undefined;
|
|
2504
2504
|
}, "provider"> & {
|
|
2505
|
-
provider:
|
|
2505
|
+
provider: "github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
2506
2506
|
fetchOptions?: FetchOptions | undefined;
|
|
2507
2507
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
2508
2508
|
redirect: boolean;
|
|
@@ -2533,8 +2533,8 @@ declare const signIn: {
|
|
|
2533
2533
|
banned: boolean | null | undefined;
|
|
2534
2534
|
} & {
|
|
2535
2535
|
role?: string | null | undefined;
|
|
2536
|
-
banReason?: string | null | undefined;
|
|
2537
2536
|
banExpires?: Date | null | undefined;
|
|
2537
|
+
banReason?: string | null | undefined;
|
|
2538
2538
|
} & {
|
|
2539
2539
|
twoFactorEnabled: boolean | null | undefined;
|
|
2540
2540
|
} & {}>;
|
|
@@ -2581,8 +2581,8 @@ declare const signIn: {
|
|
|
2581
2581
|
banned: boolean | null | undefined;
|
|
2582
2582
|
} & {
|
|
2583
2583
|
role?: string | null | undefined;
|
|
2584
|
-
banReason?: string | null | undefined;
|
|
2585
2584
|
banExpires?: Date | null | undefined;
|
|
2585
|
+
banReason?: string | null | undefined;
|
|
2586
2586
|
} & {
|
|
2587
2587
|
twoFactorEnabled: boolean | null | undefined;
|
|
2588
2588
|
} & {}>;
|
|
@@ -3481,8 +3481,8 @@ declare const signUp: {
|
|
|
3481
3481
|
$Infer: {
|
|
3482
3482
|
body: {
|
|
3483
3483
|
permissions: {
|
|
3484
|
-
readonly user?: ("
|
|
3485
|
-
readonly session?: ("
|
|
3484
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
3485
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3486
3486
|
};
|
|
3487
3487
|
} & {
|
|
3488
3488
|
userId?: string | undefined;
|
|
@@ -3571,8 +3571,8 @@ declare const signUp: {
|
|
|
3571
3571
|
admin: {
|
|
3572
3572
|
checkRolePermission: <R extends "user" | "admin">(data: {
|
|
3573
3573
|
permissions: {
|
|
3574
|
-
readonly user?: ("
|
|
3575
|
-
readonly session?: ("
|
|
3574
|
+
readonly user?: ("set-role" | "delete" | "update" | "list" | "create" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "set-email" | "get")[] | undefined;
|
|
3575
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3576
3576
|
};
|
|
3577
3577
|
} & {
|
|
3578
3578
|
role: R;
|
|
@@ -5155,8 +5155,8 @@ declare const signUp: {
|
|
|
5155
5155
|
banned: boolean | null | undefined;
|
|
5156
5156
|
} & {
|
|
5157
5157
|
role?: string | null | undefined;
|
|
5158
|
-
banReason?: string | null | undefined;
|
|
5159
5158
|
banExpires?: Date | null | undefined;
|
|
5159
|
+
banReason?: string | null | undefined;
|
|
5160
5160
|
} & {
|
|
5161
5161
|
twoFactorEnabled: boolean | null | undefined;
|
|
5162
5162
|
} & {}>;
|
|
@@ -5184,8 +5184,8 @@ declare const signUp: {
|
|
|
5184
5184
|
banned: boolean | null | undefined;
|
|
5185
5185
|
} & {
|
|
5186
5186
|
role?: string | null | undefined;
|
|
5187
|
-
banReason?: string | null | undefined;
|
|
5188
5187
|
banExpires?: Date | null | undefined;
|
|
5188
|
+
banReason?: string | null | undefined;
|
|
5189
5189
|
} & {
|
|
5190
5190
|
twoFactorEnabled: boolean | null | undefined;
|
|
5191
5191
|
} & {}>;
|
package/dist/db/index.d.mts
CHANGED
package/dist/db/index.d.ts
CHANGED
package/dist/db/schema.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/pg-core';
|
|
3
|
-
export { A as ActivityActionEnum, R as RoleEnum, b as accounts, c as activityLogs, d as authThrottle, e as consentLog, f as deviceFingerprints, g as errorRefs, p as passkeys, h as pushSubscriptions, i as sessions, s as systemSettings, t as twoFactors, u as users, v as verifications } from '../schema-
|
|
3
|
+
export { A as ActivityActionEnum, R as RoleEnum, b as accounts, c as activityLogs, d as authThrottle, e as consentLog, f as deviceFingerprints, g as errorRefs, p as passkeys, h as pushSubscriptions, i as sessions, s as systemSettings, t as twoFactors, u as users, v as verifications } from '../schema-BPvJz0PE.mjs';
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/pg-core';
|
|
3
|
-
export { A as ActivityActionEnum, R as RoleEnum, b as accounts, c as activityLogs, d as authThrottle, e as consentLog, f as deviceFingerprints, g as errorRefs, p as passkeys, h as pushSubscriptions, i as sessions, s as systemSettings, t as twoFactors, u as users, v as verifications } from '../schema-
|
|
3
|
+
export { A as ActivityActionEnum, R as RoleEnum, b as accounts, c as activityLogs, d as authThrottle, e as consentLog, f as deviceFingerprints, g as errorRefs, p as passkeys, h as pushSubscriptions, i as sessions, s as systemSettings, t as twoFactors, u as users, v as verifications } from '../schema-BPvJz0PE.js';
|
|
@@ -1159,7 +1159,7 @@ declare const activityLogs: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
1159
1159
|
tableName: "activity_log";
|
|
1160
1160
|
dataType: "string";
|
|
1161
1161
|
columnType: "PgEnumColumn";
|
|
1162
|
-
data: "
|
|
1162
|
+
data: "login_failed" | "login" | "logout" | "password_changed" | "email_changed" | "profile_updated" | "session_revoked" | "user_deleted" | "user_banned" | "user_unbanned" | "role_changed" | "impersonation_started" | "impersonation_stopped" | "settings_changed" | "passkey_added" | "passkey_removed";
|
|
1163
1163
|
driverParam: string;
|
|
1164
1164
|
notNull: true;
|
|
1165
1165
|
hasDefault: false;
|
|
@@ -1159,7 +1159,7 @@ declare const activityLogs: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
1159
1159
|
tableName: "activity_log";
|
|
1160
1160
|
dataType: "string";
|
|
1161
1161
|
columnType: "PgEnumColumn";
|
|
1162
|
-
data: "
|
|
1162
|
+
data: "login_failed" | "login" | "logout" | "password_changed" | "email_changed" | "profile_updated" | "session_revoked" | "user_deleted" | "user_banned" | "user_unbanned" | "role_changed" | "impersonation_started" | "impersonation_stopped" | "settings_changed" | "passkey_added" | "passkey_removed";
|
|
1163
1163
|
driverParam: string;
|
|
1164
1164
|
notNull: true;
|
|
1165
1165
|
hasDefault: false;
|