@wecode-team/cms-supabase-api 0.1.48 → 0.1.49

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.
@@ -4,6 +4,14 @@ export interface LoginRequest {
4
4
  username: string;
5
5
  password: string;
6
6
  }
7
+ export interface ForgotPasswordRequest {
8
+ username: string;
9
+ }
10
+ export interface ResetPasswordRequest {
11
+ username: string;
12
+ code: string;
13
+ password: string;
14
+ }
7
15
  export interface LoginResponse {
8
16
  token: string;
9
17
  user: {
@@ -13,6 +21,28 @@ export interface LoginResponse {
13
21
  session_id?: string;
14
22
  };
15
23
  }
24
+ export declare function forgotPassword(c: Context, tableName: string): Promise<(Response & import("hono").TypedResponse<{
25
+ success: boolean;
26
+ message?: string | undefined;
27
+ data?: any;
28
+ error?: string | undefined;
29
+ }, 200, "json">) | (Response & import("hono").TypedResponse<{
30
+ success: boolean;
31
+ message?: string | undefined;
32
+ data?: any;
33
+ error?: string | undefined;
34
+ }, 500, "json">)>;
35
+ export declare function resetPassword(c: Context, tableName: string): Promise<(Response & import("hono").TypedResponse<{
36
+ success: boolean;
37
+ message?: string | undefined;
38
+ data?: any;
39
+ error?: string | undefined;
40
+ }, 200, "json">) | (Response & import("hono").TypedResponse<{
41
+ success: boolean;
42
+ message?: string | undefined;
43
+ data?: any;
44
+ error?: string | undefined;
45
+ }, 500, "json">)>;
16
46
  export declare function login(c: Context, tableName: string): Promise<(Response & import("hono").TypedResponse<{
17
47
  success: boolean;
18
48
  message?: string | undefined;