@meistrari/auth-nuxt 3.0.2 → 3.0.4

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.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
1
+ import { NuxtModule } from '@nuxt/schema';
2
2
 
3
3
  interface ModuleOptions {
4
4
  /** Auth API base URL */
@@ -22,7 +22,7 @@ interface ModuleOptions {
22
22
  unauthorizedPath?: string;
23
23
  };
24
24
  }
25
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
25
+ declare const module$1: NuxtModule<ModuleOptions, ModuleOptions, false>;
26
26
 
27
- export { _default as default };
27
+ export { module$1 as default };
28
28
  export type { ModuleOptions };
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.2",
4
+ "version": "3.0.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -49,6 +49,16 @@ export declare function useTelaApplicationAuth(): {
49
49
  emailVerified: boolean;
50
50
  name: string;
51
51
  image?: string | null | undefined;
52
+ } & {
53
+ twoFactorEnabled: boolean | null | undefined;
54
+ } & {
55
+ banned: boolean | null | undefined;
56
+ } & {
57
+ role?: string | null | undefined;
58
+ banReason?: string | null | undefined;
59
+ banExpires?: Date | null | undefined;
60
+ } & {
61
+ lastActiveAt?: Date | null | undefined;
52
62
  }> | null, import("better-auth").StripEmptyObjects<{
53
63
  id: string;
54
64
  createdAt: Date;
@@ -57,6 +67,16 @@ export declare function useTelaApplicationAuth(): {
57
67
  emailVerified: boolean;
58
68
  name: string;
59
69
  image?: string | null | undefined;
70
+ } & {
71
+ twoFactorEnabled: boolean | null | undefined;
72
+ } & {
73
+ banned: boolean | null | undefined;
74
+ } & {
75
+ role?: string | null | undefined;
76
+ banReason?: string | null | undefined;
77
+ banExpires?: Date | null | undefined;
78
+ } & {
79
+ lastActiveAt?: Date | null | undefined;
60
80
  }> | null>;
61
81
  activeOrganization: import("vue").Ref<FullOrganization | null, FullOrganization | null>;
62
82
  };
@@ -12,6 +12,16 @@ export declare function useSessionState(): {
12
12
  emailVerified: boolean;
13
13
  name: string;
14
14
  image?: string | null | undefined;
15
+ } & {
16
+ twoFactorEnabled: boolean | null | undefined;
17
+ } & {
18
+ banned: boolean | null | undefined;
19
+ } & {
20
+ role?: string | null | undefined;
21
+ banReason?: string | null | undefined;
22
+ banExpires?: Date | null | undefined;
23
+ } & {
24
+ lastActiveAt?: Date | null | undefined;
15
25
  }> | null, import("better-auth").StripEmptyObjects<{
16
26
  id: string;
17
27
  createdAt: Date;
@@ -20,6 +30,16 @@ export declare function useSessionState(): {
20
30
  emailVerified: boolean;
21
31
  name: string;
22
32
  image?: string | null | undefined;
33
+ } & {
34
+ twoFactorEnabled: boolean | null | undefined;
35
+ } & {
36
+ banned: boolean | null | undefined;
37
+ } & {
38
+ role?: string | null | undefined;
39
+ banReason?: string | null | undefined;
40
+ banExpires?: Date | null | undefined;
41
+ } & {
42
+ lastActiveAt?: Date | null | undefined;
23
43
  }> | null>;
24
44
  session: import("vue").Ref<{
25
45
  user: import("better-auth").StripEmptyObjects<{
@@ -30,6 +50,16 @@ export declare function useSessionState(): {
30
50
  emailVerified: boolean;
31
51
  name: string;
32
52
  image?: string | null | undefined;
53
+ } & {
54
+ twoFactorEnabled: boolean | null | undefined;
55
+ } & {} & {
56
+ banned: boolean | null | undefined;
57
+ } & {
58
+ role?: string | null | undefined;
59
+ banReason?: string | null | undefined;
60
+ banExpires?: Date | null | undefined;
61
+ } & {} & {
62
+ lastActiveAt?: Date | null | undefined;
33
63
  }>;
34
64
  session: import("better-auth").StripEmptyObjects<{
35
65
  id: string;
@@ -40,7 +70,12 @@ export declare function useSessionState(): {
40
70
  token: string;
41
71
  ipAddress?: string | null | undefined;
42
72
  userAgent?: string | null | undefined;
43
- }>;
73
+ } & {} & {
74
+ activeOrganizationId?: string | null | undefined;
75
+ activeTeamId?: string | null | undefined;
76
+ } & {} & {
77
+ impersonatedBy?: string | null | undefined;
78
+ } & {} & {}>;
44
79
  } | null, {
45
80
  user: import("better-auth").StripEmptyObjects<{
46
81
  id: string;
@@ -50,6 +85,16 @@ export declare function useSessionState(): {
50
85
  emailVerified: boolean;
51
86
  name: string;
52
87
  image?: string | null | undefined;
88
+ } & {
89
+ twoFactorEnabled: boolean | null | undefined;
90
+ } & {} & {
91
+ banned: boolean | null | undefined;
92
+ } & {
93
+ role?: string | null | undefined;
94
+ banReason?: string | null | undefined;
95
+ banExpires?: Date | null | undefined;
96
+ } & {} & {
97
+ lastActiveAt?: Date | null | undefined;
53
98
  }>;
54
99
  session: import("better-auth").StripEmptyObjects<{
55
100
  id: string;
@@ -60,7 +105,12 @@ export declare function useSessionState(): {
60
105
  token: string;
61
106
  ipAddress?: string | null | undefined;
62
107
  userAgent?: string | null | undefined;
63
- }>;
108
+ } & {} & {
109
+ activeOrganizationId?: string | null | undefined;
110
+ activeTeamId?: string | null | undefined;
111
+ } & {} & {
112
+ impersonatedBy?: string | null | undefined;
113
+ } & {} & {}>;
64
114
  } | null>;
65
115
  };
66
116
  /**
@@ -69,7 +119,33 @@ export declare function useSessionState(): {
69
119
  */
70
120
  export declare function useOrganizationState(): {
71
121
  activeOrganization: import("vue").Ref<FullOrganization | null, FullOrganization | null>;
72
- activeMember: import("vue").Ref<any, any>;
122
+ activeMember: import("vue").Ref<{
123
+ id: string;
124
+ organizationId: string;
125
+ role: "org:admin" | "org:member" | "org:reviewer";
126
+ createdAt: Date;
127
+ userId: string;
128
+ teamId?: string | undefined | undefined | undefined;
129
+ user: {
130
+ id: string;
131
+ email: string;
132
+ name: string;
133
+ image?: string | undefined;
134
+ };
135
+ } | null, {
136
+ id: string;
137
+ organizationId: string;
138
+ role: "org:admin" | "org:member" | "org:reviewer";
139
+ createdAt: Date;
140
+ userId: string;
141
+ teamId?: string | undefined | undefined | undefined;
142
+ user: {
143
+ id: string;
144
+ email: string;
145
+ name: string;
146
+ image?: string | undefined;
147
+ };
148
+ } | null>;
73
149
  };
74
150
  export declare function useApplicationSessionState(): {
75
151
  user: import("vue").Ref<import("better-auth").StripEmptyObjects<{
@@ -80,6 +156,16 @@ export declare function useApplicationSessionState(): {
80
156
  emailVerified: boolean;
81
157
  name: string;
82
158
  image?: string | null | undefined;
159
+ } & {
160
+ twoFactorEnabled: boolean | null | undefined;
161
+ } & {
162
+ banned: boolean | null | undefined;
163
+ } & {
164
+ role?: string | null | undefined;
165
+ banReason?: string | null | undefined;
166
+ banExpires?: Date | null | undefined;
167
+ } & {
168
+ lastActiveAt?: Date | null | undefined;
83
169
  }> | null, import("better-auth").StripEmptyObjects<{
84
170
  id: string;
85
171
  createdAt: Date;
@@ -88,6 +174,16 @@ export declare function useApplicationSessionState(): {
88
174
  emailVerified: boolean;
89
175
  name: string;
90
176
  image?: string | null | undefined;
177
+ } & {
178
+ twoFactorEnabled: boolean | null | undefined;
179
+ } & {
180
+ banned: boolean | null | undefined;
181
+ } & {
182
+ role?: string | null | undefined;
183
+ banReason?: string | null | undefined;
184
+ banExpires?: Date | null | undefined;
185
+ } & {
186
+ lastActiveAt?: Date | null | undefined;
91
187
  }> | null>;
92
188
  activeOrganization: import("vue").Ref<FullOrganization | null, FullOrganization | null>;
93
189
  };
@@ -11,6 +11,6 @@
11
11
  */
12
12
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
13
13
  success: boolean;
14
- organizations: any;
14
+ organizations: import("@meistrari/auth-core").FullOrganization[];
15
15
  }>>;
16
16
  export default _default;
@@ -11,7 +11,25 @@
11
11
  */
12
12
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
13
13
  success: boolean;
14
- user: any;
15
- organization: any;
14
+ user: import("better-auth").StripEmptyObjects<{
15
+ id: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ email: string;
19
+ emailVerified: boolean;
20
+ name: string;
21
+ image?: string | null | undefined;
22
+ } & {
23
+ twoFactorEnabled: boolean | null | undefined;
24
+ } & {
25
+ banned: boolean | null | undefined;
26
+ } & {
27
+ role?: string | null | undefined;
28
+ banReason?: string | null | undefined;
29
+ banExpires?: Date | null | undefined;
30
+ } & {
31
+ lastActiveAt?: Date | null | undefined;
32
+ }>;
33
+ organization: import("@meistrari/auth-core").FullOrganization;
16
34
  }>>;
17
35
  export default _default;
@@ -12,7 +12,25 @@
12
12
  */
13
13
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
14
14
  success: boolean;
15
- user: any;
16
- organization: any;
15
+ user: import("better-auth").StripEmptyObjects<{
16
+ id: string;
17
+ createdAt: Date;
18
+ updatedAt: Date;
19
+ email: string;
20
+ emailVerified: boolean;
21
+ name: string;
22
+ image?: string | null | undefined;
23
+ } & {
24
+ twoFactorEnabled: boolean | null | undefined;
25
+ } & {
26
+ banned: boolean | null | undefined;
27
+ } & {
28
+ role?: string | null | undefined;
29
+ banReason?: string | null | undefined;
30
+ banExpires?: Date | null | undefined;
31
+ } & {
32
+ lastActiveAt?: Date | null | undefined;
33
+ }>;
34
+ organization: import("@meistrari/auth-core").FullOrganization;
17
35
  }>>;
18
36
  export default _default;
@@ -1,6 +1,24 @@
1
1
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
2
2
  success: boolean;
3
- user: any;
4
- organization: any;
3
+ user: import("better-auth").StripEmptyObjects<{
4
+ id: string;
5
+ createdAt: Date;
6
+ updatedAt: Date;
7
+ email: string;
8
+ emailVerified: boolean;
9
+ name: string;
10
+ image?: string | null | undefined;
11
+ } & {
12
+ twoFactorEnabled: boolean | null | undefined;
13
+ } & {
14
+ banned: boolean | null | undefined;
15
+ } & {
16
+ role?: string | null | undefined;
17
+ banReason?: string | null | undefined;
18
+ banExpires?: Date | null | undefined;
19
+ } & {
20
+ lastActiveAt?: Date | null | undefined;
21
+ }>;
22
+ organization: import("@meistrari/auth-core").FullOrganization;
5
23
  }>>;
6
24
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/auth-nuxt",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -27,12 +27,9 @@
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
- },
33
30
  "dependencies": {
34
- "@meistrari/auth-core": "1.11.4",
35
- "jose": "6.1.3"
31
+ "jose": "6.1.3",
32
+ "@meistrari/auth-core": "1.11.6"
36
33
  },
37
34
  "peerDependencies": {
38
35
  "nuxt": "^3.0.0 || ^4.0.0",
@@ -52,5 +49,8 @@
52
49
  "unbuild": "3.6.1",
53
50
  "vitest": "3.2.4",
54
51
  "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
+ }