@quvel-kit/core 1.3.17 → 1.3.18

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,10 +4,9 @@
4
4
  * Framework-agnostic authentication services, types, and utilities.
5
5
  */
6
6
  export { AuthService, PasswordResetService, TwoFactorService, TwoFactorChallengeService, AuthGuard, } from './services/index.js';
7
- export type { AuthCheckResult, AuthGuardConfig, TwoFactorQRResponse, TwoFactorSecretResponse, TwoFactorRecoveryCodesResponse, } from './services/index.js';
7
+ export type { AuthStatus, AuthCheckResult, AuthGuardConfig, TwoFactorQRResponse, TwoFactorSecretResponse, TwoFactorRecoveryCodesResponse, } from './services/index.js';
8
8
  export { defineAuthGuard } from './boot/defineAuthGuard.js';
9
9
  export type { DefineAuthGuardConfig } from './boot/defineAuthGuard.js';
10
10
  export type { AuthMeta } from './types/index.js';
11
11
  export { createAuthMeta, createGuestOnlyAuth, createProtectedAuth, createPublicAuth, createSkipAuth, } from './utils/auth-meta.js';
12
- export { AuthStatus } from './enums/AuthStatusEnum.js';
13
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,yBAAyB,EACzB,SAAS,GACV,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EACV,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,YAAY,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGvE,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,yBAAyB,EACzB,SAAS,GACV,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EACV,UAAU,EACV,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,YAAY,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGvE,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,GACf,MAAM,sBAAsB,CAAC"}
@@ -9,5 +9,3 @@ export { AuthService, PasswordResetService, TwoFactorService, TwoFactorChallenge
9
9
  export { defineAuthGuard } from './boot/defineAuthGuard.js';
10
10
  // Utilities
11
11
  export { createAuthMeta, createGuestOnlyAuth, createProtectedAuth, createPublicAuth, createSkipAuth, } from './utils/auth-meta.js';
12
- // Enums
13
- export { AuthStatus } from './enums/AuthStatusEnum.js';
@@ -1,8 +1,10 @@
1
1
  import { Service } from '../../services/Service.js';
2
2
  import { ServiceContainer } from '../../container/ServiceContainer.js';
3
3
  import type { RegisterService } from '../../container/types.js';
4
- import type { IUser } from '../../types/user.types.js';
5
- import { AuthStatus } from '../enums/AuthStatusEnum.js';
4
+ /**
5
+ * Authentication status codes returned from the API
6
+ */
7
+ export type AuthStatus = 'user_not_found' | 'invalid_credentials' | 'email_already_in_use' | 'email_not_verified' | 'logout_success' | 'login_success' | 'register_success';
6
8
  /**
7
9
  * Service responsible for handling login, registration, and session management.
8
10
  */
@@ -17,9 +19,10 @@ export declare class AuthService extends Service implements RegisterService {
17
19
  /**
18
20
  * Fetches the current user session.
19
21
  *
22
+ * @template TUser - The user type returned from the API
20
23
  * @returns The user data or null if not authenticated.
21
24
  */
22
- fetchSession(): Promise<IUser | null>;
25
+ fetchSession<TUser = Record<string, any>>(): Promise<TUser | null>;
23
26
  /**
24
27
  * Logs the user out.
25
28
  */
@@ -27,26 +30,28 @@ export declare class AuthService extends Service implements RegisterService {
27
30
  /**
28
31
  * Authenticates a user with email and password.
29
32
  *
33
+ * @template TUser - The user type returned from the API
30
34
  * @param email - The user's email.
31
35
  * @param password - The user's password.
32
36
  * @returns The authenticated user data or two-factor challenge indication.
33
37
  */
34
- login(email: string, password: string): Promise<{
35
- user?: IUser;
38
+ login<TUser = Record<string, any>>(email: string, password: string): Promise<{
39
+ user?: TUser;
36
40
  two_factor?: boolean;
37
41
  }>;
38
42
  /**
39
43
  * Registers a new user.
40
44
  *
45
+ * @template TUser - The user type returned from the API
41
46
  * @param email - The user's email.
42
47
  * @param password - The user's password.
43
48
  * @param name - The user's name.
44
49
  * @param recaptchaToken - Google reCAPTCHA token for verification
45
50
  * @returns The registration status and user data.
46
51
  */
47
- signUp(email: string, password: string, name: string, recaptchaToken?: string): Promise<{
52
+ signUp<TUser = Record<string, any>>(email: string, password: string, name: string, recaptchaToken?: string): Promise<{
48
53
  status: AuthStatus;
49
- user: IUser;
54
+ user: TUser;
50
55
  }>;
51
56
  }
52
57
  //# sourceMappingURL=AuthService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthService.d.ts","sourceRoot":"","sources":["../../../src/auth/services/AuthService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,KAAK,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;IACjE,OAAO,CAAC,GAAG,CAAc;IAEzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,gBAAgB,GAAG,IAAI;IAIzC;;;;;OAKG;IACG,YAAY,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAYxE;;OAEG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B;;;;;;;OAOG;IACG,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACrC,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,IAAI,CAAC,EAAE,KAAK,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAOlD;;;;;;;;;OASG;IACG,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACtC,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC;QACT,MAAM,EAAE,UAAU,CAAC;QACnB,IAAI,EAAE,KAAK,CAAC;KACb,CAAC;CAWH"}
@@ -15,6 +15,7 @@ export class AuthService extends Service {
15
15
  /**
16
16
  * Fetches the current user session.
17
17
  *
18
+ * @template TUser - The user type returned from the API
18
19
  * @returns The user data or null if not authenticated.
19
20
  */
20
21
  async fetchSession() {
@@ -37,6 +38,7 @@ export class AuthService extends Service {
37
38
  /**
38
39
  * Authenticates a user with email and password.
39
40
  *
41
+ * @template TUser - The user type returned from the API
40
42
  * @param email - The user's email.
41
43
  * @param password - The user's password.
42
44
  * @returns The authenticated user data or two-factor challenge indication.
@@ -50,6 +52,7 @@ export class AuthService extends Service {
50
52
  /**
51
53
  * Registers a new user.
52
54
  *
55
+ * @template TUser - The user type returned from the API
53
56
  * @param email - The user's email.
54
57
  * @param password - The user's password.
55
58
  * @param name - The user's name.
@@ -3,6 +3,7 @@ export { PasswordResetService } from './PasswordResetService.js';
3
3
  export { TwoFactorService } from './TwoFactorService.js';
4
4
  export { TwoFactorChallengeService } from './TwoFactorChallengeService.js';
5
5
  export { AuthGuard } from './AuthGuard.js';
6
+ export type { AuthStatus } from './AuthService.js';
6
7
  export type { AuthCheckResult, AuthGuardConfig } from './AuthGuard.js';
7
8
  export type { TwoFactorQRResponse, TwoFactorSecretResponse, TwoFactorRecoveryCodesResponse } from './TwoFactorService.js';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACvE,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACvE,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -31,7 +31,6 @@ export * from './types/websocket.types.js';
31
31
  export * from './types/laravel.types.js';
32
32
  export * from './types/task.types.js';
33
33
  export * from './types/scripts.types.js';
34
- export * from './types/user.types.js';
35
34
  export * from './types/theme.types.js';
36
35
  export * from './utils/logging.js';
37
36
  export * from './utils/axios.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AAGjC,YAAY,EACV,OAAO,IAAI,QAAQ,EACnB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAE,mBAAmB,EAAE,YA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c,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AAGtC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAG9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC9E,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -41,7 +41,6 @@ export * from './types/websocket.types.js';
41
41
  export * from './types/laravel.types.js';
42
42
  export * from './types/task.types.js';
43
43
  export * from './types/scripts.types.js';
44
- export * from './types/user.types.js';
45
44
  export * from './types/theme.types.js';
46
45
  // Utilities
47
46
  export * from './utils/logging.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quvel-kit/core",
3
- "version": "1.3.17",
3
+ "version": "1.3.18",
4
4
  "description": "Core utilities for Quvel UI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,13 +0,0 @@
1
- /**
2
- * Authentication status codes
3
- */
4
- export declare enum AuthStatus {
5
- USER_NOT_FOUND = "user_not_found",
6
- INVALID_CREDENTIALS = "invalid_credentials",
7
- EMAIL_ALREADY_IN_USE = "email_already_in_use",
8
- EMAIL_NOT_VERIFIED = "email_not_verified",
9
- LOGOUT_SUCCESS = "logout_success",
10
- LOGIN_SUCCESS = "login_success",
11
- REGISTER_SUCCESS = "register_success"
12
- }
13
- //# sourceMappingURL=AuthStatusEnum.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthStatusEnum.d.ts","sourceRoot":"","sources":["../../../src/auth/enums/AuthStatusEnum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU;IACpB,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,oBAAoB,yBAAyB;IAC7C,kBAAkB,uBAAuB;IAEzC,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;CACtC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Authentication status codes
3
- */
4
- export var AuthStatus;
5
- (function (AuthStatus) {
6
- AuthStatus["USER_NOT_FOUND"] = "user_not_found";
7
- AuthStatus["INVALID_CREDENTIALS"] = "invalid_credentials";
8
- AuthStatus["EMAIL_ALREADY_IN_USE"] = "email_already_in_use";
9
- AuthStatus["EMAIL_NOT_VERIFIED"] = "email_not_verified";
10
- AuthStatus["LOGOUT_SUCCESS"] = "logout_success";
11
- AuthStatus["LOGIN_SUCCESS"] = "login_success";
12
- AuthStatus["REGISTER_SUCCESS"] = "register_success";
13
- })(AuthStatus || (AuthStatus = {}));
@@ -1,43 +0,0 @@
1
- /**
2
- * Base User Interface
3
- *
4
- * Core user properties that all user implementations should have.
5
- * Applications can extend this interface for custom user models.
6
- */
7
- export interface IUser {
8
- id: string;
9
- name: string;
10
- email: string;
11
- email_verified_at: string | null;
12
- two_factor_enabled: boolean;
13
- createdAt: string;
14
- updatedAt: string;
15
- avatarUrl?: string;
16
- }
17
- /**
18
- * User Factory Function Type
19
- *
20
- * Factory function that creates user instances from API data.
21
- * Users can provide their own factory to create custom user models.
22
- */
23
- export type UserFactory<T extends IUser = IUser> = (data: IUser) => T;
24
- /**
25
- * QuvelTypes Interface
26
- *
27
- * This interface is designed to be augmented by consuming applications.
28
- * Apps can override the User type with their own implementations.
29
- *
30
- * @example
31
- * ```typescript
32
- * // In your app's types/quvel.d.ts
33
- * declare module '@quvel-kit/core' {
34
- * interface QuvelTypes {
35
- * User: import('../models/User').User;
36
- * }
37
- * }
38
- * ```
39
- */
40
- export interface QuvelTypes {
41
- User: IUser;
42
- }
43
- //# sourceMappingURL=user.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../src/types/user.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,IAAI,CAAC,IAAI,EAAE,KAAK,KAAK,CAAC,CAAC;AAEtE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,KAAK,CAAC;CACb"}
@@ -1 +0,0 @@
1
- export {};