@effect-auth/core 0.1.0-alpha.16 → 0.1.0-alpha.19

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 (637) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +307 -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/DevEmail.d.ts +44 -0
  56. package/dist/DevEmail.d.ts.map +1 -0
  57. package/dist/DevEmail.js +115 -0
  58. package/dist/DevEmail.js.map +1 -0
  59. package/dist/DevelopmentSeed.d.ts +47 -0
  60. package/dist/DevelopmentSeed.d.ts.map +1 -0
  61. package/dist/DevelopmentSeed.js +337 -0
  62. package/dist/DevelopmentSeed.js.map +1 -0
  63. package/dist/DisposableEmailDomains.d.ts +19 -0
  64. package/dist/DisposableEmailDomains.d.ts.map +1 -0
  65. package/dist/DisposableEmailDomains.js +85 -0
  66. package/dist/DisposableEmailDomains.js.map +1 -0
  67. package/dist/DomainVerification.d.ts +0 -9
  68. package/dist/DomainVerification.d.ts.map +1 -1
  69. package/dist/DomainVerification.js +36 -22
  70. package/dist/DomainVerification.js.map +1 -1
  71. package/dist/DrizzleBunSqliteStorage.d.ts +18 -0
  72. package/dist/DrizzleBunSqliteStorage.d.ts.map +1 -0
  73. package/dist/DrizzleBunSqliteStorage.js +11 -0
  74. package/dist/DrizzleBunSqliteStorage.js.map +1 -0
  75. package/dist/DrizzleD1SqliteStorage.d.ts +4 -4
  76. package/dist/DrizzleD1SqliteStorage.d.ts.map +1 -1
  77. package/dist/DrizzleD1SqliteStorage.js +5 -5
  78. package/dist/DrizzleD1SqliteStorage.js.map +1 -1
  79. package/dist/DrizzleEffectSqliteStorage.d.ts +13 -4
  80. package/dist/DrizzleEffectSqliteStorage.d.ts.map +1 -1
  81. package/dist/DrizzleEffectSqliteStorage.js +71 -4
  82. package/dist/DrizzleEffectSqliteStorage.js.map +1 -1
  83. package/dist/DrizzleNodeSqliteStorage.d.ts +18 -0
  84. package/dist/DrizzleNodeSqliteStorage.d.ts.map +1 -0
  85. package/dist/DrizzleNodeSqliteStorage.js +11 -0
  86. package/dist/DrizzleNodeSqliteStorage.js.map +1 -0
  87. package/dist/DrizzlePostgresStorage.d.ts +26 -0
  88. package/dist/DrizzlePostgresStorage.d.ts.map +1 -0
  89. package/dist/DrizzlePostgresStorage.js +14 -0
  90. package/dist/DrizzlePostgresStorage.js.map +1 -0
  91. package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts +34 -0
  92. package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts.map +1 -0
  93. package/dist/EffectQbPostgresDelegatedAccessStorage.js +499 -0
  94. package/dist/EffectQbPostgresDelegatedAccessStorage.js.map +1 -0
  95. package/dist/EffectQbPostgresStorage.d.ts +178 -0
  96. package/dist/EffectQbPostgresStorage.d.ts.map +1 -0
  97. package/dist/EffectQbPostgresStorage.js +4637 -0
  98. package/dist/EffectQbPostgresStorage.js.map +1 -0
  99. package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts +112 -0
  100. package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts.map +1 -0
  101. package/dist/EffectQbSqliteDelegatedAccessStorage.js +602 -0
  102. package/dist/EffectQbSqliteDelegatedAccessStorage.js.map +1 -0
  103. package/dist/EffectQbSqliteStorage.d.ts +221 -23
  104. package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
  105. package/dist/EffectQbSqliteStorage.js +2064 -135
  106. package/dist/EffectQbSqliteStorage.js.map +1 -1
  107. package/dist/EmailAuth.d.ts +65 -0
  108. package/dist/EmailAuth.d.ts.map +1 -0
  109. package/dist/EmailAuth.js +171 -0
  110. package/dist/EmailAuth.js.map +1 -0
  111. package/dist/EmailIdentityAuth.d.ts +30 -0
  112. package/dist/EmailIdentityAuth.d.ts.map +1 -0
  113. package/dist/EmailIdentityAuth.js +142 -0
  114. package/dist/EmailIdentityAuth.js.map +1 -0
  115. package/dist/EmailOtp.d.ts +10 -11
  116. package/dist/EmailOtp.d.ts.map +1 -1
  117. package/dist/EmailOtp.js +44 -81
  118. package/dist/EmailOtp.js.map +1 -1
  119. package/dist/EmailRisk.d.ts +48 -0
  120. package/dist/EmailRisk.d.ts.map +1 -0
  121. package/dist/EmailRisk.js +33 -0
  122. package/dist/EmailRisk.js.map +1 -0
  123. package/dist/EmailVerification.d.ts +10 -16
  124. package/dist/EmailVerification.d.ts.map +1 -1
  125. package/dist/EmailVerification.js +85 -42
  126. package/dist/EmailVerification.js.map +1 -1
  127. package/dist/Guard.d.ts +11 -0
  128. package/dist/Guard.d.ts.map +1 -0
  129. package/dist/Guard.js +11 -0
  130. package/dist/Guard.js.map +1 -0
  131. package/dist/HibpPwnedPasswords.d.ts +56 -0
  132. package/dist/HibpPwnedPasswords.d.ts.map +1 -0
  133. package/dist/HibpPwnedPasswords.js +232 -0
  134. package/dist/HibpPwnedPasswords.js.map +1 -0
  135. package/dist/HttpApi/AdminPermissionDefinition.d.ts +4 -0
  136. package/dist/HttpApi/AdminPermissionDefinition.d.ts.map +1 -0
  137. package/dist/HttpApi/AdminPermissionDefinition.js +4 -0
  138. package/dist/HttpApi/AdminPermissionDefinition.js.map +1 -0
  139. package/dist/HttpApi/AdminSecurityTimeline.d.ts +4 -0
  140. package/dist/HttpApi/AdminSecurityTimeline.d.ts.map +1 -0
  141. package/dist/HttpApi/AdminSecurityTimeline.js +4 -0
  142. package/dist/HttpApi/AdminSecurityTimeline.js.map +1 -0
  143. package/dist/HttpApi/AdminSession.d.ts +4 -0
  144. package/dist/HttpApi/AdminSession.d.ts.map +1 -0
  145. package/dist/HttpApi/AdminSession.js +4 -0
  146. package/dist/HttpApi/AdminSession.js.map +1 -0
  147. package/dist/HttpApi/AdminTrustedDevice.d.ts +4 -0
  148. package/dist/HttpApi/AdminTrustedDevice.d.ts.map +1 -0
  149. package/dist/HttpApi/AdminTrustedDevice.js +4 -0
  150. package/dist/HttpApi/AdminTrustedDevice.js.map +1 -0
  151. package/dist/HttpApi/Api.d.ts +939 -884
  152. package/dist/HttpApi/Api.d.ts.map +1 -1
  153. package/dist/HttpApi/Api.js +2254 -940
  154. package/dist/HttpApi/Api.js.map +1 -1
  155. package/dist/HttpApi/ApiKey.d.ts +4 -0
  156. package/dist/HttpApi/ApiKey.d.ts.map +1 -0
  157. package/dist/HttpApi/ApiKey.js +4 -0
  158. package/dist/HttpApi/ApiKey.js.map +1 -0
  159. package/dist/HttpApi/Audit.d.ts +6 -0
  160. package/dist/HttpApi/Audit.d.ts.map +1 -0
  161. package/dist/HttpApi/Audit.js +10 -0
  162. package/dist/HttpApi/Audit.js.map +1 -0
  163. package/dist/HttpApi/ClientApi.d.ts +917 -0
  164. package/dist/HttpApi/ClientApi.d.ts.map +1 -0
  165. package/dist/HttpApi/ClientApi.js +101 -0
  166. package/dist/HttpApi/ClientApi.js.map +1 -0
  167. package/dist/HttpApi/EmailAuth.d.ts +6 -0
  168. package/dist/HttpApi/EmailAuth.d.ts.map +1 -0
  169. package/dist/HttpApi/EmailAuth.js +6 -0
  170. package/dist/HttpApi/EmailAuth.js.map +1 -0
  171. package/dist/HttpApi/EmailGuards.d.ts +115 -0
  172. package/dist/HttpApi/EmailGuards.d.ts.map +1 -0
  173. package/dist/HttpApi/EmailGuards.js +191 -0
  174. package/dist/HttpApi/EmailGuards.js.map +1 -0
  175. package/dist/HttpApi/EmailOtp.d.ts +6 -0
  176. package/dist/HttpApi/EmailOtp.d.ts.map +1 -0
  177. package/dist/HttpApi/EmailOtp.js +6 -0
  178. package/dist/HttpApi/EmailOtp.js.map +1 -0
  179. package/dist/HttpApi/EmailVerification.d.ts +6 -0
  180. package/dist/HttpApi/EmailVerification.d.ts.map +1 -0
  181. package/dist/HttpApi/EmailVerification.js +6 -0
  182. package/dist/HttpApi/EmailVerification.js.map +1 -0
  183. package/dist/HttpApi/Endpoints.d.ts +661 -301
  184. package/dist/HttpApi/Endpoints.d.ts.map +1 -1
  185. package/dist/HttpApi/Endpoints.js +207 -120
  186. package/dist/HttpApi/Endpoints.js.map +1 -1
  187. package/dist/HttpApi/Errors.d.ts +37 -10
  188. package/dist/HttpApi/Errors.d.ts.map +1 -1
  189. package/dist/HttpApi/Errors.js +42 -4
  190. package/dist/HttpApi/Errors.js.map +1 -1
  191. package/dist/HttpApi/Identity.d.ts +6 -0
  192. package/dist/HttpApi/Identity.d.ts.map +1 -0
  193. package/dist/HttpApi/Identity.js +6 -0
  194. package/dist/HttpApi/Identity.js.map +1 -0
  195. package/dist/HttpApi/IdentityGuards.d.ts +31 -0
  196. package/dist/HttpApi/IdentityGuards.d.ts.map +1 -0
  197. package/dist/HttpApi/IdentityGuards.js +33 -0
  198. package/dist/HttpApi/IdentityGuards.js.map +1 -0
  199. package/dist/HttpApi/Jwt.d.ts +4 -0
  200. package/dist/HttpApi/Jwt.d.ts.map +1 -0
  201. package/dist/HttpApi/Jwt.js +4 -0
  202. package/dist/HttpApi/Jwt.js.map +1 -0
  203. package/dist/HttpApi/JwtDiscovery.d.ts +4 -0
  204. package/dist/HttpApi/JwtDiscovery.d.ts.map +1 -0
  205. package/dist/HttpApi/JwtDiscovery.js +4 -0
  206. package/dist/HttpApi/JwtDiscovery.js.map +1 -0
  207. package/dist/HttpApi/LoginApproval.d.ts +5 -0
  208. package/dist/HttpApi/LoginApproval.d.ts.map +1 -0
  209. package/dist/HttpApi/LoginApproval.js +5 -0
  210. package/dist/HttpApi/LoginApproval.js.map +1 -0
  211. package/dist/HttpApi/LoginNotification.d.ts +5 -0
  212. package/dist/HttpApi/LoginNotification.d.ts.map +1 -0
  213. package/dist/HttpApi/LoginNotification.js +5 -0
  214. package/dist/HttpApi/LoginNotification.js.map +1 -0
  215. package/dist/HttpApi/MagicLink.d.ts +6 -0
  216. package/dist/HttpApi/MagicLink.d.ts.map +1 -0
  217. package/dist/HttpApi/MagicLink.js +6 -0
  218. package/dist/HttpApi/MagicLink.js.map +1 -0
  219. package/dist/HttpApi/Mfa.d.ts +5 -0
  220. package/dist/HttpApi/Mfa.d.ts.map +1 -0
  221. package/dist/HttpApi/Mfa.js +5 -0
  222. package/dist/HttpApi/Mfa.js.map +1 -0
  223. package/dist/HttpApi/Middleware.d.ts +26 -0
  224. package/dist/HttpApi/Middleware.d.ts.map +1 -0
  225. package/dist/HttpApi/Middleware.js +13 -0
  226. package/dist/HttpApi/Middleware.js.map +1 -0
  227. package/dist/HttpApi/OAuth.d.ts +4 -0
  228. package/dist/HttpApi/OAuth.d.ts.map +1 -0
  229. package/dist/HttpApi/OAuth.js +4 -0
  230. package/dist/HttpApi/OAuth.js.map +1 -0
  231. package/dist/HttpApi/OAuthDeviceAuthorization.d.ts +106 -0
  232. package/dist/HttpApi/OAuthDeviceAuthorization.d.ts.map +1 -0
  233. package/dist/HttpApi/OAuthDeviceAuthorization.js +415 -0
  234. package/dist/HttpApi/OAuthDeviceAuthorization.js.map +1 -0
  235. package/dist/HttpApi/OAuthProviderAuthorization.d.ts +4 -0
  236. package/dist/HttpApi/OAuthProviderAuthorization.d.ts.map +1 -0
  237. package/dist/HttpApi/OAuthProviderAuthorization.js +4 -0
  238. package/dist/HttpApi/OAuthProviderAuthorization.js.map +1 -0
  239. package/dist/HttpApi/OAuthToken.d.ts +4 -0
  240. package/dist/HttpApi/OAuthToken.d.ts.map +1 -0
  241. package/dist/HttpApi/OAuthToken.js +4 -0
  242. package/dist/HttpApi/OAuthToken.js.map +1 -0
  243. package/dist/HttpApi/OidcDiscovery.d.ts +4 -0
  244. package/dist/HttpApi/OidcDiscovery.d.ts.map +1 -0
  245. package/dist/HttpApi/OidcDiscovery.js +4 -0
  246. package/dist/HttpApi/OidcDiscovery.js.map +1 -0
  247. package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts +28 -0
  248. package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts.map +1 -0
  249. package/dist/HttpApi/Operations/AdminPermissionDefinition.js +5 -0
  250. package/dist/HttpApi/Operations/AdminPermissionDefinition.js.map +1 -0
  251. package/dist/HttpApi/Operations/AdminSession.d.ts +16 -0
  252. package/dist/HttpApi/Operations/AdminSession.d.ts.map +1 -0
  253. package/dist/HttpApi/Operations/AdminSession.js +5 -0
  254. package/dist/HttpApi/Operations/AdminSession.js.map +1 -0
  255. package/dist/HttpApi/Operations/ApiKey.d.ts +16 -0
  256. package/dist/HttpApi/Operations/ApiKey.d.ts.map +1 -0
  257. package/dist/HttpApi/Operations/ApiKey.js +5 -0
  258. package/dist/HttpApi/Operations/ApiKey.js.map +1 -0
  259. package/dist/HttpApi/Operations/Discovery.d.ts +19 -0
  260. package/dist/HttpApi/Operations/Discovery.d.ts.map +1 -0
  261. package/dist/HttpApi/Operations/Discovery.js +7 -0
  262. package/dist/HttpApi/Operations/Discovery.js.map +1 -0
  263. package/dist/HttpApi/Operations/EmailAuth.d.ts +12 -0
  264. package/dist/HttpApi/Operations/EmailAuth.d.ts.map +1 -0
  265. package/dist/HttpApi/Operations/EmailAuth.js +5 -0
  266. package/dist/HttpApi/Operations/EmailAuth.js.map +1 -0
  267. package/dist/HttpApi/Operations/EmailOtp.d.ts +14 -0
  268. package/dist/HttpApi/Operations/EmailOtp.d.ts.map +1 -0
  269. package/dist/HttpApi/Operations/EmailOtp.js +5 -0
  270. package/dist/HttpApi/Operations/EmailOtp.js.map +1 -0
  271. package/dist/HttpApi/Operations/EmailVerification.d.ts +14 -0
  272. package/dist/HttpApi/Operations/EmailVerification.d.ts.map +1 -0
  273. package/dist/HttpApi/Operations/EmailVerification.js +5 -0
  274. package/dist/HttpApi/Operations/EmailVerification.js.map +1 -0
  275. package/dist/HttpApi/Operations/HttpOperation.d.ts +4 -0
  276. package/dist/HttpApi/Operations/HttpOperation.d.ts.map +1 -0
  277. package/dist/HttpApi/Operations/HttpOperation.js +2 -0
  278. package/dist/HttpApi/Operations/HttpOperation.js.map +1 -0
  279. package/dist/HttpApi/Operations/Identity.d.ts +22 -0
  280. package/dist/HttpApi/Operations/Identity.d.ts.map +1 -0
  281. package/dist/HttpApi/Operations/Identity.js +5 -0
  282. package/dist/HttpApi/Operations/Identity.js.map +1 -0
  283. package/dist/HttpApi/Operations/Jwt.d.ts +14 -0
  284. package/dist/HttpApi/Operations/Jwt.d.ts.map +1 -0
  285. package/dist/HttpApi/Operations/Jwt.js +5 -0
  286. package/dist/HttpApi/Operations/Jwt.js.map +1 -0
  287. package/dist/HttpApi/Operations/LoginApproval.d.ts +16 -0
  288. package/dist/HttpApi/Operations/LoginApproval.d.ts.map +1 -0
  289. package/dist/HttpApi/Operations/LoginApproval.js +5 -0
  290. package/dist/HttpApi/Operations/LoginApproval.js.map +1 -0
  291. package/dist/HttpApi/Operations/MagicLink.d.ts +14 -0
  292. package/dist/HttpApi/Operations/MagicLink.d.ts.map +1 -0
  293. package/dist/HttpApi/Operations/MagicLink.js +5 -0
  294. package/dist/HttpApi/Operations/MagicLink.js.map +1 -0
  295. package/dist/HttpApi/Operations/Mfa.d.ts +24 -0
  296. package/dist/HttpApi/Operations/Mfa.d.ts.map +1 -0
  297. package/dist/HttpApi/Operations/Mfa.js +5 -0
  298. package/dist/HttpApi/Operations/Mfa.js.map +1 -0
  299. package/dist/HttpApi/Operations/OAuth.d.ts +20 -0
  300. package/dist/HttpApi/Operations/OAuth.d.ts.map +1 -0
  301. package/dist/HttpApi/Operations/OAuth.js +5 -0
  302. package/dist/HttpApi/Operations/OAuth.js.map +1 -0
  303. package/dist/HttpApi/Operations/OAuthDeviceAuthorization.d.ts +23 -0
  304. package/dist/HttpApi/Operations/OAuthDeviceAuthorization.d.ts.map +1 -0
  305. package/dist/HttpApi/Operations/OAuthDeviceAuthorization.js +7 -0
  306. package/dist/HttpApi/Operations/OAuthDeviceAuthorization.js.map +1 -0
  307. package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts +12 -0
  308. package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts.map +1 -0
  309. package/dist/HttpApi/Operations/OAuthProviderAuthorization.js +5 -0
  310. package/dist/HttpApi/Operations/OAuthProviderAuthorization.js.map +1 -0
  311. package/dist/HttpApi/Operations/OAuthToken.d.ts +26 -0
  312. package/dist/HttpApi/Operations/OAuthToken.d.ts.map +1 -0
  313. package/dist/HttpApi/Operations/OAuthToken.js +9 -0
  314. package/dist/HttpApi/Operations/OAuthToken.js.map +1 -0
  315. package/dist/HttpApi/Operations/Passkey.d.ts +22 -0
  316. package/dist/HttpApi/Operations/Passkey.d.ts.map +1 -0
  317. package/dist/HttpApi/Operations/Passkey.js +5 -0
  318. package/dist/HttpApi/Operations/Passkey.js.map +1 -0
  319. package/dist/HttpApi/Operations/Password.d.ts +22 -0
  320. package/dist/HttpApi/Operations/Password.d.ts.map +1 -0
  321. package/dist/HttpApi/Operations/Password.js +5 -0
  322. package/dist/HttpApi/Operations/Password.js.map +1 -0
  323. package/dist/HttpApi/Operations/RecoveryCodes.d.ts +20 -0
  324. package/dist/HttpApi/Operations/RecoveryCodes.d.ts.map +1 -0
  325. package/dist/HttpApi/Operations/RecoveryCodes.js +5 -0
  326. package/dist/HttpApi/Operations/RecoveryCodes.js.map +1 -0
  327. package/dist/HttpApi/Operations/RefreshToken.d.ts +12 -0
  328. package/dist/HttpApi/Operations/RefreshToken.d.ts.map +1 -0
  329. package/dist/HttpApi/Operations/RefreshToken.js +5 -0
  330. package/dist/HttpApi/Operations/RefreshToken.js.map +1 -0
  331. package/dist/HttpApi/Operations/Security.d.ts +12 -0
  332. package/dist/HttpApi/Operations/Security.d.ts.map +1 -0
  333. package/dist/HttpApi/Operations/Security.js +5 -0
  334. package/dist/HttpApi/Operations/Security.js.map +1 -0
  335. package/dist/HttpApi/Operations/SecurityTimeline.d.ts +19 -0
  336. package/dist/HttpApi/Operations/SecurityTimeline.d.ts.map +1 -0
  337. package/dist/HttpApi/Operations/SecurityTimeline.js +7 -0
  338. package/dist/HttpApi/Operations/SecurityTimeline.js.map +1 -0
  339. package/dist/HttpApi/Operations/Session.d.ts +22 -0
  340. package/dist/HttpApi/Operations/Session.d.ts.map +1 -0
  341. package/dist/HttpApi/Operations/Session.js +5 -0
  342. package/dist/HttpApi/Operations/Session.js.map +1 -0
  343. package/dist/HttpApi/Operations/StepUp.d.ts +22 -0
  344. package/dist/HttpApi/Operations/StepUp.d.ts.map +1 -0
  345. package/dist/HttpApi/Operations/StepUp.js +5 -0
  346. package/dist/HttpApi/Operations/StepUp.js.map +1 -0
  347. package/dist/HttpApi/Operations/Totp.d.ts +20 -0
  348. package/dist/HttpApi/Operations/Totp.d.ts.map +1 -0
  349. package/dist/HttpApi/Operations/Totp.js +5 -0
  350. package/dist/HttpApi/Operations/Totp.js.map +1 -0
  351. package/dist/HttpApi/Operations/TrustedDevice.d.ts +23 -0
  352. package/dist/HttpApi/Operations/TrustedDevice.d.ts.map +1 -0
  353. package/dist/HttpApi/Operations/TrustedDevice.js +7 -0
  354. package/dist/HttpApi/Operations/TrustedDevice.js.map +1 -0
  355. package/dist/HttpApi/Operations/index.d.ts +28 -0
  356. package/dist/HttpApi/Operations/index.d.ts.map +1 -0
  357. package/dist/HttpApi/Operations/index.js +28 -0
  358. package/dist/HttpApi/Operations/index.js.map +1 -0
  359. package/dist/HttpApi/Passkey.d.ts +5 -0
  360. package/dist/HttpApi/Passkey.d.ts.map +1 -0
  361. package/dist/HttpApi/Passkey.js +5 -0
  362. package/dist/HttpApi/Passkey.js.map +1 -0
  363. package/dist/HttpApi/Password.d.ts +220 -0
  364. package/dist/HttpApi/Password.d.ts.map +1 -0
  365. package/dist/HttpApi/Password.js +237 -0
  366. package/dist/HttpApi/Password.js.map +1 -0
  367. package/dist/HttpApi/PasswordContract.d.ts +307 -0
  368. package/dist/HttpApi/PasswordContract.d.ts.map +1 -0
  369. package/dist/HttpApi/PasswordContract.js +63 -0
  370. package/dist/HttpApi/PasswordContract.js.map +1 -0
  371. package/dist/HttpApi/PasswordGuards.d.ts +82 -0
  372. package/dist/HttpApi/PasswordGuards.d.ts.map +1 -0
  373. package/dist/HttpApi/PasswordGuards.js +179 -0
  374. package/dist/HttpApi/PasswordGuards.js.map +1 -0
  375. package/dist/HttpApi/RecoveryCodes.d.ts +5 -0
  376. package/dist/HttpApi/RecoveryCodes.d.ts.map +1 -0
  377. package/dist/HttpApi/RecoveryCodes.js +5 -0
  378. package/dist/HttpApi/RecoveryCodes.js.map +1 -0
  379. package/dist/HttpApi/RefreshToken.d.ts +4 -0
  380. package/dist/HttpApi/RefreshToken.d.ts.map +1 -0
  381. package/dist/HttpApi/RefreshToken.js +4 -0
  382. package/dist/HttpApi/RefreshToken.js.map +1 -0
  383. package/dist/HttpApi/RequestGuards.d.ts +42 -0
  384. package/dist/HttpApi/RequestGuards.d.ts.map +1 -0
  385. package/dist/HttpApi/RequestGuards.js +194 -0
  386. package/dist/HttpApi/RequestGuards.js.map +1 -0
  387. package/dist/HttpApi/Schemas.d.ts +399 -84
  388. package/dist/HttpApi/Schemas.d.ts.map +1 -1
  389. package/dist/HttpApi/Schemas.js +225 -27
  390. package/dist/HttpApi/Schemas.js.map +1 -1
  391. package/dist/HttpApi/Security.d.ts +12 -93
  392. package/dist/HttpApi/Security.d.ts.map +1 -1
  393. package/dist/HttpApi/Security.js +65 -356
  394. package/dist/HttpApi/Security.js.map +1 -1
  395. package/dist/HttpApi/SecurityTimeline.d.ts +4 -0
  396. package/dist/HttpApi/SecurityTimeline.d.ts.map +1 -0
  397. package/dist/HttpApi/SecurityTimeline.js +4 -0
  398. package/dist/HttpApi/SecurityTimeline.js.map +1 -0
  399. package/dist/HttpApi/Session.d.ts +5 -0
  400. package/dist/HttpApi/Session.d.ts.map +1 -0
  401. package/dist/HttpApi/Session.js +5 -0
  402. package/dist/HttpApi/Session.js.map +1 -0
  403. package/dist/HttpApi/SessionGuards.d.ts +15 -0
  404. package/dist/HttpApi/SessionGuards.d.ts.map +1 -0
  405. package/dist/HttpApi/SessionGuards.js +37 -0
  406. package/dist/HttpApi/SessionGuards.js.map +1 -0
  407. package/dist/HttpApi/StepUp.d.ts +5 -0
  408. package/dist/HttpApi/StepUp.d.ts.map +1 -0
  409. package/dist/HttpApi/StepUp.js +5 -0
  410. package/dist/HttpApi/StepUp.js.map +1 -0
  411. package/dist/HttpApi/Totp.d.ts +5 -0
  412. package/dist/HttpApi/Totp.d.ts.map +1 -0
  413. package/dist/HttpApi/Totp.js +5 -0
  414. package/dist/HttpApi/Totp.js.map +1 -0
  415. package/dist/HttpApi/Transport.d.ts +4 -6
  416. package/dist/HttpApi/Transport.d.ts.map +1 -1
  417. package/dist/HttpApi/Transport.js +62 -36
  418. package/dist/HttpApi/Transport.js.map +1 -1
  419. package/dist/HttpApi/TrustedDevice.d.ts +4 -0
  420. package/dist/HttpApi/TrustedDevice.d.ts.map +1 -0
  421. package/dist/HttpApi/TrustedDevice.js +4 -0
  422. package/dist/HttpApi/TrustedDevice.js.map +1 -0
  423. package/dist/HttpApi/index.d.ts +11 -3
  424. package/dist/HttpApi/index.d.ts.map +1 -1
  425. package/dist/HttpApi/index.js +10 -2
  426. package/dist/HttpApi/index.js.map +1 -1
  427. package/dist/Identity.d.ts +138 -0
  428. package/dist/Identity.d.ts.map +1 -0
  429. package/dist/Identity.js +105 -0
  430. package/dist/Identity.js.map +1 -0
  431. package/dist/IdentityManagement.d.ts +189 -0
  432. package/dist/IdentityManagement.d.ts.map +1 -0
  433. package/dist/IdentityManagement.js +317 -0
  434. package/dist/IdentityManagement.js.map +1 -0
  435. package/dist/IncidentAction.d.ts +1 -4
  436. package/dist/IncidentAction.d.ts.map +1 -1
  437. package/dist/IncidentAction.js +15 -9
  438. package/dist/IncidentAction.js.map +1 -1
  439. package/dist/Internal.d.ts +2 -0
  440. package/dist/Internal.d.ts.map +1 -1
  441. package/dist/Internal.js +30 -0
  442. package/dist/Internal.js.map +1 -1
  443. package/dist/Invitation.d.ts +362 -0
  444. package/dist/Invitation.d.ts.map +1 -0
  445. package/dist/Invitation.js +633 -0
  446. package/dist/Invitation.js.map +1 -0
  447. package/dist/IpQualityScore.d.ts +38 -0
  448. package/dist/IpQualityScore.d.ts.map +1 -0
  449. package/dist/IpQualityScore.js +215 -0
  450. package/dist/IpQualityScore.js.map +1 -0
  451. package/dist/Jwt.d.ts +8 -29
  452. package/dist/Jwt.d.ts.map +1 -1
  453. package/dist/Jwt.js +67 -56
  454. package/dist/Jwt.js.map +1 -1
  455. package/dist/LoginApproval.d.ts +15 -30
  456. package/dist/LoginApproval.d.ts.map +1 -1
  457. package/dist/LoginApproval.js +47 -41
  458. package/dist/LoginApproval.js.map +1 -1
  459. package/dist/LoginNotification.d.ts +7 -11
  460. package/dist/LoginNotification.d.ts.map +1 -1
  461. package/dist/LoginNotification.js +30 -17
  462. package/dist/LoginNotification.js.map +1 -1
  463. package/dist/LoginRisk.d.ts +11 -13
  464. package/dist/LoginRisk.d.ts.map +1 -1
  465. package/dist/LoginRisk.js +66 -26
  466. package/dist/LoginRisk.js.map +1 -1
  467. package/dist/LoginRiskEnrichment.d.ts +145 -0
  468. package/dist/LoginRiskEnrichment.d.ts.map +1 -0
  469. package/dist/LoginRiskEnrichment.js +220 -0
  470. package/dist/LoginRiskEnrichment.js.map +1 -0
  471. package/dist/MagicLink.d.ts +9 -8
  472. package/dist/MagicLink.d.ts.map +1 -1
  473. package/dist/MagicLink.js +40 -73
  474. package/dist/MagicLink.js.map +1 -1
  475. package/dist/Mailer.d.ts +19 -12
  476. package/dist/Mailer.d.ts.map +1 -1
  477. package/dist/Mailer.js +10 -12
  478. package/dist/Mailer.js.map +1 -1
  479. package/dist/OAuth.d.ts +138 -96
  480. package/dist/OAuth.d.ts.map +1 -1
  481. package/dist/OAuth.js +522 -221
  482. package/dist/OAuth.js.map +1 -1
  483. package/dist/OAuthDeviceAuthorization.d.ts +378 -0
  484. package/dist/OAuthDeviceAuthorization.d.ts.map +1 -0
  485. package/dist/OAuthDeviceAuthorization.js +860 -0
  486. package/dist/OAuthDeviceAuthorization.js.map +1 -0
  487. package/dist/OAuthDeviceClient.d.ts +76 -0
  488. package/dist/OAuthDeviceClient.d.ts.map +1 -0
  489. package/dist/OAuthDeviceClient.js +362 -0
  490. package/dist/OAuthDeviceClient.js.map +1 -0
  491. package/dist/Passkey.d.ts +15 -17
  492. package/dist/Passkey.d.ts.map +1 -1
  493. package/dist/Passkey.js +86 -39
  494. package/dist/Passkey.js.map +1 -1
  495. package/dist/PasskeyBrowser.d.ts +39 -0
  496. package/dist/PasskeyBrowser.d.ts.map +1 -0
  497. package/dist/PasskeyBrowser.js +206 -0
  498. package/dist/PasskeyBrowser.js.map +1 -0
  499. package/dist/PasskeySimpleWebAuthn.d.ts.map +1 -1
  500. package/dist/PasskeySimpleWebAuthn.js +19 -7
  501. package/dist/PasskeySimpleWebAuthn.js.map +1 -1
  502. package/dist/Password.d.ts +71 -37
  503. package/dist/Password.d.ts.map +1 -1
  504. package/dist/Password.js +295 -81
  505. package/dist/Password.js.map +1 -1
  506. package/dist/PasswordRisk.d.ts +63 -0
  507. package/dist/PasswordRisk.d.ts.map +1 -0
  508. package/dist/PasswordRisk.js +37 -0
  509. package/dist/PasswordRisk.js.map +1 -0
  510. package/dist/Permission.d.ts +308 -0
  511. package/dist/Permission.d.ts.map +1 -0
  512. package/dist/Permission.js +827 -0
  513. package/dist/Permission.js.map +1 -0
  514. package/dist/Policy.d.ts +31 -18
  515. package/dist/Policy.d.ts.map +1 -1
  516. package/dist/Policy.js +58 -14
  517. package/dist/Policy.js.map +1 -1
  518. package/dist/PostgresDelegatedAccessStorageMigrations.d.ts +7 -0
  519. package/dist/PostgresDelegatedAccessStorageMigrations.d.ts.map +1 -0
  520. package/dist/PostgresDelegatedAccessStorageMigrations.js +119 -0
  521. package/dist/PostgresDelegatedAccessStorageMigrations.js.map +1 -0
  522. package/dist/PostgresStorageMigrations.d.ts +16 -0
  523. package/dist/PostgresStorageMigrations.d.ts.map +1 -0
  524. package/dist/PostgresStorageMigrations.js +674 -0
  525. package/dist/PostgresStorageMigrations.js.map +1 -0
  526. package/dist/Privacy.d.ts +0 -3
  527. package/dist/Privacy.d.ts.map +1 -1
  528. package/dist/Privacy.js +2 -5
  529. package/dist/Privacy.js.map +1 -1
  530. package/dist/RateLimiter.d.ts +0 -3
  531. package/dist/RateLimiter.d.ts.map +1 -1
  532. package/dist/RateLimiter.js +1 -4
  533. package/dist/RateLimiter.js.map +1 -1
  534. package/dist/RecoveryCode.d.ts +83 -11
  535. package/dist/RecoveryCode.d.ts.map +1 -1
  536. package/dist/RecoveryCode.js +273 -75
  537. package/dist/RecoveryCode.js.map +1 -1
  538. package/dist/RecoveryPolicy.d.ts +81 -0
  539. package/dist/RecoveryPolicy.d.ts.map +1 -0
  540. package/dist/RecoveryPolicy.js +119 -0
  541. package/dist/RecoveryPolicy.js.map +1 -0
  542. package/dist/RefreshToken.d.ts +0 -9
  543. package/dist/RefreshToken.d.ts.map +1 -1
  544. package/dist/RefreshToken.js +31 -22
  545. package/dist/RefreshToken.js.map +1 -1
  546. package/dist/Retention.d.ts +6 -1
  547. package/dist/Retention.d.ts.map +1 -1
  548. package/dist/Retention.js +49 -12
  549. package/dist/Retention.js.map +1 -1
  550. package/dist/SecurityTimeline.d.ts +1 -4
  551. package/dist/SecurityTimeline.d.ts.map +1 -1
  552. package/dist/SecurityTimeline.js +110 -17
  553. package/dist/SecurityTimeline.js.map +1 -1
  554. package/dist/Sessions.d.ts +124 -29
  555. package/dist/Sessions.d.ts.map +1 -1
  556. package/dist/Sessions.js +626 -94
  557. package/dist/Sessions.js.map +1 -1
  558. package/dist/SqliteStorageSchemaData.d.ts +2 -0
  559. package/dist/SqliteStorageSchemaData.d.ts.map +1 -0
  560. package/dist/SqliteStorageSchemaData.js +508 -0
  561. package/dist/SqliteStorageSchemaData.js.map +1 -0
  562. package/dist/StepUp.d.ts +132 -11
  563. package/dist/StepUp.d.ts.map +1 -1
  564. package/dist/StepUp.js +387 -19
  565. package/dist/StepUp.js.map +1 -1
  566. package/dist/Storage.d.ts +89 -23
  567. package/dist/Storage.d.ts.map +1 -1
  568. package/dist/Storage.js +10 -12
  569. package/dist/Storage.js.map +1 -1
  570. package/dist/StorageMigrations.d.ts +7 -1
  571. package/dist/StorageMigrations.d.ts.map +1 -1
  572. package/dist/StorageMigrations.js +256 -0
  573. package/dist/StorageMigrations.js.map +1 -1
  574. package/dist/StorageSchemaGenerator.d.ts +544 -0
  575. package/dist/StorageSchemaGenerator.d.ts.map +1 -0
  576. package/dist/StorageSchemaGenerator.js +1418 -0
  577. package/dist/StorageSchemaGenerator.js.map +1 -0
  578. package/dist/StrongFactor.d.ts +64 -0
  579. package/dist/StrongFactor.d.ts.map +1 -0
  580. package/dist/StrongFactor.js +100 -0
  581. package/dist/StrongFactor.js.map +1 -0
  582. package/dist/Testing.js +2 -2
  583. package/dist/Testing.js.map +1 -1
  584. package/dist/Totp.d.ts +88 -13
  585. package/dist/Totp.d.ts.map +1 -1
  586. package/dist/Totp.js +192 -34
  587. package/dist/Totp.js.map +1 -1
  588. package/dist/TrustedDevice.d.ts +0 -9
  589. package/dist/TrustedDevice.d.ts.map +1 -1
  590. package/dist/TrustedDevice.js +15 -17
  591. package/dist/TrustedDevice.js.map +1 -1
  592. package/dist/WaitUntil.d.ts +0 -3
  593. package/dist/WaitUntil.d.ts.map +1 -1
  594. package/dist/WaitUntil.js +1 -4
  595. package/dist/WaitUntil.js.map +1 -1
  596. package/dist/Webhook.d.ts +42 -12
  597. package/dist/Webhook.d.ts.map +1 -1
  598. package/dist/Webhook.js +165 -26
  599. package/dist/Webhook.js.map +1 -1
  600. package/dist/alchemy/cloudflare/Email.d.ts.map +1 -1
  601. package/dist/alchemy/cloudflare/Email.js +9 -4
  602. package/dist/alchemy/cloudflare/Email.js.map +1 -1
  603. package/dist/cloudflare/Email.js +1 -1
  604. package/dist/cloudflare/Email.js.map +1 -1
  605. package/dist/cloudflare/RequestMetadata.d.ts +49 -0
  606. package/dist/cloudflare/RequestMetadata.d.ts.map +1 -0
  607. package/dist/cloudflare/RequestMetadata.js +71 -0
  608. package/dist/cloudflare/RequestMetadata.js.map +1 -0
  609. package/dist/index.d.ts +0 -35
  610. package/dist/index.d.ts.map +1 -1
  611. package/dist/index.js +0 -35
  612. package/dist/index.js.map +1 -1
  613. package/dist/internal/AuthFlowFinalizer.d.ts +31 -0
  614. package/dist/internal/AuthFlowFinalizer.d.ts.map +1 -0
  615. package/dist/internal/AuthFlowFinalizer.js +182 -0
  616. package/dist/internal/AuthFlowFinalizer.js.map +1 -0
  617. package/migrations/0001_auth_storage.sql +1 -0
  618. package/migrations/0006_auth_totp_factor.sql +1 -0
  619. package/migrations/0024_auth_permission.sql +39 -0
  620. package/migrations/0025_auth_permission_definition.sql +19 -0
  621. package/migrations/0026_auth_user_identity.sql +59 -0
  622. package/migrations/0027_auth_audit_log_storage_order.sql +46 -0
  623. package/migrations/0028_auth_oauth_client_secret_key.sql +39 -0
  624. package/migrations/0029_auth_oauth_device_authorization.sql +28 -0
  625. package/migrations/delegated-access/0001_auth_delegated_access.sql +152 -0
  626. package/migrations/postgres/0001_auth_core.sql +77 -0
  627. package/migrations/postgres/0002_auth_security_oauth.sql +65 -0
  628. package/migrations/postgres/0003_auth_credentials_tokens.sql +43 -0
  629. package/migrations/postgres/0004_auth_security_history.sql +103 -0
  630. package/migrations/postgres/0005_auth_webhooks.sql +29 -0
  631. package/migrations/postgres/0006_auth_domain_timeline.sql +50 -0
  632. package/migrations/postgres/0007_auth_oauth_clients.sql +85 -0
  633. package/migrations/postgres/0008_auth_oauth_tokens.sql +63 -0
  634. package/migrations/postgres/0009_auth_permissions.sql +66 -0
  635. package/migrations/postgres/0010_auth_oauth_device_authorization.sql +50 -0
  636. package/migrations/postgres/delegated-access/0001_auth_delegated_access.sql +112 -0
  637. package/package.json +309 -2
@@ -1,95 +1,131 @@
1
1
  import { HttpApiEndpoint, HttpApiSchema } from "effect/unstable/httpapi";
2
- import { AuthBadRequestError, AuthEmailAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthPolicyDeniedError, AuthRateLimitedError, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, OAuthTokenEndpointError, OAuthTokenIntrospectionEndpointError, OAuthTokenRevocationEndpointError } from "./Errors.js";
3
- export declare const passwordSignInEndpoint: HttpApiEndpoint.HttpApiEndpoint<"signIn", "POST", "/sign-in", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
4
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "auth/Email">;
5
- readonly password: import("effect/Schema").String;
6
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
7
- readonly type: import("effect/Schema").Literal<"authenticated">;
8
- readonly expiresAt: import("effect/Schema").Number;
9
- readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
10
- readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
11
- readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
12
- readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
13
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
14
- readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
15
- }>>;
16
- }>, import("effect/Schema").Struct<{
17
- readonly type: import("effect/Schema").Literal<"requires_mfa">;
18
- readonly flowId: import("effect/Schema").String;
19
- readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
20
- readonly type: import("effect/Schema").String;
2
+ import { AuthBadRequestError, AuthConflictError, AuthIdentityAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthNotFoundError, AuthPolicyDeniedError, AuthRateLimitedError, AuthRequestRejectedError, AuthStepUpRequiredError, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, OAuthDeviceAuthorizationEndpointError, OAuthTokenEndpointError, OAuthTokenIntrospectionEndpointError, OAuthTokenRevocationEndpointError } from "./Errors.js";
3
+ export declare const identityAvailabilityEndpoint: HttpApiEndpoint.HttpApiEndpoint<"availability", "POST", "/availability", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
5
+ readonly type: import("effect/Schema").Literal<"global">;
6
+ }>, import("effect/Schema").Struct<{
7
+ readonly type: import("effect/Schema").Literal<"tenant">;
8
+ readonly tenantId: import("effect/Schema").String;
9
+ }>]>;
10
+ readonly kind: import("effect/Schema").String;
11
+ readonly value: import("effect/Schema").String;
12
+ readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
13
+ readonly token: import("effect/Schema").String;
21
14
  }>>;
22
- }>, import("effect/Schema").Struct<{
23
- readonly type: import("effect/Schema").Literal<"requires_email_verification">;
24
- readonly flowId: import("effect/Schema").String;
25
- }>, import("effect/Schema").Struct<{
26
- readonly type: import("effect/Schema").Literal<"requires_login_approval">;
27
- readonly flowId: import("effect/Schema").String;
28
- readonly approvalChallengeId: import("effect/Schema").String;
29
- readonly channel: import("effect/Schema").String;
30
- readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
31
- readonly sameDeviceRequired: import("effect/Schema").Boolean;
32
- readonly reason: import("effect/Schema").String;
33
- }>, import("effect/Schema").Struct<{
34
- readonly type: import("effect/Schema").Literal<"requires_passkey_enrollment">;
35
- readonly flowId: import("effect/Schema").String;
36
- }>]>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, never, never>;
37
- export declare const passwordSignUpEndpoint: HttpApiEndpoint.HttpApiEndpoint<"signUp", "POST", "/sign-up", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
38
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "auth/Email">;
39
- readonly password: import("effect/Schema").String;
40
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
41
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
42
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
43
- readonly type: import("effect/Schema").Literal<"authenticated">;
44
- readonly expiresAt: import("effect/Schema").Number;
45
- readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
46
- readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
47
- readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
48
- readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
49
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
50
- readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
51
- }>>;
52
- }>, import("effect/Schema").Struct<{
53
- readonly type: import("effect/Schema").Literal<"requires_mfa">;
54
- readonly flowId: import("effect/Schema").String;
55
- readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
56
- readonly type: import("effect/Schema").String;
15
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
16
+ readonly available: import("effect/Schema").Boolean;
17
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
18
+ export declare const identityListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
19
+ readonly identities: import("effect/Schema").$Array<import("effect/Schema").Struct<{
20
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
21
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
22
+ readonly type: import("effect/Schema").Literal<"global">;
23
+ }>, import("effect/Schema").Struct<{
24
+ readonly type: import("effect/Schema").Literal<"tenant">;
25
+ readonly tenantId: import("effect/Schema").String;
26
+ }>]>;
27
+ readonly kind: import("effect/Schema").String;
28
+ readonly value: import("effect/Schema").String;
29
+ readonly verified: import("effect/Schema").Boolean;
30
+ readonly loginEligible: import("effect/Schema").Boolean;
31
+ readonly isPrimaryLogin: import("effect/Schema").Boolean;
32
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
33
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
57
34
  }>>;
58
- }>, import("effect/Schema").Struct<{
59
- readonly type: import("effect/Schema").Literal<"requires_email_verification">;
60
- readonly flowId: import("effect/Schema").String;
61
- }>, import("effect/Schema").Struct<{
62
- readonly type: import("effect/Schema").Literal<"requires_login_approval">;
63
- readonly flowId: import("effect/Schema").String;
64
- readonly approvalChallengeId: import("effect/Schema").String;
65
- readonly channel: import("effect/Schema").String;
66
- readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
67
- readonly sameDeviceRequired: import("effect/Schema").Boolean;
68
- readonly reason: import("effect/Schema").String;
69
- }>, import("effect/Schema").Struct<{
70
- readonly type: import("effect/Schema").Literal<"requires_passkey_enrollment">;
71
- readonly flowId: import("effect/Schema").String;
72
- }>]>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthEmailAlreadyRegisteredError | typeof AuthInternalError>, never, never>;
73
- export declare const passwordResetStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"resetStart", "POST", "/reset/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
74
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "auth/Email">;
75
- readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
76
- readonly locale: import("effect/Schema").optional<import("effect/Schema").String>;
77
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
78
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, never, never>;
79
- export declare const passwordResetVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"resetVerify", "POST", "/reset/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
80
- readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
81
- readonly secret: import("effect/Schema").String;
82
- readonly password: import("effect/Schema").String;
83
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, never, never>;
84
- export declare const passwordSetEndpoint: HttpApiEndpoint.HttpApiEndpoint<"set", "POST", "/set", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
85
- readonly password: import("effect/Schema").String;
86
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
87
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
88
- export declare const passwordChangeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"change", "POST", "/change", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
89
- readonly currentPassword: import("effect/Schema").String;
90
- readonly newPassword: import("effect/Schema").String;
91
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
92
- export declare const currentSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"current", "GET", "/session", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
35
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
36
+ export declare const identityAddEndpoint: HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/add", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
37
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
38
+ readonly type: import("effect/Schema").Literal<"global">;
39
+ }>, import("effect/Schema").Struct<{
40
+ readonly type: import("effect/Schema").Literal<"tenant">;
41
+ readonly tenantId: import("effect/Schema").String;
42
+ }>]>;
43
+ readonly kind: import("effect/Schema").String;
44
+ readonly value: import("effect/Schema").String;
45
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
46
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
47
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
48
+ readonly type: import("effect/Schema").Literal<"global">;
49
+ }>, import("effect/Schema").Struct<{
50
+ readonly type: import("effect/Schema").Literal<"tenant">;
51
+ readonly tenantId: import("effect/Schema").String;
52
+ }>]>;
53
+ readonly kind: import("effect/Schema").String;
54
+ readonly value: import("effect/Schema").String;
55
+ readonly verified: import("effect/Schema").Boolean;
56
+ readonly loginEligible: import("effect/Schema").Boolean;
57
+ readonly isPrimaryLogin: import("effect/Schema").Boolean;
58
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
59
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
60
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
61
+ export declare const identityReplaceEndpoint: HttpApiEndpoint.HttpApiEndpoint<"replace", "POST", "/replace", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
62
+ readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
63
+ readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
64
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
65
+ readonly type: import("effect/Schema").Literal<"global">;
66
+ }>, import("effect/Schema").Struct<{
67
+ readonly type: import("effect/Schema").Literal<"tenant">;
68
+ readonly tenantId: import("effect/Schema").String;
69
+ }>]>;
70
+ readonly kind: import("effect/Schema").String;
71
+ readonly value: import("effect/Schema").String;
72
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
73
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
74
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
75
+ readonly type: import("effect/Schema").Literal<"global">;
76
+ }>, import("effect/Schema").Struct<{
77
+ readonly type: import("effect/Schema").Literal<"tenant">;
78
+ readonly tenantId: import("effect/Schema").String;
79
+ }>]>;
80
+ readonly kind: import("effect/Schema").String;
81
+ readonly value: import("effect/Schema").String;
82
+ readonly verified: import("effect/Schema").Boolean;
83
+ readonly loginEligible: import("effect/Schema").Boolean;
84
+ readonly isPrimaryLogin: import("effect/Schema").Boolean;
85
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
86
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
87
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
88
+ export declare const identityRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
89
+ readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
90
+ readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
91
+ readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
92
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
93
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
94
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
95
+ readonly type: import("effect/Schema").Literal<"global">;
96
+ }>, import("effect/Schema").Struct<{
97
+ readonly type: import("effect/Schema").Literal<"tenant">;
98
+ readonly tenantId: import("effect/Schema").String;
99
+ }>]>;
100
+ readonly kind: import("effect/Schema").String;
101
+ readonly value: import("effect/Schema").String;
102
+ readonly verified: import("effect/Schema").Boolean;
103
+ readonly loginEligible: import("effect/Schema").Boolean;
104
+ readonly isPrimaryLogin: import("effect/Schema").Boolean;
105
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
106
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
107
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
108
+ export declare const identityPrimaryEndpoint: HttpApiEndpoint.HttpApiEndpoint<"primary", "POST", "/primary", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
109
+ readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
110
+ readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
111
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
112
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
113
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
114
+ readonly type: import("effect/Schema").Literal<"global">;
115
+ }>, import("effect/Schema").Struct<{
116
+ readonly type: import("effect/Schema").Literal<"tenant">;
117
+ readonly tenantId: import("effect/Schema").String;
118
+ }>]>;
119
+ readonly kind: import("effect/Schema").String;
120
+ readonly value: import("effect/Schema").String;
121
+ readonly verified: import("effect/Schema").Boolean;
122
+ readonly loginEligible: import("effect/Schema").Boolean;
123
+ readonly isPrimaryLogin: import("effect/Schema").Boolean;
124
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
125
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
126
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
127
+ export { passwordChangeEndpoint, passwordResetStartEndpoint, passwordResetVerifyEndpoint, passwordSetEndpoint, passwordSignInEndpoint, passwordSignUpEndpoint, } from "./PasswordContract.js";
128
+ export declare const currentSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"current", "GET", "/session", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
93
129
  readonly type: import("effect/Schema").Literal<"authenticated">;
94
130
  readonly userId: import("effect/Schema").String;
95
131
  readonly sessionId: import("effect/Schema").String;
@@ -99,11 +135,14 @@ export declare const currentSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"cu
99
135
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
100
136
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
101
137
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
102
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
138
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
103
139
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
140
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
141
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
142
+ }>>;
104
143
  }>>;
105
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
106
- export declare const refreshSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/session/refresh", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
144
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
145
+ export declare const refreshSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/session/refresh", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
107
146
  readonly type: import("effect/Schema").Literal<"authenticated">;
108
147
  readonly userId: import("effect/Schema").String;
109
148
  readonly sessionId: import("effect/Schema").String;
@@ -113,12 +152,15 @@ export declare const refreshSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"re
113
152
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
114
153
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
115
154
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
116
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
155
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
117
156
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
157
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
158
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
159
+ }>>;
118
160
  }>>;
119
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
120
- export declare const logoutEndpoint: HttpApiEndpoint.HttpApiEndpoint<"logout", "POST", "/logout", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthInternalError>, never, never>;
121
- export declare const listSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/sessions", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
161
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
162
+ export declare const logoutEndpoint: HttpApiEndpoint.HttpApiEndpoint<"logout", "POST", "/logout", never, never, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthInternalError>, never, never>;
163
+ export declare const listSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/sessions", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
122
164
  readonly sessions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
123
165
  readonly sessionId: import("effect/Schema").brand<import("effect/Schema").String, "auth/SessionId">;
124
166
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
@@ -131,8 +173,11 @@ export declare const listSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list
131
173
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
132
174
  readonly current: import("effect/Schema").Boolean;
133
175
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
134
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
176
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
135
177
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
178
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
179
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
180
+ }>>;
136
181
  }>>;
137
182
  readonly ip: import("effect/Schema").optional<import("effect/Schema").String>;
138
183
  readonly userAgent: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -143,14 +188,14 @@ export declare const listSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list
143
188
  readonly longitude: import("effect/Schema").optional<import("effect/Schema").Number>;
144
189
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
145
190
  }>>;
146
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
147
- export declare const revokeSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/sessions/revoke", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
191
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
192
+ export declare const revokeSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/sessions/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
148
193
  readonly sessionId: import("effect/Schema").brand<import("effect/Schema").String, "auth/SessionId">;
149
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
150
- export declare const revokeOtherSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeOthers", "POST", "/sessions/revoke-others", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
151
- export declare const adminSessionListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
194
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
195
+ export declare const revokeOtherSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeOthers", "POST", "/sessions/revoke-others", never, never, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
196
+ export declare const adminSessionListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
152
197
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
153
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
198
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
154
199
  readonly sessions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
155
200
  readonly sessionId: import("effect/Schema").brand<import("effect/Schema").String, "auth/SessionId">;
156
201
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
@@ -169,28 +214,119 @@ export declare const adminSessionListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"
169
214
  readonly latitude: import("effect/Schema").optional<import("effect/Schema").Number>;
170
215
  readonly longitude: import("effect/Schema").optional<import("effect/Schema").Number>;
171
216
  }>>;
172
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
173
- export declare const adminSessionRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
217
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
218
+ export declare const adminSessionRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
174
219
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
175
220
  readonly sessionId: import("effect/Schema").brand<import("effect/Schema").String, "auth/SessionId">;
176
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
177
- export declare const adminSessionRevokeAllEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeAll", "POST", "/revoke-all", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
221
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
222
+ export declare const adminSessionRevokeAllEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeAll", "POST", "/revoke-all", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
178
223
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
179
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
180
- export declare const loginNotificationReportEndpoint: HttpApiEndpoint.HttpApiEndpoint<"reportLogin", "POST", "/login/report", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
224
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
225
+ export declare const adminPermissionDefinitionCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/permission-definitions", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
226
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
227
+ readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
228
+ readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
229
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
230
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
231
+ readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
232
+ readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
233
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
234
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
235
+ readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
236
+ readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
237
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
238
+ export declare const adminPermissionDefinitionGetEndpoint: HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/permission-definitions/get", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
239
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
240
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
241
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
242
+ readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
243
+ readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
244
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
245
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
246
+ readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
247
+ readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
248
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
249
+ export declare const adminPermissionDefinitionListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/permission-definitions", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
250
+ readonly includeDisabled: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Boolean, import("effect/Schema").decodeTo<import("effect/Schema").Boolean, import("effect/Schema").Literals<readonly ["true", "false"]>, never, never>]>>;
251
+ readonly includeDeleted: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Boolean, import("effect/Schema").decodeTo<import("effect/Schema").Boolean, import("effect/Schema").Literals<readonly ["true", "false"]>, never, never>]>>;
252
+ readonly after: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">>;
253
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>;
254
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
255
+ readonly definitions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
256
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
257
+ readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
258
+ readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
259
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
260
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
261
+ readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
262
+ readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
263
+ }>>;
264
+ readonly nextAfter: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">>;
265
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
266
+ export declare const adminPermissionDefinitionUpdateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"update", "POST", "/permission-definitions/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
267
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
268
+ readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
269
+ readonly description: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
270
+ readonly scopeType: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
271
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
272
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
273
+ readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
274
+ readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
275
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
276
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
277
+ readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
278
+ readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
279
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
280
+ export declare const adminPermissionDefinitionDisableEndpoint: HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/permission-definitions/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
281
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
282
+ readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
283
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
284
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
285
+ readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
286
+ readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
287
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
288
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
289
+ readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
290
+ readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
291
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
292
+ export declare const adminPermissionDefinitionEnableEndpoint: HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/permission-definitions/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
293
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
294
+ readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
295
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
296
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
297
+ readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
298
+ readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
299
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
300
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
301
+ readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
302
+ readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
303
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
304
+ export declare const adminPermissionDefinitionDeleteEndpoint: HttpApiEndpoint.HttpApiEndpoint<"delete", "POST", "/permission-definitions/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
305
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
306
+ readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
307
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
308
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
309
+ readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
310
+ readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
311
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
312
+ readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
313
+ readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
314
+ readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
315
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
316
+ export declare const loginNotificationReportEndpoint: HttpApiEndpoint.HttpApiEndpoint<"reportLogin", "POST", "/login/report", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
181
317
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
182
318
  readonly secret: import("effect/Schema").String;
183
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
184
- export declare const securityTimelineListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/timeline", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
319
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
320
+ export declare const securityTimelineListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/timeline", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
185
321
  readonly limit: import("effect/Schema").optional<import("effect/Schema").Number>;
186
322
  readonly beforeOccurredAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
187
- readonly types: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/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"]>>>;
188
- readonly categories: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
189
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
323
+ readonly types: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/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"]>>>;
324
+ readonly categories: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
325
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
190
326
  readonly events: import("effect/Schema").$Array<import("effect/Schema").Struct<{
191
327
  readonly eventId: import("effect/Schema").String;
192
- readonly type: import("effect/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"]>;
193
- readonly category: import("effect/Schema").Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
328
+ readonly type: import("effect/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"]>;
329
+ readonly category: import("effect/Schema").Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
194
330
  readonly severity: import("effect/Schema").Literals<readonly ["info", "warning", "critical"]>;
195
331
  readonly occurredAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
196
332
  readonly summary: import("effect/Schema").String;
@@ -206,18 +342,18 @@ export declare const securityTimelineListEndpoint: HttpApiEndpoint.HttpApiEndpoi
206
342
  }>>;
207
343
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
208
344
  }>>;
209
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
210
- export declare const adminSecurityTimelineListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/timeline", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
345
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
346
+ export declare const adminSecurityTimelineListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/timeline", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
211
347
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
212
348
  readonly limit: import("effect/Schema").optional<import("effect/Schema").Number>;
213
349
  readonly beforeOccurredAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
214
- readonly types: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/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"]>>>;
215
- readonly categories: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
216
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
350
+ readonly types: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/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"]>>>;
351
+ readonly categories: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
352
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
217
353
  readonly events: import("effect/Schema").$Array<import("effect/Schema").Struct<{
218
354
  readonly eventId: import("effect/Schema").String;
219
- readonly type: import("effect/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"]>;
220
- readonly category: import("effect/Schema").Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
355
+ readonly type: import("effect/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"]>;
356
+ readonly category: import("effect/Schema").Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
221
357
  readonly severity: import("effect/Schema").Literals<readonly ["info", "warning", "critical"]>;
222
358
  readonly occurredAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
223
359
  readonly summary: import("effect/Schema").String;
@@ -233,8 +369,8 @@ export declare const adminSecurityTimelineListEndpoint: HttpApiEndpoint.HttpApiE
233
369
  }>>;
234
370
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
235
371
  }>>;
236
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
237
- export declare const trustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
372
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
373
+ export declare const trustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
238
374
  readonly devices: import("effect/Schema").$Array<import("effect/Schema").Struct<{
239
375
  readonly deviceId: import("effect/Schema").String;
240
376
  readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
@@ -242,13 +378,13 @@ export declare const trustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndpoint<
242
378
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
243
379
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
244
380
  }>>;
245
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
246
- export declare const trustedDeviceRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
381
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
382
+ export declare const trustedDeviceRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
247
383
  readonly deviceId: import("effect/Schema").String;
248
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
249
- export declare const adminTrustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
384
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
385
+ export declare const adminTrustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
250
386
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
251
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
387
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
252
388
  readonly devices: import("effect/Schema").$Array<import("effect/Schema").Struct<{
253
389
  readonly deviceId: import("effect/Schema").String;
254
390
  readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
@@ -256,53 +392,83 @@ export declare const adminTrustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndp
256
392
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
257
393
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
258
394
  }>>;
259
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
260
- export declare const adminTrustedDeviceRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
395
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
396
+ export declare const adminTrustedDeviceRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
261
397
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
262
398
  readonly deviceId: import("effect/Schema").String;
263
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
264
- export declare const emailVerificationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
265
- readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
266
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "auth/Email">;
399
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
400
+ export declare const emailVerificationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
401
+ readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
267
402
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
268
403
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
269
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, never, never>;
270
- export declare const emailVerificationVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
404
+ readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
405
+ readonly token: import("effect/Schema").String;
406
+ }>>;
407
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
408
+ export declare const emailVerificationVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
271
409
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
272
410
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
273
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
274
- export declare const emailOtpStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
275
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "auth/Email">;
411
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
412
+ export declare const emailOtpStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
413
+ readonly identity: import("effect/Schema").Struct<{
414
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
415
+ readonly type: import("effect/Schema").Literal<"global">;
416
+ }>, import("effect/Schema").Struct<{
417
+ readonly type: import("effect/Schema").Literal<"tenant">;
418
+ readonly tenantId: import("effect/Schema").String;
419
+ }>]>;
420
+ readonly kind: import("effect/Schema").String;
421
+ readonly value: import("effect/Schema").String;
422
+ }>;
276
423
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
277
424
  readonly locale: import("effect/Schema").optional<import("effect/Schema").String>;
278
425
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
279
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
426
+ readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
427
+ readonly token: import("effect/Schema").String;
428
+ }>>;
429
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
280
430
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
281
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "auth/Email">;
431
+ readonly identity: import("effect/Schema").Struct<{
432
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
433
+ readonly type: import("effect/Schema").Literal<"global">;
434
+ }>, import("effect/Schema").Struct<{
435
+ readonly type: import("effect/Schema").Literal<"tenant">;
436
+ readonly tenantId: import("effect/Schema").String;
437
+ }>]>;
438
+ readonly kind: import("effect/Schema").String;
439
+ readonly value: import("effect/Schema").String;
440
+ }>;
282
441
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
283
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, never, never>;
284
- export declare const emailOtpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
442
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
443
+ export declare const emailOtpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
285
444
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
286
445
  readonly secret: import("effect/Schema").String;
287
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
446
+ readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
447
+ readonly token: import("effect/Schema").String;
448
+ }>>;
449
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
288
450
  readonly type: import("effect/Schema").Literal<"authenticated">;
289
451
  readonly expiresAt: import("effect/Schema").Number;
290
452
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
291
453
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
292
454
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
293
455
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
294
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
456
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
295
457
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
458
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
459
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
460
+ }>>;
296
461
  }>>;
297
462
  }>, import("effect/Schema").Struct<{
298
463
  readonly type: import("effect/Schema").Literal<"requires_mfa">;
299
464
  readonly flowId: import("effect/Schema").String;
300
465
  readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
301
- readonly type: import("effect/Schema").String;
466
+ readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
302
467
  }>>;
303
468
  }>, import("effect/Schema").Struct<{
304
469
  readonly type: import("effect/Schema").Literal<"requires_email_verification">;
305
470
  readonly flowId: import("effect/Schema").String;
471
+ readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
306
472
  }>, import("effect/Schema").Struct<{
307
473
  readonly type: import("effect/Schema").Literal<"requires_login_approval">;
308
474
  readonly flowId: import("effect/Schema").String;
@@ -314,38 +480,103 @@ export declare const emailOtpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"ve
314
480
  }>, import("effect/Schema").Struct<{
315
481
  readonly type: import("effect/Schema").Literal<"requires_passkey_enrollment">;
316
482
  readonly flowId: import("effect/Schema").String;
317
- }>]>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, never, never>;
318
- export declare const magicLinkStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
319
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "auth/Email">;
483
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
484
+ export declare const emailAuthStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
485
+ readonly identity: import("effect/Schema").Struct<{
486
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
487
+ readonly type: import("effect/Schema").Literal<"global">;
488
+ }>, import("effect/Schema").Struct<{
489
+ readonly type: import("effect/Schema").Literal<"tenant">;
490
+ readonly tenantId: import("effect/Schema").String;
491
+ }>]>;
492
+ readonly kind: import("effect/Schema").String;
493
+ readonly value: import("effect/Schema").String;
494
+ }>;
495
+ readonly emailOtpSecret: import("effect/Schema").optional<import("effect/Schema").String>;
496
+ readonly magicLinkSecret: import("effect/Schema").optional<import("effect/Schema").String>;
497
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").String>;
498
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
499
+ readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
500
+ readonly token: import("effect/Schema").String;
501
+ }>>;
502
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
503
+ readonly identity: import("effect/Schema").Struct<{
504
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
505
+ readonly type: import("effect/Schema").Literal<"global">;
506
+ }>, import("effect/Schema").Struct<{
507
+ readonly type: import("effect/Schema").Literal<"tenant">;
508
+ readonly tenantId: import("effect/Schema").String;
509
+ }>]>;
510
+ readonly kind: import("effect/Schema").String;
511
+ readonly value: import("effect/Schema").String;
512
+ }>;
513
+ readonly emailOtp: import("effect/Schema").Struct<{
514
+ readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
515
+ readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
516
+ }>;
517
+ readonly magicLink: import("effect/Schema").Struct<{
518
+ readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
519
+ }>;
520
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
521
+ export declare const magicLinkStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
522
+ readonly identity: import("effect/Schema").Struct<{
523
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
524
+ readonly type: import("effect/Schema").Literal<"global">;
525
+ }>, import("effect/Schema").Struct<{
526
+ readonly type: import("effect/Schema").Literal<"tenant">;
527
+ readonly tenantId: import("effect/Schema").String;
528
+ }>]>;
529
+ readonly kind: import("effect/Schema").String;
530
+ readonly value: import("effect/Schema").String;
531
+ }>;
320
532
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
321
533
  readonly locale: import("effect/Schema").optional<import("effect/Schema").String>;
322
534
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
323
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
324
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "auth/Email">;
535
+ readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
536
+ readonly token: import("effect/Schema").String;
537
+ }>>;
538
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
539
+ readonly identity: import("effect/Schema").Struct<{
540
+ readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
541
+ readonly type: import("effect/Schema").Literal<"global">;
542
+ }>, import("effect/Schema").Struct<{
543
+ readonly type: import("effect/Schema").Literal<"tenant">;
544
+ readonly tenantId: import("effect/Schema").String;
545
+ }>]>;
546
+ readonly kind: import("effect/Schema").String;
547
+ readonly value: import("effect/Schema").String;
548
+ }>;
325
549
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
326
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, never, never>;
327
- export declare const magicLinkVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
550
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
551
+ export declare const magicLinkVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
328
552
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
329
553
  readonly secret: import("effect/Schema").String;
330
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
554
+ readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
555
+ readonly token: import("effect/Schema").String;
556
+ }>>;
557
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
331
558
  readonly type: import("effect/Schema").Literal<"authenticated">;
332
559
  readonly expiresAt: import("effect/Schema").Number;
333
560
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
334
561
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
335
562
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
336
563
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
337
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
564
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
338
565
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
566
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
567
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
568
+ }>>;
339
569
  }>>;
340
570
  }>, import("effect/Schema").Struct<{
341
571
  readonly type: import("effect/Schema").Literal<"requires_mfa">;
342
572
  readonly flowId: import("effect/Schema").String;
343
573
  readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
344
- readonly type: import("effect/Schema").String;
574
+ readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
345
575
  }>>;
346
576
  }>, import("effect/Schema").Struct<{
347
577
  readonly type: import("effect/Schema").Literal<"requires_email_verification">;
348
578
  readonly flowId: import("effect/Schema").String;
579
+ readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
349
580
  }>, import("effect/Schema").Struct<{
350
581
  readonly type: import("effect/Schema").Literal<"requires_login_approval">;
351
582
  readonly flowId: import("effect/Schema").String;
@@ -357,8 +588,8 @@ export declare const magicLinkVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"v
357
588
  }>, import("effect/Schema").Struct<{
358
589
  readonly type: import("effect/Schema").Literal<"requires_passkey_enrollment">;
359
590
  readonly flowId: import("effect/Schema").String;
360
- }>]>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, never, never>;
361
- export declare const oauthAuthorizationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startAuthorization", "POST", "/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
591
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
592
+ export declare const oauthAuthorizationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startAuthorization", "POST", "/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
362
593
  readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
363
594
  readonly redirectUri: import("effect/Schema").optional<import("effect/Schema").String>;
364
595
  readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
@@ -367,7 +598,7 @@ export declare const oauthAuthorizationStartEndpoint: HttpApiEndpoint.HttpApiEnd
367
598
  readonly includeNonce: import("effect/Schema").optional<import("effect/Schema").Boolean>;
368
599
  readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
369
600
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
370
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
601
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
371
602
  readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
372
603
  readonly authorizationUrl: import("effect/Schema").String;
373
604
  readonly state: import("effect/Schema").String;
@@ -378,8 +609,8 @@ export declare const oauthAuthorizationStartEndpoint: HttpApiEndpoint.HttpApiEnd
378
609
  readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
379
610
  readonly redirectUri: import("effect/Schema").String;
380
611
  readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
381
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
382
- export declare const oauthProviderAuthorizeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authorize", "GET", "/authorize", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
612
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
613
+ export declare const oauthProviderAuthorizeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authorize", "GET", "/authorize", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
383
614
  readonly response_type: import("effect/Schema").String;
384
615
  readonly client_id: import("effect/Schema").optional<import("effect/Schema").String>;
385
616
  readonly redirect_uri: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -387,8 +618,8 @@ export declare const oauthProviderAuthorizeEndpoint: HttpApiEndpoint.HttpApiEndp
387
618
  readonly state: import("effect/Schema").optional<import("effect/Schema").String>;
388
619
  readonly code_challenge: import("effect/Schema").optional<import("effect/Schema").String>;
389
620
  readonly code_challenge_method: import("effect/Schema").optional<import("effect/Schema").String>;
390
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthInternalError | typeof OAuthAuthorizationEndpointError>, never, never>;
391
- export declare const oauthTokenEndpoint: HttpApiEndpoint.HttpApiEndpoint<"token", "POST", "/token", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
621
+ }>>, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthInternalError | typeof OAuthAuthorizationEndpointError>, never, never>;
622
+ export declare const oauthTokenEndpoint: HttpApiEndpoint.HttpApiEndpoint<"token", "POST", "/token", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
392
623
  readonly access_token: import("effect/Schema").String;
393
624
  readonly token_type: import("effect/Schema").String;
394
625
  readonly expires_in: import("effect/Schema").optional<import("effect/Schema").Number>;
@@ -396,8 +627,39 @@ export declare const oauthTokenEndpoint: HttpApiEndpoint.HttpApiEndpoint<"token"
396
627
  readonly id_token: import("effect/Schema").optional<import("effect/Schema").String>;
397
628
  readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
398
629
  readonly extra: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
399
- }>>, HttpApiEndpoint.Json<typeof AuthInternalError | typeof OAuthTokenEndpointError>, never, never>;
400
- export declare const oauthTokenIntrospectionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
630
+ }>>, import("effect/Schema").toCodecJson<typeof AuthInternalError | typeof OAuthTokenEndpointError>, never, never>;
631
+ export declare const oauthDeviceAuthorizationEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authorizeDevice", "POST", "/device_authorization", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
632
+ readonly device_code: import("effect/Schema").String;
633
+ readonly user_code: import("effect/Schema").String;
634
+ readonly verification_uri: import("effect/Schema").String;
635
+ readonly verification_uri_complete: import("effect/Schema").optional<import("effect/Schema").String>;
636
+ readonly expires_in: import("effect/Schema").Number;
637
+ readonly interval: import("effect/Schema").Number;
638
+ }>>, import("effect/Schema").toCodecJson<typeof OAuthDeviceAuthorizationEndpointError>, never, never>;
639
+ export declare const oauthDeviceAuthorizationInspectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"inspect", "POST", "/inspect", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
640
+ readonly userCode: import("effect/Schema").String;
641
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
642
+ readonly authorizationId: import("effect/Schema").String;
643
+ readonly client: import("effect/Schema").Struct<{
644
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthClientId">;
645
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
646
+ }>;
647
+ readonly requestedScopes: import("effect/Schema").$Array<import("effect/Schema").String>;
648
+ readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
649
+ readonly userCode: import("effect/Schema").String;
650
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
651
+ export declare const oauthDeviceAuthorizationApproveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"approve", "POST", "/approve", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
652
+ readonly authorizationId: import("effect/Schema").String;
653
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
654
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").Never>;
655
+ readonly subject: import("effect/Schema").optional<import("effect/Schema").Never>;
656
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
657
+ export declare const oauthDeviceAuthorizationDenyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"deny", "POST", "/deny", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
658
+ readonly authorizationId: import("effect/Schema").String;
659
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").Never>;
660
+ readonly subject: import("effect/Schema").optional<import("effect/Schema").Never>;
661
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
662
+ export declare const oauthTokenIntrospectionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
401
663
  readonly active: import("effect/Schema").Boolean;
402
664
  readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
403
665
  readonly client_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -411,13 +673,13 @@ export declare const oauthTokenIntrospectionEndpoint: HttpApiEndpoint.HttpApiEnd
411
673
  readonly iss: import("effect/Schema").optional<import("effect/Schema").String>;
412
674
  readonly jti: import("effect/Schema").optional<import("effect/Schema").String>;
413
675
  readonly extra: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
414
- }>>, HttpApiEndpoint.Json<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, never, never>;
415
- export declare const oauthTokenRevocationEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthInternalError | typeof OAuthTokenRevocationEndpointError>, never, never>;
416
- export declare const oauthAccountUnlinkEndpoint: HttpApiEndpoint.HttpApiEndpoint<"unlinkAccount", "POST", "/unlink", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
676
+ }>>, import("effect/Schema").toCodecJson<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, never, never>;
677
+ export declare const oauthTokenRevocationEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthInternalError | typeof OAuthTokenRevocationEndpointError>, never, never>;
678
+ export declare const oauthAccountUnlinkEndpoint: HttpApiEndpoint.HttpApiEndpoint<"unlinkAccount", "POST", "/unlink", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
417
679
  readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
418
680
  readonly providerAccountId: import("effect/Schema").String;
419
681
  readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
420
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
682
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
421
683
  readonly type: import("effect/Schema").Literal<"allow">;
422
684
  readonly reason: import("effect/Schema").Literal<"owned-account">;
423
685
  readonly account: import("effect/Schema").Struct<{
@@ -462,8 +724,8 @@ export declare const oauthAccountUnlinkEndpoint: HttpApiEndpoint.HttpApiEndpoint
462
724
  readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
463
725
  readonly providerAccountId: import("effect/Schema").String;
464
726
  }>;
465
- }>]>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
466
- export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startLinkConfirmation", "POST", "/link-confirmation/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
727
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
728
+ export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startLinkConfirmation", "POST", "/link-confirmation/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
467
729
  readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
468
730
  readonly identity: import("effect/Schema").optional<import("effect/Schema").Struct<{
469
731
  readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
@@ -475,7 +737,7 @@ export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApi
475
737
  readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
476
738
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
477
739
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
478
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
740
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
479
741
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
480
742
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
481
743
  readonly identity: import("effect/Schema").Struct<{
@@ -486,11 +748,11 @@ export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApi
486
748
  }>;
487
749
  readonly reason: import("effect/Schema").String;
488
750
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
489
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
490
- export declare const oauthLinkConfirmationInspectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/link-confirmation/inspect", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
751
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
752
+ export declare const oauthLinkConfirmationInspectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/link-confirmation/inspect", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
491
753
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
492
754
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
493
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
755
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
494
756
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
495
757
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
496
758
  readonly identity: import("effect/Schema").Struct<{
@@ -501,13 +763,13 @@ export declare const oauthLinkConfirmationInspectEndpoint: HttpApiEndpoint.HttpA
501
763
  }>;
502
764
  readonly reason: import("effect/Schema").String;
503
765
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
504
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
505
- export declare const oauthLinkConfirmationConfirmEndpoint: HttpApiEndpoint.HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/link-confirmation/confirm", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
766
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
767
+ export declare const oauthLinkConfirmationConfirmEndpoint: HttpApiEndpoint.HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/link-confirmation/confirm", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
506
768
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
507
769
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
508
770
  readonly expectedProviderId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">>;
509
771
  readonly expectedProviderAccountId: import("effect/Schema").optional<import("effect/Schema").String>;
510
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
772
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
511
773
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
512
774
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
513
775
  readonly identity: import("effect/Schema").Struct<{
@@ -523,13 +785,8 @@ export declare const oauthLinkConfirmationConfirmEndpoint: HttpApiEndpoint.HttpA
523
785
  readonly providerAccountId: import("effect/Schema").String;
524
786
  }>>;
525
787
  readonly linked: import("effect/Schema").Boolean;
526
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
527
- export declare const passkeyRegistrationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"registerStart", "POST", "/register/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
528
- readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
529
- readonly userName: import("effect/Schema").String;
530
- readonly userDisplayName: import("effect/Schema").String;
531
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
532
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
788
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
789
+ export declare const passkeyRegistrationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"registerStart", "POST", "/register/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
533
790
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
534
791
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
535
792
  readonly publicKey: import("effect/Schema").Struct<{
@@ -561,10 +818,9 @@ export declare const passkeyRegistrationStartEndpoint: HttpApiEndpoint.HttpApiEn
561
818
  }>>;
562
819
  readonly attestation: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["none", "indirect", "direct", "enterprise"]>>;
563
820
  }>;
564
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
565
- export declare const passkeyRegistrationFinishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"registerFinish", "POST", "/register/finish", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
821
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
822
+ export declare const passkeyRegistrationFinishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"registerFinish", "POST", "/register/finish", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
566
823
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
567
- readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
568
824
  readonly credential: import("effect/Schema").Struct<{
569
825
  readonly id: import("effect/Schema").String;
570
826
  readonly rawId: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -573,14 +829,13 @@ export declare const passkeyRegistrationFinishEndpoint: HttpApiEndpoint.HttpApiE
573
829
  readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").String>;
574
830
  readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
575
831
  }>;
576
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
577
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
832
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
578
833
  readonly credentialId: import("effect/Schema").String;
579
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
580
- export declare const passkeyAuthenticationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authenticateStart", "POST", "/authenticate/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
834
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
835
+ export declare const passkeyAuthenticationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authenticateStart", "POST", "/authenticate/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
581
836
  readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
582
837
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
583
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
838
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
584
839
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
585
840
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
586
841
  readonly publicKey: import("effect/Schema").Struct<{
@@ -594,8 +849,8 @@ export declare const passkeyAuthenticationStartEndpoint: HttpApiEndpoint.HttpApi
594
849
  }>>>;
595
850
  readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
596
851
  }>;
597
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
598
- export declare const passkeyAuthenticationFinishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authenticateFinish", "POST", "/authenticate/finish", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
852
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
853
+ export declare const passkeyAuthenticationFinishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authenticateFinish", "POST", "/authenticate/finish", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
599
854
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
600
855
  readonly credential: import("effect/Schema").Struct<{
601
856
  readonly id: import("effect/Schema").String;
@@ -607,18 +862,21 @@ export declare const passkeyAuthenticationFinishEndpoint: HttpApiEndpoint.HttpAp
607
862
  }>;
608
863
  readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
609
864
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
610
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
865
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
611
866
  readonly type: import("effect/Schema").Literal<"authenticated">;
612
867
  readonly expiresAt: import("effect/Schema").Number;
613
868
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
614
869
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
615
870
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
616
871
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
617
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
872
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
618
873
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
874
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
875
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
876
+ }>>;
619
877
  }>>;
620
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
621
- export declare const passkeyCredentialListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listCredentials", "GET", "/credentials", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
878
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
879
+ export declare const passkeyCredentialListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listCredentials", "GET", "/credentials", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
622
880
  readonly credentials: import("effect/Schema").$Array<import("effect/Schema").Struct<{
623
881
  readonly credentialId: import("effect/Schema").String;
624
882
  readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
@@ -628,15 +886,15 @@ export declare const passkeyCredentialListEndpoint: HttpApiEndpoint.HttpApiEndpo
628
886
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
629
887
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
630
888
  }>>;
631
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
632
- export declare const passkeyCredentialRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeCredential", "POST", "/credentials/revoke", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
889
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
890
+ export declare const passkeyCredentialRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeCredential", "POST", "/credentials/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
633
891
  readonly credentialId: import("effect/Schema").String;
634
892
  readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
635
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
636
- export declare const totpEnrollmentStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startEnrollment", "POST", "/enroll/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
893
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
894
+ export declare const totpEnrollmentStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startEnrollment", "POST", "/enroll/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
637
895
  readonly accountName: import("effect/Schema").String;
638
896
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
639
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
897
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
640
898
  readonly factor: import("effect/Schema").Struct<{
641
899
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
642
900
  readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
@@ -650,12 +908,12 @@ export declare const totpEnrollmentStartEndpoint: HttpApiEndpoint.HttpApiEndpoin
650
908
  }>;
651
909
  readonly secret: import("effect/Schema").String;
652
910
  readonly uri: import("effect/Schema").String;
653
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
654
- export declare const totpEnrollmentConfirmEndpoint: HttpApiEndpoint.HttpApiEndpoint<"confirmEnrollment", "POST", "/enroll/confirm", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
911
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
912
+ export declare const totpEnrollmentConfirmEndpoint: HttpApiEndpoint.HttpApiEndpoint<"confirmEnrollment", "POST", "/enroll/confirm", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
655
913
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
656
914
  readonly code: import("effect/Schema").String;
657
915
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
658
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
916
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
659
917
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
660
918
  readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
661
919
  readonly digits: import("effect/Schema").Number;
@@ -665,11 +923,11 @@ export declare const totpEnrollmentConfirmEndpoint: HttpApiEndpoint.HttpApiEndpo
665
923
  readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
666
924
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
667
925
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
668
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
669
- export declare const totpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
926
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
927
+ export declare const totpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
670
928
  readonly code: import("effect/Schema").String;
671
929
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
672
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
930
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
673
931
  readonly valid: import("effect/Schema").Boolean;
674
932
  readonly factor: import("effect/Schema").optional<import("effect/Schema").Struct<{
675
933
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
@@ -683,8 +941,9 @@ export declare const totpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify
683
941
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
684
942
  }>>;
685
943
  readonly delta: import("effect/Schema").optional<import("effect/Schema").Number>;
686
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
687
- export declare const totpFactorListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listFactors", "GET", "/factors", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
944
+ readonly acceptedCounter: import("effect/Schema").optional<import("effect/Schema").Number>;
945
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
946
+ export declare const totpFactorListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listFactors", "GET", "/factors", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
688
947
  readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
689
948
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
690
949
  readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
@@ -696,14 +955,14 @@ export declare const totpFactorListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"li
696
955
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
697
956
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
698
957
  }>>;
699
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
700
- export declare const totpFactorRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeFactor", "POST", "/factors/revoke", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
958
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
959
+ export declare const totpFactorRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeFactor", "POST", "/factors/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
701
960
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
702
961
  readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
703
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
704
- export declare const recoveryCodeGenerateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"generateRecoveryCodes", "POST", "/generate", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
962
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
963
+ export declare const recoveryCodeGenerateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"generateRecoveryCodes", "POST", "/generate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
705
964
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
706
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
965
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
707
966
  readonly codes: import("effect/Schema").$Array<import("effect/Schema").String>;
708
967
  readonly records: import("effect/Schema").$Array<import("effect/Schema").Struct<{
709
968
  readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
@@ -712,11 +971,24 @@ export declare const recoveryCodeGenerateEndpoint: HttpApiEndpoint.HttpApiEndpoi
712
971
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
713
972
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
714
973
  }>>;
715
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
716
- export declare const recoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
974
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
975
+ export declare const recoveryCodeRegenerateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"regenerateRecoveryCodes", "POST", "/regenerate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
976
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
977
+ readonly revokeReason: import("effect/Schema").optional<import("effect/Schema").String>;
978
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
979
+ readonly codes: import("effect/Schema").$Array<import("effect/Schema").String>;
980
+ readonly records: import("effect/Schema").$Array<import("effect/Schema").Struct<{
981
+ readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
982
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
983
+ readonly usedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
984
+ readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
985
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
986
+ }>>;
987
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
988
+ export declare const recoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
717
989
  readonly code: import("effect/Schema").String;
718
990
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
719
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
991
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
720
992
  readonly valid: import("effect/Schema").Boolean;
721
993
  readonly code: import("effect/Schema").optional<import("effect/Schema").Struct<{
722
994
  readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
@@ -725,8 +997,8 @@ export declare const recoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint
725
997
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
726
998
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
727
999
  }>>;
728
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
729
- export declare const recoveryCodeListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listRecoveryCodes", "GET", "/codes", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1000
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1001
+ export declare const recoveryCodeListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listRecoveryCodes", "GET", "/codes", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
730
1002
  readonly codes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
731
1003
  readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
732
1004
  readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
@@ -734,16 +1006,16 @@ export declare const recoveryCodeListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"
734
1006
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
735
1007
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
736
1008
  }>>;
737
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
738
- export declare const recoveryCodeRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeRecoveryCode", "POST", "/codes/revoke", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1009
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1010
+ export declare const recoveryCodeRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeRecoveryCode", "POST", "/codes/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
739
1011
  readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
740
1012
  readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
741
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
742
- export declare const apiKeyCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"createApiKey", "POST", "/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1013
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1014
+ export declare const apiKeyCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"createApiKey", "POST", "/", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
743
1015
  readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
744
1016
  readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
745
1017
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
746
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1018
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
747
1019
  readonly secret: import("effect/Schema").String;
748
1020
  readonly key: import("effect/Schema").Struct<{
749
1021
  readonly keyId: import("effect/Schema").String;
@@ -755,8 +1027,8 @@ export declare const apiKeyCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"crea
755
1027
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
756
1028
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
757
1029
  }>;
758
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
759
- export declare const apiKeyListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listApiKeys", "GET", "/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1030
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1031
+ export declare const apiKeyListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listApiKeys", "GET", "/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
760
1032
  readonly keys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
761
1033
  readonly keyId: import("effect/Schema").String;
762
1034
  readonly prefix: import("effect/Schema").String;
@@ -767,15 +1039,15 @@ export declare const apiKeyListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listAp
767
1039
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
768
1040
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
769
1041
  }>>;
770
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
771
- export declare const apiKeyRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeApiKey", "POST", "/revoke", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1042
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1043
+ export declare const apiKeyRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeApiKey", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
772
1044
  readonly keyId: import("effect/Schema").String;
773
1045
  readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
774
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
775
- export declare const refreshTokenRefreshEndpoint: HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/refresh", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1046
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1047
+ export declare const refreshTokenRefreshEndpoint: HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/refresh", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
776
1048
  readonly refreshToken: import("effect/Schema").String;
777
1049
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
778
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1050
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
779
1051
  readonly accessToken: import("effect/Schema").String;
780
1052
  readonly accessTokenExpiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
781
1053
  readonly refreshToken: import("effect/Schema").String;
@@ -791,10 +1063,10 @@ export declare const refreshTokenRefreshEndpoint: HttpApiEndpoint.HttpApiEndpoin
791
1063
  readonly reuseDetectedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
792
1064
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
793
1065
  }>;
794
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, never, never>;
795
- export declare const jwtIntrospectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1066
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, never, never>;
1067
+ export declare const jwtIntrospectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
796
1068
  readonly token: import("effect/Schema").String;
797
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1069
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
798
1070
  readonly active: import("effect/Schema").Literal<true>;
799
1071
  readonly header: import("effect/Schema").Struct<{
800
1072
  readonly typ: import("effect/Schema").Literal<"JWT">;
@@ -820,14 +1092,15 @@ export declare const jwtIntrospectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"int
820
1092
  readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
821
1093
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
822
1094
  readonly revokedReason: import("effect/Schema").optional<import("effect/Schema").String>;
823
- }>]>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
824
- export declare const jwtJwksEndpoint: HttpApiEndpoint.HttpApiEndpoint<"jwks", "GET", "/jwks.json", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1095
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
1096
+ export declare const jwtJwksEndpoint: HttpApiEndpoint.HttpApiEndpoint<"jwks", "GET", "/jwks.json", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
825
1097
  readonly keys: import("effect/Schema").$Array<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
826
- }>>, HttpApiEndpoint.Json<typeof AuthInternalError>, never, never>;
827
- export declare const oidcDiscoveryMetadataEndpoint: HttpApiEndpoint.HttpApiEndpoint<"openidConfiguration", "GET", "/openid-configuration", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1098
+ }>>, import("effect/Schema").toCodecJson<typeof AuthInternalError>, never, never>;
1099
+ export declare const oidcDiscoveryMetadataEndpoint: HttpApiEndpoint.HttpApiEndpoint<"openidConfiguration", "GET", "/openid-configuration", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
828
1100
  readonly issuer: import("effect/Schema").String;
829
1101
  readonly authorization_endpoint: import("effect/Schema").String;
830
1102
  readonly token_endpoint: import("effect/Schema").String;
1103
+ readonly device_authorization_endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
831
1104
  readonly jwks_uri: import("effect/Schema").String;
832
1105
  readonly response_types_supported: import("effect/Schema").$Array<import("effect/Schema").String>;
833
1106
  readonly subject_types_supported: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -843,85 +1116,129 @@ export declare const oidcDiscoveryMetadataEndpoint: HttpApiEndpoint.HttpApiEndpo
843
1116
  readonly introspection_endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
844
1117
  readonly revocation_endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
845
1118
  readonly revocation_endpoint_auth_methods_supported: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
846
- }>>, HttpApiEndpoint.Json<typeof AuthInternalError>, never, never>;
847
- export declare const jwtRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1119
+ }>>, import("effect/Schema").toCodecJson<typeof AuthInternalError>, never, never>;
1120
+ export declare const jwtRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
848
1121
  readonly jwtId: import("effect/Schema").String;
849
1122
  readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
850
1123
  readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
851
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
852
- export declare const mfaOptionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/options", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1124
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
1125
+ export declare const mfaOptionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/options", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
853
1126
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
854
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1127
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
855
1128
  readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
856
1129
  readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
857
1130
  }>>;
858
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
859
- export declare const totpMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotp", "POST", "/totp/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1131
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1132
+ export declare const totpMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotp", "POST", "/totp/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
860
1133
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
861
1134
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
862
1135
  readonly code: import("effect/Schema").String;
863
1136
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
864
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1137
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
865
1138
  readonly type: import("effect/Schema").Literal<"authenticated">;
866
1139
  readonly expiresAt: import("effect/Schema").Number;
867
1140
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
868
1141
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
869
1142
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
870
1143
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
871
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1144
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
872
1145
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1146
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1147
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1148
+ }>>;
873
1149
  }>>;
874
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
875
- export declare const totpMfaVerifyForFlowEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotpForFlow", "POST", "/totp/verify-flow", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1150
+ }>, import("effect/Schema").Struct<{
1151
+ readonly type: import("effect/Schema").Literal<"requires_login_approval">;
1152
+ readonly flowId: import("effect/Schema").String;
1153
+ readonly approvalChallengeId: import("effect/Schema").String;
1154
+ readonly channel: import("effect/Schema").String;
1155
+ readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
1156
+ readonly sameDeviceRequired: import("effect/Schema").Boolean;
1157
+ readonly reason: import("effect/Schema").String;
1158
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1159
+ export declare const totpMfaVerifyForFlowEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotpForFlow", "POST", "/totp/verify-flow", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
876
1160
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
877
1161
  readonly code: import("effect/Schema").String;
878
1162
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
879
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1163
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
880
1164
  readonly type: import("effect/Schema").Literal<"authenticated">;
881
1165
  readonly expiresAt: import("effect/Schema").Number;
882
1166
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
883
1167
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
884
1168
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
885
1169
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
886
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1170
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
887
1171
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1172
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1173
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1174
+ }>>;
888
1175
  }>>;
889
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
890
- export declare const recoveryCodeMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/recovery-code/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1176
+ }>, import("effect/Schema").Struct<{
1177
+ readonly type: import("effect/Schema").Literal<"requires_login_approval">;
1178
+ readonly flowId: import("effect/Schema").String;
1179
+ readonly approvalChallengeId: import("effect/Schema").String;
1180
+ readonly channel: import("effect/Schema").String;
1181
+ readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
1182
+ readonly sameDeviceRequired: import("effect/Schema").Boolean;
1183
+ readonly reason: import("effect/Schema").String;
1184
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1185
+ export declare const recoveryCodeMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/recovery-code/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
891
1186
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
892
1187
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
893
1188
  readonly code: import("effect/Schema").String;
894
1189
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
895
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1190
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
896
1191
  readonly type: import("effect/Schema").Literal<"authenticated">;
897
1192
  readonly expiresAt: import("effect/Schema").Number;
898
1193
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
899
1194
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
900
1195
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
901
1196
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
902
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1197
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
903
1198
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1199
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1200
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1201
+ }>>;
904
1202
  }>>;
905
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
906
- export declare const recoveryCodeMfaVerifyForFlowEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCodeForFlow", "POST", "/recovery-code/verify-flow", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1203
+ }>, import("effect/Schema").Struct<{
1204
+ readonly type: import("effect/Schema").Literal<"requires_login_approval">;
1205
+ readonly flowId: import("effect/Schema").String;
1206
+ readonly approvalChallengeId: import("effect/Schema").String;
1207
+ readonly channel: import("effect/Schema").String;
1208
+ readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
1209
+ readonly sameDeviceRequired: import("effect/Schema").Boolean;
1210
+ readonly reason: import("effect/Schema").String;
1211
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1212
+ export declare const recoveryCodeMfaVerifyForFlowEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCodeForFlow", "POST", "/recovery-code/verify-flow", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
907
1213
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
908
1214
  readonly code: import("effect/Schema").String;
909
1215
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
910
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1216
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
911
1217
  readonly type: import("effect/Schema").Literal<"authenticated">;
912
1218
  readonly expiresAt: import("effect/Schema").Number;
913
1219
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
914
1220
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
915
1221
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
916
1222
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
917
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1223
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
918
1224
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1225
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1226
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1227
+ }>>;
919
1228
  }>>;
920
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
921
- export declare const passkeyMfaStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startPasskey", "POST", "/passkey/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1229
+ }>, import("effect/Schema").Struct<{
1230
+ readonly type: import("effect/Schema").Literal<"requires_login_approval">;
1231
+ readonly flowId: import("effect/Schema").String;
1232
+ readonly approvalChallengeId: import("effect/Schema").String;
1233
+ readonly channel: import("effect/Schema").String;
1234
+ readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
1235
+ readonly sameDeviceRequired: import("effect/Schema").Boolean;
1236
+ readonly reason: import("effect/Schema").String;
1237
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1238
+ export declare const passkeyMfaStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startPasskey", "POST", "/passkey/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
922
1239
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
923
1240
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
924
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1241
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
925
1242
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
926
1243
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
927
1244
  readonly publicKey: import("effect/Schema").Struct<{
@@ -935,8 +1252,8 @@ export declare const passkeyMfaStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"s
935
1252
  }>>>;
936
1253
  readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
937
1254
  }>;
938
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
939
- export declare const passkeyMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPasskey", "POST", "/passkey/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1255
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1256
+ export declare const passkeyMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPasskey", "POST", "/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
940
1257
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
941
1258
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
942
1259
  readonly credential: import("effect/Schema").Struct<{
@@ -949,53 +1266,87 @@ export declare const passkeyMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"
949
1266
  }>;
950
1267
  readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
951
1268
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
952
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1269
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
953
1270
  readonly type: import("effect/Schema").Literal<"authenticated">;
954
1271
  readonly expiresAt: import("effect/Schema").Number;
955
1272
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
956
1273
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
957
1274
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
958
1275
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
959
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1276
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
960
1277
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1278
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1279
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1280
+ }>>;
961
1281
  }>>;
962
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
963
- export declare const stepUpOptionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"options", "GET", "/options", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1282
+ }>, import("effect/Schema").Struct<{
1283
+ readonly type: import("effect/Schema").Literal<"requires_login_approval">;
1284
+ readonly flowId: import("effect/Schema").String;
1285
+ readonly approvalChallengeId: import("effect/Schema").String;
1286
+ readonly channel: import("effect/Schema").String;
1287
+ readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
1288
+ readonly sameDeviceRequired: import("effect/Schema").Boolean;
1289
+ readonly reason: import("effect/Schema").String;
1290
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1291
+ export declare const stepUpOptionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"options", "GET", "/options", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
964
1292
  readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
965
- readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
1293
+ readonly type: import("effect/Schema").Literals<readonly ["password", "totp", "backup-code", "passkey"]>;
966
1294
  }>>;
967
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
968
- export declare const stepUpTotpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotp", "POST", "/totp/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1295
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1296
+ export declare const stepUpTotpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotp", "POST", "/totp/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
969
1297
  readonly code: import("effect/Schema").String;
970
1298
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
971
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1299
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
972
1300
  readonly type: import("effect/Schema").Literal<"authenticated">;
973
1301
  readonly expiresAt: import("effect/Schema").Number;
974
1302
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
975
1303
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
976
1304
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
977
1305
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
978
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1306
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1307
+ readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1308
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1309
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1310
+ }>>;
1311
+ }>>;
1312
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1313
+ export declare const stepUpPasswordVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPassword", "POST", "/password/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1314
+ readonly password: import("effect/Schema").String;
1315
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
1316
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1317
+ readonly type: import("effect/Schema").Literal<"authenticated">;
1318
+ readonly expiresAt: import("effect/Schema").Number;
1319
+ readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
1320
+ readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
1321
+ readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
1322
+ readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
1323
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
979
1324
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1325
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1326
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1327
+ }>>;
980
1328
  }>>;
981
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, never, never>;
982
- export declare const stepUpRecoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/recovery-code/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1329
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1330
+ export declare const stepUpRecoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/recovery-code/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
983
1331
  readonly code: import("effect/Schema").String;
984
1332
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
985
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1333
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
986
1334
  readonly type: import("effect/Schema").Literal<"authenticated">;
987
1335
  readonly expiresAt: import("effect/Schema").Number;
988
1336
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
989
1337
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
990
1338
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
991
1339
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
992
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1340
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
993
1341
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1342
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1343
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1344
+ }>>;
994
1345
  }>>;
995
- }>>, HttpApiEndpoint.Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, never, never>;
996
- export declare const stepUpPasskeyStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startPasskey", "POST", "/passkey/start", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1346
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1347
+ export declare const stepUpPasskeyStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startPasskey", "POST", "/passkey/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
997
1348
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
998
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1349
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
999
1350
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
1000
1351
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
1001
1352
  readonly publicKey: import("effect/Schema").Struct<{
@@ -1009,8 +1360,8 @@ export declare const stepUpPasskeyStartEndpoint: HttpApiEndpoint.HttpApiEndpoint
1009
1360
  }>>>;
1010
1361
  readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
1011
1362
  }>;
1012
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
1013
- export declare const stepUpPasskeyVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPasskey", "POST", "/passkey/verify", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1363
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1364
+ export declare const stepUpPasskeyVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPasskey", "POST", "/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1014
1365
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
1015
1366
  readonly credential: import("effect/Schema").Struct<{
1016
1367
  readonly id: import("effect/Schema").String;
@@ -1021,53 +1372,62 @@ export declare const stepUpPasskeyVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoin
1021
1372
  readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
1022
1373
  }>;
1023
1374
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
1024
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1375
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1025
1376
  readonly type: import("effect/Schema").Literal<"authenticated">;
1026
1377
  readonly expiresAt: import("effect/Schema").Number;
1027
1378
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
1028
1379
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
1029
1380
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
1030
1381
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
1031
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1382
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1032
1383
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1384
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1385
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1386
+ }>>;
1033
1387
  }>>;
1034
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1035
- export declare const loginApprovalApproveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"approve", "POST", "/approve", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1388
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1389
+ export declare const loginApprovalApproveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"approve", "POST", "/approve", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1036
1390
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
1037
1391
  readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
1038
1392
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
1039
1393
  readonly rememberDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1040
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1394
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1041
1395
  readonly type: import("effect/Schema").Literal<"authenticated">;
1042
1396
  readonly expiresAt: import("effect/Schema").Number;
1043
1397
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
1044
1398
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
1045
1399
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
1046
1400
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
1047
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1401
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1048
1402
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1403
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1404
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1405
+ }>>;
1049
1406
  }>>;
1050
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1051
- export declare const loginApprovalStatusEndpoint: HttpApiEndpoint.HttpApiEndpoint<"status", "POST", "/status", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1407
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1408
+ export declare const loginApprovalStatusEndpoint: HttpApiEndpoint.HttpApiEndpoint<"status", "POST", "/status", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1052
1409
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
1053
1410
  readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
1054
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1411
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1055
1412
  readonly status: import("effect/Schema").Literals<readonly ["pending", "approved", "denied", "expired"]>;
1056
1413
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
1057
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1058
- export declare const loginApprovalFinalizeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"finalize", "POST", "/finalize", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1414
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1415
+ export declare const loginApprovalFinalizeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"finalize", "POST", "/finalize", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1059
1416
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
1060
1417
  readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
1061
1418
  readonly rememberDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1062
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1419
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1063
1420
  readonly type: import("effect/Schema").Literal<"authenticated">;
1064
1421
  readonly expiresAt: import("effect/Schema").Number;
1065
1422
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
1066
1423
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
1067
1424
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
1068
1425
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
1069
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1426
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1070
1427
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1428
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1429
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1430
+ }>>;
1071
1431
  }>>;
1072
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1432
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1073
1433
  //# sourceMappingURL=Endpoints.d.ts.map