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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (607) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +308 -133
  3. package/dist/AbuseProtection.d.ts +100 -0
  4. package/dist/AbuseProtection.d.ts.map +1 -0
  5. package/dist/AbuseProtection.js +71 -0
  6. package/dist/AbuseProtection.js.map +1 -0
  7. package/dist/AccessGrant.d.ts +344 -0
  8. package/dist/AccessGrant.d.ts.map +1 -0
  9. package/dist/AccessGrant.js +687 -0
  10. package/dist/AccessGrant.js.map +1 -0
  11. package/dist/ApiKey.d.ts +0 -12
  12. package/dist/ApiKey.d.ts.map +1 -1
  13. package/dist/ApiKey.js +36 -27
  14. package/dist/ApiKey.js.map +1 -1
  15. package/dist/Assurance.d.ts +415 -0
  16. package/dist/Assurance.d.ts.map +1 -0
  17. package/dist/Assurance.js +764 -0
  18. package/dist/Assurance.js.map +1 -0
  19. package/dist/AtomicPlanExecutor.d.ts +28 -0
  20. package/dist/AtomicPlanExecutor.d.ts.map +1 -0
  21. package/dist/AtomicPlanExecutor.js +5 -0
  22. package/dist/AtomicPlanExecutor.js.map +1 -0
  23. package/dist/AuditLog.d.ts +2314 -52
  24. package/dist/AuditLog.d.ts.map +1 -1
  25. package/dist/AuditLog.js +511 -33
  26. package/dist/AuditLog.js.map +1 -1
  27. package/dist/AuthFlow.d.ts +128 -38
  28. package/dist/AuthFlow.d.ts.map +1 -1
  29. package/dist/AuthFlow.js +611 -263
  30. package/dist/AuthFlow.js.map +1 -1
  31. package/dist/AuthRateLimit.d.ts +96 -0
  32. package/dist/AuthRateLimit.d.ts.map +1 -0
  33. package/dist/AuthRateLimit.js +212 -0
  34. package/dist/AuthRateLimit.js.map +1 -0
  35. package/dist/Challenge.d.ts +0 -3
  36. package/dist/Challenge.d.ts.map +1 -1
  37. package/dist/Challenge.js +1 -4
  38. package/dist/Challenge.js.map +1 -1
  39. package/dist/Client.d.ts +205 -10
  40. package/dist/Client.d.ts.map +1 -1
  41. package/dist/Client.js +397 -16
  42. package/dist/Client.js.map +1 -1
  43. package/dist/CloudflareTurnstile.d.ts +28 -0
  44. package/dist/CloudflareTurnstile.d.ts.map +1 -0
  45. package/dist/CloudflareTurnstile.js +205 -0
  46. package/dist/CloudflareTurnstile.js.map +1 -0
  47. package/dist/Crypto.d.ts +0 -3
  48. package/dist/Crypto.d.ts.map +1 -1
  49. package/dist/Crypto.js +1 -4
  50. package/dist/Crypto.js.map +1 -1
  51. package/dist/DelegatedAccessStorageMigrations.d.ts +7 -0
  52. package/dist/DelegatedAccessStorageMigrations.d.ts.map +1 -0
  53. package/dist/DelegatedAccessStorageMigrations.js +159 -0
  54. package/dist/DelegatedAccessStorageMigrations.js.map +1 -0
  55. package/dist/DisposableEmailDomains.d.ts +19 -0
  56. package/dist/DisposableEmailDomains.d.ts.map +1 -0
  57. package/dist/DisposableEmailDomains.js +85 -0
  58. package/dist/DisposableEmailDomains.js.map +1 -0
  59. package/dist/DomainVerification.d.ts +0 -9
  60. package/dist/DomainVerification.d.ts.map +1 -1
  61. package/dist/DomainVerification.js +36 -22
  62. package/dist/DomainVerification.js.map +1 -1
  63. package/dist/DrizzleBunSqliteStorage.d.ts +18 -0
  64. package/dist/DrizzleBunSqliteStorage.d.ts.map +1 -0
  65. package/dist/DrizzleBunSqliteStorage.js +11 -0
  66. package/dist/DrizzleBunSqliteStorage.js.map +1 -0
  67. package/dist/DrizzleD1SqliteStorage.d.ts +4 -4
  68. package/dist/DrizzleD1SqliteStorage.d.ts.map +1 -1
  69. package/dist/DrizzleD1SqliteStorage.js +5 -5
  70. package/dist/DrizzleD1SqliteStorage.js.map +1 -1
  71. package/dist/DrizzleDurableObjectSqliteStorage.d.ts +19 -0
  72. package/dist/DrizzleDurableObjectSqliteStorage.d.ts.map +1 -0
  73. package/dist/DrizzleDurableObjectSqliteStorage.js +14 -0
  74. package/dist/DrizzleDurableObjectSqliteStorage.js.map +1 -0
  75. package/dist/DrizzleEffectSqliteStorage.d.ts +13 -4
  76. package/dist/DrizzleEffectSqliteStorage.d.ts.map +1 -1
  77. package/dist/DrizzleEffectSqliteStorage.js +71 -4
  78. package/dist/DrizzleEffectSqliteStorage.js.map +1 -1
  79. package/dist/DrizzleNodeSqliteStorage.d.ts +18 -0
  80. package/dist/DrizzleNodeSqliteStorage.d.ts.map +1 -0
  81. package/dist/DrizzleNodeSqliteStorage.js +11 -0
  82. package/dist/DrizzleNodeSqliteStorage.js.map +1 -0
  83. package/dist/DrizzleWasmSqliteStorage.d.ts +23 -0
  84. package/dist/DrizzleWasmSqliteStorage.d.ts.map +1 -0
  85. package/dist/DrizzleWasmSqliteStorage.js +15 -0
  86. package/dist/DrizzleWasmSqliteStorage.js.map +1 -0
  87. package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts +34 -0
  88. package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts.map +1 -0
  89. package/dist/EffectQbPostgresDelegatedAccessStorage.js +499 -0
  90. package/dist/EffectQbPostgresDelegatedAccessStorage.js.map +1 -0
  91. package/dist/EffectQbPostgresStorage.d.ts +171 -0
  92. package/dist/EffectQbPostgresStorage.d.ts.map +1 -0
  93. package/dist/EffectQbPostgresStorage.js +4280 -0
  94. package/dist/EffectQbPostgresStorage.js.map +1 -0
  95. package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts +112 -0
  96. package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts.map +1 -0
  97. package/dist/EffectQbSqliteDelegatedAccessStorage.js +602 -0
  98. package/dist/EffectQbSqliteDelegatedAccessStorage.js.map +1 -0
  99. package/dist/EffectQbSqliteStorage.d.ts +181 -23
  100. package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
  101. package/dist/EffectQbSqliteStorage.js +1728 -135
  102. package/dist/EffectQbSqliteStorage.js.map +1 -1
  103. package/dist/EmailAuth.d.ts +65 -0
  104. package/dist/EmailAuth.d.ts.map +1 -0
  105. package/dist/EmailAuth.js +171 -0
  106. package/dist/EmailAuth.js.map +1 -0
  107. package/dist/EmailIdentityAuth.d.ts +30 -0
  108. package/dist/EmailIdentityAuth.d.ts.map +1 -0
  109. package/dist/EmailIdentityAuth.js +142 -0
  110. package/dist/EmailIdentityAuth.js.map +1 -0
  111. package/dist/EmailOtp.d.ts +10 -11
  112. package/dist/EmailOtp.d.ts.map +1 -1
  113. package/dist/EmailOtp.js +44 -81
  114. package/dist/EmailOtp.js.map +1 -1
  115. package/dist/EmailRisk.d.ts +48 -0
  116. package/dist/EmailRisk.d.ts.map +1 -0
  117. package/dist/EmailRisk.js +33 -0
  118. package/dist/EmailRisk.js.map +1 -0
  119. package/dist/EmailVerification.d.ts +10 -16
  120. package/dist/EmailVerification.d.ts.map +1 -1
  121. package/dist/EmailVerification.js +85 -42
  122. package/dist/EmailVerification.js.map +1 -1
  123. package/dist/Guard.d.ts +11 -0
  124. package/dist/Guard.d.ts.map +1 -0
  125. package/dist/Guard.js +11 -0
  126. package/dist/Guard.js.map +1 -0
  127. package/dist/HibpPwnedPasswords.d.ts +56 -0
  128. package/dist/HibpPwnedPasswords.d.ts.map +1 -0
  129. package/dist/HibpPwnedPasswords.js +232 -0
  130. package/dist/HibpPwnedPasswords.js.map +1 -0
  131. package/dist/HttpApi/AdminPermissionDefinition.d.ts +4 -0
  132. package/dist/HttpApi/AdminPermissionDefinition.d.ts.map +1 -0
  133. package/dist/HttpApi/AdminPermissionDefinition.js +4 -0
  134. package/dist/HttpApi/AdminPermissionDefinition.js.map +1 -0
  135. package/dist/HttpApi/AdminSecurityTimeline.d.ts +4 -0
  136. package/dist/HttpApi/AdminSecurityTimeline.d.ts.map +1 -0
  137. package/dist/HttpApi/AdminSecurityTimeline.js +4 -0
  138. package/dist/HttpApi/AdminSecurityTimeline.js.map +1 -0
  139. package/dist/HttpApi/AdminSession.d.ts +4 -0
  140. package/dist/HttpApi/AdminSession.d.ts.map +1 -0
  141. package/dist/HttpApi/AdminSession.js +4 -0
  142. package/dist/HttpApi/AdminSession.js.map +1 -0
  143. package/dist/HttpApi/AdminTrustedDevice.d.ts +4 -0
  144. package/dist/HttpApi/AdminTrustedDevice.d.ts.map +1 -0
  145. package/dist/HttpApi/AdminTrustedDevice.js +4 -0
  146. package/dist/HttpApi/AdminTrustedDevice.js.map +1 -0
  147. package/dist/HttpApi/Api.d.ts +879 -877
  148. package/dist/HttpApi/Api.d.ts.map +1 -1
  149. package/dist/HttpApi/Api.js +2160 -896
  150. package/dist/HttpApi/Api.js.map +1 -1
  151. package/dist/HttpApi/ApiKey.d.ts +4 -0
  152. package/dist/HttpApi/ApiKey.d.ts.map +1 -0
  153. package/dist/HttpApi/ApiKey.js +4 -0
  154. package/dist/HttpApi/ApiKey.js.map +1 -0
  155. package/dist/HttpApi/Audit.d.ts +6 -0
  156. package/dist/HttpApi/Audit.d.ts.map +1 -0
  157. package/dist/HttpApi/Audit.js +10 -0
  158. package/dist/HttpApi/Audit.js.map +1 -0
  159. package/dist/HttpApi/ClientApi.d.ts +917 -0
  160. package/dist/HttpApi/ClientApi.d.ts.map +1 -0
  161. package/dist/HttpApi/ClientApi.js +101 -0
  162. package/dist/HttpApi/ClientApi.js.map +1 -0
  163. package/dist/HttpApi/EmailAuth.d.ts +6 -0
  164. package/dist/HttpApi/EmailAuth.d.ts.map +1 -0
  165. package/dist/HttpApi/EmailAuth.js +6 -0
  166. package/dist/HttpApi/EmailAuth.js.map +1 -0
  167. package/dist/HttpApi/EmailGuards.d.ts +115 -0
  168. package/dist/HttpApi/EmailGuards.d.ts.map +1 -0
  169. package/dist/HttpApi/EmailGuards.js +191 -0
  170. package/dist/HttpApi/EmailGuards.js.map +1 -0
  171. package/dist/HttpApi/EmailOtp.d.ts +6 -0
  172. package/dist/HttpApi/EmailOtp.d.ts.map +1 -0
  173. package/dist/HttpApi/EmailOtp.js +6 -0
  174. package/dist/HttpApi/EmailOtp.js.map +1 -0
  175. package/dist/HttpApi/EmailVerification.d.ts +6 -0
  176. package/dist/HttpApi/EmailVerification.d.ts.map +1 -0
  177. package/dist/HttpApi/EmailVerification.js +6 -0
  178. package/dist/HttpApi/EmailVerification.js.map +1 -0
  179. package/dist/HttpApi/Endpoints.d.ts +629 -301
  180. package/dist/HttpApi/Endpoints.d.ts.map +1 -1
  181. package/dist/HttpApi/Endpoints.js +178 -120
  182. package/dist/HttpApi/Endpoints.js.map +1 -1
  183. package/dist/HttpApi/Errors.d.ts +26 -7
  184. package/dist/HttpApi/Errors.d.ts.map +1 -1
  185. package/dist/HttpApi/Errors.js +26 -4
  186. package/dist/HttpApi/Errors.js.map +1 -1
  187. package/dist/HttpApi/Identity.d.ts +6 -0
  188. package/dist/HttpApi/Identity.d.ts.map +1 -0
  189. package/dist/HttpApi/Identity.js +6 -0
  190. package/dist/HttpApi/Identity.js.map +1 -0
  191. package/dist/HttpApi/IdentityGuards.d.ts +31 -0
  192. package/dist/HttpApi/IdentityGuards.d.ts.map +1 -0
  193. package/dist/HttpApi/IdentityGuards.js +33 -0
  194. package/dist/HttpApi/IdentityGuards.js.map +1 -0
  195. package/dist/HttpApi/Jwt.d.ts +4 -0
  196. package/dist/HttpApi/Jwt.d.ts.map +1 -0
  197. package/dist/HttpApi/Jwt.js +4 -0
  198. package/dist/HttpApi/Jwt.js.map +1 -0
  199. package/dist/HttpApi/JwtDiscovery.d.ts +4 -0
  200. package/dist/HttpApi/JwtDiscovery.d.ts.map +1 -0
  201. package/dist/HttpApi/JwtDiscovery.js +4 -0
  202. package/dist/HttpApi/JwtDiscovery.js.map +1 -0
  203. package/dist/HttpApi/LoginApproval.d.ts +5 -0
  204. package/dist/HttpApi/LoginApproval.d.ts.map +1 -0
  205. package/dist/HttpApi/LoginApproval.js +5 -0
  206. package/dist/HttpApi/LoginApproval.js.map +1 -0
  207. package/dist/HttpApi/LoginNotification.d.ts +5 -0
  208. package/dist/HttpApi/LoginNotification.d.ts.map +1 -0
  209. package/dist/HttpApi/LoginNotification.js +5 -0
  210. package/dist/HttpApi/LoginNotification.js.map +1 -0
  211. package/dist/HttpApi/MagicLink.d.ts +6 -0
  212. package/dist/HttpApi/MagicLink.d.ts.map +1 -0
  213. package/dist/HttpApi/MagicLink.js +6 -0
  214. package/dist/HttpApi/MagicLink.js.map +1 -0
  215. package/dist/HttpApi/Mfa.d.ts +5 -0
  216. package/dist/HttpApi/Mfa.d.ts.map +1 -0
  217. package/dist/HttpApi/Mfa.js +5 -0
  218. package/dist/HttpApi/Mfa.js.map +1 -0
  219. package/dist/HttpApi/Middleware.d.ts +14 -0
  220. package/dist/HttpApi/Middleware.d.ts.map +1 -0
  221. package/dist/HttpApi/Middleware.js +5 -0
  222. package/dist/HttpApi/Middleware.js.map +1 -0
  223. package/dist/HttpApi/OAuth.d.ts +4 -0
  224. package/dist/HttpApi/OAuth.d.ts.map +1 -0
  225. package/dist/HttpApi/OAuth.js +4 -0
  226. package/dist/HttpApi/OAuth.js.map +1 -0
  227. package/dist/HttpApi/OAuthProviderAuthorization.d.ts +4 -0
  228. package/dist/HttpApi/OAuthProviderAuthorization.d.ts.map +1 -0
  229. package/dist/HttpApi/OAuthProviderAuthorization.js +4 -0
  230. package/dist/HttpApi/OAuthProviderAuthorization.js.map +1 -0
  231. package/dist/HttpApi/OAuthToken.d.ts +4 -0
  232. package/dist/HttpApi/OAuthToken.d.ts.map +1 -0
  233. package/dist/HttpApi/OAuthToken.js +4 -0
  234. package/dist/HttpApi/OAuthToken.js.map +1 -0
  235. package/dist/HttpApi/OidcDiscovery.d.ts +4 -0
  236. package/dist/HttpApi/OidcDiscovery.d.ts.map +1 -0
  237. package/dist/HttpApi/OidcDiscovery.js +4 -0
  238. package/dist/HttpApi/OidcDiscovery.js.map +1 -0
  239. package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts +28 -0
  240. package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts.map +1 -0
  241. package/dist/HttpApi/Operations/AdminPermissionDefinition.js +5 -0
  242. package/dist/HttpApi/Operations/AdminPermissionDefinition.js.map +1 -0
  243. package/dist/HttpApi/Operations/AdminSession.d.ts +16 -0
  244. package/dist/HttpApi/Operations/AdminSession.d.ts.map +1 -0
  245. package/dist/HttpApi/Operations/AdminSession.js +5 -0
  246. package/dist/HttpApi/Operations/AdminSession.js.map +1 -0
  247. package/dist/HttpApi/Operations/ApiKey.d.ts +16 -0
  248. package/dist/HttpApi/Operations/ApiKey.d.ts.map +1 -0
  249. package/dist/HttpApi/Operations/ApiKey.js +5 -0
  250. package/dist/HttpApi/Operations/ApiKey.js.map +1 -0
  251. package/dist/HttpApi/Operations/Discovery.d.ts +19 -0
  252. package/dist/HttpApi/Operations/Discovery.d.ts.map +1 -0
  253. package/dist/HttpApi/Operations/Discovery.js +7 -0
  254. package/dist/HttpApi/Operations/Discovery.js.map +1 -0
  255. package/dist/HttpApi/Operations/EmailAuth.d.ts +12 -0
  256. package/dist/HttpApi/Operations/EmailAuth.d.ts.map +1 -0
  257. package/dist/HttpApi/Operations/EmailAuth.js +5 -0
  258. package/dist/HttpApi/Operations/EmailAuth.js.map +1 -0
  259. package/dist/HttpApi/Operations/EmailOtp.d.ts +14 -0
  260. package/dist/HttpApi/Operations/EmailOtp.d.ts.map +1 -0
  261. package/dist/HttpApi/Operations/EmailOtp.js +5 -0
  262. package/dist/HttpApi/Operations/EmailOtp.js.map +1 -0
  263. package/dist/HttpApi/Operations/EmailVerification.d.ts +14 -0
  264. package/dist/HttpApi/Operations/EmailVerification.d.ts.map +1 -0
  265. package/dist/HttpApi/Operations/EmailVerification.js +5 -0
  266. package/dist/HttpApi/Operations/EmailVerification.js.map +1 -0
  267. package/dist/HttpApi/Operations/HttpOperation.d.ts +4 -0
  268. package/dist/HttpApi/Operations/HttpOperation.d.ts.map +1 -0
  269. package/dist/HttpApi/Operations/HttpOperation.js +2 -0
  270. package/dist/HttpApi/Operations/HttpOperation.js.map +1 -0
  271. package/dist/HttpApi/Operations/Identity.d.ts +22 -0
  272. package/dist/HttpApi/Operations/Identity.d.ts.map +1 -0
  273. package/dist/HttpApi/Operations/Identity.js +5 -0
  274. package/dist/HttpApi/Operations/Identity.js.map +1 -0
  275. package/dist/HttpApi/Operations/Jwt.d.ts +14 -0
  276. package/dist/HttpApi/Operations/Jwt.d.ts.map +1 -0
  277. package/dist/HttpApi/Operations/Jwt.js +5 -0
  278. package/dist/HttpApi/Operations/Jwt.js.map +1 -0
  279. package/dist/HttpApi/Operations/LoginApproval.d.ts +16 -0
  280. package/dist/HttpApi/Operations/LoginApproval.d.ts.map +1 -0
  281. package/dist/HttpApi/Operations/LoginApproval.js +5 -0
  282. package/dist/HttpApi/Operations/LoginApproval.js.map +1 -0
  283. package/dist/HttpApi/Operations/MagicLink.d.ts +14 -0
  284. package/dist/HttpApi/Operations/MagicLink.d.ts.map +1 -0
  285. package/dist/HttpApi/Operations/MagicLink.js +5 -0
  286. package/dist/HttpApi/Operations/MagicLink.js.map +1 -0
  287. package/dist/HttpApi/Operations/Mfa.d.ts +24 -0
  288. package/dist/HttpApi/Operations/Mfa.d.ts.map +1 -0
  289. package/dist/HttpApi/Operations/Mfa.js +5 -0
  290. package/dist/HttpApi/Operations/Mfa.js.map +1 -0
  291. package/dist/HttpApi/Operations/OAuth.d.ts +20 -0
  292. package/dist/HttpApi/Operations/OAuth.d.ts.map +1 -0
  293. package/dist/HttpApi/Operations/OAuth.js +5 -0
  294. package/dist/HttpApi/Operations/OAuth.js.map +1 -0
  295. package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts +12 -0
  296. package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts.map +1 -0
  297. package/dist/HttpApi/Operations/OAuthProviderAuthorization.js +5 -0
  298. package/dist/HttpApi/Operations/OAuthProviderAuthorization.js.map +1 -0
  299. package/dist/HttpApi/Operations/OAuthToken.d.ts +16 -0
  300. package/dist/HttpApi/Operations/OAuthToken.d.ts.map +1 -0
  301. package/dist/HttpApi/Operations/OAuthToken.js +5 -0
  302. package/dist/HttpApi/Operations/OAuthToken.js.map +1 -0
  303. package/dist/HttpApi/Operations/Passkey.d.ts +22 -0
  304. package/dist/HttpApi/Operations/Passkey.d.ts.map +1 -0
  305. package/dist/HttpApi/Operations/Passkey.js +5 -0
  306. package/dist/HttpApi/Operations/Passkey.js.map +1 -0
  307. package/dist/HttpApi/Operations/Password.d.ts +22 -0
  308. package/dist/HttpApi/Operations/Password.d.ts.map +1 -0
  309. package/dist/HttpApi/Operations/Password.js +5 -0
  310. package/dist/HttpApi/Operations/Password.js.map +1 -0
  311. package/dist/HttpApi/Operations/RecoveryCodes.d.ts +20 -0
  312. package/dist/HttpApi/Operations/RecoveryCodes.d.ts.map +1 -0
  313. package/dist/HttpApi/Operations/RecoveryCodes.js +5 -0
  314. package/dist/HttpApi/Operations/RecoveryCodes.js.map +1 -0
  315. package/dist/HttpApi/Operations/RefreshToken.d.ts +12 -0
  316. package/dist/HttpApi/Operations/RefreshToken.d.ts.map +1 -0
  317. package/dist/HttpApi/Operations/RefreshToken.js +5 -0
  318. package/dist/HttpApi/Operations/RefreshToken.js.map +1 -0
  319. package/dist/HttpApi/Operations/Security.d.ts +12 -0
  320. package/dist/HttpApi/Operations/Security.d.ts.map +1 -0
  321. package/dist/HttpApi/Operations/Security.js +5 -0
  322. package/dist/HttpApi/Operations/Security.js.map +1 -0
  323. package/dist/HttpApi/Operations/SecurityTimeline.d.ts +19 -0
  324. package/dist/HttpApi/Operations/SecurityTimeline.d.ts.map +1 -0
  325. package/dist/HttpApi/Operations/SecurityTimeline.js +7 -0
  326. package/dist/HttpApi/Operations/SecurityTimeline.js.map +1 -0
  327. package/dist/HttpApi/Operations/Session.d.ts +22 -0
  328. package/dist/HttpApi/Operations/Session.d.ts.map +1 -0
  329. package/dist/HttpApi/Operations/Session.js +5 -0
  330. package/dist/HttpApi/Operations/Session.js.map +1 -0
  331. package/dist/HttpApi/Operations/StepUp.d.ts +22 -0
  332. package/dist/HttpApi/Operations/StepUp.d.ts.map +1 -0
  333. package/dist/HttpApi/Operations/StepUp.js +5 -0
  334. package/dist/HttpApi/Operations/StepUp.js.map +1 -0
  335. package/dist/HttpApi/Operations/Totp.d.ts +20 -0
  336. package/dist/HttpApi/Operations/Totp.d.ts.map +1 -0
  337. package/dist/HttpApi/Operations/Totp.js +5 -0
  338. package/dist/HttpApi/Operations/Totp.js.map +1 -0
  339. package/dist/HttpApi/Operations/TrustedDevice.d.ts +23 -0
  340. package/dist/HttpApi/Operations/TrustedDevice.d.ts.map +1 -0
  341. package/dist/HttpApi/Operations/TrustedDevice.js +7 -0
  342. package/dist/HttpApi/Operations/TrustedDevice.js.map +1 -0
  343. package/dist/HttpApi/Operations/index.d.ts +27 -0
  344. package/dist/HttpApi/Operations/index.d.ts.map +1 -0
  345. package/dist/HttpApi/Operations/index.js +27 -0
  346. package/dist/HttpApi/Operations/index.js.map +1 -0
  347. package/dist/HttpApi/Passkey.d.ts +5 -0
  348. package/dist/HttpApi/Passkey.d.ts.map +1 -0
  349. package/dist/HttpApi/Passkey.js +5 -0
  350. package/dist/HttpApi/Passkey.js.map +1 -0
  351. package/dist/HttpApi/Password.d.ts +220 -0
  352. package/dist/HttpApi/Password.d.ts.map +1 -0
  353. package/dist/HttpApi/Password.js +237 -0
  354. package/dist/HttpApi/Password.js.map +1 -0
  355. package/dist/HttpApi/PasswordContract.d.ts +307 -0
  356. package/dist/HttpApi/PasswordContract.d.ts.map +1 -0
  357. package/dist/HttpApi/PasswordContract.js +63 -0
  358. package/dist/HttpApi/PasswordContract.js.map +1 -0
  359. package/dist/HttpApi/PasswordGuards.d.ts +82 -0
  360. package/dist/HttpApi/PasswordGuards.d.ts.map +1 -0
  361. package/dist/HttpApi/PasswordGuards.js +179 -0
  362. package/dist/HttpApi/PasswordGuards.js.map +1 -0
  363. package/dist/HttpApi/RecoveryCodes.d.ts +5 -0
  364. package/dist/HttpApi/RecoveryCodes.d.ts.map +1 -0
  365. package/dist/HttpApi/RecoveryCodes.js +5 -0
  366. package/dist/HttpApi/RecoveryCodes.js.map +1 -0
  367. package/dist/HttpApi/RefreshToken.d.ts +4 -0
  368. package/dist/HttpApi/RefreshToken.d.ts.map +1 -0
  369. package/dist/HttpApi/RefreshToken.js +4 -0
  370. package/dist/HttpApi/RefreshToken.js.map +1 -0
  371. package/dist/HttpApi/RequestGuards.d.ts +42 -0
  372. package/dist/HttpApi/RequestGuards.d.ts.map +1 -0
  373. package/dist/HttpApi/RequestGuards.js +194 -0
  374. package/dist/HttpApi/RequestGuards.js.map +1 -0
  375. package/dist/HttpApi/Schemas.d.ts +361 -84
  376. package/dist/HttpApi/Schemas.d.ts.map +1 -1
  377. package/dist/HttpApi/Schemas.js +190 -27
  378. package/dist/HttpApi/Schemas.js.map +1 -1
  379. package/dist/HttpApi/Security.d.ts +12 -93
  380. package/dist/HttpApi/Security.d.ts.map +1 -1
  381. package/dist/HttpApi/Security.js +65 -356
  382. package/dist/HttpApi/Security.js.map +1 -1
  383. package/dist/HttpApi/SecurityTimeline.d.ts +4 -0
  384. package/dist/HttpApi/SecurityTimeline.d.ts.map +1 -0
  385. package/dist/HttpApi/SecurityTimeline.js +4 -0
  386. package/dist/HttpApi/SecurityTimeline.js.map +1 -0
  387. package/dist/HttpApi/Session.d.ts +5 -0
  388. package/dist/HttpApi/Session.d.ts.map +1 -0
  389. package/dist/HttpApi/Session.js +5 -0
  390. package/dist/HttpApi/Session.js.map +1 -0
  391. package/dist/HttpApi/SessionGuards.d.ts +15 -0
  392. package/dist/HttpApi/SessionGuards.d.ts.map +1 -0
  393. package/dist/HttpApi/SessionGuards.js +37 -0
  394. package/dist/HttpApi/SessionGuards.js.map +1 -0
  395. package/dist/HttpApi/StepUp.d.ts +5 -0
  396. package/dist/HttpApi/StepUp.d.ts.map +1 -0
  397. package/dist/HttpApi/StepUp.js +5 -0
  398. package/dist/HttpApi/StepUp.js.map +1 -0
  399. package/dist/HttpApi/Totp.d.ts +5 -0
  400. package/dist/HttpApi/Totp.d.ts.map +1 -0
  401. package/dist/HttpApi/Totp.js +5 -0
  402. package/dist/HttpApi/Totp.js.map +1 -0
  403. package/dist/HttpApi/Transport.d.ts +4 -6
  404. package/dist/HttpApi/Transport.d.ts.map +1 -1
  405. package/dist/HttpApi/Transport.js +62 -36
  406. package/dist/HttpApi/Transport.js.map +1 -1
  407. package/dist/HttpApi/TrustedDevice.d.ts +4 -0
  408. package/dist/HttpApi/TrustedDevice.d.ts.map +1 -0
  409. package/dist/HttpApi/TrustedDevice.js +4 -0
  410. package/dist/HttpApi/TrustedDevice.js.map +1 -0
  411. package/dist/HttpApi/index.d.ts +9 -3
  412. package/dist/HttpApi/index.d.ts.map +1 -1
  413. package/dist/HttpApi/index.js +8 -2
  414. package/dist/HttpApi/index.js.map +1 -1
  415. package/dist/Identity.d.ts +138 -0
  416. package/dist/Identity.d.ts.map +1 -0
  417. package/dist/Identity.js +105 -0
  418. package/dist/Identity.js.map +1 -0
  419. package/dist/IdentityManagement.d.ts +189 -0
  420. package/dist/IdentityManagement.d.ts.map +1 -0
  421. package/dist/IdentityManagement.js +317 -0
  422. package/dist/IdentityManagement.js.map +1 -0
  423. package/dist/IncidentAction.d.ts +1 -4
  424. package/dist/IncidentAction.d.ts.map +1 -1
  425. package/dist/IncidentAction.js +15 -9
  426. package/dist/IncidentAction.js.map +1 -1
  427. package/dist/Internal.d.ts +2 -0
  428. package/dist/Internal.d.ts.map +1 -1
  429. package/dist/Internal.js +30 -0
  430. package/dist/Internal.js.map +1 -1
  431. package/dist/Invitation.d.ts +362 -0
  432. package/dist/Invitation.d.ts.map +1 -0
  433. package/dist/Invitation.js +633 -0
  434. package/dist/Invitation.js.map +1 -0
  435. package/dist/IpQualityScore.d.ts +38 -0
  436. package/dist/IpQualityScore.d.ts.map +1 -0
  437. package/dist/IpQualityScore.js +215 -0
  438. package/dist/IpQualityScore.js.map +1 -0
  439. package/dist/Jwt.d.ts +8 -29
  440. package/dist/Jwt.d.ts.map +1 -1
  441. package/dist/Jwt.js +67 -56
  442. package/dist/Jwt.js.map +1 -1
  443. package/dist/LoginApproval.d.ts +15 -30
  444. package/dist/LoginApproval.d.ts.map +1 -1
  445. package/dist/LoginApproval.js +47 -41
  446. package/dist/LoginApproval.js.map +1 -1
  447. package/dist/LoginNotification.d.ts +7 -11
  448. package/dist/LoginNotification.d.ts.map +1 -1
  449. package/dist/LoginNotification.js +30 -17
  450. package/dist/LoginNotification.js.map +1 -1
  451. package/dist/LoginRisk.d.ts +11 -13
  452. package/dist/LoginRisk.d.ts.map +1 -1
  453. package/dist/LoginRisk.js +66 -26
  454. package/dist/LoginRisk.js.map +1 -1
  455. package/dist/LoginRiskEnrichment.d.ts +145 -0
  456. package/dist/LoginRiskEnrichment.d.ts.map +1 -0
  457. package/dist/LoginRiskEnrichment.js +220 -0
  458. package/dist/LoginRiskEnrichment.js.map +1 -0
  459. package/dist/MagicLink.d.ts +9 -8
  460. package/dist/MagicLink.d.ts.map +1 -1
  461. package/dist/MagicLink.js +40 -73
  462. package/dist/MagicLink.js.map +1 -1
  463. package/dist/Mailer.d.ts +19 -12
  464. package/dist/Mailer.d.ts.map +1 -1
  465. package/dist/Mailer.js +10 -12
  466. package/dist/Mailer.js.map +1 -1
  467. package/dist/OAuth.d.ts +93 -96
  468. package/dist/OAuth.d.ts.map +1 -1
  469. package/dist/OAuth.js +404 -217
  470. package/dist/OAuth.js.map +1 -1
  471. package/dist/Passkey.d.ts +15 -17
  472. package/dist/Passkey.d.ts.map +1 -1
  473. package/dist/Passkey.js +86 -39
  474. package/dist/Passkey.js.map +1 -1
  475. package/dist/PasskeyBrowser.d.ts +39 -0
  476. package/dist/PasskeyBrowser.d.ts.map +1 -0
  477. package/dist/PasskeyBrowser.js +206 -0
  478. package/dist/PasskeyBrowser.js.map +1 -0
  479. package/dist/PasskeySimpleWebAuthn.d.ts.map +1 -1
  480. package/dist/PasskeySimpleWebAuthn.js +19 -7
  481. package/dist/PasskeySimpleWebAuthn.js.map +1 -1
  482. package/dist/Password.d.ts +71 -37
  483. package/dist/Password.d.ts.map +1 -1
  484. package/dist/Password.js +295 -81
  485. package/dist/Password.js.map +1 -1
  486. package/dist/PasswordRisk.d.ts +63 -0
  487. package/dist/PasswordRisk.d.ts.map +1 -0
  488. package/dist/PasswordRisk.js +37 -0
  489. package/dist/PasswordRisk.js.map +1 -0
  490. package/dist/Permission.d.ts +308 -0
  491. package/dist/Permission.d.ts.map +1 -0
  492. package/dist/Permission.js +827 -0
  493. package/dist/Permission.js.map +1 -0
  494. package/dist/Policy.d.ts +31 -18
  495. package/dist/Policy.d.ts.map +1 -1
  496. package/dist/Policy.js +58 -14
  497. package/dist/Policy.js.map +1 -1
  498. package/dist/PostgresDelegatedAccessStorageMigrations.d.ts +7 -0
  499. package/dist/PostgresDelegatedAccessStorageMigrations.d.ts.map +1 -0
  500. package/dist/PostgresDelegatedAccessStorageMigrations.js +119 -0
  501. package/dist/PostgresDelegatedAccessStorageMigrations.js.map +1 -0
  502. package/dist/PostgresStorageMigrations.d.ts +15 -0
  503. package/dist/PostgresStorageMigrations.d.ts.map +1 -0
  504. package/dist/PostgresStorageMigrations.js +620 -0
  505. package/dist/PostgresStorageMigrations.js.map +1 -0
  506. package/dist/Privacy.d.ts +0 -3
  507. package/dist/Privacy.d.ts.map +1 -1
  508. package/dist/Privacy.js +2 -5
  509. package/dist/Privacy.js.map +1 -1
  510. package/dist/RateLimiter.d.ts +0 -3
  511. package/dist/RateLimiter.d.ts.map +1 -1
  512. package/dist/RateLimiter.js +1 -4
  513. package/dist/RateLimiter.js.map +1 -1
  514. package/dist/RecoveryCode.d.ts +83 -11
  515. package/dist/RecoveryCode.d.ts.map +1 -1
  516. package/dist/RecoveryCode.js +273 -75
  517. package/dist/RecoveryCode.js.map +1 -1
  518. package/dist/RecoveryPolicy.d.ts +81 -0
  519. package/dist/RecoveryPolicy.d.ts.map +1 -0
  520. package/dist/RecoveryPolicy.js +119 -0
  521. package/dist/RecoveryPolicy.js.map +1 -0
  522. package/dist/RefreshToken.d.ts +0 -9
  523. package/dist/RefreshToken.d.ts.map +1 -1
  524. package/dist/RefreshToken.js +31 -22
  525. package/dist/RefreshToken.js.map +1 -1
  526. package/dist/SecurityTimeline.d.ts +1 -4
  527. package/dist/SecurityTimeline.d.ts.map +1 -1
  528. package/dist/SecurityTimeline.js +110 -17
  529. package/dist/SecurityTimeline.js.map +1 -1
  530. package/dist/Sessions.d.ts +124 -29
  531. package/dist/Sessions.d.ts.map +1 -1
  532. package/dist/Sessions.js +626 -94
  533. package/dist/Sessions.js.map +1 -1
  534. package/dist/StepUp.d.ts +132 -11
  535. package/dist/StepUp.d.ts.map +1 -1
  536. package/dist/StepUp.js +387 -19
  537. package/dist/StepUp.js.map +1 -1
  538. package/dist/Storage.d.ts +89 -23
  539. package/dist/Storage.d.ts.map +1 -1
  540. package/dist/Storage.js +10 -12
  541. package/dist/Storage.js.map +1 -1
  542. package/dist/StorageMigrations.d.ts +6 -1
  543. package/dist/StorageMigrations.d.ts.map +1 -1
  544. package/dist/StorageMigrations.js +224 -0
  545. package/dist/StorageMigrations.js.map +1 -1
  546. package/dist/StorageSchemaGenerator.d.ts +486 -0
  547. package/dist/StorageSchemaGenerator.d.ts.map +1 -0
  548. package/dist/StorageSchemaGenerator.js +1022 -0
  549. package/dist/StorageSchemaGenerator.js.map +1 -0
  550. package/dist/StrongFactor.d.ts +64 -0
  551. package/dist/StrongFactor.d.ts.map +1 -0
  552. package/dist/StrongFactor.js +100 -0
  553. package/dist/StrongFactor.js.map +1 -0
  554. package/dist/Testing.js +2 -2
  555. package/dist/Testing.js.map +1 -1
  556. package/dist/Totp.d.ts +88 -13
  557. package/dist/Totp.d.ts.map +1 -1
  558. package/dist/Totp.js +192 -34
  559. package/dist/Totp.js.map +1 -1
  560. package/dist/TrustedDevice.d.ts +0 -9
  561. package/dist/TrustedDevice.d.ts.map +1 -1
  562. package/dist/TrustedDevice.js +15 -17
  563. package/dist/TrustedDevice.js.map +1 -1
  564. package/dist/WaitUntil.d.ts +0 -3
  565. package/dist/WaitUntil.d.ts.map +1 -1
  566. package/dist/WaitUntil.js +1 -4
  567. package/dist/WaitUntil.js.map +1 -1
  568. package/dist/Webhook.d.ts +42 -12
  569. package/dist/Webhook.d.ts.map +1 -1
  570. package/dist/Webhook.js +165 -26
  571. package/dist/Webhook.js.map +1 -1
  572. package/dist/alchemy/cloudflare/Email.d.ts.map +1 -1
  573. package/dist/alchemy/cloudflare/Email.js +9 -4
  574. package/dist/alchemy/cloudflare/Email.js.map +1 -1
  575. package/dist/cloudflare/Email.js +1 -1
  576. package/dist/cloudflare/Email.js.map +1 -1
  577. package/dist/cloudflare/RequestMetadata.d.ts +49 -0
  578. package/dist/cloudflare/RequestMetadata.d.ts.map +1 -0
  579. package/dist/cloudflare/RequestMetadata.js +71 -0
  580. package/dist/cloudflare/RequestMetadata.js.map +1 -0
  581. package/dist/index.d.ts +0 -35
  582. package/dist/index.d.ts.map +1 -1
  583. package/dist/index.js +0 -35
  584. package/dist/index.js.map +1 -1
  585. package/dist/internal/AuthFlowFinalizer.d.ts +31 -0
  586. package/dist/internal/AuthFlowFinalizer.d.ts.map +1 -0
  587. package/dist/internal/AuthFlowFinalizer.js +182 -0
  588. package/dist/internal/AuthFlowFinalizer.js.map +1 -0
  589. package/migrations/0001_auth_storage.sql +1 -0
  590. package/migrations/0006_auth_totp_factor.sql +1 -0
  591. package/migrations/0024_auth_permission.sql +39 -0
  592. package/migrations/0025_auth_permission_definition.sql +19 -0
  593. package/migrations/0026_auth_user_identity.sql +59 -0
  594. package/migrations/0027_auth_audit_log_storage_order.sql +46 -0
  595. package/migrations/0028_auth_oauth_client_secret_key.sql +39 -0
  596. package/migrations/delegated-access/0001_auth_delegated_access.sql +152 -0
  597. package/migrations/postgres/0001_auth_core.sql +77 -0
  598. package/migrations/postgres/0002_auth_security_oauth.sql +65 -0
  599. package/migrations/postgres/0003_auth_credentials_tokens.sql +43 -0
  600. package/migrations/postgres/0004_auth_security_history.sql +103 -0
  601. package/migrations/postgres/0005_auth_webhooks.sql +29 -0
  602. package/migrations/postgres/0006_auth_domain_timeline.sql +50 -0
  603. package/migrations/postgres/0007_auth_oauth_clients.sql +85 -0
  604. package/migrations/postgres/0008_auth_oauth_tokens.sql +63 -0
  605. package/migrations/postgres/0009_auth_permissions.sql +66 -0
  606. package/migrations/postgres/delegated-access/0001_auth_delegated_access.sql +112 -0
  607. package/package.json +301 -2
@@ -1,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;
21
- }>>;
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>>;
2
+ import { AuthBadRequestError, AuthConflictError, AuthIdentityAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthNotFoundError, AuthPolicyDeniedError, AuthRateLimitedError, AuthRequestRejectedError, AuthStepUpRequiredError, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, 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;
51
14
  }>>;
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,8 @@ 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 oauthTokenIntrospectionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
401
632
  readonly active: import("effect/Schema").Boolean;
402
633
  readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
403
634
  readonly client_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -411,13 +642,13 @@ export declare const oauthTokenIntrospectionEndpoint: HttpApiEndpoint.HttpApiEnd
411
642
  readonly iss: import("effect/Schema").optional<import("effect/Schema").String>;
412
643
  readonly jti: import("effect/Schema").optional<import("effect/Schema").String>;
413
644
  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<{
645
+ }>>, import("effect/Schema").toCodecJson<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, never, never>;
646
+ 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>;
647
+ export declare const oauthAccountUnlinkEndpoint: HttpApiEndpoint.HttpApiEndpoint<"unlinkAccount", "POST", "/unlink", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
417
648
  readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
418
649
  readonly providerAccountId: import("effect/Schema").String;
419
650
  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<{
651
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
421
652
  readonly type: import("effect/Schema").Literal<"allow">;
422
653
  readonly reason: import("effect/Schema").Literal<"owned-account">;
423
654
  readonly account: import("effect/Schema").Struct<{
@@ -462,8 +693,8 @@ export declare const oauthAccountUnlinkEndpoint: HttpApiEndpoint.HttpApiEndpoint
462
693
  readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
463
694
  readonly providerAccountId: import("effect/Schema").String;
464
695
  }>;
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<{
696
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
697
+ export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startLinkConfirmation", "POST", "/link-confirmation/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
467
698
  readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
468
699
  readonly identity: import("effect/Schema").optional<import("effect/Schema").Struct<{
469
700
  readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
@@ -475,7 +706,7 @@ export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApi
475
706
  readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
476
707
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
477
708
  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<{
709
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
479
710
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
480
711
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
481
712
  readonly identity: import("effect/Schema").Struct<{
@@ -486,11 +717,11 @@ export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApi
486
717
  }>;
487
718
  readonly reason: import("effect/Schema").String;
488
719
  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<{
720
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
721
+ export declare const oauthLinkConfirmationInspectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/link-confirmation/inspect", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
491
722
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
492
723
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
493
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
724
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
494
725
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
495
726
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
496
727
  readonly identity: import("effect/Schema").Struct<{
@@ -501,13 +732,13 @@ export declare const oauthLinkConfirmationInspectEndpoint: HttpApiEndpoint.HttpA
501
732
  }>;
502
733
  readonly reason: import("effect/Schema").String;
503
734
  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<{
735
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
736
+ export declare const oauthLinkConfirmationConfirmEndpoint: HttpApiEndpoint.HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/link-confirmation/confirm", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
506
737
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
507
738
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
508
739
  readonly expectedProviderId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">>;
509
740
  readonly expectedProviderAccountId: import("effect/Schema").optional<import("effect/Schema").String>;
510
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
741
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
511
742
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
512
743
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
513
744
  readonly identity: import("effect/Schema").Struct<{
@@ -523,13 +754,8 @@ export declare const oauthLinkConfirmationConfirmEndpoint: HttpApiEndpoint.HttpA
523
754
  readonly providerAccountId: import("effect/Schema").String;
524
755
  }>>;
525
756
  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<{
757
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
758
+ 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
759
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
534
760
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
535
761
  readonly publicKey: import("effect/Schema").Struct<{
@@ -561,10 +787,9 @@ export declare const passkeyRegistrationStartEndpoint: HttpApiEndpoint.HttpApiEn
561
787
  }>>;
562
788
  readonly attestation: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["none", "indirect", "direct", "enterprise"]>>;
563
789
  }>;
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<{
790
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
791
+ export declare const passkeyRegistrationFinishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"registerFinish", "POST", "/register/finish", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
566
792
  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
793
  readonly credential: import("effect/Schema").Struct<{
569
794
  readonly id: import("effect/Schema").String;
570
795
  readonly rawId: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -573,14 +798,13 @@ export declare const passkeyRegistrationFinishEndpoint: HttpApiEndpoint.HttpApiE
573
798
  readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").String>;
574
799
  readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
575
800
  }>;
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<{
801
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
578
802
  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<{
803
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
804
+ export declare const passkeyAuthenticationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authenticateStart", "POST", "/authenticate/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
581
805
  readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
582
806
  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<{
807
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
584
808
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
585
809
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
586
810
  readonly publicKey: import("effect/Schema").Struct<{
@@ -594,8 +818,8 @@ export declare const passkeyAuthenticationStartEndpoint: HttpApiEndpoint.HttpApi
594
818
  }>>>;
595
819
  readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
596
820
  }>;
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<{
821
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
822
+ export declare const passkeyAuthenticationFinishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authenticateFinish", "POST", "/authenticate/finish", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
599
823
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
600
824
  readonly credential: import("effect/Schema").Struct<{
601
825
  readonly id: import("effect/Schema").String;
@@ -607,18 +831,21 @@ export declare const passkeyAuthenticationFinishEndpoint: HttpApiEndpoint.HttpAp
607
831
  }>;
608
832
  readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
609
833
  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<{
834
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
611
835
  readonly type: import("effect/Schema").Literal<"authenticated">;
612
836
  readonly expiresAt: import("effect/Schema").Number;
613
837
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
614
838
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
615
839
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
616
840
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
617
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
841
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
618
842
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
843
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
844
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
845
+ }>>;
619
846
  }>>;
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<{
847
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
848
+ export declare const passkeyCredentialListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listCredentials", "GET", "/credentials", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
622
849
  readonly credentials: import("effect/Schema").$Array<import("effect/Schema").Struct<{
623
850
  readonly credentialId: import("effect/Schema").String;
624
851
  readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
@@ -628,15 +855,15 @@ export declare const passkeyCredentialListEndpoint: HttpApiEndpoint.HttpApiEndpo
628
855
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
629
856
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
630
857
  }>>;
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<{
858
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
859
+ export declare const passkeyCredentialRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeCredential", "POST", "/credentials/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
633
860
  readonly credentialId: import("effect/Schema").String;
634
861
  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<{
862
+ }>>, 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>;
863
+ export declare const totpEnrollmentStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startEnrollment", "POST", "/enroll/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
637
864
  readonly accountName: import("effect/Schema").String;
638
865
  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<{
866
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
640
867
  readonly factor: import("effect/Schema").Struct<{
641
868
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
642
869
  readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
@@ -650,12 +877,12 @@ export declare const totpEnrollmentStartEndpoint: HttpApiEndpoint.HttpApiEndpoin
650
877
  }>;
651
878
  readonly secret: import("effect/Schema").String;
652
879
  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<{
880
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
881
+ export declare const totpEnrollmentConfirmEndpoint: HttpApiEndpoint.HttpApiEndpoint<"confirmEnrollment", "POST", "/enroll/confirm", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
655
882
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
656
883
  readonly code: import("effect/Schema").String;
657
884
  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<{
885
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
659
886
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
660
887
  readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
661
888
  readonly digits: import("effect/Schema").Number;
@@ -665,11 +892,11 @@ export declare const totpEnrollmentConfirmEndpoint: HttpApiEndpoint.HttpApiEndpo
665
892
  readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
666
893
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
667
894
  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<{
895
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
896
+ export declare const totpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
670
897
  readonly code: import("effect/Schema").String;
671
898
  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<{
899
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
673
900
  readonly valid: import("effect/Schema").Boolean;
674
901
  readonly factor: import("effect/Schema").optional<import("effect/Schema").Struct<{
675
902
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
@@ -683,8 +910,9 @@ export declare const totpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify
683
910
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
684
911
  }>>;
685
912
  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<{
913
+ readonly acceptedCounter: import("effect/Schema").optional<import("effect/Schema").Number>;
914
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
915
+ export declare const totpFactorListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listFactors", "GET", "/factors", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
688
916
  readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
689
917
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
690
918
  readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
@@ -696,14 +924,27 @@ export declare const totpFactorListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"li
696
924
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
697
925
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
698
926
  }>>;
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<{
927
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
928
+ export declare const totpFactorRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeFactor", "POST", "/factors/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
701
929
  readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
702
930
  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<{
931
+ }>>, 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>;
932
+ export declare const recoveryCodeGenerateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"generateRecoveryCodes", "POST", "/generate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
933
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
934
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
935
+ readonly codes: import("effect/Schema").$Array<import("effect/Schema").String>;
936
+ readonly records: import("effect/Schema").$Array<import("effect/Schema").Struct<{
937
+ readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
938
+ readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
939
+ readonly usedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
940
+ readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
941
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
942
+ }>>;
943
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
944
+ export declare const recoveryCodeRegenerateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"regenerateRecoveryCodes", "POST", "/regenerate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
705
945
  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<{
946
+ readonly revokeReason: import("effect/Schema").optional<import("effect/Schema").String>;
947
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
707
948
  readonly codes: import("effect/Schema").$Array<import("effect/Schema").String>;
708
949
  readonly records: import("effect/Schema").$Array<import("effect/Schema").Struct<{
709
950
  readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
@@ -712,11 +953,11 @@ export declare const recoveryCodeGenerateEndpoint: HttpApiEndpoint.HttpApiEndpoi
712
953
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
713
954
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
714
955
  }>>;
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<{
956
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
957
+ export declare const recoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
717
958
  readonly code: import("effect/Schema").String;
718
959
  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<{
960
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
720
961
  readonly valid: import("effect/Schema").Boolean;
721
962
  readonly code: import("effect/Schema").optional<import("effect/Schema").Struct<{
722
963
  readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
@@ -725,8 +966,8 @@ export declare const recoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint
725
966
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
726
967
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
727
968
  }>>;
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<{
969
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
970
+ export declare const recoveryCodeListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listRecoveryCodes", "GET", "/codes", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
730
971
  readonly codes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
731
972
  readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
732
973
  readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
@@ -734,16 +975,16 @@ export declare const recoveryCodeListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"
734
975
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
735
976
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
736
977
  }>>;
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<{
978
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
979
+ export declare const recoveryCodeRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeRecoveryCode", "POST", "/codes/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
739
980
  readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
740
981
  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<{
982
+ }>>, 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>;
983
+ export declare const apiKeyCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"createApiKey", "POST", "/", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
743
984
  readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
744
985
  readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
745
986
  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<{
987
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
747
988
  readonly secret: import("effect/Schema").String;
748
989
  readonly key: import("effect/Schema").Struct<{
749
990
  readonly keyId: import("effect/Schema").String;
@@ -755,8 +996,8 @@ export declare const apiKeyCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"crea
755
996
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
756
997
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
757
998
  }>;
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<{
999
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1000
+ export declare const apiKeyListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listApiKeys", "GET", "/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
760
1001
  readonly keys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
761
1002
  readonly keyId: import("effect/Schema").String;
762
1003
  readonly prefix: import("effect/Schema").String;
@@ -767,15 +1008,15 @@ export declare const apiKeyListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listAp
767
1008
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
768
1009
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
769
1010
  }>>;
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<{
1011
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1012
+ export declare const apiKeyRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeApiKey", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
772
1013
  readonly keyId: import("effect/Schema").String;
773
1014
  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<{
1015
+ }>>, 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>;
1016
+ export declare const refreshTokenRefreshEndpoint: HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/refresh", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
776
1017
  readonly refreshToken: import("effect/Schema").String;
777
1018
  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<{
1019
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
779
1020
  readonly accessToken: import("effect/Schema").String;
780
1021
  readonly accessTokenExpiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
781
1022
  readonly refreshToken: import("effect/Schema").String;
@@ -791,10 +1032,10 @@ export declare const refreshTokenRefreshEndpoint: HttpApiEndpoint.HttpApiEndpoin
791
1032
  readonly reuseDetectedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
792
1033
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
793
1034
  }>;
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<{
1035
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, never, never>;
1036
+ export declare const jwtIntrospectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
796
1037
  readonly token: import("effect/Schema").String;
797
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1038
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
798
1039
  readonly active: import("effect/Schema").Literal<true>;
799
1040
  readonly header: import("effect/Schema").Struct<{
800
1041
  readonly typ: import("effect/Schema").Literal<"JWT">;
@@ -820,11 +1061,11 @@ export declare const jwtIntrospectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"int
820
1061
  readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
821
1062
  readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
822
1063
  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<{
1064
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
1065
+ export declare const jwtJwksEndpoint: HttpApiEndpoint.HttpApiEndpoint<"jwks", "GET", "/jwks.json", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
825
1066
  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<{
1067
+ }>>, import("effect/Schema").toCodecJson<typeof AuthInternalError>, never, never>;
1068
+ export declare const oidcDiscoveryMetadataEndpoint: HttpApiEndpoint.HttpApiEndpoint<"openidConfiguration", "GET", "/openid-configuration", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
828
1069
  readonly issuer: import("effect/Schema").String;
829
1070
  readonly authorization_endpoint: import("effect/Schema").String;
830
1071
  readonly token_endpoint: import("effect/Schema").String;
@@ -843,85 +1084,129 @@ export declare const oidcDiscoveryMetadataEndpoint: HttpApiEndpoint.HttpApiEndpo
843
1084
  readonly introspection_endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
844
1085
  readonly revocation_endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
845
1086
  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<{
1087
+ }>>, import("effect/Schema").toCodecJson<typeof AuthInternalError>, never, never>;
1088
+ export declare const jwtRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
848
1089
  readonly jwtId: import("effect/Schema").String;
849
1090
  readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
850
1091
  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<{
1092
+ }>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
1093
+ export declare const mfaOptionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/options", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
853
1094
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
854
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1095
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
855
1096
  readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
856
1097
  readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
857
1098
  }>>;
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<{
1099
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1100
+ export declare const totpMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotp", "POST", "/totp/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
860
1101
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
861
1102
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
862
1103
  readonly code: import("effect/Schema").String;
863
1104
  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<{
1105
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
865
1106
  readonly type: import("effect/Schema").Literal<"authenticated">;
866
1107
  readonly expiresAt: import("effect/Schema").Number;
867
1108
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
868
1109
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
869
1110
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
870
1111
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
871
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1112
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
872
1113
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1114
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1115
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1116
+ }>>;
873
1117
  }>>;
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<{
1118
+ }>, import("effect/Schema").Struct<{
1119
+ readonly type: import("effect/Schema").Literal<"requires_login_approval">;
1120
+ readonly flowId: import("effect/Schema").String;
1121
+ readonly approvalChallengeId: import("effect/Schema").String;
1122
+ readonly channel: import("effect/Schema").String;
1123
+ readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
1124
+ readonly sameDeviceRequired: import("effect/Schema").Boolean;
1125
+ readonly reason: import("effect/Schema").String;
1126
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1127
+ export declare const totpMfaVerifyForFlowEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotpForFlow", "POST", "/totp/verify-flow", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
876
1128
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
877
1129
  readonly code: import("effect/Schema").String;
878
1130
  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<{
1131
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
880
1132
  readonly type: import("effect/Schema").Literal<"authenticated">;
881
1133
  readonly expiresAt: import("effect/Schema").Number;
882
1134
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
883
1135
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
884
1136
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
885
1137
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
886
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1138
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
887
1139
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1140
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1141
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1142
+ }>>;
888
1143
  }>>;
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<{
1144
+ }>, import("effect/Schema").Struct<{
1145
+ readonly type: import("effect/Schema").Literal<"requires_login_approval">;
1146
+ readonly flowId: import("effect/Schema").String;
1147
+ readonly approvalChallengeId: import("effect/Schema").String;
1148
+ readonly channel: import("effect/Schema").String;
1149
+ readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
1150
+ readonly sameDeviceRequired: import("effect/Schema").Boolean;
1151
+ readonly reason: import("effect/Schema").String;
1152
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1153
+ export declare const recoveryCodeMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/recovery-code/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
891
1154
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
892
1155
  readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
893
1156
  readonly code: import("effect/Schema").String;
894
1157
  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<{
1158
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
896
1159
  readonly type: import("effect/Schema").Literal<"authenticated">;
897
1160
  readonly expiresAt: import("effect/Schema").Number;
898
1161
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
899
1162
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
900
1163
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
901
1164
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
902
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1165
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
903
1166
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1167
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1168
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1169
+ }>>;
904
1170
  }>>;
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<{
1171
+ }>, import("effect/Schema").Struct<{
1172
+ readonly type: import("effect/Schema").Literal<"requires_login_approval">;
1173
+ readonly flowId: import("effect/Schema").String;
1174
+ readonly approvalChallengeId: import("effect/Schema").String;
1175
+ readonly channel: import("effect/Schema").String;
1176
+ readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
1177
+ readonly sameDeviceRequired: import("effect/Schema").Boolean;
1178
+ readonly reason: import("effect/Schema").String;
1179
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1180
+ export declare const recoveryCodeMfaVerifyForFlowEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCodeForFlow", "POST", "/recovery-code/verify-flow", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
907
1181
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
908
1182
  readonly code: import("effect/Schema").String;
909
1183
  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<{
1184
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
911
1185
  readonly type: import("effect/Schema").Literal<"authenticated">;
912
1186
  readonly expiresAt: import("effect/Schema").Number;
913
1187
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
914
1188
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
915
1189
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
916
1190
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
917
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1191
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
918
1192
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1193
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1194
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1195
+ }>>;
919
1196
  }>>;
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<{
1197
+ }>, import("effect/Schema").Struct<{
1198
+ readonly type: import("effect/Schema").Literal<"requires_login_approval">;
1199
+ readonly flowId: import("effect/Schema").String;
1200
+ readonly approvalChallengeId: import("effect/Schema").String;
1201
+ readonly channel: import("effect/Schema").String;
1202
+ readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
1203
+ readonly sameDeviceRequired: import("effect/Schema").Boolean;
1204
+ readonly reason: import("effect/Schema").String;
1205
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1206
+ export declare const passkeyMfaStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startPasskey", "POST", "/passkey/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
922
1207
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
923
1208
  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<{
1209
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
925
1210
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
926
1211
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
927
1212
  readonly publicKey: import("effect/Schema").Struct<{
@@ -935,8 +1220,8 @@ export declare const passkeyMfaStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"s
935
1220
  }>>>;
936
1221
  readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
937
1222
  }>;
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<{
1223
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1224
+ export declare const passkeyMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPasskey", "POST", "/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
940
1225
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
941
1226
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
942
1227
  readonly credential: import("effect/Schema").Struct<{
@@ -949,53 +1234,87 @@ export declare const passkeyMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"
949
1234
  }>;
950
1235
  readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
951
1236
  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<{
1237
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
953
1238
  readonly type: import("effect/Schema").Literal<"authenticated">;
954
1239
  readonly expiresAt: import("effect/Schema").Number;
955
1240
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
956
1241
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
957
1242
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
958
1243
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
959
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1244
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
960
1245
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1246
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1247
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1248
+ }>>;
961
1249
  }>>;
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<{
1250
+ }>, import("effect/Schema").Struct<{
1251
+ readonly type: import("effect/Schema").Literal<"requires_login_approval">;
1252
+ readonly flowId: import("effect/Schema").String;
1253
+ readonly approvalChallengeId: import("effect/Schema").String;
1254
+ readonly channel: import("effect/Schema").String;
1255
+ readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
1256
+ readonly sameDeviceRequired: import("effect/Schema").Boolean;
1257
+ readonly reason: import("effect/Schema").String;
1258
+ }>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1259
+ export declare const stepUpOptionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"options", "GET", "/options", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
964
1260
  readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
965
- readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
1261
+ readonly type: import("effect/Schema").Literals<readonly ["password", "totp", "backup-code", "passkey"]>;
966
1262
  }>>;
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<{
1263
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1264
+ export declare const stepUpTotpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotp", "POST", "/totp/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
969
1265
  readonly code: import("effect/Schema").String;
970
1266
  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<{
1267
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
972
1268
  readonly type: import("effect/Schema").Literal<"authenticated">;
973
1269
  readonly expiresAt: import("effect/Schema").Number;
974
1270
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
975
1271
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
976
1272
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
977
1273
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
978
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1274
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1275
+ readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1276
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1277
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1278
+ }>>;
1279
+ }>>;
1280
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1281
+ export declare const stepUpPasswordVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPassword", "POST", "/password/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1282
+ readonly password: import("effect/Schema").String;
1283
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
1284
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1285
+ readonly type: import("effect/Schema").Literal<"authenticated">;
1286
+ readonly expiresAt: import("effect/Schema").Number;
1287
+ readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
1288
+ readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
1289
+ readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
1290
+ readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
1291
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
979
1292
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1293
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1294
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1295
+ }>>;
980
1296
  }>>;
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<{
1297
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1298
+ export declare const stepUpRecoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/recovery-code/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
983
1299
  readonly code: import("effect/Schema").String;
984
1300
  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<{
1301
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
986
1302
  readonly type: import("effect/Schema").Literal<"authenticated">;
987
1303
  readonly expiresAt: import("effect/Schema").Number;
988
1304
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
989
1305
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
990
1306
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
991
1307
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
992
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1308
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
993
1309
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1310
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1311
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1312
+ }>>;
994
1313
  }>>;
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<{
1314
+ }>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1315
+ export declare const stepUpPasskeyStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startPasskey", "POST", "/passkey/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
997
1316
  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<{
1317
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
999
1318
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
1000
1319
  readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
1001
1320
  readonly publicKey: import("effect/Schema").Struct<{
@@ -1009,8 +1328,8 @@ export declare const stepUpPasskeyStartEndpoint: HttpApiEndpoint.HttpApiEndpoint
1009
1328
  }>>>;
1010
1329
  readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
1011
1330
  }>;
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<{
1331
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1332
+ export declare const stepUpPasskeyVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPasskey", "POST", "/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1014
1333
  readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
1015
1334
  readonly credential: import("effect/Schema").Struct<{
1016
1335
  readonly id: import("effect/Schema").String;
@@ -1021,53 +1340,62 @@ export declare const stepUpPasskeyVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoin
1021
1340
  readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
1022
1341
  }>;
1023
1342
  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<{
1343
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1025
1344
  readonly type: import("effect/Schema").Literal<"authenticated">;
1026
1345
  readonly expiresAt: import("effect/Schema").Number;
1027
1346
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
1028
1347
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
1029
1348
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
1030
1349
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
1031
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1350
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1032
1351
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1352
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1353
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1354
+ }>>;
1033
1355
  }>>;
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<{
1356
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
1357
+ export declare const loginApprovalApproveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"approve", "POST", "/approve", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1036
1358
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
1037
1359
  readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
1038
1360
  readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
1039
1361
  readonly rememberDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1040
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1362
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1041
1363
  readonly type: import("effect/Schema").Literal<"authenticated">;
1042
1364
  readonly expiresAt: import("effect/Schema").Number;
1043
1365
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
1044
1366
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
1045
1367
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
1046
1368
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
1047
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1369
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1048
1370
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1371
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1372
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1373
+ }>>;
1049
1374
  }>>;
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<{
1375
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1376
+ export declare const loginApprovalStatusEndpoint: HttpApiEndpoint.HttpApiEndpoint<"status", "POST", "/status", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1052
1377
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
1053
1378
  readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
1054
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1379
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1055
1380
  readonly status: import("effect/Schema").Literals<readonly ["pending", "approved", "denied", "expired"]>;
1056
1381
  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<{
1382
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1383
+ export declare const loginApprovalFinalizeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"finalize", "POST", "/finalize", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1059
1384
  readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
1060
1385
  readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
1061
1386
  readonly rememberDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1062
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
1387
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1063
1388
  readonly type: import("effect/Schema").Literal<"authenticated">;
1064
1389
  readonly expiresAt: import("effect/Schema").Number;
1065
1390
  readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
1066
1391
  readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
1067
1392
  readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
1068
1393
  readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
1069
- readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1394
+ readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1070
1395
  readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1396
+ readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
1397
+ readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
1398
+ }>>;
1071
1399
  }>>;
1072
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1400
+ }>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
1073
1401
  //# sourceMappingURL=Endpoints.d.ts.map