@effect-auth/core 0.1.0-alpha.16 → 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 (607) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +308 -133
  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 +0 -12
  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/AuthFlow.d.ts +128 -38
  28. package/dist/AuthFlow.d.ts.map +1 -1
  29. package/dist/AuthFlow.js +611 -263
  30. package/dist/AuthFlow.js.map +1 -1
  31. package/dist/AuthRateLimit.d.ts +96 -0
  32. package/dist/AuthRateLimit.d.ts.map +1 -0
  33. package/dist/AuthRateLimit.js +212 -0
  34. package/dist/AuthRateLimit.js.map +1 -0
  35. package/dist/Challenge.d.ts +0 -3
  36. package/dist/Challenge.d.ts.map +1 -1
  37. package/dist/Challenge.js +1 -4
  38. package/dist/Challenge.js.map +1 -1
  39. package/dist/Client.d.ts +205 -10
  40. package/dist/Client.d.ts.map +1 -1
  41. package/dist/Client.js +397 -16
  42. package/dist/Client.js.map +1 -1
  43. package/dist/CloudflareTurnstile.d.ts +28 -0
  44. package/dist/CloudflareTurnstile.d.ts.map +1 -0
  45. package/dist/CloudflareTurnstile.js +205 -0
  46. package/dist/CloudflareTurnstile.js.map +1 -0
  47. package/dist/Crypto.d.ts +0 -3
  48. package/dist/Crypto.d.ts.map +1 -1
  49. package/dist/Crypto.js +1 -4
  50. package/dist/Crypto.js.map +1 -1
  51. package/dist/DelegatedAccessStorageMigrations.d.ts +7 -0
  52. package/dist/DelegatedAccessStorageMigrations.d.ts.map +1 -0
  53. package/dist/DelegatedAccessStorageMigrations.js +159 -0
  54. package/dist/DelegatedAccessStorageMigrations.js.map +1 -0
  55. package/dist/DisposableEmailDomains.d.ts +19 -0
  56. package/dist/DisposableEmailDomains.d.ts.map +1 -0
  57. package/dist/DisposableEmailDomains.js +85 -0
  58. package/dist/DisposableEmailDomains.js.map +1 -0
  59. package/dist/DomainVerification.d.ts +0 -9
  60. package/dist/DomainVerification.d.ts.map +1 -1
  61. package/dist/DomainVerification.js +36 -22
  62. package/dist/DomainVerification.js.map +1 -1
  63. package/dist/DrizzleBunSqliteStorage.d.ts +18 -0
  64. package/dist/DrizzleBunSqliteStorage.d.ts.map +1 -0
  65. package/dist/DrizzleBunSqliteStorage.js +11 -0
  66. package/dist/DrizzleBunSqliteStorage.js.map +1 -0
  67. package/dist/DrizzleD1SqliteStorage.d.ts +4 -4
  68. package/dist/DrizzleD1SqliteStorage.d.ts.map +1 -1
  69. package/dist/DrizzleD1SqliteStorage.js +5 -5
  70. package/dist/DrizzleD1SqliteStorage.js.map +1 -1
  71. package/dist/DrizzleDurableObjectSqliteStorage.d.ts +19 -0
  72. package/dist/DrizzleDurableObjectSqliteStorage.d.ts.map +1 -0
  73. package/dist/DrizzleDurableObjectSqliteStorage.js +14 -0
  74. package/dist/DrizzleDurableObjectSqliteStorage.js.map +1 -0
  75. package/dist/DrizzleEffectSqliteStorage.d.ts +13 -4
  76. package/dist/DrizzleEffectSqliteStorage.d.ts.map +1 -1
  77. package/dist/DrizzleEffectSqliteStorage.js +71 -4
  78. package/dist/DrizzleEffectSqliteStorage.js.map +1 -1
  79. package/dist/DrizzleNodeSqliteStorage.d.ts +18 -0
  80. package/dist/DrizzleNodeSqliteStorage.d.ts.map +1 -0
  81. package/dist/DrizzleNodeSqliteStorage.js +11 -0
  82. package/dist/DrizzleNodeSqliteStorage.js.map +1 -0
  83. package/dist/DrizzleWasmSqliteStorage.d.ts +23 -0
  84. package/dist/DrizzleWasmSqliteStorage.d.ts.map +1 -0
  85. package/dist/DrizzleWasmSqliteStorage.js +15 -0
  86. package/dist/DrizzleWasmSqliteStorage.js.map +1 -0
  87. package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts +34 -0
  88. package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts.map +1 -0
  89. package/dist/EffectQbPostgresDelegatedAccessStorage.js +499 -0
  90. package/dist/EffectQbPostgresDelegatedAccessStorage.js.map +1 -0
  91. package/dist/EffectQbPostgresStorage.d.ts +171 -0
  92. package/dist/EffectQbPostgresStorage.d.ts.map +1 -0
  93. package/dist/EffectQbPostgresStorage.js +4280 -0
  94. package/dist/EffectQbPostgresStorage.js.map +1 -0
  95. package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts +112 -0
  96. package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts.map +1 -0
  97. package/dist/EffectQbSqliteDelegatedAccessStorage.js +602 -0
  98. package/dist/EffectQbSqliteDelegatedAccessStorage.js.map +1 -0
  99. package/dist/EffectQbSqliteStorage.d.ts +181 -23
  100. package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
  101. package/dist/EffectQbSqliteStorage.js +1728 -135
  102. package/dist/EffectQbSqliteStorage.js.map +1 -1
  103. package/dist/EmailAuth.d.ts +65 -0
  104. package/dist/EmailAuth.d.ts.map +1 -0
  105. package/dist/EmailAuth.js +171 -0
  106. package/dist/EmailAuth.js.map +1 -0
  107. package/dist/EmailIdentityAuth.d.ts +30 -0
  108. package/dist/EmailIdentityAuth.d.ts.map +1 -0
  109. package/dist/EmailIdentityAuth.js +142 -0
  110. package/dist/EmailIdentityAuth.js.map +1 -0
  111. package/dist/EmailOtp.d.ts +10 -11
  112. package/dist/EmailOtp.d.ts.map +1 -1
  113. package/dist/EmailOtp.js +44 -81
  114. package/dist/EmailOtp.js.map +1 -1
  115. package/dist/EmailRisk.d.ts +48 -0
  116. package/dist/EmailRisk.d.ts.map +1 -0
  117. package/dist/EmailRisk.js +33 -0
  118. package/dist/EmailRisk.js.map +1 -0
  119. package/dist/EmailVerification.d.ts +10 -16
  120. package/dist/EmailVerification.d.ts.map +1 -1
  121. package/dist/EmailVerification.js +85 -42
  122. package/dist/EmailVerification.js.map +1 -1
  123. package/dist/Guard.d.ts +11 -0
  124. package/dist/Guard.d.ts.map +1 -0
  125. package/dist/Guard.js +11 -0
  126. package/dist/Guard.js.map +1 -0
  127. package/dist/HibpPwnedPasswords.d.ts +56 -0
  128. package/dist/HibpPwnedPasswords.d.ts.map +1 -0
  129. package/dist/HibpPwnedPasswords.js +232 -0
  130. package/dist/HibpPwnedPasswords.js.map +1 -0
  131. package/dist/HttpApi/AdminPermissionDefinition.d.ts +4 -0
  132. package/dist/HttpApi/AdminPermissionDefinition.d.ts.map +1 -0
  133. package/dist/HttpApi/AdminPermissionDefinition.js +4 -0
  134. package/dist/HttpApi/AdminPermissionDefinition.js.map +1 -0
  135. package/dist/HttpApi/AdminSecurityTimeline.d.ts +4 -0
  136. package/dist/HttpApi/AdminSecurityTimeline.d.ts.map +1 -0
  137. package/dist/HttpApi/AdminSecurityTimeline.js +4 -0
  138. package/dist/HttpApi/AdminSecurityTimeline.js.map +1 -0
  139. package/dist/HttpApi/AdminSession.d.ts +4 -0
  140. package/dist/HttpApi/AdminSession.d.ts.map +1 -0
  141. package/dist/HttpApi/AdminSession.js +4 -0
  142. package/dist/HttpApi/AdminSession.js.map +1 -0
  143. package/dist/HttpApi/AdminTrustedDevice.d.ts +4 -0
  144. package/dist/HttpApi/AdminTrustedDevice.d.ts.map +1 -0
  145. package/dist/HttpApi/AdminTrustedDevice.js +4 -0
  146. package/dist/HttpApi/AdminTrustedDevice.js.map +1 -0
  147. package/dist/HttpApi/Api.d.ts +879 -877
  148. package/dist/HttpApi/Api.d.ts.map +1 -1
  149. package/dist/HttpApi/Api.js +2160 -896
  150. package/dist/HttpApi/Api.js.map +1 -1
  151. package/dist/HttpApi/ApiKey.d.ts +4 -0
  152. package/dist/HttpApi/ApiKey.d.ts.map +1 -0
  153. package/dist/HttpApi/ApiKey.js +4 -0
  154. package/dist/HttpApi/ApiKey.js.map +1 -0
  155. package/dist/HttpApi/Audit.d.ts +6 -0
  156. package/dist/HttpApi/Audit.d.ts.map +1 -0
  157. package/dist/HttpApi/Audit.js +10 -0
  158. package/dist/HttpApi/Audit.js.map +1 -0
  159. package/dist/HttpApi/ClientApi.d.ts +917 -0
  160. package/dist/HttpApi/ClientApi.d.ts.map +1 -0
  161. package/dist/HttpApi/ClientApi.js +101 -0
  162. package/dist/HttpApi/ClientApi.js.map +1 -0
  163. package/dist/HttpApi/EmailAuth.d.ts +6 -0
  164. package/dist/HttpApi/EmailAuth.d.ts.map +1 -0
  165. package/dist/HttpApi/EmailAuth.js +6 -0
  166. package/dist/HttpApi/EmailAuth.js.map +1 -0
  167. package/dist/HttpApi/EmailGuards.d.ts +115 -0
  168. package/dist/HttpApi/EmailGuards.d.ts.map +1 -0
  169. package/dist/HttpApi/EmailGuards.js +191 -0
  170. package/dist/HttpApi/EmailGuards.js.map +1 -0
  171. package/dist/HttpApi/EmailOtp.d.ts +6 -0
  172. package/dist/HttpApi/EmailOtp.d.ts.map +1 -0
  173. package/dist/HttpApi/EmailOtp.js +6 -0
  174. package/dist/HttpApi/EmailOtp.js.map +1 -0
  175. package/dist/HttpApi/EmailVerification.d.ts +6 -0
  176. package/dist/HttpApi/EmailVerification.d.ts.map +1 -0
  177. package/dist/HttpApi/EmailVerification.js +6 -0
  178. package/dist/HttpApi/EmailVerification.js.map +1 -0
  179. package/dist/HttpApi/Endpoints.d.ts +629 -301
  180. package/dist/HttpApi/Endpoints.d.ts.map +1 -1
  181. package/dist/HttpApi/Endpoints.js +178 -120
  182. package/dist/HttpApi/Endpoints.js.map +1 -1
  183. package/dist/HttpApi/Errors.d.ts +26 -7
  184. package/dist/HttpApi/Errors.d.ts.map +1 -1
  185. package/dist/HttpApi/Errors.js +26 -4
  186. package/dist/HttpApi/Errors.js.map +1 -1
  187. package/dist/HttpApi/Identity.d.ts +6 -0
  188. package/dist/HttpApi/Identity.d.ts.map +1 -0
  189. package/dist/HttpApi/Identity.js +6 -0
  190. package/dist/HttpApi/Identity.js.map +1 -0
  191. package/dist/HttpApi/IdentityGuards.d.ts +31 -0
  192. package/dist/HttpApi/IdentityGuards.d.ts.map +1 -0
  193. package/dist/HttpApi/IdentityGuards.js +33 -0
  194. package/dist/HttpApi/IdentityGuards.js.map +1 -0
  195. package/dist/HttpApi/Jwt.d.ts +4 -0
  196. package/dist/HttpApi/Jwt.d.ts.map +1 -0
  197. package/dist/HttpApi/Jwt.js +4 -0
  198. package/dist/HttpApi/Jwt.js.map +1 -0
  199. package/dist/HttpApi/JwtDiscovery.d.ts +4 -0
  200. package/dist/HttpApi/JwtDiscovery.d.ts.map +1 -0
  201. package/dist/HttpApi/JwtDiscovery.js +4 -0
  202. package/dist/HttpApi/JwtDiscovery.js.map +1 -0
  203. package/dist/HttpApi/LoginApproval.d.ts +5 -0
  204. package/dist/HttpApi/LoginApproval.d.ts.map +1 -0
  205. package/dist/HttpApi/LoginApproval.js +5 -0
  206. package/dist/HttpApi/LoginApproval.js.map +1 -0
  207. package/dist/HttpApi/LoginNotification.d.ts +5 -0
  208. package/dist/HttpApi/LoginNotification.d.ts.map +1 -0
  209. package/dist/HttpApi/LoginNotification.js +5 -0
  210. package/dist/HttpApi/LoginNotification.js.map +1 -0
  211. package/dist/HttpApi/MagicLink.d.ts +6 -0
  212. package/dist/HttpApi/MagicLink.d.ts.map +1 -0
  213. package/dist/HttpApi/MagicLink.js +6 -0
  214. package/dist/HttpApi/MagicLink.js.map +1 -0
  215. package/dist/HttpApi/Mfa.d.ts +5 -0
  216. package/dist/HttpApi/Mfa.d.ts.map +1 -0
  217. package/dist/HttpApi/Mfa.js +5 -0
  218. package/dist/HttpApi/Mfa.js.map +1 -0
  219. package/dist/HttpApi/Middleware.d.ts +14 -0
  220. package/dist/HttpApi/Middleware.d.ts.map +1 -0
  221. package/dist/HttpApi/Middleware.js +5 -0
  222. package/dist/HttpApi/Middleware.js.map +1 -0
  223. package/dist/HttpApi/OAuth.d.ts +4 -0
  224. package/dist/HttpApi/OAuth.d.ts.map +1 -0
  225. package/dist/HttpApi/OAuth.js +4 -0
  226. package/dist/HttpApi/OAuth.js.map +1 -0
  227. package/dist/HttpApi/OAuthProviderAuthorization.d.ts +4 -0
  228. package/dist/HttpApi/OAuthProviderAuthorization.d.ts.map +1 -0
  229. package/dist/HttpApi/OAuthProviderAuthorization.js +4 -0
  230. package/dist/HttpApi/OAuthProviderAuthorization.js.map +1 -0
  231. package/dist/HttpApi/OAuthToken.d.ts +4 -0
  232. package/dist/HttpApi/OAuthToken.d.ts.map +1 -0
  233. package/dist/HttpApi/OAuthToken.js +4 -0
  234. package/dist/HttpApi/OAuthToken.js.map +1 -0
  235. package/dist/HttpApi/OidcDiscovery.d.ts +4 -0
  236. package/dist/HttpApi/OidcDiscovery.d.ts.map +1 -0
  237. package/dist/HttpApi/OidcDiscovery.js +4 -0
  238. package/dist/HttpApi/OidcDiscovery.js.map +1 -0
  239. package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts +28 -0
  240. package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts.map +1 -0
  241. package/dist/HttpApi/Operations/AdminPermissionDefinition.js +5 -0
  242. package/dist/HttpApi/Operations/AdminPermissionDefinition.js.map +1 -0
  243. package/dist/HttpApi/Operations/AdminSession.d.ts +16 -0
  244. package/dist/HttpApi/Operations/AdminSession.d.ts.map +1 -0
  245. package/dist/HttpApi/Operations/AdminSession.js +5 -0
  246. package/dist/HttpApi/Operations/AdminSession.js.map +1 -0
  247. package/dist/HttpApi/Operations/ApiKey.d.ts +16 -0
  248. package/dist/HttpApi/Operations/ApiKey.d.ts.map +1 -0
  249. package/dist/HttpApi/Operations/ApiKey.js +5 -0
  250. package/dist/HttpApi/Operations/ApiKey.js.map +1 -0
  251. package/dist/HttpApi/Operations/Discovery.d.ts +19 -0
  252. package/dist/HttpApi/Operations/Discovery.d.ts.map +1 -0
  253. package/dist/HttpApi/Operations/Discovery.js +7 -0
  254. package/dist/HttpApi/Operations/Discovery.js.map +1 -0
  255. package/dist/HttpApi/Operations/EmailAuth.d.ts +12 -0
  256. package/dist/HttpApi/Operations/EmailAuth.d.ts.map +1 -0
  257. package/dist/HttpApi/Operations/EmailAuth.js +5 -0
  258. package/dist/HttpApi/Operations/EmailAuth.js.map +1 -0
  259. package/dist/HttpApi/Operations/EmailOtp.d.ts +14 -0
  260. package/dist/HttpApi/Operations/EmailOtp.d.ts.map +1 -0
  261. package/dist/HttpApi/Operations/EmailOtp.js +5 -0
  262. package/dist/HttpApi/Operations/EmailOtp.js.map +1 -0
  263. package/dist/HttpApi/Operations/EmailVerification.d.ts +14 -0
  264. package/dist/HttpApi/Operations/EmailVerification.d.ts.map +1 -0
  265. package/dist/HttpApi/Operations/EmailVerification.js +5 -0
  266. package/dist/HttpApi/Operations/EmailVerification.js.map +1 -0
  267. package/dist/HttpApi/Operations/HttpOperation.d.ts +4 -0
  268. package/dist/HttpApi/Operations/HttpOperation.d.ts.map +1 -0
  269. package/dist/HttpApi/Operations/HttpOperation.js +2 -0
  270. package/dist/HttpApi/Operations/HttpOperation.js.map +1 -0
  271. package/dist/HttpApi/Operations/Identity.d.ts +22 -0
  272. package/dist/HttpApi/Operations/Identity.d.ts.map +1 -0
  273. package/dist/HttpApi/Operations/Identity.js +5 -0
  274. package/dist/HttpApi/Operations/Identity.js.map +1 -0
  275. package/dist/HttpApi/Operations/Jwt.d.ts +14 -0
  276. package/dist/HttpApi/Operations/Jwt.d.ts.map +1 -0
  277. package/dist/HttpApi/Operations/Jwt.js +5 -0
  278. package/dist/HttpApi/Operations/Jwt.js.map +1 -0
  279. package/dist/HttpApi/Operations/LoginApproval.d.ts +16 -0
  280. package/dist/HttpApi/Operations/LoginApproval.d.ts.map +1 -0
  281. package/dist/HttpApi/Operations/LoginApproval.js +5 -0
  282. package/dist/HttpApi/Operations/LoginApproval.js.map +1 -0
  283. package/dist/HttpApi/Operations/MagicLink.d.ts +14 -0
  284. package/dist/HttpApi/Operations/MagicLink.d.ts.map +1 -0
  285. package/dist/HttpApi/Operations/MagicLink.js +5 -0
  286. package/dist/HttpApi/Operations/MagicLink.js.map +1 -0
  287. package/dist/HttpApi/Operations/Mfa.d.ts +24 -0
  288. package/dist/HttpApi/Operations/Mfa.d.ts.map +1 -0
  289. package/dist/HttpApi/Operations/Mfa.js +5 -0
  290. package/dist/HttpApi/Operations/Mfa.js.map +1 -0
  291. package/dist/HttpApi/Operations/OAuth.d.ts +20 -0
  292. package/dist/HttpApi/Operations/OAuth.d.ts.map +1 -0
  293. package/dist/HttpApi/Operations/OAuth.js +5 -0
  294. package/dist/HttpApi/Operations/OAuth.js.map +1 -0
  295. package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts +12 -0
  296. package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts.map +1 -0
  297. package/dist/HttpApi/Operations/OAuthProviderAuthorization.js +5 -0
  298. package/dist/HttpApi/Operations/OAuthProviderAuthorization.js.map +1 -0
  299. package/dist/HttpApi/Operations/OAuthToken.d.ts +16 -0
  300. package/dist/HttpApi/Operations/OAuthToken.d.ts.map +1 -0
  301. package/dist/HttpApi/Operations/OAuthToken.js +5 -0
  302. package/dist/HttpApi/Operations/OAuthToken.js.map +1 -0
  303. package/dist/HttpApi/Operations/Passkey.d.ts +22 -0
  304. package/dist/HttpApi/Operations/Passkey.d.ts.map +1 -0
  305. package/dist/HttpApi/Operations/Passkey.js +5 -0
  306. package/dist/HttpApi/Operations/Passkey.js.map +1 -0
  307. package/dist/HttpApi/Operations/Password.d.ts +22 -0
  308. package/dist/HttpApi/Operations/Password.d.ts.map +1 -0
  309. package/dist/HttpApi/Operations/Password.js +5 -0
  310. package/dist/HttpApi/Operations/Password.js.map +1 -0
  311. package/dist/HttpApi/Operations/RecoveryCodes.d.ts +20 -0
  312. package/dist/HttpApi/Operations/RecoveryCodes.d.ts.map +1 -0
  313. package/dist/HttpApi/Operations/RecoveryCodes.js +5 -0
  314. package/dist/HttpApi/Operations/RecoveryCodes.js.map +1 -0
  315. package/dist/HttpApi/Operations/RefreshToken.d.ts +12 -0
  316. package/dist/HttpApi/Operations/RefreshToken.d.ts.map +1 -0
  317. package/dist/HttpApi/Operations/RefreshToken.js +5 -0
  318. package/dist/HttpApi/Operations/RefreshToken.js.map +1 -0
  319. package/dist/HttpApi/Operations/Security.d.ts +12 -0
  320. package/dist/HttpApi/Operations/Security.d.ts.map +1 -0
  321. package/dist/HttpApi/Operations/Security.js +5 -0
  322. package/dist/HttpApi/Operations/Security.js.map +1 -0
  323. package/dist/HttpApi/Operations/SecurityTimeline.d.ts +19 -0
  324. package/dist/HttpApi/Operations/SecurityTimeline.d.ts.map +1 -0
  325. package/dist/HttpApi/Operations/SecurityTimeline.js +7 -0
  326. package/dist/HttpApi/Operations/SecurityTimeline.js.map +1 -0
  327. package/dist/HttpApi/Operations/Session.d.ts +22 -0
  328. package/dist/HttpApi/Operations/Session.d.ts.map +1 -0
  329. package/dist/HttpApi/Operations/Session.js +5 -0
  330. package/dist/HttpApi/Operations/Session.js.map +1 -0
  331. package/dist/HttpApi/Operations/StepUp.d.ts +22 -0
  332. package/dist/HttpApi/Operations/StepUp.d.ts.map +1 -0
  333. package/dist/HttpApi/Operations/StepUp.js +5 -0
  334. package/dist/HttpApi/Operations/StepUp.js.map +1 -0
  335. package/dist/HttpApi/Operations/Totp.d.ts +20 -0
  336. package/dist/HttpApi/Operations/Totp.d.ts.map +1 -0
  337. package/dist/HttpApi/Operations/Totp.js +5 -0
  338. package/dist/HttpApi/Operations/Totp.js.map +1 -0
  339. package/dist/HttpApi/Operations/TrustedDevice.d.ts +23 -0
  340. package/dist/HttpApi/Operations/TrustedDevice.d.ts.map +1 -0
  341. package/dist/HttpApi/Operations/TrustedDevice.js +7 -0
  342. package/dist/HttpApi/Operations/TrustedDevice.js.map +1 -0
  343. package/dist/HttpApi/Operations/index.d.ts +27 -0
  344. package/dist/HttpApi/Operations/index.d.ts.map +1 -0
  345. package/dist/HttpApi/Operations/index.js +27 -0
  346. package/dist/HttpApi/Operations/index.js.map +1 -0
  347. package/dist/HttpApi/Passkey.d.ts +5 -0
  348. package/dist/HttpApi/Passkey.d.ts.map +1 -0
  349. package/dist/HttpApi/Passkey.js +5 -0
  350. package/dist/HttpApi/Passkey.js.map +1 -0
  351. package/dist/HttpApi/Password.d.ts +220 -0
  352. package/dist/HttpApi/Password.d.ts.map +1 -0
  353. package/dist/HttpApi/Password.js +237 -0
  354. package/dist/HttpApi/Password.js.map +1 -0
  355. package/dist/HttpApi/PasswordContract.d.ts +307 -0
  356. package/dist/HttpApi/PasswordContract.d.ts.map +1 -0
  357. package/dist/HttpApi/PasswordContract.js +63 -0
  358. package/dist/HttpApi/PasswordContract.js.map +1 -0
  359. package/dist/HttpApi/PasswordGuards.d.ts +82 -0
  360. package/dist/HttpApi/PasswordGuards.d.ts.map +1 -0
  361. package/dist/HttpApi/PasswordGuards.js +179 -0
  362. package/dist/HttpApi/PasswordGuards.js.map +1 -0
  363. package/dist/HttpApi/RecoveryCodes.d.ts +5 -0
  364. package/dist/HttpApi/RecoveryCodes.d.ts.map +1 -0
  365. package/dist/HttpApi/RecoveryCodes.js +5 -0
  366. package/dist/HttpApi/RecoveryCodes.js.map +1 -0
  367. package/dist/HttpApi/RefreshToken.d.ts +4 -0
  368. package/dist/HttpApi/RefreshToken.d.ts.map +1 -0
  369. package/dist/HttpApi/RefreshToken.js +4 -0
  370. package/dist/HttpApi/RefreshToken.js.map +1 -0
  371. package/dist/HttpApi/RequestGuards.d.ts +42 -0
  372. package/dist/HttpApi/RequestGuards.d.ts.map +1 -0
  373. package/dist/HttpApi/RequestGuards.js +194 -0
  374. package/dist/HttpApi/RequestGuards.js.map +1 -0
  375. package/dist/HttpApi/Schemas.d.ts +361 -84
  376. package/dist/HttpApi/Schemas.d.ts.map +1 -1
  377. package/dist/HttpApi/Schemas.js +190 -27
  378. package/dist/HttpApi/Schemas.js.map +1 -1
  379. package/dist/HttpApi/Security.d.ts +12 -93
  380. package/dist/HttpApi/Security.d.ts.map +1 -1
  381. package/dist/HttpApi/Security.js +65 -356
  382. package/dist/HttpApi/Security.js.map +1 -1
  383. package/dist/HttpApi/SecurityTimeline.d.ts +4 -0
  384. package/dist/HttpApi/SecurityTimeline.d.ts.map +1 -0
  385. package/dist/HttpApi/SecurityTimeline.js +4 -0
  386. package/dist/HttpApi/SecurityTimeline.js.map +1 -0
  387. package/dist/HttpApi/Session.d.ts +5 -0
  388. package/dist/HttpApi/Session.d.ts.map +1 -0
  389. package/dist/HttpApi/Session.js +5 -0
  390. package/dist/HttpApi/Session.js.map +1 -0
  391. package/dist/HttpApi/SessionGuards.d.ts +15 -0
  392. package/dist/HttpApi/SessionGuards.d.ts.map +1 -0
  393. package/dist/HttpApi/SessionGuards.js +37 -0
  394. package/dist/HttpApi/SessionGuards.js.map +1 -0
  395. package/dist/HttpApi/StepUp.d.ts +5 -0
  396. package/dist/HttpApi/StepUp.d.ts.map +1 -0
  397. package/dist/HttpApi/StepUp.js +5 -0
  398. package/dist/HttpApi/StepUp.js.map +1 -0
  399. package/dist/HttpApi/Totp.d.ts +5 -0
  400. package/dist/HttpApi/Totp.d.ts.map +1 -0
  401. package/dist/HttpApi/Totp.js +5 -0
  402. package/dist/HttpApi/Totp.js.map +1 -0
  403. package/dist/HttpApi/Transport.d.ts +4 -6
  404. package/dist/HttpApi/Transport.d.ts.map +1 -1
  405. package/dist/HttpApi/Transport.js +62 -36
  406. package/dist/HttpApi/Transport.js.map +1 -1
  407. package/dist/HttpApi/TrustedDevice.d.ts +4 -0
  408. package/dist/HttpApi/TrustedDevice.d.ts.map +1 -0
  409. package/dist/HttpApi/TrustedDevice.js +4 -0
  410. package/dist/HttpApi/TrustedDevice.js.map +1 -0
  411. package/dist/HttpApi/index.d.ts +9 -3
  412. package/dist/HttpApi/index.d.ts.map +1 -1
  413. package/dist/HttpApi/index.js +8 -2
  414. package/dist/HttpApi/index.js.map +1 -1
  415. package/dist/Identity.d.ts +138 -0
  416. package/dist/Identity.d.ts.map +1 -0
  417. package/dist/Identity.js +105 -0
  418. package/dist/Identity.js.map +1 -0
  419. package/dist/IdentityManagement.d.ts +189 -0
  420. package/dist/IdentityManagement.d.ts.map +1 -0
  421. package/dist/IdentityManagement.js +317 -0
  422. package/dist/IdentityManagement.js.map +1 -0
  423. package/dist/IncidentAction.d.ts +1 -4
  424. package/dist/IncidentAction.d.ts.map +1 -1
  425. package/dist/IncidentAction.js +15 -9
  426. package/dist/IncidentAction.js.map +1 -1
  427. package/dist/Internal.d.ts +2 -0
  428. package/dist/Internal.d.ts.map +1 -1
  429. package/dist/Internal.js +30 -0
  430. package/dist/Internal.js.map +1 -1
  431. package/dist/Invitation.d.ts +362 -0
  432. package/dist/Invitation.d.ts.map +1 -0
  433. package/dist/Invitation.js +633 -0
  434. package/dist/Invitation.js.map +1 -0
  435. package/dist/IpQualityScore.d.ts +38 -0
  436. package/dist/IpQualityScore.d.ts.map +1 -0
  437. package/dist/IpQualityScore.js +215 -0
  438. package/dist/IpQualityScore.js.map +1 -0
  439. package/dist/Jwt.d.ts +8 -29
  440. package/dist/Jwt.d.ts.map +1 -1
  441. package/dist/Jwt.js +67 -56
  442. package/dist/Jwt.js.map +1 -1
  443. package/dist/LoginApproval.d.ts +15 -30
  444. package/dist/LoginApproval.d.ts.map +1 -1
  445. package/dist/LoginApproval.js +47 -41
  446. package/dist/LoginApproval.js.map +1 -1
  447. package/dist/LoginNotification.d.ts +7 -11
  448. package/dist/LoginNotification.d.ts.map +1 -1
  449. package/dist/LoginNotification.js +30 -17
  450. package/dist/LoginNotification.js.map +1 -1
  451. package/dist/LoginRisk.d.ts +11 -13
  452. package/dist/LoginRisk.d.ts.map +1 -1
  453. package/dist/LoginRisk.js +66 -26
  454. package/dist/LoginRisk.js.map +1 -1
  455. package/dist/LoginRiskEnrichment.d.ts +145 -0
  456. package/dist/LoginRiskEnrichment.d.ts.map +1 -0
  457. package/dist/LoginRiskEnrichment.js +220 -0
  458. package/dist/LoginRiskEnrichment.js.map +1 -0
  459. package/dist/MagicLink.d.ts +9 -8
  460. package/dist/MagicLink.d.ts.map +1 -1
  461. package/dist/MagicLink.js +40 -73
  462. package/dist/MagicLink.js.map +1 -1
  463. package/dist/Mailer.d.ts +19 -12
  464. package/dist/Mailer.d.ts.map +1 -1
  465. package/dist/Mailer.js +10 -12
  466. package/dist/Mailer.js.map +1 -1
  467. package/dist/OAuth.d.ts +93 -96
  468. package/dist/OAuth.d.ts.map +1 -1
  469. package/dist/OAuth.js +404 -217
  470. package/dist/OAuth.js.map +1 -1
  471. package/dist/Passkey.d.ts +15 -17
  472. package/dist/Passkey.d.ts.map +1 -1
  473. package/dist/Passkey.js +86 -39
  474. package/dist/Passkey.js.map +1 -1
  475. package/dist/PasskeyBrowser.d.ts +39 -0
  476. package/dist/PasskeyBrowser.d.ts.map +1 -0
  477. package/dist/PasskeyBrowser.js +206 -0
  478. package/dist/PasskeyBrowser.js.map +1 -0
  479. package/dist/PasskeySimpleWebAuthn.d.ts.map +1 -1
  480. package/dist/PasskeySimpleWebAuthn.js +19 -7
  481. package/dist/PasskeySimpleWebAuthn.js.map +1 -1
  482. package/dist/Password.d.ts +71 -37
  483. package/dist/Password.d.ts.map +1 -1
  484. package/dist/Password.js +295 -81
  485. package/dist/Password.js.map +1 -1
  486. package/dist/PasswordRisk.d.ts +63 -0
  487. package/dist/PasswordRisk.d.ts.map +1 -0
  488. package/dist/PasswordRisk.js +37 -0
  489. package/dist/PasswordRisk.js.map +1 -0
  490. package/dist/Permission.d.ts +308 -0
  491. package/dist/Permission.d.ts.map +1 -0
  492. package/dist/Permission.js +827 -0
  493. package/dist/Permission.js.map +1 -0
  494. package/dist/Policy.d.ts +31 -18
  495. package/dist/Policy.d.ts.map +1 -1
  496. package/dist/Policy.js +58 -14
  497. package/dist/Policy.js.map +1 -1
  498. package/dist/PostgresDelegatedAccessStorageMigrations.d.ts +7 -0
  499. package/dist/PostgresDelegatedAccessStorageMigrations.d.ts.map +1 -0
  500. package/dist/PostgresDelegatedAccessStorageMigrations.js +119 -0
  501. package/dist/PostgresDelegatedAccessStorageMigrations.js.map +1 -0
  502. package/dist/PostgresStorageMigrations.d.ts +15 -0
  503. package/dist/PostgresStorageMigrations.d.ts.map +1 -0
  504. package/dist/PostgresStorageMigrations.js +620 -0
  505. package/dist/PostgresStorageMigrations.js.map +1 -0
  506. package/dist/Privacy.d.ts +0 -3
  507. package/dist/Privacy.d.ts.map +1 -1
  508. package/dist/Privacy.js +2 -5
  509. package/dist/Privacy.js.map +1 -1
  510. package/dist/RateLimiter.d.ts +0 -3
  511. package/dist/RateLimiter.d.ts.map +1 -1
  512. package/dist/RateLimiter.js +1 -4
  513. package/dist/RateLimiter.js.map +1 -1
  514. package/dist/RecoveryCode.d.ts +83 -11
  515. package/dist/RecoveryCode.d.ts.map +1 -1
  516. package/dist/RecoveryCode.js +273 -75
  517. package/dist/RecoveryCode.js.map +1 -1
  518. package/dist/RecoveryPolicy.d.ts +81 -0
  519. package/dist/RecoveryPolicy.d.ts.map +1 -0
  520. package/dist/RecoveryPolicy.js +119 -0
  521. package/dist/RecoveryPolicy.js.map +1 -0
  522. package/dist/RefreshToken.d.ts +0 -9
  523. package/dist/RefreshToken.d.ts.map +1 -1
  524. package/dist/RefreshToken.js +31 -22
  525. package/dist/RefreshToken.js.map +1 -1
  526. package/dist/SecurityTimeline.d.ts +1 -4
  527. package/dist/SecurityTimeline.d.ts.map +1 -1
  528. package/dist/SecurityTimeline.js +110 -17
  529. package/dist/SecurityTimeline.js.map +1 -1
  530. package/dist/Sessions.d.ts +124 -29
  531. package/dist/Sessions.d.ts.map +1 -1
  532. package/dist/Sessions.js +626 -94
  533. package/dist/Sessions.js.map +1 -1
  534. package/dist/StepUp.d.ts +132 -11
  535. package/dist/StepUp.d.ts.map +1 -1
  536. package/dist/StepUp.js +387 -19
  537. package/dist/StepUp.js.map +1 -1
  538. package/dist/Storage.d.ts +89 -23
  539. package/dist/Storage.d.ts.map +1 -1
  540. package/dist/Storage.js +10 -12
  541. package/dist/Storage.js.map +1 -1
  542. package/dist/StorageMigrations.d.ts +6 -1
  543. package/dist/StorageMigrations.d.ts.map +1 -1
  544. package/dist/StorageMigrations.js +224 -0
  545. package/dist/StorageMigrations.js.map +1 -1
  546. package/dist/StorageSchemaGenerator.d.ts +486 -0
  547. package/dist/StorageSchemaGenerator.d.ts.map +1 -0
  548. package/dist/StorageSchemaGenerator.js +1022 -0
  549. package/dist/StorageSchemaGenerator.js.map +1 -0
  550. package/dist/StrongFactor.d.ts +64 -0
  551. package/dist/StrongFactor.d.ts.map +1 -0
  552. package/dist/StrongFactor.js +100 -0
  553. package/dist/StrongFactor.js.map +1 -0
  554. package/dist/Testing.js +2 -2
  555. package/dist/Testing.js.map +1 -1
  556. package/dist/Totp.d.ts +88 -13
  557. package/dist/Totp.d.ts.map +1 -1
  558. package/dist/Totp.js +192 -34
  559. package/dist/Totp.js.map +1 -1
  560. package/dist/TrustedDevice.d.ts +0 -9
  561. package/dist/TrustedDevice.d.ts.map +1 -1
  562. package/dist/TrustedDevice.js +15 -17
  563. package/dist/TrustedDevice.js.map +1 -1
  564. package/dist/WaitUntil.d.ts +0 -3
  565. package/dist/WaitUntil.d.ts.map +1 -1
  566. package/dist/WaitUntil.js +1 -4
  567. package/dist/WaitUntil.js.map +1 -1
  568. package/dist/Webhook.d.ts +42 -12
  569. package/dist/Webhook.d.ts.map +1 -1
  570. package/dist/Webhook.js +165 -26
  571. package/dist/Webhook.js.map +1 -1
  572. package/dist/alchemy/cloudflare/Email.d.ts.map +1 -1
  573. package/dist/alchemy/cloudflare/Email.js +9 -4
  574. package/dist/alchemy/cloudflare/Email.js.map +1 -1
  575. package/dist/cloudflare/Email.js +1 -1
  576. package/dist/cloudflare/Email.js.map +1 -1
  577. package/dist/cloudflare/RequestMetadata.d.ts +49 -0
  578. package/dist/cloudflare/RequestMetadata.d.ts.map +1 -0
  579. package/dist/cloudflare/RequestMetadata.js +71 -0
  580. package/dist/cloudflare/RequestMetadata.js.map +1 -0
  581. package/dist/index.d.ts +0 -35
  582. package/dist/index.d.ts.map +1 -1
  583. package/dist/index.js +0 -35
  584. package/dist/index.js.map +1 -1
  585. package/dist/internal/AuthFlowFinalizer.d.ts +31 -0
  586. package/dist/internal/AuthFlowFinalizer.d.ts.map +1 -0
  587. package/dist/internal/AuthFlowFinalizer.js +182 -0
  588. package/dist/internal/AuthFlowFinalizer.js.map +1 -0
  589. package/migrations/0001_auth_storage.sql +1 -0
  590. package/migrations/0006_auth_totp_factor.sql +1 -0
  591. package/migrations/0024_auth_permission.sql +39 -0
  592. package/migrations/0025_auth_permission_definition.sql +19 -0
  593. package/migrations/0026_auth_user_identity.sql +59 -0
  594. package/migrations/0027_auth_audit_log_storage_order.sql +46 -0
  595. package/migrations/0028_auth_oauth_client_secret_key.sql +39 -0
  596. package/migrations/delegated-access/0001_auth_delegated_access.sql +152 -0
  597. package/migrations/postgres/0001_auth_core.sql +77 -0
  598. package/migrations/postgres/0002_auth_security_oauth.sql +65 -0
  599. package/migrations/postgres/0003_auth_credentials_tokens.sql +43 -0
  600. package/migrations/postgres/0004_auth_security_history.sql +103 -0
  601. package/migrations/postgres/0005_auth_webhooks.sql +29 -0
  602. package/migrations/postgres/0006_auth_domain_timeline.sql +50 -0
  603. package/migrations/postgres/0007_auth_oauth_clients.sql +85 -0
  604. package/migrations/postgres/0008_auth_oauth_tokens.sql +63 -0
  605. package/migrations/postgres/0009_auth_permissions.sql +66 -0
  606. package/migrations/postgres/delegated-access/0001_auth_delegated_access.sql +112 -0
  607. package/package.json +301 -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;
@@ -122,7 +129,7 @@ export declare const oauthAuthorizationStartedHttpBody: (started: StartedOAuthAu
122
129
  providerId: OAuthProviderId;
123
130
  authorizationUrl: string;
124
131
  state: import("../OAuth.js").OAuthStateToken;
125
- challengeId: import("../Identifiers.js").ChallengeId;
132
+ challengeId: ChallengeId;
126
133
  expiresAt: UnixMillis;
127
134
  codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
128
135
  codeChallengeMethod: "S256";
@@ -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,18 +208,73 @@ 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) => {
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;
194
260
  relyingParty: PasskeyRelyingParty;
195
- userId: string & import("effect/Brand").Brand<"auth/UserId">;
261
+ userId: UserId;
262
+ userName: string;
263
+ userDisplayName: string;
264
+ timeout?: number | undefined;
265
+ pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
266
+ authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
267
+ attestation?: PasskeyAttestation | undefined;
268
+ } | {
269
+ metadata: Readonly<Record<string, unknown>>;
270
+ relyingParty: PasskeyRelyingParty;
271
+ userId: UserId;
196
272
  userName: string;
197
273
  userDisplayName: string;
198
274
  timeout?: number | undefined;
199
275
  pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
200
276
  authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
201
277
  attestation?: PasskeyAttestation | undefined;
202
- metadata?: {
203
- readonly [x: string]: unknown;
204
- } | undefined;
205
278
  };
206
279
  export declare const passkeyAuthenticationStartInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationStartBody>, options: PasskeyAuthenticationStartHttpOptions) => {
207
280
  relyingPartyId: string;
@@ -213,9 +286,29 @@ export declare const passkeyAuthenticationStartInput: (payload: Schema.Schema.Ty
213
286
  } | undefined;
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) => {
289
+ export declare const passkeyRegistrationFinishInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>, user: PasskeyRegistrationUser, options: PasskeyFinishHttpOptions) => {
290
+ metadata?: undefined;
217
291
  challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
218
- userId: string & import("effect/Brand").Brand<"auth/UserId">;
292
+ userId: UserId;
293
+ response: {
294
+ readonly id: string;
295
+ readonly rawId?: string | undefined;
296
+ readonly type: "public-key";
297
+ readonly response: {
298
+ readonly [x: string]: unknown;
299
+ };
300
+ readonly authenticatorAttachment?: string | undefined;
301
+ readonly clientExtensionResults?: {
302
+ readonly [x: string]: unknown;
303
+ } | undefined;
304
+ };
305
+ relyingPartyId: string;
306
+ expectedOrigin: string | readonly string[];
307
+ requireUserVerification?: boolean | undefined;
308
+ } | {
309
+ metadata: Readonly<Record<string, unknown>>;
310
+ challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
311
+ userId: UserId;
219
312
  response: {
220
313
  readonly id: string;
221
314
  readonly rawId?: string | undefined;
@@ -231,9 +324,6 @@ export declare const passkeyRegistrationFinishInput: (payload: Schema.Schema.Typ
231
324
  relyingPartyId: string;
232
325
  expectedOrigin: string | readonly string[];
233
326
  requireUserVerification?: boolean | undefined;
234
- metadata?: {
235
- readonly [x: string]: unknown;
236
- } | undefined;
237
327
  };
238
328
  export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>, options: PasskeyFinishHttpOptions) => {
239
329
  challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
@@ -257,7 +347,7 @@ export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.T
257
347
  readonly [x: string]: unknown;
258
348
  } | undefined;
259
349
  };
260
- export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>, options: PasskeyFinishHttpOptions) => {
350
+ export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>, options: PasskeyFinishHttpOptions, expectedUserId?: UserId) => {
261
351
  challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
262
352
  response: {
263
353
  readonly id: string;
@@ -274,7 +364,10 @@ export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof
274
364
  userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
275
365
  relyingPartyId: string;
276
366
  expectedOrigin: string | readonly string[];
277
- requireUserVerification?: boolean | undefined;
367
+ requireUserVerification: boolean;
368
+ expectedChallengeMetadata: {
369
+ flowId: string & import("effect/Brand").Brand<"auth/AuthFlowId">;
370
+ };
278
371
  metadata?: {
279
372
  readonly [x: string]: unknown;
280
373
  } | undefined;
@@ -289,6 +382,7 @@ export declare const totpEnrollmentConfirmInput: (userId: UserId, payload: Schem
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;
@@ -346,8 +446,8 @@ export declare const adminSessionHttpBody: (session: SessionInfoShape) => {
346
446
  authTime: UnixMillis;
347
447
  lastSeenAt?: UnixMillis | undefined;
348
448
  expiresAt: UnixMillis;
349
- aal: import("../Sessions.js").AuthAssuranceLevel;
350
- amr: readonly AuthMethodReference[];
449
+ aal: import("../Assurance.js").AssuranceLevel;
450
+ amr: readonly import("../Assurance.js").AuthMethodReference[];
351
451
  mfaVerifiedAt?: UnixMillis | undefined;
352
452
  ip?: string | undefined;
353
453
  userAgent?: string | undefined;
@@ -360,39 +460,23 @@ export declare const adminSessionHttpBody: (session: SessionInfoShape) => {
360
460
  export declare const stepUpAuthenticatedHttpBody: (session: CurrentSessionShape) => {
361
461
  type: "authenticated";
362
462
  expiresAt: number;
363
- aal: import("../Sessions.js").AuthAssuranceLevel;
364
- amr: readonly AuthMethodReference[];
463
+ aal: import("../Assurance.js").AssuranceLevel;
464
+ amr: readonly import("../Assurance.js").AuthMethodReference[];
365
465
  mfaVerifiedAt?: UnixMillis | undefined;
366
466
  } | {
367
467
  type: "authenticated";
368
468
  expiresAt: number;
369
- aal: import("../Sessions.js").AuthAssuranceLevel;
370
- amr: readonly AuthMethodReference[];
469
+ aal: import("../Assurance.js").AssuranceLevel;
470
+ amr: readonly import("../Assurance.js").AuthMethodReference[];
371
471
  mfaVerifiedAt?: UnixMillis | undefined;
372
472
  claims: SessionClaims;
373
473
  };
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;
395
- };
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,41 +785,11 @@ 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, AuthEmailAlreadyRegisteredError | AuthRateLimitedError | 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, AuthInternalError | AuthRateLimitedError, 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 | AuthInternalError | AuthUnauthenticatedError, 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 | AuthInternalError | AuthUnauthenticatedError, 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, AuthInternalError | AuthUnauthenticatedError, 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;
@@ -728,7 +803,7 @@ 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
808
  sessionId: SessionId;
734
809
  userId: UserId;
@@ -736,8 +811,8 @@ export declare const makeListSessionsHandler: (dependencies: {
736
811
  authTime: UnixMillis;
737
812
  lastSeenAt?: UnixMillis | undefined;
738
813
  expiresAt: UnixMillis;
739
- aal: import("../Sessions.js").AuthAssuranceLevel;
740
- amr: readonly AuthMethodReference[];
814
+ aal: import("../Assurance.js").AssuranceLevel;
815
+ amr: readonly import("../Assurance.js").AuthMethodReference[];
741
816
  mfaVerifiedAt?: UnixMillis | undefined;
742
817
  current: boolean;
743
818
  claims?: SessionClaims | undefined;
@@ -755,16 +830,16 @@ 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, AuthInternalError | AuthUnauthenticatedError, 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, AuthInternalError | AuthUnauthenticatedError, 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
844
  sessionId: SessionId;
770
845
  userId: UserId;
@@ -772,8 +847,8 @@ export declare const makeAdminSessionListHandler: (dependencies: {
772
847
  authTime: UnixMillis;
773
848
  lastSeenAt?: UnixMillis | undefined;
774
849
  expiresAt: UnixMillis;
775
- aal: import("../Sessions.js").AuthAssuranceLevel;
776
- amr: readonly AuthMethodReference[];
850
+ aal: import("../Assurance.js").AssuranceLevel;
851
+ amr: readonly import("../Assurance.js").AuthMethodReference[];
777
852
  mfaVerifiedAt?: UnixMillis | undefined;
778
853
  ip?: string | undefined;
779
854
  userAgent?: string | undefined;
@@ -788,18 +863,93 @@ 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, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, 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, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, 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
949
  }) => (args_0: LoginNotificationReportHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
800
950
  export declare const securityTimelineEventHttpBody: (event: SecurityTimelineEvent) => {
801
951
  eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
802
- type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "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.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.session.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
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";
803
953
  category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
804
954
  severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
805
955
  occurredAt: UnixMillis;
@@ -820,10 +970,10 @@ export declare const makeSecurityTimelineListHandler: (dependencies: {
820
970
  readonly sessions: SessionsService;
821
971
  readonly sessionCookie: SessionCookieService;
822
972
  readonly securityTimeline: SecurityTimelineStoreService;
823
- }) => (args_0: SecurityTimelineListHandlerRequest) => Effect.Effect<{
973
+ }) => (handlerRequest: SecurityTimelineListHandlerRequest) => Effect.Effect<{
824
974
  events: {
825
975
  eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
826
- type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "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.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.session.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
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";
827
977
  category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
828
978
  severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
829
979
  occurredAt: UnixMillis;
@@ -846,10 +996,10 @@ export declare const makeAdminSecurityTimelineListHandler: (dependencies: {
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
1001
  eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
852
- type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "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.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.session.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
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";
853
1003
  category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
854
1004
  severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
855
1005
  occurredAt: UnixMillis;
@@ -878,7 +1028,7 @@ 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
1033
  deviceId: string;
884
1034
  createdAt: UnixMillis;
@@ -891,13 +1041,13 @@ 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, AuthInternalError | AuthUnauthenticatedError, 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
1052
  deviceId: string;
903
1053
  createdAt: UnixMillis;
@@ -911,11 +1061,10 @@ export declare const makeAdminTrustedDeviceRevokeHandler: (dependencies: {
911
1061
  readonly sessionCookie: SessionCookieService;
912
1062
  readonly trustedDevices: TrustedDeviceStoreService;
913
1063
  readonly authorization: AdminTrustedDeviceAuthorizationService;
914
- }) => (args_0: AdminTrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, 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 | AuthInternalError | AuthRateLimitedError, 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,25 +1072,64 @@ 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, AuthInternalError | AuthRateLimitedError, 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
- }, AuthInternalError | AuthRateLimitedError, 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;
@@ -949,7 +1137,7 @@ export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
949
1137
  providerId: OAuthProviderId;
950
1138
  authorizationUrl: string;
951
1139
  state: import("../OAuth.js").OAuthStateToken;
952
- challengeId: import("../Identifiers.js").ChallengeId;
1140
+ challengeId: ChallengeId;
953
1141
  expiresAt: UnixMillis;
954
1142
  codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
955
1143
  codeChallengeMethod: "S256";
@@ -1001,7 +1189,7 @@ 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<Schema.Struct.ReadonlySide<{
1192
+ } & OAuthAccountUnlinkHttpOptions) => (handlerRequest: OAuthAccountUnlinkHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
1005
1193
  readonly type: Schema.Literal<"allow">;
1006
1194
  readonly reason: Schema.Literal<"owned-account">;
1007
1195
  readonly account: Schema.Struct<{
@@ -1096,26 +1284,111 @@ export declare const makeOAuthLinkConfirmationConfirmHandler: (dependencies: {
1096
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
1393
  credentialId: PasskeyCredentialId;
1121
1394
  transports?: readonly import("../Passkey.js").PasskeyTransport[] | undefined;
@@ -1125,19 +1398,20 @@ export declare const makePasskeyCredentialListHandler: (dependencies: {
1125
1398
  revokedAt?: UnixMillis | undefined;
1126
1399
  metadata?: Readonly<Record<string, unknown>> | undefined;
1127
1400
  }[];
1128
- }, AuthInternalError | AuthUnauthenticatedError, 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 | AuthInternalError | AuthUnauthenticatedError, 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
- factorId: import("../Identifiers.js").CredentialId;
1414
+ factorId: CredentialId;
1141
1415
  algorithm: TotpAlgorithm;
1142
1416
  digits: number;
1143
1417
  period: number;
@@ -1149,13 +1423,13 @@ export declare const makeTotpEnrollmentStartHandler: (dependencies: {
1149
1423
  };
1150
1424
  secret: import("../Totp.js").TotpSecret;
1151
1425
  uri: string;
1152
- }, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, 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
- factorId: import("../Identifiers.js").CredentialId;
1431
+ } & TotpCodeHttpOptions) => (handlerRequest: TotpEnrollmentConfirmHandlerRequest) => Effect.Effect<{
1432
+ factorId: CredentialId;
1159
1433
  algorithm: TotpAlgorithm;
1160
1434
  digits: number;
1161
1435
  period: number;
@@ -1164,15 +1438,15 @@ export declare const makeTotpEnrollmentConfirmHandler: (dependencies: {
1164
1438
  lastUsedAt?: UnixMillis | undefined;
1165
1439
  revokedAt?: UnixMillis | undefined;
1166
1440
  metadata?: Readonly<Record<string, unknown>> | undefined;
1167
- }, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
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<{
1446
+ } & TotpCodeHttpOptions) => (handlerRequest: TotpVerifyHandlerRequest) => Effect.Effect<{
1173
1447
  valid: boolean;
1174
1448
  factor?: {
1175
- factorId: import("../Identifiers.js").CredentialId;
1449
+ factorId: CredentialId;
1176
1450
  algorithm: TotpAlgorithm;
1177
1451
  digits: number;
1178
1452
  period: number;
@@ -1183,14 +1457,15 @@ export declare const makeTotpVerifyHandler: (dependencies: {
1183
1457
  metadata?: Readonly<Record<string, unknown>> | undefined;
1184
1458
  } | undefined;
1185
1459
  delta?: number | undefined;
1186
- }, AuthInternalError | AuthUnauthenticatedError, never>;
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
- factorId: import("../Identifiers.js").CredentialId;
1468
+ factorId: CredentialId;
1194
1469
  algorithm: TotpAlgorithm;
1195
1470
  digits: number;
1196
1471
  period: number;
@@ -1200,63 +1475,79 @@ export declare const makeTotpFactorListHandler: (dependencies: {
1200
1475
  revokedAt?: UnixMillis | undefined;
1201
1476
  metadata?: Readonly<Record<string, unknown>> | undefined;
1202
1477
  }[];
1203
- }, AuthInternalError | AuthUnauthenticatedError, 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 | AuthInternalError | AuthUnauthenticatedError, 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
- codeId: import("../Identifiers.js").CredentialId;
1492
+ codeId: CredentialId;
1217
1493
  createdAt: UnixMillis;
1218
1494
  usedAt?: UnixMillis | undefined;
1219
1495
  revokedAt?: UnixMillis | undefined;
1220
1496
  metadata?: Readonly<Record<string, unknown>> | undefined;
1221
1497
  }[];
1222
- }, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
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;
1507
+ createdAt: UnixMillis;
1508
+ usedAt?: UnixMillis | undefined;
1509
+ revokedAt?: UnixMillis | undefined;
1510
+ metadata?: Readonly<Record<string, unknown>> | undefined;
1511
+ }[];
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<{
1228
1518
  valid: boolean;
1229
1519
  code?: {
1230
- codeId: import("../Identifiers.js").CredentialId;
1520
+ codeId: CredentialId;
1231
1521
  createdAt: UnixMillis;
1232
1522
  usedAt?: UnixMillis | undefined;
1233
1523
  revokedAt?: UnixMillis | undefined;
1234
1524
  metadata?: Readonly<Record<string, unknown>> | undefined;
1235
1525
  } | undefined;
1236
- }, AuthInternalError | AuthUnauthenticatedError, 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
- codeId: import("../Identifiers.js").CredentialId;
1533
+ codeId: CredentialId;
1244
1534
  createdAt: UnixMillis;
1245
1535
  usedAt?: UnixMillis | undefined;
1246
1536
  revokedAt?: UnixMillis | undefined;
1247
1537
  metadata?: Readonly<Record<string, unknown>> | undefined;
1248
1538
  }[];
1249
- }, AuthInternalError | AuthUnauthenticatedError, 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 | AuthInternalError | AuthUnauthenticatedError, 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
1553
  keyId: ApiKeyId;
@@ -1273,7 +1564,7 @@ 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
1569
  keyId: ApiKeyId;
1279
1570
  prefix: import("../ApiKey.js").ApiKeyPrefix;
@@ -1289,7 +1580,7 @@ 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 | AuthInternalError | AuthUnauthenticatedError, 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;
@@ -1378,96 +1669,96 @@ export declare const makeMfaOptionsHandler: (dependencies: {
1378
1669
  readonly totpFactorManagement?: TotpFactorManagementService;
1379
1670
  readonly recoveryCodeManagement?: RecoveryCodeManagementService;
1380
1671
  readonly passkeyCredentialManagement?: PasskeyCredentialManagementService;
1381
- }) => (args_0: MfaOptionsHandlerRequest) => Effect.Effect<{
1672
+ }) => (handlerRequest: MfaOptionsHandlerRequest) => Effect.Effect<{
1382
1673
  factors: {
1383
1674
  readonly type: "totp" | "backup-code" | "passkey";
1384
1675
  }[];
1385
- }, AuthBadRequestError | AuthInternalError, never>;
1676
+ }, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1386
1677
  export declare const makeTotpMfaVerifyHandler: (dependencies: {
1387
1678
  readonly totpFactorManagement: TotpFactorManagementService;
1679
+ readonly authFlowState: AuthFlowStateService;
1388
1680
  readonly authFlow: AuthFlowService;
1389
1681
  readonly authHttp: AuthHttpService;
1390
- } & TotpCodeHttpOptions) => (args_0: TotpMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError, never>;
1682
+ } & TotpCodeHttpOptions) => (handlerRequest: TotpMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1391
1683
  export declare const makeTotpMfaVerifyForFlowHandler: (dependencies: {
1392
1684
  readonly totpFactorManagement: TotpFactorManagementService;
1393
1685
  readonly authFlowState: AuthFlowStateService;
1394
1686
  readonly authFlow: AuthFlowService;
1395
1687
  readonly authHttp: AuthHttpService;
1396
- } & TotpCodeHttpOptions) => (args_0: TotpMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError, 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>;
1397
1692
  export declare const makeRecoveryCodeMfaVerifyHandler: (dependencies: {
1398
1693
  readonly recoveryCodeManagement: RecoveryCodeManagementService;
1694
+ readonly authFlowState: AuthFlowStateService;
1399
1695
  readonly authFlow: AuthFlowService;
1400
1696
  readonly authHttp: AuthHttpService;
1401
- }) => (args_0: RecoveryCodeMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError, never>;
1697
+ }) => (handlerRequest: RecoveryCodeMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1402
1698
  export declare const makeRecoveryCodeMfaVerifyForFlowHandler: (dependencies: {
1403
1699
  readonly recoveryCodeManagement: RecoveryCodeManagementService;
1404
1700
  readonly authFlowState: AuthFlowStateService;
1405
1701
  readonly authFlow: AuthFlowService;
1406
1702
  readonly authHttp: AuthHttpService;
1407
- }) => (args_0: RecoveryCodeMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError, 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>;
1408
1707
  export declare const makePasskeyMfaStartHandler: (dependencies: {
1409
1708
  readonly passkeyOptions: PasskeyOptionsService;
1410
1709
  readonly authFlowState: AuthFlowStateService;
1411
- } & 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>;
1412
1711
  export declare const makePasskeyMfaVerifyHandler: (dependencies: {
1413
1712
  readonly passkeyVerification: PasskeyVerificationService;
1713
+ readonly authFlowState: AuthFlowStateService;
1414
1714
  readonly authFlow: AuthFlowService;
1415
1715
  readonly authHttp: AuthHttpService;
1416
- } & PasskeyFinishHttpOptions) => (args_0: PasskeyMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
1716
+ } & PasskeyFinishHttpOptions) => (handlerRequest: PasskeyMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
1417
1717
  export declare const makeStepUpOptionsHandler: (dependencies: {
1418
1718
  readonly sessions: SessionsService;
1419
1719
  readonly sessionCookie: SessionCookieService;
1720
+ readonly credentials?: CredentialStoreService;
1420
1721
  readonly totpFactorManagement?: TotpFactorManagementService;
1421
1722
  readonly recoveryCodeManagement?: RecoveryCodeManagementService;
1422
1723
  readonly passkeyCredentialManagement?: PasskeyCredentialManagementService;
1423
- }) => (args_0: StepUpOptionsHandlerRequest) => Effect.Effect<{
1724
+ }) => (handlerRequest: StepUpOptionsHandlerRequest) => Effect.Effect<{
1424
1725
  factors: {
1425
- readonly type: "totp" | "backup-code" | "passkey";
1726
+ readonly type: "password" | "totp" | "backup-code" | "passkey";
1426
1727
  }[];
1427
- }, AuthInternalError | AuthUnauthenticatedError, never>;
1728
+ }, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1428
1729
  export declare const makeStepUpTotpVerifyHandler: (dependencies: {
1429
1730
  readonly totpFactorManagement: TotpFactorManagementService;
1430
1731
  readonly sessions: SessionsService;
1431
1732
  readonly sessionCookie: SessionCookieService;
1432
- } & TotpCodeHttpOptions) => (args_0: StepUpTotpVerifyHandlerRequest) => Effect.Effect<{
1433
- type: "authenticated";
1434
- expiresAt: number;
1435
- aal: import("../Sessions.js").AuthAssuranceLevel;
1436
- amr: readonly AuthMethodReference[];
1437
- mfaVerifiedAt?: UnixMillis | undefined;
1438
- }, AuthInternalError | AuthInvalidCredentialsError | AuthUnauthenticatedError, never>;
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>;
1439
1741
  export declare const makeStepUpRecoveryCodeVerifyHandler: (dependencies: {
1440
1742
  readonly recoveryCodeManagement: RecoveryCodeManagementService;
1441
1743
  readonly sessions: SessionsService;
1744
+ readonly recoveryCodeSessionRotation: RecoveryCodeSessionRotationService;
1442
1745
  readonly sessionCookie: SessionCookieService;
1443
- }) => (args_0: StepUpRecoveryCodeVerifyHandlerRequest) => Effect.Effect<{
1444
- type: "authenticated";
1445
- expiresAt: number;
1446
- aal: import("../Sessions.js").AuthAssuranceLevel;
1447
- amr: readonly AuthMethodReference[];
1448
- mfaVerifiedAt?: UnixMillis | undefined;
1449
- }, AuthInternalError | AuthInvalidCredentialsError | AuthUnauthenticatedError, never>;
1746
+ }) => (handlerRequest: StepUpRecoveryCodeVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthInvalidCredentialsError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1450
1747
  export declare const makeStepUpPasskeyStartHandler: (dependencies: {
1451
1748
  readonly passkeyOptions: PasskeyOptionsService;
1452
1749
  readonly sessions: SessionsService;
1453
1750
  readonly sessionCookie: SessionCookieService;
1454
- } & PasskeyAuthenticationStartHttpOptions) => (args_0: StepUpPasskeyStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
1751
+ } & PasskeyAuthenticationStartHttpOptions) => (handlerRequest: StepUpPasskeyStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1455
1752
  export declare const makeStepUpPasskeyVerifyHandler: (dependencies: {
1456
1753
  readonly passkeyVerification: PasskeyVerificationService;
1457
1754
  readonly sessions: SessionsService;
1458
1755
  readonly sessionCookie: SessionCookieService;
1459
- } & PasskeyFinishHttpOptions) => (args_0: StepUpPasskeyVerifyHandlerRequest) => Effect.Effect<{
1460
- type: "authenticated";
1461
- expiresAt: number;
1462
- aal: import("../Sessions.js").AuthAssuranceLevel;
1463
- amr: readonly AuthMethodReference[];
1464
- mfaVerifiedAt?: UnixMillis | undefined;
1465
- }, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
1756
+ } & PasskeyFinishHttpOptions) => (handlerRequest: StepUpPasskeyVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
1466
1757
  export declare const makeLoginApprovalApproveHandler: (dependencies: {
1467
1758
  readonly loginApproval: LoginApprovalService;
1468
1759
  readonly authFlowState: AuthFlowStateService;
1469
- readonly authFlow: AuthFlowService;
1470
- readonly users: UserStoreService;
1760
+ readonly finalizeAuthFlow: AuthFlowFinalize;
1761
+ readonly identities: IdentityStoreService;
1471
1762
  readonly authHttp: AuthHttpService;
1472
1763
  readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
1473
1764
  readonly trustedDevice?: TrustedDeviceService;
@@ -1486,151 +1777,41 @@ export declare const makeLoginApprovalFinalizeHandler: (dependencies: {
1486
1777
  readonly trustedDevice?: TrustedDeviceService;
1487
1778
  readonly trustedDeviceCookie?: TrustedDeviceCookieService;
1488
1779
  }) => (args_0: LoginApprovalFinalizeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError, never>;
1489
- declare const PasswordApi_base: HttpApiGroup.HttpApiGroup<"password", 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<{
1490
- readonly currentPassword: Schema.String;
1491
- readonly newPassword: Schema.String;
1492
- }>>, 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>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
1493
- readonly password: Schema.String;
1494
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1495
- }>>, 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>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
1496
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1497
- readonly secret: Schema.optional<Schema.String>;
1498
- readonly locale: Schema.optional<Schema.String>;
1499
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1500
- }>>, 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>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, 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<{
1501
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1502
- readonly secret: Schema.String;
1503
- readonly password: Schema.String;
1504
- }>>, 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>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never> | 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<{
1505
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1506
- readonly password: Schema.String;
1507
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
1508
- readonly type: Schema.Literal<"authenticated">;
1509
- readonly expiresAt: Schema.Number;
1510
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1511
- readonly amr: Schema.$Array<Schema.String>;
1512
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1513
- readonly claims: Schema.optional<Schema.Struct<{
1514
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1515
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1516
- }>>;
1517
- }>, Schema.Struct<{
1518
- readonly type: Schema.Literal<"requires_mfa">;
1519
- readonly flowId: Schema.String;
1520
- readonly factors: Schema.$Array<Schema.Struct<{
1521
- readonly type: Schema.String;
1522
- }>>;
1523
- }>, Schema.Struct<{
1524
- readonly type: Schema.Literal<"requires_email_verification">;
1525
- readonly flowId: Schema.String;
1526
- }>, Schema.Struct<{
1527
- readonly type: Schema.Literal<"requires_login_approval">;
1528
- readonly flowId: Schema.String;
1529
- readonly approvalChallengeId: Schema.String;
1530
- readonly channel: Schema.String;
1531
- readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
1532
- readonly sameDeviceRequired: Schema.Boolean;
1533
- readonly reason: Schema.String;
1534
- }>, Schema.Struct<{
1535
- readonly type: Schema.Literal<"requires_passkey_enrollment">;
1536
- readonly flowId: Schema.String;
1537
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, 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<{
1538
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1539
- readonly password: Schema.String;
1540
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1541
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1542
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
1543
- readonly type: Schema.Literal<"authenticated">;
1544
- readonly expiresAt: Schema.Number;
1545
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1546
- readonly amr: Schema.$Array<Schema.String>;
1547
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1548
- readonly claims: Schema.optional<Schema.Struct<{
1549
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1550
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1551
- }>>;
1552
- }>, Schema.Struct<{
1553
- readonly type: Schema.Literal<"requires_mfa">;
1554
- readonly flowId: Schema.String;
1555
- readonly factors: Schema.$Array<Schema.Struct<{
1556
- readonly type: Schema.String;
1557
- }>>;
1558
- }>, Schema.Struct<{
1559
- readonly type: Schema.Literal<"requires_email_verification">;
1560
- readonly flowId: Schema.String;
1561
- }>, Schema.Struct<{
1562
- readonly type: Schema.Literal<"requires_login_approval">;
1563
- readonly flowId: Schema.String;
1564
- readonly approvalChallengeId: Schema.String;
1565
- readonly channel: Schema.String;
1566
- readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
1567
- readonly sameDeviceRequired: Schema.Boolean;
1568
- readonly reason: Schema.String;
1569
- }>, Schema.Struct<{
1570
- readonly type: Schema.Literal<"requires_passkey_enrollment">;
1571
- readonly flowId: Schema.String;
1572
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthEmailAlreadyRegisteredError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
1573
- export declare class PasswordApi extends PasswordApi_base {
1574
- }
1575
- 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<{
1576
- readonly type: Schema.Literal<"authenticated">;
1577
- readonly userId: Schema.String;
1578
- readonly sessionId: Schema.String;
1579
- readonly authTime: Schema.Number;
1580
- readonly expiresAt: Schema.Number;
1581
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1582
- readonly amr: Schema.$Array<Schema.String>;
1583
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1584
- readonly claims: Schema.optional<Schema.Struct<{
1585
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1586
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1587
- }>>;
1588
- }>>, 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<{
1589
- readonly sessions: Schema.$Array<Schema.Struct<{
1590
- readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
1591
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1592
- readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1593
- readonly authTime: Schema.brand<Schema.Number, "auth/UnixMillis">;
1594
- readonly lastSeenAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1595
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1596
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1597
- readonly amr: Schema.$Array<Schema.String>;
1598
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1599
- readonly current: Schema.Boolean;
1600
- readonly claims: Schema.optional<Schema.Struct<{
1601
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1602
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1603
- }>>;
1604
- readonly ip: Schema.optional<Schema.String>;
1605
- readonly userAgent: Schema.optional<Schema.String>;
1606
- readonly country: Schema.optional<Schema.String>;
1607
- readonly region: Schema.optional<Schema.String>;
1608
- readonly city: Schema.optional<Schema.String>;
1609
- readonly latitude: Schema.optional<Schema.Number>;
1610
- readonly longitude: Schema.optional<Schema.Number>;
1611
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1612
- }>>;
1613
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, 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<"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<{
1614
- readonly type: Schema.Literal<"authenticated">;
1615
- readonly userId: Schema.String;
1616
- readonly sessionId: Schema.String;
1617
- readonly authTime: Schema.Number;
1618
- readonly expiresAt: Schema.Number;
1619
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1620
- readonly amr: Schema.$Array<Schema.String>;
1621
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1622
- readonly claims: Schema.optional<Schema.Struct<{
1623
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1624
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1625
- }>>;
1626
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | 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<{
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">;
1627
1809
  readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
1628
- }>>, 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>;
1629
- export declare class SessionApi extends SessionApi_base {
1630
- }
1631
- 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<{
1632
1811
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1633
- }>>, 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<{
1634
1815
  readonly sessions: Schema.$Array<Schema.Struct<{
1635
1816
  readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
1636
1817
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
@@ -1649,118 +1830,118 @@ declare const AdminSessionApi_base: HttpApiGroup.HttpApiGroup<"adminSession", im
1649
1830
  readonly latitude: Schema.optional<Schema.Number>;
1650
1831
  readonly longitude: Schema.optional<Schema.Number>;
1651
1832
  }>>;
1652
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
1653
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1654
- readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
1655
- }>>, 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>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
1656
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
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>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
1658
- 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 {
1659
1835
  }
1660
- declare const AdminSessionHttpApi_base: HttpApi.HttpApi<"AdminSessionHttpApi", typeof AdminSessionApi>;
1836
+ declare const AdminSessionHttpApi_base: HttpApi.HttpApi<"AdminSessionHttpApi", typeof AdminSessionHttpApiGroup>;
1661
1837
  export declare class AdminSessionHttpApi extends AdminSessionHttpApi_base {
1662
1838
  }
1663
- 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<{
1664
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1665
- readonly secret: Schema.optional<Schema.String>;
1666
- }>>, 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>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
1667
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1668
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1669
- readonly secret: Schema.optional<Schema.String>;
1670
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1671
- }>>, 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>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
1672
- export declare class EmailVerificationApi extends EmailVerificationApi_base {
1673
- }
1674
- 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<{
1675
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1676
- readonly secret: Schema.optional<Schema.String>;
1677
- readonly locale: Schema.optional<Schema.String>;
1678
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1679
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1680
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1681
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1682
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1683
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, 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<{
1684
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1685
- readonly secret: Schema.String;
1686
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
1687
- readonly type: Schema.Literal<"authenticated">;
1688
- readonly expiresAt: Schema.Number;
1689
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1690
- readonly amr: Schema.$Array<Schema.String>;
1691
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1692
- readonly claims: Schema.optional<Schema.Struct<{
1693
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1694
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1695
- }>>;
1696
- }>, Schema.Struct<{
1697
- readonly type: Schema.Literal<"requires_mfa">;
1698
- readonly flowId: Schema.String;
1699
- readonly factors: Schema.$Array<Schema.Struct<{
1700
- 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">>;
1701
1921
  }>>;
1702
- }>, Schema.Struct<{
1703
- readonly type: Schema.Literal<"requires_email_verification">;
1704
- readonly flowId: Schema.String;
1705
- }>, Schema.Struct<{
1706
- readonly type: Schema.Literal<"requires_login_approval">;
1707
- readonly flowId: Schema.String;
1708
- readonly approvalChallengeId: Schema.String;
1709
- readonly channel: Schema.String;
1710
- readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
1711
- readonly sameDeviceRequired: Schema.Boolean;
1712
- readonly reason: Schema.String;
1713
- }>, Schema.Struct<{
1714
- readonly type: Schema.Literal<"requires_passkey_enrollment">;
1715
- readonly flowId: Schema.String;
1716
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
1717
- 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 {
1718
1925
  }
1719
- 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<{
1720
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1721
- readonly secret: Schema.optional<Schema.String>;
1722
- readonly locale: Schema.optional<Schema.String>;
1723
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1724
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1725
- readonly email: Schema.brand<Schema.String, "auth/Email">;
1726
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1727
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, 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<{
1728
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1729
- readonly secret: Schema.String;
1730
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
1731
- readonly type: Schema.Literal<"authenticated">;
1732
- readonly expiresAt: Schema.Number;
1733
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1734
- readonly amr: Schema.$Array<Schema.String>;
1735
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1736
- readonly claims: Schema.optional<Schema.Struct<{
1737
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1738
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1739
- }>>;
1740
- }>, Schema.Struct<{
1741
- readonly type: Schema.Literal<"requires_mfa">;
1742
- readonly flowId: Schema.String;
1743
- readonly factors: Schema.$Array<Schema.Struct<{
1744
- readonly type: Schema.String;
1745
- }>>;
1746
- }>, Schema.Struct<{
1747
- readonly type: Schema.Literal<"requires_email_verification">;
1748
- readonly flowId: Schema.String;
1749
- }>, Schema.Struct<{
1750
- readonly type: Schema.Literal<"requires_login_approval">;
1751
- readonly flowId: Schema.String;
1752
- readonly approvalChallengeId: Schema.String;
1753
- readonly channel: Schema.String;
1754
- readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
1755
- readonly sameDeviceRequired: Schema.Boolean;
1756
- readonly reason: Schema.String;
1757
- }>, Schema.Struct<{
1758
- readonly type: Schema.Literal<"requires_passkey_enrollment">;
1759
- readonly flowId: Schema.String;
1760
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
1761
- 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 {
1762
1937
  }
1763
- 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<{
1764
1945
  readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1765
1946
  readonly redirectUri: Schema.optional<Schema.String>;
1766
1947
  readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
@@ -1769,7 +1950,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
1769
1950
  readonly includeNonce: Schema.optional<Schema.Boolean>;
1770
1951
  readonly nonce: Schema.optional<Schema.String>;
1771
1952
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1772
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1953
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1773
1954
  readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1774
1955
  readonly authorizationUrl: Schema.String;
1775
1956
  readonly state: Schema.String;
@@ -1780,59 +1961,10 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
1780
1961
  readonly nonce: Schema.optional<Schema.String>;
1781
1962
  readonly redirectUri: Schema.String;
1782
1963
  readonly scopes: Schema.$Array<Schema.String>;
1783
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
1784
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1785
- readonly providerAccountId: Schema.String;
1786
- readonly reason: Schema.optional<Schema.String>;
1787
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
1788
- readonly type: Schema.Literal<"allow">;
1789
- readonly reason: Schema.Literal<"owned-account">;
1790
- readonly account: Schema.Struct<{
1791
- readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1792
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1793
- readonly providerAccountId: Schema.String;
1794
- }>;
1795
- readonly remainingAccounts: Schema.$Array<Schema.Struct<{
1796
- readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1797
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1798
- readonly providerAccountId: Schema.String;
1799
- }>>;
1800
- readonly unlinked: Schema.Boolean;
1801
- }>, Schema.Struct<{
1802
- readonly type: Schema.Literal<"requires-step-up">;
1803
- readonly reason: Schema.Literal<"step-up-required">;
1804
- readonly account: Schema.Struct<{
1805
- readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1806
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1807
- readonly providerAccountId: Schema.String;
1808
- }>;
1809
- readonly remainingAccounts: Schema.$Array<Schema.Struct<{
1810
- readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1811
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1812
- readonly providerAccountId: Schema.String;
1813
- }>>;
1814
- }>, Schema.Struct<{
1815
- readonly type: Schema.Literal<"deny-not-found">;
1816
- readonly reason: Schema.Literal<"provider-account-not-found">;
1817
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1818
- readonly providerAccountId: Schema.String;
1819
- }>, Schema.Struct<{
1820
- readonly type: Schema.Literal<"deny-not-owner">;
1821
- readonly reason: Schema.Literal<"provider-account-linked-to-different-user">;
1822
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1823
- readonly providerAccountId: Schema.String;
1824
- }>, Schema.Struct<{
1825
- readonly type: Schema.Literal<"deny-last-account">;
1826
- readonly reason: Schema.Literal<"last-linked-account">;
1827
- readonly account: Schema.Struct<{
1828
- readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
1829
- readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
1830
- readonly providerAccountId: Schema.String;
1831
- }>;
1832
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
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<{
1833
1965
  readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1834
1966
  readonly secret: Schema.optional<Schema.String>;
1835
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1967
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1836
1968
  readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1837
1969
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1838
1970
  readonly identity: Schema.Struct<{
@@ -1843,7 +1975,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
1843
1975
  }>;
1844
1976
  readonly reason: Schema.String;
1845
1977
  readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1846
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
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<{
1847
1979
  readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
1848
1980
  readonly identity: Schema.optional<Schema.Struct<{
1849
1981
  readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
@@ -1855,7 +1987,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
1855
1987
  readonly reason: Schema.optional<Schema.String>;
1856
1988
  readonly secret: Schema.optional<Schema.String>;
1857
1989
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1858
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1990
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1859
1991
  readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1860
1992
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1861
1993
  readonly identity: Schema.Struct<{
@@ -1866,12 +1998,12 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
1866
1998
  }>;
1867
1999
  readonly reason: Schema.String;
1868
2000
  readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1869
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
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<{
1870
2002
  readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1871
2003
  readonly secret: Schema.optional<Schema.String>;
1872
2004
  readonly expectedProviderId: Schema.optional<Schema.brand<Schema.String, "auth/OAuthProviderId">>;
1873
2005
  readonly expectedProviderAccountId: Schema.optional<Schema.String>;
1874
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2006
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1875
2007
  readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1876
2008
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
1877
2009
  readonly identity: Schema.Struct<{
@@ -1887,10 +2019,62 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
1887
2019
  readonly providerAccountId: Schema.String;
1888
2020
  }>>;
1889
2021
  readonly linked: Schema.Boolean;
1890
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
1891
- export declare class OAuthApi extends OAuthApi_base {
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<{
2023
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
2024
+ readonly providerAccountId: Schema.String;
2025
+ readonly reason: Schema.optional<Schema.String>;
2026
+ }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2027
+ readonly type: Schema.Literal<"allow">;
2028
+ readonly reason: Schema.Literal<"owned-account">;
2029
+ readonly account: Schema.Struct<{
2030
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
2031
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
2032
+ readonly providerAccountId: Schema.String;
2033
+ }>;
2034
+ readonly remainingAccounts: Schema.$Array<Schema.Struct<{
2035
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
2036
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
2037
+ readonly providerAccountId: Schema.String;
2038
+ }>>;
2039
+ readonly unlinked: Schema.Boolean;
2040
+ }>, Schema.Struct<{
2041
+ readonly type: Schema.Literal<"requires-step-up">;
2042
+ readonly reason: Schema.Literal<"step-up-required">;
2043
+ readonly account: Schema.Struct<{
2044
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
2045
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
2046
+ readonly providerAccountId: Schema.String;
2047
+ }>;
2048
+ readonly remainingAccounts: Schema.$Array<Schema.Struct<{
2049
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
2050
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
2051
+ readonly providerAccountId: Schema.String;
2052
+ }>>;
2053
+ }>, Schema.Struct<{
2054
+ readonly type: Schema.Literal<"deny-not-found">;
2055
+ readonly reason: Schema.Literal<"provider-account-not-found">;
2056
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
2057
+ readonly providerAccountId: Schema.String;
2058
+ }>, Schema.Struct<{
2059
+ readonly type: Schema.Literal<"deny-not-owner">;
2060
+ readonly reason: Schema.Literal<"provider-account-linked-to-different-user">;
2061
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
2062
+ readonly providerAccountId: Schema.String;
2063
+ }>, Schema.Struct<{
2064
+ readonly type: Schema.Literal<"deny-last-account">;
2065
+ readonly reason: Schema.Literal<"last-linked-account">;
2066
+ readonly account: Schema.Struct<{
2067
+ readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
2068
+ readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
2069
+ readonly providerAccountId: Schema.String;
2070
+ }>;
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 {
2073
+ }
2074
+ declare const OAuthHttpApi_base: HttpApi.HttpApi<"OAuthHttpApi", typeof OAuthHttpApiGroup>;
2075
+ export declare class OAuthHttpApi extends OAuthHttpApi_base {
1892
2076
  }
1893
- 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<{
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<{
1894
2078
  readonly access_token: Schema.String;
1895
2079
  readonly token_type: Schema.String;
1896
2080
  readonly expires_in: Schema.optional<Schema.Number>;
@@ -1898,7 +2082,7 @@ declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import
1898
2082
  readonly id_token: Schema.optional<Schema.String>;
1899
2083
  readonly scope: Schema.optional<Schema.String>;
1900
2084
  readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1901
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError | typeof OAuthTokenEndpointError>, 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> | 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<{
1902
2086
  readonly active: Schema.Boolean;
1903
2087
  readonly scope: Schema.optional<Schema.String>;
1904
2088
  readonly client_id: Schema.optional<Schema.String>;
@@ -1912,13 +2096,13 @@ declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import
1912
2096
  readonly iss: Schema.optional<Schema.String>;
1913
2097
  readonly jti: Schema.optional<Schema.String>;
1914
2098
  readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1915
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
1916
- 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 {
1917
2101
  }
1918
- declare const OAuthTokenHttpApi_base: HttpApi.HttpApi<"OAuthTokenHttpApi", typeof OAuthTokenApi>;
2102
+ declare const OAuthTokenHttpApi_base: HttpApi.HttpApi<"OAuthTokenHttpApi", typeof OAuthTokenHttpApiGroup>;
1919
2103
  export declare class OAuthTokenHttpApi extends OAuthTokenHttpApi_base {
1920
2104
  }
1921
- 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<{
1922
2106
  readonly response_type: Schema.String;
1923
2107
  readonly client_id: Schema.optional<Schema.String>;
1924
2108
  readonly redirect_uri: Schema.optional<Schema.String>;
@@ -1926,229 +2110,28 @@ declare const OAuthProviderAuthorizationApi_base: HttpApiGroup.HttpApiGroup<"oau
1926
2110
  readonly state: Schema.optional<Schema.String>;
1927
2111
  readonly code_challenge: Schema.optional<Schema.String>;
1928
2112
  readonly code_challenge_method: Schema.optional<Schema.String>;
1929
- }>>, 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>;
1930
- 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 {
1931
2115
  }
1932
- declare const OAuthProviderAuthorizationHttpApi_base: HttpApi.HttpApi<"OAuthProviderAuthorizationHttpApi", typeof OAuthProviderAuthorizationApi>;
2116
+ declare const OAuthProviderAuthorizationHttpApi_base: HttpApi.HttpApi<"OAuthProviderAuthorizationHttpApi", typeof OAuthProviderAuthorizationHttpApiGroup>;
1933
2117
  export declare class OAuthProviderAuthorizationHttpApi extends OAuthProviderAuthorizationHttpApi_base {
1934
2118
  }
1935
- 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<{
1936
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1937
- readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1938
- readonly secret: Schema.optional<Schema.String>;
1939
- readonly rememberDevice: Schema.optional<Schema.Boolean>;
1940
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1941
- readonly type: Schema.Literal<"authenticated">;
1942
- readonly expiresAt: Schema.Number;
1943
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1944
- readonly amr: Schema.$Array<Schema.String>;
1945
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1946
- readonly claims: Schema.optional<Schema.Struct<{
1947
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1948
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1949
- }>>;
1950
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
1951
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1952
- readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1953
- readonly rememberDevice: Schema.optional<Schema.Boolean>;
1954
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1955
- readonly type: Schema.Literal<"authenticated">;
1956
- readonly expiresAt: Schema.Number;
1957
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
1958
- readonly amr: Schema.$Array<Schema.String>;
1959
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
1960
- readonly claims: Schema.optional<Schema.Struct<{
1961
- readonly emailVerified: Schema.optional<Schema.Boolean>;
1962
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
1963
- }>>;
1964
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
1965
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1966
- readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1967
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1968
- readonly status: Schema.Literals<readonly ["pending", "approved", "denied", "expired"]>;
1969
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1970
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
1971
- export declare class LoginApprovalApi extends LoginApprovalApi_base {
2119
+ declare const MfaHttpApi_base: HttpApi.HttpApi<"MfaHttpApi", typeof MfaHttpApiGroup>;
2120
+ export declare class MfaHttpApi extends MfaHttpApi_base {
1972
2121
  }
1973
- declare const MfaApi_base: HttpApiGroup.HttpApiGroup<"mfa", 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<{
1974
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1975
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
1976
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1977
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1978
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
1979
- readonly publicKey: Schema.Struct<{
1980
- readonly challenge: Schema.String;
1981
- readonly rpId: Schema.String;
1982
- readonly timeout: Schema.optional<Schema.Number>;
1983
- readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
1984
- readonly type: Schema.Literal<"public-key">;
1985
- readonly id: Schema.String;
1986
- readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
1987
- }>>>;
1988
- readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
1989
- }>;
1990
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | 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<{
1991
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1992
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
1993
- readonly factors: Schema.$Array<Schema.Struct<{
1994
- readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
1995
- }>>;
1996
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
1997
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
1998
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
1999
- readonly credential: Schema.Struct<{
2000
- readonly id: Schema.String;
2001
- readonly rawId: Schema.optional<Schema.String>;
2002
- readonly type: Schema.Literal<"public-key">;
2003
- readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
2004
- readonly authenticatorAttachment: Schema.optional<Schema.String>;
2005
- readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2006
- }>;
2007
- readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
2008
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2009
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2010
- readonly type: Schema.Literal<"authenticated">;
2011
- readonly expiresAt: Schema.Number;
2012
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2013
- readonly amr: Schema.$Array<Schema.String>;
2014
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2015
- readonly claims: Schema.optional<Schema.Struct<{
2016
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2017
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2018
- }>>;
2019
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2020
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
2021
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2022
- readonly code: Schema.String;
2023
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2024
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2025
- readonly type: Schema.Literal<"authenticated">;
2026
- readonly expiresAt: Schema.Number;
2027
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2028
- readonly amr: Schema.$Array<Schema.String>;
2029
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2030
- readonly claims: Schema.optional<Schema.Struct<{
2031
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2032
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2033
- }>>;
2034
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2035
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
2036
- readonly code: Schema.String;
2037
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2038
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2039
- readonly type: Schema.Literal<"authenticated">;
2040
- readonly expiresAt: Schema.Number;
2041
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2042
- readonly amr: Schema.$Array<Schema.String>;
2043
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2044
- readonly claims: Schema.optional<Schema.Struct<{
2045
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2046
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2047
- }>>;
2048
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2049
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
2050
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2051
- readonly code: Schema.String;
2052
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2053
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2054
- readonly type: Schema.Literal<"authenticated">;
2055
- readonly expiresAt: Schema.Number;
2056
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2057
- readonly amr: Schema.$Array<Schema.String>;
2058
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2059
- readonly claims: Schema.optional<Schema.Struct<{
2060
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2061
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2062
- }>>;
2063
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2064
- readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
2065
- readonly code: Schema.String;
2066
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2067
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2068
- readonly type: Schema.Literal<"authenticated">;
2069
- readonly expiresAt: Schema.Number;
2070
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2071
- readonly amr: Schema.$Array<Schema.String>;
2072
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2073
- readonly claims: Schema.optional<Schema.Struct<{
2074
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2075
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2076
- }>>;
2077
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2078
- export declare class MfaApi extends MfaApi_base {
2122
+ declare const StepUpHttpApi_base: HttpApi.HttpApi<"StepUpHttpApi", typeof StepUpHttpApiGroup>;
2123
+ export declare class StepUpHttpApi extends StepUpHttpApi_base {
2079
2124
  }
2080
- 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<{
2081
- readonly factors: Schema.$Array<Schema.Struct<{
2082
- readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
2083
- }>>;
2084
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2085
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2086
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2087
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
2088
- readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2089
- readonly publicKey: Schema.Struct<{
2090
- readonly challenge: Schema.String;
2091
- readonly rpId: Schema.String;
2092
- readonly timeout: Schema.optional<Schema.Number>;
2093
- readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
2094
- readonly type: Schema.Literal<"public-key">;
2095
- readonly id: Schema.String;
2096
- readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
2097
- }>>>;
2098
- readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
2099
- }>;
2100
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2101
- readonly code: Schema.String;
2102
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2103
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2104
- readonly type: Schema.Literal<"authenticated">;
2105
- readonly expiresAt: Schema.Number;
2106
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2107
- readonly amr: Schema.$Array<Schema.String>;
2108
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2109
- readonly claims: Schema.optional<Schema.Struct<{
2110
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2111
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2112
- }>>;
2113
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2114
- readonly code: Schema.String;
2115
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2116
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2117
- readonly type: Schema.Literal<"authenticated">;
2118
- readonly expiresAt: Schema.Number;
2119
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2120
- readonly amr: Schema.$Array<Schema.String>;
2121
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2122
- readonly claims: Schema.optional<Schema.Struct<{
2123
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2124
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2125
- }>>;
2126
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2127
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
2128
- readonly credential: Schema.Struct<{
2129
- readonly id: Schema.String;
2130
- readonly rawId: Schema.optional<Schema.String>;
2131
- readonly type: Schema.Literal<"public-key">;
2132
- readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
2133
- readonly authenticatorAttachment: Schema.optional<Schema.String>;
2134
- readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2135
- }>;
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<{
2129
+ readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
2130
+ readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2136
2131
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2137
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2138
- readonly type: Schema.Literal<"authenticated">;
2139
- readonly expiresAt: Schema.Number;
2140
- readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
2141
- readonly amr: Schema.$Array<Schema.String>;
2142
- readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2143
- readonly claims: Schema.optional<Schema.Struct<{
2144
- readonly emailVerified: Schema.optional<Schema.Boolean>;
2145
- readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
2146
- }>>;
2147
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2148
- export declare class StepUpApi extends StepUpApi_base {
2149
- }
2150
- declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", 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<{
2151
- readonly keys: Schema.$Array<Schema.Struct<{
2132
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2133
+ readonly secret: Schema.String;
2134
+ readonly key: Schema.Struct<{
2152
2135
  readonly keyId: Schema.String;
2153
2136
  readonly prefix: Schema.String;
2154
2137
  readonly scopes: Schema.$Array<Schema.String>;
@@ -2157,17 +2140,9 @@ declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect
2157
2140
  readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2158
2141
  readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2159
2142
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2160
- }>>;
2161
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2162
- readonly keyId: Schema.String;
2163
- readonly reason: Schema.optional<Schema.String>;
2164
- }>>, 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>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | 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<{
2165
- readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
2166
- readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2167
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2168
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2169
- readonly secret: Schema.String;
2170
- readonly key: Schema.Struct<{
2143
+ }>;
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<{
2145
+ readonly keys: Schema.$Array<Schema.Struct<{
2171
2146
  readonly keyId: Schema.String;
2172
2147
  readonly prefix: Schema.String;
2173
2148
  readonly scopes: Schema.$Array<Schema.String>;
@@ -2176,14 +2151,17 @@ declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect
2176
2151
  readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2177
2152
  readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2178
2153
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2179
- }>;
2180
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2181
- export declare class ApiKeyApi extends ApiKeyApi_base {
2154
+ }>>;
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 {
2182
2157
  }
2183
- 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<{
2184
2162
  readonly refreshToken: Schema.String;
2185
2163
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2186
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
2164
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2187
2165
  readonly accessToken: Schema.String;
2188
2166
  readonly accessTokenExpiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2189
2167
  readonly refreshToken: Schema.String;
@@ -2199,16 +2177,19 @@ declare const RefreshTokenApi_base: HttpApiGroup.HttpApiGroup<"refreshToken", im
2199
2177
  readonly reuseDetectedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2200
2178
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2201
2179
  }>;
2202
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2203
- 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 {
2204
2185
  }
2205
- declare const JwtApi_base: HttpApiGroup.HttpApiGroup<"jwt", 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<{
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<{
2206
2187
  readonly jwtId: Schema.String;
2207
2188
  readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2208
2189
  readonly reason: Schema.optional<Schema.String>;
2209
- }>>, 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> | 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<{
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<{
2210
2191
  readonly token: Schema.String;
2211
- }>>, 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<{
2212
2193
  readonly active: Schema.Literal<true>;
2213
2194
  readonly header: Schema.Struct<{
2214
2195
  readonly typ: Schema.Literal<"JWT">;
@@ -2234,18 +2215,21 @@ declare const JwtApi_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unsta
2234
2215
  readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2235
2216
  readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2236
2217
  readonly revokedReason: Schema.optional<Schema.String>;
2237
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2238
- 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 {
2239
2220
  }
2240
- 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<{
2241
2225
  readonly keys: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
2242
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2243
- export declare class JwtDiscoveryApi extends JwtDiscoveryApi_base {
2226
+ }>>, Schema.toCodecJson<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2227
+ export declare class JwtDiscoveryHttpApiGroup extends JwtDiscoveryHttpApiGroup_base {
2244
2228
  }
2245
- declare const JwtDiscoveryHttpApi_base: HttpApi.HttpApi<"JwtDiscoveryHttpApi", typeof JwtDiscoveryApi>;
2229
+ declare const JwtDiscoveryHttpApi_base: HttpApi.HttpApi<"JwtDiscoveryHttpApi", typeof JwtDiscoveryHttpApiGroup>;
2246
2230
  export declare class JwtDiscoveryHttpApi extends JwtDiscoveryHttpApi_base {
2247
2231
  }
2248
- 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<{
2249
2233
  readonly issuer: Schema.String;
2250
2234
  readonly authorization_endpoint: Schema.String;
2251
2235
  readonly token_endpoint: Schema.String;
@@ -2264,28 +2248,22 @@ declare const OidcDiscoveryApi_base: HttpApiGroup.HttpApiGroup<"oidcDiscovery",
2264
2248
  readonly introspection_endpoint: Schema.optional<Schema.String>;
2265
2249
  readonly revocation_endpoint: Schema.optional<Schema.String>;
2266
2250
  readonly revocation_endpoint_auth_methods_supported: Schema.optional<Schema.$Array<Schema.String>>;
2267
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2268
- export declare class OidcDiscoveryApi extends OidcDiscoveryApi_base {
2251
+ }>>, Schema.toCodecJson<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
2252
+ export declare class OidcDiscoveryHttpApiGroup extends OidcDiscoveryHttpApiGroup_base {
2269
2253
  }
2270
- declare const OidcDiscoveryHttpApi_base: HttpApi.HttpApi<"OidcDiscoveryHttpApi", typeof OidcDiscoveryApi>;
2254
+ declare const OidcDiscoveryHttpApi_base: HttpApi.HttpApi<"OidcDiscoveryHttpApi", typeof OidcDiscoveryHttpApiGroup>;
2271
2255
  export declare class OidcDiscoveryHttpApi extends OidcDiscoveryHttpApi_base {
2272
2256
  }
2273
- 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<{
2274
- readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
2275
- readonly secret: Schema.String;
2276
- }>>, 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>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2277
- export declare class SecurityApi extends SecurityApi_base {
2278
- }
2279
- 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<{
2280
2258
  readonly limit: Schema.optional<Schema.Number>;
2281
2259
  readonly beforeOccurredAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2282
- 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"]>>>;
2283
- readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
2284
- }>>, 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<{
2285
2263
  readonly events: Schema.$Array<Schema.Struct<{
2286
2264
  readonly eventId: Schema.String;
2287
- 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"]>;
2288
- 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"]>;
2289
2267
  readonly severity: Schema.Literals<readonly ["info", "warning", "critical"]>;
2290
2268
  readonly occurredAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2291
2269
  readonly summary: Schema.String;
@@ -2301,23 +2279,23 @@ declare const SecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"securityTimel
2301
2279
  }>>;
2302
2280
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2303
2281
  }>>;
2304
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2305
- 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 {
2306
2284
  }
2307
- declare const SecurityTimelineHttpApi_base: HttpApi.HttpApi<"SecurityTimelineHttpApi", typeof SecurityTimelineApi>;
2285
+ declare const SecurityTimelineHttpApi_base: HttpApi.HttpApi<"SecurityTimelineHttpApi", typeof SecurityTimelineHttpApiGroup>;
2308
2286
  export declare class SecurityTimelineHttpApi extends SecurityTimelineHttpApi_base {
2309
2287
  }
2310
- 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<{
2311
2289
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2312
2290
  readonly limit: Schema.optional<Schema.Number>;
2313
2291
  readonly beforeOccurredAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
2314
- 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"]>>>;
2315
- readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
2316
- }>>, 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<{
2317
2295
  readonly events: Schema.$Array<Schema.Struct<{
2318
2296
  readonly eventId: Schema.String;
2319
- 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"]>;
2320
- 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"]>;
2321
2299
  readonly severity: Schema.Literals<readonly ["info", "warning", "critical"]>;
2322
2300
  readonly occurredAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2323
2301
  readonly summary: Schema.String;
@@ -2333,13 +2311,15 @@ declare const AdminSecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"adminSec
2333
2311
  }>>;
2334
2312
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2335
2313
  }>>;
2336
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2337
- 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 {
2338
2316
  }
2339
- declare const AdminSecurityTimelineHttpApi_base: HttpApi.HttpApi<"AdminSecurityTimelineHttpApi", typeof AdminSecurityTimelineApi>;
2317
+ declare const AdminSecurityTimelineHttpApi_base: HttpApi.HttpApi<"AdminSecurityTimelineHttpApi", typeof AdminSecurityTimelineHttpApiGroup>;
2340
2318
  export declare class AdminSecurityTimelineHttpApi extends AdminSecurityTimelineHttpApi_base {
2341
2319
  }
2342
- 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<{
2343
2323
  readonly devices: Schema.$Array<Schema.Struct<{
2344
2324
  readonly deviceId: Schema.String;
2345
2325
  readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
@@ -2347,17 +2327,18 @@ declare const TrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"trustedDevice",
2347
2327
  readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2348
2328
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2349
2329
  }>>;
2350
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2351
- readonly deviceId: Schema.String;
2352
- }>>, 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>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2353
- 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 {
2354
2332
  }
2355
- declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof TrustedDeviceApi>;
2333
+ declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof TrustedDeviceHttpApiGroup>;
2356
2334
  export declare class TrustedDeviceHttpApi extends TrustedDeviceHttpApi_base {
2357
2335
  }
2358
- 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<{
2359
2337
  readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2360
- }>>, 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<{
2361
2342
  readonly devices: Schema.$Array<Schema.Struct<{
2362
2343
  readonly deviceId: Schema.String;
2363
2344
  readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
@@ -2365,44 +2346,65 @@ declare const AdminTrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"adminTruste
2365
2346
  readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
2366
2347
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
2367
2348
  }>>;
2368
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
2369
- readonly userId: Schema.brand<Schema.String, "auth/UserId">;
2370
- readonly deviceId: Schema.String;
2371
- }>>, 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>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
2372
- 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 {
2373
2351
  }
2374
- declare const AdminTrustedDeviceHttpApi_base: HttpApi.HttpApi<"AdminTrustedDeviceHttpApi", typeof AdminTrustedDeviceApi>;
2352
+ declare const AdminTrustedDeviceHttpApi_base: HttpApi.HttpApi<"AdminTrustedDeviceHttpApi", typeof AdminTrustedDeviceHttpApiGroup>;
2375
2353
  export declare class AdminTrustedDeviceHttpApi extends AdminTrustedDeviceHttpApi_base {
2376
2354
  }
2377
- declare const AuthApi_base: HttpApi.HttpApi<"AuthApi", typeof PasswordApi | typeof SessionApi | typeof EmailVerificationApi | typeof EmailOtpApi | typeof MagicLinkApi | typeof LoginApprovalApi | typeof SecurityApi>;
2378
- export declare class AuthApi extends AuthApi_base {
2379
- }
2380
- export declare const PasswordApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "password">, never, AuthApiRateLimit | AuthHttp | AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware | EmailVerificationFlow | PasswordLogin | PasswordManagement | PasswordRegistration | PasswordReset | SessionCookie | Sessions>;
2381
- export declare const SessionApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "session">, never, AuthHttp | AuthOriginCheckMiddleware | SessionCookie | Sessions>;
2382
- export declare const AdminSessionApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminSessionHttpApi", "adminSession">, never, AdminSessionAuthorization | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | SessionCookie | Sessions>;
2383
- 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 | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/Path").Path | SessionCookie | Sessions>;
2384
- export declare const EmailVerificationApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "emailVerification">, never, AuthApiRateLimit | AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware | EmailVerification | EmailVerificationFlow | SessionCookie | Sessions>;
2385
- export declare const EmailOtpApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "emailOtp">, never, AuthApiRateLimit | AuthHttp | AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware | EmailOtpLogin>;
2386
- export declare const MagicLinkApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "magicLink">, never, AuthApiRateLimit | AuthHttp | AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware | MagicLinkLogin>;
2387
- export declare const LoginApprovalApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "loginApproval">, never, AuthFlow | AuthFlowState | AuthHttp | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | LoginApproval | UserStore>;
2388
- export declare const SecurityApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "security">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware>;
2389
- export declare const SecurityTimelineApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"SecurityTimelineHttpApi", "securityTimeline">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | SecurityTimelineStore | SessionCookie | Sessions>;
2390
- export declare const SecurityTimelineHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/Path").Path | SecurityTimelineStore | SessionCookie | Sessions>;
2391
- export declare const OAuthProviderAuthorizationApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"OAuthProviderAuthorizationHttpApi", "oauthProviderAuthorization">, never, AuthSchemaErrorMiddleware | OAuthProviderAuthorization>;
2392
- export declare const OAuthProviderAuthorizationHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | OAuthProviderAuthorization | import("effect/Path").Path>;
2393
- export declare const OAuthTokenApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"OAuthTokenHttpApi", "oauthToken">, never, AuthSchemaErrorMiddleware | OAuthAuthorizationCodeTokenGrant>;
2394
- export declare const OAuthTokenHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | OAuthAuthorizationCodeTokenGrant | import("effect/Path").Path>;
2395
- export declare const JwtDiscoveryApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"JwtDiscoveryHttpApi", "jwtDiscovery">, never, AuthSchemaErrorMiddleware | Jwks>;
2396
- export declare const JwtDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | Jwks | import("effect/Path").Path>;
2397
- export declare const OidcDiscoveryApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"OidcDiscoveryHttpApi", "oidcDiscovery">, never, AuthSchemaErrorMiddleware | OidcDiscoveryMetadata>;
2398
- export declare const OidcDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | OidcDiscoveryMetadata | import("effect/Path").Path>;
2399
- export declare const AdminSecurityTimelineApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminSecurityTimelineHttpApi", "adminSecurityTimeline">, never, AdminSecurityTimelineAuthorization | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | SecurityTimelineStore | SessionCookie | Sessions>;
2400
- 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 | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/Path").Path | SecurityTimelineStore | SessionCookie | Sessions>;
2401
- export declare const TrustedDeviceApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"TrustedDeviceHttpApi", "trustedDevice">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | SessionCookie | Sessions | TrustedDeviceStore>;
2402
- export declare const TrustedDeviceHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/Path").Path | SessionCookie | Sessions | TrustedDeviceStore>;
2403
- export declare const AdminTrustedDeviceApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminTrustedDeviceHttpApi", "adminTrustedDevice">, never, AdminTrustedDeviceAuthorization | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | SessionCookie | Sessions | TrustedDeviceStore>;
2404
- 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 | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/Path").Path | SessionCookie | Sessions | TrustedDeviceStore>;
2405
- export declare const AuthHttpApiBareLive: Layer.Layer<never, never, AuthFlow | AuthFlowState | AuthHttp | EmailOtpLogin | EmailVerification | EmailVerificationFlow | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | LoginApproval | MagicLinkLogin | PasswordLogin | PasswordManagement | PasswordRegistration | PasswordReset | import("effect/Path").Path | SessionCookie | Sessions | UserStore>;
2406
- export declare const AuthHttpApiLive: Layer.Layer<never, never, AuthFlow | AuthFlowState | AuthHttp | EmailOtpLogin | EmailVerification | EmailVerificationFlow | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | LoginApproval | MagicLinkLogin | PasswordLogin | PasswordManagement | PasswordRegistration | PasswordReset | import("effect/Path").Path | import("../Privacy.js").Privacy | import("../RateLimiter.js").RateLimiter | SessionCookie | Sessions | UserStore>;
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>;
2407
2409
  export { AuthResult };
2408
2410
  //# sourceMappingURL=Api.d.ts.map