@tinyrack/tinyauth-server 0.1.0 → 0.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.
Files changed (64) hide show
  1. package/dist/emails/components/email-layout.d.ts +1 -1
  2. package/dist/emails/components/email-layout.d.ts.map +1 -1
  3. package/dist/emails/templates/password-reset.d.ts +1 -1
  4. package/dist/emails/templates/password-reset.d.ts.map +1 -1
  5. package/dist/emails/templates/verification.d.ts +1 -1
  6. package/dist/emails/templates/verification.d.ts.map +1 -1
  7. package/dist/entities/background-job.entity.d.ts +42 -42
  8. package/dist/entities/background-job.entity.d.ts.map +1 -1
  9. package/dist/entities/base.entity.d.ts +8 -8
  10. package/dist/entities/base.entity.d.ts.map +1 -1
  11. package/dist/entities/bootstrap-state.entity.d.ts +15 -15
  12. package/dist/entities/bootstrap-state.entity.d.ts.map +1 -1
  13. package/dist/entities/email-verification.entity.d.ts +33 -27
  14. package/dist/entities/email-verification.entity.d.ts.map +1 -1
  15. package/dist/entities/jwt-key.entity.d.ts +36 -36
  16. package/dist/entities/jwt-key.entity.d.ts.map +1 -1
  17. package/dist/entities/oauth-client.entity.d.ts +519 -471
  18. package/dist/entities/oauth-client.entity.d.ts.map +1 -1
  19. package/dist/entities/oauth-code.entity.d.ts +519 -471
  20. package/dist/entities/oauth-code.entity.d.ts.map +1 -1
  21. package/dist/entities/password-reset.entity.d.ts +33 -27
  22. package/dist/entities/password-reset.entity.d.ts.map +1 -1
  23. package/dist/entities/pending-oauth-registration.entity.d.ts +39 -39
  24. package/dist/entities/pending-oauth-registration.entity.d.ts.map +1 -1
  25. package/dist/entities/revoked-token.entity.d.ts +519 -471
  26. package/dist/entities/revoked-token.entity.d.ts.map +1 -1
  27. package/dist/entities/scheduler-job.entity.d.ts +48 -48
  28. package/dist/entities/scheduler-job.entity.d.ts.map +1 -1
  29. package/dist/entities/terms-content.entity.d.ts +279 -249
  30. package/dist/entities/terms-content.entity.d.ts.map +1 -1
  31. package/dist/entities/terms.entity.d.ts +279 -249
  32. package/dist/entities/terms.entity.d.ts.map +1 -1
  33. package/dist/entities/user-consent.entity.d.ts +519 -471
  34. package/dist/entities/user-consent.entity.d.ts.map +1 -1
  35. package/dist/entities/user-oauth.entity.d.ts +36 -30
  36. package/dist/entities/user-oauth.entity.d.ts.map +1 -1
  37. package/dist/entities/user-passkey.entity.d.ts +45 -39
  38. package/dist/entities/user-passkey.entity.d.ts.map +1 -1
  39. package/dist/entities/user-terms-consent.entity.d.ts +279 -249
  40. package/dist/entities/user-terms-consent.entity.d.ts.map +1 -1
  41. package/dist/entities/user-totp-recovery-code.entity.d.ts +177 -159
  42. package/dist/entities/user-totp-recovery-code.entity.d.ts.map +1 -1
  43. package/dist/entities/user-totp.entity.d.ts +177 -159
  44. package/dist/entities/user-totp.entity.d.ts.map +1 -1
  45. package/dist/entities/user.entity.d.ts +177 -159
  46. package/dist/entities/user.entity.d.ts.map +1 -1
  47. package/dist/entrypoints/database/postgres/compiled-functions.js +1 -1
  48. package/dist/entrypoints/database/postgres/compiled-functions.js.map +1 -1
  49. package/dist/entrypoints/database/sqlite/compiled-functions.js +1 -1
  50. package/dist/entrypoints/database/sqlite/compiled-functions.js.map +1 -1
  51. package/dist/repositories/user-passkey.repository.d.ts +45 -39
  52. package/dist/repositories/user-passkey.repository.d.ts.map +1 -1
  53. package/dist/repositories/user-totp-recovery-code.repository.d.ts +118 -106
  54. package/dist/repositories/user-totp-recovery-code.repository.d.ts.map +1 -1
  55. package/dist/repositories/user-totp.repository.d.ts +177 -159
  56. package/dist/repositories/user-totp.repository.d.ts.map +1 -1
  57. package/package.json +28 -28
  58. package/public/assets/index-5_9rzim1.css +2 -0
  59. package/public/assets/index-BTGeW26-.js +75 -0
  60. package/public/assets/index-BTGeW26-.js.map +1 -0
  61. package/public/index.html +2 -2
  62. package/public/assets/index-6odabbrQ.css +0 -1
  63. package/public/assets/index-DaJe6s9D.js +0 -76
  64. package/public/assets/index-DaJe6s9D.js.map +0 -1
@@ -12,48 +12,50 @@ export declare class UserPasskeyRepository extends EntityRepository<IUserPasskey
12
12
  primary: true;
13
13
  } & {
14
14
  onCreate: (...args: any[]) => any;
15
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
16
- readonly user: () => import("@mikro-orm/core").PropertyChain<import("../entities/user.entity.ts").UserEntity, Omit<import("@mikro-orm/core").EmptyOptions & {
15
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
16
+ readonly user: () => import("@mikro-orm/core").PropertyChain<import("../entities/user.entity.ts").UserEntity, Omit<Omit<import("@mikro-orm/core").EmptyOptions & {
17
17
  kind: "m:1";
18
18
  }, "ref"> & {
19
19
  ref: true;
20
+ }, "index"> & {
21
+ index: "user_passkey_user_sub_idx";
20
22
  }>;
21
- readonly credential_id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, import("@mikro-orm/core").EmptyOptions, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
23
+ readonly credential_id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, import("@mikro-orm/core").EmptyOptions, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
22
24
  readonly public_key: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "hidden"> & {
23
25
  hidden: true;
24
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
26
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
25
27
  readonly counter: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<number, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
26
28
  default: 0;
27
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
29
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
28
30
  readonly device_type: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<"singleDevice" | "multiDevice", Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
29
31
  default: "singleDevice";
30
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
32
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
31
33
  readonly backed_up: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
32
34
  default: false;
33
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
35
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
34
36
  readonly transports: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<import("@simplewebauthn/server").AuthenticatorTransportFuture[] | null, Omit<Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
35
37
  nullable: true;
36
38
  }, "default"> & {
37
39
  default: null;
38
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
40
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
39
41
  readonly name: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
40
42
  nullable: true;
41
43
  }, "default"> & {
42
44
  default: null;
43
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
45
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
44
46
  readonly aaguid: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
45
47
  nullable: true;
46
48
  }, "default"> & {
47
49
  default: null;
48
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
50
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
49
51
  }, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
50
52
  readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
51
53
  onCreate: (...args: any[]) => any;
52
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
54
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
53
55
  readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
54
56
  onCreate: (...args: any[]) => any;
55
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
56
- }, undefined, never, never, false>, typeof UserPasskeyRepository, false>, never, never, never>[]>;
57
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
58
+ }, undefined, never, never, false, undefined, undefined>, typeof UserPasskeyRepository, false, undefined, undefined>, never, never, never>[]>;
57
59
  /**
58
60
  * Find a passkey by credential ID
59
61
  *
@@ -65,48 +67,50 @@ export declare class UserPasskeyRepository extends EntityRepository<IUserPasskey
65
67
  primary: true;
66
68
  } & {
67
69
  onCreate: (...args: any[]) => any;
68
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
69
- readonly user: () => import("@mikro-orm/core").PropertyChain<import("../entities/user.entity.ts").UserEntity, Omit<import("@mikro-orm/core").EmptyOptions & {
70
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
71
+ readonly user: () => import("@mikro-orm/core").PropertyChain<import("../entities/user.entity.ts").UserEntity, Omit<Omit<import("@mikro-orm/core").EmptyOptions & {
70
72
  kind: "m:1";
71
73
  }, "ref"> & {
72
74
  ref: true;
75
+ }, "index"> & {
76
+ index: "user_passkey_user_sub_idx";
73
77
  }>;
74
- readonly credential_id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, import("@mikro-orm/core").EmptyOptions, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
78
+ readonly credential_id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, import("@mikro-orm/core").EmptyOptions, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
75
79
  readonly public_key: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "hidden"> & {
76
80
  hidden: true;
77
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
81
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
78
82
  readonly counter: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<number, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
79
83
  default: 0;
80
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
84
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
81
85
  readonly device_type: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<"singleDevice" | "multiDevice", Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
82
86
  default: "singleDevice";
83
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
87
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
84
88
  readonly backed_up: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
85
89
  default: false;
86
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
90
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
87
91
  readonly transports: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<import("@simplewebauthn/server").AuthenticatorTransportFuture[] | null, Omit<Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
88
92
  nullable: true;
89
93
  }, "default"> & {
90
94
  default: null;
91
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
95
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
92
96
  readonly name: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
93
97
  nullable: true;
94
98
  }, "default"> & {
95
99
  default: null;
96
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
100
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
97
101
  readonly aaguid: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
98
102
  nullable: true;
99
103
  }, "default"> & {
100
104
  default: null;
101
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
105
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
102
106
  }, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
103
107
  readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
104
108
  onCreate: (...args: any[]) => any;
105
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
109
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
106
110
  readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
107
111
  onCreate: (...args: any[]) => any;
108
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
109
- }, undefined, never, never, false>, typeof UserPasskeyRepository, false>, "user" | "public_key", never, never> | null>;
112
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
113
+ }, undefined, never, never, false, undefined, undefined>, typeof UserPasskeyRepository, false, undefined, undefined>, "user" | "public_key", never, never> | null>;
110
114
  /**
111
115
  * Find a passkey by ID and user sub
112
116
  *
@@ -119,48 +123,50 @@ export declare class UserPasskeyRepository extends EntityRepository<IUserPasskey
119
123
  primary: true;
120
124
  } & {
121
125
  onCreate: (...args: any[]) => any;
122
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
123
- readonly user: () => import("@mikro-orm/core").PropertyChain<import("../entities/user.entity.ts").UserEntity, Omit<import("@mikro-orm/core").EmptyOptions & {
126
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
127
+ readonly user: () => import("@mikro-orm/core").PropertyChain<import("../entities/user.entity.ts").UserEntity, Omit<Omit<import("@mikro-orm/core").EmptyOptions & {
124
128
  kind: "m:1";
125
129
  }, "ref"> & {
126
130
  ref: true;
131
+ }, "index"> & {
132
+ index: "user_passkey_user_sub_idx";
127
133
  }>;
128
- readonly credential_id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, import("@mikro-orm/core").EmptyOptions, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
134
+ readonly credential_id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, import("@mikro-orm/core").EmptyOptions, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
129
135
  readonly public_key: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "hidden"> & {
130
136
  hidden: true;
131
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
137
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
132
138
  readonly counter: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<number, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
133
139
  default: 0;
134
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
140
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
135
141
  readonly device_type: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<"singleDevice" | "multiDevice", Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
136
142
  default: "singleDevice";
137
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
143
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
138
144
  readonly backed_up: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
139
145
  default: false;
140
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
146
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
141
147
  readonly transports: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<import("@simplewebauthn/server").AuthenticatorTransportFuture[] | null, Omit<Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
142
148
  nullable: true;
143
149
  }, "default"> & {
144
150
  default: null;
145
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
151
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
146
152
  readonly name: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
147
153
  nullable: true;
148
154
  }, "default"> & {
149
155
  default: null;
150
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
156
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
151
157
  readonly aaguid: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
152
158
  nullable: true;
153
159
  }, "default"> & {
154
160
  default: null;
155
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
161
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
156
162
  }, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
157
163
  readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
158
164
  onCreate: (...args: any[]) => any;
159
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
165
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
160
166
  readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
161
167
  onCreate: (...args: any[]) => any;
162
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
163
- }, undefined, never, never, false>, typeof UserPasskeyRepository, false>, never, never, never> | null>;
168
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
169
+ }, undefined, never, never, false, undefined, undefined>, typeof UserPasskeyRepository, false, undefined, undefined>, never, never, never> | null>;
164
170
  /**
165
171
  * Count passkeys for a user
166
172
  *
@@ -1 +1 @@
1
- {"version":3,"file":"user-passkey.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/user-passkey.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,qBAAa,qBAAsB,SAAQ,gBAAgB,CAAC,kBAAkB,CAAC;IAC7E;;;;;OAKG;IACG,aAAa,CAAC,OAAO,EAAE,MAAM;;;;uBA+Dywe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAH,GAAG;;;uBAAH,GAAG;;;IAxD/ye;;;;;OAKG;IACG,kBAAkB,CAAC,YAAY,EAAE,MAAM;;;;uBAkD+ve,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAH,GAAG;;;uBAAH,GAAG;;;IA3C/ye;;;;;;OAMG;IACG,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;uBAoCive,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAH,GAAG;;;uBAAH,GAAG;;;IAhC/ye;;;;;OAKG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM;IAIpC;;;;;;OAMG;IACG,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAI7D;;;;;OAKG;IACG,oBAAoB,CAAC,YAAY,EAAE,MAAM;CAIhD"}
1
+ {"version":3,"file":"user-passkey.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/user-passkey.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,qBAAa,qBAAsB,SAAQ,gBAAgB,CAAC,kBAAkB,CAAC;IAC7E;;;;;OAKG;IACG,aAAa,CAAC,OAAO,EAAE,MAAM;;;;uBA+DwpgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAH,GAAG;;;uBAAH,GAAG;;;IAxD9rgB;;;;;OAKG;IACG,kBAAkB,CAAC,YAAY,EAAE,MAAM;;;;uBAkD8ogB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAH,GAAG;;;uBAAH,GAAG;;;IA3C9rgB;;;;;;OAMG;IACG,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;uBAoCgogB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAH,GAAG;;;uBAAH,GAAG;;;IAhC9rgB;;;;;OAKG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM;IAIpC;;;;;;OAMG;IACG,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAI7D;;;;;OAKG;IACG,oBAAoB,CAAC,YAAY,EAAE,MAAM;CAIhD"}