@effect-auth/core 0.1.0-alpha.15 → 0.1.0-alpha.18

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 (627) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +332 -131
  3. package/dist/AbuseProtection.d.ts +100 -0
  4. package/dist/AbuseProtection.d.ts.map +1 -0
  5. package/dist/AbuseProtection.js +71 -0
  6. package/dist/AbuseProtection.js.map +1 -0
  7. package/dist/AccessGrant.d.ts +344 -0
  8. package/dist/AccessGrant.d.ts.map +1 -0
  9. package/dist/AccessGrant.js +687 -0
  10. package/dist/AccessGrant.js.map +1 -0
  11. package/dist/ApiKey.d.ts +2 -14
  12. package/dist/ApiKey.d.ts.map +1 -1
  13. package/dist/ApiKey.js +36 -27
  14. package/dist/ApiKey.js.map +1 -1
  15. package/dist/Assurance.d.ts +415 -0
  16. package/dist/Assurance.d.ts.map +1 -0
  17. package/dist/Assurance.js +764 -0
  18. package/dist/Assurance.js.map +1 -0
  19. package/dist/AtomicPlanExecutor.d.ts +28 -0
  20. package/dist/AtomicPlanExecutor.d.ts.map +1 -0
  21. package/dist/AtomicPlanExecutor.js +5 -0
  22. package/dist/AtomicPlanExecutor.js.map +1 -0
  23. package/dist/AuditLog.d.ts +2314 -52
  24. package/dist/AuditLog.d.ts.map +1 -1
  25. package/dist/AuditLog.js +511 -33
  26. package/dist/AuditLog.js.map +1 -1
  27. package/dist/AuthConfig.d.ts.map +1 -1
  28. package/dist/AuthConfig.js.map +1 -1
  29. package/dist/AuthFlow.d.ts +326 -220
  30. package/dist/AuthFlow.d.ts.map +1 -1
  31. package/dist/AuthFlow.js +611 -263
  32. package/dist/AuthFlow.js.map +1 -1
  33. package/dist/AuthKernel.d.ts +1 -1
  34. package/dist/AuthRateLimit.d.ts +96 -0
  35. package/dist/AuthRateLimit.d.ts.map +1 -0
  36. package/dist/AuthRateLimit.js +212 -0
  37. package/dist/AuthRateLimit.js.map +1 -0
  38. package/dist/Challenge.d.ts +0 -3
  39. package/dist/Challenge.d.ts.map +1 -1
  40. package/dist/Challenge.js +1 -4
  41. package/dist/Challenge.js.map +1 -1
  42. package/dist/Client.d.ts +205 -10
  43. package/dist/Client.d.ts.map +1 -1
  44. package/dist/Client.js +397 -16
  45. package/dist/Client.js.map +1 -1
  46. package/dist/CloudflareTurnstile.d.ts +28 -0
  47. package/dist/CloudflareTurnstile.d.ts.map +1 -0
  48. package/dist/CloudflareTurnstile.js +205 -0
  49. package/dist/CloudflareTurnstile.js.map +1 -0
  50. package/dist/Crypto.d.ts +0 -3
  51. package/dist/Crypto.d.ts.map +1 -1
  52. package/dist/Crypto.js +5 -7
  53. package/dist/Crypto.js.map +1 -1
  54. package/dist/DelegatedAccessStorageMigrations.d.ts +7 -0
  55. package/dist/DelegatedAccessStorageMigrations.d.ts.map +1 -0
  56. package/dist/DelegatedAccessStorageMigrations.js +159 -0
  57. package/dist/DelegatedAccessStorageMigrations.js.map +1 -0
  58. package/dist/DisposableEmailDomains.d.ts +19 -0
  59. package/dist/DisposableEmailDomains.d.ts.map +1 -0
  60. package/dist/DisposableEmailDomains.js +85 -0
  61. package/dist/DisposableEmailDomains.js.map +1 -0
  62. package/dist/DomainVerification.d.ts +0 -9
  63. package/dist/DomainVerification.d.ts.map +1 -1
  64. package/dist/DomainVerification.js +36 -22
  65. package/dist/DomainVerification.js.map +1 -1
  66. package/dist/DrizzleBunSqliteStorage.d.ts +18 -0
  67. package/dist/DrizzleBunSqliteStorage.d.ts.map +1 -0
  68. package/dist/DrizzleBunSqliteStorage.js +11 -0
  69. package/dist/DrizzleBunSqliteStorage.js.map +1 -0
  70. package/dist/DrizzleD1SqliteStorage.d.ts +28 -0
  71. package/dist/DrizzleD1SqliteStorage.d.ts.map +1 -0
  72. package/dist/DrizzleD1SqliteStorage.js +10 -0
  73. package/dist/DrizzleD1SqliteStorage.js.map +1 -0
  74. package/dist/DrizzleDurableObjectSqliteStorage.d.ts +19 -0
  75. package/dist/DrizzleDurableObjectSqliteStorage.d.ts.map +1 -0
  76. package/dist/DrizzleDurableObjectSqliteStorage.js +14 -0
  77. package/dist/DrizzleDurableObjectSqliteStorage.js.map +1 -0
  78. package/dist/DrizzleEffectSqliteStorage.d.ts +31 -0
  79. package/dist/DrizzleEffectSqliteStorage.d.ts.map +1 -0
  80. package/dist/DrizzleEffectSqliteStorage.js +108 -0
  81. package/dist/DrizzleEffectSqliteStorage.js.map +1 -0
  82. package/dist/DrizzleNodeSqliteStorage.d.ts +18 -0
  83. package/dist/DrizzleNodeSqliteStorage.d.ts.map +1 -0
  84. package/dist/DrizzleNodeSqliteStorage.js +11 -0
  85. package/dist/DrizzleNodeSqliteStorage.js.map +1 -0
  86. package/dist/DrizzleWasmSqliteStorage.d.ts +23 -0
  87. package/dist/DrizzleWasmSqliteStorage.d.ts.map +1 -0
  88. package/dist/DrizzleWasmSqliteStorage.js +15 -0
  89. package/dist/DrizzleWasmSqliteStorage.js.map +1 -0
  90. package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts +34 -0
  91. package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts.map +1 -0
  92. package/dist/EffectQbPostgresDelegatedAccessStorage.js +499 -0
  93. package/dist/EffectQbPostgresDelegatedAccessStorage.js.map +1 -0
  94. package/dist/EffectQbPostgresStorage.d.ts +171 -0
  95. package/dist/EffectQbPostgresStorage.d.ts.map +1 -0
  96. package/dist/EffectQbPostgresStorage.js +4280 -0
  97. package/dist/EffectQbPostgresStorage.js.map +1 -0
  98. package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts +112 -0
  99. package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts.map +1 -0
  100. package/dist/EffectQbSqliteDelegatedAccessStorage.js +602 -0
  101. package/dist/EffectQbSqliteDelegatedAccessStorage.js.map +1 -0
  102. package/dist/EffectQbSqliteStorage.d.ts +184 -27
  103. package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
  104. package/dist/EffectQbSqliteStorage.js +1729 -135
  105. package/dist/EffectQbSqliteStorage.js.map +1 -1
  106. package/dist/EmailAuth.d.ts +65 -0
  107. package/dist/EmailAuth.d.ts.map +1 -0
  108. package/dist/EmailAuth.js +171 -0
  109. package/dist/EmailAuth.js.map +1 -0
  110. package/dist/EmailIdentityAuth.d.ts +30 -0
  111. package/dist/EmailIdentityAuth.d.ts.map +1 -0
  112. package/dist/EmailIdentityAuth.js +142 -0
  113. package/dist/EmailIdentityAuth.js.map +1 -0
  114. package/dist/EmailOtp.d.ts +10 -11
  115. package/dist/EmailOtp.d.ts.map +1 -1
  116. package/dist/EmailOtp.js +44 -81
  117. package/dist/EmailOtp.js.map +1 -1
  118. package/dist/EmailRisk.d.ts +48 -0
  119. package/dist/EmailRisk.d.ts.map +1 -0
  120. package/dist/EmailRisk.js +33 -0
  121. package/dist/EmailRisk.js.map +1 -0
  122. package/dist/EmailVerification.d.ts +10 -16
  123. package/dist/EmailVerification.d.ts.map +1 -1
  124. package/dist/EmailVerification.js +85 -42
  125. package/dist/EmailVerification.js.map +1 -1
  126. package/dist/Guard.d.ts +11 -0
  127. package/dist/Guard.d.ts.map +1 -0
  128. package/dist/Guard.js +11 -0
  129. package/dist/Guard.js.map +1 -0
  130. package/dist/HibpPwnedPasswords.d.ts +56 -0
  131. package/dist/HibpPwnedPasswords.d.ts.map +1 -0
  132. package/dist/HibpPwnedPasswords.js +232 -0
  133. package/dist/HibpPwnedPasswords.js.map +1 -0
  134. package/dist/HttpApi/AdminPermissionDefinition.d.ts +4 -0
  135. package/dist/HttpApi/AdminPermissionDefinition.d.ts.map +1 -0
  136. package/dist/HttpApi/AdminPermissionDefinition.js +4 -0
  137. package/dist/HttpApi/AdminPermissionDefinition.js.map +1 -0
  138. package/dist/HttpApi/AdminSecurityTimeline.d.ts +4 -0
  139. package/dist/HttpApi/AdminSecurityTimeline.d.ts.map +1 -0
  140. package/dist/HttpApi/AdminSecurityTimeline.js +4 -0
  141. package/dist/HttpApi/AdminSecurityTimeline.js.map +1 -0
  142. package/dist/HttpApi/AdminSession.d.ts +4 -0
  143. package/dist/HttpApi/AdminSession.d.ts.map +1 -0
  144. package/dist/HttpApi/AdminSession.js +4 -0
  145. package/dist/HttpApi/AdminSession.js.map +1 -0
  146. package/dist/HttpApi/AdminTrustedDevice.d.ts +4 -0
  147. package/dist/HttpApi/AdminTrustedDevice.d.ts.map +1 -0
  148. package/dist/HttpApi/AdminTrustedDevice.js +4 -0
  149. package/dist/HttpApi/AdminTrustedDevice.js.map +1 -0
  150. package/dist/HttpApi/Api.d.ts +1172 -1172
  151. package/dist/HttpApi/Api.d.ts.map +1 -1
  152. package/dist/HttpApi/Api.js +2160 -896
  153. package/dist/HttpApi/Api.js.map +1 -1
  154. package/dist/HttpApi/ApiKey.d.ts +4 -0
  155. package/dist/HttpApi/ApiKey.d.ts.map +1 -0
  156. package/dist/HttpApi/ApiKey.js +4 -0
  157. package/dist/HttpApi/ApiKey.js.map +1 -0
  158. package/dist/HttpApi/Audit.d.ts +6 -0
  159. package/dist/HttpApi/Audit.d.ts.map +1 -0
  160. package/dist/HttpApi/Audit.js +10 -0
  161. package/dist/HttpApi/Audit.js.map +1 -0
  162. package/dist/HttpApi/ClientApi.d.ts +917 -0
  163. package/dist/HttpApi/ClientApi.d.ts.map +1 -0
  164. package/dist/HttpApi/ClientApi.js +101 -0
  165. package/dist/HttpApi/ClientApi.js.map +1 -0
  166. package/dist/HttpApi/EmailAuth.d.ts +6 -0
  167. package/dist/HttpApi/EmailAuth.d.ts.map +1 -0
  168. package/dist/HttpApi/EmailAuth.js +6 -0
  169. package/dist/HttpApi/EmailAuth.js.map +1 -0
  170. package/dist/HttpApi/EmailGuards.d.ts +115 -0
  171. package/dist/HttpApi/EmailGuards.d.ts.map +1 -0
  172. package/dist/HttpApi/EmailGuards.js +191 -0
  173. package/dist/HttpApi/EmailGuards.js.map +1 -0
  174. package/dist/HttpApi/EmailOtp.d.ts +6 -0
  175. package/dist/HttpApi/EmailOtp.d.ts.map +1 -0
  176. package/dist/HttpApi/EmailOtp.js +6 -0
  177. package/dist/HttpApi/EmailOtp.js.map +1 -0
  178. package/dist/HttpApi/EmailVerification.d.ts +6 -0
  179. package/dist/HttpApi/EmailVerification.d.ts.map +1 -0
  180. package/dist/HttpApi/EmailVerification.js +6 -0
  181. package/dist/HttpApi/EmailVerification.js.map +1 -0
  182. package/dist/HttpApi/Endpoints.d.ts +629 -301
  183. package/dist/HttpApi/Endpoints.d.ts.map +1 -1
  184. package/dist/HttpApi/Endpoints.js +178 -120
  185. package/dist/HttpApi/Endpoints.js.map +1 -1
  186. package/dist/HttpApi/Errors.d.ts +26 -7
  187. package/dist/HttpApi/Errors.d.ts.map +1 -1
  188. package/dist/HttpApi/Errors.js +26 -4
  189. package/dist/HttpApi/Errors.js.map +1 -1
  190. package/dist/HttpApi/Identity.d.ts +6 -0
  191. package/dist/HttpApi/Identity.d.ts.map +1 -0
  192. package/dist/HttpApi/Identity.js +6 -0
  193. package/dist/HttpApi/Identity.js.map +1 -0
  194. package/dist/HttpApi/IdentityGuards.d.ts +31 -0
  195. package/dist/HttpApi/IdentityGuards.d.ts.map +1 -0
  196. package/dist/HttpApi/IdentityGuards.js +33 -0
  197. package/dist/HttpApi/IdentityGuards.js.map +1 -0
  198. package/dist/HttpApi/Jwt.d.ts +4 -0
  199. package/dist/HttpApi/Jwt.d.ts.map +1 -0
  200. package/dist/HttpApi/Jwt.js +4 -0
  201. package/dist/HttpApi/Jwt.js.map +1 -0
  202. package/dist/HttpApi/JwtDiscovery.d.ts +4 -0
  203. package/dist/HttpApi/JwtDiscovery.d.ts.map +1 -0
  204. package/dist/HttpApi/JwtDiscovery.js +4 -0
  205. package/dist/HttpApi/JwtDiscovery.js.map +1 -0
  206. package/dist/HttpApi/LoginApproval.d.ts +5 -0
  207. package/dist/HttpApi/LoginApproval.d.ts.map +1 -0
  208. package/dist/HttpApi/LoginApproval.js +5 -0
  209. package/dist/HttpApi/LoginApproval.js.map +1 -0
  210. package/dist/HttpApi/LoginNotification.d.ts +5 -0
  211. package/dist/HttpApi/LoginNotification.d.ts.map +1 -0
  212. package/dist/HttpApi/LoginNotification.js +5 -0
  213. package/dist/HttpApi/LoginNotification.js.map +1 -0
  214. package/dist/HttpApi/MagicLink.d.ts +6 -0
  215. package/dist/HttpApi/MagicLink.d.ts.map +1 -0
  216. package/dist/HttpApi/MagicLink.js +6 -0
  217. package/dist/HttpApi/MagicLink.js.map +1 -0
  218. package/dist/HttpApi/Mfa.d.ts +5 -0
  219. package/dist/HttpApi/Mfa.d.ts.map +1 -0
  220. package/dist/HttpApi/Mfa.js +5 -0
  221. package/dist/HttpApi/Mfa.js.map +1 -0
  222. package/dist/HttpApi/Middleware.d.ts +14 -0
  223. package/dist/HttpApi/Middleware.d.ts.map +1 -0
  224. package/dist/HttpApi/Middleware.js +5 -0
  225. package/dist/HttpApi/Middleware.js.map +1 -0
  226. package/dist/HttpApi/OAuth.d.ts +4 -0
  227. package/dist/HttpApi/OAuth.d.ts.map +1 -0
  228. package/dist/HttpApi/OAuth.js +4 -0
  229. package/dist/HttpApi/OAuth.js.map +1 -0
  230. package/dist/HttpApi/OAuthProviderAuthorization.d.ts +4 -0
  231. package/dist/HttpApi/OAuthProviderAuthorization.d.ts.map +1 -0
  232. package/dist/HttpApi/OAuthProviderAuthorization.js +4 -0
  233. package/dist/HttpApi/OAuthProviderAuthorization.js.map +1 -0
  234. package/dist/HttpApi/OAuthToken.d.ts +4 -0
  235. package/dist/HttpApi/OAuthToken.d.ts.map +1 -0
  236. package/dist/HttpApi/OAuthToken.js +4 -0
  237. package/dist/HttpApi/OAuthToken.js.map +1 -0
  238. package/dist/HttpApi/OidcDiscovery.d.ts +4 -0
  239. package/dist/HttpApi/OidcDiscovery.d.ts.map +1 -0
  240. package/dist/HttpApi/OidcDiscovery.js +4 -0
  241. package/dist/HttpApi/OidcDiscovery.js.map +1 -0
  242. package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts +28 -0
  243. package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts.map +1 -0
  244. package/dist/HttpApi/Operations/AdminPermissionDefinition.js +5 -0
  245. package/dist/HttpApi/Operations/AdminPermissionDefinition.js.map +1 -0
  246. package/dist/HttpApi/Operations/AdminSession.d.ts +16 -0
  247. package/dist/HttpApi/Operations/AdminSession.d.ts.map +1 -0
  248. package/dist/HttpApi/Operations/AdminSession.js +5 -0
  249. package/dist/HttpApi/Operations/AdminSession.js.map +1 -0
  250. package/dist/HttpApi/Operations/ApiKey.d.ts +16 -0
  251. package/dist/HttpApi/Operations/ApiKey.d.ts.map +1 -0
  252. package/dist/HttpApi/Operations/ApiKey.js +5 -0
  253. package/dist/HttpApi/Operations/ApiKey.js.map +1 -0
  254. package/dist/HttpApi/Operations/Discovery.d.ts +19 -0
  255. package/dist/HttpApi/Operations/Discovery.d.ts.map +1 -0
  256. package/dist/HttpApi/Operations/Discovery.js +7 -0
  257. package/dist/HttpApi/Operations/Discovery.js.map +1 -0
  258. package/dist/HttpApi/Operations/EmailAuth.d.ts +12 -0
  259. package/dist/HttpApi/Operations/EmailAuth.d.ts.map +1 -0
  260. package/dist/HttpApi/Operations/EmailAuth.js +5 -0
  261. package/dist/HttpApi/Operations/EmailAuth.js.map +1 -0
  262. package/dist/HttpApi/Operations/EmailOtp.d.ts +14 -0
  263. package/dist/HttpApi/Operations/EmailOtp.d.ts.map +1 -0
  264. package/dist/HttpApi/Operations/EmailOtp.js +5 -0
  265. package/dist/HttpApi/Operations/EmailOtp.js.map +1 -0
  266. package/dist/HttpApi/Operations/EmailVerification.d.ts +14 -0
  267. package/dist/HttpApi/Operations/EmailVerification.d.ts.map +1 -0
  268. package/dist/HttpApi/Operations/EmailVerification.js +5 -0
  269. package/dist/HttpApi/Operations/EmailVerification.js.map +1 -0
  270. package/dist/HttpApi/Operations/HttpOperation.d.ts +4 -0
  271. package/dist/HttpApi/Operations/HttpOperation.d.ts.map +1 -0
  272. package/dist/HttpApi/Operations/HttpOperation.js +2 -0
  273. package/dist/HttpApi/Operations/HttpOperation.js.map +1 -0
  274. package/dist/HttpApi/Operations/Identity.d.ts +22 -0
  275. package/dist/HttpApi/Operations/Identity.d.ts.map +1 -0
  276. package/dist/HttpApi/Operations/Identity.js +5 -0
  277. package/dist/HttpApi/Operations/Identity.js.map +1 -0
  278. package/dist/HttpApi/Operations/Jwt.d.ts +14 -0
  279. package/dist/HttpApi/Operations/Jwt.d.ts.map +1 -0
  280. package/dist/HttpApi/Operations/Jwt.js +5 -0
  281. package/dist/HttpApi/Operations/Jwt.js.map +1 -0
  282. package/dist/HttpApi/Operations/LoginApproval.d.ts +16 -0
  283. package/dist/HttpApi/Operations/LoginApproval.d.ts.map +1 -0
  284. package/dist/HttpApi/Operations/LoginApproval.js +5 -0
  285. package/dist/HttpApi/Operations/LoginApproval.js.map +1 -0
  286. package/dist/HttpApi/Operations/MagicLink.d.ts +14 -0
  287. package/dist/HttpApi/Operations/MagicLink.d.ts.map +1 -0
  288. package/dist/HttpApi/Operations/MagicLink.js +5 -0
  289. package/dist/HttpApi/Operations/MagicLink.js.map +1 -0
  290. package/dist/HttpApi/Operations/Mfa.d.ts +24 -0
  291. package/dist/HttpApi/Operations/Mfa.d.ts.map +1 -0
  292. package/dist/HttpApi/Operations/Mfa.js +5 -0
  293. package/dist/HttpApi/Operations/Mfa.js.map +1 -0
  294. package/dist/HttpApi/Operations/OAuth.d.ts +20 -0
  295. package/dist/HttpApi/Operations/OAuth.d.ts.map +1 -0
  296. package/dist/HttpApi/Operations/OAuth.js +5 -0
  297. package/dist/HttpApi/Operations/OAuth.js.map +1 -0
  298. package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts +12 -0
  299. package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts.map +1 -0
  300. package/dist/HttpApi/Operations/OAuthProviderAuthorization.js +5 -0
  301. package/dist/HttpApi/Operations/OAuthProviderAuthorization.js.map +1 -0
  302. package/dist/HttpApi/Operations/OAuthToken.d.ts +16 -0
  303. package/dist/HttpApi/Operations/OAuthToken.d.ts.map +1 -0
  304. package/dist/HttpApi/Operations/OAuthToken.js +5 -0
  305. package/dist/HttpApi/Operations/OAuthToken.js.map +1 -0
  306. package/dist/HttpApi/Operations/Passkey.d.ts +22 -0
  307. package/dist/HttpApi/Operations/Passkey.d.ts.map +1 -0
  308. package/dist/HttpApi/Operations/Passkey.js +5 -0
  309. package/dist/HttpApi/Operations/Passkey.js.map +1 -0
  310. package/dist/HttpApi/Operations/Password.d.ts +22 -0
  311. package/dist/HttpApi/Operations/Password.d.ts.map +1 -0
  312. package/dist/HttpApi/Operations/Password.js +5 -0
  313. package/dist/HttpApi/Operations/Password.js.map +1 -0
  314. package/dist/HttpApi/Operations/RecoveryCodes.d.ts +20 -0
  315. package/dist/HttpApi/Operations/RecoveryCodes.d.ts.map +1 -0
  316. package/dist/HttpApi/Operations/RecoveryCodes.js +5 -0
  317. package/dist/HttpApi/Operations/RecoveryCodes.js.map +1 -0
  318. package/dist/HttpApi/Operations/RefreshToken.d.ts +12 -0
  319. package/dist/HttpApi/Operations/RefreshToken.d.ts.map +1 -0
  320. package/dist/HttpApi/Operations/RefreshToken.js +5 -0
  321. package/dist/HttpApi/Operations/RefreshToken.js.map +1 -0
  322. package/dist/HttpApi/Operations/Security.d.ts +12 -0
  323. package/dist/HttpApi/Operations/Security.d.ts.map +1 -0
  324. package/dist/HttpApi/Operations/Security.js +5 -0
  325. package/dist/HttpApi/Operations/Security.js.map +1 -0
  326. package/dist/HttpApi/Operations/SecurityTimeline.d.ts +19 -0
  327. package/dist/HttpApi/Operations/SecurityTimeline.d.ts.map +1 -0
  328. package/dist/HttpApi/Operations/SecurityTimeline.js +7 -0
  329. package/dist/HttpApi/Operations/SecurityTimeline.js.map +1 -0
  330. package/dist/HttpApi/Operations/Session.d.ts +22 -0
  331. package/dist/HttpApi/Operations/Session.d.ts.map +1 -0
  332. package/dist/HttpApi/Operations/Session.js +5 -0
  333. package/dist/HttpApi/Operations/Session.js.map +1 -0
  334. package/dist/HttpApi/Operations/StepUp.d.ts +22 -0
  335. package/dist/HttpApi/Operations/StepUp.d.ts.map +1 -0
  336. package/dist/HttpApi/Operations/StepUp.js +5 -0
  337. package/dist/HttpApi/Operations/StepUp.js.map +1 -0
  338. package/dist/HttpApi/Operations/Totp.d.ts +20 -0
  339. package/dist/HttpApi/Operations/Totp.d.ts.map +1 -0
  340. package/dist/HttpApi/Operations/Totp.js +5 -0
  341. package/dist/HttpApi/Operations/Totp.js.map +1 -0
  342. package/dist/HttpApi/Operations/TrustedDevice.d.ts +23 -0
  343. package/dist/HttpApi/Operations/TrustedDevice.d.ts.map +1 -0
  344. package/dist/HttpApi/Operations/TrustedDevice.js +7 -0
  345. package/dist/HttpApi/Operations/TrustedDevice.js.map +1 -0
  346. package/dist/HttpApi/Operations/index.d.ts +27 -0
  347. package/dist/HttpApi/Operations/index.d.ts.map +1 -0
  348. package/dist/HttpApi/Operations/index.js +27 -0
  349. package/dist/HttpApi/Operations/index.js.map +1 -0
  350. package/dist/HttpApi/Passkey.d.ts +5 -0
  351. package/dist/HttpApi/Passkey.d.ts.map +1 -0
  352. package/dist/HttpApi/Passkey.js +5 -0
  353. package/dist/HttpApi/Passkey.js.map +1 -0
  354. package/dist/HttpApi/Password.d.ts +220 -0
  355. package/dist/HttpApi/Password.d.ts.map +1 -0
  356. package/dist/HttpApi/Password.js +237 -0
  357. package/dist/HttpApi/Password.js.map +1 -0
  358. package/dist/HttpApi/PasswordContract.d.ts +307 -0
  359. package/dist/HttpApi/PasswordContract.d.ts.map +1 -0
  360. package/dist/HttpApi/PasswordContract.js +63 -0
  361. package/dist/HttpApi/PasswordContract.js.map +1 -0
  362. package/dist/HttpApi/PasswordGuards.d.ts +82 -0
  363. package/dist/HttpApi/PasswordGuards.d.ts.map +1 -0
  364. package/dist/HttpApi/PasswordGuards.js +179 -0
  365. package/dist/HttpApi/PasswordGuards.js.map +1 -0
  366. package/dist/HttpApi/RecoveryCodes.d.ts +5 -0
  367. package/dist/HttpApi/RecoveryCodes.d.ts.map +1 -0
  368. package/dist/HttpApi/RecoveryCodes.js +5 -0
  369. package/dist/HttpApi/RecoveryCodes.js.map +1 -0
  370. package/dist/HttpApi/RefreshToken.d.ts +4 -0
  371. package/dist/HttpApi/RefreshToken.d.ts.map +1 -0
  372. package/dist/HttpApi/RefreshToken.js +4 -0
  373. package/dist/HttpApi/RefreshToken.js.map +1 -0
  374. package/dist/HttpApi/RequestGuards.d.ts +42 -0
  375. package/dist/HttpApi/RequestGuards.d.ts.map +1 -0
  376. package/dist/HttpApi/RequestGuards.js +194 -0
  377. package/dist/HttpApi/RequestGuards.js.map +1 -0
  378. package/dist/HttpApi/Schemas.d.ts +361 -84
  379. package/dist/HttpApi/Schemas.d.ts.map +1 -1
  380. package/dist/HttpApi/Schemas.js +190 -27
  381. package/dist/HttpApi/Schemas.js.map +1 -1
  382. package/dist/HttpApi/Security.d.ts +12 -93
  383. package/dist/HttpApi/Security.d.ts.map +1 -1
  384. package/dist/HttpApi/Security.js +65 -356
  385. package/dist/HttpApi/Security.js.map +1 -1
  386. package/dist/HttpApi/SecurityTimeline.d.ts +4 -0
  387. package/dist/HttpApi/SecurityTimeline.d.ts.map +1 -0
  388. package/dist/HttpApi/SecurityTimeline.js +4 -0
  389. package/dist/HttpApi/SecurityTimeline.js.map +1 -0
  390. package/dist/HttpApi/Session.d.ts +5 -0
  391. package/dist/HttpApi/Session.d.ts.map +1 -0
  392. package/dist/HttpApi/Session.js +5 -0
  393. package/dist/HttpApi/Session.js.map +1 -0
  394. package/dist/HttpApi/SessionGuards.d.ts +15 -0
  395. package/dist/HttpApi/SessionGuards.d.ts.map +1 -0
  396. package/dist/HttpApi/SessionGuards.js +37 -0
  397. package/dist/HttpApi/SessionGuards.js.map +1 -0
  398. package/dist/HttpApi/StepUp.d.ts +5 -0
  399. package/dist/HttpApi/StepUp.d.ts.map +1 -0
  400. package/dist/HttpApi/StepUp.js +5 -0
  401. package/dist/HttpApi/StepUp.js.map +1 -0
  402. package/dist/HttpApi/Totp.d.ts +5 -0
  403. package/dist/HttpApi/Totp.d.ts.map +1 -0
  404. package/dist/HttpApi/Totp.js +5 -0
  405. package/dist/HttpApi/Totp.js.map +1 -0
  406. package/dist/HttpApi/Transport.d.ts +4 -6
  407. package/dist/HttpApi/Transport.d.ts.map +1 -1
  408. package/dist/HttpApi/Transport.js +62 -36
  409. package/dist/HttpApi/Transport.js.map +1 -1
  410. package/dist/HttpApi/TrustedDevice.d.ts +4 -0
  411. package/dist/HttpApi/TrustedDevice.d.ts.map +1 -0
  412. package/dist/HttpApi/TrustedDevice.js +4 -0
  413. package/dist/HttpApi/TrustedDevice.js.map +1 -0
  414. package/dist/HttpApi/index.d.ts +9 -3
  415. package/dist/HttpApi/index.d.ts.map +1 -1
  416. package/dist/HttpApi/index.js +8 -2
  417. package/dist/HttpApi/index.js.map +1 -1
  418. package/dist/Identity.d.ts +138 -0
  419. package/dist/Identity.d.ts.map +1 -0
  420. package/dist/Identity.js +105 -0
  421. package/dist/Identity.js.map +1 -0
  422. package/dist/IdentityManagement.d.ts +189 -0
  423. package/dist/IdentityManagement.d.ts.map +1 -0
  424. package/dist/IdentityManagement.js +317 -0
  425. package/dist/IdentityManagement.js.map +1 -0
  426. package/dist/IncidentAction.d.ts +1 -4
  427. package/dist/IncidentAction.d.ts.map +1 -1
  428. package/dist/IncidentAction.js +15 -9
  429. package/dist/IncidentAction.js.map +1 -1
  430. package/dist/Internal.d.ts +2 -0
  431. package/dist/Internal.d.ts.map +1 -1
  432. package/dist/Internal.js +30 -0
  433. package/dist/Internal.js.map +1 -1
  434. package/dist/Invitation.d.ts +362 -0
  435. package/dist/Invitation.d.ts.map +1 -0
  436. package/dist/Invitation.js +633 -0
  437. package/dist/Invitation.js.map +1 -0
  438. package/dist/IpQualityScore.d.ts +38 -0
  439. package/dist/IpQualityScore.d.ts.map +1 -0
  440. package/dist/IpQualityScore.js +215 -0
  441. package/dist/IpQualityScore.js.map +1 -0
  442. package/dist/Jwt.d.ts +9 -30
  443. package/dist/Jwt.d.ts.map +1 -1
  444. package/dist/Jwt.js +72 -60
  445. package/dist/Jwt.js.map +1 -1
  446. package/dist/LoginApproval.d.ts +16 -31
  447. package/dist/LoginApproval.d.ts.map +1 -1
  448. package/dist/LoginApproval.js +47 -41
  449. package/dist/LoginApproval.js.map +1 -1
  450. package/dist/LoginNotification.d.ts +8 -12
  451. package/dist/LoginNotification.d.ts.map +1 -1
  452. package/dist/LoginNotification.js +30 -17
  453. package/dist/LoginNotification.js.map +1 -1
  454. package/dist/LoginRisk.d.ts +11 -13
  455. package/dist/LoginRisk.d.ts.map +1 -1
  456. package/dist/LoginRisk.js +66 -26
  457. package/dist/LoginRisk.js.map +1 -1
  458. package/dist/LoginRiskEnrichment.d.ts +145 -0
  459. package/dist/LoginRiskEnrichment.d.ts.map +1 -0
  460. package/dist/LoginRiskEnrichment.js +220 -0
  461. package/dist/LoginRiskEnrichment.js.map +1 -0
  462. package/dist/MachineAuth.d.ts.map +1 -1
  463. package/dist/MachineAuth.js.map +1 -1
  464. package/dist/MagicLink.d.ts +9 -8
  465. package/dist/MagicLink.d.ts.map +1 -1
  466. package/dist/MagicLink.js +40 -73
  467. package/dist/MagicLink.js.map +1 -1
  468. package/dist/Mailer.d.ts +20 -13
  469. package/dist/Mailer.d.ts.map +1 -1
  470. package/dist/Mailer.js +10 -12
  471. package/dist/Mailer.js.map +1 -1
  472. package/dist/OAuth.d.ts +100 -103
  473. package/dist/OAuth.d.ts.map +1 -1
  474. package/dist/OAuth.js +404 -217
  475. package/dist/OAuth.js.map +1 -1
  476. package/dist/Passkey.d.ts +17 -19
  477. package/dist/Passkey.d.ts.map +1 -1
  478. package/dist/Passkey.js +86 -39
  479. package/dist/Passkey.js.map +1 -1
  480. package/dist/PasskeyBrowser.d.ts +39 -0
  481. package/dist/PasskeyBrowser.d.ts.map +1 -0
  482. package/dist/PasskeyBrowser.js +206 -0
  483. package/dist/PasskeyBrowser.js.map +1 -0
  484. package/dist/PasskeySimpleWebAuthn.d.ts.map +1 -1
  485. package/dist/PasskeySimpleWebAuthn.js +19 -7
  486. package/dist/PasskeySimpleWebAuthn.js.map +1 -1
  487. package/dist/Password.d.ts +71 -37
  488. package/dist/Password.d.ts.map +1 -1
  489. package/dist/Password.js +296 -82
  490. package/dist/Password.js.map +1 -1
  491. package/dist/PasswordRisk.d.ts +63 -0
  492. package/dist/PasswordRisk.d.ts.map +1 -0
  493. package/dist/PasswordRisk.js +37 -0
  494. package/dist/PasswordRisk.js.map +1 -0
  495. package/dist/Permission.d.ts +308 -0
  496. package/dist/Permission.d.ts.map +1 -0
  497. package/dist/Permission.js +827 -0
  498. package/dist/Permission.js.map +1 -0
  499. package/dist/Policy.d.ts +31 -18
  500. package/dist/Policy.d.ts.map +1 -1
  501. package/dist/Policy.js +58 -14
  502. package/dist/Policy.js.map +1 -1
  503. package/dist/PostgresDelegatedAccessStorageMigrations.d.ts +7 -0
  504. package/dist/PostgresDelegatedAccessStorageMigrations.d.ts.map +1 -0
  505. package/dist/PostgresDelegatedAccessStorageMigrations.js +119 -0
  506. package/dist/PostgresDelegatedAccessStorageMigrations.js.map +1 -0
  507. package/dist/PostgresStorageMigrations.d.ts +15 -0
  508. package/dist/PostgresStorageMigrations.d.ts.map +1 -0
  509. package/dist/PostgresStorageMigrations.js +620 -0
  510. package/dist/PostgresStorageMigrations.js.map +1 -0
  511. package/dist/Privacy.d.ts +0 -3
  512. package/dist/Privacy.d.ts.map +1 -1
  513. package/dist/Privacy.js +2 -5
  514. package/dist/Privacy.js.map +1 -1
  515. package/dist/RateLimiter.d.ts +0 -3
  516. package/dist/RateLimiter.d.ts.map +1 -1
  517. package/dist/RateLimiter.js +1 -4
  518. package/dist/RateLimiter.js.map +1 -1
  519. package/dist/RecoveryCode.d.ts +84 -12
  520. package/dist/RecoveryCode.d.ts.map +1 -1
  521. package/dist/RecoveryCode.js +273 -75
  522. package/dist/RecoveryCode.js.map +1 -1
  523. package/dist/RecoveryPolicy.d.ts +81 -0
  524. package/dist/RecoveryPolicy.d.ts.map +1 -0
  525. package/dist/RecoveryPolicy.js +119 -0
  526. package/dist/RecoveryPolicy.js.map +1 -0
  527. package/dist/RefreshToken.d.ts +1 -10
  528. package/dist/RefreshToken.d.ts.map +1 -1
  529. package/dist/RefreshToken.js +31 -22
  530. package/dist/RefreshToken.js.map +1 -1
  531. package/dist/Retention.d.ts.map +1 -1
  532. package/dist/Retention.js.map +1 -1
  533. package/dist/SecurityTimeline.d.ts +1 -4
  534. package/dist/SecurityTimeline.d.ts.map +1 -1
  535. package/dist/SecurityTimeline.js +110 -17
  536. package/dist/SecurityTimeline.js.map +1 -1
  537. package/dist/Sessions.d.ts +124 -29
  538. package/dist/Sessions.d.ts.map +1 -1
  539. package/dist/Sessions.js +626 -94
  540. package/dist/Sessions.js.map +1 -1
  541. package/dist/StepUp.d.ts +132 -11
  542. package/dist/StepUp.d.ts.map +1 -1
  543. package/dist/StepUp.js +387 -19
  544. package/dist/StepUp.js.map +1 -1
  545. package/dist/Storage.d.ts +89 -23
  546. package/dist/Storage.d.ts.map +1 -1
  547. package/dist/Storage.js +10 -12
  548. package/dist/Storage.js.map +1 -1
  549. package/dist/StorageMigrations.d.ts +6 -1
  550. package/dist/StorageMigrations.d.ts.map +1 -1
  551. package/dist/StorageMigrations.js +224 -0
  552. package/dist/StorageMigrations.js.map +1 -1
  553. package/dist/StorageSchemaGenerator.d.ts +486 -0
  554. package/dist/StorageSchemaGenerator.d.ts.map +1 -0
  555. package/dist/StorageSchemaGenerator.js +1022 -0
  556. package/dist/StorageSchemaGenerator.js.map +1 -0
  557. package/dist/StrongFactor.d.ts +64 -0
  558. package/dist/StrongFactor.d.ts.map +1 -0
  559. package/dist/StrongFactor.js +100 -0
  560. package/dist/StrongFactor.js.map +1 -0
  561. package/dist/Testing.d.ts +1 -1
  562. package/dist/Testing.js +2 -2
  563. package/dist/Testing.js.map +1 -1
  564. package/dist/Totp.d.ts +88 -13
  565. package/dist/Totp.d.ts.map +1 -1
  566. package/dist/Totp.js +194 -36
  567. package/dist/Totp.js.map +1 -1
  568. package/dist/TrustedDevice.d.ts +0 -9
  569. package/dist/TrustedDevice.d.ts.map +1 -1
  570. package/dist/TrustedDevice.js +15 -17
  571. package/dist/TrustedDevice.js.map +1 -1
  572. package/dist/WaitUntil.d.ts +0 -3
  573. package/dist/WaitUntil.d.ts.map +1 -1
  574. package/dist/WaitUntil.js +1 -4
  575. package/dist/WaitUntil.js.map +1 -1
  576. package/dist/Webhook.d.ts +42 -12
  577. package/dist/Webhook.d.ts.map +1 -1
  578. package/dist/Webhook.js +165 -26
  579. package/dist/Webhook.js.map +1 -1
  580. package/dist/alchemy/cloudflare/Email.d.ts +4 -4
  581. package/dist/alchemy/cloudflare/Email.d.ts.map +1 -1
  582. package/dist/alchemy/cloudflare/Email.js +10 -5
  583. package/dist/alchemy/cloudflare/Email.js.map +1 -1
  584. package/dist/alchemy/cloudflare/RateLimitDurableObject.d.ts +4 -4
  585. package/dist/alchemy/cloudflare/RateLimitDurableObject.d.ts.map +1 -1
  586. package/dist/alchemy/cloudflare/RateLimitDurableObject.js +5 -4
  587. package/dist/alchemy/cloudflare/RateLimitDurableObject.js.map +1 -1
  588. package/dist/cloudflare/Email.d.ts.map +1 -1
  589. package/dist/cloudflare/Email.js +1 -1
  590. package/dist/cloudflare/Email.js.map +1 -1
  591. package/dist/cloudflare/RateLimitDurableObject.d.ts +6 -5
  592. package/dist/cloudflare/RateLimitDurableObject.d.ts.map +1 -1
  593. package/dist/cloudflare/RateLimitDurableObject.js.map +1 -1
  594. package/dist/cloudflare/RequestMetadata.d.ts +49 -0
  595. package/dist/cloudflare/RequestMetadata.d.ts.map +1 -0
  596. package/dist/cloudflare/RequestMetadata.js +71 -0
  597. package/dist/cloudflare/RequestMetadata.js.map +1 -0
  598. package/dist/index.d.ts +0 -35
  599. package/dist/index.d.ts.map +1 -1
  600. package/dist/index.js +0 -35
  601. package/dist/index.js.map +1 -1
  602. package/dist/internal/AuthFlowFinalizer.d.ts +31 -0
  603. package/dist/internal/AuthFlowFinalizer.d.ts.map +1 -0
  604. package/dist/internal/AuthFlowFinalizer.js +182 -0
  605. package/dist/internal/AuthFlowFinalizer.js.map +1 -0
  606. package/dist/internal/RateLimitDurableObject.d.ts.map +1 -1
  607. package/dist/internal/RateLimitDurableObject.js +3 -0
  608. package/dist/internal/RateLimitDurableObject.js.map +1 -1
  609. package/migrations/0001_auth_storage.sql +1 -0
  610. package/migrations/0006_auth_totp_factor.sql +1 -0
  611. package/migrations/0024_auth_permission.sql +39 -0
  612. package/migrations/0025_auth_permission_definition.sql +19 -0
  613. package/migrations/0026_auth_user_identity.sql +59 -0
  614. package/migrations/0027_auth_audit_log_storage_order.sql +46 -0
  615. package/migrations/0028_auth_oauth_client_secret_key.sql +39 -0
  616. package/migrations/delegated-access/0001_auth_delegated_access.sql +152 -0
  617. package/migrations/postgres/0001_auth_core.sql +77 -0
  618. package/migrations/postgres/0002_auth_security_oauth.sql +65 -0
  619. package/migrations/postgres/0003_auth_credentials_tokens.sql +43 -0
  620. package/migrations/postgres/0004_auth_security_history.sql +103 -0
  621. package/migrations/postgres/0005_auth_webhooks.sql +29 -0
  622. package/migrations/postgres/0006_auth_domain_timeline.sql +50 -0
  623. package/migrations/postgres/0007_auth_oauth_clients.sql +85 -0
  624. package/migrations/postgres/0008_auth_oauth_tokens.sql +63 -0
  625. package/migrations/postgres/0009_auth_permissions.sql +66 -0
  626. package/migrations/postgres/delegated-access/0001_auth_delegated_access.sql +112 -0
  627. package/package.json +309 -2
@@ -1,60 +1,67 @@
1
1
  import { Context, Effect, Layer, Redacted } from "effect";
2
2
  import type { Duration, Schema } from "effect";
3
- import { HttpServerRequest, HttpServerResponse } from "effect/unstable/http";
3
+ import { HttpRouter, HttpServerRequest, HttpServerResponse } from "effect/unstable/http";
4
4
  import { HttpApi, HttpApiGroup } from "effect/unstable/httpapi";
5
- import { ApiKeyId } from "../ApiKey.js";
5
+ import { ApiKeyId, ApiKeyManagement } from "../ApiKey.js";
6
6
  import type { ApiKeyCreateForUserInput, ApiKeyManagementRevokeInput, ApiKeyManagementService } from "../ApiKey.js";
7
- import type { JwksDocument, JwksService, JwtAudience, JwtIssueInput, JwtIssuerService, JwtRevokeJwtIdInput, JwtRevocationService, JwtVerifyInput } from "../Jwt.js";
8
- import { Jwks } from "../Jwt.js";
9
7
  import { AuthFlow, AuthFlowState, AuthResult } from "../AuthFlow.js";
10
- import type { AuthFlowService, AuthFlowStateService, LoginApprovalFinalizeService } from "../AuthFlow.js";
8
+ import type { AuthFlowService, AuthFlowFinalize, AuthFlowStateService, LoginApprovalFinalizeService } from "../AuthFlow.js";
9
+ import { AuthRateLimit } from "../AuthRateLimit.js";
10
+ import { EmailAuth } from "../EmailAuth.js";
11
+ import type { EmailAuthService } from "../EmailAuth.js";
11
12
  import { EmailOtpLogin } from "../EmailOtp.js";
12
- import type { EmailOtpLoginService, EmailOtpStartInput, EmailOtpVerifyInput } from "../EmailOtp.js";
13
+ import type { EmailOtpLoginService } from "../EmailOtp.js";
13
14
  import { EmailVerification, EmailVerificationFlow } from "../EmailVerification.js";
14
- import type { EmailVerificationFlowService, EmailVerificationService, EmailVerificationIssueInput, EmailVerificationVerifyInput } from "../EmailVerification.js";
15
- import type { Email, OAuthClientId, OAuthProviderId, SessionId, UnixMillis, UserId } from "../Identifiers.js";
15
+ import type { EmailVerificationFlowService, EmailVerificationService, EmailVerificationVerifyInput } from "../EmailVerification.js";
16
+ import type { OAuthClientId, OAuthProviderId, PermissionId, SessionId, UnixMillis, UserId } from "../Identifiers.js";
17
+ import { ChallengeId, CredentialId } from "../Identifiers.js";
18
+ import { IdentityManagement } from "../IdentityManagement.js";
19
+ import type { IdentityManagementError, IdentityManagementService } from "../IdentityManagement.js";
20
+ import type { JwksDocument, JwksService, JwtAudience, JwtIssueInput, JwtIssuerService, JwtRevokeJwtIdInput, JwtRevocationService, JwtVerifyInput } from "../Jwt.js";
21
+ import { Jwks, JwtIssuer, JwtRevocation } from "../Jwt.js";
16
22
  import { LoginApproval } from "../LoginApproval.js";
17
23
  import type { LoginApprovalReviewService, LoginApprovalService, LoginApprovalVerifyInput } from "../LoginApproval.js";
18
- import type { LoginRequestContext } from "../LoginRisk.js";
19
24
  import type { LoginNotificationReportInput, LoginNotificationService } from "../LoginNotification.js";
20
25
  import { MagicLinkLogin } from "../MagicLink.js";
21
- import type { MagicLinkLoginService, MagicLinkStartInput, MagicLinkVerifyInput } from "../MagicLink.js";
26
+ import type { MagicLinkLoginService } from "../MagicLink.js";
22
27
  import type { OAuthAccountUnlinkingResolution, OAuthAccountUnlinkingService, OAuthAuthorizationCodeTokenGrantService, OAuthAuthorizationStartInput, OAuthCallbackInput, OAuthClientCredentialsGrantService, OAuthClientAuthentication, OAuthCodeVerifier, OAuthLinkConfirmationConfirmInput, OAuthLinkConfirmationInspectInput, OAuthLinkConfirmationService, OAuthLinkConfirmationStartInput, OAuthProviderAuthorizationService, OAuthProviderConfig, OAuthProvidersService, OAuthRefreshTokenGrantService, OAuthStateService, OAuthTokenIntrospectionService, OAuthTokenRevocationService, ConfirmedOAuthLinkConfirmation, PendingOAuthLinkConfirmation, StartedOAuthAuthorization, StartedOAuthLinkConfirmation } from "../OAuth.js";
23
- import { OAuthAuthorizationCodeTokenGrant, OAuthProviderAuthorization } from "../OAuth.js";
24
- import { PasswordLogin, PasswordManagement, PasswordRegistration, PasswordReset } from "../Password.js";
25
- import { PasskeyCredentialId } from "../Passkey.js";
28
+ import { OAuthAuthorizationCodeTokenGrant, OAuthAccountUnlinking, OAuthProviderAuthorization, OAuthProviders, OAuthLinkConfirmation, OAuthState } from "../OAuth.js";
29
+ import { PasskeyCredentialId, PasskeyCredentialManagement, PasskeyOptions, PasskeyVerification } from "../Passkey.js";
26
30
  import type { FinishedPasskeyAuthentication, PasskeyAttestation, PasskeyAuthenticationFinishInput, PasskeyAuthenticationStartInput, PasskeyAuthenticatorSelection, PasskeyCredentialManagementService, PasskeyOptionsService, PasskeyPublicKeyCredentialParameters, PasskeyRelyingParty, PasskeyUserVerification, PasskeyVerificationService } from "../Passkey.js";
27
- import type { PasswordChangeInput, PasswordManagementService, PasswordLoginService, PasswordRegistrationService, PasswordResetService, PasswordResetStartInput, PasswordResetVerifyInput, PasswordSetInput, PasswordSignInInput, PasswordSignUpInput } from "../Password.js";
28
- import type { RecoveryCodeGenerateForUserInput, RecoveryCodeManagementRevokeInput, RecoveryCodeManagementService, RecoveryCodeVerifyForUserInput } from "../RecoveryCode.js";
31
+ import { PasswordHasher } from "../Password.js";
32
+ import type { PasswordHasherService } from "../Password.js";
33
+ import { PermissionAdministration } from "../Permission.js";
34
+ import type { PermissionDefinitionRecord } from "../Permission.js";
35
+ import type { RecoveryCodeGenerateForUserInput, RecoveryCodeRegenerateForUserInput, RecoveryCodeManagementRevokeInput, RecoveryCodeManagementService, RecoveryCodeVerifyForUserInput, RecoveryCodeLoginCommitStoreService } from "../RecoveryCode.js";
36
+ import { RecoveryCodeLoginCommitStore, RecoveryCodeManagement } from "../RecoveryCode.js";
29
37
  import type { RefreshTokenInfo, RefreshTokenManagementService, RefreshTokenRotateInput } from "../RefreshToken.js";
30
- import { SessionCookie, Sessions } from "../Sessions.js";
31
- import type { AuthMethodReference, CurrentSessionShape, SessionClaims, SessionCookieService, SessionCreateInput, SessionInfoShape, SessionsService, ValidatedSession } from "../Sessions.js";
38
+ import { RefreshTokenManagement } from "../RefreshToken.js";
32
39
  import { SecurityTimelineStore } from "../SecurityTimeline.js";
33
40
  import type { SecurityTimelineEvent, SecurityTimelineStoreService } from "../SecurityTimeline.js";
34
- import { UserStore } from "../Storage.js";
35
- import type { UserStoreService } from "../Storage.js";
36
- import type { TotpAlgorithm, TotpEnrollmentConfirmInput, TotpEnrollmentStartInput, TotpFactorManagementService, TotpFactorManagementRevokeInput, TotpVerifyForUserInput } from "../Totp.js";
41
+ import { SessionCookie, Sessions, RecoveryCodeSessionRotation, TotpSessionRotation } from "../Sessions.js";
42
+ import type { CurrentActorShape, CurrentSessionShape, SessionClaims, SessionCookieService, SessionCreateInput, SessionInfoShape, SessionsService, RecoveryCodeSessionRotationService, TotpSessionRotationService, ValidatedSession } from "../Sessions.js";
43
+ import { CredentialStore, IdentityStore, UserStore, VerificationStore } from "../Storage.js";
44
+ import type { CredentialStoreService, IdentityStoreService, UserStoreService, VerificationStoreService } from "../Storage.js";
45
+ import type { StrongFactorRemovalPolicyService } from "../StrongFactor.js";
46
+ import type { TotpAlgorithm, TotpEnrollmentConfirmInput, TotpEnrollmentStartInput, TotpFactorManagementService, TotpFactorManagementRevokeInput, TotpVerifyForUserInput, TotpLoginCommitStoreService } from "../Totp.js";
47
+ import { TotpFactorManagement, TotpLoginCommitStore } from "../Totp.js";
37
48
  import { TrustedDeviceStore } from "../TrustedDevice.js";
38
49
  import type { TrustedDeviceRecord, TrustedDeviceCookieService, TrustedDeviceService, TrustedDeviceStoreService } from "../TrustedDevice.js";
39
- import { AuthBadRequestError, AuthEmailAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthPolicyDeniedError, AuthRateLimitedError, AuthSchemaErrorMiddleware, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, OAuthTokenEndpointError, OAuthTokenIntrospectionEndpointError, OAuthTokenRevocationEndpointError } from "./Errors.js";
50
+ import { EmailAuthHttpApiGroup, EmailOtpHttpApiGroup, EmailVerificationHttpApiGroup, IdentityHttpApiGroup, LoginApprovalHttpApiGroup, MagicLinkHttpApiGroup, MfaHttpApiGroup, PasskeyHttpApiGroup, PasswordHttpApiGroup, RecoveryCodesHttpApiGroup, LoginNotificationHttpApiGroup, SessionHttpApiGroup, StepUpHttpApiGroup, TotpHttpApiGroup } from "./ClientApi.js";
51
+ import type { EmailAuthStartGuardRequest, EmailOtpStartGuardRequest, EmailOtpVerifyGuardRequest, EmailVerificationStartGuardRequest, MagicLinkStartGuardRequest, MagicLinkVerifyGuardRequest } from "./EmailGuards.js";
52
+ import { AuthBadRequestError, AuthConflictError, AuthIdentityAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthNotFoundError, AuthPolicyDeniedError, AuthSchemaErrorMiddleware, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, OAuthTokenEndpointError, OAuthTokenIntrospectionEndpointError, OAuthTokenRevocationEndpointError } from "./Errors.js";
53
+ import type { IdentityAvailabilityGuardRequest } from "./IdentityGuards.js";
54
+ import { AuthOriginCheckMiddleware } from "./Middleware.js";
55
+ import { AdminSecurityTimelineHttpOperations, AdminPermissionDefinitionHttpOperations, type AdminPermissionDefinitionHttpOperationRequirements, AdminSessionHttpOperations, AdminTrustedDeviceHttpOperations, ApiKeyHttpOperations, EmailAuthHttpOperations, EmailOtpHttpOperations, EmailVerificationHttpOperations, JwtDiscoveryHttpOperations, JwtHttpOperations, LoginApprovalHttpOperations, MagicLinkHttpOperations, MfaHttpOperations, OAuthHttpOperations, OAuthProviderAuthorizationHttpOperations, OAuthTokenHttpOperations, OidcDiscoveryHttpOperations, PasskeyHttpOperations, IdentityHttpOperations, RecoveryCodesHttpOperations, RefreshTokenHttpOperations, LoginNotificationHttpOperations, SecurityTimelineHttpOperations, SessionHttpOperations, StepUpHttpOperations, TotpHttpOperations, TrustedDeviceHttpOperations } from "./Operations/index.js";
56
+ import type { AuthRateLimitGuardRequest } from "./RequestGuards.js";
40
57
  import { OAuthProviderAuthorizationQuery } from "./Schemas.js";
41
- import type { AdminSecurityTimelineListQuery, AdminSessionListQuery, AdminSessionRevokeAllBody, AdminSessionRevokeBody, AdminTrustedDeviceListQuery, AdminTrustedDeviceRevokeBody, ApiKeyCreateBody, ApiKeyRevokeBody, EmailOtpStartBody, EmailOtpVerifyBody, EmailVerificationStartBody, EmailVerificationVerifyBody, LoginApprovalApproveBody, LoginApprovalFinalizeBody, LoginNotificationReportBody, LoginApprovalReviewStatusBody, JwtIntrospectBody, JwtJwksBody, JwtRevokeBody, MagicLinkStartBody, MagicLinkVerifyBody, MfaOptionsBody, OAuthAccountUnlinkBody, OAuthAccountUnlinkResolutionBody, OAuthAuthorizationCallbackBody, OAuthAuthorizationStartBody, OAuthLinkConfirmationConfirmBody, OAuthLinkConfirmationConfirmedBody, OAuthLinkConfirmationInspectBody, OAuthLinkConfirmationPendingBody, OAuthLinkConfirmationStartBody, OAuthLinkConfirmationStartedBody, OidcDiscoveryMetadataBody, PasskeyAuthenticationFinishBody, PasskeyAuthenticationStartBody, PasskeyCredentialRevokeBody, PasskeyMfaStartBody, PasskeyMfaVerifyBody, PasskeyRegistrationFinishBody, PasskeyRegistrationStartBody, PasswordChangeBody, PasswordResetStartBody, PasswordResetVerifyBody, PasswordSetBody, SessionRevokeBody, PasswordSignInBody, PasswordSignUpBody, RecoveryCodeGenerateBody, RecoveryCodeMfaVerifyBody, RecoveryCodeMfaVerifyForFlowBody, RefreshTokenRefreshBody, RecoveryCodeRevokeBody, RecoveryCodeVerifyBody, SecurityTimelineListQuery, StepUpPasskeyStartBody, StepUpPasskeyVerifyBody, StepUpRecoveryCodeVerifyBody, StepUpTotpVerifyBody, TrustedDeviceRevokeBody, TotpEnrollmentConfirmBody, TotpEnrollmentStartBody, TotpFactorRevokeBody, TotpMfaVerifyBody, TotpMfaVerifyForFlowBody, TotpVerifyBody } from "./Schemas.js";
42
- import { AuthApiRateLimit, AuthOriginCheckMiddleware, AuthRateLimitMiddleware } from "./Security.js";
43
- import type { AuthApiRateLimitService } from "./Security.js";
58
+ import type { AdminSecurityTimelineListQuery, AdminPermissionDefinitionCreateBody, AdminPermissionDefinitionGetQuery, AdminPermissionDefinitionListQuery, AdminPermissionDefinitionMutationBody, AdminPermissionDefinitionUpdateBody, AdminSessionListQuery, AdminSessionRevokeAllBody, AdminSessionRevokeBody, AdminTrustedDeviceListQuery, AdminTrustedDeviceRevokeBody, ApiKeyCreateBody, ApiKeyRevokeBody, EmailVerificationVerifyBody, LoginApprovalApproveBody, LoginApprovalFinalizeBody, LoginNotificationReportBody, LoginApprovalReviewStatusBody, JwtIntrospectBody, JwtJwksBody, JwtRevokeBody, MfaOptionsBody, OAuthAccountUnlinkBody, OAuthAccountUnlinkResolutionBody, OAuthAuthorizationCallbackBody, OAuthAuthorizationStartBody, OAuthLinkConfirmationConfirmBody, OAuthLinkConfirmationConfirmedBody, OAuthLinkConfirmationInspectBody, OAuthLinkConfirmationPendingBody, OAuthLinkConfirmationStartBody, OAuthLinkConfirmationStartedBody, OidcDiscoveryMetadataBody, PasskeyAuthenticationFinishBody, PasskeyAuthenticationStartBody, PasskeyCredentialRevokeBody, PasskeyMfaStartBody, PasskeyMfaVerifyBody, PasskeyRegistrationFinishBody, PasskeyRegistrationStartBody, IdentityAddBody, IdentityPrimaryBody, IdentityReplaceBody, IdentityRevokeBody, SessionRevokeBody, RecoveryCodeGenerateBody, RecoveryCodeRegenerateBody, RecoveryCodeMfaVerifyBody, RecoveryCodeMfaVerifyForFlowBody, RefreshTokenRefreshBody, RecoveryCodeRevokeBody, RecoveryCodeVerifyBody, SecurityTimelineListQuery, StepUpPasskeyStartBody, StepUpPasskeyVerifyBody, StepUpPasswordVerifyBody, StepUpRecoveryCodeVerifyBody, StepUpTotpVerifyBody, TrustedDeviceRevokeBody, TotpEnrollmentConfirmBody, TotpEnrollmentStartBody, TotpFactorRevokeBody, TotpMfaVerifyBody, TotpMfaVerifyForFlowBody, TotpVerifyBody } from "./Schemas.js";
44
59
  import { AuthHttp } from "./Transport.js";
45
60
  import type { AuthHttpService, LoginApprovalPendingCookieService } from "./Transport.js";
46
- export declare const passwordSignInInput: (payload: Schema.Schema.Type<typeof PasswordSignInBody>, trustedDeviceToken?: Redacted.Redacted<string>, request?: LoginRequestContext) => PasswordSignInInput;
47
- export declare const passwordSignUpInput: (payload: Schema.Schema.Type<typeof PasswordSignUpBody>, request?: LoginRequestContext) => PasswordSignUpInput;
48
- export declare const passwordResetStartInput: (payload: Schema.Schema.Type<typeof PasswordResetStartBody>) => PasswordResetStartInput;
49
- export declare const passwordResetVerifyInput: (payload: Schema.Schema.Type<typeof PasswordResetVerifyBody>) => PasswordResetVerifyInput;
50
- export declare const passwordSetInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasswordSetBody>) => PasswordSetInput;
51
- export declare const passwordChangeInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasswordChangeBody>) => PasswordChangeInput;
52
- export declare const emailVerificationStartInput: (payload: Schema.Schema.Type<typeof EmailVerificationStartBody>) => EmailVerificationIssueInput;
61
+ export { AuthClientProtocolApi, EmailAuthHttpApiGroup, EmailOtpHttpApiGroup, EmailVerificationHttpApiGroup, IdentityHttpApiGroup, LoginApprovalHttpApiGroup, MagicLinkHttpApiGroup, MfaHttpApiGroup, PasskeyHttpApiGroup, PasswordHttpApiGroup, RecoveryCodesHttpApiGroup, LoginNotificationHttpApiGroup, SessionHttpApiGroup, StepUpHttpApiGroup, TotpHttpApiGroup, } from "./ClientApi.js";
62
+ export { makePasswordChangeHandler, makePasswordResetStartHandler, makePasswordResetVerifyHandler, makePasswordSetHandler, makePasswordSignInHandler, makePasswordSignUpHandler, passwordChangeInput, passwordSetInput, PasswordHttpApi, PasswordHttpApiGroupLive, PasswordHttpApiLive, PasswordHttpOperationsLive, } from "./Password.js";
63
+ export type { PasswordChangeHandlerRequest, PasswordResetStartHandlerRequest, PasswordResetVerifyHandlerRequest, PasswordSetHandlerRequest, PasswordSignInHandlerRequest, PasswordSignUpHandlerRequest, } from "./Password.js";
53
64
  export declare const emailVerificationVerifyInput: (payload: Schema.Schema.Type<typeof EmailVerificationVerifyBody>) => EmailVerificationVerifyInput;
54
- export declare const emailOtpStartInput: (payload: Schema.Schema.Type<typeof EmailOtpStartBody>) => EmailOtpStartInput;
55
- export declare const emailOtpVerifyInput: (payload: Schema.Schema.Type<typeof EmailOtpVerifyBody>, trustedDeviceToken?: Redacted.Redacted<string>, request?: LoginRequestContext) => EmailOtpVerifyInput;
56
- export declare const magicLinkStartInput: (payload: Schema.Schema.Type<typeof MagicLinkStartBody>) => MagicLinkStartInput;
57
- export declare const magicLinkVerifyInput: (payload: Schema.Schema.Type<typeof MagicLinkVerifyBody>, trustedDeviceToken?: Redacted.Redacted<string>, request?: LoginRequestContext) => MagicLinkVerifyInput;
58
65
  export interface OAuthAuthorizationCodeVerifierStoreInput {
59
66
  readonly payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>;
60
67
  readonly started: StartedOAuthAuthorization;
@@ -119,16 +126,16 @@ export interface OAuthLinkConfirmationConfirmHttpOptions {
119
126
  }
120
127
  export declare const oauthAuthorizationStartInput: (payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>, provider: OAuthProviderConfig, options?: OAuthAuthorizationStartHttpOptions) => OAuthAuthorizationStartInput;
121
128
  export declare const oauthAuthorizationStartedHttpBody: (started: StartedOAuthAuthorization) => {
122
- redirectUri: string;
123
- scopes: readonly string[];
124
- nonce?: import("../OAuth.js").OAuthNonce | undefined;
125
129
  providerId: OAuthProviderId;
126
130
  authorizationUrl: string;
127
131
  state: import("../OAuth.js").OAuthStateToken;
128
- challengeId: import("../Identifiers.js").ChallengeId;
132
+ challengeId: ChallengeId;
129
133
  expiresAt: UnixMillis;
130
134
  codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
131
135
  codeChallengeMethod: "S256";
136
+ nonce?: import("../OAuth.js").OAuthNonce | undefined;
137
+ redirectUri: string;
138
+ scopes: readonly string[];
132
139
  };
133
140
  export declare const oauthLinkConfirmationStartInput: (payload: Schema.Schema.Type<typeof OAuthLinkConfirmationStartBody>, options?: Pick<OAuthLinkConfirmationStartHttpOptions, "ttl">) => Effect.Effect<OAuthLinkConfirmationStartInput, AuthBadRequestError>;
134
141
  export declare const oauthLinkConfirmationInspectInput: (payload: Schema.Schema.Type<typeof OAuthLinkConfirmationInspectBody>) => OAuthLinkConfirmationInspectInput;
@@ -175,6 +182,17 @@ export interface PasskeyFinishHttpOptions {
175
182
  readonly expectedOrigin: string | readonly string[];
176
183
  readonly requireUserVerification?: boolean;
177
184
  }
185
+ export interface PasskeyRegistrationUser {
186
+ readonly userName: string;
187
+ readonly userDisplayName: string;
188
+ readonly metadata?: Readonly<Record<string, unknown>>;
189
+ }
190
+ export interface PasskeyRegistrationUserResolverInput {
191
+ readonly currentSession: CurrentSessionShape;
192
+ readonly actor?: CurrentActorShape;
193
+ readonly request: HttpServerRequest.HttpServerRequest;
194
+ }
195
+ export type PasskeyRegistrationUserResolver = (input: PasskeyRegistrationUserResolverInput) => Effect.Effect<PasskeyRegistrationUser, AuthBadRequestError | AuthInternalError>;
178
196
  export interface TotpEnrollmentStartHttpOptions {
179
197
  readonly issuer: string;
180
198
  readonly secretBytes?: number;
@@ -190,43 +208,95 @@ export interface RecoveryCodeGenerateHttpOptions {
190
208
  readonly length?: number;
191
209
  readonly groupSize?: number;
192
210
  }
193
- export declare const passkeyRegistrationStartInput: (payload: Schema.Schema.Type<typeof PasskeyRegistrationStartBody>, options: PasskeyRegistrationStartHttpOptions) => {
194
- metadata?: {
195
- readonly [x: string]: unknown;
196
- } | undefined;
197
- attestation?: PasskeyAttestation | undefined;
198
- authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
199
- pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
211
+ export interface PasskeyHttpConfigValue {
212
+ readonly relyingParty: PasskeyRelyingParty;
213
+ readonly expectedOrigin: string | readonly string[];
214
+ readonly timeout?: number;
215
+ readonly pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[];
216
+ readonly authenticatorSelection?: PasskeyAuthenticatorSelection;
217
+ readonly attestation?: PasskeyAttestation;
218
+ readonly userVerification?: PasskeyUserVerification;
219
+ readonly requireUserVerification?: boolean;
220
+ }
221
+ declare const PasskeyHttpConfig_base: Context.ServiceClass<PasskeyHttpConfig, "auth/http/config/Passkey", PasskeyHttpConfigValue>;
222
+ export declare class PasskeyHttpConfig extends PasskeyHttpConfig_base {
223
+ }
224
+ export declare namespace PasskeyHttpConfig {
225
+ const make: (config: PasskeyHttpConfigValue) => PasskeyHttpConfigValue;
226
+ }
227
+ export declare const PasskeyHttpConfigLive: (config: PasskeyHttpConfigValue) => Layer.Layer<PasskeyHttpConfig, never, never>;
228
+ export interface TotpHttpConfigValue extends TotpEnrollmentStartHttpOptions, TotpCodeHttpOptions {
229
+ }
230
+ declare const TotpHttpConfig_base: Context.ServiceClass<TotpHttpConfig, "auth/http/config/Totp", TotpHttpConfigValue>;
231
+ export declare class TotpHttpConfig extends TotpHttpConfig_base {
232
+ }
233
+ export declare namespace TotpHttpConfig {
234
+ const make: (config: TotpHttpConfigValue) => TotpHttpConfigValue;
235
+ }
236
+ export declare const TotpHttpConfigLive: (config: TotpHttpConfigValue) => Layer.Layer<TotpHttpConfig, never, never>;
237
+ export declare const RecoveryCodeHttpConfig: Context.Reference<RecoveryCodeGenerateHttpOptions>;
238
+ export declare const RecoveryCodeHttpConfigLive: (config?: RecoveryCodeGenerateHttpOptions) => Layer.Layer<never, never, never>;
239
+ export interface OAuthHttpConfigValue extends OAuthAuthorizationStartHttpOptions, OAuthAccountUnlinkHttpOptions, OAuthLinkConfirmationStartHttpOptions, OAuthLinkConfirmationConfirmHttpOptions {
240
+ }
241
+ export declare const OAuthHttpConfig: Context.Reference<OAuthHttpConfigValue>;
242
+ export declare const OAuthHttpConfigLive: (config?: OAuthHttpConfigValue) => Layer.Layer<never, never, never>;
243
+ export declare const OAuthTokenHttpConfig: Context.Reference<OAuthTokenClientAuthenticationHttpOptions>;
244
+ export declare const OAuthTokenHttpConfigLive: (config?: OAuthTokenClientAuthenticationHttpOptions) => Layer.Layer<never, never, never>;
245
+ declare const RefreshTokenHttpConfig_base: Context.ServiceClass<RefreshTokenHttpConfig, "auth/http/config/RefreshToken", RefreshTokenRefreshHttpOptions>;
246
+ export declare class RefreshTokenHttpConfig extends RefreshTokenHttpConfig_base {
247
+ }
248
+ export declare namespace RefreshTokenHttpConfig {
249
+ const make: (config: RefreshTokenRefreshHttpOptions) => RefreshTokenRefreshHttpOptions;
250
+ }
251
+ export declare const RefreshTokenHttpConfigLive: (config: RefreshTokenRefreshHttpOptions) => Layer.Layer<RefreshTokenHttpConfig, never, never>;
252
+ export declare const JwtHttpConfig: Context.Reference<JwtIntrospectionHttpOptions>;
253
+ export declare const JwtHttpConfigLive: (config?: JwtIntrospectionHttpOptions) => Layer.Layer<never, never, never>;
254
+ export declare const passkeyRegistrationStartHttpOptions: (config: PasskeyHttpConfigValue) => PasskeyRegistrationStartHttpOptions;
255
+ export declare const passkeyAuthenticationStartHttpOptions: (config: PasskeyHttpConfigValue) => PasskeyAuthenticationStartHttpOptions;
256
+ export declare const passkeyFinishHttpOptions: (config: PasskeyHttpConfigValue) => PasskeyFinishHttpOptions;
257
+ export declare const passkeyAuthenticationSessionInput: ({ finished, payload, }: PasskeyAuthenticationSessionContext) => SessionCreateInput;
258
+ export declare const passkeyRegistrationStartInput: (userId: UserId, user: PasskeyRegistrationUser, options: PasskeyRegistrationStartHttpOptions) => {
259
+ metadata?: undefined;
260
+ relyingParty: PasskeyRelyingParty;
261
+ userId: UserId;
262
+ userName: string;
263
+ userDisplayName: string;
200
264
  timeout?: number | undefined;
265
+ pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
266
+ authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
267
+ attestation?: PasskeyAttestation | undefined;
268
+ } | {
269
+ metadata: Readonly<Record<string, unknown>>;
201
270
  relyingParty: PasskeyRelyingParty;
202
- userId: string & import("effect/Brand").Brand<"auth/UserId">;
271
+ userId: UserId;
203
272
  userName: string;
204
273
  userDisplayName: string;
274
+ timeout?: number | undefined;
275
+ pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
276
+ authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
277
+ attestation?: PasskeyAttestation | undefined;
205
278
  };
206
279
  export declare const passkeyAuthenticationStartInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationStartBody>, options: PasskeyAuthenticationStartHttpOptions) => {
280
+ relyingPartyId: string;
281
+ userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
282
+ timeout?: number | undefined;
283
+ userVerification?: PasskeyUserVerification | undefined;
207
284
  metadata?: {
208
285
  readonly [x: string]: unknown;
209
286
  } | undefined;
210
- userVerification?: PasskeyUserVerification | undefined;
211
- timeout?: number | undefined;
212
- userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
213
- relyingPartyId: string;
214
287
  };
215
288
  export declare const passkeyMfaStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyMfaStartBody>, options: PasskeyAuthenticationStartHttpOptions) => PasskeyAuthenticationStartInput;
216
- export declare const passkeyRegistrationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>, options: PasskeyFinishHttpOptions) => {
217
- metadata?: {
218
- readonly [x: string]: unknown;
219
- } | undefined;
220
- requireUserVerification?: boolean | undefined;
289
+ export declare const passkeyRegistrationFinishInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>, user: PasskeyRegistrationUser, options: PasskeyFinishHttpOptions) => {
290
+ metadata?: undefined;
221
291
  challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
222
- userId: string & import("effect/Brand").Brand<"auth/UserId">;
292
+ userId: UserId;
223
293
  response: {
224
294
  readonly id: string;
295
+ readonly rawId?: string | undefined;
225
296
  readonly type: "public-key";
226
297
  readonly response: {
227
298
  readonly [x: string]: unknown;
228
299
  };
229
- readonly rawId?: string | undefined;
230
300
  readonly authenticatorAttachment?: string | undefined;
231
301
  readonly clientExtensionResults?: {
232
302
  readonly [x: string]: unknown;
@@ -234,61 +304,85 @@ export declare const passkeyRegistrationFinishInput: (payload: Schema.Schema.Typ
234
304
  };
235
305
  relyingPartyId: string;
236
306
  expectedOrigin: string | readonly string[];
237
- };
238
- export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>, options: PasskeyFinishHttpOptions) => {
239
- metadata?: {
240
- readonly [x: string]: unknown;
241
- } | undefined;
242
307
  requireUserVerification?: boolean | undefined;
308
+ } | {
309
+ metadata: Readonly<Record<string, unknown>>;
310
+ challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
311
+ userId: UserId;
312
+ response: {
313
+ readonly id: string;
314
+ readonly rawId?: string | undefined;
315
+ readonly type: "public-key";
316
+ readonly response: {
317
+ readonly [x: string]: unknown;
318
+ };
319
+ readonly authenticatorAttachment?: string | undefined;
320
+ readonly clientExtensionResults?: {
321
+ readonly [x: string]: unknown;
322
+ } | undefined;
323
+ };
243
324
  relyingPartyId: string;
244
325
  expectedOrigin: string | readonly string[];
245
- userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
326
+ requireUserVerification?: boolean | undefined;
327
+ };
328
+ export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>, options: PasskeyFinishHttpOptions) => {
246
329
  challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
247
330
  response: {
248
331
  readonly id: string;
332
+ readonly rawId?: string | undefined;
249
333
  readonly type: "public-key";
250
334
  readonly response: {
251
335
  readonly [x: string]: unknown;
252
336
  };
253
- readonly rawId?: string | undefined;
254
337
  readonly authenticatorAttachment?: string | undefined;
255
338
  readonly clientExtensionResults?: {
256
339
  readonly [x: string]: unknown;
257
340
  } | undefined;
258
341
  };
259
- };
260
- export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>, options: PasskeyFinishHttpOptions) => {
342
+ userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
343
+ relyingPartyId: string;
344
+ expectedOrigin: string | readonly string[];
345
+ requireUserVerification?: boolean | undefined;
261
346
  metadata?: {
262
347
  readonly [x: string]: unknown;
263
348
  } | undefined;
264
- requireUserVerification?: boolean | undefined;
265
- relyingPartyId: string;
266
- expectedOrigin: string | readonly string[];
267
- userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
349
+ };
350
+ export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>, options: PasskeyFinishHttpOptions, expectedUserId?: UserId) => {
268
351
  challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
269
352
  response: {
270
353
  readonly id: string;
354
+ readonly rawId?: string | undefined;
271
355
  readonly type: "public-key";
272
356
  readonly response: {
273
357
  readonly [x: string]: unknown;
274
358
  };
275
- readonly rawId?: string | undefined;
276
359
  readonly authenticatorAttachment?: string | undefined;
277
360
  readonly clientExtensionResults?: {
278
361
  readonly [x: string]: unknown;
279
362
  } | undefined;
280
363
  };
364
+ userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
365
+ relyingPartyId: string;
366
+ expectedOrigin: string | readonly string[];
367
+ requireUserVerification: boolean;
368
+ expectedChallengeMetadata: {
369
+ flowId: string & import("effect/Brand").Brand<"auth/AuthFlowId">;
370
+ };
371
+ metadata?: {
372
+ readonly [x: string]: unknown;
373
+ } | undefined;
281
374
  };
282
375
  export declare const passkeyCredentialRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyCredentialRevokeBody>) => {
283
- reason?: string | undefined;
284
376
  userId: UserId;
285
377
  credentialId: PasskeyCredentialId;
378
+ reason?: string | undefined;
286
379
  };
287
380
  export declare const totpEnrollmentStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpEnrollmentStartBody>, options: TotpEnrollmentStartHttpOptions) => TotpEnrollmentStartInput;
288
381
  export declare const totpEnrollmentConfirmInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpEnrollmentConfirmBody>, options?: TotpCodeHttpOptions) => TotpEnrollmentConfirmInput;
289
382
  export declare const totpVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpVerifyBody>, options?: TotpCodeHttpOptions) => TotpVerifyForUserInput;
290
383
  export declare const totpFactorRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpFactorRevokeBody>) => TotpFactorManagementRevokeInput;
291
384
  export declare const recoveryCodeGenerateInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeGenerateBody>, options?: RecoveryCodeGenerateHttpOptions) => RecoveryCodeGenerateForUserInput;
385
+ export declare const recoveryCodeRegenerateInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeRegenerateBody>, options?: RecoveryCodeGenerateHttpOptions) => RecoveryCodeRegenerateForUserInput;
292
386
  export declare const recoveryCodeVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeVerifyBody>) => RecoveryCodeVerifyForUserInput;
293
387
  export declare const recoveryCodeRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeRevokeBody>) => RecoveryCodeManagementRevokeInput;
294
388
  export declare const apiKeyCreateInput: (userId: UserId, payload: Schema.Schema.Type<typeof ApiKeyCreateBody>) => ApiKeyCreateForUserInput;
@@ -318,6 +412,12 @@ export declare const totpMfaVerifyForFlowInput: (userId: UserId, payload: Schema
318
412
  export declare const recoveryCodeMfaVerifyInput: (payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyBody>) => RecoveryCodeVerifyForUserInput;
319
413
  export declare const recoveryCodeMfaVerifyForFlowInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyForFlowBody>) => RecoveryCodeVerifyForUserInput;
320
414
  export declare const stepUpTotpVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpTotpVerifyBody>, options?: TotpCodeHttpOptions) => TotpVerifyForUserInput;
415
+ export declare const stepUpPasswordVerifyInput: (payload: Schema.Schema.Type<typeof StepUpPasswordVerifyBody>) => {
416
+ password: Redacted.Redacted<string>;
417
+ metadata?: {
418
+ readonly [x: string]: unknown;
419
+ } | undefined;
420
+ };
321
421
  export declare const stepUpRecoveryCodeVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpRecoveryCodeVerifyBody>) => RecoveryCodeVerifyForUserInput;
322
422
  export declare const stepUpPasskeyStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpPasskeyStartBody>, options: PasskeyAuthenticationStartHttpOptions) => PasskeyAuthenticationStartInput;
323
423
  export declare const stepUpPasskeyVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpPasskeyVerifyBody>, options: PasskeyFinishHttpOptions) => PasskeyAuthenticationFinishInput;
@@ -340,59 +440,43 @@ export interface LoginApprovalFinalizeHttpInput {
340
440
  export declare const loginApprovalFinalizeInput: (payload: Schema.Schema.Type<typeof LoginApprovalFinalizeBody>) => LoginApprovalFinalizeHttpInput;
341
441
  export declare const loginNotificationReportInput: (payload: Schema.Schema.Type<typeof LoginNotificationReportBody>) => LoginNotificationReportInput;
342
442
  export declare const adminSessionHttpBody: (session: SessionInfoShape) => {
343
- longitude?: number | undefined;
344
- latitude?: number | undefined;
345
- city?: string | undefined;
346
- region?: string | undefined;
347
- country?: string | undefined;
348
- userAgent?: string | undefined;
349
- ip?: string | undefined;
350
- mfaVerifiedAt?: UnixMillis | undefined;
351
- expiresAt: UnixMillis;
352
- aal: import("../Sessions.js").AuthAssuranceLevel;
353
- amr: readonly AuthMethodReference[];
354
- lastSeenAt?: UnixMillis | undefined;
355
443
  sessionId: SessionId;
356
444
  userId: UserId;
357
445
  createdAt: UnixMillis;
358
446
  authTime: UnixMillis;
447
+ lastSeenAt?: UnixMillis | undefined;
448
+ expiresAt: UnixMillis;
449
+ aal: import("../Assurance.js").AssuranceLevel;
450
+ amr: readonly import("../Assurance.js").AuthMethodReference[];
451
+ mfaVerifiedAt?: UnixMillis | undefined;
452
+ ip?: string | undefined;
453
+ userAgent?: string | undefined;
454
+ country?: string | undefined;
455
+ region?: string | undefined;
456
+ city?: string | undefined;
457
+ latitude?: number | undefined;
458
+ longitude?: number | undefined;
359
459
  };
360
460
  export declare const stepUpAuthenticatedHttpBody: (session: CurrentSessionShape) => {
361
- mfaVerifiedAt?: UnixMillis | undefined;
362
461
  type: "authenticated";
363
462
  expiresAt: number;
364
- aal: import("../Sessions.js").AuthAssuranceLevel;
365
- amr: readonly AuthMethodReference[];
366
- } | {
367
- claims: SessionClaims;
463
+ aal: import("../Assurance.js").AssuranceLevel;
464
+ amr: readonly import("../Assurance.js").AuthMethodReference[];
368
465
  mfaVerifiedAt?: UnixMillis | undefined;
466
+ } | {
369
467
  type: "authenticated";
370
468
  expiresAt: number;
371
- aal: import("../Sessions.js").AuthAssuranceLevel;
372
- amr: readonly AuthMethodReference[];
373
- };
374
- export type PasswordSignInHandlerRequest = {
375
- readonly payload: Schema.Schema.Type<typeof PasswordSignInBody>;
376
- readonly request?: HttpServerRequest.HttpServerRequest;
377
- };
378
- export type PasswordSignUpHandlerRequest = {
379
- readonly payload: Schema.Schema.Type<typeof PasswordSignUpBody>;
380
- readonly request?: HttpServerRequest.HttpServerRequest;
381
- };
382
- export type PasswordResetStartHandlerRequest = {
383
- readonly payload: Schema.Schema.Type<typeof PasswordResetStartBody>;
384
- };
385
- export type PasswordResetVerifyHandlerRequest = {
386
- readonly payload: Schema.Schema.Type<typeof PasswordResetVerifyBody>;
387
- };
388
- export type PasswordSetHandlerRequest = {
389
- readonly payload: Schema.Schema.Type<typeof PasswordSetBody>;
390
- readonly request: HttpServerRequest.HttpServerRequest;
391
- };
392
- export type PasswordChangeHandlerRequest = {
393
- readonly payload: Schema.Schema.Type<typeof PasswordChangeBody>;
394
- readonly request: HttpServerRequest.HttpServerRequest;
469
+ aal: import("../Assurance.js").AssuranceLevel;
470
+ amr: readonly import("../Assurance.js").AuthMethodReference[];
471
+ mfaVerifiedAt?: UnixMillis | undefined;
472
+ claims: SessionClaims;
395
473
  };
474
+ type AuthRateLimitHandlerRequestData = AuthRateLimitGuardRequest;
475
+ export declare const makePasskeyRegistrationUserResolver: (dependencies: {
476
+ readonly users: UserStoreService;
477
+ readonly identities: IdentityStoreService;
478
+ }) => PasskeyRegistrationUserResolver;
479
+ export declare const identityHttpError: (error: IdentityManagementError) => AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError;
396
480
  export type SessionHandlerRequest = {
397
481
  readonly request: HttpServerRequest.HttpServerRequest;
398
482
  };
@@ -426,8 +510,39 @@ export interface AdminSessionAuthorizationService {
426
510
  declare const AdminSessionAuthorization_base: Context.ServiceClass<AdminSessionAuthorization, "auth/AdminSessionAuthorization", AdminSessionAuthorizationService>;
427
511
  export declare class AdminSessionAuthorization extends AdminSessionAuthorization_base {
428
512
  }
429
- export declare namespace AdminSessionAuthorization {
430
- const make: (service: AdminSessionAuthorizationService) => AdminSessionAuthorizationService;
513
+ export type AdminPermissionDefinitionCreateHandlerRequest = {
514
+ readonly payload: Schema.Schema.Type<typeof AdminPermissionDefinitionCreateBody>;
515
+ readonly request: HttpServerRequest.HttpServerRequest;
516
+ };
517
+ export type AdminPermissionDefinitionGetHandlerRequest = {
518
+ readonly query: Schema.Schema.Type<typeof AdminPermissionDefinitionGetQuery>;
519
+ readonly request: HttpServerRequest.HttpServerRequest;
520
+ };
521
+ export type AdminPermissionDefinitionListHandlerRequest = {
522
+ readonly query: Schema.Schema.Type<typeof AdminPermissionDefinitionListQuery>;
523
+ readonly request: HttpServerRequest.HttpServerRequest;
524
+ };
525
+ export type AdminPermissionDefinitionUpdateHandlerRequest = {
526
+ readonly payload: Schema.Schema.Type<typeof AdminPermissionDefinitionUpdateBody>;
527
+ readonly request: HttpServerRequest.HttpServerRequest;
528
+ };
529
+ export type AdminPermissionDefinitionMutationHandlerRequest = {
530
+ readonly payload: Schema.Schema.Type<typeof AdminPermissionDefinitionMutationBody>;
531
+ readonly request: HttpServerRequest.HttpServerRequest;
532
+ };
533
+ export type AdminPermissionDefinitionAuthorizationAction = "create" | "get" | "list" | "update" | "disable" | "enable" | "delete";
534
+ export interface AdminPermissionDefinitionAuthorizationInput {
535
+ readonly currentSession: CurrentSessionShape;
536
+ readonly action: AdminPermissionDefinitionAuthorizationAction;
537
+ readonly request: HttpServerRequest.HttpServerRequest;
538
+ readonly permissionId?: PermissionId;
539
+ readonly scopeType?: string | null;
540
+ }
541
+ export interface AdminPermissionDefinitionAuthorizationService {
542
+ readonly authorize: (input: AdminPermissionDefinitionAuthorizationInput) => Effect.Effect<void, AuthPolicyDeniedError | AuthInternalError>;
543
+ }
544
+ declare const AdminPermissionDefinitionAuthorization_base: Context.ServiceClass<AdminPermissionDefinitionAuthorization, "auth/AdminPermissionDefinitionAuthorization", AdminPermissionDefinitionAuthorizationService>;
545
+ export declare class AdminPermissionDefinitionAuthorization extends AdminPermissionDefinitionAuthorization_base {
431
546
  }
432
547
  export type LoginNotificationReportHandlerRequest = {
433
548
  readonly payload: Schema.Schema.Type<typeof LoginNotificationReportBody>;
@@ -451,9 +566,6 @@ export interface AdminSecurityTimelineAuthorizationService {
451
566
  declare const AdminSecurityTimelineAuthorization_base: Context.ServiceClass<AdminSecurityTimelineAuthorization, "auth/AdminSecurityTimelineAuthorization", AdminSecurityTimelineAuthorizationService>;
452
567
  export declare class AdminSecurityTimelineAuthorization extends AdminSecurityTimelineAuthorization_base {
453
568
  }
454
- export declare namespace AdminSecurityTimelineAuthorization {
455
- const make: (service: AdminSecurityTimelineAuthorizationService) => AdminSecurityTimelineAuthorizationService;
456
- }
457
569
  export type TrustedDeviceListHandlerRequest = {
458
570
  readonly request: HttpServerRequest.HttpServerRequest;
459
571
  };
@@ -483,30 +595,16 @@ export interface AdminTrustedDeviceAuthorizationService {
483
595
  declare const AdminTrustedDeviceAuthorization_base: Context.ServiceClass<AdminTrustedDeviceAuthorization, "auth/AdminTrustedDeviceAuthorization", AdminTrustedDeviceAuthorizationService>;
484
596
  export declare class AdminTrustedDeviceAuthorization extends AdminTrustedDeviceAuthorization_base {
485
597
  }
486
- export declare namespace AdminTrustedDeviceAuthorization {
487
- const make: (service: AdminTrustedDeviceAuthorizationService) => AdminTrustedDeviceAuthorizationService;
488
- }
489
- export type EmailVerificationStartHandlerRequest = {
490
- readonly payload: Schema.Schema.Type<typeof EmailVerificationStartBody>;
491
- };
598
+ export type EmailVerificationStartHandlerRequest = EmailVerificationStartGuardRequest;
492
599
  export type EmailVerificationVerifyHandlerRequest = {
493
600
  readonly payload: Schema.Schema.Type<typeof EmailVerificationVerifyBody>;
494
601
  readonly request: HttpServerRequest.HttpServerRequest;
495
602
  };
496
- export type EmailOtpStartHandlerRequest = {
497
- readonly payload: Schema.Schema.Type<typeof EmailOtpStartBody>;
498
- };
499
- export type EmailOtpVerifyHandlerRequest = {
500
- readonly payload: Schema.Schema.Type<typeof EmailOtpVerifyBody>;
501
- readonly request?: HttpServerRequest.HttpServerRequest;
502
- };
503
- export type MagicLinkStartHandlerRequest = {
504
- readonly payload: Schema.Schema.Type<typeof MagicLinkStartBody>;
505
- };
506
- export type MagicLinkVerifyHandlerRequest = {
507
- readonly payload: Schema.Schema.Type<typeof MagicLinkVerifyBody>;
508
- readonly request?: HttpServerRequest.HttpServerRequest;
509
- };
603
+ export type EmailOtpStartHandlerRequest = EmailOtpStartGuardRequest;
604
+ export type EmailOtpVerifyHandlerRequest = EmailOtpVerifyGuardRequest;
605
+ export type EmailAuthStartHandlerRequest = EmailAuthStartGuardRequest;
606
+ export type MagicLinkStartHandlerRequest = MagicLinkStartGuardRequest;
607
+ export type MagicLinkVerifyHandlerRequest = MagicLinkVerifyGuardRequest;
510
608
  export type OAuthAuthorizationStartHandlerRequest = {
511
609
  readonly payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>;
512
610
  };
@@ -537,16 +635,18 @@ export type OAuthLinkConfirmationConfirmHandlerRequest = {
537
635
  readonly payload: Schema.Schema.Type<typeof OAuthLinkConfirmationConfirmBody>;
538
636
  readonly request?: HttpServerRequest.HttpServerRequest;
539
637
  };
540
- export type PasskeyRegistrationStartHandlerRequest = {
638
+ export type PasskeyRegistrationStartHandlerRequest = AuthRateLimitHandlerRequestData & {
541
639
  readonly payload: Schema.Schema.Type<typeof PasskeyRegistrationStartBody>;
640
+ readonly request: HttpServerRequest.HttpServerRequest;
542
641
  };
543
- export type PasskeyRegistrationFinishHandlerRequest = {
642
+ export type PasskeyRegistrationFinishHandlerRequest = AuthRateLimitHandlerRequestData & {
544
643
  readonly payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>;
644
+ readonly request: HttpServerRequest.HttpServerRequest;
545
645
  };
546
- export type PasskeyAuthenticationStartHandlerRequest = {
646
+ export type PasskeyAuthenticationStartHandlerRequest = AuthRateLimitHandlerRequestData & {
547
647
  readonly payload: Schema.Schema.Type<typeof PasskeyAuthenticationStartBody>;
548
648
  };
549
- export type PasskeyAuthenticationFinishHandlerRequest = {
649
+ export type PasskeyAuthenticationFinishHandlerRequest = AuthRateLimitHandlerRequestData & {
550
650
  readonly payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>;
551
651
  readonly request?: HttpServerRequest.HttpServerRequest;
552
652
  };
@@ -580,6 +680,10 @@ export type RecoveryCodeGenerateHandlerRequest = {
580
680
  readonly payload: Schema.Schema.Type<typeof RecoveryCodeGenerateBody>;
581
681
  readonly request: HttpServerRequest.HttpServerRequest;
582
682
  };
683
+ export type RecoveryCodeRegenerateHandlerRequest = {
684
+ readonly payload: Schema.Schema.Type<typeof RecoveryCodeRegenerateBody>;
685
+ readonly request: HttpServerRequest.HttpServerRequest;
686
+ };
583
687
  export type RecoveryCodeVerifyHandlerRequest = {
584
688
  readonly payload: Schema.Schema.Type<typeof RecoveryCodeVerifyBody>;
585
689
  readonly request: HttpServerRequest.HttpServerRequest;
@@ -620,29 +724,26 @@ export interface OidcDiscoveryMetadataService {
620
724
  declare const OidcDiscoveryMetadata_base: Context.ServiceClass<OidcDiscoveryMetadata, "auth/OidcDiscoveryMetadata", OidcDiscoveryMetadataService>;
621
725
  export declare class OidcDiscoveryMetadata extends OidcDiscoveryMetadata_base {
622
726
  }
623
- export declare namespace OidcDiscoveryMetadata {
624
- const make: (service: OidcDiscoveryMetadataService) => OidcDiscoveryMetadataService;
625
- }
626
727
  export declare const OidcDiscoveryMetadataLive: (metadata: OidcDiscoveryMetadataShape) => Layer.Layer<OidcDiscoveryMetadata, never, never>;
627
- export type TotpMfaVerifyHandlerRequest = {
728
+ export type TotpMfaVerifyHandlerRequest = AuthRateLimitHandlerRequestData & {
628
729
  readonly payload: Schema.Schema.Type<typeof TotpMfaVerifyBody>;
629
730
  };
630
- export type TotpMfaVerifyForFlowHandlerRequest = {
731
+ export type TotpMfaVerifyForFlowHandlerRequest = AuthRateLimitHandlerRequestData & {
631
732
  readonly payload: Schema.Schema.Type<typeof TotpMfaVerifyForFlowBody>;
632
733
  };
633
- export type MfaOptionsHandlerRequest = {
734
+ export type MfaOptionsHandlerRequest = AuthRateLimitHandlerRequestData & {
634
735
  readonly payload: Schema.Schema.Type<typeof MfaOptionsBody>;
635
736
  };
636
- export type RecoveryCodeMfaVerifyHandlerRequest = {
737
+ export type RecoveryCodeMfaVerifyHandlerRequest = AuthRateLimitHandlerRequestData & {
637
738
  readonly payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyBody>;
638
739
  };
639
- export type RecoveryCodeMfaVerifyForFlowHandlerRequest = {
740
+ export type RecoveryCodeMfaVerifyForFlowHandlerRequest = AuthRateLimitHandlerRequestData & {
640
741
  readonly payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyForFlowBody>;
641
742
  };
642
- export type PasskeyMfaStartHandlerRequest = {
743
+ export type PasskeyMfaStartHandlerRequest = AuthRateLimitHandlerRequestData & {
643
744
  readonly payload: Schema.Schema.Type<typeof PasskeyMfaStartBody>;
644
745
  };
645
- export type PasskeyMfaVerifyHandlerRequest = {
746
+ export type PasskeyMfaVerifyHandlerRequest = AuthRateLimitHandlerRequestData & {
646
747
  readonly payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>;
647
748
  };
648
749
  export type StepUpOptionsHandlerRequest = {
@@ -652,6 +753,10 @@ export type StepUpTotpVerifyHandlerRequest = {
652
753
  readonly payload: Schema.Schema.Type<typeof StepUpTotpVerifyBody>;
653
754
  readonly request: HttpServerRequest.HttpServerRequest;
654
755
  };
756
+ export type StepUpPasswordVerifyHandlerRequest = {
757
+ readonly payload: Schema.Schema.Type<typeof StepUpPasswordVerifyBody>;
758
+ readonly request: HttpServerRequest.HttpServerRequest;
759
+ };
655
760
  export type StepUpRecoveryCodeVerifyHandlerRequest = {
656
761
  readonly payload: Schema.Schema.Type<typeof StepUpRecoveryCodeVerifyBody>;
657
762
  readonly request: HttpServerRequest.HttpServerRequest;
@@ -680,46 +785,16 @@ export type LoginApprovalFinalizeHandlerRequest = {
680
785
  readonly payload: Schema.Schema.Type<typeof LoginApprovalFinalizeBody>;
681
786
  readonly request: HttpServerRequest.HttpServerRequest;
682
787
  };
683
- export declare const makePasswordSignInHandler: (dependencies: {
684
- readonly password: PasswordLoginService;
685
- readonly authHttp: AuthHttpService;
686
- readonly emailVerificationFlow?: EmailVerificationFlowService;
687
- readonly authApiRateLimit?: AuthApiRateLimitService;
688
- readonly trustedDeviceCookie?: TrustedDeviceCookieService;
689
- }) => (args_0: PasswordSignInHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthRateLimitedError | import("./Transport.js").PasswordSignInHttpError, never>;
690
- export declare const makePasswordSignUpHandler: (dependencies: {
691
- readonly registration: PasswordRegistrationService;
692
- readonly authHttp: AuthHttpService;
693
- readonly emailVerificationFlow?: EmailVerificationFlowService;
694
- readonly authApiRateLimit?: AuthApiRateLimitService;
695
- }) => (args_0: PasswordSignUpHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthRateLimitedError | AuthEmailAlreadyRegisteredError | import("./Transport.js").PasswordSignUpHttpError, never>;
696
- export declare const makePasswordResetStartHandler: (dependencies: {
697
- readonly passwordReset: PasswordResetService;
698
- readonly authApiRateLimit?: AuthApiRateLimitService;
699
- }) => (args_0: PasswordResetStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthRateLimitedError | AuthInternalError, never>;
700
- export declare const makePasswordResetVerifyHandler: (dependencies: {
701
- readonly passwordReset: PasswordResetService;
702
- }) => (args_0: PasswordResetVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError, never>;
703
- export declare const makePasswordSetHandler: (dependencies: {
704
- readonly passwordManagement: PasswordManagementService;
705
- readonly sessions: SessionsService;
706
- readonly sessionCookie: SessionCookieService;
707
- }) => (args_0: PasswordSetHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
708
- export declare const makePasswordChangeHandler: (dependencies: {
709
- readonly passwordManagement: PasswordManagementService;
710
- readonly sessions: SessionsService;
711
- readonly sessionCookie: SessionCookieService;
712
- }) => (args_0: PasswordChangeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
713
788
  export declare const makeCurrentSessionHandler: (dependencies: {
714
789
  readonly sessions: SessionsService;
715
790
  readonly sessionCookie: SessionCookieService;
716
791
  readonly authHttp: AuthHttpService;
717
- }) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthInternalError, never>;
792
+ }) => (handlerRequest: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
718
793
  export declare const makeRefreshSessionHandler: (dependencies: {
719
794
  readonly sessions: SessionsService;
720
795
  readonly sessionCookie: SessionCookieService;
721
796
  readonly authHttp: AuthHttpService;
722
- }) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthInternalError, never>;
797
+ }) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
723
798
  export declare const makeLogoutHandler: (dependencies: {
724
799
  readonly sessions: SessionsService;
725
800
  readonly sessionCookie: SessionCookieService;
@@ -728,194 +803,268 @@ export declare const makeLogoutHandler: (dependencies: {
728
803
  export declare const makeListSessionsHandler: (dependencies: {
729
804
  readonly sessions: SessionsService;
730
805
  readonly sessionCookie: SessionCookieService;
731
- }) => (args_0: SessionHandlerRequest) => Effect.Effect<{
806
+ }) => (handlerRequest: SessionHandlerRequest) => Effect.Effect<{
732
807
  sessions: {
733
- metadata?: Readonly<Record<string, unknown>> | undefined;
734
- longitude?: number | undefined;
735
- latitude?: number | undefined;
736
- city?: string | undefined;
737
- region?: string | undefined;
738
- country?: string | undefined;
739
- userAgent?: string | undefined;
740
- ip?: string | undefined;
741
- claims?: SessionClaims | undefined;
742
- current: boolean;
743
- mfaVerifiedAt?: UnixMillis | undefined;
744
- expiresAt: UnixMillis;
745
- aal: import("../Sessions.js").AuthAssuranceLevel;
746
- amr: readonly AuthMethodReference[];
747
- lastSeenAt?: UnixMillis | undefined;
748
808
  sessionId: SessionId;
749
809
  userId: UserId;
750
810
  createdAt: UnixMillis;
751
811
  authTime: UnixMillis;
812
+ lastSeenAt?: UnixMillis | undefined;
813
+ expiresAt: UnixMillis;
814
+ aal: import("../Assurance.js").AssuranceLevel;
815
+ amr: readonly import("../Assurance.js").AuthMethodReference[];
816
+ mfaVerifiedAt?: UnixMillis | undefined;
817
+ current: boolean;
818
+ claims?: SessionClaims | undefined;
819
+ ip?: string | undefined;
820
+ userAgent?: string | undefined;
821
+ country?: string | undefined;
822
+ region?: string | undefined;
823
+ city?: string | undefined;
824
+ latitude?: number | undefined;
825
+ longitude?: number | undefined;
826
+ metadata?: Readonly<Record<string, unknown>> | undefined;
752
827
  }[];
753
- }, AuthUnauthenticatedError | AuthInternalError, never>;
828
+ }, AuthInternalError | AuthUnauthenticatedError, never>;
754
829
  export declare const makeRevokeSessionHandler: (dependencies: {
755
830
  readonly sessions: SessionsService;
756
831
  readonly sessionCookie: SessionCookieService;
757
832
  readonly authHttp: AuthHttpService;
758
- }) => (args_0: SessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthInternalError, never>;
833
+ }) => (handlerRequest: SessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
759
834
  export declare const makeRevokeOtherSessionsHandler: (dependencies: {
760
835
  readonly sessions: SessionsService;
761
836
  readonly sessionCookie: SessionCookieService;
762
- }) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthInternalError, never>;
837
+ }) => (handlerRequest: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
763
838
  export declare const makeAdminSessionListHandler: (dependencies: {
764
839
  readonly sessions: SessionsService;
765
840
  readonly sessionCookie: SessionCookieService;
766
841
  readonly authorization: AdminSessionAuthorizationService;
767
- }) => (args_0: AdminSessionListHandlerRequest) => Effect.Effect<{
842
+ }) => (handlerRequest: AdminSessionListHandlerRequest) => Effect.Effect<{
768
843
  sessions: {
769
- longitude?: number | undefined;
770
- latitude?: number | undefined;
771
- city?: string | undefined;
772
- region?: string | undefined;
773
- country?: string | undefined;
774
- userAgent?: string | undefined;
775
- ip?: string | undefined;
776
- mfaVerifiedAt?: UnixMillis | undefined;
777
- expiresAt: UnixMillis;
778
- aal: import("../Sessions.js").AuthAssuranceLevel;
779
- amr: readonly AuthMethodReference[];
780
- lastSeenAt?: UnixMillis | undefined;
781
844
  sessionId: SessionId;
782
845
  userId: UserId;
783
846
  createdAt: UnixMillis;
784
847
  authTime: UnixMillis;
848
+ lastSeenAt?: UnixMillis | undefined;
849
+ expiresAt: UnixMillis;
850
+ aal: import("../Assurance.js").AssuranceLevel;
851
+ amr: readonly import("../Assurance.js").AuthMethodReference[];
852
+ mfaVerifiedAt?: UnixMillis | undefined;
853
+ ip?: string | undefined;
854
+ userAgent?: string | undefined;
855
+ country?: string | undefined;
856
+ region?: string | undefined;
857
+ city?: string | undefined;
858
+ latitude?: number | undefined;
859
+ longitude?: number | undefined;
785
860
  }[];
786
- }, AuthUnauthenticatedError | AuthPolicyDeniedError | AuthInternalError, never>;
861
+ }, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
787
862
  export declare const makeAdminSessionRevokeHandler: (dependencies: {
788
863
  readonly sessions: SessionsService;
789
864
  readonly sessionCookie: SessionCookieService;
790
865
  readonly authorization: AdminSessionAuthorizationService;
791
- }) => (args_0: AdminSessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthPolicyDeniedError | AuthInternalError, never>;
866
+ }) => (handlerRequest: AdminSessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
792
867
  export declare const makeAdminSessionRevokeAllHandler: (dependencies: {
793
868
  readonly sessions: SessionsService;
794
869
  readonly sessionCookie: SessionCookieService;
795
870
  readonly authorization: AdminSessionAuthorizationService;
796
- }) => (args_0: AdminSessionRevokeAllHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthPolicyDeniedError | AuthInternalError, never>;
871
+ }) => (handlerRequest: AdminSessionRevokeAllHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
872
+ export declare const adminPermissionDefinitionHttpBody: (definition: PermissionDefinitionRecord) => {
873
+ id: PermissionId;
874
+ description?: string | undefined;
875
+ scopeType?: string | undefined;
876
+ createdAt: UnixMillis;
877
+ updatedAt: UnixMillis;
878
+ disabledAt?: UnixMillis | undefined;
879
+ deletedAt?: UnixMillis | undefined;
880
+ };
881
+ export declare const adminPermissionDefinitionCreateOperation: (handlerRequest: AdminPermissionDefinitionCreateHandlerRequest) => Effect.Effect<{
882
+ id: PermissionId;
883
+ description?: string | undefined;
884
+ scopeType?: string | undefined;
885
+ createdAt: UnixMillis;
886
+ updatedAt: UnixMillis;
887
+ disabledAt?: UnixMillis | undefined;
888
+ deletedAt?: UnixMillis | undefined;
889
+ }, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
890
+ export declare const adminPermissionDefinitionGetOperation: (handlerRequest: AdminPermissionDefinitionGetHandlerRequest) => Effect.Effect<{
891
+ id: PermissionId;
892
+ description?: string | undefined;
893
+ scopeType?: string | undefined;
894
+ createdAt: UnixMillis;
895
+ updatedAt: UnixMillis;
896
+ disabledAt?: UnixMillis | undefined;
897
+ deletedAt?: UnixMillis | undefined;
898
+ }, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
899
+ export declare const adminPermissionDefinitionListOperation: (handlerRequest: AdminPermissionDefinitionListHandlerRequest) => Effect.Effect<{
900
+ definitions: {
901
+ id: PermissionId;
902
+ description?: string | undefined;
903
+ scopeType?: string | undefined;
904
+ createdAt: UnixMillis;
905
+ updatedAt: UnixMillis;
906
+ disabledAt?: UnixMillis | undefined;
907
+ deletedAt?: UnixMillis | undefined;
908
+ }[];
909
+ nextAfter?: PermissionId | undefined;
910
+ }, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
911
+ export declare const adminPermissionDefinitionUpdateOperation: (handlerRequest: AdminPermissionDefinitionUpdateHandlerRequest) => Effect.Effect<{
912
+ id: PermissionId;
913
+ description?: string | undefined;
914
+ scopeType?: string | undefined;
915
+ createdAt: UnixMillis;
916
+ updatedAt: UnixMillis;
917
+ disabledAt?: UnixMillis | undefined;
918
+ deletedAt?: UnixMillis | undefined;
919
+ }, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
920
+ export declare const adminPermissionDefinitionDisableOperation: (handlerRequest: AdminPermissionDefinitionMutationHandlerRequest) => Effect.Effect<{
921
+ id: PermissionId;
922
+ description?: string | undefined;
923
+ scopeType?: string | undefined;
924
+ createdAt: UnixMillis;
925
+ updatedAt: UnixMillis;
926
+ disabledAt?: UnixMillis | undefined;
927
+ deletedAt?: UnixMillis | undefined;
928
+ }, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
929
+ export declare const adminPermissionDefinitionEnableOperation: (handlerRequest: AdminPermissionDefinitionMutationHandlerRequest) => Effect.Effect<{
930
+ id: PermissionId;
931
+ description?: string | undefined;
932
+ scopeType?: string | undefined;
933
+ createdAt: UnixMillis;
934
+ updatedAt: UnixMillis;
935
+ disabledAt?: UnixMillis | undefined;
936
+ deletedAt?: UnixMillis | undefined;
937
+ }, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
938
+ export declare const adminPermissionDefinitionDeleteOperation: (handlerRequest: AdminPermissionDefinitionMutationHandlerRequest) => Effect.Effect<{
939
+ id: PermissionId;
940
+ description?: string | undefined;
941
+ scopeType?: string | undefined;
942
+ createdAt: UnixMillis;
943
+ updatedAt: UnixMillis;
944
+ disabledAt?: UnixMillis | undefined;
945
+ deletedAt?: UnixMillis | undefined;
946
+ }, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
797
947
  export declare const makeLoginNotificationReportHandler: (dependencies: {
798
948
  readonly loginNotification?: LoginNotificationService;
799
- }) => (args_0: LoginNotificationReportHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthPolicyDeniedError | AuthInternalError, never>;
949
+ }) => (args_0: LoginNotificationReportHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
800
950
  export declare const securityTimelineEventHttpBody: (event: SecurityTimelineEvent) => {
801
- metadata?: Readonly<Record<string, unknown>> | undefined;
802
- request?: {
803
- userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
804
- ipHash?: import("../Identifiers.js").IpHash | undefined;
805
- } | undefined;
806
- actor?: {
807
- type: "anonymous";
808
- } | {
809
- sessionId?: SessionId | undefined;
810
- type: "user";
811
- } | undefined;
812
951
  eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
813
- type: "auth.login.succeeded" | "auth.login.failed" | "auth.session.revoked" | "auth.risk.assessed" | "auth.policy.denied" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.started" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.verified" | "auth.totp.factor.revoked" | "auth.recovery_code.generated" | "auth.recovery_code.verified" | "auth.recovery_code.revoked" | "auth.api_key.created" | "auth.api_key.verified" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.refresh_token.issued" | "auth.refresh_token.rotated" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked";
952
+ type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.identity.added" | "auth.identity.primary_changed" | "auth.identity.replaced" | "auth.identity.revoked" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.permission.granted" | "auth.permission.revoked" | "auth.permission_definition.created" | "auth.permission_definition.deleted" | "auth.permission_definition.disabled" | "auth.permission_definition.enabled" | "auth.permission_definition.updated" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.role.granted" | "auth.role.revoked" | "auth.role_definition.created" | "auth.role_definition.deleted" | "auth.role_definition.disabled" | "auth.role_definition.enabled" | "auth.role_definition.updated" | "auth.role_permission.assigned" | "auth.role_permission.removed" | "auth.session.assurance_changed" | "auth.session.primary_reauthenticated" | "auth.session.recovery_remediation.completed" | "auth.session.recovery_remediation.entered" | "auth.session.revoked" | "auth.session.step_up_completed" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
814
953
  category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
815
954
  severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
816
955
  occurredAt: UnixMillis;
817
956
  summary: string;
818
- };
819
- export declare const makeSecurityTimelineListHandler: (dependencies: {
820
- readonly sessions: SessionsService;
821
- readonly sessionCookie: SessionCookieService;
822
- readonly securityTimeline: SecurityTimelineStoreService;
823
- }) => (args_0: SecurityTimelineListHandlerRequest) => Effect.Effect<{
824
- events: {
825
- metadata?: Readonly<Record<string, unknown>> | undefined;
826
- request?: {
827
- userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
828
- ipHash?: import("../Identifiers.js").IpHash | undefined;
829
- } | undefined;
830
- actor?: {
831
- type: "anonymous";
832
- } | {
833
- sessionId?: SessionId | undefined;
834
- type: "user";
835
- } | undefined;
957
+ actor?: {
958
+ type: "anonymous";
959
+ } | {
960
+ type: "user";
961
+ sessionId?: SessionId | undefined;
962
+ } | undefined;
963
+ request?: {
964
+ ipHash?: import("../Identifiers.js").IpHash | undefined;
965
+ userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
966
+ } | undefined;
967
+ metadata?: Readonly<Record<string, unknown>> | undefined;
968
+ };
969
+ export declare const makeSecurityTimelineListHandler: (dependencies: {
970
+ readonly sessions: SessionsService;
971
+ readonly sessionCookie: SessionCookieService;
972
+ readonly securityTimeline: SecurityTimelineStoreService;
973
+ }) => (handlerRequest: SecurityTimelineListHandlerRequest) => Effect.Effect<{
974
+ events: {
836
975
  eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
837
- type: "auth.login.succeeded" | "auth.login.failed" | "auth.session.revoked" | "auth.risk.assessed" | "auth.policy.denied" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.started" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.verified" | "auth.totp.factor.revoked" | "auth.recovery_code.generated" | "auth.recovery_code.verified" | "auth.recovery_code.revoked" | "auth.api_key.created" | "auth.api_key.verified" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.refresh_token.issued" | "auth.refresh_token.rotated" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked";
976
+ type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.identity.added" | "auth.identity.primary_changed" | "auth.identity.replaced" | "auth.identity.revoked" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.permission.granted" | "auth.permission.revoked" | "auth.permission_definition.created" | "auth.permission_definition.deleted" | "auth.permission_definition.disabled" | "auth.permission_definition.enabled" | "auth.permission_definition.updated" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.role.granted" | "auth.role.revoked" | "auth.role_definition.created" | "auth.role_definition.deleted" | "auth.role_definition.disabled" | "auth.role_definition.enabled" | "auth.role_definition.updated" | "auth.role_permission.assigned" | "auth.role_permission.removed" | "auth.session.assurance_changed" | "auth.session.primary_reauthenticated" | "auth.session.recovery_remediation.completed" | "auth.session.recovery_remediation.entered" | "auth.session.revoked" | "auth.session.step_up_completed" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
838
977
  category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
839
978
  severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
840
979
  occurredAt: UnixMillis;
841
980
  summary: string;
981
+ actor?: {
982
+ type: "anonymous";
983
+ } | {
984
+ type: "user";
985
+ sessionId?: SessionId | undefined;
986
+ } | undefined;
987
+ request?: {
988
+ ipHash?: import("../Identifiers.js").IpHash | undefined;
989
+ userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
990
+ } | undefined;
991
+ metadata?: Readonly<Record<string, unknown>> | undefined;
842
992
  }[];
843
- }, AuthUnauthenticatedError | AuthInternalError, never>;
993
+ }, AuthInternalError | AuthUnauthenticatedError, never>;
844
994
  export declare const makeAdminSecurityTimelineListHandler: (dependencies: {
845
995
  readonly sessions: SessionsService;
846
996
  readonly sessionCookie: SessionCookieService;
847
997
  readonly securityTimeline: SecurityTimelineStoreService;
848
998
  readonly authorization: AdminSecurityTimelineAuthorizationService;
849
- }) => (args_0: AdminSecurityTimelineListHandlerRequest) => Effect.Effect<{
999
+ }) => (handlerRequest: AdminSecurityTimelineListHandlerRequest) => Effect.Effect<{
850
1000
  events: {
851
- metadata?: Readonly<Record<string, unknown>> | undefined;
852
- request?: {
853
- userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
854
- ipHash?: import("../Identifiers.js").IpHash | undefined;
855
- } | undefined;
856
- actor?: {
857
- type: "anonymous";
858
- } | {
859
- sessionId?: SessionId | undefined;
860
- type: "user";
861
- } | undefined;
862
1001
  eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
863
- type: "auth.login.succeeded" | "auth.login.failed" | "auth.session.revoked" | "auth.risk.assessed" | "auth.policy.denied" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.started" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.verified" | "auth.totp.factor.revoked" | "auth.recovery_code.generated" | "auth.recovery_code.verified" | "auth.recovery_code.revoked" | "auth.api_key.created" | "auth.api_key.verified" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.refresh_token.issued" | "auth.refresh_token.rotated" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked";
1002
+ type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.identity.added" | "auth.identity.primary_changed" | "auth.identity.replaced" | "auth.identity.revoked" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.permission.granted" | "auth.permission.revoked" | "auth.permission_definition.created" | "auth.permission_definition.deleted" | "auth.permission_definition.disabled" | "auth.permission_definition.enabled" | "auth.permission_definition.updated" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.role.granted" | "auth.role.revoked" | "auth.role_definition.created" | "auth.role_definition.deleted" | "auth.role_definition.disabled" | "auth.role_definition.enabled" | "auth.role_definition.updated" | "auth.role_permission.assigned" | "auth.role_permission.removed" | "auth.session.assurance_changed" | "auth.session.primary_reauthenticated" | "auth.session.recovery_remediation.completed" | "auth.session.recovery_remediation.entered" | "auth.session.revoked" | "auth.session.step_up_completed" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
864
1003
  category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
865
1004
  severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
866
1005
  occurredAt: UnixMillis;
867
1006
  summary: string;
1007
+ actor?: {
1008
+ type: "anonymous";
1009
+ } | {
1010
+ type: "user";
1011
+ sessionId?: SessionId | undefined;
1012
+ } | undefined;
1013
+ request?: {
1014
+ ipHash?: import("../Identifiers.js").IpHash | undefined;
1015
+ userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
1016
+ } | undefined;
1017
+ metadata?: Readonly<Record<string, unknown>> | undefined;
868
1018
  }[];
869
- }, AuthUnauthenticatedError | AuthPolicyDeniedError | AuthInternalError, never>;
1019
+ }, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
870
1020
  export declare const trustedDeviceHttpBody: (device: TrustedDeviceRecord) => {
871
- metadata?: Readonly<Record<string, unknown>> | undefined;
872
1021
  deviceId: string;
873
1022
  createdAt: UnixMillis;
874
1023
  lastSeenAt: UnixMillis;
875
1024
  expiresAt: UnixMillis;
1025
+ metadata?: Readonly<Record<string, unknown>> | undefined;
876
1026
  };
877
1027
  export declare const makeTrustedDeviceListHandler: (dependencies: {
878
1028
  readonly sessions: SessionsService;
879
1029
  readonly sessionCookie: SessionCookieService;
880
1030
  readonly trustedDevices: TrustedDeviceStoreService;
881
- }) => (args_0: TrustedDeviceListHandlerRequest) => Effect.Effect<{
1031
+ }) => (handlerRequest: TrustedDeviceListHandlerRequest) => Effect.Effect<{
882
1032
  devices: {
883
- metadata?: Readonly<Record<string, unknown>> | undefined;
884
1033
  deviceId: string;
885
1034
  createdAt: UnixMillis;
886
1035
  lastSeenAt: UnixMillis;
887
1036
  expiresAt: UnixMillis;
1037
+ metadata?: Readonly<Record<string, unknown>> | undefined;
888
1038
  }[];
889
- }, AuthUnauthenticatedError | AuthInternalError, never>;
1039
+ }, AuthInternalError | AuthUnauthenticatedError, never>;
890
1040
  export declare const makeTrustedDeviceRevokeHandler: (dependencies: {
891
1041
  readonly sessions: SessionsService;
892
1042
  readonly sessionCookie: SessionCookieService;
893
1043
  readonly trustedDevices: TrustedDeviceStoreService;
894
- }) => (args_0: TrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthInternalError, never>;
1044
+ }) => (handlerRequest: TrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
895
1045
  export declare const makeAdminTrustedDeviceListHandler: (dependencies: {
896
1046
  readonly sessions: SessionsService;
897
1047
  readonly sessionCookie: SessionCookieService;
898
1048
  readonly trustedDevices: TrustedDeviceStoreService;
899
1049
  readonly authorization: AdminTrustedDeviceAuthorizationService;
900
- }) => (args_0: AdminTrustedDeviceListHandlerRequest) => Effect.Effect<{
1050
+ }) => (handlerRequest: AdminTrustedDeviceListHandlerRequest) => Effect.Effect<{
901
1051
  devices: {
902
- metadata?: Readonly<Record<string, unknown>> | undefined;
903
1052
  deviceId: string;
904
1053
  createdAt: UnixMillis;
905
1054
  lastSeenAt: UnixMillis;
906
1055
  expiresAt: UnixMillis;
1056
+ metadata?: Readonly<Record<string, unknown>> | undefined;
907
1057
  }[];
908
- }, AuthUnauthenticatedError | AuthPolicyDeniedError | AuthInternalError, never>;
1058
+ }, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
909
1059
  export declare const makeAdminTrustedDeviceRevokeHandler: (dependencies: {
910
1060
  readonly sessions: SessionsService;
911
1061
  readonly sessionCookie: SessionCookieService;
912
1062
  readonly trustedDevices: TrustedDeviceStoreService;
913
1063
  readonly authorization: AdminTrustedDeviceAuthorizationService;
914
- }) => (args_0: AdminTrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthPolicyDeniedError | AuthInternalError, never>;
1064
+ }) => (handlerRequest: AdminTrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
915
1065
  export declare const makeEmailVerificationStartHandler: (dependencies: {
916
1066
  readonly emailVerificationFlow: EmailVerificationFlowService;
917
- readonly authApiRateLimit?: AuthApiRateLimitService;
918
- }) => (args_0: EmailVerificationStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthRateLimitedError | AuthInternalError, never>;
1067
+ }) => (handlerRequest: EmailVerificationStartGuardRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit | IdentityStore>;
919
1068
  export declare const makeEmailVerificationVerifyHandler: (dependencies: {
920
1069
  readonly emailVerification: EmailVerificationService;
921
1070
  readonly sessions: SessionsService;
@@ -923,39 +1072,78 @@ export declare const makeEmailVerificationVerifyHandler: (dependencies: {
923
1072
  }) => (args_0: EmailVerificationVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError, never>;
924
1073
  export declare const makeEmailOtpStartHandler: (dependencies: {
925
1074
  readonly emailOtp: EmailOtpLoginService;
926
- readonly authApiRateLimit?: AuthApiRateLimitService;
927
- }) => (args_0: EmailOtpStartHandlerRequest) => Effect.Effect<import("../EmailOtp.js").EmailOtpStarted, AuthRateLimitedError | AuthInternalError, never>;
1075
+ }) => (handlerRequest: EmailOtpStartGuardRequest) => Effect.Effect<{
1076
+ challengeId: ChallengeId;
1077
+ identity: Schema.Struct.ReadonlySide<{
1078
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
1079
+ readonly type: Schema.Literal<"global">;
1080
+ }>, Schema.Struct<{
1081
+ readonly type: Schema.Literal<"tenant">;
1082
+ readonly tenantId: Schema.String;
1083
+ }>]>;
1084
+ readonly kind: Schema.String;
1085
+ readonly value: Schema.String;
1086
+ }, "Type">;
1087
+ expiresAt: UnixMillis;
1088
+ }, AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit>;
928
1089
  export declare const makeEmailOtpVerifyHandler: (dependencies: {
929
1090
  readonly emailOtp: EmailOtpLoginService;
930
1091
  readonly authHttp: AuthHttpService;
931
- readonly trustedDeviceCookie?: TrustedDeviceCookieService;
932
- }) => (args_0: EmailOtpVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Transport.js").PasswordSignInHttpError, never>;
1092
+ }) => (handlerRequest: EmailOtpVerifyGuardRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError | import("./Transport.js").PasswordSignInHttpError, AuthRateLimit>;
1093
+ export declare const makeEmailAuthStartHandler: (dependencies: {
1094
+ readonly emailAuth: EmailAuthService;
1095
+ }) => (handlerRequest: EmailAuthStartGuardRequest) => Effect.Effect<{
1096
+ identity: Schema.Struct.ReadonlySide<{
1097
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
1098
+ readonly type: Schema.Literal<"global">;
1099
+ }>, Schema.Struct<{
1100
+ readonly type: Schema.Literal<"tenant">;
1101
+ readonly tenantId: Schema.String;
1102
+ }>]>;
1103
+ readonly kind: Schema.String;
1104
+ readonly value: Schema.String;
1105
+ }, "Type">;
1106
+ emailOtp: {
1107
+ challengeId: ChallengeId;
1108
+ expiresAt: UnixMillis;
1109
+ };
1110
+ magicLink: {
1111
+ expiresAt: UnixMillis;
1112
+ };
1113
+ }, AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit>;
933
1114
  export declare const makeMagicLinkStartHandler: (dependencies: {
934
1115
  readonly magicLink: MagicLinkLoginService;
935
- readonly authApiRateLimit?: AuthApiRateLimitService;
936
- }) => (args_0: MagicLinkStartHandlerRequest) => Effect.Effect<{
937
- email: Email;
1116
+ }) => (handlerRequest: MagicLinkStartGuardRequest) => Effect.Effect<{
1117
+ identity: Schema.Struct.ReadonlySide<{
1118
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
1119
+ readonly type: Schema.Literal<"global">;
1120
+ }>, Schema.Struct<{
1121
+ readonly type: Schema.Literal<"tenant">;
1122
+ readonly tenantId: Schema.String;
1123
+ }>]>;
1124
+ readonly kind: Schema.String;
1125
+ readonly value: Schema.String;
1126
+ }, "Type">;
938
1127
  expiresAt: UnixMillis;
939
- }, AuthRateLimitedError | AuthInternalError, never>;
1128
+ }, AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit>;
940
1129
  export declare const makeMagicLinkVerifyHandler: (dependencies: {
941
1130
  readonly magicLink: MagicLinkLoginService;
942
1131
  readonly authHttp: AuthHttpService;
943
- readonly trustedDeviceCookie?: TrustedDeviceCookieService;
944
- }) => (args_0: MagicLinkVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Transport.js").PasswordSignInHttpError, never>;
1132
+ }) => (handlerRequest: MagicLinkVerifyGuardRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError | import("./Transport.js").PasswordSignInHttpError, AuthRateLimit>;
945
1133
  export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
946
1134
  readonly oauthProviders: OAuthProvidersService;
947
1135
  readonly oauthState: OAuthStateService;
948
1136
  } & OAuthAuthorizationStartHttpOptions) => (args_0: OAuthAuthorizationStartHandlerRequest) => Effect.Effect<{
949
- redirectUri: string;
950
- scopes: readonly string[];
951
- nonce?: import("../OAuth.js").OAuthNonce | undefined;
952
1137
  providerId: OAuthProviderId;
953
1138
  authorizationUrl: string;
954
1139
  state: import("../OAuth.js").OAuthStateToken;
955
- challengeId: import("../Identifiers.js").ChallengeId;
1140
+ challengeId: ChallengeId;
956
1141
  expiresAt: UnixMillis;
957
1142
  codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
958
1143
  codeChallengeMethod: "S256";
1144
+ nonce?: import("../OAuth.js").OAuthNonce | undefined;
1145
+ redirectUri: string;
1146
+ scopes: readonly string[];
959
1147
  }, AuthBadRequestError | AuthInternalError, never>;
960
1148
  export declare const makeOAuthProviderAuthorizationHandler: (dependencies: {
961
1149
  readonly authorization: OAuthProviderAuthorizationService;
@@ -1001,80 +1189,80 @@ export declare const makeOAuthAccountUnlinkHandler: (dependencies: {
1001
1189
  readonly oauthAccountUnlinking: OAuthAccountUnlinkingService;
1002
1190
  readonly sessions: SessionsService;
1003
1191
  readonly sessionCookie: SessionCookieService;
1004
- } & OAuthAccountUnlinkHttpOptions) => (args_0: OAuthAccountUnlinkHandlerRequest) => Effect.Effect<{
1005
- readonly type: "allow";
1006
- readonly reason: "owned-account";
1007
- readonly account: {
1008
- readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
1009
- readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
1010
- readonly providerAccountId: string;
1011
- };
1012
- readonly remainingAccounts: readonly {
1013
- readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
1014
- readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
1015
- readonly providerAccountId: string;
1016
- }[];
1017
- readonly unlinked: boolean;
1018
- } | {
1019
- readonly type: "requires-step-up";
1020
- readonly reason: "step-up-required";
1021
- readonly account: {
1022
- readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
1023
- readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
1024
- readonly providerAccountId: string;
1025
- };
1026
- readonly remainingAccounts: readonly {
1027
- readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
1028
- readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
1029
- readonly providerAccountId: string;
1030
- }[];
1031
- } | {
1032
- readonly type: "deny-not-found";
1033
- readonly reason: "provider-account-not-found";
1034
- readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
1035
- readonly providerAccountId: string;
1036
- } | {
1037
- readonly type: "deny-not-owner";
1038
- readonly reason: "provider-account-linked-to-different-user";
1039
- readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
1040
- readonly providerAccountId: string;
1041
- } | {
1042
- readonly type: "deny-last-account";
1043
- readonly reason: "last-linked-account";
1044
- readonly account: {
1045
- readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
1046
- readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
1047
- readonly providerAccountId: string;
1048
- };
1049
- }, AuthUnauthenticatedError | AuthInternalError, never>;
1192
+ } & OAuthAccountUnlinkHttpOptions) => (handlerRequest: OAuthAccountUnlinkHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
1193
+ readonly type: Schema.Literal<"allow">;
1194
+ readonly reason: Schema.Literal<"owned-account">;
1195
+ readonly account: Schema.Struct<{
1196
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1197
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1198
+ readonly providerAccountId: Schema.String;
1199
+ }>;
1200
+ readonly remainingAccounts: Schema.$Array<Schema.Struct<{
1201
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1202
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1203
+ readonly providerAccountId: Schema.String;
1204
+ }>>;
1205
+ readonly unlinked: Schema.Boolean;
1206
+ }, "Type"> | Schema.Struct.ReadonlySide<{
1207
+ readonly type: Schema.Literal<"requires-step-up">;
1208
+ readonly reason: Schema.Literal<"step-up-required">;
1209
+ readonly account: Schema.Struct<{
1210
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1211
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1212
+ readonly providerAccountId: Schema.String;
1213
+ }>;
1214
+ readonly remainingAccounts: Schema.$Array<Schema.Struct<{
1215
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1216
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1217
+ readonly providerAccountId: Schema.String;
1218
+ }>>;
1219
+ }, "Type"> | Schema.Struct.ReadonlySide<{
1220
+ readonly type: Schema.Literal<"deny-not-found">;
1221
+ readonly reason: Schema.Literal<"provider-account-not-found">;
1222
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1223
+ readonly providerAccountId: Schema.String;
1224
+ }, "Type"> | Schema.Struct.ReadonlySide<{
1225
+ readonly type: Schema.Literal<"deny-not-owner">;
1226
+ readonly reason: Schema.Literal<"provider-account-linked-to-different-user">;
1227
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1228
+ readonly providerAccountId: Schema.String;
1229
+ }, "Type"> | Schema.Struct.ReadonlySide<{
1230
+ readonly type: Schema.Literal<"deny-last-account">;
1231
+ readonly reason: Schema.Literal<"last-linked-account">;
1232
+ readonly account: Schema.Struct<{
1233
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1234
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1235
+ readonly providerAccountId: Schema.String;
1236
+ }>;
1237
+ }, "Type">, AuthInternalError | AuthUnauthenticatedError, never>;
1050
1238
  export declare const makeOAuthLinkConfirmationStartHandler: (dependencies: {
1051
1239
  readonly oauthLinkConfirmation: OAuthLinkConfirmationService;
1052
- } & OAuthLinkConfirmationStartHttpOptions) => (args_0: OAuthLinkConfirmationStartHandlerRequest) => Effect.Effect<{
1053
- readonly challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
1054
- readonly userId: string & import("effect/Brand").Brand<"auth/UserId">;
1055
- readonly identity: {
1056
- readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
1057
- readonly providerAccountId: string;
1058
- readonly email?: (string & import("effect/Brand").Brand<"auth/Email">) | undefined;
1059
- readonly emailVerified?: boolean | undefined;
1060
- };
1061
- readonly reason: string;
1062
- readonly expiresAt: number & import("effect/Brand").Brand<"auth/UnixMillis">;
1063
- }, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1240
+ } & OAuthLinkConfirmationStartHttpOptions) => (args_0: OAuthLinkConfirmationStartHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
1241
+ readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1242
+ readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1243
+ readonly identity: Schema.Struct<{
1244
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1245
+ readonly providerAccountId: Schema.String;
1246
+ readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
1247
+ readonly emailVerified: Schema.optional<Schema.Boolean>;
1248
+ }>;
1249
+ readonly reason: Schema.String;
1250
+ readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1251
+ }, "Type">, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
1064
1252
  export declare const makeOAuthLinkConfirmationInspectHandler: (dependencies: {
1065
1253
  readonly oauthLinkConfirmation: OAuthLinkConfirmationService;
1066
- }) => (args_0: OAuthLinkConfirmationInspectHandlerRequest) => Effect.Effect<{
1067
- readonly challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
1068
- readonly userId: string & import("effect/Brand").Brand<"auth/UserId">;
1069
- readonly identity: {
1070
- readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
1071
- readonly providerAccountId: string;
1072
- readonly email?: (string & import("effect/Brand").Brand<"auth/Email">) | undefined;
1073
- readonly emailVerified?: boolean | undefined;
1074
- };
1075
- readonly reason: string;
1076
- readonly expiresAt: number & import("effect/Brand").Brand<"auth/UnixMillis">;
1077
- }, AuthBadRequestError | AuthInternalError, never>;
1254
+ }) => (args_0: OAuthLinkConfirmationInspectHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
1255
+ readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1256
+ readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1257
+ readonly identity: Schema.Struct<{
1258
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1259
+ readonly providerAccountId: Schema.String;
1260
+ readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
1261
+ readonly emailVerified: Schema.optional<Schema.Boolean>;
1262
+ }>;
1263
+ readonly reason: Schema.String;
1264
+ readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1265
+ }, "Type">, AuthBadRequestError | AuthInternalError, never>;
1078
1266
  export declare const makeOAuthLinkConfirmationConfirmHandler: (dependencies: {
1079
1267
  readonly oauthLinkConfirmation: OAuthLinkConfirmationService;
1080
1268
  } & OAuthLinkConfirmationConfirmHttpOptions) => (args_0: OAuthLinkConfirmationConfirmHandlerRequest) => Effect.Effect<{
@@ -1087,257 +1275,360 @@ export declare const makeOAuthLinkConfirmationConfirmHandler: (dependencies: {
1087
1275
  readonly emailVerified?: boolean | undefined;
1088
1276
  };
1089
1277
  readonly reason: string;
1278
+ readonly existingAccount?: Schema.Struct.ReadonlySide<{
1279
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1280
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1281
+ readonly providerAccountId: Schema.String;
1282
+ }, "Type"> | undefined;
1090
1283
  readonly linked: boolean;
1091
- readonly existingAccount?: {
1092
- readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
1093
- readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
1094
- readonly providerAccountId: string;
1095
- } | undefined;
1096
- }, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1284
+ }, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
1097
1285
  export declare const makePasskeyRegistrationStartHandler: (dependencies: {
1098
1286
  readonly passkeyOptions: PasskeyOptionsService;
1099
- } & PasskeyRegistrationStartHttpOptions) => (args_0: PasskeyRegistrationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyRegistration, AuthInternalError, never>;
1287
+ readonly sessions: SessionsService;
1288
+ readonly sessionCookie: SessionCookieService;
1289
+ readonly resolveUser: PasskeyRegistrationUserResolver;
1290
+ } & PasskeyRegistrationStartHttpOptions) => (handlerRequest: PasskeyRegistrationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyRegistration, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1100
1291
  export declare const makePasskeyRegistrationFinishHandler: (dependencies: {
1101
1292
  readonly passkeyVerification: PasskeyVerificationService;
1102
- } & PasskeyFinishHttpOptions) => (args_0: PasskeyRegistrationFinishHandlerRequest) => Effect.Effect<{
1293
+ readonly sessions: SessionsService;
1294
+ readonly sessionCookie: SessionCookieService;
1295
+ readonly resolveUser: PasskeyRegistrationUserResolver;
1296
+ } & PasskeyFinishHttpOptions) => (handlerRequest: PasskeyRegistrationFinishHandlerRequest) => Effect.Effect<{
1103
1297
  credentialId: PasskeyCredentialId;
1104
- }, AuthBadRequestError | AuthInternalError, never>;
1298
+ }, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1105
1299
  export declare const makePasskeyAuthenticationStartHandler: (dependencies: {
1106
1300
  readonly passkeyOptions: PasskeyOptionsService;
1107
- } & PasskeyAuthenticationStartHttpOptions) => (args_0: PasskeyAuthenticationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthInternalError, never>;
1301
+ } & PasskeyAuthenticationStartHttpOptions) => (handlerRequest: PasskeyAuthenticationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1108
1302
  export declare const makePasskeyAuthenticationFinishHandler: (dependencies: {
1109
1303
  readonly passkeyVerification: PasskeyVerificationService;
1110
1304
  readonly sessions: SessionsService;
1111
1305
  readonly authHttp: AuthHttpService;
1112
1306
  readonly makeSessionInput: (context: PasskeyAuthenticationSessionContext) => SessionCreateInput;
1113
- } & PasskeyFinishHttpOptions) => (args_0: PasskeyAuthenticationFinishHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError, never>;
1307
+ } & PasskeyFinishHttpOptions) => (handlerRequest: PasskeyAuthenticationFinishHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1308
+ type IdentityHandlerDependencies = {
1309
+ readonly identityManagement: IdentityManagementService;
1310
+ readonly sessions: SessionsService;
1311
+ readonly sessionCookie: SessionCookieService;
1312
+ };
1313
+ export declare const makeIdentityAvailabilityHandler: (dependencies: IdentityHandlerDependencies) => (handlerRequest: IdentityAvailabilityGuardRequest) => Effect.Effect<{
1314
+ available: boolean;
1315
+ }, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError | AuthUnauthenticatedError, AuthRateLimit | SessionCookie | Sessions>;
1316
+ export declare const makeIdentityListHandler: (dependencies: IdentityHandlerDependencies) => (handlerRequest: {
1317
+ readonly request: HttpServerRequest.HttpServerRequest;
1318
+ }) => Effect.Effect<{
1319
+ identities: {
1320
+ id: import("../Identifiers.js").IdentityId;
1321
+ scope: import("../Identity.js").IdentityScope;
1322
+ kind: import("../Identity.js").IdentityKind;
1323
+ value: string;
1324
+ verified: boolean;
1325
+ loginEligible: boolean;
1326
+ isPrimaryLogin: boolean;
1327
+ createdAt: UnixMillis;
1328
+ updatedAt: UnixMillis;
1329
+ }[];
1330
+ }, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1331
+ export declare const makeIdentityAddHandler: (dependencies: IdentityHandlerDependencies) => (request: {
1332
+ readonly payload: Schema.Schema.Type<typeof IdentityAddBody>;
1333
+ readonly request: HttpServerRequest.HttpServerRequest;
1334
+ }) => Effect.Effect<{
1335
+ id: import("../Identifiers.js").IdentityId;
1336
+ scope: import("../Identity.js").IdentityScope;
1337
+ kind: import("../Identity.js").IdentityKind;
1338
+ value: string;
1339
+ verified: boolean;
1340
+ loginEligible: boolean;
1341
+ isPrimaryLogin: boolean;
1342
+ createdAt: UnixMillis;
1343
+ updatedAt: UnixMillis;
1344
+ }, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1345
+ export declare const makeIdentityReplaceHandler: (dependencies: IdentityHandlerDependencies) => (request: {
1346
+ readonly payload: Schema.Schema.Type<typeof IdentityReplaceBody>;
1347
+ readonly request: HttpServerRequest.HttpServerRequest;
1348
+ }) => Effect.Effect<{
1349
+ id: import("../Identifiers.js").IdentityId;
1350
+ scope: import("../Identity.js").IdentityScope;
1351
+ kind: import("../Identity.js").IdentityKind;
1352
+ value: string;
1353
+ verified: boolean;
1354
+ loginEligible: boolean;
1355
+ isPrimaryLogin: boolean;
1356
+ createdAt: UnixMillis;
1357
+ updatedAt: UnixMillis;
1358
+ }, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1359
+ export declare const makeIdentityRevokeHandler: (dependencies: IdentityHandlerDependencies) => (request: {
1360
+ readonly payload: Schema.Schema.Type<typeof IdentityRevokeBody>;
1361
+ readonly request: HttpServerRequest.HttpServerRequest;
1362
+ }) => Effect.Effect<{
1363
+ id: import("../Identifiers.js").IdentityId;
1364
+ scope: import("../Identity.js").IdentityScope;
1365
+ kind: import("../Identity.js").IdentityKind;
1366
+ value: string;
1367
+ verified: boolean;
1368
+ loginEligible: boolean;
1369
+ isPrimaryLogin: boolean;
1370
+ createdAt: UnixMillis;
1371
+ updatedAt: UnixMillis;
1372
+ }, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1373
+ export declare const makeIdentityPrimaryHandler: (dependencies: IdentityHandlerDependencies) => (request: {
1374
+ readonly payload: Schema.Schema.Type<typeof IdentityPrimaryBody>;
1375
+ readonly request: HttpServerRequest.HttpServerRequest;
1376
+ }) => Effect.Effect<{
1377
+ id: import("../Identifiers.js").IdentityId;
1378
+ scope: import("../Identity.js").IdentityScope;
1379
+ kind: import("../Identity.js").IdentityKind;
1380
+ value: string;
1381
+ verified: boolean;
1382
+ loginEligible: boolean;
1383
+ isPrimaryLogin: boolean;
1384
+ createdAt: UnixMillis;
1385
+ updatedAt: UnixMillis;
1386
+ }, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1114
1387
  export declare const makePasskeyCredentialListHandler: (dependencies: {
1115
1388
  readonly passkeyCredentialManagement: PasskeyCredentialManagementService;
1116
1389
  readonly sessions: SessionsService;
1117
1390
  readonly sessionCookie: SessionCookieService;
1118
- }) => (args_0: PasskeyCredentialListHandlerRequest) => Effect.Effect<{
1391
+ }) => (handlerRequest: PasskeyCredentialListHandlerRequest) => Effect.Effect<{
1119
1392
  credentials: {
1120
- metadata?: Readonly<Record<string, unknown>> | undefined;
1121
- revokedAt?: UnixMillis | undefined;
1122
- lastUsedAt?: UnixMillis | undefined;
1123
- createdAt: UnixMillis;
1124
- backedUp?: boolean | undefined;
1125
- transports?: readonly import("../Passkey.js").PasskeyTransport[] | undefined;
1126
1393
  credentialId: PasskeyCredentialId;
1394
+ transports?: readonly import("../Passkey.js").PasskeyTransport[] | undefined;
1395
+ backedUp?: boolean | undefined;
1396
+ createdAt: UnixMillis;
1397
+ lastUsedAt?: UnixMillis | undefined;
1398
+ revokedAt?: UnixMillis | undefined;
1399
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1127
1400
  }[];
1128
- }, AuthUnauthenticatedError | AuthInternalError, never>;
1401
+ }, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1129
1402
  export declare const makePasskeyCredentialRevokeHandler: (dependencies: {
1130
1403
  readonly passkeyCredentialManagement: PasskeyCredentialManagementService;
1131
1404
  readonly sessions: SessionsService;
1132
1405
  readonly sessionCookie: SessionCookieService;
1133
- }) => (args_0: PasskeyCredentialRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1406
+ readonly strongFactorRemovalPolicy?: StrongFactorRemovalPolicyService;
1407
+ }) => (handlerRequest: PasskeyCredentialRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1134
1408
  export declare const makeTotpEnrollmentStartHandler: (dependencies: {
1135
1409
  readonly totpFactorManagement: TotpFactorManagementService;
1136
1410
  readonly sessions: SessionsService;
1137
1411
  readonly sessionCookie: SessionCookieService;
1138
- } & TotpEnrollmentStartHttpOptions) => (args_0: TotpEnrollmentStartHandlerRequest) => Effect.Effect<{
1412
+ } & TotpEnrollmentStartHttpOptions) => (handlerRequest: TotpEnrollmentStartHandlerRequest) => Effect.Effect<{
1139
1413
  factor: {
1140
- metadata?: Readonly<Record<string, unknown>> | undefined;
1141
- revokedAt?: UnixMillis | undefined;
1142
- lastUsedAt?: UnixMillis | undefined;
1143
- confirmedAt?: UnixMillis | undefined;
1144
- factorId: import("../Identifiers.js").CredentialId;
1414
+ factorId: CredentialId;
1145
1415
  algorithm: TotpAlgorithm;
1146
1416
  digits: number;
1147
1417
  period: number;
1148
1418
  createdAt: UnixMillis;
1419
+ confirmedAt?: UnixMillis | undefined;
1420
+ lastUsedAt?: UnixMillis | undefined;
1421
+ revokedAt?: UnixMillis | undefined;
1422
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1149
1423
  };
1150
1424
  secret: import("../Totp.js").TotpSecret;
1151
1425
  uri: string;
1152
- }, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1426
+ }, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1153
1427
  export declare const makeTotpEnrollmentConfirmHandler: (dependencies: {
1154
1428
  readonly totpFactorManagement: TotpFactorManagementService;
1155
1429
  readonly sessions: SessionsService;
1156
1430
  readonly sessionCookie: SessionCookieService;
1157
- } & TotpCodeHttpOptions) => (args_0: TotpEnrollmentConfirmHandlerRequest) => Effect.Effect<{
1158
- metadata?: Readonly<Record<string, unknown>> | undefined;
1159
- revokedAt?: UnixMillis | undefined;
1160
- lastUsedAt?: UnixMillis | undefined;
1161
- confirmedAt?: UnixMillis | undefined;
1162
- factorId: import("../Identifiers.js").CredentialId;
1431
+ } & TotpCodeHttpOptions) => (handlerRequest: TotpEnrollmentConfirmHandlerRequest) => Effect.Effect<{
1432
+ factorId: CredentialId;
1163
1433
  algorithm: TotpAlgorithm;
1164
1434
  digits: number;
1165
1435
  period: number;
1166
1436
  createdAt: UnixMillis;
1167
- }, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1437
+ confirmedAt?: UnixMillis | undefined;
1438
+ lastUsedAt?: UnixMillis | undefined;
1439
+ revokedAt?: UnixMillis | undefined;
1440
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1441
+ }, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1168
1442
  export declare const makeTotpVerifyHandler: (dependencies: {
1169
1443
  readonly totpFactorManagement: TotpFactorManagementService;
1170
1444
  readonly sessions: SessionsService;
1171
1445
  readonly sessionCookie: SessionCookieService;
1172
- } & TotpCodeHttpOptions) => (args_0: TotpVerifyHandlerRequest) => Effect.Effect<{
1173
- delta?: number | undefined;
1446
+ } & TotpCodeHttpOptions) => (handlerRequest: TotpVerifyHandlerRequest) => Effect.Effect<{
1447
+ valid: boolean;
1174
1448
  factor?: {
1175
- metadata?: Readonly<Record<string, unknown>> | undefined;
1176
- revokedAt?: UnixMillis | undefined;
1177
- lastUsedAt?: UnixMillis | undefined;
1178
- confirmedAt?: UnixMillis | undefined;
1179
- factorId: import("../Identifiers.js").CredentialId;
1449
+ factorId: CredentialId;
1180
1450
  algorithm: TotpAlgorithm;
1181
1451
  digits: number;
1182
1452
  period: number;
1183
1453
  createdAt: UnixMillis;
1454
+ confirmedAt?: UnixMillis | undefined;
1455
+ lastUsedAt?: UnixMillis | undefined;
1456
+ revokedAt?: UnixMillis | undefined;
1457
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1184
1458
  } | undefined;
1185
- valid: boolean;
1186
- }, AuthUnauthenticatedError | AuthInternalError, never>;
1459
+ delta?: number | undefined;
1460
+ acceptedCounter?: number | undefined;
1461
+ }, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1187
1462
  export declare const makeTotpFactorListHandler: (dependencies: {
1188
1463
  readonly totpFactorManagement: TotpFactorManagementService;
1189
1464
  readonly sessions: SessionsService;
1190
1465
  readonly sessionCookie: SessionCookieService;
1191
- }) => (args_0: TotpFactorListHandlerRequest) => Effect.Effect<{
1466
+ }) => (handlerRequest: TotpFactorListHandlerRequest) => Effect.Effect<{
1192
1467
  factors: {
1193
- metadata?: Readonly<Record<string, unknown>> | undefined;
1194
- revokedAt?: UnixMillis | undefined;
1195
- lastUsedAt?: UnixMillis | undefined;
1196
- confirmedAt?: UnixMillis | undefined;
1197
- factorId: import("../Identifiers.js").CredentialId;
1468
+ factorId: CredentialId;
1198
1469
  algorithm: TotpAlgorithm;
1199
1470
  digits: number;
1200
1471
  period: number;
1201
1472
  createdAt: UnixMillis;
1473
+ confirmedAt?: UnixMillis | undefined;
1474
+ lastUsedAt?: UnixMillis | undefined;
1475
+ revokedAt?: UnixMillis | undefined;
1476
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1202
1477
  }[];
1203
- }, AuthUnauthenticatedError | AuthInternalError, never>;
1478
+ }, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1204
1479
  export declare const makeTotpFactorRevokeHandler: (dependencies: {
1205
1480
  readonly totpFactorManagement: TotpFactorManagementService;
1206
1481
  readonly sessions: SessionsService;
1207
1482
  readonly sessionCookie: SessionCookieService;
1208
- }) => (args_0: TotpFactorRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1483
+ readonly strongFactorRemovalPolicy?: StrongFactorRemovalPolicyService;
1484
+ }) => (handlerRequest: TotpFactorRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1209
1485
  export declare const makeRecoveryCodeGenerateHandler: (dependencies: {
1210
1486
  readonly recoveryCodeManagement: RecoveryCodeManagementService;
1211
1487
  readonly sessions: SessionsService;
1212
1488
  readonly sessionCookie: SessionCookieService;
1213
- } & RecoveryCodeGenerateHttpOptions) => (args_0: RecoveryCodeGenerateHandlerRequest) => Effect.Effect<{
1489
+ } & RecoveryCodeGenerateHttpOptions) => (handlerRequest: RecoveryCodeGenerateHandlerRequest) => Effect.Effect<{
1214
1490
  codes: import("../RecoveryCode.js").RecoveryCode[];
1215
1491
  records: {
1216
- metadata?: Readonly<Record<string, unknown>> | undefined;
1217
- revokedAt?: UnixMillis | undefined;
1492
+ codeId: CredentialId;
1493
+ createdAt: UnixMillis;
1218
1494
  usedAt?: UnixMillis | undefined;
1219
- codeId: import("../Identifiers.js").CredentialId;
1495
+ revokedAt?: UnixMillis | undefined;
1496
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1497
+ }[];
1498
+ }, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1499
+ export declare const makeRecoveryCodeRegenerateHandler: (dependencies: {
1500
+ readonly recoveryCodeManagement: RecoveryCodeManagementService;
1501
+ readonly sessions: SessionsService;
1502
+ readonly sessionCookie: SessionCookieService;
1503
+ } & RecoveryCodeGenerateHttpOptions) => (handlerRequest: RecoveryCodeRegenerateHandlerRequest) => Effect.Effect<{
1504
+ codes: import("../RecoveryCode.js").RecoveryCode[];
1505
+ records: {
1506
+ codeId: CredentialId;
1220
1507
  createdAt: UnixMillis;
1508
+ usedAt?: UnixMillis | undefined;
1509
+ revokedAt?: UnixMillis | undefined;
1510
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1221
1511
  }[];
1222
- }, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1512
+ }, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1223
1513
  export declare const makeRecoveryCodeVerifyHandler: (dependencies: {
1224
1514
  readonly recoveryCodeManagement: RecoveryCodeManagementService;
1225
1515
  readonly sessions: SessionsService;
1226
1516
  readonly sessionCookie: SessionCookieService;
1227
- }) => (args_0: RecoveryCodeVerifyHandlerRequest) => Effect.Effect<{
1517
+ }) => (handlerRequest: RecoveryCodeVerifyHandlerRequest) => Effect.Effect<{
1518
+ valid: boolean;
1228
1519
  code?: {
1229
- metadata?: Readonly<Record<string, unknown>> | undefined;
1230
- revokedAt?: UnixMillis | undefined;
1231
- usedAt?: UnixMillis | undefined;
1232
- codeId: import("../Identifiers.js").CredentialId;
1520
+ codeId: CredentialId;
1233
1521
  createdAt: UnixMillis;
1522
+ usedAt?: UnixMillis | undefined;
1523
+ revokedAt?: UnixMillis | undefined;
1524
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1234
1525
  } | undefined;
1235
- valid: boolean;
1236
- }, AuthUnauthenticatedError | AuthInternalError, never>;
1526
+ }, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1237
1527
  export declare const makeRecoveryCodeListHandler: (dependencies: {
1238
1528
  readonly recoveryCodeManagement: RecoveryCodeManagementService;
1239
1529
  readonly sessions: SessionsService;
1240
1530
  readonly sessionCookie: SessionCookieService;
1241
- }) => (args_0: RecoveryCodeListHandlerRequest) => Effect.Effect<{
1531
+ }) => (handlerRequest: RecoveryCodeListHandlerRequest) => Effect.Effect<{
1242
1532
  codes: {
1243
- metadata?: Readonly<Record<string, unknown>> | undefined;
1244
- revokedAt?: UnixMillis | undefined;
1245
- usedAt?: UnixMillis | undefined;
1246
- codeId: import("../Identifiers.js").CredentialId;
1533
+ codeId: CredentialId;
1247
1534
  createdAt: UnixMillis;
1535
+ usedAt?: UnixMillis | undefined;
1536
+ revokedAt?: UnixMillis | undefined;
1537
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1248
1538
  }[];
1249
- }, AuthUnauthenticatedError | AuthInternalError, never>;
1539
+ }, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1250
1540
  export declare const makeRecoveryCodeRevokeHandler: (dependencies: {
1251
1541
  readonly recoveryCodeManagement: RecoveryCodeManagementService;
1252
1542
  readonly sessions: SessionsService;
1253
1543
  readonly sessionCookie: SessionCookieService;
1254
- }) => (args_0: RecoveryCodeRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1544
+ readonly strongFactorRemovalPolicy?: StrongFactorRemovalPolicyService;
1545
+ }) => (handlerRequest: RecoveryCodeRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1255
1546
  export declare const makeApiKeyCreateHandler: (dependencies: {
1256
1547
  readonly apiKeyManagement: ApiKeyManagementService;
1257
1548
  readonly sessions: SessionsService;
1258
1549
  readonly sessionCookie: SessionCookieService;
1259
- }) => (args_0: ApiKeyCreateHandlerRequest) => Effect.Effect<{
1550
+ }) => (handlerRequest: ApiKeyCreateHandlerRequest) => Effect.Effect<{
1260
1551
  secret: import("../ApiKey.js").ApiKeySecret;
1261
1552
  key: {
1262
- metadata?: Readonly<Record<string, unknown>> | undefined;
1263
- revokedAt?: UnixMillis | undefined;
1264
- lastUsedAt?: UnixMillis | undefined;
1265
- expiresAt?: UnixMillis | undefined;
1266
1553
  keyId: ApiKeyId;
1267
1554
  prefix: import("../ApiKey.js").ApiKeyPrefix;
1268
1555
  scopes: readonly string[];
1269
1556
  createdAt: UnixMillis;
1557
+ expiresAt?: UnixMillis | undefined;
1558
+ lastUsedAt?: UnixMillis | undefined;
1559
+ revokedAt?: UnixMillis | undefined;
1560
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1270
1561
  };
1271
- }, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1562
+ }, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
1272
1563
  export declare const makeApiKeyListHandler: (dependencies: {
1273
1564
  readonly apiKeyManagement: ApiKeyManagementService;
1274
1565
  readonly sessions: SessionsService;
1275
1566
  readonly sessionCookie: SessionCookieService;
1276
- }) => (args_0: ApiKeyListHandlerRequest) => Effect.Effect<{
1567
+ }) => (handlerRequest: ApiKeyListHandlerRequest) => Effect.Effect<{
1277
1568
  keys: {
1278
- metadata?: Readonly<Record<string, unknown>> | undefined;
1279
- revokedAt?: UnixMillis | undefined;
1280
- lastUsedAt?: UnixMillis | undefined;
1281
- expiresAt?: UnixMillis | undefined;
1282
1569
  keyId: ApiKeyId;
1283
1570
  prefix: import("../ApiKey.js").ApiKeyPrefix;
1284
1571
  scopes: readonly string[];
1285
1572
  createdAt: UnixMillis;
1573
+ expiresAt?: UnixMillis | undefined;
1574
+ lastUsedAt?: UnixMillis | undefined;
1575
+ revokedAt?: UnixMillis | undefined;
1576
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1286
1577
  }[];
1287
- }, AuthUnauthenticatedError | AuthInternalError, never>;
1578
+ }, AuthInternalError | AuthUnauthenticatedError, never>;
1288
1579
  export declare const makeApiKeyRevokeHandler: (dependencies: {
1289
1580
  readonly apiKeyManagement: ApiKeyManagementService;
1290
1581
  readonly sessions: SessionsService;
1291
1582
  readonly sessionCookie: SessionCookieService;
1292
- }) => (args_0: ApiKeyRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1583
+ }) => (handlerRequest: ApiKeyRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
1293
1584
  export declare const makeRefreshTokenRefreshHandler: (dependencies: {
1294
1585
  readonly refreshTokenManagement: RefreshTokenManagementService;
1295
1586
  readonly jwtIssuer: JwtIssuerService;
1296
1587
  } & RefreshTokenRefreshHttpOptions) => (args_0: RefreshTokenRefreshHandlerRequest) => Effect.Effect<{
1588
+ accessToken: import("../Jwt.js").JwtToken;
1589
+ accessTokenExpiresAt?: UnixMillis | undefined;
1297
1590
  refreshToken: string;
1298
1591
  refreshTokenRecord: {
1299
- metadata?: Readonly<Record<string, unknown>> | undefined;
1300
- reuseDetectedAt?: UnixMillis | undefined;
1301
- revokedAt?: UnixMillis | undefined;
1302
- replacedById?: import("../RefreshToken.js").RefreshTokenId | undefined;
1303
- rotatedAt?: UnixMillis | undefined;
1304
- lastUsedAt?: UnixMillis | undefined;
1305
1592
  tokenId: import("../RefreshToken.js").RefreshTokenId;
1306
1593
  familyId: import("../RefreshToken.js").RefreshTokenFamilyId;
1307
1594
  createdAt: UnixMillis;
1308
1595
  expiresAt: UnixMillis;
1596
+ lastUsedAt?: UnixMillis | undefined;
1597
+ rotatedAt?: UnixMillis | undefined;
1598
+ replacedById?: import("../RefreshToken.js").RefreshTokenId | undefined;
1599
+ revokedAt?: UnixMillis | undefined;
1600
+ reuseDetectedAt?: UnixMillis | undefined;
1601
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1309
1602
  };
1310
- accessTokenExpiresAt?: UnixMillis | undefined;
1311
- accessToken: import("../Jwt.js").JwtToken;
1312
- }, AuthInvalidCredentialsError | AuthInternalError, never>;
1603
+ }, AuthInternalError | AuthInvalidCredentialsError, never>;
1313
1604
  export declare const makeJwtIntrospectHandler: (dependencies: {
1314
1605
  readonly jwtRevocation: JwtRevocationService;
1315
1606
  } & JwtIntrospectionHttpOptions) => (args_0: JwtIntrospectHandlerRequest) => Effect.Effect<{
1316
1607
  readonly active: true;
1317
- readonly header: {
1318
- readonly typ: "JWT";
1319
- readonly alg: "HS256" | "RS256" | "ES256" | "EdDSA";
1320
- readonly kid: string;
1321
- };
1608
+ readonly header: Schema.Struct.ReadonlySide<{
1609
+ readonly typ: Schema.Literal<"JWT">;
1610
+ readonly alg: Schema.Literals<readonly ["HS256", "RS256", "ES256", "EdDSA"]>;
1611
+ readonly kid: Schema.String;
1612
+ }, "Type">;
1322
1613
  readonly claims: {
1323
1614
  readonly [x: string]: unknown;
1324
1615
  };
1325
1616
  readonly key: {
1326
1617
  readonly keyId: string;
1327
- readonly alg: "HS256" | "RS256" | "ES256" | "EdDSA";
1328
- readonly status: "active" | "retired" | "disabled";
1618
+ readonly alg: "ES256" | "EdDSA" | "HS256" | "RS256";
1619
+ readonly status: "active" | "disabled" | "retired";
1329
1620
  readonly createdAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
1330
1621
  readonly expiresAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
1331
1622
  readonly metadata?: {
1332
1623
  readonly [x: string]: unknown;
1333
1624
  } | undefined;
1334
1625
  };
1335
- readonly revoked: false;
1336
1626
  readonly jwtId?: string | undefined;
1337
1627
  readonly expiresAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
1628
+ readonly revoked: false;
1338
1629
  } | {
1339
1630
  readonly active: false;
1340
- readonly reason: "expired" | "revoked" | "malformed" | "unsupported_alg" | "unknown_key" | "invalid_signature" | "not_yet_valid" | "issuer_mismatch" | "audience_mismatch";
1631
+ readonly reason: "audience_mismatch" | "expired" | "invalid_signature" | "issuer_mismatch" | "malformed" | "not_yet_valid" | "revoked" | "unknown_key" | "unsupported_alg";
1341
1632
  readonly jwtId?: string | undefined;
1342
1633
  readonly expiresAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
1343
1634
  readonly revokedAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
@@ -1348,11 +1639,9 @@ export declare const makeJwtRevokeHandler: (dependencies: {
1348
1639
  }) => (args_0: JwtRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError, never>;
1349
1640
  export declare const makeJwtJwksHandler: (dependencies: {
1350
1641
  readonly jwks: JwksService;
1351
- }) => (_: JwtJwksHandlerRequest) => Effect.Effect<{
1352
- readonly keys: readonly {
1353
- readonly [x: string]: unknown;
1354
- }[];
1355
- }, AuthInternalError, never>;
1642
+ }) => (_: JwtJwksHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
1643
+ readonly keys: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
1644
+ }, "Type">, AuthInternalError, never>;
1356
1645
  export declare const makeOidcDiscoveryMetadataHandler: (dependencies: {
1357
1646
  readonly metadata: OidcDiscoveryMetadataService;
1358
1647
  }) => (_: OidcDiscoveryMetadataHandlerRequest) => Effect.Effect<{
@@ -1380,259 +1669,149 @@ export declare const makeMfaOptionsHandler: (dependencies: {
1380
1669
  readonly totpFactorManagement?: TotpFactorManagementService;
1381
1670
  readonly recoveryCodeManagement?: RecoveryCodeManagementService;
1382
1671
  readonly passkeyCredentialManagement?: PasskeyCredentialManagementService;
1383
- }) => (args_0: MfaOptionsHandlerRequest) => Effect.Effect<{
1672
+ }) => (handlerRequest: MfaOptionsHandlerRequest) => Effect.Effect<{
1384
1673
  factors: {
1385
1674
  readonly type: "totp" | "backup-code" | "passkey";
1386
1675
  }[];
1387
- }, AuthBadRequestError | AuthInternalError, never>;
1676
+ }, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1388
1677
  export declare const makeTotpMfaVerifyHandler: (dependencies: {
1389
1678
  readonly totpFactorManagement: TotpFactorManagementService;
1679
+ readonly authFlowState: AuthFlowStateService;
1390
1680
  readonly authFlow: AuthFlowService;
1391
1681
  readonly authHttp: AuthHttpService;
1392
- } & TotpCodeHttpOptions) => (args_0: TotpMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInvalidCredentialsError | AuthPolicyDeniedError | AuthInternalError, never>;
1682
+ } & TotpCodeHttpOptions) => (handlerRequest: TotpMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1393
1683
  export declare const makeTotpMfaVerifyForFlowHandler: (dependencies: {
1394
1684
  readonly totpFactorManagement: TotpFactorManagementService;
1395
1685
  readonly authFlowState: AuthFlowStateService;
1396
1686
  readonly authFlow: AuthFlowService;
1397
1687
  readonly authHttp: AuthHttpService;
1398
- } & TotpCodeHttpOptions) => (args_0: TotpMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInvalidCredentialsError | AuthPolicyDeniedError | AuthInternalError, never>;
1688
+ readonly verificationStore: VerificationStoreService;
1689
+ readonly totpLoginCommitStore: TotpLoginCommitStoreService;
1690
+ readonly users: UserStoreService;
1691
+ } & TotpCodeHttpOptions) => (handlerRequest: TotpMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1399
1692
  export declare const makeRecoveryCodeMfaVerifyHandler: (dependencies: {
1400
1693
  readonly recoveryCodeManagement: RecoveryCodeManagementService;
1694
+ readonly authFlowState: AuthFlowStateService;
1401
1695
  readonly authFlow: AuthFlowService;
1402
1696
  readonly authHttp: AuthHttpService;
1403
- }) => (args_0: RecoveryCodeMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInvalidCredentialsError | AuthPolicyDeniedError | AuthInternalError, never>;
1697
+ }) => (handlerRequest: RecoveryCodeMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1404
1698
  export declare const makeRecoveryCodeMfaVerifyForFlowHandler: (dependencies: {
1405
1699
  readonly recoveryCodeManagement: RecoveryCodeManagementService;
1406
1700
  readonly authFlowState: AuthFlowStateService;
1407
1701
  readonly authFlow: AuthFlowService;
1408
1702
  readonly authHttp: AuthHttpService;
1409
- }) => (args_0: RecoveryCodeMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInvalidCredentialsError | AuthPolicyDeniedError | AuthInternalError, never>;
1703
+ readonly verificationStore: VerificationStoreService;
1704
+ readonly recoveryCodeLoginCommitStore: RecoveryCodeLoginCommitStoreService;
1705
+ readonly users: UserStoreService;
1706
+ }) => (handlerRequest: RecoveryCodeMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1410
1707
  export declare const makePasskeyMfaStartHandler: (dependencies: {
1411
1708
  readonly passkeyOptions: PasskeyOptionsService;
1412
1709
  readonly authFlowState: AuthFlowStateService;
1413
- } & PasskeyAuthenticationStartHttpOptions) => (args_0: PasskeyMfaStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError, never>;
1710
+ } & PasskeyAuthenticationStartHttpOptions) => (handlerRequest: PasskeyMfaStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1414
1711
  export declare const makePasskeyMfaVerifyHandler: (dependencies: {
1415
1712
  readonly passkeyVerification: PasskeyVerificationService;
1713
+ readonly authFlowState: AuthFlowStateService;
1416
1714
  readonly authFlow: AuthFlowService;
1417
1715
  readonly authHttp: AuthHttpService;
1418
- } & PasskeyFinishHttpOptions) => (args_0: PasskeyMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthPolicyDeniedError | AuthInternalError, never>;
1716
+ } & PasskeyFinishHttpOptions) => (handlerRequest: PasskeyMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1419
1717
  export declare const makeStepUpOptionsHandler: (dependencies: {
1420
1718
  readonly sessions: SessionsService;
1421
1719
  readonly sessionCookie: SessionCookieService;
1720
+ readonly credentials?: CredentialStoreService;
1422
1721
  readonly totpFactorManagement?: TotpFactorManagementService;
1423
1722
  readonly recoveryCodeManagement?: RecoveryCodeManagementService;
1424
1723
  readonly passkeyCredentialManagement?: PasskeyCredentialManagementService;
1425
- }) => (args_0: StepUpOptionsHandlerRequest) => Effect.Effect<{
1426
- factors: {
1427
- readonly type: "totp" | "backup-code" | "passkey";
1428
- }[];
1429
- }, AuthUnauthenticatedError | AuthInternalError, never>;
1430
- export declare const makeStepUpTotpVerifyHandler: (dependencies: {
1431
- readonly totpFactorManagement: TotpFactorManagementService;
1432
- readonly sessions: SessionsService;
1433
- readonly sessionCookie: SessionCookieService;
1434
- } & TotpCodeHttpOptions) => (args_0: StepUpTotpVerifyHandlerRequest) => Effect.Effect<{
1435
- mfaVerifiedAt?: UnixMillis | undefined;
1436
- type: "authenticated";
1437
- expiresAt: number;
1438
- aal: import("../Sessions.js").AuthAssuranceLevel;
1439
- amr: readonly AuthMethodReference[];
1440
- }, AuthUnauthenticatedError | AuthInvalidCredentialsError | AuthInternalError, never>;
1441
- export declare const makeStepUpRecoveryCodeVerifyHandler: (dependencies: {
1442
- readonly recoveryCodeManagement: RecoveryCodeManagementService;
1443
- readonly sessions: SessionsService;
1444
- readonly sessionCookie: SessionCookieService;
1445
- }) => (args_0: StepUpRecoveryCodeVerifyHandlerRequest) => Effect.Effect<{
1446
- mfaVerifiedAt?: UnixMillis | undefined;
1447
- type: "authenticated";
1448
- expiresAt: number;
1449
- aal: import("../Sessions.js").AuthAssuranceLevel;
1450
- amr: readonly AuthMethodReference[];
1451
- }, AuthUnauthenticatedError | AuthInvalidCredentialsError | AuthInternalError, never>;
1452
- export declare const makeStepUpPasskeyStartHandler: (dependencies: {
1453
- readonly passkeyOptions: PasskeyOptionsService;
1454
- readonly sessions: SessionsService;
1455
- readonly sessionCookie: SessionCookieService;
1456
- } & PasskeyAuthenticationStartHttpOptions) => (args_0: StepUpPasskeyStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
1457
- export declare const makeStepUpPasskeyVerifyHandler: (dependencies: {
1458
- readonly passkeyVerification: PasskeyVerificationService;
1459
- readonly sessions: SessionsService;
1460
- readonly sessionCookie: SessionCookieService;
1461
- } & PasskeyFinishHttpOptions) => (args_0: StepUpPasskeyVerifyHandlerRequest) => Effect.Effect<{
1462
- mfaVerifiedAt?: UnixMillis | undefined;
1463
- type: "authenticated";
1464
- expiresAt: number;
1465
- aal: import("../Sessions.js").AuthAssuranceLevel;
1466
- amr: readonly AuthMethodReference[];
1467
- }, AuthBadRequestError | AuthUnauthenticatedError | AuthPolicyDeniedError | AuthInternalError, never>;
1468
- export declare const makeLoginApprovalApproveHandler: (dependencies: {
1469
- readonly loginApproval: LoginApprovalService;
1470
- readonly authFlowState: AuthFlowStateService;
1471
- readonly authFlow: AuthFlowService;
1472
- readonly users: UserStoreService;
1473
- readonly authHttp: AuthHttpService;
1474
- readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
1475
- readonly trustedDevice?: TrustedDeviceService;
1476
- readonly trustedDeviceCookie?: TrustedDeviceCookieService;
1477
- }) => (args_0: LoginApprovalApproveHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthPolicyDeniedError | AuthInternalError, never>;
1478
- export declare const makeLoginApprovalStatusHandler: (dependencies: {
1479
- readonly loginApprovalReview?: LoginApprovalReviewService;
1480
- }) => (args_0: LoginApprovalStatusHandlerRequest) => Effect.Effect<{
1481
- status: "expired" | import("../LoginApproval.js").LoginApprovalReviewStatus;
1482
- expiresAt: UnixMillis;
1483
- }, AuthBadRequestError | AuthPolicyDeniedError | AuthInternalError, never>;
1484
- export declare const makeLoginApprovalFinalizeHandler: (dependencies: {
1485
- readonly loginApprovalFinalize?: LoginApprovalFinalizeService;
1486
- readonly authHttp: AuthHttpService;
1487
- readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
1488
- readonly trustedDevice?: TrustedDeviceService;
1489
- readonly trustedDeviceCookie?: TrustedDeviceCookieService;
1490
- }) => (args_0: LoginApprovalFinalizeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthPolicyDeniedError | AuthInternalError, never>;
1491
- declare const PasswordApi_base: HttpApiGroup.HttpApiGroup<"password", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signIn", "POST", "/auth/password/sign-in", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1492
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1493
- readonly password: Schema.String;
1494
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
1495
- readonly type: Schema.Literal<"authenticated">;
1496
- readonly expiresAt: Schema.Number;
1497
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1498
- readonly amr: Schema.$Array<Schema.String>;
1499
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1500
- readonly claims: Schema.optional<Schema.Struct<{
1501
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1502
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1503
- }>>;
1504
- }>, Schema.Struct<{
1505
- readonly type: Schema.Literal<"requires_mfa">;
1506
- readonly flowId: Schema.String;
1507
- readonly factors: Schema.$Array<Schema.Struct<{
1508
- readonly type: Schema.String;
1509
- }>>;
1510
- }>, Schema.Struct<{
1511
- readonly type: Schema.Literal<"requires_email_verification">;
1512
- readonly flowId: Schema.String;
1513
- }>, Schema.Struct<{
1514
- readonly type: Schema.Literal<"requires_login_approval">;
1515
- readonly flowId: Schema.String;
1516
- readonly approvalChallengeId: Schema.String;
1517
- readonly channel: Schema.String;
1518
- readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
1519
- readonly sameDeviceRequired: Schema.Boolean;
1520
- readonly reason: Schema.String;
1521
- }>, Schema.Struct<{
1522
- readonly type: Schema.Literal<"requires_passkey_enrollment">;
1523
- readonly flowId: Schema.String;
1524
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signUp", "POST", "/auth/password/sign-up", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1525
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1526
- readonly password: Schema.String;
1527
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1528
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1529
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
1530
- readonly type: Schema.Literal<"authenticated">;
1531
- readonly expiresAt: Schema.Number;
1532
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1533
- readonly amr: Schema.$Array<Schema.String>;
1534
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1535
- readonly claims: Schema.optional<Schema.Struct<{
1536
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1537
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1538
- }>>;
1539
- }>, Schema.Struct<{
1540
- readonly type: Schema.Literal<"requires_mfa">;
1541
- readonly flowId: Schema.String;
1542
- readonly factors: Schema.$Array<Schema.Struct<{
1543
- readonly type: Schema.String;
1544
- }>>;
1545
- }>, Schema.Struct<{
1546
- readonly type: Schema.Literal<"requires_email_verification">;
1547
- readonly flowId: Schema.String;
1548
- }>, Schema.Struct<{
1549
- readonly type: Schema.Literal<"requires_login_approval">;
1550
- readonly flowId: Schema.String;
1551
- readonly approvalChallengeId: Schema.String;
1552
- readonly channel: Schema.String;
1553
- readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
1554
- readonly sameDeviceRequired: Schema.Boolean;
1555
- readonly reason: Schema.String;
1556
- }>, Schema.Struct<{
1557
- readonly type: Schema.Literal<"requires_passkey_enrollment">;
1558
- readonly flowId: Schema.String;
1559
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthEmailAlreadyRegisteredError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetStart", "POST", "/auth/password/reset/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1560
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1561
- readonly secret: Schema.optional<Schema.String>;
1562
- readonly locale: Schema.optional<Schema.String>;
1563
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1564
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetVerify", "POST", "/auth/password/reset/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1565
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1566
- readonly secret: Schema.String;
1567
- readonly password: Schema.String;
1568
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"set", "POST", "/auth/password/set", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1569
- readonly password: Schema.String;
1570
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1571
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"change", "POST", "/auth/password/change", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1572
- readonly currentPassword: Schema.String;
1573
- readonly newPassword: Schema.String;
1574
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
1575
- export declare class PasswordApi extends PasswordApi_base {
1576
- }
1577
- declare const SessionApi_base: HttpApiGroup.HttpApiGroup<"session", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"current", "GET", "/auth/session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1578
- readonly type: Schema.Literal<"authenticated">;
1579
- readonly userId: Schema.String;
1580
- readonly sessionId: Schema.String;
1581
- readonly authTime: Schema.Number;
1582
- readonly expiresAt: Schema.Number;
1583
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1584
- readonly amr: Schema.$Array<Schema.String>;
1585
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1586
- readonly claims: Schema.optional<Schema.Struct<{
1587
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1588
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1589
- }>>;
1590
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/sessions", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1591
- readonly sessions: Schema.$Array<Schema.Struct<{
1592
- readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
1593
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1594
- readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1595
- readonly authTime: Schema.brand<Schema.Number, "auth/UnixMillis">;
1596
- readonly lastSeenAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1597
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1598
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1599
- readonly amr: Schema.$Array<Schema.String>;
1600
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1601
- readonly current: Schema.Boolean;
1602
- readonly claims: Schema.optional<Schema.Struct<{
1603
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1604
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1605
- }>>;
1606
- readonly ip: Schema.optional<Schema.String>;
1607
- readonly userAgent: Schema.optional<Schema.String>;
1608
- readonly country: Schema.optional<Schema.String>;
1609
- readonly region: Schema.optional<Schema.String>;
1610
- readonly city: Schema.optional<Schema.String>;
1611
- readonly latitude: Schema.optional<Schema.Number>;
1612
- readonly longitude: Schema.optional<Schema.Number>;
1613
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1614
- }>>;
1615
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/auth/session/refresh", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1616
- readonly type: Schema.Literal<"authenticated">;
1617
- readonly userId: Schema.String;
1618
- readonly sessionId: Schema.String;
1619
- readonly authTime: Schema.Number;
1620
- readonly expiresAt: Schema.Number;
1621
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1622
- readonly amr: Schema.$Array<Schema.String>;
1623
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1624
- readonly claims: Schema.optional<Schema.Struct<{
1625
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1626
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1627
- }>>;
1628
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"logout", "POST", "/auth/logout", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/sessions/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1724
+ }) => (handlerRequest: StepUpOptionsHandlerRequest) => Effect.Effect<{
1725
+ factors: {
1726
+ readonly type: "password" | "totp" | "backup-code" | "passkey";
1727
+ }[];
1728
+ }, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1729
+ export declare const makeStepUpTotpVerifyHandler: (dependencies: {
1730
+ readonly totpFactorManagement: TotpFactorManagementService;
1731
+ readonly sessions: SessionsService;
1732
+ readonly sessionCookie: SessionCookieService;
1733
+ readonly totpSessionRotation: TotpSessionRotationService;
1734
+ } & TotpCodeHttpOptions) => (handlerRequest: StepUpTotpVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthInvalidCredentialsError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1735
+ export declare const makeStepUpPasswordVerifyHandler: (dependencies: {
1736
+ readonly credentials: CredentialStoreService;
1737
+ readonly hasher: PasswordHasherService;
1738
+ readonly sessions: SessionsService;
1739
+ readonly sessionCookie: SessionCookieService;
1740
+ }) => (handlerRequest: StepUpPasswordVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthInvalidCredentialsError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1741
+ export declare const makeStepUpRecoveryCodeVerifyHandler: (dependencies: {
1742
+ readonly recoveryCodeManagement: RecoveryCodeManagementService;
1743
+ readonly sessions: SessionsService;
1744
+ readonly recoveryCodeSessionRotation: RecoveryCodeSessionRotationService;
1745
+ readonly sessionCookie: SessionCookieService;
1746
+ }) => (handlerRequest: StepUpRecoveryCodeVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthInvalidCredentialsError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1747
+ export declare const makeStepUpPasskeyStartHandler: (dependencies: {
1748
+ readonly passkeyOptions: PasskeyOptionsService;
1749
+ readonly sessions: SessionsService;
1750
+ readonly sessionCookie: SessionCookieService;
1751
+ } & PasskeyAuthenticationStartHttpOptions) => (handlerRequest: StepUpPasskeyStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1752
+ export declare const makeStepUpPasskeyVerifyHandler: (dependencies: {
1753
+ readonly passkeyVerification: PasskeyVerificationService;
1754
+ readonly sessions: SessionsService;
1755
+ readonly sessionCookie: SessionCookieService;
1756
+ } & PasskeyFinishHttpOptions) => (handlerRequest: StepUpPasskeyVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1757
+ export declare const makeLoginApprovalApproveHandler: (dependencies: {
1758
+ readonly loginApproval: LoginApprovalService;
1759
+ readonly authFlowState: AuthFlowStateService;
1760
+ readonly finalizeAuthFlow: AuthFlowFinalize;
1761
+ readonly identities: IdentityStoreService;
1762
+ readonly authHttp: AuthHttpService;
1763
+ readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
1764
+ readonly trustedDevice?: TrustedDeviceService;
1765
+ readonly trustedDeviceCookie?: TrustedDeviceCookieService;
1766
+ }) => (args_0: LoginApprovalApproveHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
1767
+ export declare const makeLoginApprovalStatusHandler: (dependencies: {
1768
+ readonly loginApprovalReview?: LoginApprovalReviewService;
1769
+ }) => (args_0: LoginApprovalStatusHandlerRequest) => Effect.Effect<{
1770
+ status: "expired" | import("../LoginApproval.js").LoginApprovalReviewStatus;
1771
+ expiresAt: UnixMillis;
1772
+ }, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
1773
+ export declare const makeLoginApprovalFinalizeHandler: (dependencies: {
1774
+ readonly loginApprovalFinalize?: LoginApprovalFinalizeService;
1775
+ readonly authHttp: AuthHttpService;
1776
+ readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
1777
+ readonly trustedDevice?: TrustedDeviceService;
1778
+ readonly trustedDeviceCookie?: TrustedDeviceCookieService;
1779
+ }) => (args_0: LoginApprovalFinalizeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError, never>;
1780
+ export declare const SessionHttpOperationsLive: Layer.Layer<SessionHttpOperations, never, AuthHttp | SessionCookie | Sessions>;
1781
+ export declare const EmailVerificationHttpOperationsLive: Layer.Layer<EmailVerificationHttpOperations, never, AuthRateLimit | EmailVerification | EmailVerificationFlow | IdentityStore | SessionCookie | Sessions>;
1782
+ export declare const EmailOtpHttpOperationsLive: Layer.Layer<EmailOtpHttpOperations, never, AuthHttp | AuthRateLimit | EmailOtpLogin>;
1783
+ export declare const EmailAuthHttpOperationsLive: Layer.Layer<EmailAuthHttpOperations, never, AuthRateLimit | EmailAuth>;
1784
+ export declare const MagicLinkHttpOperationsLive: Layer.Layer<MagicLinkHttpOperations, never, AuthHttp | AuthRateLimit | MagicLinkLogin>;
1785
+ export declare const PasskeyHttpOperationsLive: Layer.Layer<PasskeyHttpOperations, never, AuthHttp | AuthRateLimit | IdentityStore | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | SessionCookie | Sessions | UserStore>;
1786
+ export declare const IdentityHttpOperationsLive: Layer.Layer<IdentityHttpOperations, never, AuthRateLimit | IdentityManagement | SessionCookie | Sessions>;
1787
+ export declare const TotpHttpOperationsLive: Layer.Layer<TotpHttpOperations, never, AuthRateLimit | SessionCookie | Sessions | TotpFactorManagement | TotpHttpConfig>;
1788
+ export declare const RecoveryCodesHttpOperationsLive: Layer.Layer<RecoveryCodesHttpOperations, never, AuthRateLimit | RecoveryCodeManagement | SessionCookie | Sessions>;
1789
+ export declare const MfaHttpOperationsLive: Layer.Layer<MfaHttpOperations, never, AuthFlow | AuthFlowState | AuthHttp | AuthRateLimit | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | RecoveryCodeLoginCommitStore | RecoveryCodeManagement | TotpFactorManagement | TotpHttpConfig | TotpLoginCommitStore | UserStore | VerificationStore>;
1790
+ export declare const StepUpHttpOperationsLive: Layer.Layer<StepUpHttpOperations, never, AuthRateLimit | CredentialStore | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | PasswordHasher | RecoveryCodeManagement | RecoveryCodeSessionRotation | SessionCookie | Sessions | TotpFactorManagement | TotpHttpConfig | TotpSessionRotation>;
1791
+ export declare const AdminSessionHttpOperationsLive: Layer.Layer<AdminSessionHttpOperations, never, AdminSessionAuthorization | SessionCookie | Sessions>;
1792
+ export declare const AdminPermissionDefinitionHttpOperationsLive: Layer.Layer<AdminPermissionDefinitionHttpOperations, never, never>;
1793
+ export declare const LoginNotificationHttpOperationsLive: Layer.Layer<LoginNotificationHttpOperations, never, never>;
1794
+ export declare const SecurityTimelineHttpOperationsLive: Layer.Layer<SecurityTimelineHttpOperations, never, SecurityTimelineStore | SessionCookie | Sessions>;
1795
+ export declare const AdminSecurityTimelineHttpOperationsLive: Layer.Layer<AdminSecurityTimelineHttpOperations, never, AdminSecurityTimelineAuthorization | SecurityTimelineStore | SessionCookie | Sessions>;
1796
+ export declare const TrustedDeviceHttpOperationsLive: Layer.Layer<TrustedDeviceHttpOperations, never, SessionCookie | Sessions | TrustedDeviceStore>;
1797
+ export declare const AdminTrustedDeviceHttpOperationsLive: Layer.Layer<AdminTrustedDeviceHttpOperations, never, AdminTrustedDeviceAuthorization | SessionCookie | Sessions | TrustedDeviceStore>;
1798
+ export declare const OAuthHttpOperationsLive: Layer.Layer<OAuthHttpOperations, never, OAuthAccountUnlinking | OAuthLinkConfirmation | OAuthProviders | OAuthState | SessionCookie | Sessions>;
1799
+ export declare const OAuthProviderAuthorizationHttpOperationsLive: Layer.Layer<OAuthProviderAuthorizationHttpOperations, never, OAuthProviderAuthorization>;
1800
+ export declare const OAuthTokenHttpOperationsLive: Layer.Layer<OAuthTokenHttpOperations, never, OAuthAuthorizationCodeTokenGrant>;
1801
+ export declare const LoginApprovalHttpOperationsLive: Layer.Layer<LoginApprovalHttpOperations, never, AuthFlowState | AuthHttp | IdentityStore | LoginApproval | Sessions>;
1802
+ export declare const ApiKeyHttpOperationsLive: Layer.Layer<ApiKeyHttpOperations, never, ApiKeyManagement | SessionCookie | Sessions>;
1803
+ export declare const RefreshTokenHttpOperationsLive: Layer.Layer<RefreshTokenHttpOperations, never, JwtIssuer | RefreshTokenHttpConfig | RefreshTokenManagement>;
1804
+ export declare const JwtHttpOperationsLive: Layer.Layer<JwtHttpOperations, never, JwtRevocation>;
1805
+ export declare const JwtDiscoveryHttpOperationsLive: Layer.Layer<JwtDiscoveryHttpOperations, never, Jwks>;
1806
+ export declare const OidcDiscoveryHttpOperationsLive: Layer.Layer<OidcDiscoveryHttpOperations, never, OidcDiscoveryMetadata>;
1807
+ declare const AdminSessionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminSession", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/sessions/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
1808
+ readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1629
1809
  readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
1630
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeOthers", "POST", "/auth/sessions/revoke-others", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never>, false>;
1631
- export declare class SessionApi extends SessionApi_base {
1632
- }
1633
- declare const AdminSessionApi_base: HttpApiGroup.HttpApiGroup<"adminSession", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/sessions/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
1810
+ }>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeAll", "POST", "/auth/admin/sessions/revoke-all", never, never, Schema.toCodecJson<Schema.Struct<{
1634
1811
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1635
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1812
+ }>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/sessions/", never, Schema.toCodecStringTree<Schema.Struct<{
1813
+ readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1814
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1636
1815
  readonly sessions: Schema.$Array<Schema.Struct<{
1637
1816
  readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
1638
1817
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
@@ -1651,118 +1830,118 @@ declare const AdminSessionApi_base: HttpApiGroup.HttpApiGroup<"adminSession", im
1651
1830
  readonly latitude: Schema.optional<Schema.Number>;
1652
1831
  readonly longitude: Schema.optional<Schema.Number>;
1653
1832
  }>>;
1654
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/sessions/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1655
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1656
- readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
1657
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeAll", "POST", "/auth/admin/sessions/revoke-all", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1658
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1659
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
1660
- export declare class AdminSessionApi extends AdminSessionApi_base {
1833
+ }>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
1834
+ export declare class AdminSessionHttpApiGroup extends AdminSessionHttpApiGroup_base {
1661
1835
  }
1662
- declare const AdminSessionHttpApi_base: HttpApi.HttpApi<"AdminSessionHttpApi", typeof AdminSessionApi>;
1836
+ declare const AdminSessionHttpApi_base: HttpApi.HttpApi<"AdminSessionHttpApi", typeof AdminSessionHttpApiGroup>;
1663
1837
  export declare class AdminSessionHttpApi extends AdminSessionHttpApi_base {
1664
1838
  }
1665
- declare const EmailVerificationApi_base: HttpApiGroup.HttpApiGroup<"emailVerification", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/email-verification/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1666
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1667
- readonly secret: Schema.optional<Schema.String>;
1668
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/email-verification/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1669
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1670
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1671
- readonly secret: Schema.optional<Schema.String>;
1672
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1673
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never>, false>;
1674
- export declare class EmailVerificationApi extends EmailVerificationApi_base {
1675
- }
1676
- declare const EmailOtpApi_base: HttpApiGroup.HttpApiGroup<"emailOtp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/email-otp/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1677
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1678
- readonly secret: Schema.optional<Schema.String>;
1679
- readonly locale: Schema.optional<Schema.String>;
1680
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1681
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1682
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1683
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1684
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1685
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/email-otp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1686
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1687
- readonly secret: Schema.String;
1688
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
1689
- readonly type: Schema.Literal<"authenticated">;
1690
- readonly expiresAt: Schema.Number;
1691
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1692
- readonly amr: Schema.$Array<Schema.String>;
1693
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1694
- readonly claims: Schema.optional<Schema.Struct<{
1695
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1696
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1697
- }>>;
1698
- }>, Schema.Struct<{
1699
- readonly type: Schema.Literal<"requires_mfa">;
1700
- readonly flowId: Schema.String;
1701
- readonly factors: Schema.$Array<Schema.Struct<{
1702
- readonly type: Schema.String;
1839
+ declare const AdminPermissionDefinitionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminPermissionDefinition", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/auth/admin/permission-definitions", never, never, Schema.toCodecJson<Schema.Struct<{
1840
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1841
+ readonly description: Schema.optional<Schema.String>;
1842
+ readonly scopeType: Schema.optional<Schema.String>;
1843
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1844
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1845
+ readonly description: Schema.optional<Schema.String>;
1846
+ readonly scopeType: Schema.optional<Schema.String>;
1847
+ readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1848
+ readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1849
+ readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1850
+ readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1851
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"delete", "POST", "/auth/admin/permission-definitions/delete", never, never, Schema.toCodecJson<Schema.Struct<{
1852
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1853
+ readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1854
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1855
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1856
+ readonly description: Schema.optional<Schema.String>;
1857
+ readonly scopeType: Schema.optional<Schema.String>;
1858
+ readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1859
+ readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1860
+ readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1861
+ readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1862
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"disable", "POST", "/auth/admin/permission-definitions/disable", never, never, Schema.toCodecJson<Schema.Struct<{
1863
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1864
+ readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1865
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1866
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1867
+ readonly description: Schema.optional<Schema.String>;
1868
+ readonly scopeType: Schema.optional<Schema.String>;
1869
+ readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1870
+ readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1871
+ readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1872
+ readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1873
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"enable", "POST", "/auth/admin/permission-definitions/enable", never, never, Schema.toCodecJson<Schema.Struct<{
1874
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1875
+ readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1876
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1877
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1878
+ readonly description: Schema.optional<Schema.String>;
1879
+ readonly scopeType: Schema.optional<Schema.String>;
1880
+ readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1881
+ readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1882
+ readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1883
+ readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1884
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"update", "POST", "/auth/admin/permission-definitions/update", never, never, Schema.toCodecJson<Schema.Struct<{
1885
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1886
+ readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1887
+ readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
1888
+ readonly scopeType: Schema.optional<Schema.NullOr<Schema.String>>;
1889
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1890
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1891
+ readonly description: Schema.optional<Schema.String>;
1892
+ readonly scopeType: Schema.optional<Schema.String>;
1893
+ readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1894
+ readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1895
+ readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1896
+ readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1897
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"get", "GET", "/auth/admin/permission-definitions/get", never, Schema.toCodecStringTree<Schema.Struct<{
1898
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1899
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1900
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1901
+ readonly description: Schema.optional<Schema.String>;
1902
+ readonly scopeType: Schema.optional<Schema.String>;
1903
+ readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1904
+ readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1905
+ readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1906
+ readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1907
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/permission-definitions", never, Schema.toCodecStringTree<Schema.Struct<{
1908
+ readonly includeDisabled: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>]>>;
1909
+ readonly includeDeleted: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>]>>;
1910
+ readonly after: Schema.optional<Schema.brand<Schema.String, "auth/PermissionId">>;
1911
+ readonly limit: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>;
1912
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1913
+ readonly definitions: Schema.$Array<Schema.Struct<{
1914
+ readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
1915
+ readonly description: Schema.optional<Schema.String>;
1916
+ readonly scopeType: Schema.optional<Schema.String>;
1917
+ readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1918
+ readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1919
+ readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1920
+ readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1703
1921
  }>>;
1704
- }>, Schema.Struct<{
1705
- readonly type: Schema.Literal<"requires_email_verification">;
1706
- readonly flowId: Schema.String;
1707
- }>, Schema.Struct<{
1708
- readonly type: Schema.Literal<"requires_login_approval">;
1709
- readonly flowId: Schema.String;
1710
- readonly approvalChallengeId: Schema.String;
1711
- readonly channel: Schema.String;
1712
- readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
1713
- readonly sameDeviceRequired: Schema.Boolean;
1714
- readonly reason: Schema.String;
1715
- }>, Schema.Struct<{
1716
- readonly type: Schema.Literal<"requires_passkey_enrollment">;
1717
- readonly flowId: Schema.String;
1718
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never>, false>;
1719
- export declare class EmailOtpApi extends EmailOtpApi_base {
1922
+ readonly nextAfter: Schema.optional<Schema.brand<Schema.String, "auth/PermissionId">>;
1923
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
1924
+ export declare class AdminPermissionDefinitionHttpApiGroup extends AdminPermissionDefinitionHttpApiGroup_base {
1720
1925
  }
1721
- declare const MagicLinkApi_base: HttpApiGroup.HttpApiGroup<"magicLink", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/magic-link/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1722
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1723
- readonly secret: Schema.optional<Schema.String>;
1724
- readonly locale: Schema.optional<Schema.String>;
1725
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1726
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1727
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1728
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1729
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/magic-link/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1730
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1731
- readonly secret: Schema.String;
1732
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
1733
- readonly type: Schema.Literal<"authenticated">;
1734
- readonly expiresAt: Schema.Number;
1735
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1736
- readonly amr: Schema.$Array<Schema.String>;
1737
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1738
- readonly claims: Schema.optional<Schema.Struct<{
1739
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1740
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1741
- }>>;
1742
- }>, Schema.Struct<{
1743
- readonly type: Schema.Literal<"requires_mfa">;
1744
- readonly flowId: Schema.String;
1745
- readonly factors: Schema.$Array<Schema.Struct<{
1746
- readonly type: Schema.String;
1747
- }>>;
1748
- }>, Schema.Struct<{
1749
- readonly type: Schema.Literal<"requires_email_verification">;
1750
- readonly flowId: Schema.String;
1751
- }>, Schema.Struct<{
1752
- readonly type: Schema.Literal<"requires_login_approval">;
1753
- readonly flowId: Schema.String;
1754
- readonly approvalChallengeId: Schema.String;
1755
- readonly channel: Schema.String;
1756
- readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
1757
- readonly sameDeviceRequired: Schema.Boolean;
1758
- readonly reason: Schema.String;
1759
- }>, Schema.Struct<{
1760
- readonly type: Schema.Literal<"requires_passkey_enrollment">;
1761
- readonly flowId: Schema.String;
1762
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never>, false>;
1763
- export declare class MagicLinkApi extends MagicLinkApi_base {
1926
+ declare const AdminPermissionDefinitionHttpApi_base: HttpApi.HttpApi<"AdminPermissionDefinitionHttpApi", typeof AdminPermissionDefinitionHttpApiGroup>;
1927
+ export declare class AdminPermissionDefinitionHttpApi extends AdminPermissionDefinitionHttpApi_base {
1928
+ }
1929
+ declare const EmailAuthHttpApi_base: HttpApi.HttpApi<"EmailAuthHttpApi", typeof EmailAuthHttpApiGroup>;
1930
+ export declare class EmailAuthHttpApi extends EmailAuthHttpApi_base {
1931
+ }
1932
+ declare const PasskeyHttpApi_base: HttpApi.HttpApi<"PasskeyHttpApi", typeof PasskeyHttpApiGroup>;
1933
+ export declare class PasskeyHttpApi extends PasskeyHttpApi_base {
1934
+ }
1935
+ declare const IdentityHttpApi_base: HttpApi.HttpApi<"IdentityHttpApi", typeof IdentityHttpApiGroup>;
1936
+ export declare class IdentityHttpApi extends IdentityHttpApi_base {
1764
1937
  }
1765
- declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startAuthorization", "POST", "/auth/oauth/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1938
+ declare const TotpHttpApi_base: HttpApi.HttpApi<"TotpHttpApi", typeof TotpHttpApiGroup>;
1939
+ export declare class TotpHttpApi extends TotpHttpApi_base {
1940
+ }
1941
+ declare const RecoveryCodesHttpApi_base: HttpApi.HttpApi<"RecoveryCodesHttpApi", typeof RecoveryCodesHttpApiGroup>;
1942
+ export declare class RecoveryCodesHttpApi extends RecoveryCodesHttpApi_base {
1943
+ }
1944
+ declare const OAuthHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startAuthorization", "POST", "/auth/oauth/start", never, never, Schema.toCodecJson<Schema.Struct<{
1766
1945
  readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1767
1946
  readonly redirectUri: Schema.optional<Schema.String>;
1768
1947
  readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
@@ -1771,7 +1950,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
1771
1950
  readonly includeNonce: Schema.optional<Schema.Boolean>;
1772
1951
  readonly nonce: Schema.optional<Schema.String>;
1773
1952
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1774
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1953
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1775
1954
  readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1776
1955
  readonly authorizationUrl: Schema.String;
1777
1956
  readonly state: Schema.String;
@@ -1782,11 +1961,69 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
1782
1961
  readonly nonce: Schema.optional<Schema.String>;
1783
1962
  readonly redirectUri: Schema.String;
1784
1963
  readonly scopes: Schema.$Array<Schema.String>;
1785
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/auth/oauth/unlink", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1964
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/auth/oauth/link-confirmation/inspect", never, never, Schema.toCodecJson<Schema.Struct<{
1965
+ readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1966
+ readonly secret: Schema.optional<Schema.String>;
1967
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1968
+ readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1969
+ readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1970
+ readonly identity: Schema.Struct<{
1971
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1972
+ readonly providerAccountId: Schema.String;
1973
+ readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
1974
+ readonly emailVerified: Schema.optional<Schema.Boolean>;
1975
+ }>;
1976
+ readonly reason: Schema.String;
1977
+ readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1978
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startLinkConfirmation", "POST", "/auth/oauth/link-confirmation/start", never, never, Schema.toCodecJson<Schema.Struct<{
1979
+ readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
1980
+ readonly identity: Schema.optional<Schema.Struct<{
1981
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1982
+ readonly providerAccountId: Schema.String;
1983
+ readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
1984
+ readonly emailVerified: Schema.optional<Schema.Boolean>;
1985
+ readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1986
+ }>>;
1987
+ readonly reason: Schema.optional<Schema.String>;
1988
+ readonly secret: Schema.optional<Schema.String>;
1989
+ readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1990
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1991
+ readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1992
+ readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1993
+ readonly identity: Schema.Struct<{
1994
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1995
+ readonly providerAccountId: Schema.String;
1996
+ readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
1997
+ readonly emailVerified: Schema.optional<Schema.Boolean>;
1998
+ }>;
1999
+ readonly reason: Schema.String;
2000
+ readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2001
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/auth/oauth/link-confirmation/confirm", never, never, Schema.toCodecJson<Schema.Struct<{
2002
+ readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
2003
+ readonly secret: Schema.optional<Schema.String>;
2004
+ readonly expectedProviderId: Schema.optional<Schema.brand<Schema.String, "auth/OAuthProviderId">>;
2005
+ readonly expectedProviderAccountId: Schema.optional<Schema.String>;
2006
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2007
+ readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
2008
+ readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2009
+ readonly identity: Schema.Struct<{
2010
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
2011
+ readonly providerAccountId: Schema.String;
2012
+ readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
2013
+ readonly emailVerified: Schema.optional<Schema.Boolean>;
2014
+ }>;
2015
+ readonly reason: Schema.String;
2016
+ readonly existingAccount: Schema.optional<Schema.Struct<{
2017
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
2018
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
2019
+ readonly providerAccountId: Schema.String;
2020
+ }>>;
2021
+ readonly linked: Schema.Boolean;
2022
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/auth/oauth/unlink", never, never, Schema.toCodecJson<Schema.Struct<{
1786
2023
  readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1787
2024
  readonly providerAccountId: Schema.String;
1788
2025
  readonly reason: Schema.optional<Schema.String>;
1789
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
2026
+ }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
1790
2027
  readonly type: Schema.Literal<"allow">;
1791
2028
  readonly reason: Schema.Literal<"owned-account">;
1792
2029
  readonly account: Schema.Struct<{
@@ -1831,68 +2068,13 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
1831
2068
  readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1832
2069
  readonly providerAccountId: Schema.String;
1833
2070
  }>;
1834
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startLinkConfirmation", "POST", "/auth/oauth/link-confirmation/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1835
- readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
1836
- readonly identity: Schema.optional<Schema.Struct<{
1837
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1838
- readonly providerAccountId: Schema.String;
1839
- readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
1840
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1841
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1842
- }>>;
1843
- readonly reason: Schema.optional<Schema.String>;
1844
- readonly secret: Schema.optional<Schema.String>;
1845
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1846
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1847
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1848
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1849
- readonly identity: Schema.Struct<{
1850
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1851
- readonly providerAccountId: Schema.String;
1852
- readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
1853
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1854
- }>;
1855
- readonly reason: Schema.String;
1856
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1857
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/auth/oauth/link-confirmation/inspect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1858
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1859
- readonly secret: Schema.optional<Schema.String>;
1860
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1861
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1862
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1863
- readonly identity: Schema.Struct<{
1864
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1865
- readonly providerAccountId: Schema.String;
1866
- readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
1867
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1868
- }>;
1869
- readonly reason: Schema.String;
1870
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1871
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/auth/oauth/link-confirmation/confirm", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1872
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1873
- readonly secret: Schema.optional<Schema.String>;
1874
- readonly expectedProviderId: Schema.optional<Schema.brand<Schema.String, "auth/OAuthProviderId">>;
1875
- readonly expectedProviderAccountId: Schema.optional<Schema.String>;
1876
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1877
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1878
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1879
- readonly identity: Schema.Struct<{
1880
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1881
- readonly providerAccountId: Schema.String;
1882
- readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
1883
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1884
- }>;
1885
- readonly reason: Schema.String;
1886
- readonly existingAccount: Schema.optional<Schema.Struct<{
1887
- readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1888
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1889
- readonly providerAccountId: Schema.String;
1890
- }>>;
1891
- readonly linked: Schema.Boolean;
1892
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
1893
- export declare class OAuthApi extends OAuthApi_base {
2071
+ }>]>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2072
+ export declare class OAuthHttpApiGroup extends OAuthHttpApiGroup_base {
1894
2073
  }
1895
- declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"token", "POST", "/auth/oauth/token", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2074
+ declare const OAuthHttpApi_base: HttpApi.HttpApi<"OAuthHttpApi", typeof OAuthHttpApiGroup>;
2075
+ export declare class OAuthHttpApi extends OAuthHttpApi_base {
2076
+ }
2077
+ declare const OAuthTokenHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthToken", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/oauth/revoke", never, never, never, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenRevocationEndpointError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"token", "POST", "/auth/oauth/token", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
1896
2078
  readonly access_token: Schema.String;
1897
2079
  readonly token_type: Schema.String;
1898
2080
  readonly expires_in: Schema.optional<Schema.Number>;
@@ -1900,7 +2082,7 @@ declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import
1900
2082
  readonly id_token: Schema.optional<Schema.String>;
1901
2083
  readonly scope: Schema.optional<Schema.String>;
1902
2084
  readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1903
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError | typeof OAuthTokenEndpointError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/oauth/introspect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2085
+ }>>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenEndpointError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/oauth/introspect", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
1904
2086
  readonly active: Schema.Boolean;
1905
2087
  readonly scope: Schema.optional<Schema.String>;
1906
2088
  readonly client_id: Schema.optional<Schema.String>;
@@ -1914,13 +2096,13 @@ declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import
1914
2096
  readonly iss: Schema.optional<Schema.String>;
1915
2097
  readonly jti: Schema.optional<Schema.String>;
1916
2098
  readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1917
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/oauth/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError | typeof OAuthTokenRevocationEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
1918
- export declare class OAuthTokenApi extends OAuthTokenApi_base {
2099
+ }>>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
2100
+ export declare class OAuthTokenHttpApiGroup extends OAuthTokenHttpApiGroup_base {
1919
2101
  }
1920
- declare const OAuthTokenHttpApi_base: HttpApi.HttpApi<"OAuthTokenHttpApi", typeof OAuthTokenApi>;
2102
+ declare const OAuthTokenHttpApi_base: HttpApi.HttpApi<"OAuthTokenHttpApi", typeof OAuthTokenHttpApiGroup>;
1921
2103
  export declare class OAuthTokenHttpApi extends OAuthTokenHttpApi_base {
1922
2104
  }
1923
- declare const OAuthProviderAuthorizationApi_base: HttpApiGroup.HttpApiGroup<"oauthProviderAuthorization", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"authorize", "GET", "/auth/oauth/authorize", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
2105
+ declare const OAuthProviderAuthorizationHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthProviderAuthorization", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"authorize", "GET", "/auth/oauth/authorize", never, Schema.toCodecStringTree<Schema.Struct<{
1924
2106
  readonly response_type: Schema.String;
1925
2107
  readonly client_id: Schema.optional<Schema.String>;
1926
2108
  readonly redirect_uri: Schema.optional<Schema.String>;
@@ -1928,232 +2110,26 @@ declare const OAuthProviderAuthorizationApi_base: HttpApiGroup.HttpApiGroup<"oau
1928
2110
  readonly state: Schema.optional<Schema.String>;
1929
2111
  readonly code_challenge: Schema.optional<Schema.String>;
1930
2112
  readonly code_challenge_method: Schema.optional<Schema.String>;
1931
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError | typeof OAuthAuthorizationEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
1932
- export declare class OAuthProviderAuthorizationApi extends OAuthProviderAuthorizationApi_base {
2113
+ }>>, never, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthAuthorizationEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
2114
+ export declare class OAuthProviderAuthorizationHttpApiGroup extends OAuthProviderAuthorizationHttpApiGroup_base {
1933
2115
  }
1934
- declare const OAuthProviderAuthorizationHttpApi_base: HttpApi.HttpApi<"OAuthProviderAuthorizationHttpApi", typeof OAuthProviderAuthorizationApi>;
2116
+ declare const OAuthProviderAuthorizationHttpApi_base: HttpApi.HttpApi<"OAuthProviderAuthorizationHttpApi", typeof OAuthProviderAuthorizationHttpApiGroup>;
1935
2117
  export declare class OAuthProviderAuthorizationHttpApi extends OAuthProviderAuthorizationHttpApi_base {
1936
2118
  }
1937
- declare const LoginApprovalApi_base: HttpApiGroup.HttpApiGroup<"loginApproval", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"approve", "POST", "/auth/login-approval/approve", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1938
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1939
- readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1940
- readonly secret: Schema.optional<Schema.String>;
1941
- readonly rememberDevice: Schema.optional<Schema.Boolean>;
1942
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1943
- readonly type: Schema.Literal<"authenticated">;
1944
- readonly expiresAt: Schema.Number;
1945
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1946
- readonly amr: Schema.$Array<Schema.String>;
1947
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1948
- readonly claims: Schema.optional<Schema.Struct<{
1949
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1950
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1951
- }>>;
1952
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"status", "POST", "/auth/login-approval/status", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1953
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1954
- readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1955
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1956
- readonly status: Schema.Literals<readonly ["pending", "approved", "denied", "expired"]>;
1957
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1958
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"finalize", "POST", "/auth/login-approval/finalize", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1959
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1960
- readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1961
- readonly rememberDevice: Schema.optional<Schema.Boolean>;
1962
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1963
- readonly type: Schema.Literal<"authenticated">;
1964
- readonly expiresAt: Schema.Number;
1965
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1966
- readonly amr: Schema.$Array<Schema.String>;
1967
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1968
- readonly claims: Schema.optional<Schema.Struct<{
1969
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1970
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1971
- }>>;
1972
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
1973
- export declare class LoginApprovalApi extends LoginApprovalApi_base {
1974
- }
1975
- declare const MfaApi_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "POST", "/auth/mfa/options", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1976
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1977
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1978
- readonly factors: Schema.$Array<Schema.Struct<{
1979
- readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
1980
- }>>;
1981
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotp", "POST", "/auth/mfa/totp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1982
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1983
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1984
- readonly code: Schema.String;
1985
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1986
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1987
- readonly type: Schema.Literal<"authenticated">;
1988
- readonly expiresAt: Schema.Number;
1989
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1990
- readonly amr: Schema.$Array<Schema.String>;
1991
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1992
- readonly claims: Schema.optional<Schema.Struct<{
1993
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1994
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1995
- }>>;
1996
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotpForFlow", "POST", "/auth/mfa/totp/verify-flow", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1997
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1998
- readonly code: Schema.String;
1999
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2000
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2001
- readonly type: Schema.Literal<"authenticated">;
2002
- readonly expiresAt: Schema.Number;
2003
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2004
- readonly amr: Schema.$Array<Schema.String>;
2005
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2006
- readonly claims: Schema.optional<Schema.Struct<{
2007
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2008
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2009
- }>>;
2010
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/mfa/recovery-code/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2011
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
2012
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2013
- readonly code: Schema.String;
2014
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2015
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2016
- readonly type: Schema.Literal<"authenticated">;
2017
- readonly expiresAt: Schema.Number;
2018
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2019
- readonly amr: Schema.$Array<Schema.String>;
2020
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2021
- readonly claims: Schema.optional<Schema.Struct<{
2022
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2023
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2024
- }>>;
2025
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCodeForFlow", "POST", "/auth/mfa/recovery-code/verify-flow", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2026
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
2027
- readonly code: Schema.String;
2028
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2029
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2030
- readonly type: Schema.Literal<"authenticated">;
2031
- readonly expiresAt: Schema.Number;
2032
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2033
- readonly amr: Schema.$Array<Schema.String>;
2034
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2035
- readonly claims: Schema.optional<Schema.Struct<{
2036
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2037
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2038
- }>>;
2039
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startPasskey", "POST", "/auth/mfa/passkey/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2040
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
2041
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2042
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2043
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
2044
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2045
- readonly publicKey: Schema.Struct<{
2046
- readonly challenge: Schema.String;
2047
- readonly rpId: Schema.String;
2048
- readonly timeout: Schema.optional<Schema.Number>;
2049
- readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
2050
- readonly type: Schema.Literal<"public-key">;
2051
- readonly id: Schema.String;
2052
- readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
2053
- }>>>;
2054
- readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
2055
- }>;
2056
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/mfa/passkey/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2057
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
2058
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
2059
- readonly credential: Schema.Struct<{
2060
- readonly id: Schema.String;
2061
- readonly rawId: Schema.optional<Schema.String>;
2062
- readonly type: Schema.Literal<"public-key">;
2063
- readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
2064
- readonly authenticatorAttachment: Schema.optional<Schema.String>;
2065
- readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2066
- }>;
2067
- readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
2068
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2069
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2070
- readonly type: Schema.Literal<"authenticated">;
2071
- readonly expiresAt: Schema.Number;
2072
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2073
- readonly amr: Schema.$Array<Schema.String>;
2074
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2075
- readonly claims: Schema.optional<Schema.Struct<{
2076
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2077
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2078
- }>>;
2079
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
2080
- export declare class MfaApi extends MfaApi_base {
2119
+ declare const MfaHttpApi_base: HttpApi.HttpApi<"MfaHttpApi", typeof MfaHttpApiGroup>;
2120
+ export declare class MfaHttpApi extends MfaHttpApi_base {
2081
2121
  }
2082
- declare const StepUpApi_base: HttpApiGroup.HttpApiGroup<"stepUp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "GET", "/auth/step-up/options", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2083
- readonly factors: Schema.$Array<Schema.Struct<{
2084
- readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
2085
- }>>;
2086
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotp", "POST", "/auth/step-up/totp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2087
- readonly code: Schema.String;
2088
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2089
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2090
- readonly type: Schema.Literal<"authenticated">;
2091
- readonly expiresAt: Schema.Number;
2092
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2093
- readonly amr: Schema.$Array<Schema.String>;
2094
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2095
- readonly claims: Schema.optional<Schema.Struct<{
2096
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2097
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2098
- }>>;
2099
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/step-up/recovery-code/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2100
- readonly code: Schema.String;
2101
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2102
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2103
- readonly type: Schema.Literal<"authenticated">;
2104
- readonly expiresAt: Schema.Number;
2105
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2106
- readonly amr: Schema.$Array<Schema.String>;
2107
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2108
- readonly claims: Schema.optional<Schema.Struct<{
2109
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2110
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2111
- }>>;
2112
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startPasskey", "POST", "/auth/step-up/passkey/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2113
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2114
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2115
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
2116
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2117
- readonly publicKey: Schema.Struct<{
2118
- readonly challenge: Schema.String;
2119
- readonly rpId: Schema.String;
2120
- readonly timeout: Schema.optional<Schema.Number>;
2121
- readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
2122
- readonly type: Schema.Literal<"public-key">;
2123
- readonly id: Schema.String;
2124
- readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
2125
- }>>>;
2126
- readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
2127
- }>;
2128
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/step-up/passkey/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2129
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
2130
- readonly credential: Schema.Struct<{
2131
- readonly id: Schema.String;
2132
- readonly rawId: Schema.optional<Schema.String>;
2133
- readonly type: Schema.Literal<"public-key">;
2134
- readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
2135
- readonly authenticatorAttachment: Schema.optional<Schema.String>;
2136
- readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2137
- }>;
2138
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2139
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2140
- readonly type: Schema.Literal<"authenticated">;
2141
- readonly expiresAt: Schema.Number;
2142
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2143
- readonly amr: Schema.$Array<Schema.String>;
2144
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2145
- readonly claims: Schema.optional<Schema.Struct<{
2146
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2147
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2148
- }>>;
2149
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
2150
- export declare class StepUpApi extends StepUpApi_base {
2122
+ declare const StepUpHttpApi_base: HttpApi.HttpApi<"StepUpHttpApi", typeof StepUpHttpApiGroup>;
2123
+ export declare class StepUpHttpApi extends StepUpHttpApi_base {
2151
2124
  }
2152
- declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/auth/api-keys/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2125
+ declare const ApiKeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeApiKey", "POST", "/auth/api-keys/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
2126
+ readonly keyId: Schema.String;
2127
+ readonly reason: Schema.optional<Schema.String>;
2128
+ }>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/auth/api-keys/", never, never, Schema.toCodecJson<Schema.Struct<{
2153
2129
  readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
2154
2130
  readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2155
2131
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2156
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2132
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2157
2133
  readonly secret: Schema.String;
2158
2134
  readonly key: Schema.Struct<{
2159
2135
  readonly keyId: Schema.String;
@@ -2165,7 +2141,7 @@ declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect
2165
2141
  readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2166
2142
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2167
2143
  }>;
2168
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/auth/api-keys/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2144
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/auth/api-keys/", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
2169
2145
  readonly keys: Schema.$Array<Schema.Struct<{
2170
2146
  readonly keyId: Schema.String;
2171
2147
  readonly prefix: Schema.String;
@@ -2176,16 +2152,16 @@ declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect
2176
2152
  readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2177
2153
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2178
2154
  }>>;
2179
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeApiKey", "POST", "/auth/api-keys/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2180
- readonly keyId: Schema.String;
2181
- readonly reason: Schema.optional<Schema.String>;
2182
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
2183
- export declare class ApiKeyApi extends ApiKeyApi_base {
2155
+ }>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2156
+ export declare class ApiKeyHttpApiGroup extends ApiKeyHttpApiGroup_base {
2184
2157
  }
2185
- declare const RefreshTokenApi_base: HttpApiGroup.HttpApiGroup<"refreshToken", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/auth/token/refresh", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2158
+ declare const ApiKeyHttpApi_base: HttpApi.HttpApi<"ApiKeyHttpApi", typeof ApiKeyHttpApiGroup>;
2159
+ export declare class ApiKeyHttpApi extends ApiKeyHttpApi_base {
2160
+ }
2161
+ declare const RefreshTokenHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"refreshToken", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/auth/token/refresh", never, never, Schema.toCodecJson<Schema.Struct<{
2186
2162
  readonly refreshToken: Schema.String;
2187
2163
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2188
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2164
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2189
2165
  readonly accessToken: Schema.String;
2190
2166
  readonly accessTokenExpiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2191
2167
  readonly refreshToken: Schema.String;
@@ -2201,12 +2177,19 @@ declare const RefreshTokenApi_base: HttpApiGroup.HttpApiGroup<"refreshToken", im
2201
2177
  readonly reuseDetectedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2202
2178
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2203
2179
  }>;
2204
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2205
- export declare class RefreshTokenApi extends RefreshTokenApi_base {
2180
+ }>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2181
+ export declare class RefreshTokenHttpApiGroup extends RefreshTokenHttpApiGroup_base {
2182
+ }
2183
+ declare const RefreshTokenHttpApi_base: HttpApi.HttpApi<"RefreshTokenHttpApi", typeof RefreshTokenHttpApiGroup>;
2184
+ export declare class RefreshTokenHttpApi extends RefreshTokenHttpApi_base {
2206
2185
  }
2207
- declare const JwtApi_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/jwt/introspect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2186
+ declare const JwtHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/jwt/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
2187
+ readonly jwtId: Schema.String;
2188
+ readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2189
+ readonly reason: Schema.optional<Schema.String>;
2190
+ }>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/jwt/introspect", never, never, Schema.toCodecJson<Schema.Struct<{
2208
2191
  readonly token: Schema.String;
2209
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
2192
+ }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2210
2193
  readonly active: Schema.Literal<true>;
2211
2194
  readonly header: Schema.Struct<{
2212
2195
  readonly typ: Schema.Literal<"JWT">;
@@ -2232,22 +2215,21 @@ declare const JwtApi_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unsta
2232
2215
  readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2233
2216
  readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2234
2217
  readonly revokedReason: Schema.optional<Schema.String>;
2235
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/jwt/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2236
- readonly jwtId: Schema.String;
2237
- readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2238
- readonly reason: Schema.optional<Schema.String>;
2239
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2240
- export declare class JwtApi extends JwtApi_base {
2218
+ }>]>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2219
+ export declare class JwtHttpApiGroup extends JwtHttpApiGroup_base {
2241
2220
  }
2242
- declare const JwtDiscoveryApi_base: HttpApiGroup.HttpApiGroup<"jwtDiscovery", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"jwks", "GET", "/.well-known/jwks.json", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2221
+ declare const JwtHttpApi_base: HttpApi.HttpApi<"JwtHttpApi", typeof JwtHttpApiGroup>;
2222
+ export declare class JwtHttpApi extends JwtHttpApi_base {
2223
+ }
2224
+ declare const JwtDiscoveryHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"jwtDiscovery", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"jwks", "GET", "/.well-known/jwks.json", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
2243
2225
  readonly keys: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
2244
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2245
- export declare class JwtDiscoveryApi extends JwtDiscoveryApi_base {
2226
+ }>>, Schema.toCodecJson<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2227
+ export declare class JwtDiscoveryHttpApiGroup extends JwtDiscoveryHttpApiGroup_base {
2246
2228
  }
2247
- declare const JwtDiscoveryHttpApi_base: HttpApi.HttpApi<"JwtDiscoveryHttpApi", typeof JwtDiscoveryApi>;
2229
+ declare const JwtDiscoveryHttpApi_base: HttpApi.HttpApi<"JwtDiscoveryHttpApi", typeof JwtDiscoveryHttpApiGroup>;
2248
2230
  export declare class JwtDiscoveryHttpApi extends JwtDiscoveryHttpApi_base {
2249
2231
  }
2250
- declare const OidcDiscoveryApi_base: HttpApiGroup.HttpApiGroup<"oidcDiscovery", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"openidConfiguration", "GET", "/.well-known/openid-configuration", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2232
+ declare const OidcDiscoveryHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oidcDiscovery", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"openidConfiguration", "GET", "/.well-known/openid-configuration", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
2251
2233
  readonly issuer: Schema.String;
2252
2234
  readonly authorization_endpoint: Schema.String;
2253
2235
  readonly token_endpoint: Schema.String;
@@ -2266,28 +2248,22 @@ declare const OidcDiscoveryApi_base: HttpApiGroup.HttpApiGroup<"oidcDiscovery",
2266
2248
  readonly introspection_endpoint: Schema.optional<Schema.String>;
2267
2249
  readonly revocation_endpoint: Schema.optional<Schema.String>;
2268
2250
  readonly revocation_endpoint_auth_methods_supported: Schema.optional<Schema.$Array<Schema.String>>;
2269
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2270
- export declare class OidcDiscoveryApi extends OidcDiscoveryApi_base {
2251
+ }>>, Schema.toCodecJson<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2252
+ export declare class OidcDiscoveryHttpApiGroup extends OidcDiscoveryHttpApiGroup_base {
2271
2253
  }
2272
- declare const OidcDiscoveryHttpApi_base: HttpApi.HttpApi<"OidcDiscoveryHttpApi", typeof OidcDiscoveryApi>;
2254
+ declare const OidcDiscoveryHttpApi_base: HttpApi.HttpApi<"OidcDiscoveryHttpApi", typeof OidcDiscoveryHttpApiGroup>;
2273
2255
  export declare class OidcDiscoveryHttpApi extends OidcDiscoveryHttpApi_base {
2274
2256
  }
2275
- declare const SecurityApi_base: HttpApiGroup.HttpApiGroup<"security", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"reportLogin", "POST", "/auth/security/login/report", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2276
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
2277
- readonly secret: Schema.String;
2278
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
2279
- export declare class SecurityApi extends SecurityApi_base {
2280
- }
2281
- declare const SecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"securityTimeline", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/security/timeline", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
2257
+ declare const SecurityTimelineHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"securityTimeline", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/security/timeline", never, Schema.toCodecStringTree<Schema.Struct<{
2282
2258
  readonly limit: Schema.optional<Schema.Number>;
2283
2259
  readonly beforeOccurredAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2284
- readonly types: Schema.optional<Schema.$Array<Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>>>;
2285
- readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
2286
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2260
+ readonly types: Schema.optional<Schema.$Array<Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>>>;
2261
+ readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
2262
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2287
2263
  readonly events: Schema.$Array<Schema.Struct<{
2288
2264
  readonly eventId: Schema.String;
2289
- readonly type: Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>;
2290
- readonly category: Schema.Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
2265
+ readonly type: Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>;
2266
+ readonly category: Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
2291
2267
  readonly severity: Schema.Literals<readonly ["info", "warning", "critical"]>;
2292
2268
  readonly occurredAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2293
2269
  readonly summary: Schema.String;
@@ -2303,23 +2279,23 @@ declare const SecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"securityTimel
2303
2279
  }>>;
2304
2280
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2305
2281
  }>>;
2306
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
2307
- export declare class SecurityTimelineApi extends SecurityTimelineApi_base {
2282
+ }>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2283
+ export declare class SecurityTimelineHttpApiGroup extends SecurityTimelineHttpApiGroup_base {
2308
2284
  }
2309
- declare const SecurityTimelineHttpApi_base: HttpApi.HttpApi<"SecurityTimelineHttpApi", typeof SecurityTimelineApi>;
2285
+ declare const SecurityTimelineHttpApi_base: HttpApi.HttpApi<"SecurityTimelineHttpApi", typeof SecurityTimelineHttpApiGroup>;
2310
2286
  export declare class SecurityTimelineHttpApi extends SecurityTimelineHttpApi_base {
2311
2287
  }
2312
- declare const AdminSecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"adminSecurityTimeline", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/security/timeline", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
2288
+ declare const AdminSecurityTimelineHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminSecurityTimeline", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/security/timeline", never, Schema.toCodecStringTree<Schema.Struct<{
2313
2289
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2314
2290
  readonly limit: Schema.optional<Schema.Number>;
2315
2291
  readonly beforeOccurredAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2316
- readonly types: Schema.optional<Schema.$Array<Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>>>;
2317
- readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
2318
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2292
+ readonly types: Schema.optional<Schema.$Array<Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>>>;
2293
+ readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
2294
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2319
2295
  readonly events: Schema.$Array<Schema.Struct<{
2320
2296
  readonly eventId: Schema.String;
2321
- readonly type: Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>;
2322
- readonly category: Schema.Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
2297
+ readonly type: Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>;
2298
+ readonly category: Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
2323
2299
  readonly severity: Schema.Literals<readonly ["info", "warning", "critical"]>;
2324
2300
  readonly occurredAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2325
2301
  readonly summary: Schema.String;
@@ -2335,13 +2311,15 @@ declare const AdminSecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"adminSec
2335
2311
  }>>;
2336
2312
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2337
2313
  }>>;
2338
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
2339
- export declare class AdminSecurityTimelineApi extends AdminSecurityTimelineApi_base {
2314
+ }>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2315
+ export declare class AdminSecurityTimelineHttpApiGroup extends AdminSecurityTimelineHttpApiGroup_base {
2340
2316
  }
2341
- declare const AdminSecurityTimelineHttpApi_base: HttpApi.HttpApi<"AdminSecurityTimelineHttpApi", typeof AdminSecurityTimelineApi>;
2317
+ declare const AdminSecurityTimelineHttpApi_base: HttpApi.HttpApi<"AdminSecurityTimelineHttpApi", typeof AdminSecurityTimelineHttpApiGroup>;
2342
2318
  export declare class AdminSecurityTimelineHttpApi extends AdminSecurityTimelineHttpApi_base {
2343
2319
  }
2344
- declare const TrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"trustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/trusted-devices/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2320
+ declare const TrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"trustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/trusted-devices/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
2321
+ readonly deviceId: Schema.String;
2322
+ }>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/trusted-devices/", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
2345
2323
  readonly devices: Schema.$Array<Schema.Struct<{
2346
2324
  readonly deviceId: Schema.String;
2347
2325
  readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
@@ -2349,17 +2327,18 @@ declare const TrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"trustedDevice",
2349
2327
  readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2350
2328
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2351
2329
  }>>;
2352
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/trusted-devices/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2353
- readonly deviceId: Schema.String;
2354
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
2355
- export declare class TrustedDeviceApi extends TrustedDeviceApi_base {
2330
+ }>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2331
+ export declare class TrustedDeviceHttpApiGroup extends TrustedDeviceHttpApiGroup_base {
2356
2332
  }
2357
- declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof TrustedDeviceApi>;
2333
+ declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof TrustedDeviceHttpApiGroup>;
2358
2334
  export declare class TrustedDeviceHttpApi extends TrustedDeviceHttpApi_base {
2359
2335
  }
2360
- declare const AdminTrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"adminTrustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/trusted-devices/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
2336
+ declare const AdminTrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminTrustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/trusted-devices/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
2361
2337
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2362
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2338
+ readonly deviceId: Schema.String;
2339
+ }>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/trusted-devices/", never, Schema.toCodecStringTree<Schema.Struct<{
2340
+ readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2341
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2363
2342
  readonly devices: Schema.$Array<Schema.Struct<{
2364
2343
  readonly deviceId: Schema.String;
2365
2344
  readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
@@ -2367,44 +2346,65 @@ declare const AdminTrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"adminTruste
2367
2346
  readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2368
2347
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2369
2348
  }>>;
2370
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/trusted-devices/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2371
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2372
- readonly deviceId: Schema.String;
2373
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
2374
- export declare class AdminTrustedDeviceApi extends AdminTrustedDeviceApi_base {
2349
+ }>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2350
+ export declare class AdminTrustedDeviceHttpApiGroup extends AdminTrustedDeviceHttpApiGroup_base {
2375
2351
  }
2376
- declare const AdminTrustedDeviceHttpApi_base: HttpApi.HttpApi<"AdminTrustedDeviceHttpApi", typeof AdminTrustedDeviceApi>;
2352
+ declare const AdminTrustedDeviceHttpApi_base: HttpApi.HttpApi<"AdminTrustedDeviceHttpApi", typeof AdminTrustedDeviceHttpApiGroup>;
2377
2353
  export declare class AdminTrustedDeviceHttpApi extends AdminTrustedDeviceHttpApi_base {
2378
2354
  }
2379
- declare const AuthApi_base: HttpApi.HttpApi<"AuthApi", typeof PasswordApi | typeof SessionApi | typeof EmailVerificationApi | typeof EmailOtpApi | typeof MagicLinkApi | typeof LoginApprovalApi | typeof SecurityApi>;
2380
- export declare class AuthApi extends AuthApi_base {
2381
- }
2382
- export declare const PasswordApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "password">, never, Sessions | SessionCookie | PasswordLogin | PasswordRegistration | PasswordReset | PasswordManagement | AuthSchemaErrorMiddleware | AuthHttp | EmailVerificationFlow | AuthApiRateLimit | AuthOriginCheckMiddleware | AuthRateLimitMiddleware>;
2383
- export declare const SessionApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "session">, never, Sessions | SessionCookie | AuthHttp | AuthOriginCheckMiddleware>;
2384
- export declare const AdminSessionApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminSessionHttpApi", "adminSession">, never, Sessions | SessionCookie | AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AdminSessionAuthorization>;
2385
- export declare const AdminSessionHttpApiLive: Layer.Layer<never, never, Sessions | SessionCookie | import("effect/FileSystem").FileSystem | import("effect/Path").Path | AdminSessionAuthorization | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2386
- export declare const EmailVerificationApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "emailVerification">, never, Sessions | SessionCookie | AuthSchemaErrorMiddleware | EmailVerificationFlow | EmailVerification | AuthApiRateLimit | AuthOriginCheckMiddleware | AuthRateLimitMiddleware>;
2387
- export declare const EmailOtpApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "emailOtp">, never, EmailOtpLogin | AuthSchemaErrorMiddleware | AuthHttp | AuthApiRateLimit | AuthOriginCheckMiddleware | AuthRateLimitMiddleware>;
2388
- export declare const MagicLinkApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "magicLink">, never, MagicLinkLogin | AuthSchemaErrorMiddleware | AuthHttp | AuthApiRateLimit | AuthOriginCheckMiddleware | AuthRateLimitMiddleware>;
2389
- export declare const LoginApprovalApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "loginApproval">, never, UserStore | LoginApproval | AuthFlowState | AuthFlow | AuthSchemaErrorMiddleware | AuthHttp | AuthOriginCheckMiddleware>;
2390
- export declare const SecurityApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "security">, never, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware>;
2391
- export declare const SecurityTimelineApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"SecurityTimelineHttpApi", "securityTimeline">, never, Sessions | SessionCookie | AuthSchemaErrorMiddleware | SecurityTimelineStore | AuthOriginCheckMiddleware>;
2392
- export declare const SecurityTimelineHttpApiLive: Layer.Layer<never, never, Sessions | SessionCookie | SecurityTimelineStore | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2393
- export declare const OAuthProviderAuthorizationApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"OAuthProviderAuthorizationHttpApi", "oauthProviderAuthorization">, never, AuthSchemaErrorMiddleware | OAuthProviderAuthorization>;
2394
- export declare const OAuthProviderAuthorizationHttpApiLive: Layer.Layer<never, never, OAuthProviderAuthorization | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2395
- export declare const OAuthTokenApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"OAuthTokenHttpApi", "oauthToken">, never, AuthSchemaErrorMiddleware | OAuthAuthorizationCodeTokenGrant>;
2396
- export declare const OAuthTokenHttpApiLive: Layer.Layer<never, never, OAuthAuthorizationCodeTokenGrant | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2397
- export declare const JwtDiscoveryApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"JwtDiscoveryHttpApi", "jwtDiscovery">, never, AuthSchemaErrorMiddleware | Jwks>;
2398
- export declare const JwtDiscoveryHttpApiLive: Layer.Layer<never, never, Jwks | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2399
- export declare const OidcDiscoveryApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"OidcDiscoveryHttpApi", "oidcDiscovery">, never, AuthSchemaErrorMiddleware | OidcDiscoveryMetadata>;
2400
- export declare const OidcDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/Path").Path | OidcDiscoveryMetadata | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2401
- export declare const AdminSecurityTimelineApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminSecurityTimelineHttpApi", "adminSecurityTimeline">, never, Sessions | SessionCookie | AuthSchemaErrorMiddleware | SecurityTimelineStore | AuthOriginCheckMiddleware | AdminSecurityTimelineAuthorization>;
2402
- export declare const AdminSecurityTimelineHttpApiLive: Layer.Layer<never, never, Sessions | SessionCookie | SecurityTimelineStore | import("effect/FileSystem").FileSystem | import("effect/Path").Path | AdminSecurityTimelineAuthorization | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2403
- export declare const TrustedDeviceApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"TrustedDeviceHttpApi", "trustedDevice">, never, Sessions | TrustedDeviceStore | SessionCookie | AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware>;
2404
- export declare const TrustedDeviceHttpApiLive: Layer.Layer<never, never, Sessions | TrustedDeviceStore | SessionCookie | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2405
- export declare const AdminTrustedDeviceApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminTrustedDeviceHttpApi", "adminTrustedDevice">, never, Sessions | TrustedDeviceStore | SessionCookie | AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AdminTrustedDeviceAuthorization>;
2406
- export declare const AdminTrustedDeviceHttpApiLive: Layer.Layer<never, never, Sessions | TrustedDeviceStore | SessionCookie | import("effect/FileSystem").FileSystem | import("effect/Path").Path | AdminTrustedDeviceAuthorization | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2407
- export declare const AuthHttpApiBareLive: Layer.Layer<never, never, UserStore | LoginApproval | Sessions | AuthFlowState | AuthFlow | SessionCookie | EmailOtpLogin | MagicLinkLogin | PasswordLogin | PasswordRegistration | PasswordReset | PasswordManagement | AuthHttp | EmailVerificationFlow | EmailVerification | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2408
- export declare const AuthHttpApiLive: Layer.Layer<never, never, UserStore | LoginApproval | Sessions | AuthFlowState | AuthFlow | import("../Privacy.js").Privacy | SessionCookie | EmailOtpLogin | MagicLinkLogin | PasswordLogin | PasswordRegistration | PasswordReset | PasswordManagement | AuthHttp | EmailVerificationFlow | EmailVerification | import("../RateLimiter.js").RateLimiter | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
2355
+ declare const CoreAuthHttpApi_base: HttpApi.HttpApi<"AuthApi", typeof PasswordHttpApiGroup | typeof SessionHttpApiGroup | typeof EmailVerificationHttpApiGroup | typeof EmailOtpHttpApiGroup | typeof MagicLinkHttpApiGroup | typeof LoginApprovalHttpApiGroup | typeof LoginNotificationHttpApiGroup>;
2356
+ export declare class CoreAuthHttpApi extends CoreAuthHttpApi_base {
2357
+ }
2358
+ export declare const CoreAuthPasswordGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "password">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | import("./Password.js").PasswordHttpOperations>;
2359
+ export declare const CoreAuthSessionGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "session">, never, AuthOriginCheckMiddleware | SessionHttpOperations>;
2360
+ export declare const CoreAuthEmailVerificationGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "emailVerification">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | EmailVerificationHttpOperations>;
2361
+ export declare const CoreAuthEmailOtpGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "emailOtp">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | EmailOtpHttpOperations>;
2362
+ export declare const EmailAuthHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"EmailAuthHttpApi", "emailAuth">, never, EmailAuthHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2363
+ export declare const CoreAuthMagicLinkGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "magicLink">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | MagicLinkHttpOperations>;
2364
+ export declare const PasskeyHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"PasskeyHttpApi", "passkey">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | PasskeyHttpOperations>;
2365
+ export declare const IdentityHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"IdentityHttpApi", "identity">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | IdentityHttpOperations>;
2366
+ export declare const TotpHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"TotpHttpApi", "totp">, never, TotpHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2367
+ export declare const RecoveryCodesHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"RecoveryCodesHttpApi", "recoveryCodes">, never, RecoveryCodesHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2368
+ export declare const MfaHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"MfaHttpApi", "mfa">, never, MfaHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2369
+ export declare const StepUpHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"StepUpHttpApi", "stepUp">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | StepUpHttpOperations>;
2370
+ export declare const OAuthHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthHttpApi", "oauth">, never, OAuthHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2371
+ export declare const OAuthHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthAccountUnlinking | OAuthLinkConfirmation | OAuthProviders | OAuthState | import("effect/Path").Path | SessionCookie | Sessions>;
2372
+ export declare const ApiKeyHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"ApiKeyHttpApi", "apiKey">, never, ApiKeyHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2373
+ export declare const ApiKeyHttpApiLive: Layer.Layer<never, never, ApiKeyManagement | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SessionCookie | Sessions>;
2374
+ export declare const RefreshTokenHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"RefreshTokenHttpApi", "refreshToken">, never, AuthSchemaErrorMiddleware | RefreshTokenHttpOperations>;
2375
+ export declare const RefreshTokenHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | JwtIssuer | import("effect/Path").Path | RefreshTokenHttpConfig | RefreshTokenManagement>;
2376
+ export declare const JwtHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"JwtHttpApi", "jwt">, never, AuthSchemaErrorMiddleware | JwtHttpOperations>;
2377
+ export declare const JwtHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | JwtRevocation | import("effect/Path").Path>;
2378
+ export declare const AdminSessionHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminSessionHttpApi", "adminSession">, never, AdminSessionHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2379
+ export declare const AdminSessionHttpApiLive: Layer.Layer<never, never, AdminSessionAuthorization | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SessionCookie | Sessions>;
2380
+ export declare const AdminPermissionDefinitionHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminPermissionDefinitionHttpApi", "adminPermissionDefinition">, never, AdminPermissionDefinitionHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2381
+ export declare const AdminPermissionDefinitionHttpRequirementsLive: Layer.Layer<HttpRouter.Request<"GlobalRequires", AdminPermissionDefinitionAuthorization> | HttpRouter.Request<"GlobalRequires", PermissionAdministration> | HttpRouter.Request<"GlobalRequires", SessionCookie> | HttpRouter.Request<"GlobalRequires", Sessions> | HttpRouter.Request<"Requires", AdminPermissionDefinitionAuthorization> | HttpRouter.Request<"Requires", PermissionAdministration> | HttpRouter.Request<"Requires", SessionCookie> | HttpRouter.Request<"Requires", Sessions>, never, HttpRouter.HttpRouter | AdminPermissionDefinitionHttpOperationRequirements>;
2382
+ export declare const AdminPermissionDefinitionHttpApiLive: Layer.Layer<HttpRouter.Request<"GlobalRequires", AdminPermissionDefinitionAuthorization> | HttpRouter.Request<"GlobalRequires", PermissionAdministration> | HttpRouter.Request<"GlobalRequires", SessionCookie> | HttpRouter.Request<"GlobalRequires", Sessions> | HttpRouter.Request<"Requires", AdminPermissionDefinitionAuthorization> | HttpRouter.Request<"Requires", PermissionAdministration> | HttpRouter.Request<"Requires", SessionCookie> | HttpRouter.Request<"Requires", Sessions>, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | AdminPermissionDefinitionHttpOperationRequirements>;
2383
+ export declare const EmailAuthHttpApiLive: Layer.Layer<never, never, AuthRateLimit | EmailAuth | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path>;
2384
+ export declare const PasskeyHttpApiLive: Layer.Layer<never, never, AuthHttp | AuthRateLimit | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | IdentityStore | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | import("effect/Path").Path | SessionCookie | Sessions | UserStore>;
2385
+ export declare const IdentityHttpApiLive: Layer.Layer<never, never, AuthRateLimit | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | IdentityManagement | import("effect/Path").Path | SessionCookie | Sessions>;
2386
+ export declare const TotpHttpApiLive: Layer.Layer<never, never, AuthRateLimit | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SessionCookie | Sessions | TotpFactorManagement | TotpHttpConfig>;
2387
+ export declare const RecoveryCodesHttpApiLive: Layer.Layer<never, never, AuthRateLimit | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | RecoveryCodeManagement | SessionCookie | Sessions>;
2388
+ export declare const MfaHttpApiLive: Layer.Layer<never, never, AuthFlow | AuthFlowState | AuthHttp | AuthRateLimit | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | import("effect/Path").Path | RecoveryCodeLoginCommitStore | RecoveryCodeManagement | TotpFactorManagement | TotpHttpConfig | TotpLoginCommitStore | UserStore | VerificationStore>;
2389
+ export declare const StepUpHttpApiLive: Layer.Layer<never, never, AuthRateLimit | CredentialStore | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | PasswordHasher | import("effect/Path").Path | RecoveryCodeManagement | RecoveryCodeSessionRotation | SessionCookie | Sessions | TotpFactorManagement | TotpHttpConfig | TotpSessionRotation>;
2390
+ export declare const CoreAuthLoginApprovalGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "loginApproval">, never, LoginApprovalHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2391
+ export declare const CoreAuthLoginNotificationGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "security">, never, LoginNotificationHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2392
+ export declare const SecurityTimelineHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"SecurityTimelineHttpApi", "securityTimeline">, never, SecurityTimelineHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2393
+ export declare const SecurityTimelineHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SecurityTimelineStore | SessionCookie | Sessions>;
2394
+ export declare const OAuthProviderAuthorizationHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthProviderAuthorizationHttpApi", "oauthProviderAuthorization">, never, AuthSchemaErrorMiddleware | OAuthProviderAuthorizationHttpOperations>;
2395
+ export declare const OAuthProviderAuthorizationHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthProviderAuthorization | import("effect/Path").Path>;
2396
+ export declare const OAuthTokenHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthTokenHttpApi", "oauthToken">, never, AuthSchemaErrorMiddleware | OAuthTokenHttpOperations>;
2397
+ export declare const OAuthTokenHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthAuthorizationCodeTokenGrant | import("effect/Path").Path>;
2398
+ export declare const JwtDiscoveryHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"JwtDiscoveryHttpApi", "jwtDiscovery">, never, AuthSchemaErrorMiddleware | JwtDiscoveryHttpOperations>;
2399
+ export declare const JwtDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | Jwks | import("effect/Path").Path>;
2400
+ export declare const OidcDiscoveryHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OidcDiscoveryHttpApi", "oidcDiscovery">, never, AuthSchemaErrorMiddleware | OidcDiscoveryHttpOperations>;
2401
+ export declare const OidcDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OidcDiscoveryMetadata | import("effect/Path").Path>;
2402
+ export declare const AdminSecurityTimelineHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminSecurityTimelineHttpApi", "adminSecurityTimeline">, never, AdminSecurityTimelineHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
2403
+ export declare const AdminSecurityTimelineHttpApiLive: Layer.Layer<never, never, AdminSecurityTimelineAuthorization | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SecurityTimelineStore | SessionCookie | Sessions>;
2404
+ export declare const TrustedDeviceHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"TrustedDeviceHttpApi", "trustedDevice">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | TrustedDeviceHttpOperations>;
2405
+ export declare const TrustedDeviceHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SessionCookie | Sessions | TrustedDeviceStore>;
2406
+ export declare const AdminTrustedDeviceHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminTrustedDeviceHttpApi", "adminTrustedDevice">, never, AdminTrustedDeviceHttpOperations | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware>;
2407
+ export declare const AdminTrustedDeviceHttpApiLive: Layer.Layer<never, never, AdminTrustedDeviceAuthorization | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SessionCookie | Sessions | TrustedDeviceStore>;
2408
+ export declare const CoreAuthHttpApiLive: Layer.Layer<never, never, AuthFlowState | AuthHttp | AuthRateLimit | EmailOtpLogin | EmailVerification | EmailVerificationFlow | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | IdentityStore | LoginApproval | MagicLinkLogin | import("../Password.js").PasswordLogin | import("../Password.js").PasswordManagement | import("../Password.js").PasswordRegistration | import("../Password.js").PasswordReset | import("effect/Path").Path | SessionCookie | Sessions>;
2409
2409
  export { AuthResult };
2410
2410
  //# sourceMappingURL=Api.d.ts.map