@yielded/auth 0.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1466) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +18 -0
  3. package/dist/Atom.d.mts +5 -0
  4. package/dist/Atom.mjs +5 -0
  5. package/dist/Auth.d.mts +9 -0
  6. package/dist/Auth.mjs +7 -0
  7. package/dist/AuthContract.d.mts +4 -0
  8. package/dist/AuthContract.mjs +4 -0
  9. package/dist/AuthSession.d.mts +82 -0
  10. package/dist/AuthSession.mjs +138 -0
  11. package/dist/AuthSession.mjs.map +1 -0
  12. package/dist/AuthStore.d.mts +68 -0
  13. package/dist/AuthStore.mjs +194 -0
  14. package/dist/AuthStore.mjs.map +1 -0
  15. package/dist/AuthTokenCodec.d.mts +40 -0
  16. package/dist/AuthTokenCodec.mjs +104 -0
  17. package/dist/AuthTokenCodec.mjs.map +1 -0
  18. package/dist/Client.d.mts +2 -0
  19. package/dist/Client.mjs +2 -0
  20. package/dist/Cloudflare.d.mts +89 -0
  21. package/dist/Cloudflare.mjs +166 -0
  22. package/dist/Cloudflare.mjs.map +1 -0
  23. package/dist/Drizzle.d.mts +28 -0
  24. package/dist/Drizzle.mjs +27 -0
  25. package/dist/DrizzleD1.d.mts +935 -0
  26. package/dist/DrizzleD1.mjs +29 -0
  27. package/dist/DrizzleD1.mjs.map +1 -0
  28. package/dist/DrizzleLibsql.d.mts +2288 -0
  29. package/dist/DrizzleLibsql.mjs +85 -0
  30. package/dist/DrizzleLibsql.mjs.map +1 -0
  31. package/dist/DrizzleMysql2.d.mts +1809 -0
  32. package/dist/DrizzleMysql2.mjs +55 -0
  33. package/dist/DrizzleMysql2.mjs.map +1 -0
  34. package/dist/DrizzlePglite.d.mts +1808 -0
  35. package/dist/DrizzlePglite.mjs +45 -0
  36. package/dist/DrizzlePglite.mjs.map +1 -0
  37. package/dist/DrizzlePostgres.d.mts +1808 -0
  38. package/dist/DrizzlePostgres.mjs +45 -0
  39. package/dist/DrizzlePostgres.mjs.map +1 -0
  40. package/dist/DrizzleSqliteBun.d.mts +2287 -0
  41. package/dist/DrizzleSqliteBun.mjs +62 -0
  42. package/dist/DrizzleSqliteBun.mjs.map +1 -0
  43. package/dist/DrizzleSqliteDo.d.mts +2343 -0
  44. package/dist/DrizzleSqliteDo.mjs +105 -0
  45. package/dist/DrizzleSqliteDo.mjs.map +1 -0
  46. package/dist/DrizzleSqliteNode.d.mts +2287 -0
  47. package/dist/DrizzleSqliteNode.mjs +62 -0
  48. package/dist/DrizzleSqliteNode.mjs.map +1 -0
  49. package/dist/DrizzleSqliteWasm.d.mts +2287 -0
  50. package/dist/DrizzleSqliteWasm.mjs +62 -0
  51. package/dist/DrizzleSqliteWasm.mjs.map +1 -0
  52. package/dist/Email.d.mts +12 -0
  53. package/dist/Email.mjs +11 -0
  54. package/dist/EmailOtp.d.mts +42 -0
  55. package/dist/EmailOtp.mjs +120 -0
  56. package/dist/EmailOtp.mjs.map +1 -0
  57. package/dist/EmailOtpSender.d.mts +22 -0
  58. package/dist/EmailOtpSender.mjs +18 -0
  59. package/dist/EmailOtpSender.mjs.map +1 -0
  60. package/dist/Errors.d.mts +55 -0
  61. package/dist/Errors.mjs +31 -0
  62. package/dist/Errors.mjs.map +1 -0
  63. package/dist/GitHub.d.mts +5 -0
  64. package/dist/GitHub.mjs +4 -0
  65. package/dist/Hooks.d.mts +6 -0
  66. package/dist/Hooks.mjs +6 -0
  67. package/dist/Http.d.mts +12 -0
  68. package/dist/Http.mjs +12 -0
  69. package/dist/HttpServer.d.mts +103 -0
  70. package/dist/HttpServer.mjs +326 -0
  71. package/dist/HttpServer.mjs.map +1 -0
  72. package/dist/Identity.d.mts +9 -0
  73. package/dist/Identity.mjs +9 -0
  74. package/dist/IdentityResolver.d.mts +16 -0
  75. package/dist/IdentityResolver.mjs +12 -0
  76. package/dist/IdentityResolver.mjs.map +1 -0
  77. package/dist/OAuth.d.mts +36 -0
  78. package/dist/OAuth.mjs +35 -0
  79. package/dist/OpenIdClient.d.mts +3 -0
  80. package/dist/OpenIdClient.mjs +3 -0
  81. package/dist/OpenIdClientConnected.d.mts +4 -0
  82. package/dist/OpenIdClientConnected.mjs +3 -0
  83. package/dist/OperationHttp.d.mts +3 -0
  84. package/dist/OperationHttp.mjs +3 -0
  85. package/dist/OperationHttpClient.d.mts +2 -0
  86. package/dist/OperationHttpClient.mjs +2 -0
  87. package/dist/OperationHttpServer.d.mts +5 -0
  88. package/dist/OperationHttpServer.mjs +4 -0
  89. package/dist/Operations.d.mts +8 -0
  90. package/dist/Operations.mjs +8 -0
  91. package/dist/Passkey.d.mts +12 -0
  92. package/dist/Passkey.mjs +12 -0
  93. package/dist/PasskeyBrowser.d.mts +4 -0
  94. package/dist/PasskeyBrowser.mjs +4 -0
  95. package/dist/PasskeyContract.d.mts +641 -0
  96. package/dist/PasskeyContract.mjs +174 -0
  97. package/dist/PasskeyContract.mjs.map +1 -0
  98. package/dist/PasskeyPassword.d.mts +412 -0
  99. package/dist/PasskeyPassword.mjs +174 -0
  100. package/dist/PasskeyPassword.mjs.map +1 -0
  101. package/dist/PasskeySimpleWebAuthn.d.mts +3 -0
  102. package/dist/PasskeySimpleWebAuthn.mjs +3 -0
  103. package/dist/Password.d.mts +19 -0
  104. package/dist/Password.mjs +17 -0
  105. package/dist/PasswordAuth.d.mts +45 -0
  106. package/dist/PasswordAuth.mjs +79 -0
  107. package/dist/PasswordAuth.mjs.map +1 -0
  108. package/dist/PasswordCredentialStore.d.mts +46 -0
  109. package/dist/PasswordCredentialStore.mjs +62 -0
  110. package/dist/PasswordCredentialStore.mjs.map +1 -0
  111. package/dist/PasswordHasher.d.mts +31 -0
  112. package/dist/PasswordHasher.mjs +76 -0
  113. package/dist/PasswordHasher.mjs.map +1 -0
  114. package/dist/PhoneOtp.d.mts +11 -0
  115. package/dist/PhoneOtp.mjs +11 -0
  116. package/dist/Policy.d.mts +52 -0
  117. package/dist/Policy.mjs +36 -0
  118. package/dist/Policy.mjs.map +1 -0
  119. package/dist/Proofs.d.mts +14 -0
  120. package/dist/Proofs.mjs +13 -0
  121. package/dist/Rpc.d.mts +12 -0
  122. package/dist/Rpc.mjs +11 -0
  123. package/dist/Rpc.mjs.map +1 -0
  124. package/dist/Schema.d.mts +160 -0
  125. package/dist/Schema.mjs +141 -0
  126. package/dist/Schema.mjs.map +1 -0
  127. package/dist/SessionContract.d.mts +3 -0
  128. package/dist/SessionContract.mjs +3 -0
  129. package/dist/Sessions.d.mts +14 -0
  130. package/dist/Sessions.mjs +12 -0
  131. package/dist/Testing.d.mts +7 -0
  132. package/dist/Testing.mjs +7 -0
  133. package/dist/Totp.d.mts +8 -0
  134. package/dist/Totp.mjs +8 -0
  135. package/dist/TotpContract.d.mts +318 -0
  136. package/dist/TotpContract.mjs +119 -0
  137. package/dist/TotpContract.mjs.map +1 -0
  138. package/dist/WebCrypto.d.mts +28 -0
  139. package/dist/WebCrypto.mjs +42 -0
  140. package/dist/WebCrypto.mjs.map +1 -0
  141. package/dist/Workflows.d.mts +16 -0
  142. package/dist/Workflows.mjs +11 -0
  143. package/dist/Workflows.mjs.map +1 -0
  144. package/dist/atom/AuthAtomLifetime.d.mts +35 -0
  145. package/dist/atom/AuthAtomLifetime.mjs +50 -0
  146. package/dist/atom/AuthAtomLifetime.mjs.map +1 -0
  147. package/dist/atom/AuthAtomWorkflow.d.mts +17 -0
  148. package/dist/atom/AuthAtomWorkflow.mjs +9 -0
  149. package/dist/atom/AuthAtomWorkflow.mjs.map +1 -0
  150. package/dist/atom/client.d.mts +43 -0
  151. package/dist/atom/client.mjs +168 -0
  152. package/dist/atom/client.mjs.map +1 -0
  153. package/dist/atom/operations.d.mts +35 -0
  154. package/dist/atom/operations.mjs +58 -0
  155. package/dist/atom/operations.mjs.map +1 -0
  156. package/dist/atom/scoped-runtime.mjs +151 -0
  157. package/dist/atom/scoped-runtime.mjs.map +1 -0
  158. package/dist/auth/Auth.d.mts +7806 -0
  159. package/dist/auth/Auth.mjs +141 -0
  160. package/dist/auth/Auth.mjs.map +1 -0
  161. package/dist/auth/AuthConfigurationError.d.mts +10 -0
  162. package/dist/auth/AuthConfigurationError.mjs +14 -0
  163. package/dist/auth/AuthConfigurationError.mjs.map +1 -0
  164. package/dist/auth/AuthRequest.d.mts +21 -0
  165. package/dist/auth/AuthRequest.mjs +10 -0
  166. package/dist/auth/AuthRequest.mjs.map +1 -0
  167. package/dist/auth/AuthStrategy.d.mts +23 -0
  168. package/dist/auth/AuthStrategy.mjs +33 -0
  169. package/dist/auth/AuthStrategy.mjs.map +1 -0
  170. package/dist/auth/ConsumeDecision.d.mts +11 -0
  171. package/dist/auth/actions.d.mts +18 -0
  172. package/dist/auth/actions.mjs +70 -0
  173. package/dist/auth/actions.mjs.map +1 -0
  174. package/dist/auth/defaults.mjs +12 -0
  175. package/dist/auth/defaults.mjs.map +1 -0
  176. package/dist/auth/definition.d.mts +46 -0
  177. package/dist/auth/session.d.mts +27 -0
  178. package/dist/auth/session.mjs +56 -0
  179. package/dist/auth/session.mjs.map +1 -0
  180. package/dist/drizzle/D1BatchStatements.d.mts +11 -0
  181. package/dist/drizzle/D1BatchStatements.mjs +8 -0
  182. package/dist/drizzle/D1BatchStatements.mjs.map +1 -0
  183. package/dist/drizzle/PasswordPreparedPostconditions.mjs +12 -0
  184. package/dist/drizzle/PasswordPreparedPostconditions.mjs.map +1 -0
  185. package/dist/drizzle/SuppliedService.d.mts +10 -0
  186. package/dist/drizzle/d1-emails.d.mts +68 -0
  187. package/dist/drizzle/d1-emails.mjs +580 -0
  188. package/dist/drizzle/d1-emails.mjs.map +1 -0
  189. package/dist/drizzle/d1-generated-statement.mjs +79 -0
  190. package/dist/drizzle/d1-generated-statement.mjs.map +1 -0
  191. package/dist/drizzle/d1-identity.d.mts +33 -0
  192. package/dist/drizzle/d1-identity.mjs +120 -0
  193. package/dist/drizzle/d1-identity.mjs.map +1 -0
  194. package/dist/drizzle/d1-oauth.d.mts +316 -0
  195. package/dist/drizzle/d1-oauth.mjs +79 -0
  196. package/dist/drizzle/d1-oauth.mjs.map +1 -0
  197. package/dist/drizzle/d1-passkey.d.mts +52 -0
  198. package/dist/drizzle/d1-passkey.mjs +97 -0
  199. package/dist/drizzle/d1-passkey.mjs.map +1 -0
  200. package/dist/drizzle/d1-password-prepared.d.mts +27 -0
  201. package/dist/drizzle/d1-password-prepared.mjs +464 -0
  202. package/dist/drizzle/d1-password-prepared.mjs.map +1 -0
  203. package/dist/drizzle/d1-passwords.d.mts +96 -0
  204. package/dist/drizzle/d1-passwords.mjs +1008 -0
  205. package/dist/drizzle/d1-passwords.mjs.map +1 -0
  206. package/dist/drizzle/d1-phone.d.mts +29 -0
  207. package/dist/drizzle/d1-phone.mjs +33 -0
  208. package/dist/drizzle/d1-phone.mjs.map +1 -0
  209. package/dist/drizzle/d1-planning.d.mts +12 -0
  210. package/dist/drizzle/d1-planning.mjs +43 -0
  211. package/dist/drizzle/d1-planning.mjs.map +1 -0
  212. package/dist/drizzle/d1-proofs.d.mts +88 -0
  213. package/dist/drizzle/d1-proofs.mjs +833 -0
  214. package/dist/drizzle/d1-proofs.mjs.map +1 -0
  215. package/dist/drizzle/d1-sessions.d.mts +77 -0
  216. package/dist/drizzle/d1-sessions.mjs +970 -0
  217. package/dist/drizzle/d1-sessions.mjs.map +1 -0
  218. package/dist/drizzle/d1-totp.d.mts +27 -0
  219. package/dist/drizzle/d1-totp.mjs +28 -0
  220. package/dist/drizzle/d1-totp.mjs.map +1 -0
  221. package/dist/drizzle/email-model.d.mts +352 -0
  222. package/dist/drizzle/email-model.mjs +21 -0
  223. package/dist/drizzle/email-model.mjs.map +1 -0
  224. package/dist/drizzle/email-registration.d.mts +33 -0
  225. package/dist/drizzle/email-registration.mjs +238 -0
  226. package/dist/drizzle/email-registration.mjs.map +1 -0
  227. package/dist/drizzle/email-sql.d.mts +18 -0
  228. package/dist/drizzle/email-sql.mjs +473 -0
  229. package/dist/drizzle/email-sql.mjs.map +1 -0
  230. package/dist/drizzle/email-target.d.mts +28 -0
  231. package/dist/drizzle/email-target.mjs +75 -0
  232. package/dist/drizzle/email-target.mjs.map +1 -0
  233. package/dist/drizzle/model.d.mts +259 -0
  234. package/dist/drizzle/model.mjs +81 -0
  235. package/dist/drizzle/model.mjs.map +1 -0
  236. package/dist/drizzle/mysql-emails.d.mts +82 -0
  237. package/dist/drizzle/mysql-emails.mjs +38 -0
  238. package/dist/drizzle/mysql-emails.mjs.map +1 -0
  239. package/dist/drizzle/mysql-identity.d.mts +24 -0
  240. package/dist/drizzle/mysql-identity.mjs +95 -0
  241. package/dist/drizzle/mysql-identity.mjs.map +1 -0
  242. package/dist/drizzle/mysql-password-prepared.d.mts +32 -0
  243. package/dist/drizzle/mysql-password-prepared.mjs +16 -0
  244. package/dist/drizzle/mysql-password-prepared.mjs.map +1 -0
  245. package/dist/drizzle/mysql-passwords.d.mts +102 -0
  246. package/dist/drizzle/mysql-passwords.mjs +38 -0
  247. package/dist/drizzle/mysql-passwords.mjs.map +1 -0
  248. package/dist/drizzle/mysql-proofs.d.mts +83 -0
  249. package/dist/drizzle/mysql-proofs.mjs +23 -0
  250. package/dist/drizzle/mysql-proofs.mjs.map +1 -0
  251. package/dist/drizzle/mysql-sessions.d.mts +250 -0
  252. package/dist/drizzle/mysql-sessions.mjs +53 -0
  253. package/dist/drizzle/mysql-sessions.mjs.map +1 -0
  254. package/dist/drizzle/mysql.d.mts +73 -0
  255. package/dist/drizzle/mysql.mjs +221 -0
  256. package/dist/drizzle/mysql.mjs.map +1 -0
  257. package/dist/drizzle/oauth-accounts.mjs +361 -0
  258. package/dist/drizzle/oauth-accounts.mjs.map +1 -0
  259. package/dist/drizzle/oauth-connected-access.mjs +210 -0
  260. package/dist/drizzle/oauth-connected-access.mjs.map +1 -0
  261. package/dist/drizzle/oauth-connected-collection.mjs +202 -0
  262. package/dist/drizzle/oauth-connected-collection.mjs.map +1 -0
  263. package/dist/drizzle/oauth-connected-custody.mjs +146 -0
  264. package/dist/drizzle/oauth-connected-custody.mjs.map +1 -0
  265. package/dist/drizzle/oauth-connected-drivers.mjs +78 -0
  266. package/dist/drizzle/oauth-connected-drivers.mjs.map +1 -0
  267. package/dist/drizzle/oauth-connected-flow.mjs +248 -0
  268. package/dist/drizzle/oauth-connected-flow.mjs.map +1 -0
  269. package/dist/drizzle/oauth-connected-input.mjs +105 -0
  270. package/dist/drizzle/oauth-connected-input.mjs.map +1 -0
  271. package/dist/drizzle/oauth-connected-maintenance.mjs +215 -0
  272. package/dist/drizzle/oauth-connected-maintenance.mjs.map +1 -0
  273. package/dist/drizzle/oauth-connected-management.mjs +228 -0
  274. package/dist/drizzle/oauth-connected-management.mjs.map +1 -0
  275. package/dist/drizzle/oauth-connected-model.d.mts +278 -0
  276. package/dist/drizzle/oauth-connected-model.mjs +22 -0
  277. package/dist/drizzle/oauth-connected-model.mjs.map +1 -0
  278. package/dist/drizzle/oauth-connected-reference.d.mts +17 -0
  279. package/dist/drizzle/oauth-connected-reference.mjs +53 -0
  280. package/dist/drizzle/oauth-connected-reference.mjs.map +1 -0
  281. package/dist/drizzle/oauth-connected-settlement.mjs +117 -0
  282. package/dist/drizzle/oauth-connected-settlement.mjs.map +1 -0
  283. package/dist/drizzle/oauth-connected-state.d.mts +16 -0
  284. package/dist/drizzle/oauth-connected-state.mjs +422 -0
  285. package/dist/drizzle/oauth-connected-state.mjs.map +1 -0
  286. package/dist/drizzle/oauth-connected-target.d.mts +114 -0
  287. package/dist/drizzle/oauth-connected-target.mjs +94 -0
  288. package/dist/drizzle/oauth-connected-target.mjs.map +1 -0
  289. package/dist/drizzle/oauth-drivers.mjs +53 -0
  290. package/dist/drizzle/oauth-drivers.mjs.map +1 -0
  291. package/dist/drizzle/oauth-flow.d.mts +7 -0
  292. package/dist/drizzle/oauth-flow.mjs +255 -0
  293. package/dist/drizzle/oauth-flow.mjs.map +1 -0
  294. package/dist/drizzle/oauth-input.mjs +130 -0
  295. package/dist/drizzle/oauth-input.mjs.map +1 -0
  296. package/dist/drizzle/oauth-model.d.mts +468 -0
  297. package/dist/drizzle/oauth-model.mjs +49 -0
  298. package/dist/drizzle/oauth-model.mjs.map +1 -0
  299. package/dist/drizzle/oauth-mysql.mjs +8 -0
  300. package/dist/drizzle/oauth-mysql.mjs.map +1 -0
  301. package/dist/drizzle/oauth-owner.d.mts +4 -0
  302. package/dist/drizzle/oauth-owner.mjs +10 -0
  303. package/dist/drizzle/oauth-owner.mjs.map +1 -0
  304. package/dist/drizzle/oauth-registration.d.mts +8 -0
  305. package/dist/drizzle/oauth-registration.mjs +375 -0
  306. package/dist/drizzle/oauth-registration.mjs.map +1 -0
  307. package/dist/drizzle/oauth-state.mjs +109 -0
  308. package/dist/drizzle/oauth-state.mjs.map +1 -0
  309. package/dist/drizzle/oauth-target.d.mts +125 -0
  310. package/dist/drizzle/oauth-target.mjs +252 -0
  311. package/dist/drizzle/oauth-target.mjs.map +1 -0
  312. package/dist/drizzle/passkey-admission.mjs +203 -0
  313. package/dist/drizzle/passkey-admission.mjs.map +1 -0
  314. package/dist/drizzle/passkey-credentials.mjs +239 -0
  315. package/dist/drizzle/passkey-credentials.mjs.map +1 -0
  316. package/dist/drizzle/passkey-drivers.mjs +34 -0
  317. package/dist/drizzle/passkey-drivers.mjs.map +1 -0
  318. package/dist/drizzle/passkey-enrollment.mjs +132 -0
  319. package/dist/drizzle/passkey-enrollment.mjs.map +1 -0
  320. package/dist/drizzle/passkey-flow.mjs +436 -0
  321. package/dist/drizzle/passkey-flow.mjs.map +1 -0
  322. package/dist/drizzle/passkey-management.mjs +225 -0
  323. package/dist/drizzle/passkey-management.mjs.map +1 -0
  324. package/dist/drizzle/passkey-model.d.mts +275 -0
  325. package/dist/drizzle/passkey-model.mjs +36 -0
  326. package/dist/drizzle/passkey-model.mjs.map +1 -0
  327. package/dist/drizzle/passkey-registration-ceremony-model.d.mts +50 -0
  328. package/dist/drizzle/passkey-registration-ceremony-model.mjs +18 -0
  329. package/dist/drizzle/passkey-registration-ceremony-model.mjs.map +1 -0
  330. package/dist/drizzle/passkey-registration-ceremony.mjs +124 -0
  331. package/dist/drizzle/passkey-registration-ceremony.mjs.map +1 -0
  332. package/dist/drizzle/passkey-registration-custody.mjs +51 -0
  333. package/dist/drizzle/passkey-registration-custody.mjs.map +1 -0
  334. package/dist/drizzle/passkey-registration-write.mjs +205 -0
  335. package/dist/drizzle/passkey-registration-write.mjs.map +1 -0
  336. package/dist/drizzle/passkey-state.d.mts +5 -0
  337. package/dist/drizzle/passkey-state.mjs +207 -0
  338. package/dist/drizzle/passkey-state.mjs.map +1 -0
  339. package/dist/drizzle/passkey-target.d.mts +16 -0
  340. package/dist/drizzle/passkey-target.mjs +174 -0
  341. package/dist/drizzle/passkey-target.mjs.map +1 -0
  342. package/dist/drizzle/passkey-write-drivers.mjs +33 -0
  343. package/dist/drizzle/passkey-write-drivers.mjs.map +1 -0
  344. package/dist/drizzle/passkey-write-model.d.mts +192 -0
  345. package/dist/drizzle/passkey-write-model.mjs +13 -0
  346. package/dist/drizzle/passkey-write-model.mjs.map +1 -0
  347. package/dist/drizzle/passkey-write-state.mjs +326 -0
  348. package/dist/drizzle/passkey-write-state.mjs.map +1 -0
  349. package/dist/drizzle/passkey-write-target.d.mts +14 -0
  350. package/dist/drizzle/passkey-write-target.mjs +185 -0
  351. package/dist/drizzle/passkey-write-target.mjs.map +1 -0
  352. package/dist/drizzle/password-model.d.mts +330 -0
  353. package/dist/drizzle/password-model.mjs +22 -0
  354. package/dist/drizzle/password-model.mjs.map +1 -0
  355. package/dist/drizzle/password-prepared-model.d.mts +93 -0
  356. package/dist/drizzle/password-prepared-model.mjs +11 -0
  357. package/dist/drizzle/password-prepared-model.mjs.map +1 -0
  358. package/dist/drizzle/password-prepared-sql.mjs +394 -0
  359. package/dist/drizzle/password-prepared-sql.mjs.map +1 -0
  360. package/dist/drizzle/password-prepared-state.mjs +107 -0
  361. package/dist/drizzle/password-prepared-state.mjs.map +1 -0
  362. package/dist/drizzle/password-prepared-target.d.mts +12 -0
  363. package/dist/drizzle/password-prepared-target.mjs +57 -0
  364. package/dist/drizzle/password-prepared-target.mjs.map +1 -0
  365. package/dist/drizzle/password-registration.d.mts +23 -0
  366. package/dist/drizzle/password-registration.mjs +136 -0
  367. package/dist/drizzle/password-registration.mjs.map +1 -0
  368. package/dist/drizzle/password-sql.d.mts +20 -0
  369. package/dist/drizzle/password-sql.mjs +702 -0
  370. package/dist/drizzle/password-sql.mjs.map +1 -0
  371. package/dist/drizzle/password-target.d.mts +25 -0
  372. package/dist/drizzle/password-target.mjs +63 -0
  373. package/dist/drizzle/password-target.mjs.map +1 -0
  374. package/dist/drizzle/pg-emails.d.mts +83 -0
  375. package/dist/drizzle/pg-emails.mjs +38 -0
  376. package/dist/drizzle/pg-emails.mjs.map +1 -0
  377. package/dist/drizzle/pg-password-prepared.d.mts +33 -0
  378. package/dist/drizzle/pg-password-prepared.mjs +16 -0
  379. package/dist/drizzle/pg-password-prepared.mjs.map +1 -0
  380. package/dist/drizzle/pg-passwords.d.mts +103 -0
  381. package/dist/drizzle/pg-passwords.mjs +38 -0
  382. package/dist/drizzle/pg-passwords.mjs.map +1 -0
  383. package/dist/drizzle/pg-proofs.d.mts +84 -0
  384. package/dist/drizzle/pg-proofs.mjs +22 -0
  385. package/dist/drizzle/pg-proofs.mjs.map +1 -0
  386. package/dist/drizzle/pg-sessions.d.mts +251 -0
  387. package/dist/drizzle/pg-sessions.mjs +53 -0
  388. package/dist/drizzle/pg-sessions.mjs.map +1 -0
  389. package/dist/drizzle/pg.d.mts +88 -0
  390. package/dist/drizzle/pg.mjs +294 -0
  391. package/dist/drizzle/pg.mjs.map +1 -0
  392. package/dist/drizzle/phone-model.d.mts +117 -0
  393. package/dist/drizzle/phone-model.mjs +39 -0
  394. package/dist/drizzle/phone-model.mjs.map +1 -0
  395. package/dist/drizzle/phone-state.mjs +426 -0
  396. package/dist/drizzle/phone-state.mjs.map +1 -0
  397. package/dist/drizzle/phone-target.d.mts +19 -0
  398. package/dist/drizzle/phone-target.mjs +171 -0
  399. package/dist/drizzle/phone-target.mjs.map +1 -0
  400. package/dist/drizzle/proof-model.d.mts +287 -0
  401. package/dist/drizzle/proof-model.mjs +17 -0
  402. package/dist/drizzle/proof-model.mjs.map +1 -0
  403. package/dist/drizzle/proof-sql.d.mts +16 -0
  404. package/dist/drizzle/proof-sql.mjs +618 -0
  405. package/dist/drizzle/proof-sql.mjs.map +1 -0
  406. package/dist/drizzle/proof-target.d.mts +17 -0
  407. package/dist/drizzle/proof-target.mjs +38 -0
  408. package/dist/drizzle/proof-target.mjs.map +1 -0
  409. package/dist/drizzle/session-model.d.mts +201 -0
  410. package/dist/drizzle/session-model.mjs +19 -0
  411. package/dist/drizzle/session-model.mjs.map +1 -0
  412. package/dist/drizzle/session-sql.mjs +732 -0
  413. package/dist/drizzle/session-sql.mjs.map +1 -0
  414. package/dist/drizzle/session-target.d.mts +37 -0
  415. package/dist/drizzle/session-target.mjs +47 -0
  416. package/dist/drizzle/session-target.mjs.map +1 -0
  417. package/dist/drizzle/sqlite-emails.mjs +45 -0
  418. package/dist/drizzle/sqlite-emails.mjs.map +1 -0
  419. package/dist/drizzle/sqlite-identity.mjs +92 -0
  420. package/dist/drizzle/sqlite-identity.mjs.map +1 -0
  421. package/dist/drizzle/sqlite-password-prepared.mjs +21 -0
  422. package/dist/drizzle/sqlite-password-prepared.mjs.map +1 -0
  423. package/dist/drizzle/sqlite-passwords.mjs +49 -0
  424. package/dist/drizzle/sqlite-passwords.mjs.map +1 -0
  425. package/dist/drizzle/sqlite-proofs.mjs +29 -0
  426. package/dist/drizzle/sqlite-proofs.mjs.map +1 -0
  427. package/dist/drizzle/sqlite-sessions.mjs +74 -0
  428. package/dist/drizzle/sqlite-sessions.mjs.map +1 -0
  429. package/dist/drizzle/sqlite.d.mts +81 -0
  430. package/dist/drizzle/sqlite.mjs +220 -0
  431. package/dist/drizzle/sqlite.mjs.map +1 -0
  432. package/dist/drizzle/standalone-guard.mjs +19 -0
  433. package/dist/drizzle/standalone-guard.mjs.map +1 -0
  434. package/dist/drizzle/step-up-model.d.mts +65 -0
  435. package/dist/drizzle/step-up-model.mjs +9 -0
  436. package/dist/drizzle/step-up-model.mjs.map +1 -0
  437. package/dist/drizzle/step-up-state.mjs +34 -0
  438. package/dist/drizzle/step-up-state.mjs.map +1 -0
  439. package/dist/drizzle/totp-model.d.mts +85 -0
  440. package/dist/drizzle/totp-model.mjs +13 -0
  441. package/dist/drizzle/totp-model.mjs.map +1 -0
  442. package/dist/drizzle/totp-state.d.mts +39 -0
  443. package/dist/drizzle/totp-state.mjs +288 -0
  444. package/dist/drizzle/totp-state.mjs.map +1 -0
  445. package/dist/drizzle/totp-target.d.mts +16 -0
  446. package/dist/drizzle/totp-target.mjs +83 -0
  447. package/dist/drizzle/totp-target.mjs.map +1 -0
  448. package/dist/drizzle/transaction-execution.d.mts +20 -0
  449. package/dist/drizzle/transaction-execution.mjs +111 -0
  450. package/dist/drizzle/transaction-execution.mjs.map +1 -0
  451. package/dist/drizzle/transaction-mysql.mjs +46 -0
  452. package/dist/drizzle/transaction-mysql.mjs.map +1 -0
  453. package/dist/drizzle/transaction-owner.d.mts +6 -0
  454. package/dist/drizzle/transaction-owner.mjs +252 -0
  455. package/dist/drizzle/transaction-owner.mjs.map +1 -0
  456. package/dist/email/EmailActionEvidence.d.mts +33 -0
  457. package/dist/email/EmailActionEvidence.mjs +15 -0
  458. package/dist/email/EmailActionEvidence.mjs.map +1 -0
  459. package/dist/email/EmailAddressPersistence.d.mts +63 -0
  460. package/dist/email/EmailAddressPersistence.mjs +19 -0
  461. package/dist/email/EmailAddressPersistence.mjs.map +1 -0
  462. package/dist/email/EmailIdentifierNotifier.d.mts +30 -0
  463. package/dist/email/EmailIdentifierNotifier.mjs +31 -0
  464. package/dist/email/EmailIdentifierNotifier.mjs.map +1 -0
  465. package/dist/email/EmailReturnTargets.d.mts +19 -0
  466. package/dist/email/EmailReturnTargets.mjs +29 -0
  467. package/dist/email/EmailReturnTargets.mjs.map +1 -0
  468. package/dist/email/EmailSignInTargets.d.mts +20 -0
  469. package/dist/email/EmailSignInTargets.mjs +12 -0
  470. package/dist/email/EmailSignInTargets.mjs.map +1 -0
  471. package/dist/email/addresses.d.mts +33 -0
  472. package/dist/email/addresses.mjs +404 -0
  473. package/dist/email/addresses.mjs.map +1 -0
  474. package/dist/email/definition.d.mts +10153 -0
  475. package/dist/email/definition.mjs +111 -0
  476. package/dist/email/definition.mjs.map +1 -0
  477. package/dist/email/errors.d.mts +15 -0
  478. package/dist/email/errors.mjs +11 -0
  479. package/dist/email/errors.mjs.map +1 -0
  480. package/dist/email/magicLink.d.mts +33 -0
  481. package/dist/email/magicLink.mjs +58 -0
  482. package/dist/email/magicLink.mjs.map +1 -0
  483. package/dist/email/models.d.mts +56 -0
  484. package/dist/email/models.mjs +31 -0
  485. package/dist/email/models.mjs.map +1 -0
  486. package/dist/email/module.d.mts +22296 -0
  487. package/dist/email/module.mjs +415 -0
  488. package/dist/email/module.mjs.map +1 -0
  489. package/dist/email/registration.d.mts +28 -0
  490. package/dist/email/registration.mjs +243 -0
  491. package/dist/email/registration.mjs.map +1 -0
  492. package/dist/email/snapshot.mjs +37 -0
  493. package/dist/email/snapshot.mjs.map +1 -0
  494. package/dist/hooks/LifecycleHooks.d.mts +34 -0
  495. package/dist/hooks/LifecycleHooks.mjs +74 -0
  496. package/dist/hooks/LifecycleHooks.mjs.map +1 -0
  497. package/dist/hooks/commit.d.mts +66 -0
  498. package/dist/hooks/commit.mjs +136 -0
  499. package/dist/hooks/commit.mjs.map +1 -0
  500. package/dist/hooks/models.d.mts +51 -0
  501. package/dist/hooks/models.mjs +87 -0
  502. package/dist/hooks/models.mjs.map +1 -0
  503. package/dist/hooks/plugins.d.mts +36 -0
  504. package/dist/hooks/plugins.mjs +60 -0
  505. package/dist/hooks/plugins.mjs.map +1 -0
  506. package/dist/hooks/transactions.d.mts +31 -0
  507. package/dist/hooks/transactions.mjs +38 -0
  508. package/dist/hooks/transactions.mjs.map +1 -0
  509. package/dist/http/auth-api.d.mts +9 -0
  510. package/dist/http/auth-api.mjs +13 -0
  511. package/dist/http/auth-api.mjs.map +1 -0
  512. package/dist/http/auth-contract.d.mts +84 -0
  513. package/dist/http/auth-contract.mjs +75 -0
  514. package/dist/http/auth-contract.mjs.map +1 -0
  515. package/dist/http/auth-http.d.mts +216 -0
  516. package/dist/http/auth-http.mjs +184 -0
  517. package/dist/http/auth-http.mjs.map +1 -0
  518. package/dist/http/endpoints/get-session.d.mts +8 -0
  519. package/dist/http/endpoints/get-session.mjs +12 -0
  520. package/dist/http/endpoints/get-session.mjs.map +1 -0
  521. package/dist/http/endpoints/password-sign-in.d.mts +8 -0
  522. package/dist/http/endpoints/password-sign-in.mjs +18 -0
  523. package/dist/http/endpoints/password-sign-in.mjs.map +1 -0
  524. package/dist/http/endpoints/request-email-otp.d.mts +8 -0
  525. package/dist/http/endpoints/request-email-otp.mjs +17 -0
  526. package/dist/http/endpoints/request-email-otp.mjs.map +1 -0
  527. package/dist/http/endpoints/set-password.d.mts +9 -0
  528. package/dist/http/endpoints/set-password.mjs +19 -0
  529. package/dist/http/endpoints/set-password.mjs.map +1 -0
  530. package/dist/http/endpoints/sign-out.d.mts +6 -0
  531. package/dist/http/endpoints/sign-out.mjs +7 -0
  532. package/dist/http/endpoints/sign-out.mjs.map +1 -0
  533. package/dist/http/endpoints/verify-email-otp.d.mts +9 -0
  534. package/dist/http/endpoints/verify-email-otp.mjs +18 -0
  535. package/dist/http/endpoints/verify-email-otp.mjs.map +1 -0
  536. package/dist/http/models.d.mts +49 -0
  537. package/dist/http/models.mjs +35 -0
  538. package/dist/http/models.mjs.map +1 -0
  539. package/dist/http/security.d.mts +91 -0
  540. package/dist/http/security.mjs +77 -0
  541. package/dist/http/security.mjs.map +1 -0
  542. package/dist/http/session-contract.d.mts +303 -0
  543. package/dist/http/session-contract.mjs +38 -0
  544. package/dist/http/session-contract.mjs.map +1 -0
  545. package/dist/http-operation/OperationHttpInvocation.d.mts +16 -0
  546. package/dist/http-operation/OperationHttpInvocation.mjs +11 -0
  547. package/dist/http-operation/OperationHttpInvocation.mjs.map +1 -0
  548. package/dist/http-operation/OperationHttpServerConfig.d.mts +18 -0
  549. package/dist/http-operation/OperationHttpServerConfig.mjs +72 -0
  550. package/dist/http-operation/OperationHttpServerConfig.mjs.map +1 -0
  551. package/dist/http-operation/auth-client.d.mts +75 -0
  552. package/dist/http-operation/auth-client.mjs +116 -0
  553. package/dist/http-operation/auth-client.mjs.map +1 -0
  554. package/dist/http-operation/client.d.mts +50 -0
  555. package/dist/http-operation/client.mjs +188 -0
  556. package/dist/http-operation/client.mjs.map +1 -0
  557. package/dist/http-operation/configuration-schema.mjs +19 -0
  558. package/dist/http-operation/configuration-schema.mjs.map +1 -0
  559. package/dist/http-operation/contract.d.mts +40 -0
  560. package/dist/http-operation/contract.mjs +37 -0
  561. package/dist/http-operation/contract.mjs.map +1 -0
  562. package/dist/http-operation/errors.d.mts +13 -0
  563. package/dist/http-operation/errors.mjs +31 -0
  564. package/dist/http-operation/errors.mjs.map +1 -0
  565. package/dist/http-operation/models.d.mts +32 -0
  566. package/dist/http-operation/models.mjs +14 -0
  567. package/dist/http-operation/models.mjs.map +1 -0
  568. package/dist/http-operation/private.mjs +35 -0
  569. package/dist/http-operation/private.mjs.map +1 -0
  570. package/dist/http-operation/security.mjs +58 -0
  571. package/dist/http-operation/security.mjs.map +1 -0
  572. package/dist/http-operation/server.d.mts +33 -0
  573. package/dist/http-operation/server.mjs +268 -0
  574. package/dist/http-operation/server.mjs.map +1 -0
  575. package/dist/identity/ExternalIdentityMutation.d.mts +15 -0
  576. package/dist/identity/ExternalIdentityMutation.mjs +11 -0
  577. package/dist/identity/ExternalIdentityMutation.mjs.map +1 -0
  578. package/dist/identity/IdentityMutation.d.mts +22 -0
  579. package/dist/identity/IdentityMutation.mjs +17 -0
  580. package/dist/identity/IdentityMutation.mjs.map +1 -0
  581. package/dist/identity/IdentityRepository.d.mts +20 -0
  582. package/dist/identity/IdentityRepository.mjs +11 -0
  583. package/dist/identity/IdentityRepository.mjs.map +1 -0
  584. package/dist/identity/SubjectLifecycle.d.mts +58 -0
  585. package/dist/identity/SubjectLifecycle.mjs +43 -0
  586. package/dist/identity/SubjectLifecycle.mjs.map +1 -0
  587. package/dist/identity/SubjectProvisioner.d.mts +37 -0
  588. package/dist/identity/SubjectProvisioner.mjs +20 -0
  589. package/dist/identity/SubjectProvisioner.mjs.map +1 -0
  590. package/dist/identity/codecs.d.mts +34 -0
  591. package/dist/identity/codecs.mjs +40 -0
  592. package/dist/identity/codecs.mjs.map +1 -0
  593. package/dist/identity/models.d.mts +62 -0
  594. package/dist/identity/models.mjs +51 -0
  595. package/dist/identity/models.mjs.map +1 -0
  596. package/dist/identity/operations.d.mts +118 -0
  597. package/dist/identity/operations.mjs +124 -0
  598. package/dist/identity/operations.mjs.map +1 -0
  599. package/dist/index.d.mts +23 -0
  600. package/dist/index.mjs +23 -0
  601. package/dist/internal/AuthStoreDecisions.d.mts +22 -0
  602. package/dist/internal/AuthStoreDecisions.mjs +8 -0
  603. package/dist/internal/AuthStoreDecisions.mjs.map +1 -0
  604. package/dist/internal/CurrentSession.d.mts +9 -0
  605. package/dist/internal/CurrentSession.mjs +8 -0
  606. package/dist/internal/CurrentSession.mjs.map +1 -0
  607. package/dist/internal/diagnostics.mjs +23 -0
  608. package/dist/internal/diagnostics.mjs.map +1 -0
  609. package/dist/oauth/GithubOAuthProvider.d.mts +43 -0
  610. package/dist/oauth/GithubOAuthProvider.mjs +66 -0
  611. package/dist/oauth/GithubOAuthProvider.mjs.map +1 -0
  612. package/dist/oauth/OAuth.d.mts +73 -0
  613. package/dist/oauth/OAuth.mjs +180 -0
  614. package/dist/oauth/OAuth.mjs.map +1 -0
  615. package/dist/oauth/OAuthAccountsPersistence.d.mts +109 -0
  616. package/dist/oauth/OAuthAccountsPersistence.mjs +12 -0
  617. package/dist/oauth/OAuthAccountsPersistence.mjs.map +1 -0
  618. package/dist/oauth/OAuthActionEvidence.d.mts +28 -0
  619. package/dist/oauth/OAuthActionEvidence.mjs +15 -0
  620. package/dist/oauth/OAuthActionEvidence.mjs.map +1 -0
  621. package/dist/oauth/OAuthConnectedActionEvidence.d.mts +22 -0
  622. package/dist/oauth/OAuthConnectedActionEvidence.mjs +9 -0
  623. package/dist/oauth/OAuthConnectedActionEvidence.mjs.map +1 -0
  624. package/dist/oauth/OAuthConnectedPersistence.d.mts +129 -0
  625. package/dist/oauth/OAuthConnectedPersistence.mjs +12 -0
  626. package/dist/oauth/OAuthConnectedPersistence.mjs.map +1 -0
  627. package/dist/oauth/OAuthConnectedProtocol.d.mts +41 -0
  628. package/dist/oauth/OAuthConnectedProtocol.mjs +13 -0
  629. package/dist/oauth/OAuthConnectedProtocol.mjs.map +1 -0
  630. package/dist/oauth/OAuthConnectedRevocations.d.mts +167 -0
  631. package/dist/oauth/OAuthConnectedRevocations.mjs +21 -0
  632. package/dist/oauth/OAuthConnectedRevocations.mjs.map +1 -0
  633. package/dist/oauth/OAuthConnectedTokenProtector.d.mts +24 -0
  634. package/dist/oauth/OAuthConnectedTokenProtector.mjs +153 -0
  635. package/dist/oauth/OAuthConnectedTokenProtector.mjs.map +1 -0
  636. package/dist/oauth/OAuthConnectedTransactionProtector.d.mts +23 -0
  637. package/dist/oauth/OAuthConnectedTransactionProtector.mjs +37 -0
  638. package/dist/oauth/OAuthConnectedTransactionProtector.mjs.map +1 -0
  639. package/dist/oauth/OAuthConnectedUseAuthority.d.mts +22 -0
  640. package/dist/oauth/OAuthConnectedUseAuthority.mjs +10 -0
  641. package/dist/oauth/OAuthConnectedUseAuthority.mjs.map +1 -0
  642. package/dist/oauth/OAuthConnectionStore.d.mts +33 -0
  643. package/dist/oauth/OAuthConnectionStore.mjs +38 -0
  644. package/dist/oauth/OAuthConnectionStore.mjs.map +1 -0
  645. package/dist/oauth/OAuthLinkTransactionProtector.d.mts +25 -0
  646. package/dist/oauth/OAuthLinkTransactionProtector.mjs +39 -0
  647. package/dist/oauth/OAuthLinkTransactionProtector.mjs.map +1 -0
  648. package/dist/oauth/OAuthProtocol.d.mts +33 -0
  649. package/dist/oauth/OAuthProtocol.mjs +16 -0
  650. package/dist/oauth/OAuthProtocol.mjs.map +1 -0
  651. package/dist/oauth/OAuthProvider.d.mts +70 -0
  652. package/dist/oauth/OAuthProvider.mjs +39 -0
  653. package/dist/oauth/OAuthProvider.mjs.map +1 -0
  654. package/dist/oauth/OAuthProviders.d.mts +27 -0
  655. package/dist/oauth/OAuthProviders.mjs +33 -0
  656. package/dist/oauth/OAuthProviders.mjs.map +1 -0
  657. package/dist/oauth/OAuthRegistrationIntents.d.mts +87 -0
  658. package/dist/oauth/OAuthRegistrationIntents.mjs +19 -0
  659. package/dist/oauth/OAuthRegistrationIntents.mjs.map +1 -0
  660. package/dist/oauth/OAuthReturnTargets.d.mts +15 -0
  661. package/dist/oauth/OAuthReturnTargets.mjs +24 -0
  662. package/dist/oauth/OAuthReturnTargets.mjs.map +1 -0
  663. package/dist/oauth/OAuthSignInPersistence.d.mts +68 -0
  664. package/dist/oauth/OAuthSignInPersistence.mjs +12 -0
  665. package/dist/oauth/OAuthSignInPersistence.mjs.map +1 -0
  666. package/dist/oauth/OAuthStateDecisions.d.mts +14 -0
  667. package/dist/oauth/OAuthStateDecisions.mjs +8 -0
  668. package/dist/oauth/OAuthStateDecisions.mjs.map +1 -0
  669. package/dist/oauth/OAuthStateStore.d.mts +35 -0
  670. package/dist/oauth/OAuthStateStore.mjs +64 -0
  671. package/dist/oauth/OAuthStateStore.mjs.map +1 -0
  672. package/dist/oauth/OAuthTransactionProtector.d.mts +26 -0
  673. package/dist/oauth/OAuthTransactionProtector.mjs +78 -0
  674. package/dist/oauth/OAuthTransactionProtector.mjs.map +1 -0
  675. package/dist/oauth/accounts.d.mts +29 -0
  676. package/dist/oauth/accounts.mjs +515 -0
  677. package/dist/oauth/accounts.mjs.map +1 -0
  678. package/dist/oauth/accountsModels.d.mts +463 -0
  679. package/dist/oauth/accountsModels.mjs +155 -0
  680. package/dist/oauth/accountsModels.mjs.map +1 -0
  681. package/dist/oauth/connected.d.mts +442 -0
  682. package/dist/oauth/connected.mjs +526 -0
  683. package/dist/oauth/connected.mjs.map +1 -0
  684. package/dist/oauth/connectedAccess.d.mts +20 -0
  685. package/dist/oauth/connectedAccess.mjs +279 -0
  686. package/dist/oauth/connectedAccess.mjs.map +1 -0
  687. package/dist/oauth/connectedMaintenance.d.mts +19 -0
  688. package/dist/oauth/connectedMaintenance.mjs +133 -0
  689. package/dist/oauth/connectedMaintenance.mjs.map +1 -0
  690. package/dist/oauth/connectedModels.d.mts +2023 -0
  691. package/dist/oauth/connectedModels.mjs +375 -0
  692. package/dist/oauth/connectedModels.mjs.map +1 -0
  693. package/dist/oauth/definition.d.mts +4396 -0
  694. package/dist/oauth/definition.mjs +120 -0
  695. package/dist/oauth/definition.mjs.map +1 -0
  696. package/dist/oauth/errors.d.mts +49 -0
  697. package/dist/oauth/errors.mjs +42 -0
  698. package/dist/oauth/errors.mjs.map +1 -0
  699. package/dist/oauth/github/identity.d.mts +8 -0
  700. package/dist/oauth/github/identity.mjs +24 -0
  701. package/dist/oauth/github/identity.mjs.map +1 -0
  702. package/dist/oauth/github/models.d.mts +34 -0
  703. package/dist/oauth/github/protocol.d.mts +54 -0
  704. package/dist/oauth/github/protocol.mjs +204 -0
  705. package/dist/oauth/github/protocol.mjs.map +1 -0
  706. package/dist/oauth/openid-client/ProviderRevocation.d.mts +4 -0
  707. package/dist/oauth/openid-client/ProviderRevocation.mjs +11 -0
  708. package/dist/oauth/openid-client/ProviderRevocation.mjs.map +1 -0
  709. package/dist/oauth/openid-client/compatibility.d.mts +1 -0
  710. package/dist/oauth/openid-client/compatibility.mjs +6 -0
  711. package/dist/oauth/openid-client/compatibility.mjs.map +1 -0
  712. package/dist/oauth/openid-client/configuration.mjs +305 -0
  713. package/dist/oauth/openid-client/configuration.mjs.map +1 -0
  714. package/dist/oauth/openid-client/connected/configuration.mjs +338 -0
  715. package/dist/oauth/openid-client/connected/configuration.mjs.map +1 -0
  716. package/dist/oauth/openid-client/connected/models.d.mts +42 -0
  717. package/dist/oauth/openid-client/connected/protocol.d.mts +16 -0
  718. package/dist/oauth/openid-client/connected/protocol.mjs +402 -0
  719. package/dist/oauth/openid-client/connected/protocol.mjs.map +1 -0
  720. package/dist/oauth/openid-client/models.d.mts +67 -0
  721. package/dist/oauth/openid-client/models.mjs +16 -0
  722. package/dist/oauth/openid-client/models.mjs.map +1 -0
  723. package/dist/oauth/openid-client/protocol.d.mts +27 -0
  724. package/dist/oauth/openid-client/protocol.mjs +218 -0
  725. package/dist/oauth/openid-client/protocol.mjs.map +1 -0
  726. package/dist/oauth/openid-client/transport.mjs +59 -0
  727. package/dist/oauth/openid-client/transport.mjs.map +1 -0
  728. package/dist/oauth/policy.d.mts +18 -0
  729. package/dist/oauth/policy.mjs +16 -0
  730. package/dist/oauth/policy.mjs.map +1 -0
  731. package/dist/oauth/registration.d.mts +24 -0
  732. package/dist/oauth/registration.mjs +177 -0
  733. package/dist/oauth/registration.mjs.map +1 -0
  734. package/dist/oauth/registrationModels.d.mts +152 -0
  735. package/dist/oauth/registrationModels.mjs +93 -0
  736. package/dist/oauth/registrationModels.mjs.map +1 -0
  737. package/dist/oauth/registrationSecrets.mjs +70 -0
  738. package/dist/oauth/registrationSecrets.mjs.map +1 -0
  739. package/dist/oauth/schema.d.mts +86 -0
  740. package/dist/oauth/schema.mjs +81 -0
  741. package/dist/oauth/schema.mjs.map +1 -0
  742. package/dist/oauth/signInErrors.d.mts +17 -0
  743. package/dist/oauth/signInErrors.mjs +16 -0
  744. package/dist/oauth/signInErrors.mjs.map +1 -0
  745. package/dist/oauth/signInModels.d.mts +343 -0
  746. package/dist/oauth/signInModels.mjs +181 -0
  747. package/dist/oauth/signInModels.mjs.map +1 -0
  748. package/dist/oauth/signInModule.d.mts +1546 -0
  749. package/dist/oauth/signInModule.mjs +430 -0
  750. package/dist/oauth/signInModule.mjs.map +1 -0
  751. package/dist/oauth/signInSnapshot.mjs +29 -0
  752. package/dist/oauth/signInSnapshot.mjs.map +1 -0
  753. package/dist/oauth/transactionEncryption.d.mts +14 -0
  754. package/dist/oauth/transactionEncryption.mjs +129 -0
  755. package/dist/oauth/transactionEncryption.mjs.map +1 -0
  756. package/dist/operations/RequestBindingConfig.d.mts +11 -0
  757. package/dist/operations/RequestBindingConfig.mjs +10 -0
  758. package/dist/operations/RequestBindingConfig.mjs.map +1 -0
  759. package/dist/operations/actions.d.mts +947 -0
  760. package/dist/operations/actions.mjs +148 -0
  761. package/dist/operations/actions.mjs.map +1 -0
  762. package/dist/operations/context.d.mts +63 -0
  763. package/dist/operations/context.mjs +55 -0
  764. package/dist/operations/context.mjs.map +1 -0
  765. package/dist/operations/credentials.d.mts +39 -0
  766. package/dist/operations/credentials.mjs +60 -0
  767. package/dist/operations/credentials.mjs.map +1 -0
  768. package/dist/operations/errors.d.mts +24 -0
  769. package/dist/operations/errors.mjs +31 -0
  770. package/dist/operations/errors.mjs.map +1 -0
  771. package/dist/operations/operation.d.mts +124 -0
  772. package/dist/operations/operation.mjs +220 -0
  773. package/dist/operations/operation.mjs.map +1 -0
  774. package/dist/operations/requestBinding.d.mts +46 -0
  775. package/dist/operations/requestBinding.mjs +130 -0
  776. package/dist/operations/requestBinding.mjs.map +1 -0
  777. package/dist/operations/requestBindingModels.d.mts +13 -0
  778. package/dist/operations/requestBindingModels.mjs +12 -0
  779. package/dist/operations/requestBindingModels.mjs.map +1 -0
  780. package/dist/operations/reveals.d.mts +28 -0
  781. package/dist/operations/reveals.mjs +88 -0
  782. package/dist/operations/reveals.mjs.map +1 -0
  783. package/dist/passkey/PasskeyActionEvidence.d.mts +22 -0
  784. package/dist/passkey/PasskeyActionEvidence.mjs +9 -0
  785. package/dist/passkey/PasskeyActionEvidence.mjs.map +1 -0
  786. package/dist/passkey/PasskeyCredentials.d.mts +16 -0
  787. package/dist/passkey/PasskeyCredentials.mjs +9 -0
  788. package/dist/passkey/PasskeyCredentials.mjs.map +1 -0
  789. package/dist/passkey/PasskeyEnrollmentContext.d.mts +22 -0
  790. package/dist/passkey/PasskeyEnrollmentContext.mjs +9 -0
  791. package/dist/passkey/PasskeyEnrollmentContext.mjs.map +1 -0
  792. package/dist/passkey/PasskeyManagementPersistence.d.mts +106 -0
  793. package/dist/passkey/PasskeyManagementPersistence.mjs +9 -0
  794. package/dist/passkey/PasskeyManagementPersistence.mjs.map +1 -0
  795. package/dist/passkey/PasskeyPersistence.d.mts +63 -0
  796. package/dist/passkey/PasskeyPersistence.mjs +10 -0
  797. package/dist/passkey/PasskeyPersistence.mjs.map +1 -0
  798. package/dist/passkey/PasskeyProtocol.d.mts +38 -0
  799. package/dist/passkey/PasskeyProtocol.mjs +11 -0
  800. package/dist/passkey/PasskeyProtocol.mjs.map +1 -0
  801. package/dist/passkey/actions.d.mts +50 -0
  802. package/dist/passkey/actions.mjs +376 -0
  803. package/dist/passkey/actions.mjs.map +1 -0
  804. package/dist/passkey/browser/PasskeyBrowser.d.mts +18 -0
  805. package/dist/passkey/browser/PasskeyBrowser.mjs +9 -0
  806. package/dist/passkey/browser/PasskeyBrowser.mjs.map +1 -0
  807. package/dist/passkey/browser/models.d.mts +38 -0
  808. package/dist/passkey/browser/models.mjs +41 -0
  809. package/dist/passkey/browser/models.mjs.map +1 -0
  810. package/dist/passkey/browser/simplewebauthn.d.mts +17 -0
  811. package/dist/passkey/browser/simplewebauthn.mjs +411 -0
  812. package/dist/passkey/browser/simplewebauthn.mjs.map +1 -0
  813. package/dist/passkey/definition.d.mts +5626 -0
  814. package/dist/passkey/definition.mjs +114 -0
  815. package/dist/passkey/definition.mjs.map +1 -0
  816. package/dist/passkey/errors.d.mts +20 -0
  817. package/dist/passkey/errors.mjs +20 -0
  818. package/dist/passkey/errors.mjs.map +1 -0
  819. package/dist/passkey/management.mjs +276 -0
  820. package/dist/passkey/management.mjs.map +1 -0
  821. package/dist/passkey/models.d.mts +1245 -0
  822. package/dist/passkey/models.mjs +301 -0
  823. package/dist/passkey/models.mjs.map +1 -0
  824. package/dist/passkey/module.d.mts +2132 -0
  825. package/dist/passkey/module.mjs +174 -0
  826. package/dist/passkey/module.mjs.map +1 -0
  827. package/dist/passkey/pending.mjs +99 -0
  828. package/dist/passkey/pending.mjs.map +1 -0
  829. package/dist/passkey/policy.d.mts +48 -0
  830. package/dist/passkey/policy.mjs +77 -0
  831. package/dist/passkey/policy.mjs.map +1 -0
  832. package/dist/passkey/registration.mjs +107 -0
  833. package/dist/passkey/registration.mjs.map +1 -0
  834. package/dist/passkey/simplewebauthn/configuration.mjs +45 -0
  835. package/dist/passkey/simplewebauthn/configuration.mjs.map +1 -0
  836. package/dist/passkey/simplewebauthn/models.d.mts +21 -0
  837. package/dist/passkey/simplewebauthn/models.mjs +8 -0
  838. package/dist/passkey/simplewebauthn/models.mjs.map +1 -0
  839. package/dist/passkey/simplewebauthn/protocol.d.mts +62 -0
  840. package/dist/passkey/simplewebauthn/protocol.mjs +402 -0
  841. package/dist/passkey/simplewebauthn/protocol.mjs.map +1 -0
  842. package/dist/passkey/snapshot.mjs +31 -0
  843. package/dist/passkey/snapshot.mjs.map +1 -0
  844. package/dist/passkey/stepUp.mjs +101 -0
  845. package/dist/passkey/stepUp.mjs.map +1 -0
  846. package/dist/password/CompromisedPasswords.d.mts +26 -0
  847. package/dist/password/CompromisedPasswords.mjs +23 -0
  848. package/dist/password/CompromisedPasswords.mjs.map +1 -0
  849. package/dist/password/NewPasswordCheck.d.mts +21 -0
  850. package/dist/password/NewPasswordCheck.mjs +39 -0
  851. package/dist/password/NewPasswordCheck.mjs.map +1 -0
  852. package/dist/password/PasswordHashing.d.mts +24 -0
  853. package/dist/password/PasswordHashing.mjs +96 -0
  854. package/dist/password/PasswordHashing.mjs.map +1 -0
  855. package/dist/password/PasswordKdfAdmission.d.mts +19 -0
  856. package/dist/password/PasswordKdfAdmission.mjs +25 -0
  857. package/dist/password/PasswordKdfAdmission.mjs.map +1 -0
  858. package/dist/password/configuration.d.mts +43 -0
  859. package/dist/password/configuration.mjs +64 -0
  860. package/dist/password/configuration.mjs.map +1 -0
  861. package/dist/password/defaults.mjs +13 -0
  862. package/dist/password/defaults.mjs.map +1 -0
  863. package/dist/password/encoding.mjs +64 -0
  864. package/dist/password/encoding.mjs.map +1 -0
  865. package/dist/password/errors.d.mts +28 -0
  866. package/dist/password/errors.mjs +25 -0
  867. package/dist/password/errors.mjs.map +1 -0
  868. package/dist/password/methods/PasswordActionEvidence.d.mts +38 -0
  869. package/dist/password/methods/PasswordActionEvidence.mjs +22 -0
  870. package/dist/password/methods/PasswordActionEvidence.mjs.map +1 -0
  871. package/dist/password/methods/PasswordPersistence.d.mts +102 -0
  872. package/dist/password/methods/PasswordPersistence.mjs +13 -0
  873. package/dist/password/methods/PasswordPersistence.mjs.map +1 -0
  874. package/dist/password/methods/PasswordPreparedPersistence.d.mts +111 -0
  875. package/dist/password/methods/contracts.d.mts +43 -0
  876. package/dist/password/methods/contracts.mjs +33 -0
  877. package/dist/password/methods/contracts.mjs.map +1 -0
  878. package/dist/password/methods/definition.d.mts +3813 -0
  879. package/dist/password/methods/definition.mjs +56 -0
  880. package/dist/password/methods/definition.mjs.map +1 -0
  881. package/dist/password/methods/errors.d.mts +15 -0
  882. package/dist/password/methods/errors.mjs +11 -0
  883. package/dist/password/methods/errors.mjs.map +1 -0
  884. package/dist/password/methods/models.d.mts +70 -0
  885. package/dist/password/methods/models.mjs +44 -0
  886. package/dist/password/methods/models.mjs.map +1 -0
  887. package/dist/password/methods/module.d.mts +3567 -0
  888. package/dist/password/methods/module.mjs +553 -0
  889. package/dist/password/methods/module.mjs.map +1 -0
  890. package/dist/password/methods/policy.d.mts +84 -0
  891. package/dist/password/methods/policy.mjs +80 -0
  892. package/dist/password/methods/policy.mjs.map +1 -0
  893. package/dist/password/methods/preparation.mjs +54 -0
  894. package/dist/password/methods/preparation.mjs.map +1 -0
  895. package/dist/password/methods/prepared.d.mts +53 -0
  896. package/dist/password/methods/prepared.mjs +610 -0
  897. package/dist/password/methods/prepared.mjs.map +1 -0
  898. package/dist/password/methods/preparedModels.d.mts +1295 -0
  899. package/dist/password/methods/preparedModels.mjs +278 -0
  900. package/dist/password/methods/preparedModels.mjs.map +1 -0
  901. package/dist/password/methods/signIn.d.mts +180 -0
  902. package/dist/password/methods/signIn.mjs +73 -0
  903. package/dist/password/methods/signIn.mjs.map +1 -0
  904. package/dist/password/methods/snapshot.mjs +38 -0
  905. package/dist/password/methods/snapshot.mjs.map +1 -0
  906. package/dist/password/methods/verification.mjs +138 -0
  907. package/dist/password/methods/verification.mjs.map +1 -0
  908. package/dist/password/models.d.mts +13 -0
  909. package/dist/password/models.mjs +12 -0
  910. package/dist/password/models.mjs.map +1 -0
  911. package/dist/password/policy.d.mts +33 -0
  912. package/dist/password/policy.mjs +37 -0
  913. package/dist/password/policy.mjs.map +1 -0
  914. package/dist/phone/PhoneActionEvidence.d.mts +23 -0
  915. package/dist/phone/PhoneActionEvidence.mjs +10 -0
  916. package/dist/phone/PhoneActionEvidence.mjs.map +1 -0
  917. package/dist/phone/PhoneAdmission.d.mts +29 -0
  918. package/dist/phone/PhoneAdmission.mjs +10 -0
  919. package/dist/phone/PhoneAdmission.mjs.map +1 -0
  920. package/dist/phone/PhoneDeliveryEligibility.d.mts +11 -0
  921. package/dist/phone/PhoneDeliveryEligibility.mjs +8 -0
  922. package/dist/phone/PhoneDeliveryEligibility.mjs.map +1 -0
  923. package/dist/phone/PhonePersistence.d.mts +33 -0
  924. package/dist/phone/PhonePersistence.mjs +10 -0
  925. package/dist/phone/PhonePersistence.mjs.map +1 -0
  926. package/dist/phone/PhoneRequestContext.d.mts +10 -0
  927. package/dist/phone/PhoneRequestContext.mjs +8 -0
  928. package/dist/phone/PhoneRequestContext.mjs.map +1 -0
  929. package/dist/phone/PhoneSignInTargets.d.mts +19 -0
  930. package/dist/phone/PhoneSignInTargets.mjs +13 -0
  931. package/dist/phone/PhoneSignInTargets.mjs.map +1 -0
  932. package/dist/phone/definition.d.mts +7190 -0
  933. package/dist/phone/definition.mjs +28 -0
  934. package/dist/phone/definition.mjs.map +1 -0
  935. package/dist/phone/failure.mjs +23 -0
  936. package/dist/phone/failure.mjs.map +1 -0
  937. package/dist/phone/lifecycle.mjs +427 -0
  938. package/dist/phone/lifecycle.mjs.map +1 -0
  939. package/dist/phone/lifecycleModels.d.mts +164 -0
  940. package/dist/phone/lifecycleModels.mjs +91 -0
  941. package/dist/phone/lifecycleModels.mjs.map +1 -0
  942. package/dist/phone/models.d.mts +41 -0
  943. package/dist/phone/models.mjs +29 -0
  944. package/dist/phone/models.mjs.map +1 -0
  945. package/dist/phone/module.d.mts +6027 -0
  946. package/dist/phone/module.mjs +293 -0
  947. package/dist/phone/module.mjs.map +1 -0
  948. package/dist/proofs/EmailProofDelivery.d.mts +13 -0
  949. package/dist/proofs/EmailProofDelivery.mjs +11 -0
  950. package/dist/proofs/EmailProofDelivery.mjs.map +1 -0
  951. package/dist/proofs/HostIngressLimiter.d.mts +20 -0
  952. package/dist/proofs/HostIngressLimiter.mjs +13 -0
  953. package/dist/proofs/HostIngressLimiter.mjs.map +1 -0
  954. package/dist/proofs/ProofPersistence.d.mts +140 -0
  955. package/dist/proofs/ProofPersistence.mjs +13 -0
  956. package/dist/proofs/ProofPersistence.mjs.map +1 -0
  957. package/dist/proofs/SmsProofDelivery.d.mts +13 -0
  958. package/dist/proofs/SmsProofDelivery.mjs +11 -0
  959. package/dist/proofs/SmsProofDelivery.mjs.map +1 -0
  960. package/dist/proofs/abuse.d.mts +15 -0
  961. package/dist/proofs/abuse.mjs +12 -0
  962. package/dist/proofs/abuse.mjs.map +1 -0
  963. package/dist/proofs/completion.d.mts +22 -0
  964. package/dist/proofs/crypto.d.mts +196 -0
  965. package/dist/proofs/crypto.mjs +189 -0
  966. package/dist/proofs/crypto.mjs.map +1 -0
  967. package/dist/proofs/definition.d.mts +335 -0
  968. package/dist/proofs/definition.mjs +10 -0
  969. package/dist/proofs/definition.mjs.map +1 -0
  970. package/dist/proofs/delivery.d.mts +30 -0
  971. package/dist/proofs/delivery.mjs +26 -0
  972. package/dist/proofs/delivery.mjs.map +1 -0
  973. package/dist/proofs/dispatch.d.mts +20 -0
  974. package/dist/proofs/dispatch.mjs +54 -0
  975. package/dist/proofs/dispatch.mjs.map +1 -0
  976. package/dist/proofs/errors.d.mts +21 -0
  977. package/dist/proofs/errors.mjs +25 -0
  978. package/dist/proofs/errors.mjs.map +1 -0
  979. package/dist/proofs/models.d.mts +141 -0
  980. package/dist/proofs/models.mjs +93 -0
  981. package/dist/proofs/models.mjs.map +1 -0
  982. package/dist/proofs/module.d.mts +344 -0
  983. package/dist/proofs/module.mjs +350 -0
  984. package/dist/proofs/module.mjs.map +1 -0
  985. package/dist/proofs/policy.d.mts +152 -0
  986. package/dist/proofs/policy.mjs +51 -0
  987. package/dist/proofs/policy.mjs.map +1 -0
  988. package/dist/sessions/AuthenticationAuthority.d.mts +31 -0
  989. package/dist/sessions/AuthenticationAuthority.mjs +8 -0
  990. package/dist/sessions/AuthenticationAuthority.mjs.map +1 -0
  991. package/dist/sessions/PendingAuthentication.d.mts +108 -0
  992. package/dist/sessions/PendingAuthentication.mjs +40 -0
  993. package/dist/sessions/PendingAuthentication.mjs.map +1 -0
  994. package/dist/sessions/SessionStepUpPersistence.d.mts +152 -0
  995. package/dist/sessions/SessionStepUpPersistence.mjs +63 -0
  996. package/dist/sessions/SessionStepUpPersistence.mjs.map +1 -0
  997. package/dist/sessions/assurance.d.mts +163 -0
  998. package/dist/sessions/assurance.mjs +95 -0
  999. package/dist/sessions/assurance.mjs.map +1 -0
  1000. package/dist/sessions/commit.d.mts +13 -0
  1001. package/dist/sessions/configuration.d.mts +46 -0
  1002. package/dist/sessions/configuration.mjs +55 -0
  1003. package/dist/sessions/configuration.mjs.map +1 -0
  1004. package/dist/sessions/contract.d.mts +663 -0
  1005. package/dist/sessions/contract.mjs +174 -0
  1006. package/dist/sessions/contract.mjs.map +1 -0
  1007. package/dist/sessions/crypto.d.mts +24 -0
  1008. package/dist/sessions/crypto.mjs +106 -0
  1009. package/dist/sessions/crypto.mjs.map +1 -0
  1010. package/dist/sessions/definition.d.mts +11 -0
  1011. package/dist/sessions/definition.mjs +10 -0
  1012. package/dist/sessions/definition.mjs.map +1 -0
  1013. package/dist/sessions/errors.d.mts +35 -0
  1014. package/dist/sessions/errors.mjs +34 -0
  1015. package/dist/sessions/errors.mjs.map +1 -0
  1016. package/dist/sessions/invalidation.d.mts +23 -0
  1017. package/dist/sessions/invalidation.mjs +33 -0
  1018. package/dist/sessions/invalidation.mjs.map +1 -0
  1019. package/dist/sessions/models.d.mts +143 -0
  1020. package/dist/sessions/models.mjs +94 -0
  1021. package/dist/sessions/models.mjs.map +1 -0
  1022. package/dist/sessions/module.d.mts +1091 -0
  1023. package/dist/sessions/module.mjs +943 -0
  1024. package/dist/sessions/module.mjs.map +1 -0
  1025. package/dist/sessions/persistence.d.mts +93 -0
  1026. package/dist/sessions/policy.d.mts +80 -0
  1027. package/dist/sessions/policy.mjs +66 -0
  1028. package/dist/sessions/policy.mjs.map +1 -0
  1029. package/dist/testing/conformance/AuthStore.d.mts +11 -0
  1030. package/dist/testing/conformance/AuthStore.mjs +173 -0
  1031. package/dist/testing/conformance/AuthStore.mjs.map +1 -0
  1032. package/dist/testing/conformance/OAuthConnectionStore.d.mts +11 -0
  1033. package/dist/testing/conformance/OAuthConnectionStore.mjs +102 -0
  1034. package/dist/testing/conformance/OAuthConnectionStore.mjs.map +1 -0
  1035. package/dist/testing/conformance/OAuthStateStore.d.mts +11 -0
  1036. package/dist/testing/conformance/OAuthStateStore.mjs +45 -0
  1037. package/dist/testing/conformance/OAuthStateStore.mjs.map +1 -0
  1038. package/dist/testing/conformance/PasswordCredentialStore.d.mts +20 -0
  1039. package/dist/testing/conformance/PasswordCredentialStore.mjs +103 -0
  1040. package/dist/testing/conformance/PasswordCredentialStore.mjs.map +1 -0
  1041. package/dist/testing/conformance/support.mjs +17 -0
  1042. package/dist/testing/conformance/support.mjs.map +1 -0
  1043. package/dist/testing/crypto.d.mts +11 -0
  1044. package/dist/testing/crypto.mjs +41 -0
  1045. package/dist/testing/crypto.mjs.map +1 -0
  1046. package/dist/testing/keyring.d.mts +9 -0
  1047. package/dist/testing/keyring.mjs +17 -0
  1048. package/dist/testing/keyring.mjs.map +1 -0
  1049. package/dist/totp/TotpActionEvidence.d.mts +18 -0
  1050. package/dist/totp/TotpActionEvidence.mjs +8 -0
  1051. package/dist/totp/TotpActionEvidence.mjs.map +1 -0
  1052. package/dist/totp/TotpPersistence.d.mts +19 -0
  1053. package/dist/totp/TotpPersistence.mjs +8 -0
  1054. package/dist/totp/TotpPersistence.mjs.map +1 -0
  1055. package/dist/totp/TotpSecretKeys.d.mts +15 -0
  1056. package/dist/totp/TotpSecretKeys.mjs +8 -0
  1057. package/dist/totp/TotpSecretKeys.mjs.map +1 -0
  1058. package/dist/totp/crypto.mjs +96 -0
  1059. package/dist/totp/crypto.mjs.map +1 -0
  1060. package/dist/totp/definition.d.mts +764 -0
  1061. package/dist/totp/definition.mjs +24 -0
  1062. package/dist/totp/definition.mjs.map +1 -0
  1063. package/dist/totp/errors.d.mts +16 -0
  1064. package/dist/totp/errors.mjs +18 -0
  1065. package/dist/totp/errors.mjs.map +1 -0
  1066. package/dist/totp/models.d.mts +377 -0
  1067. package/dist/totp/models.mjs +137 -0
  1068. package/dist/totp/models.mjs.map +1 -0
  1069. package/dist/totp/module.d.mts +737 -0
  1070. package/dist/totp/module.mjs +355 -0
  1071. package/dist/totp/module.mjs.map +1 -0
  1072. package/package.json +1 -0
  1073. package/src/Atom.ts +4 -0
  1074. package/src/Auth.ts +16 -0
  1075. package/src/AuthContract.ts +17 -0
  1076. package/src/AuthSession.ts +298 -0
  1077. package/src/AuthStore.ts +367 -0
  1078. package/src/AuthTokenCodec.ts +226 -0
  1079. package/src/Client.ts +9 -0
  1080. package/src/Cloudflare.ts +345 -0
  1081. package/src/Drizzle.ts +378 -0
  1082. package/src/DrizzleD1.ts +136 -0
  1083. package/src/DrizzleLibsql.ts +288 -0
  1084. package/src/DrizzleMysql2.ts +184 -0
  1085. package/src/DrizzlePglite.ts +160 -0
  1086. package/src/DrizzlePostgres.ts +160 -0
  1087. package/src/DrizzleSqliteBun.ts +244 -0
  1088. package/src/DrizzleSqliteDo.ts +473 -0
  1089. package/src/DrizzleSqliteNode.ts +245 -0
  1090. package/src/DrizzleSqliteWasm.ts +245 -0
  1091. package/src/Email.ts +55 -0
  1092. package/src/EmailOtp.ts +250 -0
  1093. package/src/EmailOtpSender.ts +28 -0
  1094. package/src/Errors.ts +103 -0
  1095. package/src/GitHub.ts +16 -0
  1096. package/src/Hooks.ts +50 -0
  1097. package/src/Http.ts +47 -0
  1098. package/src/HttpServer.ts +742 -0
  1099. package/src/Identity.ts +53 -0
  1100. package/src/IdentityResolver.ts +18 -0
  1101. package/src/OAuth.ts +242 -0
  1102. package/src/OpenIdClient.ts +13 -0
  1103. package/src/OpenIdClientConnected.ts +18 -0
  1104. package/src/OperationHttp.ts +14 -0
  1105. package/src/OperationHttpClient.ts +6 -0
  1106. package/src/OperationHttpServer.ts +15 -0
  1107. package/src/Operations.ts +69 -0
  1108. package/src/Passkey.ts +81 -0
  1109. package/src/PasskeyBrowser.ts +19 -0
  1110. package/src/PasskeyContract.ts +212 -0
  1111. package/src/PasskeyPassword.ts +319 -0
  1112. package/src/PasskeySimpleWebAuthn.ts +6 -0
  1113. package/src/Password.ts +113 -0
  1114. package/src/PasswordAuth.ts +197 -0
  1115. package/src/PasswordCredentialStore.ts +140 -0
  1116. package/src/PasswordHasher.ts +147 -0
  1117. package/src/PhoneOtp.ts +32 -0
  1118. package/src/Policy.ts +95 -0
  1119. package/src/Proofs.ts +71 -0
  1120. package/src/Rpc.ts +15 -0
  1121. package/src/Schema.ts +235 -0
  1122. package/src/SessionContract.ts +2 -0
  1123. package/src/Sessions.ts +105 -0
  1124. package/src/Testing.ts +24 -0
  1125. package/src/Totp.ts +28 -0
  1126. package/src/TotpContract.ts +147 -0
  1127. package/src/WebCrypto.ts +61 -0
  1128. package/src/Workflows.ts +12 -0
  1129. package/src/atom/AuthAtomLifetime.ts +87 -0
  1130. package/src/atom/AuthAtomWorkflow.ts +27 -0
  1131. package/src/atom/client.ts +364 -0
  1132. package/src/atom/operations.ts +183 -0
  1133. package/src/atom/scoped-runtime.ts +249 -0
  1134. package/src/auth/Auth.ts +482 -0
  1135. package/src/auth/AuthConfigurationError.ts +9 -0
  1136. package/src/auth/AuthRequest.ts +21 -0
  1137. package/src/auth/AuthStrategy.ts +116 -0
  1138. package/src/auth/ConsumeDecision.ts +4 -0
  1139. package/src/auth/actions.ts +220 -0
  1140. package/src/auth/defaults.ts +23 -0
  1141. package/src/auth/definition.ts +88 -0
  1142. package/src/auth/session.ts +146 -0
  1143. package/src/drizzle/D1BatchStatements.ts +10 -0
  1144. package/src/drizzle/PasswordPreparedPostconditions.ts +30 -0
  1145. package/src/drizzle/SuppliedService.ts +10 -0
  1146. package/src/drizzle/d1-emails.ts +1808 -0
  1147. package/src/drizzle/d1-generated-statement.ts +129 -0
  1148. package/src/drizzle/d1-identity.ts +374 -0
  1149. package/src/drizzle/d1-oauth.ts +338 -0
  1150. package/src/drizzle/d1-passkey.ts +371 -0
  1151. package/src/drizzle/d1-password-prepared.ts +1273 -0
  1152. package/src/drizzle/d1-passwords.ts +2661 -0
  1153. package/src/drizzle/d1-phone.ts +94 -0
  1154. package/src/drizzle/d1-planning.ts +105 -0
  1155. package/src/drizzle/d1-proofs.ts +2305 -0
  1156. package/src/drizzle/d1-sessions.ts +2867 -0
  1157. package/src/drizzle/d1-totp.ts +79 -0
  1158. package/src/drizzle/email-model.ts +512 -0
  1159. package/src/drizzle/email-registration.ts +696 -0
  1160. package/src/drizzle/email-sql.ts +1468 -0
  1161. package/src/drizzle/email-target.ts +243 -0
  1162. package/src/drizzle/model.ts +492 -0
  1163. package/src/drizzle/mysql-emails.ts +323 -0
  1164. package/src/drizzle/mysql-identity.ts +323 -0
  1165. package/src/drizzle/mysql-password-prepared.ts +206 -0
  1166. package/src/drizzle/mysql-passwords.ts +341 -0
  1167. package/src/drizzle/mysql-proofs.ts +183 -0
  1168. package/src/drizzle/mysql-sessions.ts +742 -0
  1169. package/src/drizzle/mysql.ts +686 -0
  1170. package/src/drizzle/oauth-accounts.ts +801 -0
  1171. package/src/drizzle/oauth-connected-access.ts +354 -0
  1172. package/src/drizzle/oauth-connected-collection.ts +324 -0
  1173. package/src/drizzle/oauth-connected-custody.ts +277 -0
  1174. package/src/drizzle/oauth-connected-drivers.ts +463 -0
  1175. package/src/drizzle/oauth-connected-flow.ts +439 -0
  1176. package/src/drizzle/oauth-connected-input.ts +128 -0
  1177. package/src/drizzle/oauth-connected-maintenance.ts +345 -0
  1178. package/src/drizzle/oauth-connected-management.ts +365 -0
  1179. package/src/drizzle/oauth-connected-model.ts +347 -0
  1180. package/src/drizzle/oauth-connected-reference.ts +112 -0
  1181. package/src/drizzle/oauth-connected-settlement.ts +226 -0
  1182. package/src/drizzle/oauth-connected-state.ts +846 -0
  1183. package/src/drizzle/oauth-connected-target.ts +264 -0
  1184. package/src/drizzle/oauth-drivers.ts +567 -0
  1185. package/src/drizzle/oauth-flow.ts +461 -0
  1186. package/src/drizzle/oauth-input.ts +205 -0
  1187. package/src/drizzle/oauth-model.ts +610 -0
  1188. package/src/drizzle/oauth-mysql.ts +10 -0
  1189. package/src/drizzle/oauth-owner.ts +29 -0
  1190. package/src/drizzle/oauth-registration.ts +638 -0
  1191. package/src/drizzle/oauth-state.ts +213 -0
  1192. package/src/drizzle/oauth-target.ts +751 -0
  1193. package/src/drizzle/passkey-admission.ts +333 -0
  1194. package/src/drizzle/passkey-credentials.ts +465 -0
  1195. package/src/drizzle/passkey-drivers.ts +385 -0
  1196. package/src/drizzle/passkey-enrollment.ts +280 -0
  1197. package/src/drizzle/passkey-flow.ts +983 -0
  1198. package/src/drizzle/passkey-management.ts +369 -0
  1199. package/src/drizzle/passkey-model.ts +350 -0
  1200. package/src/drizzle/passkey-registration-ceremony-model.ts +69 -0
  1201. package/src/drizzle/passkey-registration-ceremony.ts +254 -0
  1202. package/src/drizzle/passkey-registration-custody.ts +82 -0
  1203. package/src/drizzle/passkey-registration-write.ts +378 -0
  1204. package/src/drizzle/passkey-state.ts +307 -0
  1205. package/src/drizzle/passkey-target.ts +528 -0
  1206. package/src/drizzle/passkey-write-drivers.ts +396 -0
  1207. package/src/drizzle/passkey-write-model.ts +265 -0
  1208. package/src/drizzle/passkey-write-state.ts +627 -0
  1209. package/src/drizzle/passkey-write-target.ts +406 -0
  1210. package/src/drizzle/password-model.ts +491 -0
  1211. package/src/drizzle/password-prepared-model.ts +259 -0
  1212. package/src/drizzle/password-prepared-sql.ts +1198 -0
  1213. package/src/drizzle/password-prepared-state.ts +232 -0
  1214. package/src/drizzle/password-prepared-target.ts +158 -0
  1215. package/src/drizzle/password-registration.ts +372 -0
  1216. package/src/drizzle/password-sql.ts +2082 -0
  1217. package/src/drizzle/password-target.ts +223 -0
  1218. package/src/drizzle/pg-emails.ts +323 -0
  1219. package/src/drizzle/pg-password-prepared.ts +207 -0
  1220. package/src/drizzle/pg-passwords.ts +340 -0
  1221. package/src/drizzle/pg-proofs.ts +193 -0
  1222. package/src/drizzle/pg-sessions.ts +751 -0
  1223. package/src/drizzle/pg.ts +982 -0
  1224. package/src/drizzle/phone-model.ts +185 -0
  1225. package/src/drizzle/phone-state.ts +802 -0
  1226. package/src/drizzle/phone-target.ts +471 -0
  1227. package/src/drizzle/proof-model.ts +398 -0
  1228. package/src/drizzle/proof-sql.ts +1912 -0
  1229. package/src/drizzle/proof-target.ts +120 -0
  1230. package/src/drizzle/session-model.ts +368 -0
  1231. package/src/drizzle/session-sql.ts +2152 -0
  1232. package/src/drizzle/session-target.ts +335 -0
  1233. package/src/drizzle/sqlite-emails.ts +368 -0
  1234. package/src/drizzle/sqlite-identity.ts +343 -0
  1235. package/src/drizzle/sqlite-password-prepared.ts +262 -0
  1236. package/src/drizzle/sqlite-passwords.ts +499 -0
  1237. package/src/drizzle/sqlite-proofs.ts +204 -0
  1238. package/src/drizzle/sqlite-sessions.ts +972 -0
  1239. package/src/drizzle/sqlite.ts +704 -0
  1240. package/src/drizzle/standalone-guard.ts +38 -0
  1241. package/src/drizzle/step-up-model.ts +129 -0
  1242. package/src/drizzle/step-up-state.ts +141 -0
  1243. package/src/drizzle/totp-model.ts +91 -0
  1244. package/src/drizzle/totp-state.ts +520 -0
  1245. package/src/drizzle/totp-target.ts +304 -0
  1246. package/src/drizzle/transaction-execution.ts +290 -0
  1247. package/src/drizzle/transaction-mysql.ts +104 -0
  1248. package/src/drizzle/transaction-owner.ts +570 -0
  1249. package/src/email/EmailActionEvidence.ts +37 -0
  1250. package/src/email/EmailAddressPersistence.ts +71 -0
  1251. package/src/email/EmailIdentifierNotifier.ts +48 -0
  1252. package/src/email/EmailReturnTargets.ts +50 -0
  1253. package/src/email/EmailSignInTargets.ts +20 -0
  1254. package/src/email/addresses.ts +630 -0
  1255. package/src/email/definition.ts +309 -0
  1256. package/src/email/errors.ts +23 -0
  1257. package/src/email/magicLink.ts +84 -0
  1258. package/src/email/models.ts +50 -0
  1259. package/src/email/module.ts +664 -0
  1260. package/src/email/registration.ts +415 -0
  1261. package/src/email/snapshot.ts +51 -0
  1262. package/src/hooks/LifecycleHooks.ts +136 -0
  1263. package/src/hooks/commit.ts +271 -0
  1264. package/src/hooks/models.ts +111 -0
  1265. package/src/hooks/plugins.ts +87 -0
  1266. package/src/hooks/transactions.ts +51 -0
  1267. package/src/http/auth-api.ts +17 -0
  1268. package/src/http/auth-contract.ts +148 -0
  1269. package/src/http/auth-http.ts +467 -0
  1270. package/src/http/endpoints/get-session.ts +9 -0
  1271. package/src/http/endpoints/password-sign-in.ts +19 -0
  1272. package/src/http/endpoints/request-email-otp.ts +10 -0
  1273. package/src/http/endpoints/set-password.ts +18 -0
  1274. package/src/http/endpoints/sign-out.ts +5 -0
  1275. package/src/http/endpoints/verify-email-otp.ts +15 -0
  1276. package/src/http/models.ts +80 -0
  1277. package/src/http/security.ts +102 -0
  1278. package/src/http/session-contract.ts +92 -0
  1279. package/src/http-operation/OperationHttpInvocation.ts +39 -0
  1280. package/src/http-operation/OperationHttpServerConfig.ts +124 -0
  1281. package/src/http-operation/auth-client.ts +273 -0
  1282. package/src/http-operation/client.ts +453 -0
  1283. package/src/http-operation/configuration-schema.ts +19 -0
  1284. package/src/http-operation/contract.ts +116 -0
  1285. package/src/http-operation/errors.ts +38 -0
  1286. package/src/http-operation/models.ts +42 -0
  1287. package/src/http-operation/private.ts +50 -0
  1288. package/src/http-operation/security.ts +93 -0
  1289. package/src/http-operation/server.ts +544 -0
  1290. package/src/identity/ExternalIdentityMutation.ts +18 -0
  1291. package/src/identity/IdentityMutation.ts +41 -0
  1292. package/src/identity/IdentityRepository.ts +37 -0
  1293. package/src/identity/SubjectLifecycle.ts +80 -0
  1294. package/src/identity/SubjectProvisioner.ts +40 -0
  1295. package/src/identity/codecs.ts +54 -0
  1296. package/src/identity/models.ts +82 -0
  1297. package/src/identity/operations.ts +182 -0
  1298. package/src/index.ts +23 -0
  1299. package/src/internal/AuthStoreDecisions.ts +23 -0
  1300. package/src/internal/CurrentSession.ts +8 -0
  1301. package/src/internal/diagnostics.ts +71 -0
  1302. package/src/oauth/GithubOAuthProvider.ts +106 -0
  1303. package/src/oauth/OAuth.ts +436 -0
  1304. package/src/oauth/OAuthAccountsPersistence.ts +142 -0
  1305. package/src/oauth/OAuthActionEvidence.ts +31 -0
  1306. package/src/oauth/OAuthConnectedActionEvidence.ts +28 -0
  1307. package/src/oauth/OAuthConnectedPersistence.ts +163 -0
  1308. package/src/oauth/OAuthConnectedProtocol.ts +54 -0
  1309. package/src/oauth/OAuthConnectedRevocations.ts +48 -0
  1310. package/src/oauth/OAuthConnectedTokenProtector.ts +240 -0
  1311. package/src/oauth/OAuthConnectedTransactionProtector.ts +56 -0
  1312. package/src/oauth/OAuthConnectedUseAuthority.ts +26 -0
  1313. package/src/oauth/OAuthConnectionStore.ts +59 -0
  1314. package/src/oauth/OAuthLinkTransactionProtector.ts +58 -0
  1315. package/src/oauth/OAuthProtocol.ts +39 -0
  1316. package/src/oauth/OAuthProvider.ts +126 -0
  1317. package/src/oauth/OAuthProviders.ts +53 -0
  1318. package/src/oauth/OAuthRegistrationIntents.ts +42 -0
  1319. package/src/oauth/OAuthReturnTargets.ts +44 -0
  1320. package/src/oauth/OAuthSignInPersistence.ts +91 -0
  1321. package/src/oauth/OAuthStateDecisions.ts +16 -0
  1322. package/src/oauth/OAuthStateStore.ts +102 -0
  1323. package/src/oauth/OAuthTransactionProtector.ts +103 -0
  1324. package/src/oauth/accounts.ts +987 -0
  1325. package/src/oauth/accountsModels.ts +214 -0
  1326. package/src/oauth/connected.ts +995 -0
  1327. package/src/oauth/connectedAccess.ts +644 -0
  1328. package/src/oauth/connectedMaintenance.ts +248 -0
  1329. package/src/oauth/connectedModels.ts +495 -0
  1330. package/src/oauth/definition.ts +414 -0
  1331. package/src/oauth/errors.ts +78 -0
  1332. package/src/oauth/github/identity.ts +26 -0
  1333. package/src/oauth/github/models.ts +37 -0
  1334. package/src/oauth/github/protocol.ts +329 -0
  1335. package/src/oauth/openid-client/ProviderRevocation.ts +22 -0
  1336. package/src/oauth/openid-client/compatibility.ts +47 -0
  1337. package/src/oauth/openid-client/configuration.ts +472 -0
  1338. package/src/oauth/openid-client/connected/configuration.ts +565 -0
  1339. package/src/oauth/openid-client/connected/models.ts +58 -0
  1340. package/src/oauth/openid-client/connected/protocol.ts +866 -0
  1341. package/src/oauth/openid-client/models.ts +78 -0
  1342. package/src/oauth/openid-client/protocol.ts +437 -0
  1343. package/src/oauth/openid-client/transport.ts +67 -0
  1344. package/src/oauth/policy.ts +26 -0
  1345. package/src/oauth/registration.ts +410 -0
  1346. package/src/oauth/registrationModels.ts +115 -0
  1347. package/src/oauth/registrationSecrets.ts +127 -0
  1348. package/src/oauth/schema.ts +102 -0
  1349. package/src/oauth/signInErrors.ts +23 -0
  1350. package/src/oauth/signInModels.ts +266 -0
  1351. package/src/oauth/signInModule.ts +875 -0
  1352. package/src/oauth/signInSnapshot.ts +37 -0
  1353. package/src/oauth/transactionEncryption.ts +198 -0
  1354. package/src/operations/RequestBindingConfig.ts +12 -0
  1355. package/src/operations/actions.ts +342 -0
  1356. package/src/operations/context.ts +130 -0
  1357. package/src/operations/credentials.ts +121 -0
  1358. package/src/operations/errors.ts +53 -0
  1359. package/src/operations/operation.ts +740 -0
  1360. package/src/operations/requestBinding.ts +237 -0
  1361. package/src/operations/requestBindingModels.ts +18 -0
  1362. package/src/operations/reveals.ts +147 -0
  1363. package/src/passkey/PasskeyActionEvidence.ts +25 -0
  1364. package/src/passkey/PasskeyCredentials.ts +16 -0
  1365. package/src/passkey/PasskeyEnrollmentContext.ts +26 -0
  1366. package/src/passkey/PasskeyManagementPersistence.ts +124 -0
  1367. package/src/passkey/PasskeyPersistence.ts +85 -0
  1368. package/src/passkey/PasskeyProtocol.ts +48 -0
  1369. package/src/passkey/actions.ts +905 -0
  1370. package/src/passkey/browser/PasskeyBrowser.ts +26 -0
  1371. package/src/passkey/browser/models.ts +67 -0
  1372. package/src/passkey/browser/simplewebauthn.ts +621 -0
  1373. package/src/passkey/definition.ts +386 -0
  1374. package/src/passkey/errors.ts +39 -0
  1375. package/src/passkey/management.ts +552 -0
  1376. package/src/passkey/models.ts +414 -0
  1377. package/src/passkey/module.ts +367 -0
  1378. package/src/passkey/pending.ts +203 -0
  1379. package/src/passkey/policy.ts +88 -0
  1380. package/src/passkey/registration.ts +251 -0
  1381. package/src/passkey/simplewebauthn/configuration.ts +97 -0
  1382. package/src/passkey/simplewebauthn/models.ts +9 -0
  1383. package/src/passkey/simplewebauthn/protocol.ts +729 -0
  1384. package/src/passkey/snapshot.ts +48 -0
  1385. package/src/passkey/stepUp.ts +212 -0
  1386. package/src/password/CompromisedPasswords.ts +36 -0
  1387. package/src/password/NewPasswordCheck.ts +89 -0
  1388. package/src/password/PasswordHashing.ts +209 -0
  1389. package/src/password/PasswordKdfAdmission.ts +44 -0
  1390. package/src/password/configuration.ts +52 -0
  1391. package/src/password/defaults.ts +15 -0
  1392. package/src/password/encoding.ts +137 -0
  1393. package/src/password/errors.ts +43 -0
  1394. package/src/password/methods/PasswordActionEvidence.ts +41 -0
  1395. package/src/password/methods/PasswordPersistence.ts +128 -0
  1396. package/src/password/methods/PasswordPreparedPersistence.ts +123 -0
  1397. package/src/password/methods/contracts.ts +47 -0
  1398. package/src/password/methods/definition.ts +199 -0
  1399. package/src/password/methods/errors.ts +26 -0
  1400. package/src/password/methods/models.ts +80 -0
  1401. package/src/password/methods/module.ts +986 -0
  1402. package/src/password/methods/policy.ts +68 -0
  1403. package/src/password/methods/preparation.ts +73 -0
  1404. package/src/password/methods/prepared.ts +1199 -0
  1405. package/src/password/methods/preparedModels.ts +496 -0
  1406. package/src/password/methods/signIn.ts +136 -0
  1407. package/src/password/methods/snapshot.ts +53 -0
  1408. package/src/password/methods/verification.ts +266 -0
  1409. package/src/password/models.ts +15 -0
  1410. package/src/password/policy.ts +41 -0
  1411. package/src/phone/PhoneActionEvidence.ts +26 -0
  1412. package/src/phone/PhoneAdmission.ts +29 -0
  1413. package/src/phone/PhoneDeliveryEligibility.ts +9 -0
  1414. package/src/phone/PhonePersistence.ts +43 -0
  1415. package/src/phone/PhoneRequestContext.ts +7 -0
  1416. package/src/phone/PhoneSignInTargets.ts +19 -0
  1417. package/src/phone/definition.ts +87 -0
  1418. package/src/phone/failure.ts +40 -0
  1419. package/src/phone/lifecycle.ts +662 -0
  1420. package/src/phone/lifecycleModels.ts +108 -0
  1421. package/src/phone/models.ts +41 -0
  1422. package/src/phone/module.ts +433 -0
  1423. package/src/proofs/EmailProofDelivery.ts +19 -0
  1424. package/src/proofs/HostIngressLimiter.ts +20 -0
  1425. package/src/proofs/ProofPersistence.ts +172 -0
  1426. package/src/proofs/SmsProofDelivery.ts +19 -0
  1427. package/src/proofs/abuse.ts +23 -0
  1428. package/src/proofs/completion.ts +23 -0
  1429. package/src/proofs/crypto.ts +326 -0
  1430. package/src/proofs/definition.ts +39 -0
  1431. package/src/proofs/delivery.ts +73 -0
  1432. package/src/proofs/dispatch.ts +99 -0
  1433. package/src/proofs/errors.ts +46 -0
  1434. package/src/proofs/models.ts +131 -0
  1435. package/src/proofs/module.ts +620 -0
  1436. package/src/proofs/policy.ts +77 -0
  1437. package/src/sessions/AuthenticationAuthority.ts +51 -0
  1438. package/src/sessions/PendingAuthentication.ts +121 -0
  1439. package/src/sessions/SessionStepUpPersistence.ts +164 -0
  1440. package/src/sessions/assurance.ts +192 -0
  1441. package/src/sessions/commit.ts +13 -0
  1442. package/src/sessions/configuration.ts +133 -0
  1443. package/src/sessions/contract.ts +203 -0
  1444. package/src/sessions/crypto.ts +181 -0
  1445. package/src/sessions/definition.ts +25 -0
  1446. package/src/sessions/errors.ts +68 -0
  1447. package/src/sessions/invalidation.ts +46 -0
  1448. package/src/sessions/models.ts +138 -0
  1449. package/src/sessions/module.ts +1991 -0
  1450. package/src/sessions/persistence.ts +135 -0
  1451. package/src/sessions/policy.ts +103 -0
  1452. package/src/testing/conformance/AuthStore.ts +314 -0
  1453. package/src/testing/conformance/OAuthConnectionStore.ts +167 -0
  1454. package/src/testing/conformance/OAuthStateStore.ts +105 -0
  1455. package/src/testing/conformance/PasswordCredentialStore.ts +205 -0
  1456. package/src/testing/conformance/support.ts +38 -0
  1457. package/src/testing/crypto.ts +55 -0
  1458. package/src/testing/keyring.ts +17 -0
  1459. package/src/totp/TotpActionEvidence.ts +18 -0
  1460. package/src/totp/TotpPersistence.ts +26 -0
  1461. package/src/totp/TotpSecretKeys.ts +15 -0
  1462. package/src/totp/crypto.ts +160 -0
  1463. package/src/totp/definition.ts +78 -0
  1464. package/src/totp/errors.ts +25 -0
  1465. package/src/totp/models.ts +164 -0
  1466. package/src/totp/module.ts +717 -0
@@ -0,0 +1,3813 @@
1
+ import { AssuranceRequired, AuthenticationRequired, InvalidOperationInput, OperationForbidden, OperationPrivateOutputUnsupported } from "../../operations/errors.mjs";
2
+ import { AuthInvocation, AuthenticationAssurance } from "../../operations/context.mjs";
3
+ import { AuthCredentialCommandCollector, AuthOperationResult, AuthRevealCommandCollectorService } from "../../operations/credentials.mjs";
4
+ import { AuthOperation, CredentialCollectorProvenance, OperationHandler, RevealCollectorProvenance } from "../../operations/operation.mjs";
5
+ import { LoginIdentifier } from "../../identity/models.mjs";
6
+ import { HookDenied } from "../../hooks/models.mjs";
7
+ import { LifecycleHooks } from "../../hooks/LifecycleHooks.mjs";
8
+ import { PreparedCommit } from "../../hooks/commit.mjs";
9
+ import { AuthenticationAuthority } from "../../sessions/AuthenticationAuthority.mjs";
10
+ import { SubtleCrypto } from "../../WebCrypto.mjs";
11
+ import "../../Operations.mjs";
12
+ import "../../Hooks.mjs";
13
+ import { SessionApiError } from "../../auth/session.mjs";
14
+ import { AuthRequest } from "../../auth/AuthRequest.mjs";
15
+ import { AuthConfigurationError } from "../../auth/AuthConfigurationError.mjs";
16
+ import { BindingOf, ClaimsCodec, StrategyBinding, StrategyDefinition, StrategyTypeLambda } from "../../auth/definition.mjs";
17
+ import "../../Auth.mjs";
18
+ import { ModuleService } from "../../sessions/module.mjs";
19
+ import "../../Sessions.mjs";
20
+ import { NewPasswordRejected, PasswordCheckUnavailable, PasswordConfigurationError } from "../errors.mjs";
21
+ import { PasswordActionRequired, PasswordMethodConfigurationError, PasswordMethodUnsupported, PasswordRejected, PasswordUnavailable } from "./errors.mjs";
22
+ import { ProofCleanupResult, ProofCompletionDecision, ProofContinuation, ProofId, ProofRequestReceipt } from "../../proofs/models.mjs";
23
+ import { PasswordCredentialSnapshot, PasswordReplacement } from "./models.mjs";
24
+ import { ProofCapabilityUnsupported, ProofConfigurationError, ProofIngressDenied, ProofInvalid, ProofRequestConflict, ProofUnavailable } from "../../proofs/errors.mjs";
25
+ import { EmailProofDelivery } from "../../proofs/EmailProofDelivery.mjs";
26
+ import { ProofPolicy } from "../../proofs/policy.mjs";
27
+ import { ProofPersistence } from "../../proofs/ProofPersistence.mjs";
28
+ import { PreparedProofDispatch, ProofIssuePlan } from "../../proofs/dispatch.mjs";
29
+ import { ProofCompletionPlan } from "../../proofs/completion.mjs";
30
+ import "../../Identity.mjs";
31
+ import { ProofKeyring, ProofSecretPolicy } from "../../proofs/crypto.mjs";
32
+ import { SmsProofDelivery } from "../../proofs/SmsProofDelivery.mjs";
33
+ import { ProofModule } from "../../proofs/module.mjs";
34
+ import "../../Proofs.mjs";
35
+ import { CompromisedPasswords } from "../CompromisedPasswords.mjs";
36
+ import { NewPasswordCheck } from "../NewPasswordCheck.mjs";
37
+ import { PasswordHashing } from "../PasswordHashing.mjs";
38
+ import { PasswordActionEvidence } from "./PasswordActionEvidence.mjs";
39
+ import { PasswordMethodPolicy } from "./policy.mjs";
40
+ import { PasswordPersistence, PreparePasswordCommit } from "./PasswordPersistence.mjs";
41
+ import { PasswordPreparedConfiguration, PasswordPreparedContext } from "./preparedModels.mjs";
42
+ import { PasswordPreparedPersistence } from "./PasswordPreparedPersistence.mjs";
43
+ import { PasswordPreparedAuthorization, PasswordPreparedCompletionPlan, ServiceId } from "./prepared.mjs";
44
+ import { MethodService, PasswordRegistrationDecision } from "./module.mjs";
45
+ //#region src/password/methods/definition.d.ts
46
+ interface PasswordOptions<Namespace extends string | undefined = undefined> {
47
+ readonly namespace?: Namespace;
48
+ readonly policy?: PasswordMethodPolicy;
49
+ }
50
+ interface PasswordManagementOptions<Registration extends ClaimsCodec, Namespace extends string | undefined = undefined> extends PasswordOptions<Namespace> {
51
+ readonly registration: Registration;
52
+ readonly policy: PasswordMethodPolicy;
53
+ readonly reset: {
54
+ readonly template: string;
55
+ readonly secret: ProofSecretPolicy;
56
+ readonly policy: ProofPolicy;
57
+ readonly keys?: ProofKeyring;
58
+ };
59
+ }
60
+ declare const captureSignIn: <const Namespace extends string | undefined = undefined>(_namespace: Namespace, input: PasswordOptions<Namespace>) => {
61
+ options: Readonly<{
62
+ namespace?: Namespace | undefined;
63
+ policy: {
64
+ readonly attempts: {
65
+ readonly identifier: {
66
+ readonly limit: number;
67
+ readonly windowMillis: number;
68
+ };
69
+ readonly subject: {
70
+ readonly limit: number;
71
+ readonly windowMillis: number;
72
+ };
73
+ readonly action: {
74
+ readonly limit: number;
75
+ readonly windowMillis: number;
76
+ };
77
+ readonly maximumPending: number;
78
+ readonly attemptLifetimeMillis: number;
79
+ };
80
+ readonly maximumEvidenceAgeMillis: number;
81
+ readonly requireImmediateInvalidation: boolean;
82
+ } | undefined;
83
+ }>;
84
+ };
85
+ declare const bindSignIn: <const Namespace extends string | undefined, Claims extends ClaimsCodec, const Id extends string, const SessionId extends string>(binding: StrategyBinding<Claims, Id, SessionId>, captured: ReturnType<typeof captureSignIn<Namespace>>) => Readonly<{
86
+ ClaimsForPassword: import("effect/Context").Service<{
87
+ readonly moduleId: Id;
88
+ readonly kind: "claims";
89
+ readonly claims: import("effect/Types").Invariant<Claims["Type"]>;
90
+ }, {
91
+ readonly resolve: (credential: PasswordCredentialSnapshot) => import("effect/Effect").Effect<Claims["Type"], PasswordUnavailable, never>;
92
+ }>;
93
+ layer: import("effect/Layer").Layer<OperationHandler<`${Id}/sign-in`, {
94
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
95
+ readonly password: import("effect/Redacted").Redacted<string>;
96
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
97
+ }, {
98
+ readonly _tag: "Authenticated";
99
+ readonly session: {
100
+ readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
101
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
102
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
103
+ readonly assurance: AuthenticationAssurance;
104
+ readonly issuedAt: import("effect/DateTime").Utc;
105
+ readonly expiresAt: import("effect/DateTime").Utc;
106
+ readonly absoluteExpiresAt: import("effect/DateTime").Utc;
107
+ readonly claims: Claims["Type"];
108
+ };
109
+ } | {
110
+ readonly _tag: "PendingAuthentication";
111
+ readonly expiresAt: import("effect/DateTime").Utc;
112
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>, PasswordConfigurationError | PasswordMethodConfigurationError, AuthenticationAuthority | ModuleService<SessionId, "completion", Claims["Type"]> | PasswordPersistence | {
113
+ readonly moduleId: Id;
114
+ readonly kind: "claims";
115
+ readonly claims: import("effect/Types").Invariant<Claims["Type"]>;
116
+ }>;
117
+ handlersLayer: import("effect/Layer").Layer<OperationHandler<`${Id}/sign-in`, {
118
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
119
+ readonly password: import("effect/Redacted").Redacted<string>;
120
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
121
+ }, {
122
+ readonly _tag: "Authenticated";
123
+ readonly session: {
124
+ readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
125
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
126
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
127
+ readonly assurance: AuthenticationAssurance;
128
+ readonly issuedAt: import("effect/DateTime").Utc;
129
+ readonly expiresAt: import("effect/DateTime").Utc;
130
+ readonly absoluteExpiresAt: import("effect/DateTime").Utc;
131
+ readonly claims: Claims["Type"];
132
+ };
133
+ } | {
134
+ readonly _tag: "PendingAuthentication";
135
+ readonly expiresAt: import("effect/DateTime").Utc;
136
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>, PasswordMethodConfigurationError, AuthenticationAuthority | import("effect/Crypto").Crypto | ModuleService<SessionId, "completion", Claims["Type"]> | PasswordHashing | PasswordPersistence | {
137
+ readonly moduleId: Id;
138
+ readonly kind: "claims";
139
+ readonly claims: import("effect/Types").Invariant<Claims["Type"]>;
140
+ }>;
141
+ operations: {
142
+ SignIn: AuthOperation<`${Id}/sign-in`, import("effect/Schema").Struct<{
143
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
144
+ readonly password: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
145
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
146
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Authenticated", {
147
+ readonly session: import("effect/Schema").Struct<{
148
+ readonly sessionId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SessionId">;
149
+ readonly subjectId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SubjectId">;
150
+ readonly securityRevision: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SecurityRevision">;
151
+ readonly assurance: typeof AuthenticationAssurance;
152
+ readonly issuedAt: import("effect/Schema").DateTimeUtcFromMillis;
153
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
154
+ readonly absoluteExpiresAt: import("effect/Schema").DateTimeUtcFromMillis;
155
+ readonly claims: import("effect/Schema").Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
156
+ }>;
157
+ }>, import("effect/Schema").TaggedStruct<"PendingAuthentication", {
158
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
159
+ }>]>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordMethodUnsupported, typeof HookDenied]>, never, {
160
+ readonly payload: import("effect/Schema").Struct<{
161
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
162
+ readonly password: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
163
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
164
+ }>;
165
+ readonly success: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Authenticated", {
166
+ readonly session: import("effect/Schema").Struct<{
167
+ readonly sessionId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SessionId">;
168
+ readonly subjectId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SubjectId">;
169
+ readonly securityRevision: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SecurityRevision">;
170
+ readonly assurance: typeof AuthenticationAssurance;
171
+ readonly issuedAt: import("effect/Schema").DateTimeUtcFromMillis;
172
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
173
+ readonly absoluteExpiresAt: import("effect/Schema").DateTimeUtcFromMillis;
174
+ readonly claims: import("effect/Schema").Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
175
+ }>;
176
+ }>, import("effect/Schema").TaggedStruct<"PendingAuthentication", {
177
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
178
+ }>]>;
179
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordMethodUnsupported, typeof HookDenied]>;
180
+ readonly access: "any";
181
+ readonly exposure: "public";
182
+ readonly replay: "non-idempotent";
183
+ readonly credentials: true;
184
+ }>;
185
+ };
186
+ group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/sign-in`, import("effect/Schema").Struct<{
187
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
188
+ readonly password: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
189
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
190
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Authenticated", {
191
+ readonly session: import("effect/Schema").Struct<{
192
+ readonly sessionId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SessionId">;
193
+ readonly subjectId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SubjectId">;
194
+ readonly securityRevision: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SecurityRevision">;
195
+ readonly assurance: typeof AuthenticationAssurance;
196
+ readonly issuedAt: import("effect/Schema").DateTimeUtcFromMillis;
197
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
198
+ readonly absoluteExpiresAt: import("effect/Schema").DateTimeUtcFromMillis;
199
+ readonly claims: import("effect/Schema").Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
200
+ }>;
201
+ }>, import("effect/Schema").TaggedStruct<"PendingAuthentication", {
202
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
203
+ }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordMethodUnsupported, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
204
+ strategy: Readonly<{
205
+ completion: boolean;
206
+ make: import("effect/Effect").Effect<{
207
+ readonly signIn: (input: Omit<{
208
+ readonly email: string;
209
+ readonly password: string;
210
+ readonly flowId: string;
211
+ }, "flowId">) => import("effect/Effect").Effect<{
212
+ readonly _tag: "Authenticated";
213
+ readonly session: {
214
+ readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
215
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
216
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
217
+ readonly assurance: AuthenticationAssurance;
218
+ readonly issuedAt: import("effect/DateTime").Utc;
219
+ readonly expiresAt: import("effect/DateTime").Utc;
220
+ readonly absoluteExpiresAt: import("effect/DateTime").Utc;
221
+ readonly claims: Claims["Type"];
222
+ };
223
+ } | {
224
+ readonly _tag: "PendingAuthentication";
225
+ readonly expiresAt: import("effect/DateTime").Utc;
226
+ }, PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
227
+ }, AuthConfigurationError | PasswordConfigurationError | PasswordMethodConfigurationError, AuthenticationAuthority | import("effect/Layer").CurrentMemoMap | ModuleService<SessionId, "completion", Claims["Type"]> | PasswordPersistence | import("effect/Scope").Scope | {
228
+ readonly moduleId: Id;
229
+ readonly kind: "claims";
230
+ readonly claims: import("effect/Types").Invariant<Claims["Type"]>;
231
+ }>;
232
+ }>;
233
+ }>;
234
+ interface SignInStrategy<Namespace extends string | undefined = undefined> extends StrategyTypeLambda {
235
+ readonly type: ReturnType<typeof bindSignIn<Namespace, BindingOf<this>["claims"], BindingOf<this>["namespace"], BindingOf<this>["sessionNamespace"]>>;
236
+ }
237
+ declare const signIn: <const Namespace extends string | undefined = undefined>(namespace: Namespace, input: PasswordOptions<Namespace>) => Readonly<StrategyDefinition<SignInStrategy<Namespace>, Namespace>>;
238
+ declare const captureManagement: <Registration extends ClaimsCodec, const Namespace extends string | undefined = undefined>(_namespace: Namespace, input: PasswordManagementOptions<Registration, Namespace>) => {
239
+ options: Readonly<{
240
+ namespace?: Namespace | undefined;
241
+ registration: Registration;
242
+ policy: {
243
+ readonly attempts: {
244
+ readonly identifier: {
245
+ readonly limit: number;
246
+ readonly windowMillis: number;
247
+ };
248
+ readonly subject: {
249
+ readonly limit: number;
250
+ readonly windowMillis: number;
251
+ };
252
+ readonly action: {
253
+ readonly limit: number;
254
+ readonly windowMillis: number;
255
+ };
256
+ readonly maximumPending: number;
257
+ readonly attemptLifetimeMillis: number;
258
+ };
259
+ readonly maximumEvidenceAgeMillis: number;
260
+ readonly requireImmediateInvalidation: boolean;
261
+ };
262
+ reset: Readonly<{
263
+ readonly template: string;
264
+ readonly secret: ProofSecretPolicy;
265
+ readonly policy: ProofPolicy;
266
+ readonly keys?: ProofKeyring;
267
+ } & {
268
+ secret: Readonly<{
269
+ _tag: "Token";
270
+ } | {
271
+ _tag: "NumericCode";
272
+ digits: number;
273
+ }>;
274
+ policy: Readonly<{
275
+ lifetimeMillis: number;
276
+ continuationLifetimeMillis: number;
277
+ maximumFailedAttempts: number;
278
+ maximumDeliveryAttempts: number;
279
+ deliveryClaimMillis: number;
280
+ deliveryRetryMillis: number;
281
+ requestRetentionMillis: number;
282
+ abuse: Readonly<{
283
+ resendCooldownMillis: number;
284
+ issues: Readonly<{
285
+ limit: number;
286
+ windowMillis: number;
287
+ }>;
288
+ attempts: Readonly<{
289
+ limit: number;
290
+ windowMillis: number;
291
+ }>;
292
+ subjectIssues: Readonly<{
293
+ limit: number;
294
+ windowMillis: number;
295
+ }>;
296
+ subjectAttempts: Readonly<{
297
+ limit: number;
298
+ windowMillis: number;
299
+ }>;
300
+ actionIssues: Readonly<{
301
+ limit: number;
302
+ windowMillis: number;
303
+ }>;
304
+ actionAttempts: Readonly<{
305
+ limit: number;
306
+ windowMillis: number;
307
+ }>;
308
+ }>;
309
+ }>;
310
+ keys: Readonly<{
311
+ activeKeyId: string;
312
+ keys: readonly any[];
313
+ }> | undefined;
314
+ }>;
315
+ }>;
316
+ };
317
+ declare const bindManagement: <Registration extends ClaimsCodec, const Namespace extends string | undefined, Claims extends ClaimsCodec, const Id extends string, const SessionId extends string>(binding: StrategyBinding<Claims, Id, SessionId>, captured: ReturnType<typeof captureManagement<Registration, Namespace>>) => Readonly<{
318
+ strategy: Readonly<{
319
+ completion: boolean;
320
+ make: import("effect/Effect").Effect<{
321
+ readonly signIn: (input: Omit<{
322
+ readonly email: string;
323
+ readonly password: string;
324
+ readonly flowId: string;
325
+ }, "flowId">) => import("effect/Effect").Effect<{
326
+ readonly _tag: "Authenticated";
327
+ readonly session: {
328
+ readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
329
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
330
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
331
+ readonly assurance: AuthenticationAssurance;
332
+ readonly issuedAt: import("effect/DateTime").Utc;
333
+ readonly expiresAt: import("effect/DateTime").Utc;
334
+ readonly absoluteExpiresAt: import("effect/DateTime").Utc;
335
+ readonly claims: Claims["Type"];
336
+ };
337
+ } | {
338
+ readonly _tag: "PendingAuthentication";
339
+ readonly expiresAt: import("effect/DateTime").Utc;
340
+ }, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
341
+ readonly register: (input: {
342
+ readonly requestId: string;
343
+ readonly email: string;
344
+ readonly newPassword: string;
345
+ readonly registration: Registration["Encoded"];
346
+ }) => import("effect/Effect").Effect<{
347
+ readonly _tag: "RegistrationAccepted";
348
+ } | {
349
+ readonly _tag: "ProvisioningPending";
350
+ readonly reference: string;
351
+ }, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest | Exclude<Exclude<Registration["DecodingServices"], CredentialCollectorProvenance | RevealCollectorProvenance>, import("effect/Crypto").Crypto | OperationHandler<`${Id}/add-password`, {
352
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
353
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
354
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
355
+ }, {
356
+ readonly invalidation: {
357
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
358
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
359
+ readonly maximumExposureMillis: number;
360
+ readonly oldAuthenticationEvidence: "rejected";
361
+ };
362
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/change-password`, {
363
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
364
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
365
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
366
+ readonly currentPassword: import("effect/Redacted").Redacted<string>;
367
+ }, {
368
+ readonly invalidation: {
369
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
370
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
371
+ readonly maximumExposureMillis: number;
372
+ readonly oldAuthenticationEvidence: "rejected";
373
+ };
374
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/cleanup`, {
375
+ readonly limit: number;
376
+ }, {
377
+ readonly removed: number;
378
+ readonly hasMore: boolean;
379
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/complete-reset`, {
380
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
381
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
382
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
383
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
384
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
385
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
386
+ readonly credential: import("effect/Redacted").Redacted<string>;
387
+ }, {
388
+ readonly invalidation: {
389
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
390
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
391
+ readonly maximumExposureMillis: number;
392
+ readonly oldAuthenticationEvidence: "rejected";
393
+ };
394
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/register`, {
395
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
396
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
397
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
398
+ readonly registration: Registration["Type"];
399
+ }, {
400
+ readonly _tag: "RegistrationAccepted";
401
+ } | {
402
+ readonly _tag: "ProvisioningPending";
403
+ readonly reference: string;
404
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/request-reset`, {
405
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
406
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
407
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
408
+ readonly locale: string;
409
+ }, {
410
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
411
+ readonly reference: {
412
+ readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
413
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
414
+ readonly keyId: string;
415
+ };
416
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/sign-in`, {
417
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
418
+ readonly password: import("effect/Redacted").Redacted<string>;
419
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
420
+ }, {
421
+ readonly _tag: "Authenticated";
422
+ readonly session: {
423
+ readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
424
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
425
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
426
+ readonly assurance: AuthenticationAssurance;
427
+ readonly issuedAt: import("effect/DateTime").Utc;
428
+ readonly expiresAt: import("effect/DateTime").Utc;
429
+ readonly absoluteExpiresAt: import("effect/DateTime").Utc;
430
+ readonly claims: Claims["Type"];
431
+ };
432
+ } | {
433
+ readonly _tag: "PendingAuthentication";
434
+ readonly expiresAt: import("effect/DateTime").Utc;
435
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/status`, void, {
436
+ readonly hasPassword: boolean;
437
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/verify-reset`, {
438
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
439
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
440
+ readonly reference: {
441
+ readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
442
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
443
+ readonly keyId: string;
444
+ };
445
+ readonly secret: import("effect/Redacted").Redacted<string>;
446
+ }, {
447
+ readonly continuation: {
448
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
449
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
450
+ readonly expiresAtMillis: number;
451
+ };
452
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | SubtleCrypto | (AuthCredentialCommandCollector | AuthRevealCommandCollectorService)>>;
453
+ readonly addPassword: (input: {
454
+ readonly commandId: string;
455
+ readonly newPassword: string;
456
+ readonly actionProof?: string | undefined;
457
+ }) => import("effect/Effect").Effect<{
458
+ readonly invalidation: {
459
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
460
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
461
+ readonly maximumExposureMillis: number;
462
+ readonly oldAuthenticationEvidence: "rejected";
463
+ };
464
+ }, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
465
+ readonly changePassword: (input: {
466
+ readonly commandId: string;
467
+ readonly newPassword: string;
468
+ readonly actionProof?: string | undefined;
469
+ readonly currentPassword: string;
470
+ }) => import("effect/Effect").Effect<{
471
+ readonly invalidation: {
472
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
473
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
474
+ readonly maximumExposureMillis: number;
475
+ readonly oldAuthenticationEvidence: "rejected";
476
+ };
477
+ }, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
478
+ readonly requestReset: (input: {
479
+ readonly flowId: string;
480
+ readonly email: string;
481
+ readonly requestId: string;
482
+ readonly locale: string;
483
+ }) => import("effect/Effect").Effect<{
484
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
485
+ readonly reference: {
486
+ readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
487
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
488
+ readonly keyId: string;
489
+ };
490
+ }, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
491
+ readonly verifyReset: (input: {
492
+ readonly flowId: string;
493
+ readonly email: string;
494
+ readonly reference: {
495
+ readonly proofId: string;
496
+ readonly purpose: string;
497
+ readonly keyId: string;
498
+ };
499
+ readonly secret: string;
500
+ }) => import("effect/Effect").Effect<{
501
+ readonly continuation: {
502
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
503
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
504
+ readonly expiresAtMillis: number;
505
+ };
506
+ }, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
507
+ readonly completeReset: (input: {
508
+ readonly commandId: string;
509
+ readonly newPassword: string;
510
+ readonly actionProof?: string | undefined;
511
+ readonly flowId: string;
512
+ readonly email: string;
513
+ readonly continuationId: string;
514
+ readonly credential: string;
515
+ }) => import("effect/Effect").Effect<{
516
+ readonly invalidation: {
517
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
518
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
519
+ readonly maximumExposureMillis: number;
520
+ readonly oldAuthenticationEvidence: "rejected";
521
+ };
522
+ }, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
523
+ readonly passwordStatus: (input?: void | undefined) => import("effect/Effect").Effect<{
524
+ readonly hasPassword: boolean;
525
+ }, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
526
+ }, AuthConfigurationError | PasswordConfigurationError | PasswordMethodConfigurationError | ProofConfigurationError, AuthenticationAuthority | CompromisedPasswords | import("effect/Layer").CurrentMemoMap | EmailProofDelivery | ModuleService<SessionId, "completion", Claims["Type"]> | ModuleService<SessionId, "strategy", Claims["Type"]> | PasswordActionEvidence | PasswordPersistence | ProofPersistence | import("effect/Scope").Scope | Exclude<Exclude<Exclude<Exclude<Registration["DecodingServices"], import("effect/Scope").Scope>, ProofModule<`${Id}/reset`, {
527
+ readonly _tag: "Identifier";
528
+ readonly flowId: string;
529
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
530
+ readonly identifier: LoginIdentifier;
531
+ } | {
532
+ readonly _tag: "Subject";
533
+ readonly flowId: string;
534
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
535
+ readonly revision: {
536
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
537
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
538
+ readonly credentials: readonly {
539
+ readonly credentialId: string;
540
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
541
+ }[];
542
+ };
543
+ readonly identifier: LoginIdentifier;
544
+ } | {
545
+ readonly _tag: "IdentifierChange";
546
+ readonly flowId: string;
547
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
548
+ readonly revision: {
549
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
550
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
551
+ readonly credentials: readonly {
552
+ readonly credentialId: string;
553
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
554
+ }[];
555
+ };
556
+ readonly identifier: LoginIdentifier;
557
+ }>>, LifecycleHooks | NewPasswordCheck | PasswordHashing>, import("effect/Crypto").Crypto | SubtleCrypto> | Exclude<Exclude<Exclude<Exclude<Registration["EncodingServices"], import("effect/Scope").Scope>, ProofModule<`${Id}/reset`, {
558
+ readonly _tag: "Identifier";
559
+ readonly flowId: string;
560
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
561
+ readonly identifier: LoginIdentifier;
562
+ } | {
563
+ readonly _tag: "Subject";
564
+ readonly flowId: string;
565
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
566
+ readonly revision: {
567
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
568
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
569
+ readonly credentials: readonly {
570
+ readonly credentialId: string;
571
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
572
+ }[];
573
+ };
574
+ readonly identifier: LoginIdentifier;
575
+ } | {
576
+ readonly _tag: "IdentifierChange";
577
+ readonly flowId: string;
578
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
579
+ readonly revision: {
580
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
581
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
582
+ readonly credentials: readonly {
583
+ readonly credentialId: string;
584
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
585
+ }[];
586
+ };
587
+ readonly identifier: LoginIdentifier;
588
+ }>>, LifecycleHooks | NewPasswordCheck | PasswordHashing>, import("effect/Crypto").Crypto | SubtleCrypto> | (MethodService<Id, "claims"> & {
589
+ readonly claims: import("effect/Types").Invariant<Claims["Type"]>;
590
+ }) | (MethodService<Id, "registration"> & {
591
+ readonly registration: import("effect/Types").Invariant<Registration["Type"]>;
592
+ })>;
593
+ }>;
594
+ prepared: (configuration: PasswordPreparedConfiguration) => Readonly<{
595
+ PasswordPrepared: import("effect/Context").Service<ServiceId<Id, "prepared"> & {
596
+ readonly reset: import("effect/Types").Invariant<ProofModule<`${Id}/reset`, {
597
+ readonly _tag: "Identifier";
598
+ readonly flowId: string;
599
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
600
+ readonly identifier: LoginIdentifier;
601
+ } | {
602
+ readonly _tag: "Subject";
603
+ readonly flowId: string;
604
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
605
+ readonly revision: {
606
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
607
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
608
+ readonly credentials: readonly {
609
+ readonly credentialId: string;
610
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
611
+ }[];
612
+ };
613
+ readonly identifier: LoginIdentifier;
614
+ } | {
615
+ readonly _tag: "IdentifierChange";
616
+ readonly flowId: string;
617
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
618
+ readonly revision: {
619
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
620
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
621
+ readonly credentials: readonly {
622
+ readonly credentialId: string;
623
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
624
+ }[];
625
+ };
626
+ readonly identifier: LoginIdentifier;
627
+ }>>;
628
+ }, {
629
+ readonly beginAdd: (invocation: AuthInvocation, input: {
630
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
631
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
632
+ }) => import("effect/Effect").Effect<AuthOperationResult<{
633
+ readonly _tag: "Prepared";
634
+ readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
635
+ readonly expiresAtMillis: number;
636
+ } | {
637
+ readonly _tag: "AlreadyExists";
638
+ }>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
639
+ readonly beginChange: (invocation: AuthInvocation, input: {
640
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
641
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
642
+ readonly currentPassword: import("effect/Redacted").Redacted<string>;
643
+ }) => import("effect/Effect").Effect<AuthOperationResult<{
644
+ readonly _tag: "Prepared";
645
+ readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
646
+ readonly expiresAtMillis: number;
647
+ } | {
648
+ readonly _tag: "AlreadyExists";
649
+ }>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
650
+ readonly beginReset: (invocation: AuthInvocation, input: {
651
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
652
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
653
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
654
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
655
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
656
+ readonly continuationCredential: import("effect/Redacted").Redacted<string>;
657
+ }) => import("effect/Effect").Effect<AuthOperationResult<{
658
+ readonly _tag: "Prepared";
659
+ readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
660
+ readonly expiresAtMillis: number;
661
+ } | {
662
+ readonly _tag: "AlreadyExists";
663
+ }>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, ProofModule<`${Id}/reset`, {
664
+ readonly _tag: "Identifier";
665
+ readonly flowId: string;
666
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
667
+ readonly identifier: LoginIdentifier;
668
+ } | {
669
+ readonly _tag: "Subject";
670
+ readonly flowId: string;
671
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
672
+ readonly revision: {
673
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
674
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
675
+ readonly credentials: readonly {
676
+ readonly credentialId: string;
677
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
678
+ }[];
679
+ };
680
+ readonly identifier: LoginIdentifier;
681
+ } | {
682
+ readonly _tag: "IdentifierChange";
683
+ readonly flowId: string;
684
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
685
+ readonly revision: {
686
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
687
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
688
+ readonly credentials: readonly {
689
+ readonly credentialId: string;
690
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
691
+ }[];
692
+ };
693
+ readonly identifier: LoginIdentifier;
694
+ }>>;
695
+ readonly context: (invocation: AuthInvocation, credential: import("effect/Redacted").Redacted<string>) => import("effect/Effect").Effect<PasswordPreparedContext, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
696
+ readonly resetContext: (invocation: AuthInvocation, input: {
697
+ readonly intentCredential: import("effect/Redacted").Redacted<string>;
698
+ readonly continuationCredential: import("effect/Redacted").Redacted<string>;
699
+ }) => import("effect/Effect").Effect<PasswordPreparedContext, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, ProofModule<`${Id}/reset`, {
700
+ readonly _tag: "Identifier";
701
+ readonly flowId: string;
702
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
703
+ readonly identifier: LoginIdentifier;
704
+ } | {
705
+ readonly _tag: "Subject";
706
+ readonly flowId: string;
707
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
708
+ readonly revision: {
709
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
710
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
711
+ readonly credentials: readonly {
712
+ readonly credentialId: string;
713
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
714
+ }[];
715
+ };
716
+ readonly identifier: LoginIdentifier;
717
+ } | {
718
+ readonly _tag: "IdentifierChange";
719
+ readonly flowId: string;
720
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
721
+ readonly revision: {
722
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
723
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
724
+ readonly credentials: readonly {
725
+ readonly credentialId: string;
726
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
727
+ }[];
728
+ };
729
+ readonly identifier: LoginIdentifier;
730
+ }>>;
731
+ readonly planComplete: (invocation: AuthInvocation, input: {
732
+ readonly intentCredential: import("effect/Redacted").Redacted<string>;
733
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
734
+ } & {
735
+ readonly continuationCredential?: import("effect/Redacted").Redacted<string>;
736
+ }) => import("effect/Effect").Effect<PasswordPreparedCompletionPlan<ServiceId<Id, "prepared-persistence">>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
737
+ readonly planResetComplete: (invocation: AuthInvocation, input: {
738
+ readonly intentCredential: import("effect/Redacted").Redacted<string>;
739
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
740
+ } & {
741
+ readonly continuationCredential?: import("effect/Redacted").Redacted<string>;
742
+ }) => import("effect/Effect").Effect<PasswordPreparedCompletionPlan<ServiceId<Id, "prepared-persistence">>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, ProofModule<`${Id}/reset`, {
743
+ readonly _tag: "Identifier";
744
+ readonly flowId: string;
745
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
746
+ readonly identifier: LoginIdentifier;
747
+ } | {
748
+ readonly _tag: "Subject";
749
+ readonly flowId: string;
750
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
751
+ readonly revision: {
752
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
753
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
754
+ readonly credentials: readonly {
755
+ readonly credentialId: string;
756
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
757
+ }[];
758
+ };
759
+ readonly identifier: LoginIdentifier;
760
+ } | {
761
+ readonly _tag: "IdentifierChange";
762
+ readonly flowId: string;
763
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
764
+ readonly revision: {
765
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
766
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
767
+ readonly credentials: readonly {
768
+ readonly credentialId: string;
769
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
770
+ }[];
771
+ };
772
+ readonly identifier: LoginIdentifier;
773
+ }>>;
774
+ readonly planCompleteAuthorized: (invocation: AuthInvocation, input: {
775
+ readonly intentCredential: import("effect/Redacted").Redacted<string>;
776
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
777
+ } & {
778
+ readonly continuationCredential?: import("effect/Redacted").Redacted<string>;
779
+ }, authorization: PasswordPreparedAuthorization) => import("effect/Effect").Effect<PasswordPreparedCompletionPlan<ServiceId<Id, "prepared-persistence">>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
780
+ readonly planResetCompleteAuthorized: (invocation: AuthInvocation, input: {
781
+ readonly intentCredential: import("effect/Redacted").Redacted<string>;
782
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
783
+ } & {
784
+ readonly continuationCredential?: import("effect/Redacted").Redacted<string>;
785
+ }, authorization: PasswordPreparedAuthorization) => import("effect/Effect").Effect<PasswordPreparedCompletionPlan<ServiceId<Id, "prepared-persistence">>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, ProofModule<`${Id}/reset`, {
786
+ readonly _tag: "Identifier";
787
+ readonly flowId: string;
788
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
789
+ readonly identifier: LoginIdentifier;
790
+ } | {
791
+ readonly _tag: "Subject";
792
+ readonly flowId: string;
793
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
794
+ readonly revision: {
795
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
796
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
797
+ readonly credentials: readonly {
798
+ readonly credentialId: string;
799
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
800
+ }[];
801
+ };
802
+ readonly identifier: LoginIdentifier;
803
+ } | {
804
+ readonly _tag: "IdentifierChange";
805
+ readonly flowId: string;
806
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
807
+ readonly revision: {
808
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
809
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
810
+ readonly credentials: readonly {
811
+ readonly credentialId: string;
812
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
813
+ }[];
814
+ };
815
+ readonly identifier: LoginIdentifier;
816
+ }>>;
817
+ readonly cancel: (invocation: AuthInvocation, credential: import("effect/Redacted").Redacted<string>) => import("effect/Effect").Effect<PreparedCommit<AuthOperationResult<void>>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
818
+ readonly cleanup: (limit: number) => import("effect/Effect").Effect<PreparedCommit<{
819
+ readonly removed: number;
820
+ readonly hasMore: boolean;
821
+ }>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
822
+ }>;
823
+ PasswordPreparedPersistence: import("effect/Context").Service<ServiceId<Id, "prepared-persistence">, PasswordPreparedPersistence>;
824
+ layer: import("effect/Layer").Layer<ServiceId<Id, "prepared"> & {
825
+ readonly reset: import("effect/Types").Invariant<ProofModule<`${Id}/reset`, {
826
+ readonly _tag: "Identifier";
827
+ readonly flowId: string;
828
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
829
+ readonly identifier: LoginIdentifier;
830
+ } | {
831
+ readonly _tag: "Subject";
832
+ readonly flowId: string;
833
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
834
+ readonly revision: {
835
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
836
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
837
+ readonly credentials: readonly {
838
+ readonly credentialId: string;
839
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
840
+ }[];
841
+ };
842
+ readonly identifier: LoginIdentifier;
843
+ } | {
844
+ readonly _tag: "IdentifierChange";
845
+ readonly flowId: string;
846
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
847
+ readonly revision: {
848
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
849
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
850
+ readonly credentials: readonly {
851
+ readonly credentialId: string;
852
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
853
+ }[];
854
+ };
855
+ readonly identifier: LoginIdentifier;
856
+ }>>;
857
+ }, PasswordMethodConfigurationError, AuthenticationAuthority | import("effect/Crypto").Crypto | LifecycleHooks | ModuleService<SessionId, "strategy", Claims["Type"]> | NewPasswordCheck | PasswordActionEvidence | PasswordHashing | PasswordPersistence | ServiceId<Id, "prepared-persistence">>;
858
+ handlersLayer: import("effect/Layer").Layer<OperationHandler<`${Id}/prepared/add/begin`, {
859
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
860
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
861
+ }, {
862
+ readonly _tag: "Prepared";
863
+ readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
864
+ readonly expiresAtMillis: number;
865
+ } | {
866
+ readonly _tag: "AlreadyExists";
867
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/add/complete`, {
868
+ readonly intentCredential: import("effect/Redacted").Redacted<string>;
869
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
870
+ }, {
871
+ readonly invalidation: {
872
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
873
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
874
+ readonly maximumExposureMillis: number;
875
+ readonly oldAuthenticationEvidence: "rejected";
876
+ };
877
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/cancel`, {
878
+ readonly intentCredential: import("effect/Redacted").Redacted<string>;
879
+ }, void, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/change/begin`, {
880
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
881
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
882
+ readonly currentPassword: import("effect/Redacted").Redacted<string>;
883
+ }, {
884
+ readonly _tag: "Prepared";
885
+ readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
886
+ readonly expiresAtMillis: number;
887
+ } | {
888
+ readonly _tag: "AlreadyExists";
889
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/change/complete`, {
890
+ readonly intentCredential: import("effect/Redacted").Redacted<string>;
891
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
892
+ }, {
893
+ readonly invalidation: {
894
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
895
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
896
+ readonly maximumExposureMillis: number;
897
+ readonly oldAuthenticationEvidence: "rejected";
898
+ };
899
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/cleanup`, {
900
+ readonly limit: number;
901
+ }, {
902
+ readonly removed: number;
903
+ readonly hasMore: boolean;
904
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>, never, ServiceId<Id, "prepared-persistence"> | (ServiceId<Id, "prepared"> & {
905
+ readonly reset: import("effect/Types").Invariant<ProofModule<`${Id}/reset`, {
906
+ readonly _tag: "Identifier";
907
+ readonly flowId: string;
908
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
909
+ readonly identifier: LoginIdentifier;
910
+ } | {
911
+ readonly _tag: "Subject";
912
+ readonly flowId: string;
913
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
914
+ readonly revision: {
915
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
916
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
917
+ readonly credentials: readonly {
918
+ readonly credentialId: string;
919
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
920
+ }[];
921
+ };
922
+ readonly identifier: LoginIdentifier;
923
+ } | {
924
+ readonly _tag: "IdentifierChange";
925
+ readonly flowId: string;
926
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
927
+ readonly revision: {
928
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
929
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
930
+ readonly credentials: readonly {
931
+ readonly credentialId: string;
932
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
933
+ }[];
934
+ };
935
+ readonly identifier: LoginIdentifier;
936
+ }>>;
937
+ })>;
938
+ resetHandlersLayer: import("effect/Layer").Layer<OperationHandler<`${Id}/prepared/reset/begin`, {
939
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
940
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
941
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
942
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
943
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
944
+ readonly continuationCredential: import("effect/Redacted").Redacted<string>;
945
+ }, {
946
+ readonly _tag: "Prepared";
947
+ readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
948
+ readonly expiresAtMillis: number;
949
+ } | {
950
+ readonly _tag: "AlreadyExists";
951
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/reset/complete`, {
952
+ readonly intentCredential: import("effect/Redacted").Redacted<string>;
953
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
954
+ readonly continuationCredential: import("effect/Redacted").Redacted<string>;
955
+ }, {
956
+ readonly invalidation: {
957
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
958
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
959
+ readonly maximumExposureMillis: number;
960
+ readonly oldAuthenticationEvidence: "rejected";
961
+ };
962
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>, never, ProofModule<`${Id}/reset`, {
963
+ readonly _tag: "Identifier";
964
+ readonly flowId: string;
965
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
966
+ readonly identifier: LoginIdentifier;
967
+ } | {
968
+ readonly _tag: "Subject";
969
+ readonly flowId: string;
970
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
971
+ readonly revision: {
972
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
973
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
974
+ readonly credentials: readonly {
975
+ readonly credentialId: string;
976
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
977
+ }[];
978
+ };
979
+ readonly identifier: LoginIdentifier;
980
+ } | {
981
+ readonly _tag: "IdentifierChange";
982
+ readonly flowId: string;
983
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
984
+ readonly revision: {
985
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
986
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
987
+ readonly credentials: readonly {
988
+ readonly credentialId: string;
989
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
990
+ }[];
991
+ };
992
+ readonly identifier: LoginIdentifier;
993
+ }> | ServiceId<Id, "prepared-persistence"> | (ServiceId<Id, "prepared"> & {
994
+ readonly reset: import("effect/Types").Invariant<ProofModule<`${Id}/reset`, {
995
+ readonly _tag: "Identifier";
996
+ readonly flowId: string;
997
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
998
+ readonly identifier: LoginIdentifier;
999
+ } | {
1000
+ readonly _tag: "Subject";
1001
+ readonly flowId: string;
1002
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1003
+ readonly revision: {
1004
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1005
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1006
+ readonly credentials: readonly {
1007
+ readonly credentialId: string;
1008
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1009
+ }[];
1010
+ };
1011
+ readonly identifier: LoginIdentifier;
1012
+ } | {
1013
+ readonly _tag: "IdentifierChange";
1014
+ readonly flowId: string;
1015
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1016
+ readonly revision: {
1017
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1018
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1019
+ readonly credentials: readonly {
1020
+ readonly credentialId: string;
1021
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1022
+ }[];
1023
+ };
1024
+ readonly identifier: LoginIdentifier;
1025
+ }>>;
1026
+ })>;
1027
+ operations: {
1028
+ BeginAdd: AuthOperation<`${Id}/prepared/add/begin`, import("effect/Schema").Struct<{
1029
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1030
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1031
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Prepared", {
1032
+ readonly intentId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/PasswordPreparedIntentId">;
1033
+ readonly expiresAtMillis: import("effect/Schema").Int;
1034
+ }>, import("effect/Schema").TaggedStruct<"AlreadyExists", {}>]>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1035
+ readonly payload: import("effect/Schema").Struct<{
1036
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1037
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1038
+ }>;
1039
+ readonly success: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Prepared", {
1040
+ readonly intentId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/PasswordPreparedIntentId">;
1041
+ readonly expiresAtMillis: import("effect/Schema").Int;
1042
+ }>, import("effect/Schema").TaggedStruct<"AlreadyExists", {}>]>;
1043
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1044
+ readonly access: "authenticated";
1045
+ readonly exposure: "public";
1046
+ readonly replay: "idempotent";
1047
+ readonly credentials: true;
1048
+ }>;
1049
+ BeginChange: AuthOperation<`${Id}/prepared/change/begin`, import("effect/Schema").Struct<{
1050
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1051
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1052
+ readonly currentPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1053
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Prepared", {
1054
+ readonly intentId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/PasswordPreparedIntentId">;
1055
+ readonly expiresAtMillis: import("effect/Schema").Int;
1056
+ }>, import("effect/Schema").TaggedStruct<"AlreadyExists", {}>]>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1057
+ readonly payload: import("effect/Schema").Struct<{
1058
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1059
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1060
+ readonly currentPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1061
+ }>;
1062
+ readonly success: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Prepared", {
1063
+ readonly intentId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/PasswordPreparedIntentId">;
1064
+ readonly expiresAtMillis: import("effect/Schema").Int;
1065
+ }>, import("effect/Schema").TaggedStruct<"AlreadyExists", {}>]>;
1066
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1067
+ readonly access: "authenticated";
1068
+ readonly exposure: "public";
1069
+ readonly replay: "idempotent";
1070
+ readonly credentials: true;
1071
+ }>;
1072
+ CompleteAdd: AuthOperation<`${Id}/prepared/add/complete`, import("effect/Schema").Struct<{
1073
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1074
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1075
+ }>, import("effect/Schema").Struct<{
1076
+ readonly invalidation: import("effect/Schema").Struct<{
1077
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1078
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1079
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1080
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1081
+ }>;
1082
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1083
+ readonly payload: import("effect/Schema").Struct<{
1084
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1085
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1086
+ }>;
1087
+ readonly success: import("effect/Schema").Struct<{
1088
+ readonly invalidation: import("effect/Schema").Struct<{
1089
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1090
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1091
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1092
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1093
+ }>;
1094
+ }>;
1095
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1096
+ readonly access: "authenticated";
1097
+ readonly exposure: "public";
1098
+ readonly replay: "single-use";
1099
+ readonly credentials: true;
1100
+ }>;
1101
+ CompleteChange: AuthOperation<`${Id}/prepared/change/complete`, import("effect/Schema").Struct<{
1102
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1103
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1104
+ }>, import("effect/Schema").Struct<{
1105
+ readonly invalidation: import("effect/Schema").Struct<{
1106
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1107
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1108
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1109
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1110
+ }>;
1111
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1112
+ readonly payload: import("effect/Schema").Struct<{
1113
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1114
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1115
+ }>;
1116
+ readonly success: import("effect/Schema").Struct<{
1117
+ readonly invalidation: import("effect/Schema").Struct<{
1118
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1119
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1120
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1121
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1122
+ }>;
1123
+ }>;
1124
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1125
+ readonly access: "authenticated";
1126
+ readonly exposure: "public";
1127
+ readonly replay: "single-use";
1128
+ readonly credentials: true;
1129
+ }>;
1130
+ Cancel: AuthOperation<`${Id}/prepared/cancel`, import("effect/Schema").Struct<{
1131
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1132
+ }>, import("effect/Schema").Void, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1133
+ readonly payload: import("effect/Schema").Struct<{
1134
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1135
+ }>;
1136
+ readonly success: import("effect/Schema").Void;
1137
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1138
+ readonly access: "any";
1139
+ readonly exposure: "public";
1140
+ readonly replay: "idempotent";
1141
+ readonly credentials: true;
1142
+ }>;
1143
+ Cleanup: AuthOperation<`${Id}/prepared/cleanup`, import("effect/Schema").Struct<{
1144
+ readonly limit: import("effect/Schema").Int;
1145
+ }>, import("effect/Schema").Struct<{
1146
+ readonly removed: import("effect/Schema").Natural;
1147
+ readonly hasMore: import("effect/Schema").Boolean;
1148
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1149
+ readonly payload: import("effect/Schema").Struct<{
1150
+ readonly limit: import("effect/Schema").Int;
1151
+ }>;
1152
+ readonly success: import("effect/Schema").Struct<{
1153
+ readonly removed: import("effect/Schema").Natural;
1154
+ readonly hasMore: import("effect/Schema").Boolean;
1155
+ }>;
1156
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1157
+ readonly access: "system";
1158
+ readonly replay: "idempotent";
1159
+ }>;
1160
+ };
1161
+ resetOperations: {
1162
+ BeginReset: AuthOperation<`${Id}/prepared/reset/begin`, import("effect/Schema").Struct<{
1163
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1164
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1165
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1166
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1167
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
1168
+ readonly continuationCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1169
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Prepared", {
1170
+ readonly intentId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/PasswordPreparedIntentId">;
1171
+ readonly expiresAtMillis: import("effect/Schema").Int;
1172
+ }>, import("effect/Schema").TaggedStruct<"AlreadyExists", {}>]>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1173
+ readonly payload: import("effect/Schema").Struct<{
1174
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1175
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1176
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1177
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1178
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
1179
+ readonly continuationCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1180
+ }>;
1181
+ readonly success: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Prepared", {
1182
+ readonly intentId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/PasswordPreparedIntentId">;
1183
+ readonly expiresAtMillis: import("effect/Schema").Int;
1184
+ }>, import("effect/Schema").TaggedStruct<"AlreadyExists", {}>]>;
1185
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1186
+ readonly access: "any";
1187
+ readonly exposure: "public";
1188
+ readonly replay: "idempotent";
1189
+ readonly credentials: true;
1190
+ }>;
1191
+ CompleteReset: AuthOperation<`${Id}/prepared/reset/complete`, import("effect/Schema").Struct<{
1192
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1193
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1194
+ readonly continuationCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1195
+ }>, import("effect/Schema").Struct<{
1196
+ readonly invalidation: import("effect/Schema").Struct<{
1197
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1198
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1199
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1200
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1201
+ }>;
1202
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1203
+ readonly payload: import("effect/Schema").Struct<{
1204
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1205
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1206
+ readonly continuationCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1207
+ }>;
1208
+ readonly success: import("effect/Schema").Struct<{
1209
+ readonly invalidation: import("effect/Schema").Struct<{
1210
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1211
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1212
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1213
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1214
+ }>;
1215
+ }>;
1216
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1217
+ readonly access: "any";
1218
+ readonly exposure: "public";
1219
+ readonly replay: "single-use";
1220
+ readonly credentials: true;
1221
+ }>;
1222
+ };
1223
+ resetGroup: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/reset/begin`, import("effect/Schema").Struct<{
1224
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1225
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1226
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1227
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1228
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
1229
+ readonly continuationCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1230
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Prepared", {
1231
+ readonly intentId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/PasswordPreparedIntentId">;
1232
+ readonly expiresAtMillis: import("effect/Schema").Int;
1233
+ }>, import("effect/Schema").TaggedStruct<"AlreadyExists", {}>]>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/reset/complete`, import("effect/Schema").Struct<{
1234
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1235
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1236
+ readonly continuationCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1237
+ }>, import("effect/Schema").Struct<{
1238
+ readonly invalidation: import("effect/Schema").Struct<{
1239
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1240
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1241
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1242
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1243
+ }>;
1244
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
1245
+ group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/add/begin`, import("effect/Schema").Struct<{
1246
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1247
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1248
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Prepared", {
1249
+ readonly intentId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/PasswordPreparedIntentId">;
1250
+ readonly expiresAtMillis: import("effect/Schema").Int;
1251
+ }>, import("effect/Schema").TaggedStruct<"AlreadyExists", {}>]>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/add/complete`, import("effect/Schema").Struct<{
1252
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1253
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1254
+ }>, import("effect/Schema").Struct<{
1255
+ readonly invalidation: import("effect/Schema").Struct<{
1256
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1257
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1258
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1259
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1260
+ }>;
1261
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/cancel`, import("effect/Schema").Struct<{
1262
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1263
+ }>, import("effect/Schema").Void, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/change/begin`, import("effect/Schema").Struct<{
1264
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1265
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1266
+ readonly currentPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1267
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Prepared", {
1268
+ readonly intentId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/PasswordPreparedIntentId">;
1269
+ readonly expiresAtMillis: import("effect/Schema").Int;
1270
+ }>, import("effect/Schema").TaggedStruct<"AlreadyExists", {}>]>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/change/complete`, import("effect/Schema").Struct<{
1271
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1272
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1273
+ }>, import("effect/Schema").Struct<{
1274
+ readonly invalidation: import("effect/Schema").Struct<{
1275
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1276
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1277
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1278
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1279
+ }>;
1280
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/cleanup`, import("effect/Schema").Struct<{
1281
+ readonly limit: import("effect/Schema").Int;
1282
+ }>, import("effect/Schema").Struct<{
1283
+ readonly removed: import("effect/Schema").Natural;
1284
+ readonly hasMore: import("effect/Schema").Boolean;
1285
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
1286
+ schemas: {
1287
+ BeginAddInput: import("effect/Schema").Struct<{
1288
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1289
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1290
+ }>;
1291
+ BeginChangeInput: import("effect/Schema").Struct<{
1292
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1293
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1294
+ readonly currentPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1295
+ }>;
1296
+ BeginResetInput: import("effect/Schema").Struct<{
1297
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1298
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1299
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1300
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1301
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
1302
+ readonly continuationCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1303
+ }>;
1304
+ CompleteInput: import("effect/Schema").Struct<{
1305
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1306
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1307
+ }>;
1308
+ CompleteResetInput: import("effect/Schema").Struct<{
1309
+ readonly intentCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1310
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1311
+ readonly continuationCredential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1312
+ }>;
1313
+ Result: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Prepared", {
1314
+ readonly intentId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/PasswordPreparedIntentId">;
1315
+ readonly expiresAtMillis: import("effect/Schema").Int;
1316
+ }>, import("effect/Schema").TaggedStruct<"AlreadyExists", {}>]>;
1317
+ };
1318
+ }>;
1319
+ Passwords: import("effect/Context").Service<MethodService<Id, "method"> & {
1320
+ readonly claims: import("effect/Types").Invariant<Claims["Type"]>;
1321
+ readonly registration: import("effect/Types").Invariant<Registration["Type"]>;
1322
+ }, {
1323
+ readonly planRegister: (input: {
1324
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
1325
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
1326
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
1327
+ readonly registration: Registration["Type"];
1328
+ }) => import("effect/Effect").Effect<{
1329
+ readonly commit: import("effect/Effect").Effect<PreparedCommit<{
1330
+ readonly _tag: "RegistrationAccepted";
1331
+ } | {
1332
+ readonly _tag: "ProvisioningPending";
1333
+ readonly reference: string;
1334
+ }>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, MethodService<Id, "registration"> & {
1335
+ readonly registration: import("effect/Types").Invariant<Registration["Type"]>;
1336
+ }>;
1337
+ }, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
1338
+ readonly signIn: (input: {
1339
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
1340
+ readonly password: import("effect/Redacted").Redacted<string>;
1341
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
1342
+ }) => import("effect/Effect").Effect<AuthOperationResult<{
1343
+ readonly _tag: "Authenticated";
1344
+ readonly session: {
1345
+ readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
1346
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1347
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1348
+ readonly assurance: AuthenticationAssurance;
1349
+ readonly issuedAt: import("effect/DateTime").Utc;
1350
+ readonly expiresAt: import("effect/DateTime").Utc;
1351
+ readonly absoluteExpiresAt: import("effect/DateTime").Utc;
1352
+ readonly claims: Claims["Type"];
1353
+ };
1354
+ } | {
1355
+ readonly _tag: "PendingAuthentication";
1356
+ readonly expiresAt: import("effect/DateTime").Utc;
1357
+ }>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
1358
+ readonly planAdd: (invocation: AuthInvocation, input: {
1359
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
1360
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
1361
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
1362
+ }) => import("effect/Effect").Effect<{
1363
+ readonly commit: import("effect/Effect").Effect<PreparedCommit<AuthOperationResult<{
1364
+ readonly invalidation: {
1365
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
1366
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
1367
+ readonly maximumExposureMillis: number;
1368
+ readonly oldAuthenticationEvidence: "rejected";
1369
+ };
1370
+ } | {
1371
+ readonly _tag: "Rejected";
1372
+ }>>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, PasswordPersistence>;
1373
+ }, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
1374
+ readonly planChange: (invocation: AuthInvocation, input: {
1375
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
1376
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
1377
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
1378
+ readonly currentPassword: import("effect/Redacted").Redacted<string>;
1379
+ }) => import("effect/Effect").Effect<{
1380
+ readonly commit: import("effect/Effect").Effect<PreparedCommit<AuthOperationResult<{
1381
+ readonly invalidation: {
1382
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
1383
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
1384
+ readonly maximumExposureMillis: number;
1385
+ readonly oldAuthenticationEvidence: "rejected";
1386
+ };
1387
+ } | {
1388
+ readonly _tag: "Rejected";
1389
+ }>>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, PasswordPersistence>;
1390
+ }, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
1391
+ readonly requestReset: (input: {
1392
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
1393
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
1394
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
1395
+ readonly locale: string;
1396
+ }) => import("effect/Effect").Effect<ProofRequestReceipt, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
1397
+ readonly verifyReset: (input: {
1398
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
1399
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
1400
+ readonly reference: {
1401
+ readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
1402
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
1403
+ readonly keyId: string;
1404
+ };
1405
+ readonly secret: import("effect/Redacted").Redacted<string>;
1406
+ }) => import("effect/Effect").Effect<AuthOperationResult<{
1407
+ readonly continuation: ProofContinuation;
1408
+ }>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
1409
+ readonly planReset: (invocation: AuthInvocation, input: {
1410
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
1411
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
1412
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
1413
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
1414
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
1415
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
1416
+ readonly credential: import("effect/Redacted").Redacted<string>;
1417
+ }) => import("effect/Effect").Effect<{
1418
+ readonly commit: import("effect/Effect").Effect<PreparedCommit<AuthOperationResult<{
1419
+ readonly invalidation: {
1420
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
1421
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
1422
+ readonly maximumExposureMillis: number;
1423
+ readonly oldAuthenticationEvidence: "rejected";
1424
+ };
1425
+ } | {
1426
+ readonly _tag: "Rejected";
1427
+ }>>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, PasswordPersistence>;
1428
+ }, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
1429
+ readonly status: (invocation: AuthInvocation) => import("effect/Effect").Effect<{
1430
+ readonly hasPassword: boolean;
1431
+ }, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
1432
+ readonly cleanup: (limit: number) => import("effect/Effect").Effect<{
1433
+ readonly removed: number;
1434
+ readonly hasMore: boolean;
1435
+ }, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
1436
+ }>;
1437
+ RegistrationAuthority: import("effect/Context").Service<MethodService<Id, "registration"> & {
1438
+ readonly registration: import("effect/Types").Invariant<Registration["Type"]>;
1439
+ }, {
1440
+ readonly register: <A>(input: {
1441
+ readonly moduleId: string;
1442
+ readonly requestId: string;
1443
+ readonly identifier: LoginIdentifier;
1444
+ readonly registration: Registration["Type"];
1445
+ readonly replacement: PasswordReplacement;
1446
+ }, prepare: PreparePasswordCommit<PasswordRegistrationDecision, A>) => import("effect/Effect").Effect<PreparedCommit<A>, PasswordUnavailable, never>;
1447
+ }>;
1448
+ ClaimsForPassword: import("effect/Context").Service<MethodService<Id, "claims"> & {
1449
+ readonly claims: import("effect/Types").Invariant<Claims["Type"]>;
1450
+ }, {
1451
+ readonly resolve: (credential: PasswordCredentialSnapshot) => import("effect/Effect").Effect<Claims["Type"], PasswordUnavailable, never>;
1452
+ }>;
1453
+ layer: import("effect/Layer").Layer<MethodService<Id, "method"> & {
1454
+ readonly claims: import("effect/Types").Invariant<Claims["Type"]>;
1455
+ readonly registration: import("effect/Types").Invariant<Registration["Type"]>;
1456
+ }, PasswordMethodConfigurationError, AuthenticationAuthority | import("effect/Crypto").Crypto | LifecycleHooks | ModuleService<SessionId, "completion", Claims["Type"]> | ModuleService<SessionId, "strategy", Claims["Type"]> | NewPasswordCheck | PasswordActionEvidence | PasswordHashing | PasswordPersistence | ProofModule<`${Id}/reset`, {
1457
+ readonly _tag: "Identifier";
1458
+ readonly flowId: string;
1459
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1460
+ readonly identifier: LoginIdentifier;
1461
+ } | {
1462
+ readonly _tag: "Subject";
1463
+ readonly flowId: string;
1464
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1465
+ readonly revision: {
1466
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1467
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1468
+ readonly credentials: readonly {
1469
+ readonly credentialId: string;
1470
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1471
+ }[];
1472
+ };
1473
+ readonly identifier: LoginIdentifier;
1474
+ } | {
1475
+ readonly _tag: "IdentifierChange";
1476
+ readonly flowId: string;
1477
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1478
+ readonly revision: {
1479
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1480
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1481
+ readonly credentials: readonly {
1482
+ readonly credentialId: string;
1483
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1484
+ }[];
1485
+ };
1486
+ readonly identifier: LoginIdentifier;
1487
+ }> | Exclude<Registration["DecodingServices"], import("effect/Scope").Scope> | Exclude<Registration["EncodingServices"], import("effect/Scope").Scope> | (MethodService<Id, "claims"> & {
1488
+ readonly claims: import("effect/Types").Invariant<Claims["Type"]>;
1489
+ })>;
1490
+ handlersLayer: import("effect/Layer").Layer<OperationHandler<`${Id}/add-password`, {
1491
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
1492
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
1493
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
1494
+ }, {
1495
+ readonly invalidation: {
1496
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
1497
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
1498
+ readonly maximumExposureMillis: number;
1499
+ readonly oldAuthenticationEvidence: "rejected";
1500
+ };
1501
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/change-password`, {
1502
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
1503
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
1504
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
1505
+ readonly currentPassword: import("effect/Redacted").Redacted<string>;
1506
+ }, {
1507
+ readonly invalidation: {
1508
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
1509
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
1510
+ readonly maximumExposureMillis: number;
1511
+ readonly oldAuthenticationEvidence: "rejected";
1512
+ };
1513
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/cleanup`, {
1514
+ readonly limit: number;
1515
+ }, {
1516
+ readonly removed: number;
1517
+ readonly hasMore: boolean;
1518
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/complete-reset`, {
1519
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
1520
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
1521
+ readonly actionProof?: import("effect/Redacted").Redacted<string> | undefined;
1522
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
1523
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
1524
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
1525
+ readonly credential: import("effect/Redacted").Redacted<string>;
1526
+ }, {
1527
+ readonly invalidation: {
1528
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
1529
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
1530
+ readonly maximumExposureMillis: number;
1531
+ readonly oldAuthenticationEvidence: "rejected";
1532
+ };
1533
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/register`, {
1534
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
1535
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
1536
+ readonly newPassword: import("effect/Redacted").Redacted<string>;
1537
+ readonly registration: Registration["Type"];
1538
+ }, {
1539
+ readonly _tag: "RegistrationAccepted";
1540
+ } | {
1541
+ readonly _tag: "ProvisioningPending";
1542
+ readonly reference: string;
1543
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/request-reset`, {
1544
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
1545
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
1546
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
1547
+ readonly locale: string;
1548
+ }, {
1549
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
1550
+ readonly reference: {
1551
+ readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
1552
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
1553
+ readonly keyId: string;
1554
+ };
1555
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/sign-in`, {
1556
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
1557
+ readonly password: import("effect/Redacted").Redacted<string>;
1558
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
1559
+ }, {
1560
+ readonly _tag: "Authenticated";
1561
+ readonly session: {
1562
+ readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
1563
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1564
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1565
+ readonly assurance: AuthenticationAssurance;
1566
+ readonly issuedAt: import("effect/DateTime").Utc;
1567
+ readonly expiresAt: import("effect/DateTime").Utc;
1568
+ readonly absoluteExpiresAt: import("effect/DateTime").Utc;
1569
+ readonly claims: Claims["Type"];
1570
+ };
1571
+ } | {
1572
+ readonly _tag: "PendingAuthentication";
1573
+ readonly expiresAt: import("effect/DateTime").Utc;
1574
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/status`, void, {
1575
+ readonly hasPassword: boolean;
1576
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/verify-reset`, {
1577
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
1578
+ readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
1579
+ readonly reference: {
1580
+ readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
1581
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
1582
+ readonly keyId: string;
1583
+ };
1584
+ readonly secret: import("effect/Redacted").Redacted<string>;
1585
+ }, {
1586
+ readonly continuation: {
1587
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
1588
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
1589
+ readonly expiresAtMillis: number;
1590
+ };
1591
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>, never, PasswordPersistence | (MethodService<Id, "method"> & {
1592
+ readonly claims: import("effect/Types").Invariant<Claims["Type"]>;
1593
+ readonly registration: import("effect/Types").Invariant<Registration["Type"]>;
1594
+ }) | (MethodService<Id, "registration"> & {
1595
+ readonly registration: import("effect/Types").Invariant<Registration["Type"]>;
1596
+ })>;
1597
+ operations: {
1598
+ Register: AuthOperation<`${Id}/register`, import("effect/Schema").Struct<{
1599
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1600
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1601
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1602
+ readonly registration: import("effect/Schema").Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
1603
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"RegistrationAccepted", {}>, import("effect/Schema").TaggedStruct<"ProvisioningPending", {
1604
+ readonly reference: import("effect/Schema").NonEmptyString;
1605
+ }>]>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1606
+ readonly payload: import("effect/Schema").Struct<{
1607
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1608
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1609
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1610
+ readonly registration: import("effect/Schema").Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
1611
+ }>;
1612
+ readonly success: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"RegistrationAccepted", {}>, import("effect/Schema").TaggedStruct<"ProvisioningPending", {
1613
+ readonly reference: import("effect/Schema").NonEmptyString;
1614
+ }>]>;
1615
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1616
+ readonly access: "any";
1617
+ readonly exposure: "public";
1618
+ readonly replay: "idempotent";
1619
+ }>;
1620
+ SignIn: AuthOperation<`${Id}/sign-in`, import("effect/Schema").Struct<{
1621
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1622
+ readonly password: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1623
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1624
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Authenticated", {
1625
+ readonly session: import("effect/Schema").Struct<{
1626
+ readonly sessionId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SessionId">;
1627
+ readonly subjectId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SubjectId">;
1628
+ readonly securityRevision: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SecurityRevision">;
1629
+ readonly assurance: typeof AuthenticationAssurance;
1630
+ readonly issuedAt: import("effect/Schema").DateTimeUtcFromMillis;
1631
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
1632
+ readonly absoluteExpiresAt: import("effect/Schema").DateTimeUtcFromMillis;
1633
+ readonly claims: import("effect/Schema").Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
1634
+ }>;
1635
+ }>, import("effect/Schema").TaggedStruct<"PendingAuthentication", {
1636
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
1637
+ }>]>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1638
+ readonly payload: import("effect/Schema").Struct<{
1639
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1640
+ readonly password: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1641
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1642
+ }>;
1643
+ readonly success: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Authenticated", {
1644
+ readonly session: import("effect/Schema").Struct<{
1645
+ readonly sessionId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SessionId">;
1646
+ readonly subjectId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SubjectId">;
1647
+ readonly securityRevision: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SecurityRevision">;
1648
+ readonly assurance: typeof AuthenticationAssurance;
1649
+ readonly issuedAt: import("effect/Schema").DateTimeUtcFromMillis;
1650
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
1651
+ readonly absoluteExpiresAt: import("effect/Schema").DateTimeUtcFromMillis;
1652
+ readonly claims: import("effect/Schema").Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
1653
+ }>;
1654
+ }>, import("effect/Schema").TaggedStruct<"PendingAuthentication", {
1655
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
1656
+ }>]>;
1657
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1658
+ readonly access: "any";
1659
+ readonly exposure: "public";
1660
+ readonly replay: "non-idempotent";
1661
+ readonly credentials: true;
1662
+ }>;
1663
+ AddPassword: AuthOperation<`${Id}/add-password`, import("effect/Schema").Struct<{
1664
+ commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1665
+ newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1666
+ actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1667
+ }>, import("effect/Schema").Struct<{
1668
+ readonly invalidation: import("effect/Schema").Struct<{
1669
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1670
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1671
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1672
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1673
+ }>;
1674
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1675
+ readonly payload: import("effect/Schema").Struct<{
1676
+ commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1677
+ newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1678
+ actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1679
+ }>;
1680
+ readonly success: import("effect/Schema").Struct<{
1681
+ readonly invalidation: import("effect/Schema").Struct<{
1682
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1683
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1684
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1685
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1686
+ }>;
1687
+ }>;
1688
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1689
+ readonly access: "authenticated";
1690
+ readonly exposure: "public";
1691
+ readonly replay: "single-use";
1692
+ readonly credentials: true;
1693
+ }>;
1694
+ ChangePassword: AuthOperation<`${Id}/change-password`, import("effect/Schema").Struct<{
1695
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1696
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1697
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1698
+ readonly currentPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1699
+ }>, import("effect/Schema").Struct<{
1700
+ readonly invalidation: import("effect/Schema").Struct<{
1701
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1702
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1703
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1704
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1705
+ }>;
1706
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1707
+ readonly payload: import("effect/Schema").Struct<{
1708
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1709
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1710
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1711
+ readonly currentPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1712
+ }>;
1713
+ readonly success: import("effect/Schema").Struct<{
1714
+ readonly invalidation: import("effect/Schema").Struct<{
1715
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1716
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1717
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1718
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1719
+ }>;
1720
+ }>;
1721
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1722
+ readonly access: "authenticated";
1723
+ readonly exposure: "public";
1724
+ readonly replay: "single-use";
1725
+ readonly credentials: true;
1726
+ }>;
1727
+ RequestReset: AuthOperation<`${Id}/request-reset`, import("effect/Schema").Struct<{
1728
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1729
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1730
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
1731
+ readonly locale: import("effect/Schema").NonEmptyString;
1732
+ }>, import("effect/Schema").Struct<{
1733
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
1734
+ readonly reference: import("effect/Schema").Struct<{
1735
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
1736
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
1737
+ readonly keyId: import("effect/Schema").String;
1738
+ }>;
1739
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1740
+ readonly payload: import("effect/Schema").Struct<{
1741
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1742
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1743
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
1744
+ readonly locale: import("effect/Schema").NonEmptyString;
1745
+ }>;
1746
+ readonly success: import("effect/Schema").Struct<{
1747
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
1748
+ readonly reference: import("effect/Schema").Struct<{
1749
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
1750
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
1751
+ readonly keyId: import("effect/Schema").String;
1752
+ }>;
1753
+ }>;
1754
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1755
+ readonly access: "any";
1756
+ readonly exposure: "public";
1757
+ readonly replay: "idempotent";
1758
+ }>;
1759
+ VerifyReset: AuthOperation<`${Id}/verify-reset`, import("effect/Schema").Struct<{
1760
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1761
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1762
+ readonly reference: import("effect/Schema").Struct<{
1763
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
1764
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
1765
+ readonly keyId: import("effect/Schema").String;
1766
+ }>;
1767
+ readonly secret: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1768
+ }>, import("effect/Schema").Struct<{
1769
+ readonly continuation: import("effect/Schema").Struct<{
1770
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
1771
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
1772
+ readonly expiresAtMillis: import("effect/Schema").Int;
1773
+ }>;
1774
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1775
+ readonly payload: import("effect/Schema").Struct<{
1776
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1777
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1778
+ readonly reference: import("effect/Schema").Struct<{
1779
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
1780
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
1781
+ readonly keyId: import("effect/Schema").String;
1782
+ }>;
1783
+ readonly secret: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1784
+ }>;
1785
+ readonly success: import("effect/Schema").Struct<{
1786
+ readonly continuation: import("effect/Schema").Struct<{
1787
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
1788
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
1789
+ readonly expiresAtMillis: import("effect/Schema").Int;
1790
+ }>;
1791
+ }>;
1792
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1793
+ readonly access: "any";
1794
+ readonly exposure: "public";
1795
+ readonly replay: "single-use";
1796
+ readonly credentials: true;
1797
+ }>;
1798
+ CompleteReset: AuthOperation<`${Id}/complete-reset`, import("effect/Schema").Struct<{
1799
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1800
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1801
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1802
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1803
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1804
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
1805
+ readonly credential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1806
+ }>, import("effect/Schema").Struct<{
1807
+ readonly invalidation: import("effect/Schema").Struct<{
1808
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1809
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1810
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1811
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1812
+ }>;
1813
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1814
+ readonly payload: import("effect/Schema").Struct<{
1815
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
1816
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1817
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
1818
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
1819
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
1820
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
1821
+ readonly credential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
1822
+ }>;
1823
+ readonly success: import("effect/Schema").Struct<{
1824
+ readonly invalidation: import("effect/Schema").Struct<{
1825
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
1826
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
1827
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
1828
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
1829
+ }>;
1830
+ }>;
1831
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1832
+ readonly access: "any";
1833
+ readonly exposure: "public";
1834
+ readonly replay: "single-use";
1835
+ readonly credentials: true;
1836
+ }>;
1837
+ PasswordStatus: AuthOperation<`${Id}/status`, import("effect/Schema").Void, import("effect/Schema").Struct<{
1838
+ readonly hasPassword: import("effect/Schema").Boolean;
1839
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1840
+ readonly payload: import("effect/Schema").Void;
1841
+ readonly success: import("effect/Schema").Struct<{
1842
+ readonly hasPassword: import("effect/Schema").Boolean;
1843
+ }>;
1844
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1845
+ readonly access: "authenticated";
1846
+ readonly exposure: "public";
1847
+ readonly replay: "read-only";
1848
+ }>;
1849
+ CleanupAttempts: AuthOperation<`${Id}/cleanup`, import("effect/Schema").Struct<{
1850
+ readonly limit: import("effect/Schema").Int;
1851
+ }>, import("effect/Schema").Struct<{
1852
+ readonly removed: import("effect/Schema").Natural;
1853
+ readonly hasMore: import("effect/Schema").Boolean;
1854
+ }>, import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
1855
+ readonly payload: import("effect/Schema").Struct<{
1856
+ readonly limit: import("effect/Schema").Int;
1857
+ }>;
1858
+ readonly success: import("effect/Schema").Struct<{
1859
+ readonly removed: import("effect/Schema").Natural;
1860
+ readonly hasMore: import("effect/Schema").Boolean;
1861
+ }>;
1862
+ readonly error: import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
1863
+ readonly access: "system";
1864
+ readonly replay: "idempotent";
1865
+ }>;
1866
+ };
1867
+ reset: Readonly<{
1868
+ Proofs: import("effect/Context").Service<ProofModule<`${Id}/reset`, {
1869
+ readonly _tag: "Identifier";
1870
+ readonly flowId: string;
1871
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1872
+ readonly identifier: LoginIdentifier;
1873
+ } | {
1874
+ readonly _tag: "Subject";
1875
+ readonly flowId: string;
1876
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1877
+ readonly revision: {
1878
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1879
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1880
+ readonly credentials: readonly {
1881
+ readonly credentialId: string;
1882
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1883
+ }[];
1884
+ };
1885
+ readonly identifier: LoginIdentifier;
1886
+ } | {
1887
+ readonly _tag: "IdentifierChange";
1888
+ readonly flowId: string;
1889
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1890
+ readonly revision: {
1891
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1892
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1893
+ readonly credentials: readonly {
1894
+ readonly credentialId: string;
1895
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1896
+ }[];
1897
+ };
1898
+ readonly identifier: LoginIdentifier;
1899
+ }>, {
1900
+ readonly planIssue: (input: {
1901
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
1902
+ readonly binding: {
1903
+ readonly _tag: "Identifier";
1904
+ readonly flowId: string;
1905
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1906
+ readonly identifier: LoginIdentifier;
1907
+ } | {
1908
+ readonly _tag: "Subject";
1909
+ readonly flowId: string;
1910
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1911
+ readonly revision: {
1912
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1913
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1914
+ readonly credentials: readonly {
1915
+ readonly credentialId: string;
1916
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1917
+ }[];
1918
+ };
1919
+ readonly identifier: LoginIdentifier;
1920
+ } | {
1921
+ readonly _tag: "IdentifierChange";
1922
+ readonly flowId: string;
1923
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1924
+ readonly revision: {
1925
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1926
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1927
+ readonly credentials: readonly {
1928
+ readonly credentialId: string;
1929
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1930
+ }[];
1931
+ };
1932
+ readonly identifier: LoginIdentifier;
1933
+ };
1934
+ readonly locale: string;
1935
+ readonly eligible: boolean;
1936
+ } & {
1937
+ readonly supersedes?: ProofId;
1938
+ }) => import("effect/Effect").Effect<ProofIssuePlan, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
1939
+ readonly prepareIssue: (input: {
1940
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
1941
+ readonly binding: {
1942
+ readonly _tag: "Identifier";
1943
+ readonly flowId: string;
1944
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1945
+ readonly identifier: LoginIdentifier;
1946
+ } | {
1947
+ readonly _tag: "Subject";
1948
+ readonly flowId: string;
1949
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1950
+ readonly revision: {
1951
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1952
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1953
+ readonly credentials: readonly {
1954
+ readonly credentialId: string;
1955
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1956
+ }[];
1957
+ };
1958
+ readonly identifier: LoginIdentifier;
1959
+ } | {
1960
+ readonly _tag: "IdentifierChange";
1961
+ readonly flowId: string;
1962
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1963
+ readonly revision: {
1964
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1965
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1966
+ readonly credentials: readonly {
1967
+ readonly credentialId: string;
1968
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1969
+ }[];
1970
+ };
1971
+ readonly identifier: LoginIdentifier;
1972
+ };
1973
+ readonly locale: string;
1974
+ readonly eligible: boolean;
1975
+ } & {
1976
+ readonly supersedes?: ProofId;
1977
+ }) => import("effect/Effect").Effect<PreparedCommit<PreparedProofDispatch>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
1978
+ readonly prepareAttempt: (input: {
1979
+ readonly reference: {
1980
+ readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
1981
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
1982
+ readonly keyId: string;
1983
+ };
1984
+ readonly binding: {
1985
+ readonly _tag: "Identifier";
1986
+ readonly flowId: string;
1987
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1988
+ readonly identifier: LoginIdentifier;
1989
+ } | {
1990
+ readonly _tag: "Subject";
1991
+ readonly flowId: string;
1992
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
1993
+ readonly revision: {
1994
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1995
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1996
+ readonly credentials: readonly {
1997
+ readonly credentialId: string;
1998
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1999
+ }[];
2000
+ };
2001
+ readonly identifier: LoginIdentifier;
2002
+ } | {
2003
+ readonly _tag: "IdentifierChange";
2004
+ readonly flowId: string;
2005
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2006
+ readonly revision: {
2007
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2008
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2009
+ readonly credentials: readonly {
2010
+ readonly credentialId: string;
2011
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2012
+ }[];
2013
+ };
2014
+ readonly identifier: LoginIdentifier;
2015
+ };
2016
+ readonly credential: import("effect/Redacted").Redacted<string>;
2017
+ }) => import("effect/Effect").Effect<PreparedCommit<AuthOperationResult<{
2018
+ readonly _tag: "Accepted";
2019
+ readonly continuation: {
2020
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
2021
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
2022
+ readonly expiresAtMillis: number;
2023
+ };
2024
+ }> | {
2025
+ readonly value: {
2026
+ readonly _tag: "Rejected";
2027
+ };
2028
+ readonly credentialCommands: readonly [];
2029
+ }>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable, never>;
2030
+ readonly planComplete: (input: {
2031
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
2032
+ readonly binding: {
2033
+ readonly _tag: "Identifier";
2034
+ readonly flowId: string;
2035
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2036
+ readonly identifier: LoginIdentifier;
2037
+ } | {
2038
+ readonly _tag: "Subject";
2039
+ readonly flowId: string;
2040
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2041
+ readonly revision: {
2042
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2043
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2044
+ readonly credentials: readonly {
2045
+ readonly credentialId: string;
2046
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2047
+ }[];
2048
+ };
2049
+ readonly identifier: LoginIdentifier;
2050
+ } | {
2051
+ readonly _tag: "IdentifierChange";
2052
+ readonly flowId: string;
2053
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2054
+ readonly revision: {
2055
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2056
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2057
+ readonly credentials: readonly {
2058
+ readonly credentialId: string;
2059
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2060
+ }[];
2061
+ };
2062
+ readonly identifier: LoginIdentifier;
2063
+ };
2064
+ readonly credential: import("effect/Redacted").Redacted<string>;
2065
+ }) => import("effect/Effect").Effect<ProofCompletionPlan, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
2066
+ readonly prepareComplete: (input: {
2067
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
2068
+ readonly binding: {
2069
+ readonly _tag: "Identifier";
2070
+ readonly flowId: string;
2071
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2072
+ readonly identifier: LoginIdentifier;
2073
+ } | {
2074
+ readonly _tag: "Subject";
2075
+ readonly flowId: string;
2076
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2077
+ readonly revision: {
2078
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2079
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2080
+ readonly credentials: readonly {
2081
+ readonly credentialId: string;
2082
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2083
+ }[];
2084
+ };
2085
+ readonly identifier: LoginIdentifier;
2086
+ } | {
2087
+ readonly _tag: "IdentifierChange";
2088
+ readonly flowId: string;
2089
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2090
+ readonly revision: {
2091
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2092
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2093
+ readonly credentials: readonly {
2094
+ readonly credentialId: string;
2095
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2096
+ }[];
2097
+ };
2098
+ readonly identifier: LoginIdentifier;
2099
+ };
2100
+ readonly credential: import("effect/Redacted").Redacted<string>;
2101
+ }) => import("effect/Effect").Effect<PreparedCommit<ProofCompletionDecision>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
2102
+ readonly cancel: (binding: {
2103
+ readonly _tag: "Identifier";
2104
+ readonly flowId: string;
2105
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2106
+ readonly identifier: LoginIdentifier;
2107
+ } | {
2108
+ readonly _tag: "Subject";
2109
+ readonly flowId: string;
2110
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2111
+ readonly revision: {
2112
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2113
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2114
+ readonly credentials: readonly {
2115
+ readonly credentialId: string;
2116
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2117
+ }[];
2118
+ };
2119
+ readonly identifier: LoginIdentifier;
2120
+ } | {
2121
+ readonly _tag: "IdentifierChange";
2122
+ readonly flowId: string;
2123
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2124
+ readonly revision: {
2125
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2126
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2127
+ readonly credentials: readonly {
2128
+ readonly credentialId: string;
2129
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2130
+ }[];
2131
+ };
2132
+ readonly identifier: LoginIdentifier;
2133
+ }) => import("effect/Effect").Effect<PreparedCommit<void>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
2134
+ readonly cleanup: (limit: number) => import("effect/Effect").Effect<PreparedCommit<ProofCleanupResult>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
2135
+ }>;
2136
+ emailLayer: import("effect/Layer").Layer<ProofModule<`${Id}/reset`, {
2137
+ readonly _tag: "Identifier";
2138
+ readonly flowId: string;
2139
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2140
+ readonly identifier: LoginIdentifier;
2141
+ } | {
2142
+ readonly _tag: "Subject";
2143
+ readonly flowId: string;
2144
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2145
+ readonly revision: {
2146
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2147
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2148
+ readonly credentials: readonly {
2149
+ readonly credentialId: string;
2150
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2151
+ }[];
2152
+ };
2153
+ readonly identifier: LoginIdentifier;
2154
+ } | {
2155
+ readonly _tag: "IdentifierChange";
2156
+ readonly flowId: string;
2157
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2158
+ readonly revision: {
2159
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2160
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2161
+ readonly credentials: readonly {
2162
+ readonly credentialId: string;
2163
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2164
+ }[];
2165
+ };
2166
+ readonly identifier: LoginIdentifier;
2167
+ }>, ProofConfigurationError, import("effect/Crypto").Crypto | EmailProofDelivery | LifecycleHooks | ProofPersistence | SubtleCrypto>;
2168
+ smsLayer: import("effect/Layer").Layer<ProofModule<`${Id}/reset`, {
2169
+ readonly _tag: "Identifier";
2170
+ readonly flowId: string;
2171
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2172
+ readonly identifier: LoginIdentifier;
2173
+ } | {
2174
+ readonly _tag: "Subject";
2175
+ readonly flowId: string;
2176
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2177
+ readonly revision: {
2178
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2179
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2180
+ readonly credentials: readonly {
2181
+ readonly credentialId: string;
2182
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2183
+ }[];
2184
+ };
2185
+ readonly identifier: LoginIdentifier;
2186
+ } | {
2187
+ readonly _tag: "IdentifierChange";
2188
+ readonly flowId: string;
2189
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2190
+ readonly revision: {
2191
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2192
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2193
+ readonly credentials: readonly {
2194
+ readonly credentialId: string;
2195
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2196
+ }[];
2197
+ };
2198
+ readonly identifier: LoginIdentifier;
2199
+ }>, ProofConfigurationError, import("effect/Crypto").Crypto | LifecycleHooks | ProofPersistence | SmsProofDelivery | SubtleCrypto>;
2200
+ handlersLayer: import("effect/Layer").Layer<OperationHandler<`${Id}/reset/attempt`, {
2201
+ readonly reference: {
2202
+ readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
2203
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
2204
+ readonly keyId: string;
2205
+ };
2206
+ readonly binding: {
2207
+ readonly _tag: "Identifier";
2208
+ readonly flowId: string;
2209
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2210
+ readonly identifier: LoginIdentifier;
2211
+ } | {
2212
+ readonly _tag: "Subject";
2213
+ readonly flowId: string;
2214
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2215
+ readonly revision: {
2216
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2217
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2218
+ readonly credentials: readonly {
2219
+ readonly credentialId: string;
2220
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2221
+ }[];
2222
+ };
2223
+ readonly identifier: LoginIdentifier;
2224
+ } | {
2225
+ readonly _tag: "IdentifierChange";
2226
+ readonly flowId: string;
2227
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2228
+ readonly revision: {
2229
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2230
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2231
+ readonly credentials: readonly {
2232
+ readonly credentialId: string;
2233
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2234
+ }[];
2235
+ };
2236
+ readonly identifier: LoginIdentifier;
2237
+ };
2238
+ readonly credential: import("effect/Redacted").Redacted<string>;
2239
+ }, {
2240
+ readonly _tag: "Accepted";
2241
+ readonly continuation: {
2242
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
2243
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
2244
+ readonly expiresAtMillis: number;
2245
+ };
2246
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${Id}/reset/cancel`, {
2247
+ readonly binding: {
2248
+ readonly _tag: "Identifier";
2249
+ readonly flowId: string;
2250
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2251
+ readonly identifier: LoginIdentifier;
2252
+ } | {
2253
+ readonly _tag: "Subject";
2254
+ readonly flowId: string;
2255
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2256
+ readonly revision: {
2257
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2258
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2259
+ readonly credentials: readonly {
2260
+ readonly credentialId: string;
2261
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2262
+ }[];
2263
+ };
2264
+ readonly identifier: LoginIdentifier;
2265
+ } | {
2266
+ readonly _tag: "IdentifierChange";
2267
+ readonly flowId: string;
2268
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2269
+ readonly revision: {
2270
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2271
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2272
+ readonly credentials: readonly {
2273
+ readonly credentialId: string;
2274
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2275
+ }[];
2276
+ };
2277
+ readonly identifier: LoginIdentifier;
2278
+ };
2279
+ }, void, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${Id}/reset/cleanup`, {
2280
+ readonly limit: number;
2281
+ }, {
2282
+ readonly removed: number;
2283
+ readonly hasMore: boolean;
2284
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${Id}/reset/complete`, {
2285
+ readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
2286
+ readonly binding: {
2287
+ readonly _tag: "Identifier";
2288
+ readonly flowId: string;
2289
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2290
+ readonly identifier: LoginIdentifier;
2291
+ } | {
2292
+ readonly _tag: "Subject";
2293
+ readonly flowId: string;
2294
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2295
+ readonly revision: {
2296
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2297
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2298
+ readonly credentials: readonly {
2299
+ readonly credentialId: string;
2300
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2301
+ }[];
2302
+ };
2303
+ readonly identifier: LoginIdentifier;
2304
+ } | {
2305
+ readonly _tag: "IdentifierChange";
2306
+ readonly flowId: string;
2307
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2308
+ readonly revision: {
2309
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2310
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2311
+ readonly credentials: readonly {
2312
+ readonly credentialId: string;
2313
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2314
+ }[];
2315
+ };
2316
+ readonly identifier: LoginIdentifier;
2317
+ };
2318
+ readonly credential: import("effect/Redacted").Redacted<string>;
2319
+ }, void, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${Id}/reset/request`, {
2320
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
2321
+ readonly binding: {
2322
+ readonly _tag: "Identifier";
2323
+ readonly flowId: string;
2324
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2325
+ readonly identifier: LoginIdentifier;
2326
+ } | {
2327
+ readonly _tag: "Subject";
2328
+ readonly flowId: string;
2329
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2330
+ readonly revision: {
2331
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2332
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2333
+ readonly credentials: readonly {
2334
+ readonly credentialId: string;
2335
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2336
+ }[];
2337
+ };
2338
+ readonly identifier: LoginIdentifier;
2339
+ } | {
2340
+ readonly _tag: "IdentifierChange";
2341
+ readonly flowId: string;
2342
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2343
+ readonly revision: {
2344
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2345
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2346
+ readonly credentials: readonly {
2347
+ readonly credentialId: string;
2348
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2349
+ }[];
2350
+ };
2351
+ readonly identifier: LoginIdentifier;
2352
+ };
2353
+ readonly locale: string;
2354
+ readonly eligible: boolean;
2355
+ }, {
2356
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
2357
+ readonly reference: {
2358
+ readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
2359
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
2360
+ readonly keyId: string;
2361
+ };
2362
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${Id}/reset/resend`, {
2363
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
2364
+ readonly binding: {
2365
+ readonly _tag: "Identifier";
2366
+ readonly flowId: string;
2367
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2368
+ readonly identifier: LoginIdentifier;
2369
+ } | {
2370
+ readonly _tag: "Subject";
2371
+ readonly flowId: string;
2372
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2373
+ readonly revision: {
2374
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2375
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2376
+ readonly credentials: readonly {
2377
+ readonly credentialId: string;
2378
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2379
+ }[];
2380
+ };
2381
+ readonly identifier: LoginIdentifier;
2382
+ } | {
2383
+ readonly _tag: "IdentifierChange";
2384
+ readonly flowId: string;
2385
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2386
+ readonly revision: {
2387
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2388
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2389
+ readonly credentials: readonly {
2390
+ readonly credentialId: string;
2391
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2392
+ }[];
2393
+ };
2394
+ readonly identifier: LoginIdentifier;
2395
+ };
2396
+ readonly locale: string;
2397
+ readonly eligible: boolean;
2398
+ readonly supersedes: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
2399
+ }, {
2400
+ readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
2401
+ readonly reference: {
2402
+ readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
2403
+ readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
2404
+ readonly keyId: string;
2405
+ };
2406
+ }, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>, never, ProofModule<`${Id}/reset`, {
2407
+ readonly _tag: "Identifier";
2408
+ readonly flowId: string;
2409
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2410
+ readonly identifier: LoginIdentifier;
2411
+ } | {
2412
+ readonly _tag: "Subject";
2413
+ readonly flowId: string;
2414
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2415
+ readonly revision: {
2416
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2417
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2418
+ readonly credentials: readonly {
2419
+ readonly credentialId: string;
2420
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2421
+ }[];
2422
+ };
2423
+ readonly identifier: LoginIdentifier;
2424
+ } | {
2425
+ readonly _tag: "IdentifierChange";
2426
+ readonly flowId: string;
2427
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2428
+ readonly revision: {
2429
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2430
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2431
+ readonly credentials: readonly {
2432
+ readonly credentialId: string;
2433
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2434
+ }[];
2435
+ };
2436
+ readonly identifier: LoginIdentifier;
2437
+ }>>;
2438
+ operations: {
2439
+ Request: AuthOperation<`${Id}/reset/request`, import("effect/Schema").Struct<{
2440
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
2441
+ readonly binding: import("effect/Schema").Codec<{
2442
+ readonly _tag: "Identifier";
2443
+ readonly flowId: string;
2444
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2445
+ readonly identifier: LoginIdentifier;
2446
+ } | {
2447
+ readonly _tag: "Subject";
2448
+ readonly flowId: string;
2449
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2450
+ readonly revision: {
2451
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2452
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2453
+ readonly credentials: readonly {
2454
+ readonly credentialId: string;
2455
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2456
+ }[];
2457
+ };
2458
+ readonly identifier: LoginIdentifier;
2459
+ } | {
2460
+ readonly _tag: "IdentifierChange";
2461
+ readonly flowId: string;
2462
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2463
+ readonly revision: {
2464
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2465
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2466
+ readonly credentials: readonly {
2467
+ readonly credentialId: string;
2468
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2469
+ }[];
2470
+ };
2471
+ readonly identifier: LoginIdentifier;
2472
+ }, {
2473
+ readonly _tag: "Identifier";
2474
+ readonly flowId: string;
2475
+ readonly contextDigest: string;
2476
+ readonly identifier: {
2477
+ readonly namespace: string;
2478
+ readonly value: string;
2479
+ };
2480
+ } | {
2481
+ readonly _tag: "Subject";
2482
+ readonly flowId: string;
2483
+ readonly contextDigest: string;
2484
+ readonly revision: {
2485
+ readonly subjectId: string;
2486
+ readonly securityRevision: string;
2487
+ readonly credentials: readonly {
2488
+ readonly credentialId: string;
2489
+ readonly revision: string;
2490
+ }[];
2491
+ };
2492
+ readonly identifier: {
2493
+ readonly namespace: string;
2494
+ readonly value: string;
2495
+ };
2496
+ } | {
2497
+ readonly _tag: "IdentifierChange";
2498
+ readonly flowId: string;
2499
+ readonly contextDigest: string;
2500
+ readonly revision: {
2501
+ readonly subjectId: string;
2502
+ readonly securityRevision: string;
2503
+ readonly credentials: readonly {
2504
+ readonly credentialId: string;
2505
+ readonly revision: string;
2506
+ }[];
2507
+ };
2508
+ readonly identifier: {
2509
+ readonly namespace: string;
2510
+ readonly value: string;
2511
+ };
2512
+ }, never, never>;
2513
+ readonly locale: import("effect/Schema").String;
2514
+ readonly eligible: import("effect/Schema").Boolean;
2515
+ }>, import("effect/Schema").Struct<{
2516
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
2517
+ readonly reference: import("effect/Schema").Struct<{
2518
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
2519
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
2520
+ readonly keyId: import("effect/Schema").String;
2521
+ }>;
2522
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
2523
+ readonly payload: import("effect/Schema").Struct<{
2524
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
2525
+ readonly binding: import("effect/Schema").Codec<{
2526
+ readonly _tag: "Identifier";
2527
+ readonly flowId: string;
2528
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2529
+ readonly identifier: LoginIdentifier;
2530
+ } | {
2531
+ readonly _tag: "Subject";
2532
+ readonly flowId: string;
2533
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2534
+ readonly revision: {
2535
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2536
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2537
+ readonly credentials: readonly {
2538
+ readonly credentialId: string;
2539
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2540
+ }[];
2541
+ };
2542
+ readonly identifier: LoginIdentifier;
2543
+ } | {
2544
+ readonly _tag: "IdentifierChange";
2545
+ readonly flowId: string;
2546
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2547
+ readonly revision: {
2548
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2549
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2550
+ readonly credentials: readonly {
2551
+ readonly credentialId: string;
2552
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2553
+ }[];
2554
+ };
2555
+ readonly identifier: LoginIdentifier;
2556
+ }, {
2557
+ readonly _tag: "Identifier";
2558
+ readonly flowId: string;
2559
+ readonly contextDigest: string;
2560
+ readonly identifier: {
2561
+ readonly namespace: string;
2562
+ readonly value: string;
2563
+ };
2564
+ } | {
2565
+ readonly _tag: "Subject";
2566
+ readonly flowId: string;
2567
+ readonly contextDigest: string;
2568
+ readonly revision: {
2569
+ readonly subjectId: string;
2570
+ readonly securityRevision: string;
2571
+ readonly credentials: readonly {
2572
+ readonly credentialId: string;
2573
+ readonly revision: string;
2574
+ }[];
2575
+ };
2576
+ readonly identifier: {
2577
+ readonly namespace: string;
2578
+ readonly value: string;
2579
+ };
2580
+ } | {
2581
+ readonly _tag: "IdentifierChange";
2582
+ readonly flowId: string;
2583
+ readonly contextDigest: string;
2584
+ readonly revision: {
2585
+ readonly subjectId: string;
2586
+ readonly securityRevision: string;
2587
+ readonly credentials: readonly {
2588
+ readonly credentialId: string;
2589
+ readonly revision: string;
2590
+ }[];
2591
+ };
2592
+ readonly identifier: {
2593
+ readonly namespace: string;
2594
+ readonly value: string;
2595
+ };
2596
+ }, never, never>;
2597
+ readonly locale: import("effect/Schema").String;
2598
+ readonly eligible: import("effect/Schema").Boolean;
2599
+ }>;
2600
+ readonly success: import("effect/Schema").Struct<{
2601
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
2602
+ readonly reference: import("effect/Schema").Struct<{
2603
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
2604
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
2605
+ readonly keyId: import("effect/Schema").String;
2606
+ }>;
2607
+ }>;
2608
+ readonly error: import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
2609
+ readonly access: "system";
2610
+ readonly replay: "idempotent";
2611
+ }>;
2612
+ Resend: AuthOperation<`${Id}/reset/resend`, import("effect/Schema").Struct<{
2613
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
2614
+ readonly binding: import("effect/Schema").Codec<{
2615
+ readonly _tag: "Identifier";
2616
+ readonly flowId: string;
2617
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2618
+ readonly identifier: LoginIdentifier;
2619
+ } | {
2620
+ readonly _tag: "Subject";
2621
+ readonly flowId: string;
2622
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2623
+ readonly revision: {
2624
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2625
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2626
+ readonly credentials: readonly {
2627
+ readonly credentialId: string;
2628
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2629
+ }[];
2630
+ };
2631
+ readonly identifier: LoginIdentifier;
2632
+ } | {
2633
+ readonly _tag: "IdentifierChange";
2634
+ readonly flowId: string;
2635
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2636
+ readonly revision: {
2637
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2638
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2639
+ readonly credentials: readonly {
2640
+ readonly credentialId: string;
2641
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2642
+ }[];
2643
+ };
2644
+ readonly identifier: LoginIdentifier;
2645
+ }, {
2646
+ readonly _tag: "Identifier";
2647
+ readonly flowId: string;
2648
+ readonly contextDigest: string;
2649
+ readonly identifier: {
2650
+ readonly namespace: string;
2651
+ readonly value: string;
2652
+ };
2653
+ } | {
2654
+ readonly _tag: "Subject";
2655
+ readonly flowId: string;
2656
+ readonly contextDigest: string;
2657
+ readonly revision: {
2658
+ readonly subjectId: string;
2659
+ readonly securityRevision: string;
2660
+ readonly credentials: readonly {
2661
+ readonly credentialId: string;
2662
+ readonly revision: string;
2663
+ }[];
2664
+ };
2665
+ readonly identifier: {
2666
+ readonly namespace: string;
2667
+ readonly value: string;
2668
+ };
2669
+ } | {
2670
+ readonly _tag: "IdentifierChange";
2671
+ readonly flowId: string;
2672
+ readonly contextDigest: string;
2673
+ readonly revision: {
2674
+ readonly subjectId: string;
2675
+ readonly securityRevision: string;
2676
+ readonly credentials: readonly {
2677
+ readonly credentialId: string;
2678
+ readonly revision: string;
2679
+ }[];
2680
+ };
2681
+ readonly identifier: {
2682
+ readonly namespace: string;
2683
+ readonly value: string;
2684
+ };
2685
+ }, never, never>;
2686
+ readonly locale: import("effect/Schema").String;
2687
+ readonly eligible: import("effect/Schema").Boolean;
2688
+ readonly supersedes: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
2689
+ }>, import("effect/Schema").Struct<{
2690
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
2691
+ readonly reference: import("effect/Schema").Struct<{
2692
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
2693
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
2694
+ readonly keyId: import("effect/Schema").String;
2695
+ }>;
2696
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
2697
+ readonly payload: import("effect/Schema").Struct<{
2698
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
2699
+ readonly binding: import("effect/Schema").Codec<{
2700
+ readonly _tag: "Identifier";
2701
+ readonly flowId: string;
2702
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2703
+ readonly identifier: LoginIdentifier;
2704
+ } | {
2705
+ readonly _tag: "Subject";
2706
+ readonly flowId: string;
2707
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2708
+ readonly revision: {
2709
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2710
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2711
+ readonly credentials: readonly {
2712
+ readonly credentialId: string;
2713
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2714
+ }[];
2715
+ };
2716
+ readonly identifier: LoginIdentifier;
2717
+ } | {
2718
+ readonly _tag: "IdentifierChange";
2719
+ readonly flowId: string;
2720
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2721
+ readonly revision: {
2722
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2723
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2724
+ readonly credentials: readonly {
2725
+ readonly credentialId: string;
2726
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2727
+ }[];
2728
+ };
2729
+ readonly identifier: LoginIdentifier;
2730
+ }, {
2731
+ readonly _tag: "Identifier";
2732
+ readonly flowId: string;
2733
+ readonly contextDigest: string;
2734
+ readonly identifier: {
2735
+ readonly namespace: string;
2736
+ readonly value: string;
2737
+ };
2738
+ } | {
2739
+ readonly _tag: "Subject";
2740
+ readonly flowId: string;
2741
+ readonly contextDigest: string;
2742
+ readonly revision: {
2743
+ readonly subjectId: string;
2744
+ readonly securityRevision: string;
2745
+ readonly credentials: readonly {
2746
+ readonly credentialId: string;
2747
+ readonly revision: string;
2748
+ }[];
2749
+ };
2750
+ readonly identifier: {
2751
+ readonly namespace: string;
2752
+ readonly value: string;
2753
+ };
2754
+ } | {
2755
+ readonly _tag: "IdentifierChange";
2756
+ readonly flowId: string;
2757
+ readonly contextDigest: string;
2758
+ readonly revision: {
2759
+ readonly subjectId: string;
2760
+ readonly securityRevision: string;
2761
+ readonly credentials: readonly {
2762
+ readonly credentialId: string;
2763
+ readonly revision: string;
2764
+ }[];
2765
+ };
2766
+ readonly identifier: {
2767
+ readonly namespace: string;
2768
+ readonly value: string;
2769
+ };
2770
+ }, never, never>;
2771
+ readonly locale: import("effect/Schema").String;
2772
+ readonly eligible: import("effect/Schema").Boolean;
2773
+ readonly supersedes: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
2774
+ }>;
2775
+ readonly success: import("effect/Schema").Struct<{
2776
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
2777
+ readonly reference: import("effect/Schema").Struct<{
2778
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
2779
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
2780
+ readonly keyId: import("effect/Schema").String;
2781
+ }>;
2782
+ }>;
2783
+ readonly error: import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
2784
+ readonly access: "system";
2785
+ readonly replay: "idempotent";
2786
+ }>;
2787
+ Attempt: AuthOperation<`${Id}/reset/attempt`, import("effect/Schema").Struct<{
2788
+ readonly reference: import("effect/Schema").Struct<{
2789
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
2790
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
2791
+ readonly keyId: import("effect/Schema").String;
2792
+ }>;
2793
+ readonly binding: import("effect/Schema").Codec<{
2794
+ readonly _tag: "Identifier";
2795
+ readonly flowId: string;
2796
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2797
+ readonly identifier: LoginIdentifier;
2798
+ } | {
2799
+ readonly _tag: "Subject";
2800
+ readonly flowId: string;
2801
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2802
+ readonly revision: {
2803
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2804
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2805
+ readonly credentials: readonly {
2806
+ readonly credentialId: string;
2807
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2808
+ }[];
2809
+ };
2810
+ readonly identifier: LoginIdentifier;
2811
+ } | {
2812
+ readonly _tag: "IdentifierChange";
2813
+ readonly flowId: string;
2814
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2815
+ readonly revision: {
2816
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2817
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2818
+ readonly credentials: readonly {
2819
+ readonly credentialId: string;
2820
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2821
+ }[];
2822
+ };
2823
+ readonly identifier: LoginIdentifier;
2824
+ }, {
2825
+ readonly _tag: "Identifier";
2826
+ readonly flowId: string;
2827
+ readonly contextDigest: string;
2828
+ readonly identifier: {
2829
+ readonly namespace: string;
2830
+ readonly value: string;
2831
+ };
2832
+ } | {
2833
+ readonly _tag: "Subject";
2834
+ readonly flowId: string;
2835
+ readonly contextDigest: string;
2836
+ readonly revision: {
2837
+ readonly subjectId: string;
2838
+ readonly securityRevision: string;
2839
+ readonly credentials: readonly {
2840
+ readonly credentialId: string;
2841
+ readonly revision: string;
2842
+ }[];
2843
+ };
2844
+ readonly identifier: {
2845
+ readonly namespace: string;
2846
+ readonly value: string;
2847
+ };
2848
+ } | {
2849
+ readonly _tag: "IdentifierChange";
2850
+ readonly flowId: string;
2851
+ readonly contextDigest: string;
2852
+ readonly revision: {
2853
+ readonly subjectId: string;
2854
+ readonly securityRevision: string;
2855
+ readonly credentials: readonly {
2856
+ readonly credentialId: string;
2857
+ readonly revision: string;
2858
+ }[];
2859
+ };
2860
+ readonly identifier: {
2861
+ readonly namespace: string;
2862
+ readonly value: string;
2863
+ };
2864
+ }, never, never>;
2865
+ readonly credential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
2866
+ }>, import("effect/Schema").TaggedStruct<"Accepted", {
2867
+ readonly continuation: import("effect/Schema").Struct<{
2868
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
2869
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
2870
+ readonly expiresAtMillis: import("effect/Schema").Int;
2871
+ }>;
2872
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
2873
+ readonly payload: import("effect/Schema").Struct<{
2874
+ readonly reference: import("effect/Schema").Struct<{
2875
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
2876
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
2877
+ readonly keyId: import("effect/Schema").String;
2878
+ }>;
2879
+ readonly binding: import("effect/Schema").Codec<{
2880
+ readonly _tag: "Identifier";
2881
+ readonly flowId: string;
2882
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2883
+ readonly identifier: LoginIdentifier;
2884
+ } | {
2885
+ readonly _tag: "Subject";
2886
+ readonly flowId: string;
2887
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2888
+ readonly revision: {
2889
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2890
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2891
+ readonly credentials: readonly {
2892
+ readonly credentialId: string;
2893
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2894
+ }[];
2895
+ };
2896
+ readonly identifier: LoginIdentifier;
2897
+ } | {
2898
+ readonly _tag: "IdentifierChange";
2899
+ readonly flowId: string;
2900
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2901
+ readonly revision: {
2902
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2903
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2904
+ readonly credentials: readonly {
2905
+ readonly credentialId: string;
2906
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2907
+ }[];
2908
+ };
2909
+ readonly identifier: LoginIdentifier;
2910
+ }, {
2911
+ readonly _tag: "Identifier";
2912
+ readonly flowId: string;
2913
+ readonly contextDigest: string;
2914
+ readonly identifier: {
2915
+ readonly namespace: string;
2916
+ readonly value: string;
2917
+ };
2918
+ } | {
2919
+ readonly _tag: "Subject";
2920
+ readonly flowId: string;
2921
+ readonly contextDigest: string;
2922
+ readonly revision: {
2923
+ readonly subjectId: string;
2924
+ readonly securityRevision: string;
2925
+ readonly credentials: readonly {
2926
+ readonly credentialId: string;
2927
+ readonly revision: string;
2928
+ }[];
2929
+ };
2930
+ readonly identifier: {
2931
+ readonly namespace: string;
2932
+ readonly value: string;
2933
+ };
2934
+ } | {
2935
+ readonly _tag: "IdentifierChange";
2936
+ readonly flowId: string;
2937
+ readonly contextDigest: string;
2938
+ readonly revision: {
2939
+ readonly subjectId: string;
2940
+ readonly securityRevision: string;
2941
+ readonly credentials: readonly {
2942
+ readonly credentialId: string;
2943
+ readonly revision: string;
2944
+ }[];
2945
+ };
2946
+ readonly identifier: {
2947
+ readonly namespace: string;
2948
+ readonly value: string;
2949
+ };
2950
+ }, never, never>;
2951
+ readonly credential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
2952
+ }>;
2953
+ readonly success: import("effect/Schema").TaggedStruct<"Accepted", {
2954
+ readonly continuation: import("effect/Schema").Struct<{
2955
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
2956
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
2957
+ readonly expiresAtMillis: import("effect/Schema").Int;
2958
+ }>;
2959
+ }>;
2960
+ readonly error: import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
2961
+ readonly access: "system";
2962
+ readonly replay: "single-use";
2963
+ readonly credentials: true;
2964
+ }>;
2965
+ Complete: AuthOperation<`${Id}/reset/complete`, import("effect/Schema").Struct<{
2966
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
2967
+ readonly binding: import("effect/Schema").Codec<{
2968
+ readonly _tag: "Identifier";
2969
+ readonly flowId: string;
2970
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2971
+ readonly identifier: LoginIdentifier;
2972
+ } | {
2973
+ readonly _tag: "Subject";
2974
+ readonly flowId: string;
2975
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2976
+ readonly revision: {
2977
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2978
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2979
+ readonly credentials: readonly {
2980
+ readonly credentialId: string;
2981
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2982
+ }[];
2983
+ };
2984
+ readonly identifier: LoginIdentifier;
2985
+ } | {
2986
+ readonly _tag: "IdentifierChange";
2987
+ readonly flowId: string;
2988
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
2989
+ readonly revision: {
2990
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
2991
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2992
+ readonly credentials: readonly {
2993
+ readonly credentialId: string;
2994
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
2995
+ }[];
2996
+ };
2997
+ readonly identifier: LoginIdentifier;
2998
+ }, {
2999
+ readonly _tag: "Identifier";
3000
+ readonly flowId: string;
3001
+ readonly contextDigest: string;
3002
+ readonly identifier: {
3003
+ readonly namespace: string;
3004
+ readonly value: string;
3005
+ };
3006
+ } | {
3007
+ readonly _tag: "Subject";
3008
+ readonly flowId: string;
3009
+ readonly contextDigest: string;
3010
+ readonly revision: {
3011
+ readonly subjectId: string;
3012
+ readonly securityRevision: string;
3013
+ readonly credentials: readonly {
3014
+ readonly credentialId: string;
3015
+ readonly revision: string;
3016
+ }[];
3017
+ };
3018
+ readonly identifier: {
3019
+ readonly namespace: string;
3020
+ readonly value: string;
3021
+ };
3022
+ } | {
3023
+ readonly _tag: "IdentifierChange";
3024
+ readonly flowId: string;
3025
+ readonly contextDigest: string;
3026
+ readonly revision: {
3027
+ readonly subjectId: string;
3028
+ readonly securityRevision: string;
3029
+ readonly credentials: readonly {
3030
+ readonly credentialId: string;
3031
+ readonly revision: string;
3032
+ }[];
3033
+ };
3034
+ readonly identifier: {
3035
+ readonly namespace: string;
3036
+ readonly value: string;
3037
+ };
3038
+ }, never, never>;
3039
+ readonly credential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3040
+ }>, import("effect/Schema").Void, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
3041
+ readonly payload: import("effect/Schema").Struct<{
3042
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
3043
+ readonly binding: import("effect/Schema").Codec<{
3044
+ readonly _tag: "Identifier";
3045
+ readonly flowId: string;
3046
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3047
+ readonly identifier: LoginIdentifier;
3048
+ } | {
3049
+ readonly _tag: "Subject";
3050
+ readonly flowId: string;
3051
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3052
+ readonly revision: {
3053
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3054
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3055
+ readonly credentials: readonly {
3056
+ readonly credentialId: string;
3057
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3058
+ }[];
3059
+ };
3060
+ readonly identifier: LoginIdentifier;
3061
+ } | {
3062
+ readonly _tag: "IdentifierChange";
3063
+ readonly flowId: string;
3064
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3065
+ readonly revision: {
3066
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3067
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3068
+ readonly credentials: readonly {
3069
+ readonly credentialId: string;
3070
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3071
+ }[];
3072
+ };
3073
+ readonly identifier: LoginIdentifier;
3074
+ }, {
3075
+ readonly _tag: "Identifier";
3076
+ readonly flowId: string;
3077
+ readonly contextDigest: string;
3078
+ readonly identifier: {
3079
+ readonly namespace: string;
3080
+ readonly value: string;
3081
+ };
3082
+ } | {
3083
+ readonly _tag: "Subject";
3084
+ readonly flowId: string;
3085
+ readonly contextDigest: string;
3086
+ readonly revision: {
3087
+ readonly subjectId: string;
3088
+ readonly securityRevision: string;
3089
+ readonly credentials: readonly {
3090
+ readonly credentialId: string;
3091
+ readonly revision: string;
3092
+ }[];
3093
+ };
3094
+ readonly identifier: {
3095
+ readonly namespace: string;
3096
+ readonly value: string;
3097
+ };
3098
+ } | {
3099
+ readonly _tag: "IdentifierChange";
3100
+ readonly flowId: string;
3101
+ readonly contextDigest: string;
3102
+ readonly revision: {
3103
+ readonly subjectId: string;
3104
+ readonly securityRevision: string;
3105
+ readonly credentials: readonly {
3106
+ readonly credentialId: string;
3107
+ readonly revision: string;
3108
+ }[];
3109
+ };
3110
+ readonly identifier: {
3111
+ readonly namespace: string;
3112
+ readonly value: string;
3113
+ };
3114
+ }, never, never>;
3115
+ readonly credential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3116
+ }>;
3117
+ readonly success: import("effect/Schema").Void;
3118
+ readonly error: import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
3119
+ readonly access: "system";
3120
+ readonly replay: "single-use";
3121
+ readonly credentials: true;
3122
+ }>;
3123
+ Cancel: AuthOperation<`${Id}/reset/cancel`, import("effect/Schema").Struct<{
3124
+ readonly binding: import("effect/Schema").Codec<{
3125
+ readonly _tag: "Identifier";
3126
+ readonly flowId: string;
3127
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3128
+ readonly identifier: LoginIdentifier;
3129
+ } | {
3130
+ readonly _tag: "Subject";
3131
+ readonly flowId: string;
3132
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3133
+ readonly revision: {
3134
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3135
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3136
+ readonly credentials: readonly {
3137
+ readonly credentialId: string;
3138
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3139
+ }[];
3140
+ };
3141
+ readonly identifier: LoginIdentifier;
3142
+ } | {
3143
+ readonly _tag: "IdentifierChange";
3144
+ readonly flowId: string;
3145
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3146
+ readonly revision: {
3147
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3148
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3149
+ readonly credentials: readonly {
3150
+ readonly credentialId: string;
3151
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3152
+ }[];
3153
+ };
3154
+ readonly identifier: LoginIdentifier;
3155
+ }, {
3156
+ readonly _tag: "Identifier";
3157
+ readonly flowId: string;
3158
+ readonly contextDigest: string;
3159
+ readonly identifier: {
3160
+ readonly namespace: string;
3161
+ readonly value: string;
3162
+ };
3163
+ } | {
3164
+ readonly _tag: "Subject";
3165
+ readonly flowId: string;
3166
+ readonly contextDigest: string;
3167
+ readonly revision: {
3168
+ readonly subjectId: string;
3169
+ readonly securityRevision: string;
3170
+ readonly credentials: readonly {
3171
+ readonly credentialId: string;
3172
+ readonly revision: string;
3173
+ }[];
3174
+ };
3175
+ readonly identifier: {
3176
+ readonly namespace: string;
3177
+ readonly value: string;
3178
+ };
3179
+ } | {
3180
+ readonly _tag: "IdentifierChange";
3181
+ readonly flowId: string;
3182
+ readonly contextDigest: string;
3183
+ readonly revision: {
3184
+ readonly subjectId: string;
3185
+ readonly securityRevision: string;
3186
+ readonly credentials: readonly {
3187
+ readonly credentialId: string;
3188
+ readonly revision: string;
3189
+ }[];
3190
+ };
3191
+ readonly identifier: {
3192
+ readonly namespace: string;
3193
+ readonly value: string;
3194
+ };
3195
+ }, never, never>;
3196
+ }>, import("effect/Schema").Void, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
3197
+ readonly payload: import("effect/Schema").Struct<{
3198
+ readonly binding: import("effect/Schema").Codec<{
3199
+ readonly _tag: "Identifier";
3200
+ readonly flowId: string;
3201
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3202
+ readonly identifier: LoginIdentifier;
3203
+ } | {
3204
+ readonly _tag: "Subject";
3205
+ readonly flowId: string;
3206
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3207
+ readonly revision: {
3208
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3209
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3210
+ readonly credentials: readonly {
3211
+ readonly credentialId: string;
3212
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3213
+ }[];
3214
+ };
3215
+ readonly identifier: LoginIdentifier;
3216
+ } | {
3217
+ readonly _tag: "IdentifierChange";
3218
+ readonly flowId: string;
3219
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3220
+ readonly revision: {
3221
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3222
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3223
+ readonly credentials: readonly {
3224
+ readonly credentialId: string;
3225
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3226
+ }[];
3227
+ };
3228
+ readonly identifier: LoginIdentifier;
3229
+ }, {
3230
+ readonly _tag: "Identifier";
3231
+ readonly flowId: string;
3232
+ readonly contextDigest: string;
3233
+ readonly identifier: {
3234
+ readonly namespace: string;
3235
+ readonly value: string;
3236
+ };
3237
+ } | {
3238
+ readonly _tag: "Subject";
3239
+ readonly flowId: string;
3240
+ readonly contextDigest: string;
3241
+ readonly revision: {
3242
+ readonly subjectId: string;
3243
+ readonly securityRevision: string;
3244
+ readonly credentials: readonly {
3245
+ readonly credentialId: string;
3246
+ readonly revision: string;
3247
+ }[];
3248
+ };
3249
+ readonly identifier: {
3250
+ readonly namespace: string;
3251
+ readonly value: string;
3252
+ };
3253
+ } | {
3254
+ readonly _tag: "IdentifierChange";
3255
+ readonly flowId: string;
3256
+ readonly contextDigest: string;
3257
+ readonly revision: {
3258
+ readonly subjectId: string;
3259
+ readonly securityRevision: string;
3260
+ readonly credentials: readonly {
3261
+ readonly credentialId: string;
3262
+ readonly revision: string;
3263
+ }[];
3264
+ };
3265
+ readonly identifier: {
3266
+ readonly namespace: string;
3267
+ readonly value: string;
3268
+ };
3269
+ }, never, never>;
3270
+ }>;
3271
+ readonly success: import("effect/Schema").Void;
3272
+ readonly error: import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
3273
+ readonly access: "system";
3274
+ readonly replay: "idempotent";
3275
+ }>;
3276
+ Cleanup: AuthOperation<`${Id}/reset/cleanup`, import("effect/Schema").Struct<{
3277
+ readonly limit: import("effect/Schema").Int;
3278
+ }>, import("effect/Schema").Struct<{
3279
+ readonly removed: import("effect/Schema").Natural;
3280
+ readonly hasMore: import("effect/Schema").Boolean;
3281
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
3282
+ readonly payload: import("effect/Schema").Struct<{
3283
+ readonly limit: import("effect/Schema").Int;
3284
+ }>;
3285
+ readonly success: import("effect/Schema").Struct<{
3286
+ readonly removed: import("effect/Schema").Natural;
3287
+ readonly hasMore: import("effect/Schema").Boolean;
3288
+ }>;
3289
+ readonly error: import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
3290
+ readonly access: "system";
3291
+ readonly replay: "idempotent";
3292
+ }>;
3293
+ };
3294
+ group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/attempt`, import("effect/Schema").Struct<{
3295
+ readonly reference: import("effect/Schema").Struct<{
3296
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
3297
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
3298
+ readonly keyId: import("effect/Schema").String;
3299
+ }>;
3300
+ readonly binding: import("effect/Schema").Codec<{
3301
+ readonly _tag: "Identifier";
3302
+ readonly flowId: string;
3303
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3304
+ readonly identifier: LoginIdentifier;
3305
+ } | {
3306
+ readonly _tag: "Subject";
3307
+ readonly flowId: string;
3308
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3309
+ readonly revision: {
3310
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3311
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3312
+ readonly credentials: readonly {
3313
+ readonly credentialId: string;
3314
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3315
+ }[];
3316
+ };
3317
+ readonly identifier: LoginIdentifier;
3318
+ } | {
3319
+ readonly _tag: "IdentifierChange";
3320
+ readonly flowId: string;
3321
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3322
+ readonly revision: {
3323
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3324
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3325
+ readonly credentials: readonly {
3326
+ readonly credentialId: string;
3327
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3328
+ }[];
3329
+ };
3330
+ readonly identifier: LoginIdentifier;
3331
+ }, {
3332
+ readonly _tag: "Identifier";
3333
+ readonly flowId: string;
3334
+ readonly contextDigest: string;
3335
+ readonly identifier: {
3336
+ readonly namespace: string;
3337
+ readonly value: string;
3338
+ };
3339
+ } | {
3340
+ readonly _tag: "Subject";
3341
+ readonly flowId: string;
3342
+ readonly contextDigest: string;
3343
+ readonly revision: {
3344
+ readonly subjectId: string;
3345
+ readonly securityRevision: string;
3346
+ readonly credentials: readonly {
3347
+ readonly credentialId: string;
3348
+ readonly revision: string;
3349
+ }[];
3350
+ };
3351
+ readonly identifier: {
3352
+ readonly namespace: string;
3353
+ readonly value: string;
3354
+ };
3355
+ } | {
3356
+ readonly _tag: "IdentifierChange";
3357
+ readonly flowId: string;
3358
+ readonly contextDigest: string;
3359
+ readonly revision: {
3360
+ readonly subjectId: string;
3361
+ readonly securityRevision: string;
3362
+ readonly credentials: readonly {
3363
+ readonly credentialId: string;
3364
+ readonly revision: string;
3365
+ }[];
3366
+ };
3367
+ readonly identifier: {
3368
+ readonly namespace: string;
3369
+ readonly value: string;
3370
+ };
3371
+ }, never, never>;
3372
+ readonly credential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3373
+ }>, import("effect/Schema").TaggedStruct<"Accepted", {
3374
+ readonly continuation: import("effect/Schema").Struct<{
3375
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
3376
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
3377
+ readonly expiresAtMillis: import("effect/Schema").Int;
3378
+ }>;
3379
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/cancel`, import("effect/Schema").Struct<{
3380
+ readonly binding: import("effect/Schema").Codec<{
3381
+ readonly _tag: "Identifier";
3382
+ readonly flowId: string;
3383
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3384
+ readonly identifier: LoginIdentifier;
3385
+ } | {
3386
+ readonly _tag: "Subject";
3387
+ readonly flowId: string;
3388
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3389
+ readonly revision: {
3390
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3391
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3392
+ readonly credentials: readonly {
3393
+ readonly credentialId: string;
3394
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3395
+ }[];
3396
+ };
3397
+ readonly identifier: LoginIdentifier;
3398
+ } | {
3399
+ readonly _tag: "IdentifierChange";
3400
+ readonly flowId: string;
3401
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3402
+ readonly revision: {
3403
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3404
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3405
+ readonly credentials: readonly {
3406
+ readonly credentialId: string;
3407
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3408
+ }[];
3409
+ };
3410
+ readonly identifier: LoginIdentifier;
3411
+ }, {
3412
+ readonly _tag: "Identifier";
3413
+ readonly flowId: string;
3414
+ readonly contextDigest: string;
3415
+ readonly identifier: {
3416
+ readonly namespace: string;
3417
+ readonly value: string;
3418
+ };
3419
+ } | {
3420
+ readonly _tag: "Subject";
3421
+ readonly flowId: string;
3422
+ readonly contextDigest: string;
3423
+ readonly revision: {
3424
+ readonly subjectId: string;
3425
+ readonly securityRevision: string;
3426
+ readonly credentials: readonly {
3427
+ readonly credentialId: string;
3428
+ readonly revision: string;
3429
+ }[];
3430
+ };
3431
+ readonly identifier: {
3432
+ readonly namespace: string;
3433
+ readonly value: string;
3434
+ };
3435
+ } | {
3436
+ readonly _tag: "IdentifierChange";
3437
+ readonly flowId: string;
3438
+ readonly contextDigest: string;
3439
+ readonly revision: {
3440
+ readonly subjectId: string;
3441
+ readonly securityRevision: string;
3442
+ readonly credentials: readonly {
3443
+ readonly credentialId: string;
3444
+ readonly revision: string;
3445
+ }[];
3446
+ };
3447
+ readonly identifier: {
3448
+ readonly namespace: string;
3449
+ readonly value: string;
3450
+ };
3451
+ }, never, never>;
3452
+ }>, import("effect/Schema").Void, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/cleanup`, import("effect/Schema").Struct<{
3453
+ readonly limit: import("effect/Schema").Int;
3454
+ }>, import("effect/Schema").Struct<{
3455
+ readonly removed: import("effect/Schema").Natural;
3456
+ readonly hasMore: import("effect/Schema").Boolean;
3457
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/complete`, import("effect/Schema").Struct<{
3458
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
3459
+ readonly binding: import("effect/Schema").Codec<{
3460
+ readonly _tag: "Identifier";
3461
+ readonly flowId: string;
3462
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3463
+ readonly identifier: LoginIdentifier;
3464
+ } | {
3465
+ readonly _tag: "Subject";
3466
+ readonly flowId: string;
3467
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3468
+ readonly revision: {
3469
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3470
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3471
+ readonly credentials: readonly {
3472
+ readonly credentialId: string;
3473
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3474
+ }[];
3475
+ };
3476
+ readonly identifier: LoginIdentifier;
3477
+ } | {
3478
+ readonly _tag: "IdentifierChange";
3479
+ readonly flowId: string;
3480
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3481
+ readonly revision: {
3482
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3483
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3484
+ readonly credentials: readonly {
3485
+ readonly credentialId: string;
3486
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3487
+ }[];
3488
+ };
3489
+ readonly identifier: LoginIdentifier;
3490
+ }, {
3491
+ readonly _tag: "Identifier";
3492
+ readonly flowId: string;
3493
+ readonly contextDigest: string;
3494
+ readonly identifier: {
3495
+ readonly namespace: string;
3496
+ readonly value: string;
3497
+ };
3498
+ } | {
3499
+ readonly _tag: "Subject";
3500
+ readonly flowId: string;
3501
+ readonly contextDigest: string;
3502
+ readonly revision: {
3503
+ readonly subjectId: string;
3504
+ readonly securityRevision: string;
3505
+ readonly credentials: readonly {
3506
+ readonly credentialId: string;
3507
+ readonly revision: string;
3508
+ }[];
3509
+ };
3510
+ readonly identifier: {
3511
+ readonly namespace: string;
3512
+ readonly value: string;
3513
+ };
3514
+ } | {
3515
+ readonly _tag: "IdentifierChange";
3516
+ readonly flowId: string;
3517
+ readonly contextDigest: string;
3518
+ readonly revision: {
3519
+ readonly subjectId: string;
3520
+ readonly securityRevision: string;
3521
+ readonly credentials: readonly {
3522
+ readonly credentialId: string;
3523
+ readonly revision: string;
3524
+ }[];
3525
+ };
3526
+ readonly identifier: {
3527
+ readonly namespace: string;
3528
+ readonly value: string;
3529
+ };
3530
+ }, never, never>;
3531
+ readonly credential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3532
+ }>, import("effect/Schema").Void, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/request`, import("effect/Schema").Struct<{
3533
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
3534
+ readonly binding: import("effect/Schema").Codec<{
3535
+ readonly _tag: "Identifier";
3536
+ readonly flowId: string;
3537
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3538
+ readonly identifier: LoginIdentifier;
3539
+ } | {
3540
+ readonly _tag: "Subject";
3541
+ readonly flowId: string;
3542
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3543
+ readonly revision: {
3544
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3545
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3546
+ readonly credentials: readonly {
3547
+ readonly credentialId: string;
3548
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3549
+ }[];
3550
+ };
3551
+ readonly identifier: LoginIdentifier;
3552
+ } | {
3553
+ readonly _tag: "IdentifierChange";
3554
+ readonly flowId: string;
3555
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3556
+ readonly revision: {
3557
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3558
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3559
+ readonly credentials: readonly {
3560
+ readonly credentialId: string;
3561
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3562
+ }[];
3563
+ };
3564
+ readonly identifier: LoginIdentifier;
3565
+ }, {
3566
+ readonly _tag: "Identifier";
3567
+ readonly flowId: string;
3568
+ readonly contextDigest: string;
3569
+ readonly identifier: {
3570
+ readonly namespace: string;
3571
+ readonly value: string;
3572
+ };
3573
+ } | {
3574
+ readonly _tag: "Subject";
3575
+ readonly flowId: string;
3576
+ readonly contextDigest: string;
3577
+ readonly revision: {
3578
+ readonly subjectId: string;
3579
+ readonly securityRevision: string;
3580
+ readonly credentials: readonly {
3581
+ readonly credentialId: string;
3582
+ readonly revision: string;
3583
+ }[];
3584
+ };
3585
+ readonly identifier: {
3586
+ readonly namespace: string;
3587
+ readonly value: string;
3588
+ };
3589
+ } | {
3590
+ readonly _tag: "IdentifierChange";
3591
+ readonly flowId: string;
3592
+ readonly contextDigest: string;
3593
+ readonly revision: {
3594
+ readonly subjectId: string;
3595
+ readonly securityRevision: string;
3596
+ readonly credentials: readonly {
3597
+ readonly credentialId: string;
3598
+ readonly revision: string;
3599
+ }[];
3600
+ };
3601
+ readonly identifier: {
3602
+ readonly namespace: string;
3603
+ readonly value: string;
3604
+ };
3605
+ }, never, never>;
3606
+ readonly locale: import("effect/Schema").String;
3607
+ readonly eligible: import("effect/Schema").Boolean;
3608
+ }>, import("effect/Schema").Struct<{
3609
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
3610
+ readonly reference: import("effect/Schema").Struct<{
3611
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
3612
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
3613
+ readonly keyId: import("effect/Schema").String;
3614
+ }>;
3615
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/resend`, import("effect/Schema").Struct<{
3616
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
3617
+ readonly binding: import("effect/Schema").Codec<{
3618
+ readonly _tag: "Identifier";
3619
+ readonly flowId: string;
3620
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3621
+ readonly identifier: LoginIdentifier;
3622
+ } | {
3623
+ readonly _tag: "Subject";
3624
+ readonly flowId: string;
3625
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3626
+ readonly revision: {
3627
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3628
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3629
+ readonly credentials: readonly {
3630
+ readonly credentialId: string;
3631
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3632
+ }[];
3633
+ };
3634
+ readonly identifier: LoginIdentifier;
3635
+ } | {
3636
+ readonly _tag: "IdentifierChange";
3637
+ readonly flowId: string;
3638
+ readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
3639
+ readonly revision: {
3640
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
3641
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3642
+ readonly credentials: readonly {
3643
+ readonly credentialId: string;
3644
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
3645
+ }[];
3646
+ };
3647
+ readonly identifier: LoginIdentifier;
3648
+ }, {
3649
+ readonly _tag: "Identifier";
3650
+ readonly flowId: string;
3651
+ readonly contextDigest: string;
3652
+ readonly identifier: {
3653
+ readonly namespace: string;
3654
+ readonly value: string;
3655
+ };
3656
+ } | {
3657
+ readonly _tag: "Subject";
3658
+ readonly flowId: string;
3659
+ readonly contextDigest: string;
3660
+ readonly revision: {
3661
+ readonly subjectId: string;
3662
+ readonly securityRevision: string;
3663
+ readonly credentials: readonly {
3664
+ readonly credentialId: string;
3665
+ readonly revision: string;
3666
+ }[];
3667
+ };
3668
+ readonly identifier: {
3669
+ readonly namespace: string;
3670
+ readonly value: string;
3671
+ };
3672
+ } | {
3673
+ readonly _tag: "IdentifierChange";
3674
+ readonly flowId: string;
3675
+ readonly contextDigest: string;
3676
+ readonly revision: {
3677
+ readonly subjectId: string;
3678
+ readonly securityRevision: string;
3679
+ readonly credentials: readonly {
3680
+ readonly credentialId: string;
3681
+ readonly revision: string;
3682
+ }[];
3683
+ };
3684
+ readonly identifier: {
3685
+ readonly namespace: string;
3686
+ readonly value: string;
3687
+ };
3688
+ }, never, never>;
3689
+ readonly locale: import("effect/Schema").String;
3690
+ readonly eligible: import("effect/Schema").Boolean;
3691
+ readonly supersedes: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
3692
+ }>, import("effect/Schema").Struct<{
3693
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
3694
+ readonly reference: import("effect/Schema").Struct<{
3695
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
3696
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
3697
+ readonly keyId: import("effect/Schema").String;
3698
+ }>;
3699
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
3700
+ }>;
3701
+ group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/add-password`, import("effect/Schema").Struct<{
3702
+ commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
3703
+ newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3704
+ actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
3705
+ }>, import("effect/Schema").Struct<{
3706
+ readonly invalidation: import("effect/Schema").Struct<{
3707
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
3708
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
3709
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
3710
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
3711
+ }>;
3712
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/change-password`, import("effect/Schema").Struct<{
3713
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
3714
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3715
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
3716
+ readonly currentPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3717
+ }>, import("effect/Schema").Struct<{
3718
+ readonly invalidation: import("effect/Schema").Struct<{
3719
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
3720
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
3721
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
3722
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
3723
+ }>;
3724
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/cleanup`, import("effect/Schema").Struct<{
3725
+ readonly limit: import("effect/Schema").Int;
3726
+ }>, import("effect/Schema").Struct<{
3727
+ readonly removed: import("effect/Schema").Natural;
3728
+ readonly hasMore: import("effect/Schema").Boolean;
3729
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/complete-reset`, import("effect/Schema").Struct<{
3730
+ readonly commandId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
3731
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3732
+ readonly actionProof: import("effect/Schema").optionalKey<import("effect/Schema").RedactedFromValue<import("effect/Schema").String>>;
3733
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
3734
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
3735
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
3736
+ readonly credential: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3737
+ }>, import("effect/Schema").Struct<{
3738
+ readonly invalidation: import("effect/Schema").Struct<{
3739
+ readonly trigger: import("effect/Schema").Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
3740
+ readonly existingSessions: import("effect/Schema").Literals<readonly ["immediate", "original-absolute-expiry"]>;
3741
+ readonly maximumExposureMillis: import("effect/Schema").Natural;
3742
+ readonly oldAuthenticationEvidence: import("effect/Schema").Literal<"rejected">;
3743
+ }>;
3744
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/register`, import("effect/Schema").Struct<{
3745
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/PasswordCommandId">;
3746
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
3747
+ readonly newPassword: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3748
+ readonly registration: import("effect/Schema").Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
3749
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"RegistrationAccepted", {}>, import("effect/Schema").TaggedStruct<"ProvisioningPending", {
3750
+ readonly reference: import("effect/Schema").NonEmptyString;
3751
+ }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/request-reset`, import("effect/Schema").Struct<{
3752
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
3753
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
3754
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
3755
+ readonly locale: import("effect/Schema").NonEmptyString;
3756
+ }>, import("effect/Schema").Struct<{
3757
+ readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofRequestId">;
3758
+ readonly reference: import("effect/Schema").Struct<{
3759
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
3760
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
3761
+ readonly keyId: import("effect/Schema").String;
3762
+ }>;
3763
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/sign-in`, import("effect/Schema").Struct<{
3764
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
3765
+ readonly password: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3766
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
3767
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"Authenticated", {
3768
+ readonly session: import("effect/Schema").Struct<{
3769
+ readonly sessionId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SessionId">;
3770
+ readonly subjectId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SubjectId">;
3771
+ readonly securityRevision: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/SecurityRevision">;
3772
+ readonly assurance: typeof AuthenticationAssurance;
3773
+ readonly issuedAt: import("effect/Schema").DateTimeUtcFromMillis;
3774
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
3775
+ readonly absoluteExpiresAt: import("effect/Schema").DateTimeUtcFromMillis;
3776
+ readonly claims: import("effect/Schema").Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
3777
+ }>;
3778
+ }>, import("effect/Schema").TaggedStruct<"PendingAuthentication", {
3779
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromMillis;
3780
+ }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/status`, import("effect/Schema").Void, import("effect/Schema").Struct<{
3781
+ readonly hasPassword: import("effect/Schema").Boolean;
3782
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/verify-reset`, import("effect/Schema").Struct<{
3783
+ readonly flowId: import("effect/Schema").brand<import("effect/Schema").NonEmptyString, "effect-auth/AuthenticationFlowId">;
3784
+ readonly email: import("effect/Schema").compose<import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/Email">, import("effect/Schema").String, never, never>, import("effect/Schema").String>;
3785
+ readonly reference: import("effect/Schema").Struct<{
3786
+ readonly proofId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofId">;
3787
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
3788
+ readonly keyId: import("effect/Schema").String;
3789
+ }>;
3790
+ readonly secret: import("effect/Schema").RedactedFromValue<import("effect/Schema").String>;
3791
+ }>, import("effect/Schema").Struct<{
3792
+ readonly continuation: import("effect/Schema").Struct<{
3793
+ readonly continuationId: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofContinuationId">;
3794
+ readonly purpose: import("effect/Schema").brand<import("effect/Schema").String, "effect-auth/ProofPurpose">;
3795
+ readonly expiresAtMillis: import("effect/Schema").Int;
3796
+ }>;
3797
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, import("effect/Schema").Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
3798
+ }>;
3799
+ interface ManagementStrategy<Registration extends ClaimsCodec, Namespace extends string | undefined = undefined> extends StrategyTypeLambda {
3800
+ readonly type: ReturnType<typeof bindManagement<Registration, Namespace, BindingOf<this>["claims"], BindingOf<this>["namespace"], BindingOf<this>["sessionNamespace"]>>;
3801
+ }
3802
+ declare const management: <Registration extends ClaimsCodec, const Namespace extends string | undefined = undefined>(namespace: Namespace, input: PasswordManagementOptions<Registration, Namespace>) => Readonly<StrategyDefinition<ManagementStrategy<Registration, Namespace>, Namespace>>;
3803
+ declare function make<Registration extends ClaimsCodec, const Namespace extends string>(options: PasswordManagementOptions<Registration, Namespace> & {
3804
+ readonly namespace: Namespace;
3805
+ }): ReturnType<typeof management<Registration, Namespace>>;
3806
+ declare function make<Registration extends ClaimsCodec, const Namespace extends string | undefined = undefined>(options: PasswordManagementOptions<Registration, Namespace>): ReturnType<typeof management<Registration, Namespace | undefined>>;
3807
+ declare function make<const Namespace extends string>(options: PasswordOptions<Namespace> & {
3808
+ readonly namespace: Namespace;
3809
+ }): ReturnType<typeof signIn<Namespace>>;
3810
+ declare function make<const Namespace extends string | undefined = undefined>(options?: PasswordOptions<Namespace>): ReturnType<typeof signIn<Namespace | undefined>>;
3811
+ //#endregion
3812
+ export { ManagementStrategy, PasswordManagementOptions, PasswordOptions, SignInStrategy, make };
3813
+ //# sourceMappingURL=definition.d.mts.map