@tinyrack/tinyauth-server 0.1.0 → 0.3.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 (80) 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/dist/routes/oauth/.well-known/openid-configuration/get.js +2 -2
  58. package/dist/routes/oauth/.well-known/openid-configuration/get.js.map +1 -1
  59. package/dist/routes/oauth/authorize/get.d.ts.map +1 -1
  60. package/dist/routes/oauth/authorize/get.js +11 -3
  61. package/dist/routes/oauth/authorize/get.js.map +1 -1
  62. package/dist/schemas/error.d.ts +25 -0
  63. package/dist/schemas/error.d.ts.map +1 -1
  64. package/dist/schemas/error.js +1 -0
  65. package/dist/schemas/error.js.map +1 -1
  66. package/dist/services/container.d.ts.map +1 -1
  67. package/dist/services/container.js +1 -1
  68. package/dist/services/container.js.map +1 -1
  69. package/dist/services/oauth-authorize.service.d.ts +6 -1
  70. package/dist/services/oauth-authorize.service.d.ts.map +1 -1
  71. package/dist/services/oauth-authorize.service.js +68 -3
  72. package/dist/services/oauth-authorize.service.js.map +1 -1
  73. package/package.json +28 -28
  74. package/public/assets/index-5_9rzim1.css +2 -0
  75. package/public/assets/index-BTGeW26-.js +75 -0
  76. package/public/assets/index-BTGeW26-.js.map +1 -0
  77. package/public/index.html +2 -2
  78. package/public/assets/index-6odabbrQ.css +0 -1
  79. package/public/assets/index-DaJe6s9D.js +0 -76
  80. package/public/assets/index-DaJe6s9D.js.map +0 -1
@@ -39,31 +39,31 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
39
39
  */
40
40
  readonly kid: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "primary"> & {
41
41
  primary: true;
42
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
42
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
43
43
  /**
44
44
  * RSA Private Key in PEM format
45
45
  * Used for signing tokens (only when status is 'active')
46
46
  */
47
47
  readonly private_key: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "hidden"> & {
48
48
  hidden: true;
49
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
49
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
50
50
  /**
51
51
  * RSA Public Key in PEM format
52
52
  * Used for token verification and exposed via JWKS endpoint
53
53
  */
54
- readonly public_key: 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")>;
54
+ readonly public_key: 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")>;
55
55
  /**
56
56
  * JWT signing algorithm
57
57
  */
58
58
  readonly algorithm: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
59
59
  default: "RS256";
60
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
60
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
61
61
  /**
62
62
  * Key status in rotation lifecycle
63
63
  */
64
64
  readonly status: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<"next" | "previous" | "active" | "retired", Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
65
65
  default: "next";
66
- }, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
66
+ }, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "collation" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef") | "nativeEnumName">, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "collation" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef") | "nativeEnumName">;
67
67
  /**
68
68
  * Timestamp when key was activated (started signing)
69
69
  */
@@ -71,7 +71,7 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
71
71
  nullable: true;
72
72
  }, "default"> & {
73
73
  default: null;
74
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
74
+ }, 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
75
  /**
76
76
  * Timestamp when key was deactivated (stopped signing)
77
77
  */
@@ -79,7 +79,7 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
79
79
  nullable: true;
80
80
  }, "default"> & {
81
81
  default: null;
82
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
82
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
83
83
  /**
84
84
  * Timestamp when key was retired (no longer valid)
85
85
  */
@@ -87,7 +87,7 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
87
87
  nullable: true;
88
88
  }, "default"> & {
89
89
  default: null;
90
- }, 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")>;
91
91
  /**
92
92
  * Scheduled expiration date for automatic rotation
93
93
  */
@@ -95,53 +95,53 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
95
95
  nullable: true;
96
96
  }, "default"> & {
97
97
  default: null;
98
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
98
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
99
99
  }, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
100
100
  readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
101
101
  onCreate: (...args: any[]) => any;
102
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
102
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
103
103
  readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
104
104
  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")>;
106
- }, undefined, never, never, false>, typeof JwtKeyRepository, false>, import("@mikro-orm/core").InferEntityFromProperties<{
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")>;
106
+ }, undefined, never, never, false, undefined, undefined>, typeof JwtKeyRepository, false, undefined, undefined>, import("@mikro-orm/core").InferEntityFromProperties<{
107
107
  readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
108
108
  onCreate: (...args: any[]) => any;
109
- }, 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")>;
110
110
  readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
111
111
  onCreate: (...args: any[]) => any;
112
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
113
- }, undefined, never, never, false>, {
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>, {
114
114
  /**
115
115
  * Key ID (kid) - unique identifier for JWT header
116
116
  * Format: "key-{timestamp}-{random}"
117
117
  */
118
118
  readonly kid: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "primary"> & {
119
119
  primary: true;
120
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
120
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
121
121
  /**
122
122
  * RSA Private Key in PEM format
123
123
  * Used for signing tokens (only when status is 'active')
124
124
  */
125
125
  readonly private_key: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "hidden"> & {
126
126
  hidden: true;
127
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
127
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
128
128
  /**
129
129
  * RSA Public Key in PEM format
130
130
  * Used for token verification and exposed via JWKS endpoint
131
131
  */
132
- readonly public_key: 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")>;
132
+ readonly public_key: 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")>;
133
133
  /**
134
134
  * JWT signing algorithm
135
135
  */
136
136
  readonly algorithm: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
137
137
  default: "RS256";
138
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
138
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
139
139
  /**
140
140
  * Key status in rotation lifecycle
141
141
  */
142
142
  readonly status: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<"next" | "previous" | "active" | "retired", Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
143
143
  default: "next";
144
- }, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
144
+ }, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "collation" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef") | "nativeEnumName">, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "collation" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef") | "nativeEnumName">;
145
145
  /**
146
146
  * Timestamp when key was activated (started signing)
147
147
  */
@@ -149,7 +149,7 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
149
149
  nullable: true;
150
150
  }, "default"> & {
151
151
  default: null;
152
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
152
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
153
153
  /**
154
154
  * Timestamp when key was deactivated (stopped signing)
155
155
  */
@@ -157,7 +157,7 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
157
157
  nullable: true;
158
158
  }, "default"> & {
159
159
  default: null;
160
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
160
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
161
161
  /**
162
162
  * Timestamp when key was retired (no longer valid)
163
163
  */
@@ -165,7 +165,7 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
165
165
  nullable: true;
166
166
  }, "default"> & {
167
167
  default: null;
168
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
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
169
  /**
170
170
  * Scheduled expiration date for automatic rotation
171
171
  */
@@ -173,7 +173,7 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
173
173
  nullable: true;
174
174
  }, "default"> & {
175
175
  default: null;
176
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
176
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
177
177
  }, import("@mikro-orm/core").EntityCtor<import("@mikro-orm/core").InferEntityFromProperties<{
178
178
  /**
179
179
  * Key ID (kid) - unique identifier for JWT header
@@ -181,31 +181,31 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
181
181
  */
182
182
  readonly kid: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "primary"> & {
183
183
  primary: true;
184
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
184
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
185
185
  /**
186
186
  * RSA Private Key in PEM format
187
187
  * Used for signing tokens (only when status is 'active')
188
188
  */
189
189
  readonly private_key: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "hidden"> & {
190
190
  hidden: true;
191
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
191
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
192
192
  /**
193
193
  * RSA Public Key in PEM format
194
194
  * Used for token verification and exposed via JWKS endpoint
195
195
  */
196
- readonly public_key: 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")>;
196
+ readonly public_key: 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")>;
197
197
  /**
198
198
  * JWT signing algorithm
199
199
  */
200
200
  readonly algorithm: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
201
201
  default: "RS256";
202
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
202
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
203
203
  /**
204
204
  * Key status in rotation lifecycle
205
205
  */
206
206
  readonly status: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<"next" | "previous" | "active" | "retired", Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
207
207
  default: "next";
208
- }, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
208
+ }, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "collation" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef") | "nativeEnumName">, "type" | "default" | "ref" | "hidden" | "length" | "serializedPrimaryKey" | "name" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "runtimeType" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "collation" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef") | "nativeEnumName">;
209
209
  /**
210
210
  * Timestamp when key was activated (started signing)
211
211
  */
@@ -213,7 +213,7 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
213
213
  nullable: true;
214
214
  }, "default"> & {
215
215
  default: null;
216
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
216
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
217
217
  /**
218
218
  * Timestamp when key was deactivated (stopped signing)
219
219
  */
@@ -221,7 +221,7 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
221
221
  nullable: true;
222
222
  }, "default"> & {
223
223
  default: null;
224
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
224
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
225
225
  /**
226
226
  * Timestamp when key was retired (no longer valid)
227
227
  */
@@ -229,7 +229,7 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
229
229
  nullable: true;
230
230
  }, "default"> & {
231
231
  default: null;
232
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
232
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
233
233
  /**
234
234
  * Scheduled expiration date for automatic rotation
235
235
  */
@@ -237,15 +237,15 @@ export declare const JwtKeyEntitySchema: import("@mikro-orm/core").EntitySchemaW
237
237
  nullable: true;
238
238
  }, "default"> & {
239
239
  default: null;
240
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
240
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
241
241
  }, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
242
242
  readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
243
243
  onCreate: (...args: any[]) => any;
244
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
244
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
245
245
  readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
246
246
  onCreate: (...args: any[]) => any;
247
- }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
248
- }, undefined, never, never, false>, typeof JwtKeyRepository, false>>>;
247
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
248
+ }, undefined, never, never, false, undefined, undefined>, typeof JwtKeyRepository, false, undefined, undefined>>, undefined>;
249
249
  export type IJwtKeyEntity = InferEntity<typeof JwtKeyEntitySchema>;
250
250
  export declare class JwtKeyEntity extends JwtKeyEntitySchema.class {
251
251
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"jwt-key.entity.d.ts","sourceRoot":"","sources":["../../src/entities/jwt-key.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAGzE;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;IACvB,mCAAmC;;IAEnC,iCAAiC;;IAEjC,qDAAqD;;IAErD,sBAAsB;;CAEd,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB;IAO3B;;;OAGG;;;;IAGH;;;OAGG;;;;IAOH;;;OAGG;;IAGH;;OAEG;;;;IAMH;;OAEG;;;;IAMH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;;;mBA8Bghb,GAAG;;;mBAAH,GAAG;;;;mBAAH,GAAG;;;mBAAH,GAAG;;;IAjGthb;;;OAGG;;;;IAGH;;;OAGG;;;;IAOH;;;OAGG;;IAGH;;OAEG;;;;IAMH;;OAEG;;;;IAMH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;;IAnEH;;;OAGG;;;;IAGH;;;OAGG;;;;IAOH;;;OAGG;;IAGH;;OAEG;;;;IAMH;;OAEG;;;;IAMH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;;;mBA8Bghb,GAAG;;;mBAAH,GAAG;;qEAjBxhb,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,qBAAa,YAAa,SAAQ,kBAAkB,CAAC,KAAK;IACxD;;OAEG;IACH,iBAAiB,IAAI,OAAO;CAM7B"}
1
+ {"version":3,"file":"jwt-key.entity.d.ts","sourceRoot":"","sources":["../../src/entities/jwt-key.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAGzE;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;IACvB,mCAAmC;;IAEnC,iCAAiC;;IAEjC,qDAAqD;;IAErD,sBAAsB;;CAEd,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB;IAO3B;;;OAGG;;;;IAGH;;;OAGG;;;;IAOH;;;OAGG;;IAGH;;OAEG;;;;IAMH;;OAEG;;;;IAMH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;;;mBA8B+5c,GAAG;;;mBAAH,GAAG;;;;mBAAH,GAAG;;;mBAAH,GAAG;;;IAjGr6c;;;OAGG;;;;IAGH;;;OAGG;;;;IAOH;;;OAGG;;IAGH;;OAEG;;;;IAMH;;OAEG;;;;IAMH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;;IAnEH;;;OAGG;;;;IAGH;;;OAGG;;;;IAOH;;;OAGG;;IAGH;;OAEG;;;;IAMH;;OAEG;;;;IAMH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;IAOH;;OAEG;;;;;;;;mBA8B+5c,GAAG;;;mBAAH,GAAG;;4HAjBv6c,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,qBAAa,YAAa,SAAQ,kBAAkB,CAAC,KAAK;IACxD;;OAEG;IACH,iBAAiB,IAAI,OAAO;CAM7B"}