@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,1809 @@
1
+ import { ConsumeChallenge, ConsumeRegistration, NewChallenge, NewRegistration, PendingRegistration, SubjectId, TokenDigest, VerifiedEmail } from "./Schema.mjs";
2
+ import { ExternalIdentity, IdentityConflict, IdentityUnavailable, ProvisioningResult } from "./identity/models.mjs";
3
+ import { LifecycleHooks } from "./hooks/LifecycleHooks.mjs";
4
+ import { PreparedCommit } from "./hooks/commit.mjs";
5
+ import { RequestBindingFlowId } from "./operations/requestBindingModels.mjs";
6
+ import "./Operations.mjs";
7
+ import { SessionInvalidationWindow } from "./sessions/invalidation.mjs";
8
+ import "./Hooks.mjs";
9
+ import "./Sessions.mjs";
10
+ import { AuthStoreError, InvalidRegistration } from "./Errors.mjs";
11
+ import { ConsumeDecision } from "./auth/ConsumeDecision.mjs";
12
+ import { ChallengeConsumeDecision } from "./internal/AuthStoreDecisions.mjs";
13
+ import { EmailOtpRejected, IssueChallengeError } from "./AuthStore.mjs";
14
+ import { SubjectProvisioningInput } from "./identity/SubjectProvisioner.mjs";
15
+ import { InvalidOAuthState } from "./oauth/errors.mjs";
16
+ import { OAuthProviderKey, OAuthState } from "./oauth/schema.mjs";
17
+ import { AuthTables, DrizzleMappingError, IdentityTables } from "./drizzle/model.mjs";
18
+ import "./Identity.mjs";
19
+ import { PasskeyConfigurationError } from "./passkey/errors.mjs";
20
+ import { PasskeyPersistence } from "./passkey/PasskeyPersistence.mjs";
21
+ import { PasskeyCredentialMapping, PasskeyCredentialServices, PasskeyEnrollmentContextMapping, PasskeyEnrollmentContextServices, PasskeyMappingSource, PasskeyPersistenceMapping, PasskeyPersistenceServices } from "./drizzle/passkey-model.mjs";
22
+ import { OAuthRegistrationIntent } from "./oauth/registrationModels.mjs";
23
+ import { OAuthUnavailable } from "./oauth/signInErrors.mjs";
24
+ import { OAuthClaim, OAuthClaimDecision, OAuthCleanupInput, OAuthCredentialSnapshot, OAuthIssueDecision, OAuthPendingFlow, OAuthSettlementDecision, OAuthVerifiedExternalIdentity } from "./oauth/signInModels.mjs";
25
+ import { OAuthSignInPersistence, PrepareOAuthCommit } from "./oauth/OAuthSignInPersistence.mjs";
26
+ import { OAuthAccountRevision, OAuthActionAuthorization, OAuthLinkAccess, OAuthLinkClaim, OAuthLinkOutcome, OAuthLinkPendingFlow } from "./oauth/accountsModels.mjs";
27
+ import { OAuthAccountsMapping, OAuthRegistrationAuthority, OAuthRegistrationIntentMapping, OAuthRegistrationMapping, OAuthSignInMapping } from "./drizzle/oauth-model.mjs";
28
+ import { OAuthConnectedAccess, OAuthConnectedActionAuthorization, OAuthConnectedClaim, OAuthConnectedDisconnectGrant, OAuthConnectedOutcome, OAuthConnectedPendingFlow, OAuthConnectedRefreshClaim, OAuthConnectedRefreshOutcome, OAuthConnectedRevocationJob, OAuthConnectedStoredGrant, OAuthConnectedTarget, OAuthConnectedUseAuthorization } from "./oauth/connectedModels.mjs";
29
+ import { OAuthConnectedMapping, OAuthConnectedRevocationMapping } from "./drizzle/oauth-connected-model.mjs";
30
+ import { PasskeyRegistrationCeremonyMapping, PasskeyRegistrationCeremonyServices } from "./drizzle/passkey-registration-ceremony-model.mjs";
31
+ import { OAuthAccountsPersistence } from "./oauth/OAuthAccountsPersistence.mjs";
32
+ import { OAuthConnectedPersistence } from "./oauth/OAuthConnectedPersistence.mjs";
33
+ import { OAuthConnectedRevocationClaim, OAuthConnectedRevocations } from "./oauth/OAuthConnectedRevocations.mjs";
34
+ import { OAuthRegistrationIntents, OAuthRegistrationSettlement } from "./oauth/OAuthRegistrationIntents.mjs";
35
+ import "./OAuth.mjs";
36
+ import { OAuthCoordinatorError } from "./drizzle/oauth-target.mjs";
37
+ import { passwordPreparedPersistenceLayer } from "./drizzle/password-prepared-target.mjs";
38
+ import { TotpConfigurationError } from "./totp/errors.mjs";
39
+ import { TotpPersistence } from "./totp/TotpPersistence.mjs";
40
+ import { TotpMapping, TotpMappingSource, TotpPersistenceServices } from "./drizzle/totp-model.mjs";
41
+ import { PasskeyManagementPersistence } from "./passkey/PasskeyManagementPersistence.mjs";
42
+ import { PasskeyManagementMapping, PasskeyManagementServices, PasskeyRegistrationMapping, PasskeyRegistrationServices, PasskeyRegistrationWriter } from "./drizzle/passkey-write-model.mjs";
43
+ import { PasskeyCoordinatorError } from "./drizzle/passkey-target.mjs";
44
+ import { PhoneConfigurationError } from "./phone/lifecycleModels.mjs";
45
+ import { PhoneAdmission } from "./phone/PhoneAdmission.mjs";
46
+ import { PhonePersistence } from "./phone/PhonePersistence.mjs";
47
+ import { PhoneSignInTargets } from "./phone/PhoneSignInTargets.mjs";
48
+ import { PhoneMapping, PhoneMappingSource, PhonePersistenceServices } from "./drizzle/phone-model.mjs";
49
+ import "./Drizzle.mjs";
50
+ import "./Totp.mjs";
51
+ import { SuppliedService } from "./drizzle/SuppliedService.mjs";
52
+ import { TotpCoordinatorError } from "./drizzle/totp-target.mjs";
53
+ import "./Passkey.mjs";
54
+ import "./PhoneOtp.mjs";
55
+ import { PhoneCoordinatorError } from "./drizzle/phone-target.mjs";
56
+ import { coordinateMysqlAuthStoreTransaction, coordinateMysqlAuthTransaction, coordinateMysqlOAuthStateTransaction, makeMysqlAuthStoreServices, makeMysqlOAuthStateServices } from "./drizzle/mysql.mjs";
57
+ import { makeMysqlExternalIdentityServices, makeMysqlSubjectProvisioningServices } from "./drizzle/mysql-identity.mjs";
58
+ import { coordinateMysqlAuthenticationAuthority, coordinateMysqlPendingAuthentication, coordinateMysqlSessionStepUp, coordinateMysqlSignedSessionValidity, coordinateMysqlStatefulSessions, makeMysqlAuthenticationAuthorityServices, makeMysqlPendingAuthenticationServices, makeMysqlSessionStepUpServices, makeMysqlSignedSessionValidityServices, makeMysqlStatefulSessionServices } from "./drizzle/mysql-sessions.mjs";
59
+ import { coordinateMysqlProofPersistence, makeMysqlProofPersistenceServices } from "./drizzle/mysql-proofs.mjs";
60
+ import { coordinateMysqlPasswordPersistence, coordinateMysqlPasswordRegistration, makeMysqlPasswordPersistenceServices, makeMysqlPasswordRegistrationServices } from "./drizzle/mysql-passwords.mjs";
61
+ import { coordinateMysqlEmailAddress, coordinateMysqlEmailRegistration, makeMysqlEmailAddressServices, makeMysqlEmailRegistrationServices, makeMysqlEmailSignInServices } from "./drizzle/mysql-emails.mjs";
62
+ import { coordinateMySqlPasswordPreparedPersistence, makeMySqlPasswordPreparedPersistenceServices } from "./drizzle/mysql-password-prepared.mjs";
63
+ import { AnyRelations } from "drizzle-orm";
64
+ import { EffectMysql2Database } from "drizzle-orm/effect-mysql2";
65
+ import { AnyMySqlTable } from "drizzle-orm/mysql-core";
66
+ //#region src/DrizzleMysql2.d.ts
67
+ declare const commitMode: "interactive";
68
+ declare const makeAuthServices: <C extends AnyMySqlTable, R extends AnyMySqlTable, S extends AnyMySqlTable>(database: EffectMysql2Database<AnyRelations>, mapping: AuthTables<C, R, S>) => {
69
+ readonly authStore: {
70
+ readonly issueChallenge: (input: NewChallenge) => import("effect/Effect").Effect<void, IssueChallengeError>;
71
+ readonly consumeChallenge: (input: ConsumeChallenge) => import("effect/Effect").Effect<VerifiedEmail, EmailOtpRejected | AuthStoreError>;
72
+ readonly issueRegistration: (input: NewRegistration) => import("effect/Effect").Effect<void, AuthStoreError>;
73
+ readonly inspectRegistration: (tokenDigest: TokenDigest) => import("effect/Effect").Effect<PendingRegistration, InvalidRegistration | AuthStoreError>;
74
+ readonly consumeRegistration: (input: ConsumeRegistration) => import("effect/Effect").Effect<void, InvalidRegistration | AuthStoreError>;
75
+ };
76
+ readonly oauthStateStore: {
77
+ readonly issue: (state: OAuthState) => import("effect/Effect").Effect<void, AuthStoreError>;
78
+ readonly consume: (stateDigest: TokenDigest) => import("effect/Effect").Effect<OAuthState, InvalidOAuthState | AuthStoreError>;
79
+ };
80
+ readonly decisions: {
81
+ readonly consumeChallenge: (input: ConsumeChallenge) => import("effect/Effect").Effect<ChallengeConsumeDecision, AuthStoreError, never>;
82
+ readonly consumeRegistration: (input: ConsumeRegistration) => import("effect/Effect").Effect<ConsumeDecision<void>, AuthStoreError, never>;
83
+ readonly consumeOAuthState: (digest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">) => import("effect/Effect").Effect<ConsumeDecision<OAuthState>, AuthStoreError, never>;
84
+ };
85
+ };
86
+ declare const makeIdentityServices: <Subject extends AnyMySqlTable, Identifier extends AnyMySqlTable, External extends AnyMySqlTable, Request extends AnyMySqlTable, NativeId>(database: EffectMysql2Database<AnyRelations>, mapping: IdentityTables<Subject, Identifier, External, Request, NativeId>) => {
87
+ subjectProvisioner: {
88
+ readonly provision: (input: SubjectProvisioningInput) => import("effect/Effect").Effect<ProvisioningResult, IdentityConflict | IdentityUnavailable>;
89
+ };
90
+ externalIdentityMutation: {
91
+ readonly bind: (subjectId: SubjectId, identity: ExternalIdentity) => import("effect/Effect").Effect<void, IdentityConflict | IdentityUnavailable>;
92
+ };
93
+ };
94
+ declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
95
+ dialect: "mysql";
96
+ }>, O extends AnyMySqlTable<{
97
+ dialect: "mysql";
98
+ }>, C extends AnyMySqlTable<{
99
+ dialect: "mysql";
100
+ }>, AC extends AnyMySqlTable<{
101
+ dialect: "mysql";
102
+ }>, F extends AnyMySqlTable<{
103
+ dialect: "mysql";
104
+ }>, TA extends AnyMySqlTable<{
105
+ dialect: "mysql";
106
+ }>, U extends AnyMySqlTable<{
107
+ dialect: "mysql";
108
+ }>, N>(database: EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>) => import("effect/Effect").Effect<{
109
+ oauthAccountsPersistence: {
110
+ readonly capture: (input: {
111
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
112
+ readonly subjectId: SubjectId;
113
+ }) => import("effect/Effect").Effect<OAuthAccountRevision | undefined, OAuthUnavailable>;
114
+ readonly issue: <A>(input: {
115
+ readonly flow: OAuthLinkPendingFlow;
116
+ readonly authorization: OAuthActionAuthorization;
117
+ }, prepare: PrepareOAuthCommit<{
118
+ readonly _tag: "Rejected";
119
+ } | {
120
+ readonly _tag: "Issued";
121
+ readonly flow: {
122
+ readonly context: {
123
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
124
+ readonly protocol: "oauth" | "oidc";
125
+ readonly configurationGeneration: number;
126
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
127
+ readonly responseIssuerMode: "required" | "unsupported";
128
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
129
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
130
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
131
+ readonly generation: number;
132
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
133
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
134
+ readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
135
+ readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
136
+ readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
137
+ readonly requestBindingExpiresAtMillis: number;
138
+ readonly issuedAtMillis: number;
139
+ readonly expiresAtMillis: number;
140
+ readonly claimLifetimeMillis: number;
141
+ readonly namespace: "effect-auth/oauth-link-context/v1";
142
+ readonly revision: {
143
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
144
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
145
+ readonly credentials: readonly {
146
+ readonly credentialId: string;
147
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
148
+ }[];
149
+ };
150
+ readonly maximumEvidenceAgeMillis: number;
151
+ };
152
+ readonly sealed: {
153
+ readonly format: "oauth-xchacha20poly1305-v1";
154
+ readonly keyId: string;
155
+ readonly nonce: string;
156
+ readonly ciphertext: import("effect/Redacted").Redacted<string>;
157
+ };
158
+ readonly retentionUntilMillis: number;
159
+ };
160
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
161
+ readonly preflight: (input: OAuthLinkAccess) => import("effect/Effect").Effect<OAuthLinkPendingFlow | undefined, OAuthUnavailable>;
162
+ readonly claim: <A>(input: {
163
+ readonly access: OAuthLinkAccess;
164
+ readonly flow: OAuthLinkPendingFlow;
165
+ readonly claimId: OAuthLinkClaim["claimId"];
166
+ readonly authorization: OAuthActionAuthorization;
167
+ }, prepare: PrepareOAuthCommit<{
168
+ readonly _tag: "Rejected";
169
+ } | {
170
+ readonly _tag: "Claimed";
171
+ readonly claim: {
172
+ readonly flow: {
173
+ readonly context: {
174
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
175
+ readonly protocol: "oauth" | "oidc";
176
+ readonly configurationGeneration: number;
177
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
178
+ readonly responseIssuerMode: "required" | "unsupported";
179
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
180
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
181
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
182
+ readonly generation: number;
183
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
184
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
185
+ readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
186
+ readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
187
+ readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
188
+ readonly requestBindingExpiresAtMillis: number;
189
+ readonly issuedAtMillis: number;
190
+ readonly expiresAtMillis: number;
191
+ readonly claimLifetimeMillis: number;
192
+ readonly namespace: "effect-auth/oauth-link-context/v1";
193
+ readonly revision: {
194
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
195
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
196
+ readonly credentials: readonly {
197
+ readonly credentialId: string;
198
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
199
+ }[];
200
+ };
201
+ readonly maximumEvidenceAgeMillis: number;
202
+ };
203
+ readonly sealed: {
204
+ readonly format: "oauth-xchacha20poly1305-v1";
205
+ readonly keyId: string;
206
+ readonly nonce: string;
207
+ readonly ciphertext: import("effect/Redacted").Redacted<string>;
208
+ };
209
+ readonly retentionUntilMillis: number;
210
+ };
211
+ readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
212
+ readonly claimedAtMillis: number;
213
+ readonly claimExpiresAtMillis: number;
214
+ };
215
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
216
+ readonly settle: <A>(input: {
217
+ readonly claim: OAuthLinkClaim;
218
+ readonly outcome: OAuthLinkOutcome;
219
+ readonly authorization: OAuthActionAuthorization;
220
+ readonly invalidation: SessionInvalidationWindow;
221
+ readonly nowMillis: number;
222
+ }, prepare: PrepareOAuthCommit<{
223
+ readonly _tag: "Rejected";
224
+ } | {
225
+ readonly _tag: "Conflict";
226
+ } | {
227
+ readonly _tag: "Cancelled";
228
+ } | {
229
+ readonly _tag: "Ambiguous";
230
+ } | {
231
+ readonly _tag: "Linked";
232
+ readonly credential: {
233
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
234
+ readonly identity: {
235
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
236
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
237
+ readonly subject: string;
238
+ };
239
+ readonly credentialId: string;
240
+ readonly credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
241
+ readonly revision: {
242
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
243
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
244
+ readonly credentials: readonly {
245
+ readonly credentialId: string;
246
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
247
+ }[];
248
+ };
249
+ };
250
+ readonly changed: boolean;
251
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
252
+ readonly inspectUnlink: (input: {
253
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
254
+ readonly subjectId: SubjectId;
255
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
256
+ readonly credentialId: string;
257
+ }) => import("effect/Effect").Effect<{
258
+ readonly _tag: "Rejected";
259
+ } | {
260
+ readonly _tag: "Conflict";
261
+ } | {
262
+ readonly _tag: "Target";
263
+ readonly credential: {
264
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
265
+ readonly identity: {
266
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
267
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
268
+ readonly subject: string;
269
+ };
270
+ readonly credentialId: string;
271
+ readonly credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
272
+ readonly revision: {
273
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
274
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
275
+ readonly credentials: readonly {
276
+ readonly credentialId: string;
277
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
278
+ }[];
279
+ };
280
+ };
281
+ } | {
282
+ readonly _tag: "Replay";
283
+ readonly result: {
284
+ readonly _tag: "Unlinked";
285
+ readonly credentialId: string;
286
+ readonly invalidation: {
287
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
288
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
289
+ readonly maximumExposureMillis: number;
290
+ readonly oldAuthenticationEvidence: "rejected";
291
+ };
292
+ };
293
+ }, OAuthUnavailable>;
294
+ readonly unlink: <A>(input: {
295
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
296
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
297
+ readonly credential: OAuthCredentialSnapshot;
298
+ readonly authorization: OAuthActionAuthorization;
299
+ readonly invalidation: SessionInvalidationWindow;
300
+ readonly nowMillis: number;
301
+ readonly retentionUntilMillis: number;
302
+ }, prepare: PrepareOAuthCommit<{
303
+ readonly _tag: "Rejected";
304
+ } | {
305
+ readonly _tag: "Conflict";
306
+ } | {
307
+ readonly _tag: "Unlinked";
308
+ readonly result: {
309
+ readonly _tag: "Unlinked";
310
+ readonly credentialId: string;
311
+ readonly invalidation: {
312
+ readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
313
+ readonly existingSessions: "immediate" | "original-absolute-expiry";
314
+ readonly maximumExposureMillis: number;
315
+ readonly oldAuthenticationEvidence: "rejected";
316
+ };
317
+ };
318
+ readonly replayed: boolean;
319
+ } | {
320
+ readonly _tag: "LastSignInMethod";
321
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
322
+ readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
323
+ readonly terminalized: number;
324
+ readonly removed: number;
325
+ readonly hasMore: boolean;
326
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
327
+ };
328
+ }, never, LifecycleHooks>, makeOAuthSignInServices: <S extends AnyMySqlTable<{
329
+ dialect: "mysql";
330
+ }>, O extends AnyMySqlTable<{
331
+ dialect: "mysql";
332
+ }>, C extends AnyMySqlTable<{
333
+ dialect: "mysql";
334
+ }>, AC extends AnyMySqlTable<{
335
+ dialect: "mysql";
336
+ }>, F extends AnyMySqlTable<{
337
+ dialect: "mysql";
338
+ }>, N>(database: EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthSignInMapping<S, O, C, AC, F, N>) => import("effect/Effect").Effect<{
339
+ oauthSignInPersistence: {
340
+ readonly issue: <A>(input: OAuthPendingFlow, prepare: PrepareOAuthCommit<OAuthIssueDecision, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
341
+ readonly claim: <A>(input: {
342
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
343
+ readonly generation: number;
344
+ readonly flowId: RequestBindingFlowId;
345
+ readonly provider: OAuthProviderKey;
346
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
347
+ readonly stateDigest: TokenDigest;
348
+ readonly requestBindingVerifier: TokenDigest;
349
+ readonly requestBindingExpiresAtMillis: number;
350
+ readonly responseIssuer?: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
351
+ readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
352
+ readonly nowMillis: number;
353
+ }, prepare: PrepareOAuthCommit<OAuthClaimDecision, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
354
+ readonly settle: <A>(input: {
355
+ readonly claim: OAuthClaim;
356
+ readonly outcome: {
357
+ readonly _tag: "Verified";
358
+ readonly identity: OAuthVerifiedExternalIdentity;
359
+ } | {
360
+ readonly _tag: "Cancelled" | "Rejected" | "Ambiguous";
361
+ };
362
+ readonly nowMillis: number;
363
+ }, prepare: PrepareOAuthCommit<OAuthSettlementDecision, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
364
+ readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
365
+ readonly terminalized: number;
366
+ readonly removed: number;
367
+ readonly hasMore: boolean;
368
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
369
+ };
370
+ }, never, LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnyMySqlTable<{
371
+ dialect: "mysql";
372
+ }>, O extends AnyMySqlTable<{
373
+ dialect: "mysql";
374
+ }>, C extends AnyMySqlTable<{
375
+ dialect: "mysql";
376
+ }>, AC extends AnyMySqlTable<{
377
+ dialect: "mysql";
378
+ }>, F extends AnyMySqlTable<{
379
+ dialect: "mysql";
380
+ }>, TA extends AnyMySqlTable<{
381
+ dialect: "mysql";
382
+ }>, I extends AnyMySqlTable<{
383
+ dialect: "mysql";
384
+ }>, N>(database: EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>) => import("effect/Effect").Effect<{
385
+ oauthRegistrationIntents: {
386
+ readonly settle: <A>(input: {
387
+ readonly claim: OAuthClaim;
388
+ readonly identity: OAuthVerifiedExternalIdentity;
389
+ readonly intent?: OAuthRegistrationIntent;
390
+ readonly nowMillis: number;
391
+ }, prepare: PrepareOAuthCommit<OAuthRegistrationSettlement, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
392
+ };
393
+ }, never, LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnyMySqlTable<{
394
+ dialect: "mysql";
395
+ }>, O extends AnyMySqlTable<{
396
+ dialect: "mysql";
397
+ }>, C extends AnyMySqlTable<{
398
+ dialect: "mysql";
399
+ }>, AC extends AnyMySqlTable<{
400
+ dialect: "mysql";
401
+ }>, TA extends AnyMySqlTable<{
402
+ dialect: "mysql";
403
+ }>, I extends AnyMySqlTable<{
404
+ dialect: "mysql";
405
+ }>, R extends AnyMySqlTable<{
406
+ dialect: "mysql";
407
+ }>, N>(database: EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthRegistrationMapping<Registration, S, O, C, AC, TA, I, R, N>) => import("effect/Effect").Effect<{
408
+ registrationAuthority: OAuthRegistrationAuthority<Registration>;
409
+ }, never, LifecycleHooks>, coordinateOAuthRegistration: {
410
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnyMySqlTable<{
411
+ dialect: "mysql";
412
+ }>, O extends AnyMySqlTable<{
413
+ dialect: "mysql";
414
+ }>, C extends AnyMySqlTable<{
415
+ dialect: "mysql";
416
+ }>, AC extends AnyMySqlTable<{
417
+ dialect: "mysql";
418
+ }>, TA extends AnyMySqlTable<{
419
+ dialect: "mysql";
420
+ }>, I extends AnyMySqlTable<{
421
+ dialect: "mysql";
422
+ }>, Rq extends AnyMySqlTable<{
423
+ dialect: "mysql";
424
+ }>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
425
+ readonly mapping: OAuthRegistrationMapping<NoInfer<Registration>, S, O, C, AC, TA, I, Rq, N>;
426
+ readonly target: SuppliedService<TargetId, OAuthRegistrationAuthority<Registration>>;
427
+ readonly transaction?: never;
428
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TargetId>>;
429
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnyMySqlTable<{
430
+ dialect: "mysql";
431
+ }>, O extends AnyMySqlTable<{
432
+ dialect: "mysql";
433
+ }>, C extends AnyMySqlTable<{
434
+ dialect: "mysql";
435
+ }>, AC extends AnyMySqlTable<{
436
+ dialect: "mysql";
437
+ }>, TA extends AnyMySqlTable<{
438
+ dialect: "mysql";
439
+ }>, I extends AnyMySqlTable<{
440
+ dialect: "mysql";
441
+ }>, Rq extends AnyMySqlTable<{
442
+ dialect: "mysql";
443
+ }>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
444
+ readonly mapping: OAuthRegistrationMapping<NoInfer<Registration>, S, O, C, AC, TA, I, Rq, N>;
445
+ readonly target: SuppliedService<TargetId, OAuthRegistrationAuthority<Registration>>;
446
+ readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
447
+ readonly transaction: (...args: any[]) => any;
448
+ } ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
449
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TargetId | TxId>>;
450
+ }, coordinateOAuthSignIn: {
451
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
452
+ dialect: "mysql";
453
+ }>, O extends AnyMySqlTable<{
454
+ dialect: "mysql";
455
+ }>, C extends AnyMySqlTable<{
456
+ dialect: "mysql";
457
+ }>, AC extends AnyMySqlTable<{
458
+ dialect: "mysql";
459
+ }>, F extends AnyMySqlTable<{
460
+ dialect: "mysql";
461
+ }>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
462
+ readonly mapping: OAuthSignInMapping<S, O, C, AC, F, N>;
463
+ readonly transaction?: never;
464
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, OAuthSignInPersistence>>;
465
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
466
+ dialect: "mysql";
467
+ }>, O extends AnyMySqlTable<{
468
+ dialect: "mysql";
469
+ }>, C extends AnyMySqlTable<{
470
+ dialect: "mysql";
471
+ }>, AC extends AnyMySqlTable<{
472
+ dialect: "mysql";
473
+ }>, F extends AnyMySqlTable<{
474
+ dialect: "mysql";
475
+ }>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
476
+ readonly mapping: OAuthSignInMapping<S, O, C, AC, F, N>;
477
+ readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
478
+ readonly transaction: (...args: any[]) => any;
479
+ } ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
480
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TxId | OAuthSignInPersistence>>;
481
+ }, coordinateOAuthRegistrationIntents: {
482
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
483
+ dialect: "mysql";
484
+ }>, O extends AnyMySqlTable<{
485
+ dialect: "mysql";
486
+ }>, C extends AnyMySqlTable<{
487
+ dialect: "mysql";
488
+ }>, AC extends AnyMySqlTable<{
489
+ dialect: "mysql";
490
+ }>, F extends AnyMySqlTable<{
491
+ dialect: "mysql";
492
+ }>, TA extends AnyMySqlTable<{
493
+ dialect: "mysql";
494
+ }>, I extends AnyMySqlTable<{
495
+ dialect: "mysql";
496
+ }>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
497
+ readonly mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>;
498
+ readonly transaction?: never;
499
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, OAuthRegistrationIntents>>;
500
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
501
+ dialect: "mysql";
502
+ }>, O extends AnyMySqlTable<{
503
+ dialect: "mysql";
504
+ }>, C extends AnyMySqlTable<{
505
+ dialect: "mysql";
506
+ }>, AC extends AnyMySqlTable<{
507
+ dialect: "mysql";
508
+ }>, F extends AnyMySqlTable<{
509
+ dialect: "mysql";
510
+ }>, TA extends AnyMySqlTable<{
511
+ dialect: "mysql";
512
+ }>, I extends AnyMySqlTable<{
513
+ dialect: "mysql";
514
+ }>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
515
+ readonly mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>;
516
+ readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
517
+ readonly transaction: (...args: any[]) => any;
518
+ } ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
519
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TxId | OAuthRegistrationIntents>>;
520
+ }, coordinateOAuthAccounts: {
521
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
522
+ dialect: "mysql";
523
+ }>, O extends AnyMySqlTable<{
524
+ dialect: "mysql";
525
+ }>, C extends AnyMySqlTable<{
526
+ dialect: "mysql";
527
+ }>, AC extends AnyMySqlTable<{
528
+ dialect: "mysql";
529
+ }>, F extends AnyMySqlTable<{
530
+ dialect: "mysql";
531
+ }>, TA extends AnyMySqlTable<{
532
+ dialect: "mysql";
533
+ }>, U extends AnyMySqlTable<{
534
+ dialect: "mysql";
535
+ }>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
536
+ readonly mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>;
537
+ readonly transaction?: never;
538
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, OAuthAccountsPersistence>>;
539
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
540
+ dialect: "mysql";
541
+ }>, O extends AnyMySqlTable<{
542
+ dialect: "mysql";
543
+ }>, C extends AnyMySqlTable<{
544
+ dialect: "mysql";
545
+ }>, AC extends AnyMySqlTable<{
546
+ dialect: "mysql";
547
+ }>, F extends AnyMySqlTable<{
548
+ dialect: "mysql";
549
+ }>, TA extends AnyMySqlTable<{
550
+ dialect: "mysql";
551
+ }>, U extends AnyMySqlTable<{
552
+ dialect: "mysql";
553
+ }>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
554
+ readonly mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>;
555
+ readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
556
+ readonly transaction: (...args: any[]) => any;
557
+ } ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
558
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TxId | OAuthAccountsPersistence>>;
559
+ }, makeOAuthConnectedServices: <S extends AnyMySqlTable<{
560
+ dialect: "mysql";
561
+ }>, AC extends AnyMySqlTable<{
562
+ dialect: "mysql";
563
+ }>, T extends AnyMySqlTable<{
564
+ dialect: "mysql";
565
+ }>, O extends AnyMySqlTable<{
566
+ dialect: "mysql";
567
+ }>, F extends AnyMySqlTable<{
568
+ dialect: "mysql";
569
+ }>, G extends AnyMySqlTable<{
570
+ dialect: "mysql";
571
+ }>, C extends AnyMySqlTable<{
572
+ dialect: "mysql";
573
+ }>, H extends AnyMySqlTable<{
574
+ dialect: "mysql";
575
+ }>, UA extends AnyMySqlTable<{
576
+ dialect: "mysql";
577
+ }>, DC extends AnyMySqlTable<{
578
+ dialect: "mysql";
579
+ }>, N, J extends AnyMySqlTable<{
580
+ dialect: "mysql";
581
+ }> = never>(database: EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>) => import("effect/Effect").Effect<{
582
+ oauthConnectedPersistence: {
583
+ readonly capture: (input: {
584
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
585
+ readonly subjectId: SubjectId;
586
+ readonly grantId?: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
587
+ }) => import("effect/Effect").Effect<{
588
+ readonly revision: OAuthAccountRevision;
589
+ readonly target?: OAuthConnectedTarget;
590
+ } | undefined, OAuthUnavailable>;
591
+ readonly issue: <A>(input: {
592
+ readonly flow: OAuthConnectedPendingFlow;
593
+ readonly authorization: OAuthConnectedActionAuthorization;
594
+ }, prepare: PrepareOAuthCommit<{
595
+ readonly _tag: "Issued";
596
+ readonly flow: {
597
+ readonly context: {
598
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
599
+ readonly protocol: "oauth" | "oidc";
600
+ readonly configurationGeneration: number;
601
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
602
+ readonly responseIssuerMode: "required" | "unsupported";
603
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
604
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
605
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
606
+ readonly generation: number;
607
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
608
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
609
+ readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
610
+ readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
611
+ readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
612
+ readonly requestBindingExpiresAtMillis: number;
613
+ readonly issuedAtMillis: number;
614
+ readonly expiresAtMillis: number;
615
+ readonly claimLifetimeMillis: number;
616
+ readonly namespace: "effect-auth/oauth-connected-context/v1";
617
+ readonly revision: {
618
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
619
+ readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
620
+ readonly credentials: readonly {
621
+ readonly credentialId: string;
622
+ readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
623
+ }[];
624
+ };
625
+ readonly profile: {
626
+ readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
627
+ readonly generation: number;
628
+ readonly issuance: "active" | "retired";
629
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
630
+ readonly clientRegistrationId: string;
631
+ readonly scopes: readonly string[];
632
+ readonly resources: readonly string[];
633
+ readonly retention: "access-and-refresh" | "access-only";
634
+ readonly maximumAccessLifetimeMillis: number;
635
+ readonly maximumRefreshLifetimeMillis?: number | undefined;
636
+ readonly refreshAheadMillis: number;
637
+ readonly refresh: "confidential" | "rotating" | "unsupported";
638
+ readonly revocation: "cohort" | "unsupported";
639
+ };
640
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
641
+ readonly reconnect?: {
642
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
643
+ readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
644
+ readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
645
+ readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
646
+ readonly identity: {
647
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
648
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
649
+ readonly subject: string;
650
+ };
651
+ readonly configuration: {
652
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
653
+ readonly protocol: "oauth" | "oidc";
654
+ readonly configurationGeneration: number;
655
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
656
+ readonly responseIssuerMode: "required" | "unsupported";
657
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
658
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
659
+ readonly profile: {
660
+ readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
661
+ readonly generation: number;
662
+ readonly issuance: "active" | "retired";
663
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
664
+ readonly clientRegistrationId: string;
665
+ readonly scopes: readonly string[];
666
+ readonly resources: readonly string[];
667
+ readonly retention: "access-and-refresh" | "access-only";
668
+ readonly maximumAccessLifetimeMillis: number;
669
+ readonly maximumRefreshLifetimeMillis?: number | undefined;
670
+ readonly refreshAheadMillis: number;
671
+ readonly refresh: "confidential" | "rotating" | "unsupported";
672
+ readonly revocation: "cohort" | "unsupported";
673
+ };
674
+ };
675
+ } | undefined;
676
+ readonly maximumEvidenceAgeMillis: number;
677
+ };
678
+ readonly sealed: {
679
+ readonly format: "oauth-xchacha20poly1305-v1";
680
+ readonly keyId: string;
681
+ readonly nonce: string;
682
+ readonly ciphertext: import("effect/Redacted").Redacted<string>;
683
+ };
684
+ readonly retentionUntilMillis: number;
685
+ };
686
+ } | {
687
+ readonly _tag: "Rejected";
688
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
689
+ readonly preflight: (input: OAuthConnectedAccess) => import("effect/Effect").Effect<OAuthConnectedPendingFlow | undefined, OAuthUnavailable>;
690
+ readonly claim: <A>(input: {
691
+ readonly access: OAuthConnectedAccess;
692
+ readonly flow: OAuthConnectedPendingFlow;
693
+ readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
694
+ readonly authorization: OAuthConnectedActionAuthorization;
695
+ }, prepare: PrepareOAuthCommit<{
696
+ readonly _tag: "Rejected";
697
+ } | {
698
+ readonly _tag: "Claimed";
699
+ readonly claim: {
700
+ readonly flow: {
701
+ readonly context: {
702
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
703
+ readonly protocol: "oauth" | "oidc";
704
+ readonly configurationGeneration: number;
705
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
706
+ readonly responseIssuerMode: "required" | "unsupported";
707
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
708
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
709
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
710
+ readonly generation: number;
711
+ readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
712
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
713
+ readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
714
+ readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
715
+ readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
716
+ readonly requestBindingExpiresAtMillis: number;
717
+ readonly issuedAtMillis: number;
718
+ readonly expiresAtMillis: number;
719
+ readonly claimLifetimeMillis: number;
720
+ readonly namespace: "effect-auth/oauth-connected-context/v1";
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 profile: {
730
+ readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
731
+ readonly generation: number;
732
+ readonly issuance: "active" | "retired";
733
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
734
+ readonly clientRegistrationId: string;
735
+ readonly scopes: readonly string[];
736
+ readonly resources: readonly string[];
737
+ readonly retention: "access-and-refresh" | "access-only";
738
+ readonly maximumAccessLifetimeMillis: number;
739
+ readonly maximumRefreshLifetimeMillis?: number | undefined;
740
+ readonly refreshAheadMillis: number;
741
+ readonly refresh: "confidential" | "rotating" | "unsupported";
742
+ readonly revocation: "cohort" | "unsupported";
743
+ };
744
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
745
+ readonly reconnect?: {
746
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
747
+ readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
748
+ readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
749
+ readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
750
+ readonly identity: {
751
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
752
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
753
+ readonly subject: string;
754
+ };
755
+ readonly configuration: {
756
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
757
+ readonly protocol: "oauth" | "oidc";
758
+ readonly configurationGeneration: number;
759
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
760
+ readonly responseIssuerMode: "required" | "unsupported";
761
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
762
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
763
+ readonly profile: {
764
+ readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
765
+ readonly generation: number;
766
+ readonly issuance: "active" | "retired";
767
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
768
+ readonly clientRegistrationId: string;
769
+ readonly scopes: readonly string[];
770
+ readonly resources: readonly string[];
771
+ readonly retention: "access-and-refresh" | "access-only";
772
+ readonly maximumAccessLifetimeMillis: number;
773
+ readonly maximumRefreshLifetimeMillis?: number | undefined;
774
+ readonly refreshAheadMillis: number;
775
+ readonly refresh: "confidential" | "rotating" | "unsupported";
776
+ readonly revocation: "cohort" | "unsupported";
777
+ };
778
+ };
779
+ } | undefined;
780
+ readonly maximumEvidenceAgeMillis: number;
781
+ };
782
+ readonly sealed: {
783
+ readonly format: "oauth-xchacha20poly1305-v1";
784
+ readonly keyId: string;
785
+ readonly nonce: string;
786
+ readonly ciphertext: import("effect/Redacted").Redacted<string>;
787
+ };
788
+ readonly retentionUntilMillis: number;
789
+ };
790
+ readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
791
+ readonly claimedAtMillis: number;
792
+ readonly claimExpiresAtMillis: number;
793
+ readonly order: string;
794
+ };
795
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
796
+ readonly inspectGrant: (input: {
797
+ readonly claim: OAuthConnectedClaim;
798
+ readonly identity: {
799
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
800
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
801
+ readonly subject: string;
802
+ };
803
+ }) => import("effect/Effect").Effect<{
804
+ readonly _tag: "Rejected";
805
+ } | {
806
+ readonly _tag: "Target";
807
+ readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
808
+ } | {
809
+ readonly _tag: "Quarantine";
810
+ readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
811
+ } | {
812
+ readonly _tag: "Conflict";
813
+ }, OAuthUnavailable>;
814
+ readonly settle: <A>(input: {
815
+ readonly claim: OAuthConnectedClaim;
816
+ readonly outcome: OAuthConnectedOutcome;
817
+ readonly authorization: OAuthConnectedActionAuthorization;
818
+ readonly nowMillis: number;
819
+ }, prepare: PrepareOAuthCommit<{
820
+ readonly _tag: "Rejected";
821
+ } | {
822
+ readonly _tag: "Conflict";
823
+ } | {
824
+ readonly _tag: "Cancelled";
825
+ } | {
826
+ readonly _tag: "Ambiguous";
827
+ } | {
828
+ readonly _tag: "Connected";
829
+ readonly grant: {
830
+ readonly context: {
831
+ readonly namespace: "effect-auth/oauth-connected-token-context/v1";
832
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
833
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
834
+ readonly identity: {
835
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
836
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
837
+ readonly subject: string;
838
+ };
839
+ readonly configuration: {
840
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
841
+ readonly protocol: "oauth" | "oidc";
842
+ readonly configurationGeneration: number;
843
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
844
+ readonly responseIssuerMode: "required" | "unsupported";
845
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
846
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
847
+ readonly profile: {
848
+ readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
849
+ readonly generation: number;
850
+ readonly issuance: "active" | "retired";
851
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
852
+ readonly clientRegistrationId: string;
853
+ readonly scopes: readonly string[];
854
+ readonly resources: readonly string[];
855
+ readonly retention: "access-and-refresh" | "access-only";
856
+ readonly maximumAccessLifetimeMillis: number;
857
+ readonly maximumRefreshLifetimeMillis?: number | undefined;
858
+ readonly refreshAheadMillis: number;
859
+ readonly refresh: "confidential" | "rotating" | "unsupported";
860
+ readonly revocation: "cohort" | "unsupported";
861
+ };
862
+ };
863
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
864
+ readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
865
+ readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
866
+ readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
867
+ readonly metadata: {
868
+ readonly scopes: readonly string[];
869
+ readonly resources: readonly string[];
870
+ readonly accessExpiresAtMillis?: number | undefined;
871
+ readonly refreshExpiresAtMillis?: number | undefined;
872
+ readonly useUntilMillis: number;
873
+ readonly refreshUseUntilMillis?: number | undefined;
874
+ readonly obtainedAtMillis: number;
875
+ readonly profile?: {
876
+ readonly displayName?: string | undefined;
877
+ readonly handle?: string | undefined;
878
+ } | undefined;
879
+ };
880
+ };
881
+ readonly sealed: {
882
+ readonly format: "oauth-connected-xchacha20poly1305-v1";
883
+ readonly keyId: string;
884
+ readonly nonce: string;
885
+ readonly ciphertext: import("effect/Redacted").Redacted<string>;
886
+ };
887
+ };
888
+ } | {
889
+ readonly _tag: "Busy";
890
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
891
+ readonly list: (input: {
892
+ readonly authorization: OAuthConnectedUseAuthorization;
893
+ readonly limit: number;
894
+ readonly cursor?: string;
895
+ }) => import("effect/Effect").Effect<{
896
+ readonly items: readonly {
897
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
898
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
899
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
900
+ readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
901
+ readonly status: "Active" | "Disconnected" | "ReauthorizationRequired" | "Refreshing";
902
+ readonly scopes: readonly string[];
903
+ readonly accessExpiresAtMillis?: number | undefined;
904
+ readonly useUntilMillis: number;
905
+ readonly profile?: {
906
+ readonly displayName?: string | undefined;
907
+ readonly handle?: string | undefined;
908
+ } | undefined;
909
+ readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
910
+ }[];
911
+ readonly cursor?: string | undefined;
912
+ }, OAuthUnavailable>;
913
+ readonly inspectDisconnect: (input: {
914
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
915
+ readonly subjectId: SubjectId;
916
+ readonly authorization: OAuthConnectedUseAuthorization;
917
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
918
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
919
+ }) => import("effect/Effect").Effect<{
920
+ readonly _tag: "Rejected";
921
+ } | {
922
+ readonly _tag: "Conflict";
923
+ } | {
924
+ readonly _tag: "Target";
925
+ readonly grant: {
926
+ readonly context: {
927
+ readonly namespace: "effect-auth/oauth-connected-token-context/v1";
928
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
929
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
930
+ readonly identity: {
931
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
932
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
933
+ readonly subject: string;
934
+ };
935
+ readonly configuration: {
936
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
937
+ readonly protocol: "oauth" | "oidc";
938
+ readonly configurationGeneration: number;
939
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
940
+ readonly responseIssuerMode: "required" | "unsupported";
941
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
942
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
943
+ readonly profile: {
944
+ readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
945
+ readonly generation: number;
946
+ readonly issuance: "active" | "retired";
947
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
948
+ readonly clientRegistrationId: string;
949
+ readonly scopes: readonly string[];
950
+ readonly resources: readonly string[];
951
+ readonly retention: "access-and-refresh" | "access-only";
952
+ readonly maximumAccessLifetimeMillis: number;
953
+ readonly maximumRefreshLifetimeMillis?: number | undefined;
954
+ readonly refreshAheadMillis: number;
955
+ readonly refresh: "confidential" | "rotating" | "unsupported";
956
+ readonly revocation: "cohort" | "unsupported";
957
+ };
958
+ };
959
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
960
+ readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
961
+ readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
962
+ readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
963
+ readonly metadata: {
964
+ readonly scopes: readonly string[];
965
+ readonly resources: readonly string[];
966
+ readonly accessExpiresAtMillis?: number | undefined;
967
+ readonly refreshExpiresAtMillis?: number | undefined;
968
+ readonly useUntilMillis: number;
969
+ readonly refreshUseUntilMillis?: number | undefined;
970
+ readonly obtainedAtMillis: number;
971
+ readonly profile?: {
972
+ readonly displayName?: string | undefined;
973
+ readonly handle?: string | undefined;
974
+ } | undefined;
975
+ };
976
+ };
977
+ readonly sealed?: {
978
+ readonly format: "oauth-connected-xchacha20poly1305-v1";
979
+ readonly keyId: string;
980
+ readonly nonce: string;
981
+ readonly ciphertext: import("effect/Redacted").Redacted<string>;
982
+ } | undefined;
983
+ };
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
+ } | {
993
+ readonly _tag: "Replay";
994
+ readonly result: {
995
+ readonly _tag: "Disconnected";
996
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
997
+ readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
998
+ readonly affectedGrantCount: number;
999
+ readonly replayed: boolean;
1000
+ };
1001
+ }, OAuthUnavailable>;
1002
+ readonly disconnect: <A>(input: {
1003
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
1004
+ readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
1005
+ readonly grant: OAuthConnectedDisconnectGrant;
1006
+ readonly authorization: OAuthConnectedActionAuthorization;
1007
+ readonly revocation?: OAuthConnectedRevocationJob;
1008
+ readonly retentionUntilMillis: number;
1009
+ }, prepare: PrepareOAuthCommit<{
1010
+ readonly _tag: "Rejected";
1011
+ } | {
1012
+ readonly _tag: "Conflict";
1013
+ } | {
1014
+ readonly _tag: "Disconnected";
1015
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
1016
+ readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
1017
+ readonly affectedGrantCount: number;
1018
+ readonly replayed: boolean;
1019
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
1020
+ readonly inspectAccess: (input: {
1021
+ readonly authorization: OAuthConnectedUseAuthorization;
1022
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
1023
+ readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
1024
+ }) => import("effect/Effect").Effect<{
1025
+ readonly _tag: "Rejected";
1026
+ } | {
1027
+ readonly _tag: "Busy";
1028
+ } | {
1029
+ readonly _tag: "Target";
1030
+ readonly grant: {
1031
+ readonly context: {
1032
+ readonly namespace: "effect-auth/oauth-connected-token-context/v1";
1033
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
1034
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1035
+ readonly identity: {
1036
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1037
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
1038
+ readonly subject: string;
1039
+ };
1040
+ readonly configuration: {
1041
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1042
+ readonly protocol: "oauth" | "oidc";
1043
+ readonly configurationGeneration: number;
1044
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
1045
+ readonly responseIssuerMode: "required" | "unsupported";
1046
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
1047
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
1048
+ readonly profile: {
1049
+ readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
1050
+ readonly generation: number;
1051
+ readonly issuance: "active" | "retired";
1052
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1053
+ readonly clientRegistrationId: string;
1054
+ readonly scopes: readonly string[];
1055
+ readonly resources: readonly string[];
1056
+ readonly retention: "access-and-refresh" | "access-only";
1057
+ readonly maximumAccessLifetimeMillis: number;
1058
+ readonly maximumRefreshLifetimeMillis?: number | undefined;
1059
+ readonly refreshAheadMillis: number;
1060
+ readonly refresh: "confidential" | "rotating" | "unsupported";
1061
+ readonly revocation: "cohort" | "unsupported";
1062
+ };
1063
+ };
1064
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
1065
+ readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1066
+ readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1067
+ readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1068
+ readonly metadata: {
1069
+ readonly scopes: readonly string[];
1070
+ readonly resources: readonly string[];
1071
+ readonly accessExpiresAtMillis?: number | undefined;
1072
+ readonly refreshExpiresAtMillis?: number | undefined;
1073
+ readonly useUntilMillis: number;
1074
+ readonly refreshUseUntilMillis?: number | undefined;
1075
+ readonly obtainedAtMillis: number;
1076
+ readonly profile?: {
1077
+ readonly displayName?: string | undefined;
1078
+ readonly handle?: string | undefined;
1079
+ } | undefined;
1080
+ };
1081
+ };
1082
+ readonly sealed: {
1083
+ readonly format: "oauth-connected-xchacha20poly1305-v1";
1084
+ readonly keyId: string;
1085
+ readonly nonce: string;
1086
+ readonly ciphertext: import("effect/Redacted").Redacted<string>;
1087
+ };
1088
+ };
1089
+ } | {
1090
+ readonly _tag: "ReauthorizationRequired";
1091
+ }, OAuthUnavailable>;
1092
+ readonly claimRefresh: <A>(input: {
1093
+ readonly grant: OAuthConnectedStoredGrant;
1094
+ readonly authorization: OAuthConnectedUseAuthorization;
1095
+ readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
1096
+ readonly nextTokenVersion: OAuthConnectedRefreshClaim["nextTokenVersion"];
1097
+ readonly lifetimeMillis: number;
1098
+ }, prepare: PrepareOAuthCommit<{
1099
+ readonly _tag: "Rejected";
1100
+ } | {
1101
+ readonly _tag: "Busy";
1102
+ } | {
1103
+ readonly _tag: "ReauthorizationRequired";
1104
+ } | {
1105
+ readonly _tag: "Claimed";
1106
+ readonly claim: {
1107
+ readonly grant: {
1108
+ readonly context: {
1109
+ readonly namespace: "effect-auth/oauth-connected-token-context/v1";
1110
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
1111
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1112
+ readonly identity: {
1113
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1114
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
1115
+ readonly subject: string;
1116
+ };
1117
+ readonly configuration: {
1118
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1119
+ readonly protocol: "oauth" | "oidc";
1120
+ readonly configurationGeneration: number;
1121
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
1122
+ readonly responseIssuerMode: "required" | "unsupported";
1123
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
1124
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
1125
+ readonly profile: {
1126
+ readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
1127
+ readonly generation: number;
1128
+ readonly issuance: "active" | "retired";
1129
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1130
+ readonly clientRegistrationId: string;
1131
+ readonly scopes: readonly string[];
1132
+ readonly resources: readonly string[];
1133
+ readonly retention: "access-and-refresh" | "access-only";
1134
+ readonly maximumAccessLifetimeMillis: number;
1135
+ readonly maximumRefreshLifetimeMillis?: number | undefined;
1136
+ readonly refreshAheadMillis: number;
1137
+ readonly refresh: "confidential" | "rotating" | "unsupported";
1138
+ readonly revocation: "cohort" | "unsupported";
1139
+ };
1140
+ };
1141
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
1142
+ readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1143
+ readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1144
+ readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1145
+ readonly metadata: {
1146
+ readonly scopes: readonly string[];
1147
+ readonly resources: readonly string[];
1148
+ readonly accessExpiresAtMillis?: number | undefined;
1149
+ readonly refreshExpiresAtMillis?: number | undefined;
1150
+ readonly useUntilMillis: number;
1151
+ readonly refreshUseUntilMillis?: number | undefined;
1152
+ readonly obtainedAtMillis: number;
1153
+ readonly profile?: {
1154
+ readonly displayName?: string | undefined;
1155
+ readonly handle?: string | undefined;
1156
+ } | undefined;
1157
+ };
1158
+ };
1159
+ readonly sealed: {
1160
+ readonly format: "oauth-connected-xchacha20poly1305-v1";
1161
+ readonly keyId: string;
1162
+ readonly nonce: string;
1163
+ readonly ciphertext: import("effect/Redacted").Redacted<string>;
1164
+ };
1165
+ };
1166
+ readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
1167
+ readonly claimedAtMillis: number;
1168
+ readonly claimExpiresAtMillis: number;
1169
+ readonly nextTokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1170
+ };
1171
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
1172
+ readonly settleRefresh: <A>(input: {
1173
+ readonly claim: OAuthConnectedRefreshClaim;
1174
+ readonly authorization: OAuthConnectedUseAuthorization;
1175
+ readonly outcome: OAuthConnectedRefreshOutcome;
1176
+ }, prepare: PrepareOAuthCommit<{
1177
+ readonly _tag: "Rejected";
1178
+ } | {
1179
+ readonly _tag: "ReauthorizationRequired";
1180
+ } | {
1181
+ readonly _tag: "Refreshed";
1182
+ readonly grant: {
1183
+ readonly context: {
1184
+ readonly namespace: "effect-auth/oauth-connected-token-context/v1";
1185
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
1186
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1187
+ readonly identity: {
1188
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1189
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
1190
+ readonly subject: string;
1191
+ };
1192
+ readonly configuration: {
1193
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1194
+ readonly protocol: "oauth" | "oidc";
1195
+ readonly configurationGeneration: number;
1196
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
1197
+ readonly responseIssuerMode: "required" | "unsupported";
1198
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
1199
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
1200
+ readonly profile: {
1201
+ readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
1202
+ readonly generation: number;
1203
+ readonly issuance: "active" | "retired";
1204
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1205
+ readonly clientRegistrationId: string;
1206
+ readonly scopes: readonly string[];
1207
+ readonly resources: readonly string[];
1208
+ readonly retention: "access-and-refresh" | "access-only";
1209
+ readonly maximumAccessLifetimeMillis: number;
1210
+ readonly maximumRefreshLifetimeMillis?: number | undefined;
1211
+ readonly refreshAheadMillis: number;
1212
+ readonly refresh: "confidential" | "rotating" | "unsupported";
1213
+ readonly revocation: "cohort" | "unsupported";
1214
+ };
1215
+ };
1216
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
1217
+ readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1218
+ readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1219
+ readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1220
+ readonly metadata: {
1221
+ readonly scopes: readonly string[];
1222
+ readonly resources: readonly string[];
1223
+ readonly accessExpiresAtMillis?: number | undefined;
1224
+ readonly refreshExpiresAtMillis?: number | undefined;
1225
+ readonly useUntilMillis: number;
1226
+ readonly refreshUseUntilMillis?: number | undefined;
1227
+ readonly obtainedAtMillis: number;
1228
+ readonly profile?: {
1229
+ readonly displayName?: string | undefined;
1230
+ readonly handle?: string | undefined;
1231
+ } | undefined;
1232
+ };
1233
+ };
1234
+ readonly sealed: {
1235
+ readonly format: "oauth-connected-xchacha20poly1305-v1";
1236
+ readonly keyId: string;
1237
+ readonly nonce: string;
1238
+ readonly ciphertext: import("effect/Redacted").Redacted<string>;
1239
+ };
1240
+ };
1241
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
1242
+ readonly admitUse: <A>(input: {
1243
+ readonly grant: OAuthConnectedStoredGrant;
1244
+ readonly authorization: OAuthConnectedUseAuthorization;
1245
+ readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
1246
+ readonly lifetimeMillis: number;
1247
+ }, prepare: PrepareOAuthCommit<{
1248
+ readonly _tag: "Rejected";
1249
+ } | {
1250
+ readonly _tag: "Busy";
1251
+ } | {
1252
+ readonly _tag: "ReauthorizationRequired";
1253
+ } | {
1254
+ readonly _tag: "Admitted";
1255
+ readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
1256
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
1257
+ readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1258
+ readonly admittedAtMillis: number;
1259
+ readonly expiresAtMillis: number;
1260
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
1261
+ readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
1262
+ readonly terminalized: number;
1263
+ readonly removed: number;
1264
+ readonly hasMore: boolean;
1265
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
1266
+ };
1267
+ }, never, LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnyMySqlTable<{
1268
+ dialect: "mysql";
1269
+ }>, O extends AnyMySqlTable<{
1270
+ dialect: "mysql";
1271
+ }>, F extends AnyMySqlTable<{
1272
+ dialect: "mysql";
1273
+ }>, G extends AnyMySqlTable<{
1274
+ dialect: "mysql";
1275
+ }>, C extends AnyMySqlTable<{
1276
+ dialect: "mysql";
1277
+ }>, H extends AnyMySqlTable<{
1278
+ dialect: "mysql";
1279
+ }>, J extends AnyMySqlTable<{
1280
+ dialect: "mysql";
1281
+ }>, N>(database: EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>) => import("effect/Effect").Effect<{
1282
+ oauthConnectedRevocations: {
1283
+ readonly claim: <A>(input: {
1284
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
1285
+ readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
1286
+ readonly lifetimeMillis: number;
1287
+ }, prepare: PrepareOAuthCommit<{
1288
+ readonly _tag: "Claimed";
1289
+ readonly claim: {
1290
+ readonly job: {
1291
+ readonly context: {
1292
+ readonly namespace: "effect-auth/oauth-connected-revocation-context/v1";
1293
+ readonly jobId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
1294
+ readonly token: {
1295
+ readonly namespace: "effect-auth/oauth-connected-token-context/v1";
1296
+ readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
1297
+ readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
1298
+ readonly identity: {
1299
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1300
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
1301
+ readonly subject: string;
1302
+ };
1303
+ readonly configuration: {
1304
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1305
+ readonly protocol: "oauth" | "oidc";
1306
+ readonly configurationGeneration: number;
1307
+ readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
1308
+ readonly responseIssuerMode: "required" | "unsupported";
1309
+ readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
1310
+ readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
1311
+ readonly profile: {
1312
+ readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
1313
+ readonly generation: number;
1314
+ readonly issuance: "active" | "retired";
1315
+ readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
1316
+ readonly clientRegistrationId: string;
1317
+ readonly scopes: readonly string[];
1318
+ readonly resources: readonly string[];
1319
+ readonly retention: "access-and-refresh" | "access-only";
1320
+ readonly maximumAccessLifetimeMillis: number;
1321
+ readonly maximumRefreshLifetimeMillis?: number | undefined;
1322
+ readonly refreshAheadMillis: number;
1323
+ readonly refresh: "confidential" | "rotating" | "unsupported";
1324
+ readonly revocation: "cohort" | "unsupported";
1325
+ };
1326
+ };
1327
+ readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
1328
+ readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1329
+ readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1330
+ readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
1331
+ readonly metadata: {
1332
+ readonly scopes: readonly string[];
1333
+ readonly resources: readonly string[];
1334
+ readonly accessExpiresAtMillis?: number | undefined;
1335
+ readonly refreshExpiresAtMillis?: number | undefined;
1336
+ readonly useUntilMillis: number;
1337
+ readonly refreshUseUntilMillis?: number | undefined;
1338
+ readonly obtainedAtMillis: number;
1339
+ readonly profile?: {
1340
+ readonly displayName?: string | undefined;
1341
+ readonly handle?: string | undefined;
1342
+ } | undefined;
1343
+ };
1344
+ };
1345
+ };
1346
+ readonly sealed: {
1347
+ readonly format: "oauth-connected-xchacha20poly1305-v1";
1348
+ readonly keyId: string;
1349
+ readonly nonce: string;
1350
+ readonly ciphertext: import("effect/Redacted").Redacted<string>;
1351
+ };
1352
+ };
1353
+ readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
1354
+ readonly claimedAtMillis: number;
1355
+ readonly claimExpiresAtMillis: number;
1356
+ };
1357
+ } | {
1358
+ readonly _tag: "Empty";
1359
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
1360
+ readonly settle: <A>(input: {
1361
+ readonly claim: OAuthConnectedRevocationClaim;
1362
+ readonly outcome: "Confirmed" | "Unknown";
1363
+ }, prepare: PrepareOAuthCommit<{
1364
+ readonly settled: boolean;
1365
+ }, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
1366
+ };
1367
+ }, never, LifecycleHooks>, coordinateOAuthConnected: {
1368
+ <D extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1369
+ dialect: "mysql";
1370
+ }>, AC extends AnyMySqlTable<{
1371
+ dialect: "mysql";
1372
+ }>, T extends AnyMySqlTable<{
1373
+ dialect: "mysql";
1374
+ }>, O extends AnyMySqlTable<{
1375
+ dialect: "mysql";
1376
+ }>, F extends AnyMySqlTable<{
1377
+ dialect: "mysql";
1378
+ }>, G extends AnyMySqlTable<{
1379
+ dialect: "mysql";
1380
+ }>, C extends AnyMySqlTable<{
1381
+ dialect: "mysql";
1382
+ }>, H extends AnyMySqlTable<{
1383
+ dialect: "mysql";
1384
+ }>, UA extends AnyMySqlTable<{
1385
+ dialect: "mysql";
1386
+ }>, DC extends AnyMySqlTable<{
1387
+ dialect: "mysql";
1388
+ }>, N, J extends AnyMySqlTable<{
1389
+ dialect: "mysql";
1390
+ }>, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<D, DatabaseError, DatabaseRequirements>, options: {
1391
+ readonly mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>;
1392
+ readonly transaction?: never;
1393
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, OAuthConnectedPersistence>>;
1394
+ <D extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1395
+ dialect: "mysql";
1396
+ }>, AC extends AnyMySqlTable<{
1397
+ dialect: "mysql";
1398
+ }>, T extends AnyMySqlTable<{
1399
+ dialect: "mysql";
1400
+ }>, O extends AnyMySqlTable<{
1401
+ dialect: "mysql";
1402
+ }>, F extends AnyMySqlTable<{
1403
+ dialect: "mysql";
1404
+ }>, G extends AnyMySqlTable<{
1405
+ dialect: "mysql";
1406
+ }>, C extends AnyMySqlTable<{
1407
+ dialect: "mysql";
1408
+ }>, H extends AnyMySqlTable<{
1409
+ dialect: "mysql";
1410
+ }>, UA extends AnyMySqlTable<{
1411
+ dialect: "mysql";
1412
+ }>, DC extends AnyMySqlTable<{
1413
+ dialect: "mysql";
1414
+ }>, N, J extends AnyMySqlTable<{
1415
+ dialect: "mysql";
1416
+ }>, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<D, DatabaseError, DatabaseRequirements>, options: {
1417
+ readonly mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>;
1418
+ readonly transaction: SuppliedService<TxId, NoInfer<D extends {
1419
+ readonly transaction: (...args: any[]) => any;
1420
+ } ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
1421
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TxId | OAuthConnectedPersistence>>;
1422
+ }, coordinateOAuthConnectedRevocations: {
1423
+ <D extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, T extends AnyMySqlTable<{
1424
+ dialect: "mysql";
1425
+ }>, O extends AnyMySqlTable<{
1426
+ dialect: "mysql";
1427
+ }>, F extends AnyMySqlTable<{
1428
+ dialect: "mysql";
1429
+ }>, G extends AnyMySqlTable<{
1430
+ dialect: "mysql";
1431
+ }>, C extends AnyMySqlTable<{
1432
+ dialect: "mysql";
1433
+ }>, H extends AnyMySqlTable<{
1434
+ dialect: "mysql";
1435
+ }>, J extends AnyMySqlTable<{
1436
+ dialect: "mysql";
1437
+ }>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<D, DatabaseError, DatabaseRequirements>, options: {
1438
+ readonly mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>;
1439
+ readonly transaction?: never;
1440
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, OAuthConnectedRevocations>>;
1441
+ <D extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, T extends AnyMySqlTable<{
1442
+ dialect: "mysql";
1443
+ }>, O extends AnyMySqlTable<{
1444
+ dialect: "mysql";
1445
+ }>, F extends AnyMySqlTable<{
1446
+ dialect: "mysql";
1447
+ }>, G extends AnyMySqlTable<{
1448
+ dialect: "mysql";
1449
+ }>, C extends AnyMySqlTable<{
1450
+ dialect: "mysql";
1451
+ }>, H extends AnyMySqlTable<{
1452
+ dialect: "mysql";
1453
+ }>, J extends AnyMySqlTable<{
1454
+ dialect: "mysql";
1455
+ }>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<D, DatabaseError, DatabaseRequirements>, options: {
1456
+ readonly mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>;
1457
+ readonly transaction: SuppliedService<TxId, NoInfer<D extends {
1458
+ readonly transaction: (...args: any[]) => any;
1459
+ } ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
1460
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TxId | OAuthConnectedRevocations>>;
1461
+ };
1462
+ declare const makePasskeyCredentialServices: <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1463
+ dialect: "mysql";
1464
+ }>, C extends AnyMySqlTable<{
1465
+ dialect: "mysql";
1466
+ }>, F extends AnyMySqlTable<{
1467
+ dialect: "mysql";
1468
+ }>, O extends AnyMySqlTable<{
1469
+ dialect: "mysql";
1470
+ }>, H extends AnyMySqlTable<{
1471
+ dialect: "mysql";
1472
+ }>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyCredentialMapping<S, C, F, O, H, N>, RSetup>) => import("effect/Effect").Effect<PasskeyCredentialServices, DrizzleMappingError | PasskeyConfigurationError, RSetup>, makePasskeyPersistenceServices: <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1473
+ dialect: "mysql";
1474
+ }>, C extends AnyMySqlTable<{
1475
+ dialect: "mysql";
1476
+ }>, F extends AnyMySqlTable<{
1477
+ dialect: "mysql";
1478
+ }>, O extends AnyMySqlTable<{
1479
+ dialect: "mysql";
1480
+ }>, H extends AnyMySqlTable<{
1481
+ dialect: "mysql";
1482
+ }>, M extends AnyMySqlTable<{
1483
+ dialect: "mysql";
1484
+ }>, Flow extends AnyMySqlTable<{
1485
+ dialect: "mysql";
1486
+ }>, Admission extends AnyMySqlTable<{
1487
+ dialect: "mysql";
1488
+ }>, Charge extends AnyMySqlTable<{
1489
+ dialect: "mysql";
1490
+ }>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>) => import("effect/Effect").Effect<PasskeyPersistenceServices, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, makePasskeyEnrollmentContextServices: <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1491
+ dialect: "mysql";
1492
+ }>, C extends AnyMySqlTable<{
1493
+ dialect: "mysql";
1494
+ }>, F extends AnyMySqlTable<{
1495
+ dialect: "mysql";
1496
+ }>, O extends AnyMySqlTable<{
1497
+ dialect: "mysql";
1498
+ }>, H extends AnyMySqlTable<{
1499
+ dialect: "mysql";
1500
+ }>, M extends AnyMySqlTable<{
1501
+ dialect: "mysql";
1502
+ }>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyEnrollmentContextMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, N>, RSetup>) => import("effect/Effect").Effect<PasskeyEnrollmentContextServices, DrizzleMappingError | PasskeyConfigurationError, RSetup>, makePasskeyRegistrationCeremonyServices: <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, M extends AnyMySqlTable<{
1503
+ dialect: "mysql";
1504
+ }>, Flow extends AnyMySqlTable<{
1505
+ dialect: "mysql";
1506
+ }>, Admission extends AnyMySqlTable<{
1507
+ dialect: "mysql";
1508
+ }>, Charge extends AnyMySqlTable<{
1509
+ dialect: "mysql";
1510
+ }>, Intent extends AnyMySqlTable<{
1511
+ dialect: "mysql";
1512
+ }>, H extends AnyMySqlTable<{
1513
+ dialect: "mysql";
1514
+ }>, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>) => import("effect/Effect").Effect<PasskeyRegistrationCeremonyServices, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, coordinatePasskeyPersistence: {
1515
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1516
+ dialect: "mysql";
1517
+ }>, C extends AnyMySqlTable<{
1518
+ dialect: "mysql";
1519
+ }>, F extends AnyMySqlTable<{
1520
+ dialect: "mysql";
1521
+ }>, O extends AnyMySqlTable<{
1522
+ dialect: "mysql";
1523
+ }>, H extends AnyMySqlTable<{
1524
+ dialect: "mysql";
1525
+ }>, M extends AnyMySqlTable<{
1526
+ dialect: "mysql";
1527
+ }>, Flow extends AnyMySqlTable<{
1528
+ dialect: "mysql";
1529
+ }>, Admission extends AnyMySqlTable<{
1530
+ dialect: "mysql";
1531
+ }>, Charge extends AnyMySqlTable<{
1532
+ dialect: "mysql";
1533
+ }>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1534
+ readonly mapping: PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>;
1535
+ readonly transaction?: never;
1536
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, PasskeyPersistence>>;
1537
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1538
+ dialect: "mysql";
1539
+ }>, C extends AnyMySqlTable<{
1540
+ dialect: "mysql";
1541
+ }>, F extends AnyMySqlTable<{
1542
+ dialect: "mysql";
1543
+ }>, O extends AnyMySqlTable<{
1544
+ dialect: "mysql";
1545
+ }>, H extends AnyMySqlTable<{
1546
+ dialect: "mysql";
1547
+ }>, M extends AnyMySqlTable<{
1548
+ dialect: "mysql";
1549
+ }>, Flow extends AnyMySqlTable<{
1550
+ dialect: "mysql";
1551
+ }>, Admission extends AnyMySqlTable<{
1552
+ dialect: "mysql";
1553
+ }>, Charge extends AnyMySqlTable<{
1554
+ dialect: "mysql";
1555
+ }>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1556
+ readonly mapping: PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>;
1557
+ readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
1558
+ readonly transaction: (...args: any[]) => any;
1559
+ } ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
1560
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TxId | PasskeyPersistence>>;
1561
+ }, coordinatePasskeyRegistrationCeremony: {
1562
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, M extends AnyMySqlTable<{
1563
+ dialect: "mysql";
1564
+ }>, Flow extends AnyMySqlTable<{
1565
+ dialect: "mysql";
1566
+ }>, Admission extends AnyMySqlTable<{
1567
+ dialect: "mysql";
1568
+ }>, Charge extends AnyMySqlTable<{
1569
+ dialect: "mysql";
1570
+ }>, Intent extends AnyMySqlTable<{
1571
+ dialect: "mysql";
1572
+ }>, H extends AnyMySqlTable<{
1573
+ dialect: "mysql";
1574
+ }>, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1575
+ readonly mapping: PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>;
1576
+ readonly transaction?: never;
1577
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, PasskeyPersistence>>;
1578
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, M extends AnyMySqlTable<{
1579
+ dialect: "mysql";
1580
+ }>, Flow extends AnyMySqlTable<{
1581
+ dialect: "mysql";
1582
+ }>, Admission extends AnyMySqlTable<{
1583
+ dialect: "mysql";
1584
+ }>, Charge extends AnyMySqlTable<{
1585
+ dialect: "mysql";
1586
+ }>, Intent extends AnyMySqlTable<{
1587
+ dialect: "mysql";
1588
+ }>, H extends AnyMySqlTable<{
1589
+ dialect: "mysql";
1590
+ }>, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1591
+ readonly mapping: PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>;
1592
+ readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
1593
+ readonly transaction: (...args: any[]) => any;
1594
+ } ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
1595
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TxId | PasskeyPersistence>>;
1596
+ }, makePasskeyManagementServices: <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1597
+ dialect: "mysql";
1598
+ }>, C extends AnyMySqlTable<{
1599
+ dialect: "mysql";
1600
+ }>, F extends AnyMySqlTable<{
1601
+ dialect: "mysql";
1602
+ }>, O extends AnyMySqlTable<{
1603
+ dialect: "mysql";
1604
+ }>, H extends AnyMySqlTable<{
1605
+ dialect: "mysql";
1606
+ }>, M extends AnyMySqlTable<{
1607
+ dialect: "mysql";
1608
+ }>, Flow extends AnyMySqlTable<{
1609
+ dialect: "mysql";
1610
+ }>, Admission extends AnyMySqlTable<{
1611
+ dialect: "mysql";
1612
+ }>, Charge extends AnyMySqlTable<{
1613
+ dialect: "mysql";
1614
+ }>, Command extends AnyMySqlTable<{
1615
+ dialect: "mysql";
1616
+ }>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>) => import("effect/Effect").Effect<PasskeyManagementServices, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, makePasskeyRegistrationServices: <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1617
+ dialect: "mysql";
1618
+ }>, C extends AnyMySqlTable<{
1619
+ dialect: "mysql";
1620
+ }>, F extends AnyMySqlTable<{
1621
+ dialect: "mysql";
1622
+ }>, O extends AnyMySqlTable<{
1623
+ dialect: "mysql";
1624
+ }>, H extends AnyMySqlTable<{
1625
+ dialect: "mysql";
1626
+ }>, M extends AnyMySqlTable<{
1627
+ dialect: "mysql";
1628
+ }>, Flow extends AnyMySqlTable<{
1629
+ dialect: "mysql";
1630
+ }>, Admission extends AnyMySqlTable<{
1631
+ dialect: "mysql";
1632
+ }>, Charge extends AnyMySqlTable<{
1633
+ dialect: "mysql";
1634
+ }>, Intent extends AnyMySqlTable<{
1635
+ dialect: "mysql";
1636
+ }>, N, Value, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>) => import("effect/Effect").Effect<PasskeyRegistrationServices<Value>, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, coordinatePasskeyManagement: {
1637
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1638
+ dialect: "mysql";
1639
+ }>, C extends AnyMySqlTable<{
1640
+ dialect: "mysql";
1641
+ }>, F extends AnyMySqlTable<{
1642
+ dialect: "mysql";
1643
+ }>, O extends AnyMySqlTable<{
1644
+ dialect: "mysql";
1645
+ }>, H extends AnyMySqlTable<{
1646
+ dialect: "mysql";
1647
+ }>, M extends AnyMySqlTable<{
1648
+ dialect: "mysql";
1649
+ }>, Flow extends AnyMySqlTable<{
1650
+ dialect: "mysql";
1651
+ }>, Admission extends AnyMySqlTable<{
1652
+ dialect: "mysql";
1653
+ }>, Charge extends AnyMySqlTable<{
1654
+ dialect: "mysql";
1655
+ }>, Command extends AnyMySqlTable<{
1656
+ dialect: "mysql";
1657
+ }>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1658
+ readonly mapping: PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>;
1659
+ readonly transaction?: never;
1660
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, PasskeyManagementPersistence | PasskeyPersistence>>;
1661
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1662
+ dialect: "mysql";
1663
+ }>, C extends AnyMySqlTable<{
1664
+ dialect: "mysql";
1665
+ }>, F extends AnyMySqlTable<{
1666
+ dialect: "mysql";
1667
+ }>, O extends AnyMySqlTable<{
1668
+ dialect: "mysql";
1669
+ }>, H extends AnyMySqlTable<{
1670
+ dialect: "mysql";
1671
+ }>, M extends AnyMySqlTable<{
1672
+ dialect: "mysql";
1673
+ }>, Flow extends AnyMySqlTable<{
1674
+ dialect: "mysql";
1675
+ }>, Admission extends AnyMySqlTable<{
1676
+ dialect: "mysql";
1677
+ }>, Charge extends AnyMySqlTable<{
1678
+ dialect: "mysql";
1679
+ }>, Command extends AnyMySqlTable<{
1680
+ dialect: "mysql";
1681
+ }>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1682
+ readonly mapping: PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>;
1683
+ readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
1684
+ readonly transaction: (...args: any[]) => any;
1685
+ } ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
1686
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TxId | PasskeyManagementPersistence | PasskeyPersistence>>;
1687
+ }, coordinatePasskeyRegistration: {
1688
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1689
+ dialect: "mysql";
1690
+ }>, C extends AnyMySqlTable<{
1691
+ dialect: "mysql";
1692
+ }>, F extends AnyMySqlTable<{
1693
+ dialect: "mysql";
1694
+ }>, O extends AnyMySqlTable<{
1695
+ dialect: "mysql";
1696
+ }>, H extends AnyMySqlTable<{
1697
+ dialect: "mysql";
1698
+ }>, M extends AnyMySqlTable<{
1699
+ dialect: "mysql";
1700
+ }>, Flow extends AnyMySqlTable<{
1701
+ dialect: "mysql";
1702
+ }>, Admission extends AnyMySqlTable<{
1703
+ dialect: "mysql";
1704
+ }>, Charge extends AnyMySqlTable<{
1705
+ dialect: "mysql";
1706
+ }>, Intent extends AnyMySqlTable<{
1707
+ dialect: "mysql";
1708
+ }>, N, Value, A, E, R, AuthorityId, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1709
+ readonly mapping: PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>;
1710
+ readonly authority: import("effect/Context").Key<AuthorityId, PasskeyRegistrationWriter<Value>>;
1711
+ readonly transaction?: never;
1712
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, AuthorityId | PasskeyPersistence>>;
1713
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1714
+ dialect: "mysql";
1715
+ }>, C extends AnyMySqlTable<{
1716
+ dialect: "mysql";
1717
+ }>, F extends AnyMySqlTable<{
1718
+ dialect: "mysql";
1719
+ }>, O extends AnyMySqlTable<{
1720
+ dialect: "mysql";
1721
+ }>, H extends AnyMySqlTable<{
1722
+ dialect: "mysql";
1723
+ }>, M extends AnyMySqlTable<{
1724
+ dialect: "mysql";
1725
+ }>, Flow extends AnyMySqlTable<{
1726
+ dialect: "mysql";
1727
+ }>, Admission extends AnyMySqlTable<{
1728
+ dialect: "mysql";
1729
+ }>, Charge extends AnyMySqlTable<{
1730
+ dialect: "mysql";
1731
+ }>, Intent extends AnyMySqlTable<{
1732
+ dialect: "mysql";
1733
+ }>, N, Value, A, E, R, AuthorityId, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1734
+ readonly mapping: PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>;
1735
+ readonly authority: import("effect/Context").Key<AuthorityId, PasskeyRegistrationWriter<Value>>;
1736
+ readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
1737
+ readonly transaction: (...args: any[]) => any;
1738
+ } ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
1739
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, AuthorityId | TxId | PasskeyPersistence>>;
1740
+ };
1741
+ declare const makeTotpPersistenceServices: <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1742
+ dialect: "mysql";
1743
+ }>, F extends AnyMySqlTable<{
1744
+ dialect: "mysql";
1745
+ }>, C extends AnyMySqlTable<{
1746
+ dialect: "mysql";
1747
+ }>, N, RSetup = never>(database: Database, mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>) => import("effect/Effect").Effect<TotpPersistenceServices, DrizzleMappingError | TotpConfigurationError, RSetup | LifecycleHooks>, coordinateTotpPersistence: {
1748
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1749
+ dialect: "mysql";
1750
+ }>, F extends AnyMySqlTable<{
1751
+ dialect: "mysql";
1752
+ }>, C extends AnyMySqlTable<{
1753
+ dialect: "mysql";
1754
+ }>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1755
+ readonly mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>;
1756
+ readonly transaction?: never;
1757
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TotpPersistence>>;
1758
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1759
+ dialect: "mysql";
1760
+ }>, F extends AnyMySqlTable<{
1761
+ dialect: "mysql";
1762
+ }>, C extends AnyMySqlTable<{
1763
+ dialect: "mysql";
1764
+ }>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1765
+ readonly mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>;
1766
+ readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
1767
+ readonly transaction: (...args: any[]) => any;
1768
+ } ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
1769
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TxId | TotpPersistence>>;
1770
+ };
1771
+ declare const makePhonePersistenceServices: <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1772
+ dialect: "mysql";
1773
+ }>, I extends AnyMySqlTable<{
1774
+ dialect: "mysql";
1775
+ }>, F extends AnyMySqlTable<{
1776
+ dialect: "mysql";
1777
+ }>, C extends AnyMySqlTable<{
1778
+ dialect: "mysql";
1779
+ }>, N, RSetup = never>(database: Database, mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>) => import("effect/Effect").Effect<PhonePersistenceServices, DrizzleMappingError | PhoneConfigurationError, RSetup | LifecycleHooks>, coordinatePhonePersistence: {
1780
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1781
+ dialect: "mysql";
1782
+ }>, I extends AnyMySqlTable<{
1783
+ dialect: "mysql";
1784
+ }>, F extends AnyMySqlTable<{
1785
+ dialect: "mysql";
1786
+ }>, C extends AnyMySqlTable<{
1787
+ dialect: "mysql";
1788
+ }>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1789
+ readonly mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>;
1790
+ readonly transaction?: never;
1791
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PhoneCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, PhoneAdmission | PhonePersistence | PhoneSignInTargets>>;
1792
+ <Database extends EffectMysql2Database<import("drizzle-orm").TablesRelationalConfig>, S extends AnyMySqlTable<{
1793
+ dialect: "mysql";
1794
+ }>, I extends AnyMySqlTable<{
1795
+ dialect: "mysql";
1796
+ }>, F extends AnyMySqlTable<{
1797
+ dialect: "mysql";
1798
+ }>, C extends AnyMySqlTable<{
1799
+ dialect: "mysql";
1800
+ }>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
1801
+ readonly mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>;
1802
+ readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
1803
+ readonly transaction: (...args: any[]) => any;
1804
+ } ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
1805
+ }, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PhoneCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TxId | PhoneAdmission | PhonePersistence | PhoneSignInTargets>>;
1806
+ };
1807
+ //#endregion
1808
+ export { commitMode, coordinateMysqlAuthStoreTransaction as coordinateAuthStoreTransaction, coordinateMysqlAuthTransaction as coordinateAuthTransaction, coordinateMysqlAuthenticationAuthority as coordinateAuthenticationAuthority, coordinateMysqlEmailAddress as coordinateEmailAddress, coordinateMysqlEmailRegistration as coordinateEmailRegistration, coordinateOAuthAccounts, coordinateOAuthConnected, coordinateOAuthConnectedRevocations, coordinateOAuthRegistration, coordinateOAuthRegistrationIntents, coordinateOAuthSignIn, coordinateMysqlOAuthStateTransaction as coordinateOAuthStateTransaction, coordinatePasskeyManagement, coordinatePasskeyPersistence, coordinatePasskeyRegistration, coordinatePasskeyRegistrationCeremony, coordinateMysqlPasswordPersistence as coordinatePasswordPersistence, coordinateMySqlPasswordPreparedPersistence as coordinatePasswordPreparedPersistence, coordinateMysqlPasswordRegistration as coordinatePasswordRegistration, coordinateMysqlPendingAuthentication as coordinatePendingAuthentication, coordinatePhonePersistence, coordinateMysqlProofPersistence as coordinateProofPersistence, coordinateMysqlSessionStepUp as coordinateSessionStepUp, coordinateMysqlSignedSessionValidity as coordinateSignedSessionValidity, coordinateMysqlStatefulSessions as coordinateStatefulSessions, coordinateTotpPersistence, makeAuthServices, makeMysqlAuthStoreServices as makeAuthStoreServices, makeMysqlAuthenticationAuthorityServices as makeAuthenticationAuthorityServices, makeMysqlEmailAddressServices as makeEmailAddressServices, makeMysqlEmailRegistrationServices as makeEmailRegistrationServices, makeMysqlEmailSignInServices as makeEmailSignInServices, makeMysqlExternalIdentityServices as makeExternalIdentityServices, makeIdentityServices, makeOAuthAccountsServices, makeOAuthConnectedRevocationServices, makeOAuthConnectedServices, makeOAuthRegistrationIntentServices, makeOAuthRegistrationServices, makeOAuthSignInServices, makeMysqlOAuthStateServices as makeOAuthStateServices, makePasskeyCredentialServices, makePasskeyEnrollmentContextServices, makePasskeyManagementServices, makePasskeyPersistenceServices, makePasskeyRegistrationCeremonyServices, makePasskeyRegistrationServices, makeMysqlPasswordPersistenceServices as makePasswordPersistenceServices, makeMySqlPasswordPreparedPersistenceServices as makePasswordPreparedPersistenceServices, makeMysqlPasswordRegistrationServices as makePasswordRegistrationServices, makeMysqlPendingAuthenticationServices as makePendingAuthenticationServices, makePhonePersistenceServices, makeMysqlProofPersistenceServices as makeProofPersistenceServices, makeMysqlSessionStepUpServices as makeSessionStepUpServices, makeMysqlSignedSessionValidityServices as makeSignedSessionValidityServices, makeMysqlStatefulSessionServices as makeStatefulSessionServices, makeMysqlSubjectProvisioningServices as makeSubjectProvisioningServices, makeTotpPersistenceServices, passwordPreparedPersistenceLayer };
1809
+ //# sourceMappingURL=DrizzleMysql2.d.mts.map