@tinyrack/tinyauth-server 0.4.0 → 0.5.1

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 (188) hide show
  1. package/dist/entities/background-job.entity.d.ts.map +1 -1
  2. package/dist/entities/background-job.entity.js +15 -3
  3. package/dist/entities/background-job.entity.js.map +1 -1
  4. package/dist/entities/oauth-client.entity.d.ts +156 -0
  5. package/dist/entities/oauth-client.entity.d.ts.map +1 -1
  6. package/dist/entities/oauth-client.entity.js +14 -0
  7. package/dist/entities/oauth-client.entity.js.map +1 -1
  8. package/dist/entities/oauth-code.entity.d.ts +156 -0
  9. package/dist/entities/oauth-code.entity.d.ts.map +1 -1
  10. package/dist/entities/oauth-device-code.entity.d.ts +1746 -0
  11. package/dist/entities/oauth-device-code.entity.d.ts.map +1 -0
  12. package/dist/entities/oauth-device-code.entity.js +61 -0
  13. package/dist/entities/oauth-device-code.entity.js.map +1 -0
  14. package/dist/entities/revoked-token.entity.d.ts +156 -0
  15. package/dist/entities/revoked-token.entity.d.ts.map +1 -1
  16. package/dist/entities/scheduler-job.entity.d.ts.map +1 -1
  17. package/dist/entities/scheduler-job.entity.js +10 -2
  18. package/dist/entities/scheduler-job.entity.js.map +1 -1
  19. package/dist/entities/user-consent.entity.d.ts +156 -0
  20. package/dist/entities/user-consent.entity.d.ts.map +1 -1
  21. package/dist/entities/user-oauth.entity.d.ts.map +1 -1
  22. package/dist/entities/user-oauth.entity.js +2 -1
  23. package/dist/entities/user-oauth.entity.js.map +1 -1
  24. package/dist/entrypoints/app.d.ts +127 -19
  25. package/dist/entrypoints/app.d.ts.map +1 -1
  26. package/dist/entrypoints/app.js +72 -5
  27. package/dist/entrypoints/app.js.map +1 -1
  28. package/dist/entrypoints/database/postgres/cli.js +5 -5
  29. package/dist/entrypoints/database/postgres/cli.js.map +1 -1
  30. package/dist/entrypoints/database/postgres/compiled-functions.d.ts +149 -94
  31. package/dist/entrypoints/database/postgres/compiled-functions.d.ts.map +1 -1
  32. package/dist/entrypoints/database/postgres/compiled-functions.js +911 -122
  33. package/dist/entrypoints/database/postgres/compiled-functions.js.map +1 -1
  34. package/dist/entrypoints/database/sqlite/cli.js +2 -2
  35. package/dist/entrypoints/database/sqlite/cli.js.map +1 -1
  36. package/dist/entrypoints/database/sqlite/compiled-functions.d.ts +149 -94
  37. package/dist/entrypoints/database/sqlite/compiled-functions.d.ts.map +1 -1
  38. package/dist/entrypoints/database/sqlite/compiled-functions.js +911 -122
  39. package/dist/entrypoints/database/sqlite/compiled-functions.js.map +1 -1
  40. package/dist/lib/config/client.d.ts +10 -0
  41. package/dist/lib/config/client.d.ts.map +1 -1
  42. package/dist/lib/config/client.js +66 -2
  43. package/dist/lib/config/client.js.map +1 -1
  44. package/dist/lib/config/resolved.d.ts +5 -0
  45. package/dist/lib/config/resolved.d.ts.map +1 -1
  46. package/dist/lib/config/security.d.ts.map +1 -1
  47. package/dist/lib/config/security.js +25 -2
  48. package/dist/lib/config/security.js.map +1 -1
  49. package/dist/lib/crypto.d.ts.map +1 -1
  50. package/dist/lib/crypto.js +11 -1
  51. package/dist/lib/crypto.js.map +1 -1
  52. package/dist/lib/database/entities.d.ts.map +1 -1
  53. package/dist/lib/database/entities.js +2 -0
  54. package/dist/lib/database/entities.js.map +1 -1
  55. package/dist/lib/escape-html.d.ts +7 -0
  56. package/dist/lib/escape-html.d.ts.map +1 -0
  57. package/dist/lib/escape-html.js +14 -0
  58. package/dist/lib/escape-html.js.map +1 -0
  59. package/dist/migrations/postgres/Migration20260619075007.d.ts +6 -0
  60. package/dist/migrations/postgres/Migration20260619075007.d.ts.map +1 -0
  61. package/dist/migrations/postgres/Migration20260619075007.js +86 -0
  62. package/dist/migrations/postgres/Migration20260619075007.js.map +1 -0
  63. package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.d.ts +6 -0
  64. package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.d.ts.map +1 -0
  65. package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.js +12 -0
  66. package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.js.map +1 -0
  67. package/dist/migrations/postgres/Migration20260620025358_add_oauth_client_skip_consent.d.ts +6 -0
  68. package/dist/migrations/postgres/Migration20260620025358_add_oauth_client_skip_consent.d.ts.map +1 -0
  69. package/dist/migrations/postgres/Migration20260620025358_add_oauth_client_skip_consent.js +11 -0
  70. package/dist/migrations/postgres/Migration20260620025358_add_oauth_client_skip_consent.js.map +1 -0
  71. package/dist/migrations/postgres/index.d.ts.map +1 -1
  72. package/dist/migrations/postgres/index.js +6 -0
  73. package/dist/migrations/postgres/index.js.map +1 -1
  74. package/dist/migrations/sqlite/Migration20260619075330.d.ts +6 -0
  75. package/dist/migrations/sqlite/Migration20260619075330.d.ts.map +1 -0
  76. package/dist/migrations/sqlite/Migration20260619075330.js +57 -0
  77. package/dist/migrations/sqlite/Migration20260619075330.js.map +1 -0
  78. package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.d.ts +6 -0
  79. package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.d.ts.map +1 -0
  80. package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.js +12 -0
  81. package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.js.map +1 -0
  82. package/dist/migrations/sqlite/Migration20260620025358_add_oauth_client_skip_consent.d.ts +6 -0
  83. package/dist/migrations/sqlite/Migration20260620025358_add_oauth_client_skip_consent.d.ts.map +1 -0
  84. package/dist/migrations/sqlite/Migration20260620025358_add_oauth_client_skip_consent.js +10 -0
  85. package/dist/migrations/sqlite/Migration20260620025358_add_oauth_client_skip_consent.js.map +1 -0
  86. package/dist/migrations/sqlite/index.d.ts.map +1 -1
  87. package/dist/migrations/sqlite/index.js +6 -0
  88. package/dist/migrations/sqlite/index.js.map +1 -1
  89. package/dist/repositories/oauth-device-code.repository.d.ts +20 -0
  90. package/dist/repositories/oauth-device-code.repository.d.ts.map +1 -0
  91. package/dist/repositories/oauth-device-code.repository.js +55 -0
  92. package/dist/repositories/oauth-device-code.repository.js.map +1 -0
  93. package/dist/routes/.well-known/index.d.ts +29 -3
  94. package/dist/routes/.well-known/index.d.ts.map +1 -1
  95. package/dist/routes/.well-known/openid-configuration/get.d.ts +30 -4
  96. package/dist/routes/.well-known/openid-configuration/get.d.ts.map +1 -1
  97. package/dist/routes/.well-known/openid-configuration/get.js +5 -2
  98. package/dist/routes/.well-known/openid-configuration/get.js.map +1 -1
  99. package/dist/routes/index.d.ts +123 -18
  100. package/dist/routes/index.d.ts.map +1 -1
  101. package/dist/routes/oauth/.well-known/openid-configuration/get.d.ts +33 -0
  102. package/dist/routes/oauth/.well-known/openid-configuration/get.d.ts.map +1 -1
  103. package/dist/routes/oauth/.well-known/openid-configuration/get.js +78 -44
  104. package/dist/routes/oauth/.well-known/openid-configuration/get.js.map +1 -1
  105. package/dist/routes/oauth/authorize/get.d.ts +8 -26
  106. package/dist/routes/oauth/authorize/get.d.ts.map +1 -1
  107. package/dist/routes/oauth/authorize/get.js +34 -3
  108. package/dist/routes/oauth/authorize/get.js.map +1 -1
  109. package/dist/routes/oauth/cors.d.ts +9 -0
  110. package/dist/routes/oauth/cors.d.ts.map +1 -0
  111. package/dist/routes/oauth/cors.js +50 -0
  112. package/dist/routes/oauth/cors.js.map +1 -0
  113. package/dist/routes/oauth/device/get-post.d.ts +28 -0
  114. package/dist/routes/oauth/device/get-post.d.ts.map +1 -0
  115. package/dist/routes/oauth/device/get-post.js +67 -0
  116. package/dist/routes/oauth/device/get-post.js.map +1 -0
  117. package/dist/routes/oauth/device-authorization/post.d.ts +25 -0
  118. package/dist/routes/oauth/device-authorization/post.d.ts.map +1 -0
  119. package/dist/routes/oauth/device-authorization/post.js +87 -0
  120. package/dist/routes/oauth/device-authorization/post.js.map +1 -0
  121. package/dist/routes/oauth/end-session/get.d.ts +34 -0
  122. package/dist/routes/oauth/end-session/get.d.ts.map +1 -0
  123. package/dist/routes/oauth/end-session/get.js +74 -0
  124. package/dist/routes/oauth/end-session/get.js.map +1 -0
  125. package/dist/routes/oauth/index.d.ts +95 -16
  126. package/dist/routes/oauth/index.d.ts.map +1 -1
  127. package/dist/routes/oauth/index.js +8 -0
  128. package/dist/routes/oauth/index.js.map +1 -1
  129. package/dist/routes/oauth/introspect/post.d.ts.map +1 -1
  130. package/dist/routes/oauth/introspect/post.js +2 -0
  131. package/dist/routes/oauth/introspect/post.js.map +1 -1
  132. package/dist/routes/oauth/revoke/post.d.ts.map +1 -1
  133. package/dist/routes/oauth/revoke/post.js +2 -0
  134. package/dist/routes/oauth/revoke/post.js.map +1 -1
  135. package/dist/routes/oauth/token/post.d.ts +2 -0
  136. package/dist/routes/oauth/token/post.d.ts.map +1 -1
  137. package/dist/routes/oauth/token/post.js +46 -0
  138. package/dist/routes/oauth/token/post.js.map +1 -1
  139. package/dist/routes/oauth/userinfo/get.d.ts +16 -4
  140. package/dist/routes/oauth/userinfo/get.d.ts.map +1 -1
  141. package/dist/routes/oauth/userinfo/get.js +50 -30
  142. package/dist/routes/oauth/userinfo/get.js.map +1 -1
  143. package/dist/schemas/error.d.ts +100 -0
  144. package/dist/schemas/error.d.ts.map +1 -1
  145. package/dist/schemas/error.js +4 -0
  146. package/dist/schemas/error.js.map +1 -1
  147. package/dist/schemas/field.d.ts +2 -0
  148. package/dist/schemas/field.d.ts.map +1 -1
  149. package/dist/schemas/field.js +6 -1
  150. package/dist/schemas/field.js.map +1 -1
  151. package/dist/schemas/response.d.ts +3 -0
  152. package/dist/schemas/response.d.ts.map +1 -1
  153. package/dist/schemas/response.js +7 -0
  154. package/dist/schemas/response.js.map +1 -1
  155. package/dist/seeders/config.seeder.js +3 -0
  156. package/dist/seeders/config.seeder.js.map +1 -1
  157. package/dist/services/container.d.ts +4 -1
  158. package/dist/services/container.d.ts.map +1 -1
  159. package/dist/services/jwt.service.d.ts +4 -0
  160. package/dist/services/jwt.service.d.ts.map +1 -1
  161. package/dist/services/jwt.service.js +27 -6
  162. package/dist/services/jwt.service.js.map +1 -1
  163. package/dist/services/mikro.service.d.ts +2 -0
  164. package/dist/services/mikro.service.d.ts.map +1 -1
  165. package/dist/services/mikro.service.js +3 -0
  166. package/dist/services/mikro.service.js.map +1 -1
  167. package/dist/services/oauth-authorize.service.d.ts +9 -1
  168. package/dist/services/oauth-authorize.service.d.ts.map +1 -1
  169. package/dist/services/oauth-authorize.service.js +110 -17
  170. package/dist/services/oauth-authorize.service.js.map +1 -1
  171. package/dist/services/oauth-client.service.d.ts +3 -0
  172. package/dist/services/oauth-client.service.d.ts.map +1 -1
  173. package/dist/services/oauth-client.service.js +17 -0
  174. package/dist/services/oauth-client.service.js.map +1 -1
  175. package/dist/services/oauth-token.service.d.ts +11 -0
  176. package/dist/services/oauth-token.service.d.ts.map +1 -1
  177. package/dist/services/oauth-token.service.js +69 -1
  178. package/dist/services/oauth-token.service.js.map +1 -1
  179. package/dist/services/security.service.d.ts +1 -1
  180. package/dist/services/security.service.d.ts.map +1 -1
  181. package/dist/services/security.service.js +2 -0
  182. package/dist/services/security.service.js.map +1 -1
  183. package/dist/services/user-consent.service.d.ts +1 -0
  184. package/dist/services/user-consent.service.d.ts.map +1 -1
  185. package/dist/services/user-consent.service.js +4 -1
  186. package/dist/services/user-consent.service.js.map +1 -1
  187. package/package.json +3 -3
  188. package/readme.md +5 -1
@@ -222,9 +222,18 @@ export declare const UserConsentEntitySchema: import("@mikro-orm/core").EntitySc
222
222
  readonly redirectUris: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
223
223
  default: never[];
224
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
+ readonly postLogoutRedirectUris: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
226
+ default: never[];
227
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
228
+ readonly webOrigins: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
229
+ default: never[];
230
+ }, 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
231
  readonly enabled: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
226
232
  default: true;
227
233
  }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
234
+ readonly skipConsent: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
235
+ default: false;
236
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
228
237
  readonly managed_by: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<"database" | "config", Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
229
238
  default: "database";
230
239
  }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
@@ -283,6 +292,49 @@ export declare const UserConsentEntitySchema: import("@mikro-orm/core").EntitySc
283
292
  }, undefined, never, never, false, undefined, undefined>, typeof import("../repositories/oauth-code.repository.ts").OAuthCodeRepository, false, undefined, undefined>, import("@mikro-orm/core").EmptyOptions & {
284
293
  kind: "1:m";
285
294
  }>;
295
+ readonly deviceCodes: () => import("@mikro-orm/core").PropertyChain<import("@mikro-orm/core").InferEntityFromProperties<{
296
+ readonly id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "primary"> & {
297
+ primary: true;
298
+ } & {
299
+ onCreate: (...args: any[]) => any;
300
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
301
+ readonly deviceCodeHash: 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")>;
302
+ readonly userCodeHash: 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")>;
303
+ readonly client: () => import("@mikro-orm/core").PropertyChain<import("@mikro-orm/core").InferEntityFromProperties</*elided*/ any, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
304
+ readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
305
+ onCreate: (...args: any[]) => any;
306
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
307
+ readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
308
+ onCreate: (...args: any[]) => any;
309
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
310
+ }, undefined, never, never, false, undefined, undefined>, typeof import("../repositories/oauth-client.repository.ts").OAuthClientRepository, false, undefined, undefined>, import("@mikro-orm/core").EmptyOptions & {
311
+ kind: "m:1";
312
+ }>;
313
+ readonly scope: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
314
+ default: never[];
315
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
316
+ readonly expiresAt: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, 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")>;
317
+ readonly authorizedUser: () => import("@mikro-orm/core").PropertyChain<import("./user.entity.ts").UserEntity, Omit<import("@mikro-orm/core").EmptyOptions & {
318
+ kind: "m:1";
319
+ }, "nullable"> & {
320
+ nullable: true;
321
+ }>;
322
+ readonly authorizedAt: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
323
+ nullable: true;
324
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
325
+ readonly consumedAt: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
326
+ nullable: true;
327
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
328
+ }, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
329
+ readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
330
+ onCreate: (...args: any[]) => any;
331
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
332
+ readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
333
+ onCreate: (...args: any[]) => any;
334
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
335
+ }, undefined, never, never, false, undefined, undefined>, typeof import("../repositories/oauth-device-code.repository.ts").OAuthDeviceCodeRepository, false, undefined, undefined>, import("@mikro-orm/core").EmptyOptions & {
336
+ kind: "1:m";
337
+ }>;
286
338
  readonly consents: () => import("@mikro-orm/core").PropertyChain<import("@mikro-orm/core").InferEntityFromProperties</*elided*/ any, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
287
339
  readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
288
340
  onCreate: (...args: any[]) => any;
@@ -757,9 +809,18 @@ export declare const UserConsentEntitySchema: import("@mikro-orm/core").EntitySc
757
809
  readonly redirectUris: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
758
810
  default: never[];
759
811
  }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
812
+ readonly postLogoutRedirectUris: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
813
+ default: never[];
814
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
815
+ readonly webOrigins: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
816
+ default: never[];
817
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
760
818
  readonly enabled: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
761
819
  default: true;
762
820
  }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
821
+ readonly skipConsent: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
822
+ default: false;
823
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
763
824
  readonly managed_by: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<"database" | "config", Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
764
825
  default: "database";
765
826
  }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
@@ -818,6 +879,49 @@ export declare const UserConsentEntitySchema: import("@mikro-orm/core").EntitySc
818
879
  }, undefined, never, never, false, undefined, undefined>, typeof import("../repositories/oauth-code.repository.ts").OAuthCodeRepository, false, undefined, undefined>, import("@mikro-orm/core").EmptyOptions & {
819
880
  kind: "1:m";
820
881
  }>;
882
+ readonly deviceCodes: () => import("@mikro-orm/core").PropertyChain<import("@mikro-orm/core").InferEntityFromProperties<{
883
+ readonly id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "primary"> & {
884
+ primary: true;
885
+ } & {
886
+ onCreate: (...args: any[]) => any;
887
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
888
+ readonly deviceCodeHash: 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")>;
889
+ readonly userCodeHash: 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")>;
890
+ readonly client: () => import("@mikro-orm/core").PropertyChain<import("@mikro-orm/core").InferEntityFromProperties</*elided*/ any, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
891
+ readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
892
+ onCreate: (...args: any[]) => any;
893
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
894
+ readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
895
+ onCreate: (...args: any[]) => any;
896
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
897
+ }, undefined, never, never, false, undefined, undefined>, typeof import("../repositories/oauth-client.repository.ts").OAuthClientRepository, false, undefined, undefined>, import("@mikro-orm/core").EmptyOptions & {
898
+ kind: "m:1";
899
+ }>;
900
+ readonly scope: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
901
+ default: never[];
902
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
903
+ readonly expiresAt: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, 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")>;
904
+ readonly authorizedUser: () => import("@mikro-orm/core").PropertyChain<import("./user.entity.ts").UserEntity, Omit<import("@mikro-orm/core").EmptyOptions & {
905
+ kind: "m:1";
906
+ }, "nullable"> & {
907
+ nullable: true;
908
+ }>;
909
+ readonly authorizedAt: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
910
+ nullable: true;
911
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
912
+ readonly consumedAt: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
913
+ nullable: true;
914
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
915
+ }, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
916
+ readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
917
+ onCreate: (...args: any[]) => any;
918
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
919
+ readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
920
+ onCreate: (...args: any[]) => any;
921
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
922
+ }, undefined, never, never, false, undefined, undefined>, typeof import("../repositories/oauth-device-code.repository.ts").OAuthDeviceCodeRepository, false, undefined, undefined>, import("@mikro-orm/core").EmptyOptions & {
923
+ kind: "1:m";
924
+ }>;
821
925
  readonly consents: () => import("@mikro-orm/core").PropertyChain<import("@mikro-orm/core").InferEntityFromProperties</*elided*/ any, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
822
926
  readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
823
927
  onCreate: (...args: any[]) => any;
@@ -1278,9 +1382,18 @@ export declare const UserConsentEntitySchema: import("@mikro-orm/core").EntitySc
1278
1382
  readonly redirectUris: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
1279
1383
  default: never[];
1280
1384
  }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1385
+ readonly postLogoutRedirectUris: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
1386
+ default: never[];
1387
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1388
+ readonly webOrigins: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
1389
+ default: never[];
1390
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1281
1391
  readonly enabled: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
1282
1392
  default: true;
1283
1393
  }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1394
+ readonly skipConsent: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
1395
+ default: false;
1396
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1284
1397
  readonly managed_by: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<"database" | "config", Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
1285
1398
  default: "database";
1286
1399
  }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
@@ -1339,6 +1452,49 @@ export declare const UserConsentEntitySchema: import("@mikro-orm/core").EntitySc
1339
1452
  }, undefined, never, never, false, undefined, undefined>, typeof import("../repositories/oauth-code.repository.ts").OAuthCodeRepository, false, undefined, undefined>, import("@mikro-orm/core").EmptyOptions & {
1340
1453
  kind: "1:m";
1341
1454
  }>;
1455
+ readonly deviceCodes: () => import("@mikro-orm/core").PropertyChain<import("@mikro-orm/core").InferEntityFromProperties<{
1456
+ readonly id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "primary"> & {
1457
+ primary: true;
1458
+ } & {
1459
+ onCreate: (...args: any[]) => any;
1460
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1461
+ readonly deviceCodeHash: 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")>;
1462
+ readonly userCodeHash: 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")>;
1463
+ readonly client: () => import("@mikro-orm/core").PropertyChain<import("@mikro-orm/core").InferEntityFromProperties</*elided*/ any, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
1464
+ readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
1465
+ onCreate: (...args: any[]) => any;
1466
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1467
+ readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
1468
+ onCreate: (...args: any[]) => any;
1469
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1470
+ }, undefined, never, never, false, undefined, undefined>, typeof import("../repositories/oauth-client.repository.ts").OAuthClientRepository, false, undefined, undefined>, import("@mikro-orm/core").EmptyOptions & {
1471
+ kind: "m:1";
1472
+ }>;
1473
+ readonly scope: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string[], Omit<import("@mikro-orm/core").EmptyOptions, "default"> & {
1474
+ default: never[];
1475
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1476
+ readonly expiresAt: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, 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")>;
1477
+ readonly authorizedUser: () => import("@mikro-orm/core").PropertyChain<import("./user.entity.ts").UserEntity, Omit<import("@mikro-orm/core").EmptyOptions & {
1478
+ kind: "m:1";
1479
+ }, "nullable"> & {
1480
+ nullable: true;
1481
+ }>;
1482
+ readonly authorizedAt: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
1483
+ nullable: true;
1484
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1485
+ readonly consumedAt: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, Omit<import("@mikro-orm/core").EmptyOptions, "nullable"> & {
1486
+ nullable: true;
1487
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1488
+ }, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
1489
+ readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
1490
+ onCreate: (...args: any[]) => any;
1491
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1492
+ readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
1493
+ onCreate: (...args: any[]) => any;
1494
+ }, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable" | "lazyRef")>;
1495
+ }, undefined, never, never, false, undefined, undefined>, typeof import("../repositories/oauth-device-code.repository.ts").OAuthDeviceCodeRepository, false, undefined, undefined>, import("@mikro-orm/core").EmptyOptions & {
1496
+ kind: "1:m";
1497
+ }>;
1342
1498
  readonly consents: () => import("@mikro-orm/core").PropertyChain<import("@mikro-orm/core").InferEntityFromProperties</*elided*/ any, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
1343
1499
  readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
1344
1500
  onCreate: (...args: any[]) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"user-consent.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user-consent.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAKnF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;;mBA0Dg1f,GAAG;;;;;;uBAAH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAAH,GAAG;;;2BAAH,GAAG;;;;;;;;;2BAAH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAAH,GAAG;;;2BAAH,GAAG;;;;;;;;;2BAAH,GAAG;;;;+BAAH,GAAG;;;+BAAH,GAAG;;;;;;;;;;;;;;;;2BAAH,GAAG;;;2BAAH,GAAG;;;;;;;;;2BAAH,GAAG;;;;+BAAH,GAAG;;;+BAAH,GAAG;;;;;;;;;;;;;;;;;;2BAAH,GAAG;;;2BAAH,GAAG;;;;;;;uBAAH,GAAG;;;uBAAH,GAAG;;;;;;;;;;;uBAAH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAAH,GAAG;;;;;+BAAH,GAAG;;;+BAAH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAAH,GAAG;;;2BAAH,GAAG;;;;;;;2BAAH,GAAG;;;2BAAH,GAAG;;;;;;;;;2BAAH,GAAG;;;;;;+BAAH,G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;;;;;;;;;;;;;mBAAH,GAAG;;;mBAAH,GAAG;;+HAHlphB,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"user-oauth.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user-oauth.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;mBA4C0lhB,GAAG;;;mBAAH,GAAG;;;;mBAAH,GAAG;;;mBAAH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAH,GAAG;;;mBAAH,GAAG;;+HAH7nhB,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -5,7 +5,6 @@ import { UserEntity } from "./user.entity.js";
5
5
  export const UserOAuthEntitySchema = defineEntity({
6
6
  name: 'UserOAuthEntity',
7
7
  tableName: 'user_oauth',
8
- comment: 'OAuth accounts linked to users',
9
8
  extends: BaseSchema,
10
9
  repository: () => UserOAuthRepository,
11
10
  properties: (p) => ({
@@ -13,6 +12,8 @@ export const UserOAuthEntitySchema = defineEntity({
13
12
  user: () => p
14
13
  .manyToOne(UserEntity)
15
14
  .ref()
15
+ .deleteRule('no action')
16
+ .updateRule('no action')
16
17
  .comment('Reference to the user')
17
18
  .index('user_oauth_user_sub_idx'),
18
19
  provider_name: p
@@ -1 +1 @@
1
- {"version":3,"file":"user-oauth.entity.js","sourceRoot":"","sources":["../../src/entities/user-oauth.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,GAGb,MAAM,iBAAiB,CAAC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E;aACV,OAAO,CAAC,+BAA+B,CAAC;aACxC,QAAQ,EAAE;aACV,KAAK,EAA0B;KACnC,CAAC;IACF,OAAO,EAAE;QACP;YACE,IAAI,EAAE,4BAA4B;YAClC,UAAU,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC;SAClD;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,8BAA8B;YACpC,UAAU,EAAE,CAAC,MAAM,EAAE,eAAe,CAAC;SACtC;KACF;CACF,CAAC,CAAC"}
@@ -985,6 +985,74 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
985
985
  max_age?: string | string[];
986
986
  reauthenticated?: string | string[];
987
987
  display?: string | string[];
988
+ response_mode?: string | string[];
989
+ login_hint?: string | string[];
990
+ ui_locales?: string | string[];
991
+ id_token_hint?: string | string[];
992
+ acr_values?: string | string[];
993
+ };
994
+ };
995
+ output: {};
996
+ outputFormat: string;
997
+ status: import("hono/utils/http-status").StatusCode;
998
+ };
999
+ };
1000
+ }, "/"> | import("hono/types").MergeSchemaPath<{
1001
+ "/device_authorization": {
1002
+ $post: {
1003
+ input: {
1004
+ form: {
1005
+ client_id?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
1006
+ client_secret?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
1007
+ scope?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
1008
+ };
1009
+ };
1010
+ output: {
1011
+ device_code: string;
1012
+ user_code: string;
1013
+ verification_uri: string;
1014
+ verification_uri_complete: string;
1015
+ expires_in: number;
1016
+ interval: number;
1017
+ };
1018
+ outputFormat: "json";
1019
+ status: 200;
1020
+ };
1021
+ };
1022
+ }, "/"> | import("hono/types").MergeSchemaPath<{
1023
+ "/device": {
1024
+ $get: {
1025
+ input: {};
1026
+ output: {};
1027
+ outputFormat: string;
1028
+ status: import("hono/utils/http-status").StatusCode;
1029
+ };
1030
+ };
1031
+ } & {
1032
+ "/device": {
1033
+ $post: {
1034
+ input: {
1035
+ form: {
1036
+ user_code: string;
1037
+ };
1038
+ };
1039
+ output: {
1040
+ status: string;
1041
+ client_id: string;
1042
+ };
1043
+ outputFormat: "json";
1044
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1045
+ };
1046
+ };
1047
+ }, "/"> | import("hono/types").MergeSchemaPath<{
1048
+ "/end_session": {
1049
+ $get: {
1050
+ input: {
1051
+ query: {
1052
+ client_id?: string | string[];
1053
+ post_logout_redirect_uri?: string | string[];
1054
+ id_token_hint?: string | string[];
1055
+ state?: string | string[];
988
1056
  };
989
1057
  };
990
1058
  output: undefined;
@@ -993,18 +1061,10 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
993
1061
  } | {
994
1062
  input: {
995
1063
  query: {
996
- response_type: string | string[];
997
- redirect_uri: string | string[];
998
- client_id: string | string[];
1064
+ client_id?: string | string[];
1065
+ post_logout_redirect_uri?: string | string[];
1066
+ id_token_hint?: string | string[];
999
1067
  state?: string | string[];
1000
- code_challenge?: string | string[];
1001
- code_challenge_method?: string | string[];
1002
- scope?: string | string[];
1003
- nonce?: string | string[];
1004
- prompt?: string | string[];
1005
- max_age?: string | string[];
1006
- reauthenticated?: string | string[];
1007
- display?: string | string[];
1008
1068
  };
1009
1069
  };
1010
1070
  output: {
@@ -1027,6 +1087,8 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
1027
1087
  client_secret?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
1028
1088
  code_verifier?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
1029
1089
  refresh_token?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
1090
+ scope?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
1091
+ device_code?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
1030
1092
  };
1031
1093
  };
1032
1094
  output: {
@@ -1086,11 +1148,23 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
1086
1148
  }, "/"> | import("hono/types").MergeSchemaPath<{
1087
1149
  "/userinfo": {
1088
1150
  $get: {
1089
- input: {
1090
- header: {
1091
- authorization?: string;
1092
- };
1151
+ input: {};
1152
+ output: {
1153
+ sub: string;
1154
+ email?: string | undefined;
1155
+ email_verified?: boolean | undefined;
1156
+ name?: string | undefined;
1157
+ picture?: string | undefined;
1158
+ preferred_username?: string | undefined;
1093
1159
  };
1160
+ outputFormat: "json";
1161
+ status: 200;
1162
+ };
1163
+ };
1164
+ } & {
1165
+ "/userinfo": {
1166
+ $post: {
1167
+ input: {};
1094
1168
  output: {
1095
1169
  sub: string;
1096
1170
  email?: string | undefined;
@@ -1137,14 +1211,19 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
1137
1211
  response_modes_supported: string[];
1138
1212
  subject_types_supported: string[];
1139
1213
  id_token_signing_alg_values_supported: string[];
1214
+ userinfo_signing_alg_values_supported: string[];
1140
1215
  userinfo_endpoint: string;
1141
1216
  scopes_supported: string[];
1142
1217
  claims_supported: string[];
1143
1218
  grant_types_supported: string[];
1144
1219
  token_endpoint_auth_methods_supported: string[];
1220
+ introspection_endpoint_auth_methods_supported: string[];
1221
+ revocation_endpoint_auth_methods_supported: string[];
1145
1222
  code_challenge_methods_supported: string[];
1146
1223
  introspection_endpoint: string;
1147
1224
  revocation_endpoint: string;
1225
+ end_session_endpoint: string;
1226
+ device_authorization_endpoint: string;
1148
1227
  ui_locales_supported: ("en" | "ko" | "ja")[];
1149
1228
  request_parameter_supported: boolean;
1150
1229
  request_uri_parameter_supported: boolean;
@@ -1158,9 +1237,35 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
1158
1237
  "/openid-configuration": {
1159
1238
  $get: {
1160
1239
  input: {};
1161
- output: undefined;
1162
- outputFormat: "redirect";
1163
- status: 302;
1240
+ output: {
1241
+ issuer: string;
1242
+ authorization_endpoint: string;
1243
+ token_endpoint: string;
1244
+ jwks_uri: string;
1245
+ response_types_supported: string[];
1246
+ response_modes_supported: string[];
1247
+ subject_types_supported: string[];
1248
+ id_token_signing_alg_values_supported: string[];
1249
+ userinfo_signing_alg_values_supported: string[];
1250
+ userinfo_endpoint: string;
1251
+ scopes_supported: string[];
1252
+ claims_supported: string[];
1253
+ grant_types_supported: string[];
1254
+ token_endpoint_auth_methods_supported: string[];
1255
+ introspection_endpoint_auth_methods_supported: string[];
1256
+ revocation_endpoint_auth_methods_supported: string[];
1257
+ code_challenge_methods_supported: string[];
1258
+ introspection_endpoint: string;
1259
+ revocation_endpoint: string;
1260
+ end_session_endpoint: string;
1261
+ device_authorization_endpoint: string;
1262
+ ui_locales_supported: ("en" | "ko" | "ja")[];
1263
+ request_parameter_supported: boolean;
1264
+ request_uri_parameter_supported: boolean;
1265
+ claims_parameter_supported: boolean;
1266
+ };
1267
+ outputFormat: "json";
1268
+ status: 200;
1164
1269
  };
1165
1270
  };
1166
1271
  }, "/">, "/.well-known">, "/">, "/", "*">;
@@ -1282,9 +1387,12 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
1282
1387
  name: string;
1283
1388
  client_id: string;
1284
1389
  redirect_uris: string[];
1390
+ post_logout_redirect_uris: string[];
1391
+ web_origins: string[];
1285
1392
  response_types: ("code" | "id_token")[];
1286
- grant_types: ("refresh_token" | "implicit" | "authorization_code")[];
1393
+ grant_types: ("refresh_token" | "implicit" | "authorization_code" | "client_credentials" | "urn:ietf:params:oauth:grant-type:device_code")[];
1287
1394
  scope: string;
1395
+ skip_consent: boolean;
1288
1396
  logo_uri?: string | undefined;
1289
1397
  client_secret?: string | undefined;
1290
1398
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/entrypoints/app.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;AAWhC,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkF7C;AAED,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
+ import { RequestContext } from '@mikro-orm/core';
1
2
  import { Hono } from 'hono';
2
- import { cors } from 'hono/cors';
3
3
  import { generateSpecs } from 'hono-openapi';
4
4
  import { TinyAuthRuntimeConfigSchema, } from "../lib/config/index.js";
5
5
  import { createLogger } from "../lib/logger.js";
@@ -20,6 +20,7 @@ export async function createApp(options, runtimeOptions = {}) {
20
20
  const logger = createLogger({ logging: config.logging });
21
21
  // Initialize all services (DB, mail, scheduler, etc.)
22
22
  const { services, cleanup } = await initializeServices(config, logger, runtimeOptions);
23
+ await RequestContext.create(services.mikro.em, () => services.jwtService.ensureActiveKey());
23
24
  const frontendHandler = config.frontend?.({
24
25
  branding: config.branding,
25
26
  server: config.server,
@@ -30,6 +31,9 @@ export async function createApp(options, runtimeOptions = {}) {
30
31
  if (err.code === 'insufficient_scope') {
31
32
  c.header('WWW-Authenticate', 'Bearer error="insufficient_scope", scope="openid"');
32
33
  }
34
+ if (c.req.path.startsWith('/oauth/')) {
35
+ return c.json(toOAuthErrorJson(err), err.status);
36
+ }
33
37
  return c.json(err.toJson(), err.status);
34
38
  }
35
39
  logger.error({ err }, 'Unhandled error');
@@ -37,13 +41,11 @@ export async function createApp(options, runtimeOptions = {}) {
37
41
  return c.json(internalErr.toJson(), internalErr.status);
38
42
  })
39
43
  .use('*', loggerMiddleware(logger))
40
- .use('*', cors({
41
- origin: config.server.public_origin,
42
- credentials: true,
43
- }))
44
+ .use('*', firstPartyCors(config.server.public_origin))
44
45
  .use('*', sessionMiddleware(config.security.session_secret, config.server.public_origin.startsWith('https')))
45
46
  .use('*', trustedProxyGuard(config.server.trust_proxy))
46
47
  .use('/api/*', csrfProtection(config.server.public_origin))
48
+ .use('/oauth/device', csrfProtection(config.server.public_origin))
47
49
  .use('*', servicesMiddleware(services))
48
50
  .use('*', mikroOrmMiddleware)
49
51
  .route('/', routes)
@@ -66,4 +68,69 @@ export async function createApp(options, runtimeOptions = {}) {
66
68
  await services.scheduler.start();
67
69
  return { app, services, cleanup, logger };
68
70
  }
71
+ function firstPartyCors(publicOrigin) {
72
+ return async (c, next) => {
73
+ const origin = c.req.header('origin');
74
+ if (c.req.path.startsWith('/oauth/')) {
75
+ await next();
76
+ return undefined;
77
+ }
78
+ if (origin !== publicOrigin) {
79
+ await next();
80
+ return undefined;
81
+ }
82
+ c.header('Access-Control-Allow-Origin', origin);
83
+ c.header('Access-Control-Allow-Credentials', 'true');
84
+ c.header('Vary', 'Origin');
85
+ if (c.req.method === 'OPTIONS') {
86
+ c.header('Access-Control-Allow-Methods', 'GET,HEAD,PUT,POST,DELETE,PATCH');
87
+ const requestHeaders = c.req.header('access-control-request-headers');
88
+ if (requestHeaders) {
89
+ c.header('Access-Control-Allow-Headers', requestHeaders);
90
+ c.header('Vary', 'Access-Control-Request-Headers', { append: true });
91
+ }
92
+ return c.body(null, 204);
93
+ }
94
+ await next();
95
+ return undefined;
96
+ };
97
+ }
98
+ function toOAuthErrorJson(err) {
99
+ return {
100
+ ...err.toJson(),
101
+ error: toOAuthErrorCode(err),
102
+ error_description: err.message,
103
+ };
104
+ }
105
+ function toOAuthErrorCode(err) {
106
+ switch (err.code) {
107
+ case 'INVALID_CLIENT_CREDENTIALS':
108
+ case 'OAUTH_CLIENT_NOT_FOUND':
109
+ return 'invalid_client';
110
+ case 'UNSUPPORTED_GRANT_TYPE':
111
+ return 'unsupported_grant_type';
112
+ case 'INVALID_SCOPE':
113
+ return 'invalid_scope';
114
+ case 'INVALID_AUTHORIZATION_CODE':
115
+ case 'INVALID_DEVICE_CODE':
116
+ case 'REDIRECT_URI_MISMATCH':
117
+ case 'INVALID_PKCE_VERIFIER':
118
+ case 'INVALID_REFRESH_TOKEN':
119
+ case 'CLIENT_ID_MISMATCH':
120
+ return 'invalid_grant';
121
+ case 'INVALID_ACCESS_TOKEN':
122
+ case 'MISSING_AUTHORIZATION_HEADER':
123
+ case 'INVALID_AUTHORIZATION_HEADER_FORMAT':
124
+ case 'MISSING_BEARER_TOKEN':
125
+ return 'invalid_token';
126
+ case 'insufficient_scope':
127
+ return 'insufficient_scope';
128
+ case 'authorization_pending':
129
+ return 'authorization_pending';
130
+ case 'slow_down':
131
+ return 'slow_down';
132
+ default:
133
+ return 'invalid_request';
134
+ }
135
+ }
69
136
  //# sourceMappingURL=app.js.map