@meistrari/auth-nuxt 3.0.1 → 3.0.2

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/auth-nuxt",
3
3
  "configKey": "telaAuth",
4
- "version": "3.0.1",
4
+ "version": "3.0.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -41,7 +41,7 @@ export declare function useTelaApplicationAuth(): {
41
41
  switchOrganization: (organizationId: string) => Promise<void>;
42
42
  refreshToken: () => Promise<void>;
43
43
  getToken: () => Promise<string | null | undefined>;
44
- user: import("vue").Ref<{
44
+ user: import("vue").Ref<import("better-auth").StripEmptyObjects<{
45
45
  id: string;
46
46
  createdAt: Date;
47
47
  updatedAt: Date;
@@ -49,13 +49,7 @@ export declare function useTelaApplicationAuth(): {
49
49
  emailVerified: boolean;
50
50
  name: string;
51
51
  image?: string | null | undefined;
52
- twoFactorEnabled: boolean | null | undefined;
53
- banned: boolean | null | undefined;
54
- role?: string | null | undefined;
55
- banReason?: string | null | undefined;
56
- banExpires?: Date | null | undefined;
57
- lastActiveAt?: Date | null | undefined;
58
- } | null, {
52
+ }> | null, import("better-auth").StripEmptyObjects<{
59
53
  id: string;
60
54
  createdAt: Date;
61
55
  updatedAt: Date;
@@ -63,12 +57,6 @@ export declare function useTelaApplicationAuth(): {
63
57
  emailVerified: boolean;
64
58
  name: string;
65
59
  image?: string | null | undefined;
66
- twoFactorEnabled: boolean | null | undefined;
67
- banned: boolean | null | undefined;
68
- role?: string | null | undefined;
69
- banReason?: string | null | undefined;
70
- banExpires?: Date | null | undefined;
71
- lastActiveAt?: Date | null | undefined;
72
- } | null>;
60
+ }> | null>;
73
61
  activeOrganization: import("vue").Ref<FullOrganization | null, FullOrganization | null>;
74
62
  };
@@ -4,7 +4,7 @@ import type { FullOrganization } from '@meistrari/auth-core';
4
4
  * This module provides access to session-related state without creating circular dependencies.
5
5
  */
6
6
  export declare function useSessionState(): {
7
- user: import("vue").Ref<{
7
+ user: import("vue").Ref<import("better-auth").StripEmptyObjects<{
8
8
  id: string;
9
9
  createdAt: Date;
10
10
  updatedAt: Date;
@@ -12,13 +12,7 @@ export declare function useSessionState(): {
12
12
  emailVerified: boolean;
13
13
  name: string;
14
14
  image?: string | null | undefined;
15
- twoFactorEnabled: boolean | null | undefined;
16
- banned: boolean | null | undefined;
17
- role?: string | null | undefined;
18
- banReason?: string | null | undefined;
19
- banExpires?: Date | null | undefined;
20
- lastActiveAt?: Date | null | undefined;
21
- } | null, {
15
+ }> | null, import("better-auth").StripEmptyObjects<{
22
16
  id: string;
23
17
  createdAt: Date;
24
18
  updatedAt: Date;
@@ -26,15 +20,9 @@ export declare function useSessionState(): {
26
20
  emailVerified: boolean;
27
21
  name: string;
28
22
  image?: string | null | undefined;
29
- twoFactorEnabled: boolean | null | undefined;
30
- banned: boolean | null | undefined;
31
- role?: string | null | undefined;
32
- banReason?: string | null | undefined;
33
- banExpires?: Date | null | undefined;
34
- lastActiveAt?: Date | null | undefined;
35
- } | null>;
23
+ }> | null>;
36
24
  session: import("vue").Ref<{
37
- user: {
25
+ user: import("better-auth").StripEmptyObjects<{
38
26
  id: string;
39
27
  createdAt: Date;
40
28
  updatedAt: Date;
@@ -42,14 +30,8 @@ export declare function useSessionState(): {
42
30
  emailVerified: boolean;
43
31
  name: string;
44
32
  image?: string | null | undefined;
45
- twoFactorEnabled: boolean | null | undefined;
46
- banned: boolean | null | undefined;
47
- role?: string | null | undefined;
48
- banReason?: string | null | undefined;
49
- banExpires?: Date | null | undefined;
50
- lastActiveAt?: Date | null | undefined;
51
- };
52
- session: {
33
+ }>;
34
+ session: import("better-auth").StripEmptyObjects<{
53
35
  id: string;
54
36
  createdAt: Date;
55
37
  updatedAt: Date;
@@ -58,12 +40,9 @@ export declare function useSessionState(): {
58
40
  token: string;
59
41
  ipAddress?: string | null | undefined;
60
42
  userAgent?: string | null | undefined;
61
- activeOrganizationId?: string | null | undefined;
62
- activeTeamId?: string | null | undefined;
63
- impersonatedBy?: string | null | undefined;
64
- };
43
+ }>;
65
44
  } | null, {
66
- user: {
45
+ user: import("better-auth").StripEmptyObjects<{
67
46
  id: string;
68
47
  createdAt: Date;
69
48
  updatedAt: Date;
@@ -71,14 +50,8 @@ export declare function useSessionState(): {
71
50
  emailVerified: boolean;
72
51
  name: string;
73
52
  image?: string | null | undefined;
74
- twoFactorEnabled: boolean | null | undefined;
75
- banned: boolean | null | undefined;
76
- role?: string | null | undefined;
77
- banReason?: string | null | undefined;
78
- banExpires?: Date | null | undefined;
79
- lastActiveAt?: Date | null | undefined;
80
- };
81
- session: {
53
+ }>;
54
+ session: import("better-auth").StripEmptyObjects<{
82
55
  id: string;
83
56
  createdAt: Date;
84
57
  updatedAt: Date;
@@ -87,10 +60,7 @@ export declare function useSessionState(): {
87
60
  token: string;
88
61
  ipAddress?: string | null | undefined;
89
62
  userAgent?: string | null | undefined;
90
- activeOrganizationId?: string | null | undefined;
91
- activeTeamId?: string | null | undefined;
92
- impersonatedBy?: string | null | undefined;
93
- };
63
+ }>;
94
64
  } | null>;
95
65
  };
96
66
  /**
@@ -99,36 +69,10 @@ export declare function useSessionState(): {
99
69
  */
100
70
  export declare function useOrganizationState(): {
101
71
  activeOrganization: import("vue").Ref<FullOrganization | null, FullOrganization | null>;
102
- activeMember: import("vue").Ref<{
103
- id: string;
104
- organizationId: string;
105
- role: "org:admin" | "org:member" | "org:reviewer";
106
- createdAt: Date;
107
- userId: string;
108
- teamId?: string | undefined | undefined | undefined;
109
- user: {
110
- id: string;
111
- email: string;
112
- name: string;
113
- image?: string | undefined;
114
- };
115
- } | null, {
116
- id: string;
117
- organizationId: string;
118
- role: "org:admin" | "org:member" | "org:reviewer";
119
- createdAt: Date;
120
- userId: string;
121
- teamId?: string | undefined | undefined | undefined;
122
- user: {
123
- id: string;
124
- email: string;
125
- name: string;
126
- image?: string | undefined;
127
- };
128
- } | null>;
72
+ activeMember: import("vue").Ref<any, any>;
129
73
  };
130
74
  export declare function useApplicationSessionState(): {
131
- user: import("vue").Ref<{
75
+ user: import("vue").Ref<import("better-auth").StripEmptyObjects<{
132
76
  id: string;
133
77
  createdAt: Date;
134
78
  updatedAt: Date;
@@ -136,13 +80,7 @@ export declare function useApplicationSessionState(): {
136
80
  emailVerified: boolean;
137
81
  name: string;
138
82
  image?: string | null | undefined;
139
- twoFactorEnabled: boolean | null | undefined;
140
- banned: boolean | null | undefined;
141
- role?: string | null | undefined;
142
- banReason?: string | null | undefined;
143
- banExpires?: Date | null | undefined;
144
- lastActiveAt?: Date | null | undefined;
145
- } | null, {
83
+ }> | null, import("better-auth").StripEmptyObjects<{
146
84
  id: string;
147
85
  createdAt: Date;
148
86
  updatedAt: Date;
@@ -150,12 +88,6 @@ export declare function useApplicationSessionState(): {
150
88
  emailVerified: boolean;
151
89
  name: string;
152
90
  image?: string | null | undefined;
153
- twoFactorEnabled: boolean | null | undefined;
154
- banned: boolean | null | undefined;
155
- role?: string | null | undefined;
156
- banReason?: string | null | undefined;
157
- banExpires?: Date | null | undefined;
158
- lastActiveAt?: Date | null | undefined;
159
- } | null>;
91
+ }> | null>;
160
92
  activeOrganization: import("vue").Ref<FullOrganization | null, FullOrganization | null>;
161
93
  };
@@ -11,6 +11,6 @@
11
11
  */
12
12
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
13
13
  success: boolean;
14
- organizations: import("@meistrari/auth-core").FullOrganization[];
14
+ organizations: any;
15
15
  }>>;
16
16
  export default _default;
@@ -11,21 +11,7 @@
11
11
  */
12
12
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
13
13
  success: boolean;
14
- user: {
15
- id: string;
16
- createdAt: Date;
17
- updatedAt: Date;
18
- email: string;
19
- emailVerified: boolean;
20
- name: string;
21
- image?: string | null | undefined;
22
- twoFactorEnabled: boolean | null | undefined;
23
- banned: boolean | null | undefined;
24
- role?: string | null | undefined;
25
- banReason?: string | null | undefined;
26
- banExpires?: Date | null | undefined;
27
- lastActiveAt?: Date | null | undefined;
28
- };
29
- organization: import("@meistrari/auth-core").FullOrganization;
14
+ user: any;
15
+ organization: any;
30
16
  }>>;
31
17
  export default _default;
@@ -12,21 +12,7 @@
12
12
  */
13
13
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
14
14
  success: boolean;
15
- user: {
16
- id: string;
17
- createdAt: Date;
18
- updatedAt: Date;
19
- email: string;
20
- emailVerified: boolean;
21
- name: string;
22
- image?: string | null | undefined;
23
- twoFactorEnabled: boolean | null | undefined;
24
- banned: boolean | null | undefined;
25
- role?: string | null | undefined;
26
- banReason?: string | null | undefined;
27
- banExpires?: Date | null | undefined;
28
- lastActiveAt?: Date | null | undefined;
29
- };
30
- organization: import("@meistrari/auth-core").FullOrganization;
15
+ user: any;
16
+ organization: any;
31
17
  }>>;
32
18
  export default _default;
@@ -1,20 +1,6 @@
1
1
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
2
2
  success: boolean;
3
- user: {
4
- id: string;
5
- createdAt: Date;
6
- updatedAt: Date;
7
- email: string;
8
- emailVerified: boolean;
9
- name: string;
10
- image?: string | null | undefined;
11
- twoFactorEnabled: boolean | null | undefined;
12
- banned: boolean | null | undefined;
13
- role?: string | null | undefined;
14
- banReason?: string | null | undefined;
15
- banExpires?: Date | null | undefined;
16
- lastActiveAt?: Date | null | undefined;
17
- };
18
- organization: import("@meistrari/auth-core").FullOrganization;
3
+ user: any;
4
+ organization: any;
19
5
  }>>;
20
6
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/auth-nuxt",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -27,9 +27,12 @@
27
27
  "files": [
28
28
  "dist"
29
29
  ],
30
+ "scripts": {
31
+ "build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build"
32
+ },
30
33
  "dependencies": {
31
- "jose": "6.1.3",
32
- "@meistrari/auth-core": "1.11.3"
34
+ "@meistrari/auth-core": "1.11.4",
35
+ "jose": "6.1.3"
33
36
  },
34
37
  "peerDependencies": {
35
38
  "nuxt": "^3.0.0 || ^4.0.0",
@@ -49,8 +52,5 @@
49
52
  "unbuild": "3.6.1",
50
53
  "vitest": "3.2.4",
51
54
  "vue-tsc": "3.0.6"
52
- },
53
- "scripts": {
54
- "build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build"
55
55
  }
56
- }
56
+ }