@darco2903/auth-api 2.1.6 → 2.2.0

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/client.d.ts CHANGED
@@ -152,6 +152,7 @@ export declare function createClient(origin: string): {
152
152
  };
153
153
  round_border: boolean;
154
154
  verified: boolean;
155
+ totp_enabled: boolean;
155
156
  last_login: Date | null;
156
157
  created_at: Date;
157
158
  updated_at: Date;
@@ -376,6 +376,7 @@ declare const _default: {
376
376
  email: import("zod").ZodString;
377
377
  role: import("zod").ZodNumber;
378
378
  verified: import("zod").ZodBoolean;
379
+ totp_enabled: import("zod").ZodBoolean;
379
380
  last_login: import("zod").ZodNullable<import("zod").ZodDate>;
380
381
  created_at: import("zod").ZodDate;
381
382
  updated_at: import("zod").ZodDate;
@@ -391,6 +392,7 @@ declare const _default: {
391
392
  };
392
393
  round_border: boolean;
393
394
  verified: boolean;
395
+ totp_enabled: boolean;
394
396
  last_login: Date | null;
395
397
  created_at: Date;
396
398
  updated_at: Date;
@@ -406,6 +408,7 @@ declare const _default: {
406
408
  };
407
409
  round_border: boolean;
408
410
  verified: boolean;
411
+ totp_enabled: boolean;
409
412
  last_login: Date | null;
410
413
  created_at: Date;
411
414
  updated_at: Date;
@@ -376,6 +376,7 @@ declare const _default: {
376
376
  email: z.ZodString;
377
377
  role: z.ZodNumber;
378
378
  verified: z.ZodBoolean;
379
+ totp_enabled: z.ZodBoolean;
379
380
  last_login: z.ZodNullable<z.ZodDate>;
380
381
  created_at: z.ZodDate;
381
382
  updated_at: z.ZodDate;
@@ -391,6 +392,7 @@ declare const _default: {
391
392
  };
392
393
  round_border: boolean;
393
394
  verified: boolean;
395
+ totp_enabled: boolean;
394
396
  last_login: Date | null;
395
397
  created_at: Date;
396
398
  updated_at: Date;
@@ -406,6 +408,7 @@ declare const _default: {
406
408
  };
407
409
  round_border: boolean;
408
410
  verified: boolean;
411
+ totp_enabled: boolean;
409
412
  last_login: Date | null;
410
413
  created_at: Date;
411
414
  updated_at: Date;
@@ -50,6 +50,7 @@ export declare const userSchema: z.ZodObject<{
50
50
  email: z.ZodString;
51
51
  role: z.ZodNumber;
52
52
  verified: z.ZodBoolean;
53
+ totp_enabled: z.ZodBoolean;
53
54
  last_login: z.ZodNullable<z.ZodDate>;
54
55
  created_at: z.ZodDate;
55
56
  updated_at: z.ZodDate;
@@ -65,6 +66,7 @@ export declare const userSchema: z.ZodObject<{
65
66
  };
66
67
  round_border: boolean;
67
68
  verified: boolean;
69
+ totp_enabled: boolean;
68
70
  last_login: Date | null;
69
71
  created_at: Date;
70
72
  updated_at: Date;
@@ -80,6 +82,7 @@ export declare const userSchema: z.ZodObject<{
80
82
  };
81
83
  round_border: boolean;
82
84
  verified: boolean;
85
+ totp_enabled: boolean;
83
86
  last_login: Date | null;
84
87
  created_at: Date;
85
88
  updated_at: Date;
@@ -18,6 +18,7 @@ export const userSchema = userPublicSchema.extend({
18
18
  email: z.string().email(),
19
19
  role: z.number().int().min(-1, "Invalid level").max(255, "Invalid level"),
20
20
  verified: z.boolean(),
21
+ totp_enabled: z.boolean(),
21
22
  last_login: z.date().nullable(),
22
23
  created_at: z.date(),
23
24
  updated_at: z.date(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darco2903/auth-api",
3
- "version": "2.1.6",
3
+ "version": "2.2.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  "./server": "./dist/server.js"
20
20
  },
21
21
  "dependencies": {
22
- "@darco2903/cdn-api": "^1.1.0",
22
+ "@darco2903/cdn-api": "^1.2.0",
23
23
  "@ts-rest/core": "^3.52.1",
24
24
  "@ts-rest/open-api": "^3.52.1",
25
25
  "jsonwebtoken": "^9.0.3",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/jsonwebtoken": "^9.0.10",
35
- "@types/node": "^25.5.0",
35
+ "@types/node": "^24.12.2",
36
36
  "prettier": "^3.8.1",
37
37
  "rimraf": "^6.1.3",
38
38
  "tsx": "^4.21.0",