authhero 5.8.1 → 5.9.0

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 (386) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +97 -97
  3. package/dist/authhero.d.ts +17622 -72311
  4. package/dist/authhero.mjs +5587 -5593
  5. package/dist/stats.html +1 -1
  6. package/dist/tsconfig.types.tsbuildinfo +1 -0
  7. package/dist/types/adapters/cache/in-memory.d.ts +52 -0
  8. package/dist/types/adapters/cache/index.d.ts +2 -0
  9. package/dist/types/adapters/index.d.ts +1 -0
  10. package/dist/types/authentication-flows/auth0-migration.d.ts +53 -0
  11. package/dist/types/authentication-flows/authorization-code.d.ts +23 -0
  12. package/dist/types/authentication-flows/client-credentials.d.ts +16 -0
  13. package/dist/types/authentication-flows/common.d.ts +253 -0
  14. package/dist/types/authentication-flows/connection.d.ts +17 -0
  15. package/dist/types/authentication-flows/mfa.d.ts +49 -0
  16. package/dist/types/authentication-flows/passkey-enrollment.d.ts +19 -0
  17. package/dist/types/authentication-flows/password.d.ts +24 -0
  18. package/dist/types/authentication-flows/passwordless.d.ts +571 -0
  19. package/dist/types/authentication-flows/refresh-token-migration.d.ts +17 -0
  20. package/dist/types/authentication-flows/refresh-token.d.ts +15 -0
  21. package/dist/types/authentication-flows/resume.d.ts +22 -0
  22. package/dist/types/authentication-flows/silent.d.ts +25 -0
  23. package/dist/types/authentication-flows/ticket.d.ts +7 -0
  24. package/dist/types/authentication-flows/try-connection.d.ts +33 -0
  25. package/dist/types/authentication-flows/universal.d.ts +19 -0
  26. package/dist/types/build-hash.d.ts +7 -0
  27. package/dist/types/client/client-bundle.d.ts +1 -0
  28. package/dist/types/client/form-handler.d.ts +9 -0
  29. package/dist/types/client/incognito-handler.d.ts +5 -0
  30. package/dist/types/client/index.d.ts +1 -0
  31. package/dist/types/client/input-otp.d.ts +12 -0
  32. package/dist/types/client/password-toggle.d.ts +10 -0
  33. package/dist/types/client/user-agent-detector.d.ts +22 -0
  34. package/dist/types/components/AccountChangeEmailPage.d.ts +14 -0
  35. package/dist/types/components/AccountForm.d.ts +17 -0
  36. package/dist/types/components/AccountPage.d.ts +15 -0
  37. package/dist/types/components/AppLogo.d.ts +8 -0
  38. package/dist/types/components/AuthLayout.d.ts +18 -0
  39. package/dist/types/components/Button.d.ts +12 -0
  40. package/dist/types/components/ChangeEmailForm.d.ts +14 -0
  41. package/dist/types/components/ChangeEmailPage.d.ts +15 -0
  42. package/dist/types/components/ContinueForm.d.ts +13 -0
  43. package/dist/types/components/EmailValidatedForm.d.ts +12 -0
  44. package/dist/types/components/EmailValidatedPage.d.ts +11 -0
  45. package/dist/types/components/EnterCodeForm.d.ts +13 -0
  46. package/dist/types/components/EnterCodePage.d.ts +14 -0
  47. package/dist/types/components/EnterPasswordForm.d.ts +14 -0
  48. package/dist/types/components/EnterPasswordPage.d.ts +13 -0
  49. package/dist/types/components/ErrorMessage.d.ts +6 -0
  50. package/dist/types/components/Footer.d.ts +9 -0
  51. package/dist/types/components/ForgotPasswordForm.d.ts +14 -0
  52. package/dist/types/components/ForgotPasswordPage.d.ts +13 -0
  53. package/dist/types/components/ForgotPasswordSentPage.d.ts +11 -0
  54. package/dist/types/components/Form.d.ts +6 -0
  55. package/dist/types/components/FormNodePage.d.ts +16 -0
  56. package/dist/types/components/GoBack.d.ts +5 -0
  57. package/dist/types/components/GoogleLogo.d.ts +4 -0
  58. package/dist/types/components/Icon.d.ts +8 -0
  59. package/dist/types/components/IconEye.d.ts +8 -0
  60. package/dist/types/components/IconEyeSlash.d.ts +8 -0
  61. package/dist/types/components/IconPen.d.ts +7 -0
  62. package/dist/types/components/IdentifierForm.d.ts +16 -0
  63. package/dist/types/components/IdentifierPage.d.ts +15 -0
  64. package/dist/types/components/ImpersonateForm.d.ts +14 -0
  65. package/dist/types/components/ImpersonationPage.d.ts +13 -0
  66. package/dist/types/components/InvalidSessionPage.d.ts +11 -0
  67. package/dist/types/components/Layout.d.ts +11 -0
  68. package/dist/types/components/LoginForm.d.ts +15 -0
  69. package/dist/types/components/MessagePage.d.ts +13 -0
  70. package/dist/types/components/PasswordInput.d.ts +6 -0
  71. package/dist/types/components/PreSignUpConfirmationPage.d.ts +12 -0
  72. package/dist/types/components/PreSignUpPage.d.ts +12 -0
  73. package/dist/types/components/ResetPasswordForm.d.ts +14 -0
  74. package/dist/types/components/ResetPasswordPage.d.ts +12 -0
  75. package/dist/types/components/SignUpForm.d.ts +15 -0
  76. package/dist/types/components/SignUpPage.d.ts +14 -0
  77. package/dist/types/components/SocialButton.d.ts +10 -0
  78. package/dist/types/components/Spinner.d.ts +6 -0
  79. package/dist/types/components/Trans.d.ts +8 -0
  80. package/dist/types/components/UnverifiedEmailPage.d.ts +11 -0
  81. package/dist/types/components/UserNotFoundPage.d.ts +12 -0
  82. package/dist/types/components/VippsLogo.d.ts +4 -0
  83. package/dist/types/components/index.d.ts +34 -0
  84. package/dist/types/components/stories/AccountForm.stories.d.ts +13 -0
  85. package/dist/types/components/stories/AuthLayout.stories.d.ts +27 -0
  86. package/dist/types/components/stories/ChangeEmailForm.stories.d.ts +11 -0
  87. package/dist/types/components/stories/ContinueForm.stories.d.ts +10 -0
  88. package/dist/types/components/stories/EnterCodeForm.stories.d.ts +9 -0
  89. package/dist/types/components/stories/EnterPasswordForm.stories.d.ts +22 -0
  90. package/dist/types/components/stories/IdentifierForm.stories.d.ts +42 -0
  91. package/dist/types/components/stories/IdentifierPage.stories.d.ts +33 -0
  92. package/dist/types/components/stories/ImpersonateForm.stories.d.ts +11 -0
  93. package/dist/types/components/stories/LoginForm.stories.d.ts +12 -0
  94. package/dist/types/components/ui/button.d.ts +12 -0
  95. package/dist/types/components/ui/card.d.ts +30 -0
  96. package/dist/types/components/ui/input-otp.d.ts +31 -0
  97. package/dist/types/components/ui/input.d.ts +15 -0
  98. package/dist/types/components/ui/label.d.ts +9 -0
  99. package/dist/types/constants/defaultBranding.d.ts +2 -0
  100. package/dist/types/constants/defaultTheme.d.ts +2 -0
  101. package/dist/types/constants/index.d.ts +2 -0
  102. package/dist/types/constants.d.ts +15 -0
  103. package/dist/types/email-services/index.d.ts +3 -0
  104. package/dist/types/email-services/mailgun.d.ts +18 -0
  105. package/dist/types/email-services/postmark.d.ts +14 -0
  106. package/dist/types/email-services/resend.d.ts +14 -0
  107. package/dist/types/emails/defaults/Layout.d.ts +12 -0
  108. package/dist/types/emails/defaults/PrimaryButton.d.ts +11 -0
  109. package/dist/types/emails/defaults/ResetEmail.d.ts +1 -0
  110. package/dist/types/emails/defaults/ResetEmailByCode.d.ts +1 -0
  111. package/dist/types/emails/defaults/UserInvitation.d.ts +1 -0
  112. package/dist/types/emails/defaults/VerifyEmail.d.ts +1 -0
  113. package/dist/types/emails/defaults/VerifyEmailByCode.d.ts +1 -0
  114. package/dist/types/emails/defaults/WelcomeEmail.d.ts +1 -0
  115. package/dist/types/emails/defaults/compiled.d.ts +2 -0
  116. package/dist/types/emails/defaults/index.d.ts +6 -0
  117. package/dist/types/emails/defaults/subjects.d.ts +2 -0
  118. package/dist/types/emails/index.d.ts +70 -0
  119. package/dist/types/emails/render.d.ts +41 -0
  120. package/dist/types/errors/is-unique-constraint-error.d.ts +8 -0
  121. package/dist/types/errors/json-http-exception.d.ts +5 -0
  122. package/dist/types/errors/redirect-exception.d.ts +6 -0
  123. package/dist/types/generated/locale-types.d.ts +690 -0
  124. package/dist/types/helpers/cache-wrapper.d.ts +23 -0
  125. package/dist/types/helpers/client-assertion.d.ts +49 -0
  126. package/dist/types/helpers/client-keys.d.ts +27 -0
  127. package/dist/types/helpers/client.d.ts +496 -0
  128. package/dist/types/helpers/dcr/constraint-enforcement.d.ts +24 -0
  129. package/dist/types/helpers/dcr/metadata-mapping.d.ts +83 -0
  130. package/dist/types/helpers/dcr/mint-iat.d.ts +14 -0
  131. package/dist/types/helpers/dcr/mint-token.d.ts +7 -0
  132. package/dist/types/helpers/dcr/validate-connect-origin.d.ts +20 -0
  133. package/dist/types/helpers/dcr/verify-token.d.ts +8 -0
  134. package/dist/types/helpers/default-destinations.d.ts +55 -0
  135. package/dist/types/helpers/entity-hooks-wrapper.d.ts +43 -0
  136. package/dist/types/helpers/hook-events.d.ts +20 -0
  137. package/dist/types/helpers/hook-user-payload.d.ts +8 -0
  138. package/dist/types/helpers/hrd.d.ts +3 -0
  139. package/dist/types/helpers/logging.d.ts +65 -0
  140. package/dist/types/helpers/outbox-cleanup.d.ts +10 -0
  141. package/dist/types/helpers/outbox-destinations/index.d.ts +2 -0
  142. package/dist/types/helpers/outbox-destinations/log-streams.d.ts +66 -0
  143. package/dist/types/helpers/outbox-destinations/logs.d.ts +20 -0
  144. package/dist/types/helpers/outbox-destinations/registration-finalizer.d.ts +29 -0
  145. package/dist/types/helpers/outbox-destinations/webhooks.d.ts +57 -0
  146. package/dist/types/helpers/outbox-relay.d.ts +34 -0
  147. package/dist/types/helpers/password-policy.d.ts +54 -0
  148. package/dist/types/helpers/request-object.d.ts +40 -0
  149. package/dist/types/helpers/run-outbox-relay.d.ts +58 -0
  150. package/dist/types/helpers/saml.d.ts +1 -0
  151. package/dist/types/helpers/scope-claims.d.ts +4 -0
  152. package/dist/types/helpers/scopes-permissions.d.ts +38 -0
  153. package/dist/types/helpers/server-timing.d.ts +12 -0
  154. package/dist/types/helpers/service-token.d.ts +54 -0
  155. package/dist/types/helpers/set-tenant-id.d.ts +15 -0
  156. package/dist/types/helpers/signing-keys.d.ts +16 -0
  157. package/dist/types/helpers/try-connection-client.d.ts +15 -0
  158. package/dist/types/helpers/user-linking.d.ts +14 -0
  159. package/dist/types/helpers/user-session-cleanup.d.ts +21 -0
  160. package/dist/types/helpers/users.d.ts +46 -0
  161. package/dist/types/helpers/wait-until.d.ts +21 -0
  162. package/dist/types/hooks/addDataHooks.d.ts +16 -0
  163. package/dist/types/hooks/code-executor/local.d.ts +13 -0
  164. package/dist/types/hooks/codehooks.d.ts +70 -0
  165. package/dist/types/hooks/formhooks.d.ts +99 -0
  166. package/dist/types/hooks/helpers/token-api.d.ts +17 -0
  167. package/dist/types/hooks/index.d.ts +20 -0
  168. package/dist/types/hooks/link-users.d.ts +29 -0
  169. package/dist/types/hooks/pagehooks.d.ts +16 -0
  170. package/dist/types/hooks/post-user-login.d.ts +29 -0
  171. package/dist/types/hooks/pre-defined/account-linking.d.ts +73 -0
  172. package/dist/types/hooks/pre-defined/ensure-username.d.ts +86 -0
  173. package/dist/types/hooks/pre-defined/index.d.ts +23 -0
  174. package/dist/types/hooks/pre-defined/set-preferred-username.d.ts +26 -0
  175. package/dist/types/hooks/templatehooks.d.ts +29 -0
  176. package/dist/types/hooks/user-deletion.d.ts +14 -0
  177. package/dist/types/hooks/user-registration.d.ts +88 -0
  178. package/dist/types/hooks/user-update.d.ts +16 -0
  179. package/dist/types/hooks/validate-signup.d.ts +34 -0
  180. package/dist/types/hooks/webhooks.d.ts +35 -0
  181. package/dist/types/i18n/index.d.ts +77 -0
  182. package/dist/types/index.d.ts +15791 -0
  183. package/dist/types/locales/index.d.ts +9 -0
  184. package/dist/types/middlewares/apply-config.d.ts +14 -0
  185. package/dist/types/middlewares/authentication.d.ts +26 -0
  186. package/dist/types/middlewares/client-info.d.ts +8 -0
  187. package/dist/types/middlewares/index.d.ts +6 -0
  188. package/dist/types/middlewares/outbox.d.ts +24 -0
  189. package/dist/types/middlewares/register-component.d.ts +10 -0
  190. package/dist/types/middlewares/tenant.d.ts +12 -0
  191. package/dist/types/migration-providers/auth0.d.ts +3 -0
  192. package/dist/types/migration-providers/index.d.ts +5 -0
  193. package/dist/types/migration-providers/types.d.ts +32 -0
  194. package/dist/types/routes/auth-api/account.d.ts +36 -0
  195. package/dist/types/routes/auth-api/authenticate.d.ts +31 -0
  196. package/dist/types/routes/auth-api/authorize.d.ts +239 -0
  197. package/dist/types/routes/auth-api/callback.d.ts +234 -0
  198. package/dist/types/routes/auth-api/connect-start.d.ts +52 -0
  199. package/dist/types/routes/auth-api/dbconnections.d.ts +43 -0
  200. package/dist/types/routes/auth-api/index.d.ts +1580 -0
  201. package/dist/types/routes/auth-api/logout.d.ts +20 -0
  202. package/dist/types/routes/auth-api/oidc-logout.d.ts +52 -0
  203. package/dist/types/routes/auth-api/passwordless.d.ts +154 -0
  204. package/dist/types/routes/auth-api/register/index.d.ts +159 -0
  205. package/dist/types/routes/auth-api/register/shared.d.ts +30 -0
  206. package/dist/types/routes/auth-api/revoke.d.ts +73 -0
  207. package/dist/types/routes/auth-api/token.d.ts +412 -0
  208. package/dist/types/routes/auth-api/userinfo.d.ts +84 -0
  209. package/dist/types/routes/auth-api/well-known.d.ts +74 -0
  210. package/dist/types/routes/management-api/action-executions.d.ts +90 -0
  211. package/dist/types/routes/management-api/action-triggers.d.ts +118 -0
  212. package/dist/types/routes/management-api/actions.d.ts +673 -0
  213. package/dist/types/routes/management-api/analytics.d.ts +18 -0
  214. package/dist/types/routes/management-api/attack-protection.d.ts +189 -0
  215. package/dist/types/routes/management-api/authentication-methods.d.ts +115 -0
  216. package/dist/types/routes/management-api/branding.d.ts +402 -0
  217. package/dist/types/routes/management-api/client-grants.d.ts +183 -0
  218. package/dist/types/routes/management-api/client-registration-tokens.d.ts +35 -0
  219. package/dist/types/routes/management-api/clients.d.ts +995 -0
  220. package/dist/types/routes/management-api/connections.d.ts +872 -0
  221. package/dist/types/routes/management-api/custom-domains.d.ts +266 -0
  222. package/dist/types/routes/management-api/email-templates.d.ts +205 -0
  223. package/dist/types/routes/management-api/emails.d.ts +124 -0
  224. package/dist/types/routes/management-api/failed-events.d.ts +146 -0
  225. package/dist/types/routes/management-api/flows.d.ts +438 -0
  226. package/dist/types/routes/management-api/forms.d.ts +4090 -0
  227. package/dist/types/routes/management-api/guardian.d.ts +211 -0
  228. package/dist/types/routes/management-api/hook-code.d.ts +142 -0
  229. package/dist/types/routes/management-api/hooks.d.ts +405 -0
  230. package/dist/types/routes/management-api/index.d.ts +13210 -0
  231. package/dist/types/routes/management-api/keys.d.ts +98 -0
  232. package/dist/types/routes/management-api/log-streams.d.ts +170 -0
  233. package/dist/types/routes/management-api/logs.d.ts +159 -0
  234. package/dist/types/routes/management-api/migration-sources.d.ts +173 -0
  235. package/dist/types/routes/management-api/organizations.d.ts +896 -0
  236. package/dist/types/routes/management-api/prompts.d.ts +150 -0
  237. package/dist/types/routes/management-api/refresh_tokens.d.ts +66 -0
  238. package/dist/types/routes/management-api/resource-servers.d.ts +321 -0
  239. package/dist/types/routes/management-api/roles.d.ts +260 -0
  240. package/dist/types/routes/management-api/sessions.d.ts +78 -0
  241. package/dist/types/routes/management-api/stats.d.ts +44 -0
  242. package/dist/types/routes/management-api/tenants.d.ts +546 -0
  243. package/dist/types/routes/management-api/themes.d.ts +265 -0
  244. package/dist/types/routes/management-api/tickets.d.ts +75 -0
  245. package/dist/types/routes/management-api/users-by-email.d.ts +23 -0
  246. package/dist/types/routes/management-api/users.d.ts +1085 -0
  247. package/dist/types/routes/saml/index.d.ts +64 -0
  248. package/dist/types/routes/saml/samlp.d.ts +64 -0
  249. package/dist/types/routes/setup.d.ts +6 -0
  250. package/dist/types/routes/universal-login/account-change-email-confirmation.d.ts +30 -0
  251. package/dist/types/routes/universal-login/account-change-email-verify.d.ts +66 -0
  252. package/dist/types/routes/universal-login/account-change-email.d.ts +58 -0
  253. package/dist/types/routes/universal-login/account.d.ts +64 -0
  254. package/dist/types/routes/universal-login/common.d.ts +1482 -0
  255. package/dist/types/routes/universal-login/continue.d.ts +37 -0
  256. package/dist/types/routes/universal-login/enter-password.d.ts +49 -0
  257. package/dist/types/routes/universal-login/error-handler.d.ts +14 -0
  258. package/dist/types/routes/universal-login/error-page.d.ts +32 -0
  259. package/dist/types/routes/universal-login/error.d.ts +20 -0
  260. package/dist/types/routes/universal-login/flow-api.d.ts +381 -0
  261. package/dist/types/routes/universal-login/flow-widget.d.ts +23 -0
  262. package/dist/types/routes/universal-login/forgot-password.d.ts +32 -0
  263. package/dist/types/routes/universal-login/form-node.d.ts +74 -0
  264. package/dist/types/routes/universal-login/identifier.d.ts +55 -0
  265. package/dist/types/routes/universal-login/impersonate.d.ts +71 -0
  266. package/dist/types/routes/universal-login/index.d.ts +748 -0
  267. package/dist/types/routes/universal-login/info.d.ts +20 -0
  268. package/dist/types/routes/universal-login/invalid-session.d.ts +19 -0
  269. package/dist/types/routes/universal-login/otp-challenge.d.ts +54 -0
  270. package/dist/types/routes/universal-login/pre-signup-sent.d.ts +19 -0
  271. package/dist/types/routes/universal-login/pre-signup.d.ts +32 -0
  272. package/dist/types/routes/universal-login/reset-password.d.ts +39 -0
  273. package/dist/types/routes/universal-login/sanitization-utils.d.ts +55 -0
  274. package/dist/types/routes/universal-login/screen-api.d.ts +20 -0
  275. package/dist/types/routes/universal-login/screens/accept-invitation.d.ts +13 -0
  276. package/dist/types/routes/universal-login/screens/account-delete.d.ts +14 -0
  277. package/dist/types/routes/universal-login/screens/account-helpers.d.ts +13 -0
  278. package/dist/types/routes/universal-login/screens/account-linked.d.ts +14 -0
  279. package/dist/types/routes/universal-login/screens/account-mfa-phone-enrollment.d.ts +10 -0
  280. package/dist/types/routes/universal-login/screens/account-mfa-totp-enrollment.d.ts +10 -0
  281. package/dist/types/routes/universal-login/screens/account-passkeys.d.ts +10 -0
  282. package/dist/types/routes/universal-login/screens/account-profile.d.ts +14 -0
  283. package/dist/types/routes/universal-login/screens/account-security.d.ts +14 -0
  284. package/dist/types/routes/universal-login/screens/account.d.ts +14 -0
  285. package/dist/types/routes/universal-login/screens/connect-consent.d.ts +9 -0
  286. package/dist/types/routes/universal-login/screens/connect-tenant-select.d.ts +13 -0
  287. package/dist/types/routes/universal-login/screens/email-otp-challenge.d.ts +14 -0
  288. package/dist/types/routes/universal-login/screens/enter-password.d.ts +14 -0
  289. package/dist/types/routes/universal-login/screens/forgot-password.d.ts +11 -0
  290. package/dist/types/routes/universal-login/screens/identifier.d.ts +14 -0
  291. package/dist/types/routes/universal-login/screens/impersonate.d.ts +15 -0
  292. package/dist/types/routes/universal-login/screens/index.d.ts +29 -0
  293. package/dist/types/routes/universal-login/screens/login-passwordless-identifier.d.ts +17 -0
  294. package/dist/types/routes/universal-login/screens/login.d.ts +17 -0
  295. package/dist/types/routes/universal-login/screens/magic-link-sent.d.ts +11 -0
  296. package/dist/types/routes/universal-login/screens/mfa-login-options.d.ts +21 -0
  297. package/dist/types/routes/universal-login/screens/mfa-phone-challenge.d.ts +14 -0
  298. package/dist/types/routes/universal-login/screens/mfa-phone-enrollment.d.ts +14 -0
  299. package/dist/types/routes/universal-login/screens/mfa-totp-challenge.d.ts +14 -0
  300. package/dist/types/routes/universal-login/screens/mfa-totp-enrollment.d.ts +17 -0
  301. package/dist/types/routes/universal-login/screens/passkey-challenge.d.ts +16 -0
  302. package/dist/types/routes/universal-login/screens/passkey-enrollment-nudge.d.ts +17 -0
  303. package/dist/types/routes/universal-login/screens/passkey-enrollment.d.ts +11 -0
  304. package/dist/types/routes/universal-login/screens/passkey-utils.d.ts +100 -0
  305. package/dist/types/routes/universal-login/screens/registry.d.ts +28 -0
  306. package/dist/types/routes/universal-login/screens/reset-password-code.d.ts +18 -0
  307. package/dist/types/routes/universal-login/screens/reset-password.d.ts +36 -0
  308. package/dist/types/routes/universal-login/screens/signup.d.ts +14 -0
  309. package/dist/types/routes/universal-login/screens/sms-otp-challenge.d.ts +14 -0
  310. package/dist/types/routes/universal-login/screens/try-connection-result.d.ts +12 -0
  311. package/dist/types/routes/universal-login/screens/types.d.ts +167 -0
  312. package/dist/types/routes/universal-login/signup.d.ts +54 -0
  313. package/dist/types/routes/universal-login/u2-form-node.d.ts +93 -0
  314. package/dist/types/routes/universal-login/u2-index.d.ts +173 -0
  315. package/dist/types/routes/universal-login/u2-routes.d.ts +98 -0
  316. package/dist/types/routes/universal-login/u2-widget-page.d.ts +187 -0
  317. package/dist/types/routes/universal-login/universal-login-template.d.ts +55 -0
  318. package/dist/types/routes/universal-login/validate-email.d.ts +20 -0
  319. package/dist/types/routes/universal-login/widget-routes.d.ts +81 -0
  320. package/dist/types/seed.d.ts +86 -0
  321. package/dist/types/state-machines/index.d.ts +1 -0
  322. package/dist/types/state-machines/login-session.d.ts +173 -0
  323. package/dist/types/storybook-utils/HonoJSXWrapper.d.ts +43 -0
  324. package/dist/types/strategies/apple.d.ts +24 -0
  325. package/dist/types/strategies/facebook.d.ts +20 -0
  326. package/dist/types/strategies/github.d.ts +23 -0
  327. package/dist/types/strategies/google-oauth2.d.ts +43 -0
  328. package/dist/types/strategies/index.d.ts +69 -0
  329. package/dist/types/strategies/internal-oauth2.d.ts +17 -0
  330. package/dist/types/strategies/microsoft.d.ts +24 -0
  331. package/dist/types/strategies/oauth2.d.ts +38 -0
  332. package/dist/types/strategies/oidc.d.ts +38 -0
  333. package/dist/types/strategies/saml.d.ts +9 -0
  334. package/dist/types/strategies/vipps.d.ts +16 -0
  335. package/dist/types/styles/index.d.ts +9 -0
  336. package/dist/types/styles/tailwind.d.ts +1 -0
  337. package/dist/types/types/Auth0Client.d.ts +9 -0
  338. package/dist/types/types/AuthError.d.ts +14 -0
  339. package/dist/types/types/AuthHeroConfig.d.ts +415 -0
  340. package/dist/types/types/Bindings.d.ts +51 -0
  341. package/dist/types/types/GrantFlowResult.d.ts +22 -0
  342. package/dist/types/types/Hooks.d.ts +240 -0
  343. package/dist/types/types/IdToken.d.ts +30 -0
  344. package/dist/types/types/UserInfo.d.ts +8 -0
  345. package/dist/types/types/Variables.d.ts +33 -0
  346. package/dist/types/types/auth0/Query.d.ts +12 -0
  347. package/dist/types/types/auth0/Totals.d.ts +11 -0
  348. package/dist/types/types/auth0/UserResponse.d.ts +46 -0
  349. package/dist/types/types/auth0/index.d.ts +3 -0
  350. package/dist/types/types/index.d.ts +6 -0
  351. package/dist/types/types/saml.d.ts +1 -0
  352. package/dist/types/utils/append-log.d.ts +10 -0
  353. package/dist/types/utils/auth-header.d.ts +18 -0
  354. package/dist/types/utils/auth0-upstream.d.ts +60 -0
  355. package/dist/types/utils/authIframe.d.ts +11 -0
  356. package/dist/types/utils/client-info.d.ts +47 -0
  357. package/dist/types/utils/color.d.ts +23 -0
  358. package/dist/types/utils/connections.d.ts +11 -0
  359. package/dist/types/utils/cookies.d.ts +28 -0
  360. package/dist/types/utils/crypto.d.ts +2 -0
  361. package/dist/types/utils/deep-merge.d.ts +6 -0
  362. package/dist/types/utils/encryption.d.ts +22 -0
  363. package/dist/types/utils/entity-id.d.ts +13 -0
  364. package/dist/types/utils/fetchAll.d.ts +60 -0
  365. package/dist/types/utils/form-post.d.ts +1 -0
  366. package/dist/types/utils/id-token-hash.d.ts +1 -0
  367. package/dist/types/utils/incognito.d.ts +11 -0
  368. package/dist/types/utils/instance-to-json.d.ts +8 -0
  369. package/dist/types/utils/ip.d.ts +8 -0
  370. package/dist/types/utils/is-valid-redirect-url.d.ts +4 -0
  371. package/dist/types/utils/jwk-alg.d.ts +20 -0
  372. package/dist/types/utils/jwks.d.ts +41 -0
  373. package/dist/types/utils/jwt.d.ts +15 -0
  374. package/dist/types/utils/organization-id.d.ts +2 -0
  375. package/dist/types/utils/otp.d.ts +1 -0
  376. package/dist/types/utils/refresh-token-format.d.ts +20 -0
  377. package/dist/types/utils/safe-compare.d.ts +1 -0
  378. package/dist/types/utils/sort.d.ts +4 -0
  379. package/dist/types/utils/ssrf-fetch.d.ts +44 -0
  380. package/dist/types/utils/ulid.d.ts +1 -0
  381. package/dist/types/utils/url.d.ts +16 -0
  382. package/dist/types/utils/user-id.d.ts +2 -0
  383. package/dist/types/utils/username-password-provider.d.ts +67 -0
  384. package/dist/types/utils/username.d.ts +11 -0
  385. package/dist/types/variables.d.ts +4 -0
  386. package/package.json +11 -11
@@ -0,0 +1,1580 @@
1
+ import { OpenAPIHono } from "@hono/zod-openapi";
2
+ import { AuthHeroConfig, Bindings, Variables } from "../../types";
3
+ export default function create(config: AuthHeroConfig): OpenAPIHono<{
4
+ Bindings: Bindings;
5
+ Variables: Variables;
6
+ }, import("hono/types").MergeSchemaPath<{
7
+ "/": {
8
+ $get: {
9
+ input: {
10
+ query: {
11
+ state: string;
12
+ code?: string | undefined;
13
+ scope?: string | undefined;
14
+ hd?: string | undefined;
15
+ error?: string | undefined;
16
+ error_description?: string | undefined;
17
+ error_code?: string | undefined;
18
+ error_reason?: string | undefined;
19
+ };
20
+ };
21
+ output: {};
22
+ outputFormat: string;
23
+ status: 302;
24
+ } | {
25
+ input: {
26
+ query: {
27
+ state: string;
28
+ code?: string | undefined;
29
+ scope?: string | undefined;
30
+ hd?: string | undefined;
31
+ error?: string | undefined;
32
+ error_description?: string | undefined;
33
+ error_code?: string | undefined;
34
+ error_reason?: string | undefined;
35
+ };
36
+ };
37
+ output: {
38
+ message: string;
39
+ };
40
+ outputFormat: "json";
41
+ status: 400;
42
+ } | {
43
+ input: {
44
+ query: {
45
+ state: string;
46
+ code?: string | undefined;
47
+ scope?: string | undefined;
48
+ hd?: string | undefined;
49
+ error?: string | undefined;
50
+ error_description?: string | undefined;
51
+ error_code?: string | undefined;
52
+ error_reason?: string | undefined;
53
+ };
54
+ };
55
+ output: {
56
+ message: string;
57
+ };
58
+ outputFormat: "json";
59
+ status: 500;
60
+ };
61
+ };
62
+ } & {
63
+ "/": {
64
+ $post: {
65
+ input: {
66
+ form: {
67
+ state: string;
68
+ code?: string | undefined;
69
+ scope?: string | undefined;
70
+ hd?: string | undefined;
71
+ error?: string | undefined;
72
+ error_description?: string | undefined;
73
+ error_code?: string | undefined;
74
+ error_reason?: string | undefined;
75
+ };
76
+ };
77
+ output: {};
78
+ outputFormat: string;
79
+ status: 302;
80
+ } | {
81
+ input: {
82
+ form: {
83
+ state: string;
84
+ code?: string | undefined;
85
+ scope?: string | undefined;
86
+ hd?: string | undefined;
87
+ error?: string | undefined;
88
+ error_description?: string | undefined;
89
+ error_code?: string | undefined;
90
+ error_reason?: string | undefined;
91
+ };
92
+ };
93
+ output: {
94
+ message: string;
95
+ };
96
+ outputFormat: "json";
97
+ status: 400;
98
+ } | {
99
+ input: {
100
+ form: {
101
+ state: string;
102
+ code?: string | undefined;
103
+ scope?: string | undefined;
104
+ hd?: string | undefined;
105
+ error?: string | undefined;
106
+ error_description?: string | undefined;
107
+ error_code?: string | undefined;
108
+ error_reason?: string | undefined;
109
+ };
110
+ };
111
+ output: {
112
+ message: string;
113
+ };
114
+ outputFormat: "json";
115
+ status: 500;
116
+ };
117
+ };
118
+ }, "/login/callback"> & import("hono/types").MergeSchemaPath<{
119
+ "/": {
120
+ $get: {
121
+ input: {
122
+ query: {
123
+ state: string;
124
+ code?: string | undefined;
125
+ scope?: string | undefined;
126
+ hd?: string | undefined;
127
+ error?: string | undefined;
128
+ error_description?: string | undefined;
129
+ error_code?: string | undefined;
130
+ error_reason?: string | undefined;
131
+ };
132
+ };
133
+ output: {};
134
+ outputFormat: string;
135
+ status: 302;
136
+ } | {
137
+ input: {
138
+ query: {
139
+ state: string;
140
+ code?: string | undefined;
141
+ scope?: string | undefined;
142
+ hd?: string | undefined;
143
+ error?: string | undefined;
144
+ error_description?: string | undefined;
145
+ error_code?: string | undefined;
146
+ error_reason?: string | undefined;
147
+ };
148
+ };
149
+ output: {
150
+ message: string;
151
+ };
152
+ outputFormat: "json";
153
+ status: 400;
154
+ } | {
155
+ input: {
156
+ query: {
157
+ state: string;
158
+ code?: string | undefined;
159
+ scope?: string | undefined;
160
+ hd?: string | undefined;
161
+ error?: string | undefined;
162
+ error_description?: string | undefined;
163
+ error_code?: string | undefined;
164
+ error_reason?: string | undefined;
165
+ };
166
+ };
167
+ output: {
168
+ message: string;
169
+ };
170
+ outputFormat: "json";
171
+ status: 500;
172
+ };
173
+ };
174
+ } & {
175
+ "/": {
176
+ $post: {
177
+ input: {
178
+ form: {
179
+ state: string;
180
+ code?: string | undefined;
181
+ scope?: string | undefined;
182
+ hd?: string | undefined;
183
+ error?: string | undefined;
184
+ error_description?: string | undefined;
185
+ error_code?: string | undefined;
186
+ error_reason?: string | undefined;
187
+ };
188
+ };
189
+ output: {};
190
+ outputFormat: string;
191
+ status: 302;
192
+ } | {
193
+ input: {
194
+ form: {
195
+ state: string;
196
+ code?: string | undefined;
197
+ scope?: string | undefined;
198
+ hd?: string | undefined;
199
+ error?: string | undefined;
200
+ error_description?: string | undefined;
201
+ error_code?: string | undefined;
202
+ error_reason?: string | undefined;
203
+ };
204
+ };
205
+ output: {
206
+ message: string;
207
+ };
208
+ outputFormat: "json";
209
+ status: 400;
210
+ } | {
211
+ input: {
212
+ form: {
213
+ state: string;
214
+ code?: string | undefined;
215
+ scope?: string | undefined;
216
+ hd?: string | undefined;
217
+ error?: string | undefined;
218
+ error_description?: string | undefined;
219
+ error_code?: string | undefined;
220
+ error_reason?: string | undefined;
221
+ };
222
+ };
223
+ output: {
224
+ message: string;
225
+ };
226
+ outputFormat: "json";
227
+ status: 500;
228
+ };
229
+ };
230
+ }, "/callback"> & import("hono/types").MergeSchemaPath<{
231
+ "/": {
232
+ $get: {
233
+ input: {
234
+ query: {
235
+ domain: string;
236
+ return_to: string;
237
+ state: string;
238
+ integration_type?: string | undefined;
239
+ scope?: string | undefined;
240
+ audience?: string | undefined;
241
+ };
242
+ };
243
+ output: {};
244
+ outputFormat: string;
245
+ status: 302;
246
+ } | {
247
+ input: {
248
+ query: {
249
+ domain: string;
250
+ return_to: string;
251
+ state: string;
252
+ integration_type?: string | undefined;
253
+ scope?: string | undefined;
254
+ audience?: string | undefined;
255
+ };
256
+ };
257
+ output: {};
258
+ outputFormat: "json";
259
+ status: 400;
260
+ } | {
261
+ input: {
262
+ query: {
263
+ domain: string;
264
+ return_to: string;
265
+ state: string;
266
+ integration_type?: string | undefined;
267
+ scope?: string | undefined;
268
+ audience?: string | undefined;
269
+ };
270
+ };
271
+ output: {};
272
+ outputFormat: "json";
273
+ status: 404;
274
+ };
275
+ };
276
+ }, "/connect/start"> & import("hono/types").MergeSchemaPath<{
277
+ "/": {
278
+ $post: {
279
+ input: {
280
+ json: {
281
+ redirect_uris?: string[] | undefined;
282
+ client_name?: string | undefined;
283
+ client_uri?: string | undefined;
284
+ logo_uri?: string | undefined;
285
+ tos_uri?: string | undefined;
286
+ policy_uri?: string | undefined;
287
+ contacts?: string[] | undefined;
288
+ scope?: string | undefined;
289
+ grant_types?: string[] | undefined;
290
+ response_types?: string[] | undefined;
291
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
292
+ jwks_uri?: string | undefined;
293
+ jwks?: Record<string, unknown> | undefined;
294
+ software_id?: string | undefined;
295
+ software_version?: string | undefined;
296
+ client_id?: string | undefined;
297
+ client_secret?: string | undefined;
298
+ audience?: string | undefined;
299
+ };
300
+ };
301
+ output: {
302
+ client_id: string;
303
+ registration_client_uri: string;
304
+ client_secret?: string | undefined;
305
+ client_id_issued_at?: number | undefined;
306
+ client_secret_expires_at?: number | undefined;
307
+ registration_access_token?: string | undefined;
308
+ client_name?: string | undefined;
309
+ redirect_uris?: string[] | undefined;
310
+ grant_types?: string[] | undefined;
311
+ response_types?: string[] | undefined;
312
+ token_endpoint_auth_method?: string | undefined;
313
+ logo_uri?: string | undefined;
314
+ client_uri?: string | undefined;
315
+ tos_uri?: string | undefined;
316
+ policy_uri?: string | undefined;
317
+ contacts?: string[] | undefined;
318
+ scope?: string | undefined;
319
+ jwks_uri?: string | undefined;
320
+ software_id?: string | undefined;
321
+ software_version?: string | undefined;
322
+ };
323
+ outputFormat: "json";
324
+ status: 201;
325
+ };
326
+ };
327
+ } & {
328
+ "/:client_id": {
329
+ $get: {
330
+ input: {
331
+ param: {
332
+ client_id: string;
333
+ };
334
+ };
335
+ output: {
336
+ client_id: string;
337
+ registration_client_uri: string;
338
+ client_secret?: string | undefined;
339
+ client_id_issued_at?: number | undefined;
340
+ client_secret_expires_at?: number | undefined;
341
+ registration_access_token?: string | undefined;
342
+ client_name?: string | undefined;
343
+ redirect_uris?: string[] | undefined;
344
+ grant_types?: string[] | undefined;
345
+ response_types?: string[] | undefined;
346
+ token_endpoint_auth_method?: string | undefined;
347
+ logo_uri?: string | undefined;
348
+ client_uri?: string | undefined;
349
+ tos_uri?: string | undefined;
350
+ policy_uri?: string | undefined;
351
+ contacts?: string[] | undefined;
352
+ scope?: string | undefined;
353
+ jwks_uri?: string | undefined;
354
+ software_id?: string | undefined;
355
+ software_version?: string | undefined;
356
+ };
357
+ outputFormat: "json";
358
+ status: 200;
359
+ };
360
+ };
361
+ } & {
362
+ "/:client_id": {
363
+ $put: {
364
+ input: {
365
+ param: {
366
+ client_id: string;
367
+ };
368
+ } & {
369
+ json: {
370
+ redirect_uris?: string[] | undefined;
371
+ client_name?: string | undefined;
372
+ client_uri?: string | undefined;
373
+ logo_uri?: string | undefined;
374
+ tos_uri?: string | undefined;
375
+ policy_uri?: string | undefined;
376
+ contacts?: string[] | undefined;
377
+ scope?: string | undefined;
378
+ grant_types?: string[] | undefined;
379
+ response_types?: string[] | undefined;
380
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
381
+ jwks_uri?: string | undefined;
382
+ jwks?: Record<string, unknown> | undefined;
383
+ software_id?: string | undefined;
384
+ software_version?: string | undefined;
385
+ client_id?: string | undefined;
386
+ client_secret?: string | undefined;
387
+ audience?: string | undefined;
388
+ };
389
+ };
390
+ output: {
391
+ client_id: string;
392
+ registration_client_uri: string;
393
+ client_secret?: string | undefined;
394
+ client_id_issued_at?: number | undefined;
395
+ client_secret_expires_at?: number | undefined;
396
+ registration_access_token?: string | undefined;
397
+ client_name?: string | undefined;
398
+ redirect_uris?: string[] | undefined;
399
+ grant_types?: string[] | undefined;
400
+ response_types?: string[] | undefined;
401
+ token_endpoint_auth_method?: string | undefined;
402
+ logo_uri?: string | undefined;
403
+ client_uri?: string | undefined;
404
+ tos_uri?: string | undefined;
405
+ policy_uri?: string | undefined;
406
+ contacts?: string[] | undefined;
407
+ scope?: string | undefined;
408
+ jwks_uri?: string | undefined;
409
+ software_id?: string | undefined;
410
+ software_version?: string | undefined;
411
+ };
412
+ outputFormat: "json";
413
+ status: 200;
414
+ };
415
+ };
416
+ } & {
417
+ "/:client_id": {
418
+ $delete: {
419
+ input: {
420
+ param: {
421
+ client_id: string;
422
+ };
423
+ };
424
+ output: {};
425
+ outputFormat: string;
426
+ status: 204;
427
+ };
428
+ };
429
+ }, "/oidc/register"> & import("hono/types").MergeSchemaPath<{
430
+ "/": {
431
+ $get: {
432
+ input: {
433
+ query: {
434
+ client_id: string;
435
+ redirect_url?: string | undefined;
436
+ login_hint?: string | undefined;
437
+ screen_hint?: "change-email" | "account" | "change-phone" | "change-password" | undefined;
438
+ };
439
+ };
440
+ output: {};
441
+ outputFormat: string;
442
+ status: 302;
443
+ } | {
444
+ input: {
445
+ query: {
446
+ client_id: string;
447
+ redirect_url?: string | undefined;
448
+ login_hint?: string | undefined;
449
+ screen_hint?: "change-email" | "account" | "change-phone" | "change-password" | undefined;
450
+ };
451
+ };
452
+ output: {
453
+ message: string;
454
+ };
455
+ outputFormat: "json";
456
+ status: 400;
457
+ };
458
+ };
459
+ }, "/account"> & import("hono/types").MergeSchemaPath<{
460
+ "/": {
461
+ $get: {
462
+ input: {
463
+ query: {
464
+ [x: string]: unknown;
465
+ client_id: string;
466
+ vendor_id?: string | undefined;
467
+ redirect_uri?: string | undefined;
468
+ scope?: string | undefined;
469
+ state?: string | undefined;
470
+ prompt?: string | undefined;
471
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
472
+ response_type?: unknown;
473
+ audience?: string | undefined;
474
+ connection?: string | undefined;
475
+ nonce?: string | undefined;
476
+ max_age?: string | undefined;
477
+ acr_values?: string | undefined;
478
+ login_ticket?: string | undefined;
479
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
480
+ code_challenge?: string | undefined;
481
+ realm?: string | undefined;
482
+ auth0Client?: string | undefined;
483
+ organization?: string | undefined;
484
+ login_hint?: string | undefined;
485
+ ui_locales?: string | undefined;
486
+ claims?: string | Record<string, any> | undefined;
487
+ screen_hint?: string | undefined;
488
+ request?: string | undefined;
489
+ request_uri?: string | undefined;
490
+ };
491
+ };
492
+ output: Response;
493
+ outputFormat: "json";
494
+ status: import("hono/utils/http-status").StatusCode;
495
+ } | {
496
+ input: {
497
+ query: {
498
+ [x: string]: unknown;
499
+ client_id: string;
500
+ vendor_id?: string | undefined;
501
+ redirect_uri?: string | undefined;
502
+ scope?: string | undefined;
503
+ state?: string | undefined;
504
+ prompt?: string | undefined;
505
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
506
+ response_type?: unknown;
507
+ audience?: string | undefined;
508
+ connection?: string | undefined;
509
+ nonce?: string | undefined;
510
+ max_age?: string | undefined;
511
+ acr_values?: string | undefined;
512
+ login_ticket?: string | undefined;
513
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
514
+ code_challenge?: string | undefined;
515
+ realm?: string | undefined;
516
+ auth0Client?: string | undefined;
517
+ organization?: string | undefined;
518
+ login_hint?: string | undefined;
519
+ ui_locales?: string | undefined;
520
+ claims?: string | Record<string, any> | undefined;
521
+ screen_hint?: string | undefined;
522
+ request?: string | undefined;
523
+ request_uri?: string | undefined;
524
+ };
525
+ };
526
+ output: {};
527
+ outputFormat: string;
528
+ status: 302;
529
+ } | {
530
+ input: {
531
+ query: {
532
+ [x: string]: unknown;
533
+ client_id: string;
534
+ vendor_id?: string | undefined;
535
+ redirect_uri?: string | undefined;
536
+ scope?: string | undefined;
537
+ state?: string | undefined;
538
+ prompt?: string | undefined;
539
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
540
+ response_type?: unknown;
541
+ audience?: string | undefined;
542
+ connection?: string | undefined;
543
+ nonce?: string | undefined;
544
+ max_age?: string | undefined;
545
+ acr_values?: string | undefined;
546
+ login_ticket?: string | undefined;
547
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
548
+ code_challenge?: string | undefined;
549
+ realm?: string | undefined;
550
+ auth0Client?: string | undefined;
551
+ organization?: string | undefined;
552
+ login_hint?: string | undefined;
553
+ ui_locales?: string | undefined;
554
+ claims?: string | Record<string, any> | undefined;
555
+ screen_hint?: string | undefined;
556
+ request?: string | undefined;
557
+ request_uri?: string | undefined;
558
+ };
559
+ };
560
+ output: string | {
561
+ access_token: string;
562
+ token_type: string;
563
+ expires_in: number;
564
+ id_token?: string | undefined;
565
+ scope?: string | undefined;
566
+ state?: string | undefined;
567
+ refresh_token?: string | undefined;
568
+ };
569
+ outputFormat: "json";
570
+ status: 200;
571
+ } | {
572
+ input: {
573
+ query: {
574
+ [x: string]: unknown;
575
+ client_id: string;
576
+ vendor_id?: string | undefined;
577
+ redirect_uri?: string | undefined;
578
+ scope?: string | undefined;
579
+ state?: string | undefined;
580
+ prompt?: string | undefined;
581
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
582
+ response_type?: unknown;
583
+ audience?: string | undefined;
584
+ connection?: string | undefined;
585
+ nonce?: string | undefined;
586
+ max_age?: string | undefined;
587
+ acr_values?: string | undefined;
588
+ login_ticket?: string | undefined;
589
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
590
+ code_challenge?: string | undefined;
591
+ realm?: string | undefined;
592
+ auth0Client?: string | undefined;
593
+ organization?: string | undefined;
594
+ login_hint?: string | undefined;
595
+ ui_locales?: string | undefined;
596
+ claims?: string | Record<string, any> | undefined;
597
+ screen_hint?: string | undefined;
598
+ request?: string | undefined;
599
+ request_uri?: string | undefined;
600
+ };
601
+ };
602
+ output: {
603
+ message: string;
604
+ };
605
+ outputFormat: "json";
606
+ status: 400;
607
+ } | {
608
+ input: {
609
+ query: {
610
+ [x: string]: unknown;
611
+ client_id: string;
612
+ vendor_id?: string | undefined;
613
+ redirect_uri?: string | undefined;
614
+ scope?: string | undefined;
615
+ state?: string | undefined;
616
+ prompt?: string | undefined;
617
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
618
+ response_type?: unknown;
619
+ audience?: string | undefined;
620
+ connection?: string | undefined;
621
+ nonce?: string | undefined;
622
+ max_age?: string | undefined;
623
+ acr_values?: string | undefined;
624
+ login_ticket?: string | undefined;
625
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
626
+ code_challenge?: string | undefined;
627
+ realm?: string | undefined;
628
+ auth0Client?: string | undefined;
629
+ organization?: string | undefined;
630
+ login_hint?: string | undefined;
631
+ ui_locales?: string | undefined;
632
+ claims?: string | Record<string, any> | undefined;
633
+ screen_hint?: string | undefined;
634
+ request?: string | undefined;
635
+ request_uri?: string | undefined;
636
+ };
637
+ };
638
+ output: {
639
+ message: string;
640
+ };
641
+ outputFormat: "json";
642
+ status: 403;
643
+ };
644
+ };
645
+ } & {
646
+ "/resume": {
647
+ $get: {
648
+ input: {
649
+ query: {
650
+ state: string;
651
+ };
652
+ };
653
+ output: {};
654
+ outputFormat: string;
655
+ status: 302;
656
+ } | {
657
+ input: {
658
+ query: {
659
+ state: string;
660
+ };
661
+ };
662
+ output: {
663
+ message: string;
664
+ };
665
+ outputFormat: "json";
666
+ status: 400;
667
+ } | {
668
+ input: {
669
+ query: {
670
+ state: string;
671
+ };
672
+ };
673
+ output: {
674
+ message: string;
675
+ };
676
+ outputFormat: "json";
677
+ status: 403;
678
+ } | {
679
+ input: {
680
+ query: {
681
+ state: string;
682
+ };
683
+ };
684
+ output: {
685
+ message: string;
686
+ };
687
+ outputFormat: "json";
688
+ status: 409;
689
+ };
690
+ };
691
+ }, "/authorize"> & import("hono/types").MergeSchemaPath<{
692
+ "/": {
693
+ $post: {
694
+ input: {
695
+ json: {
696
+ credential_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
697
+ otp: string;
698
+ client_id: string;
699
+ username: string;
700
+ realm: "email";
701
+ scope?: string | undefined;
702
+ } | {
703
+ credential_type: "http://auth0.com/oauth/grant-type/password-realm";
704
+ client_id: string;
705
+ username: string;
706
+ password: string;
707
+ realm: "Username-Password-Authentication";
708
+ scope?: string | undefined;
709
+ };
710
+ };
711
+ output: {};
712
+ outputFormat: string;
713
+ status: 200;
714
+ };
715
+ };
716
+ }, "/co/authenticate"> & import("hono/types").MergeSchemaPath<{
717
+ "/start": {
718
+ $post: {
719
+ input: {
720
+ json: {
721
+ connection: "email";
722
+ client_id: string;
723
+ email: string;
724
+ send: "code" | "link";
725
+ authParams: {
726
+ state?: string | undefined;
727
+ audience?: string | undefined;
728
+ response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
729
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
730
+ scope?: string | undefined;
731
+ username?: string | undefined;
732
+ organization?: string | undefined;
733
+ nonce?: string | undefined;
734
+ redirect_uri?: string | undefined;
735
+ act_as?: string | undefined;
736
+ prompt?: string | undefined;
737
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
738
+ code_challenge?: string | undefined;
739
+ ui_locales?: string | undefined;
740
+ max_age?: number | undefined;
741
+ acr_values?: string | undefined;
742
+ claims?: {
743
+ userinfo?: Record<string, {
744
+ essential?: boolean | undefined;
745
+ value?: unknown;
746
+ values?: unknown[] | undefined;
747
+ } | null> | undefined;
748
+ id_token?: Record<string, {
749
+ essential?: boolean | undefined;
750
+ value?: unknown;
751
+ values?: unknown[] | undefined;
752
+ } | null> | undefined;
753
+ } | undefined;
754
+ vendor_id?: string | undefined;
755
+ };
756
+ } | {
757
+ client_id: string;
758
+ connection: "sms";
759
+ phone_number: string;
760
+ send: "code" | "link";
761
+ authParams: {
762
+ state?: string | undefined;
763
+ audience?: string | undefined;
764
+ response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
765
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
766
+ scope?: string | undefined;
767
+ username?: string | undefined;
768
+ organization?: string | undefined;
769
+ nonce?: string | undefined;
770
+ redirect_uri?: string | undefined;
771
+ act_as?: string | undefined;
772
+ prompt?: string | undefined;
773
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
774
+ code_challenge?: string | undefined;
775
+ ui_locales?: string | undefined;
776
+ max_age?: number | undefined;
777
+ acr_values?: string | undefined;
778
+ claims?: {
779
+ userinfo?: Record<string, {
780
+ essential?: boolean | undefined;
781
+ value?: unknown;
782
+ values?: unknown[] | undefined;
783
+ } | null> | undefined;
784
+ id_token?: Record<string, {
785
+ essential?: boolean | undefined;
786
+ value?: unknown;
787
+ values?: unknown[] | undefined;
788
+ } | null> | undefined;
789
+ } | undefined;
790
+ vendor_id?: string | undefined;
791
+ };
792
+ };
793
+ };
794
+ output: {};
795
+ outputFormat: string;
796
+ status: 200;
797
+ };
798
+ };
799
+ } & {
800
+ "/verify_redirect": {
801
+ $get: {
802
+ input: {
803
+ query: {
804
+ scope: string;
805
+ response_type: import("@authhero/adapter-interfaces").AuthorizationResponseType;
806
+ redirect_uri: string;
807
+ state: string;
808
+ verification_code: string;
809
+ connection: string;
810
+ client_id: string;
811
+ email: string;
812
+ nonce?: string | undefined;
813
+ audience?: string | undefined;
814
+ };
815
+ };
816
+ output: {};
817
+ outputFormat: string;
818
+ status: 302;
819
+ } | {
820
+ input: {
821
+ query: {
822
+ scope: string;
823
+ response_type: import("@authhero/adapter-interfaces").AuthorizationResponseType;
824
+ redirect_uri: string;
825
+ state: string;
826
+ verification_code: string;
827
+ connection: string;
828
+ client_id: string;
829
+ email: string;
830
+ nonce?: string | undefined;
831
+ audience?: string | undefined;
832
+ };
833
+ };
834
+ output: {
835
+ error: string;
836
+ error_description?: string | undefined;
837
+ };
838
+ outputFormat: "json";
839
+ status: 400;
840
+ } | {
841
+ input: {
842
+ query: {
843
+ scope: string;
844
+ response_type: import("@authhero/adapter-interfaces").AuthorizationResponseType;
845
+ redirect_uri: string;
846
+ state: string;
847
+ verification_code: string;
848
+ connection: string;
849
+ client_id: string;
850
+ email: string;
851
+ nonce?: string | undefined;
852
+ audience?: string | undefined;
853
+ };
854
+ };
855
+ output: {
856
+ error: string;
857
+ error_description?: string | undefined;
858
+ };
859
+ outputFormat: "json";
860
+ status: 500;
861
+ };
862
+ };
863
+ }, "/passwordless"> & import("hono/types").MergeSchemaPath<{
864
+ "/signup": {
865
+ $post: {
866
+ input: {
867
+ json: {
868
+ client_id: string;
869
+ connection: "Username-Password-Authentication";
870
+ email: string;
871
+ password: string;
872
+ };
873
+ };
874
+ output: {
875
+ _id: string;
876
+ email_verified: boolean;
877
+ app_metadata: {};
878
+ user_metadata: {};
879
+ email?: string | undefined;
880
+ };
881
+ outputFormat: "json";
882
+ status: 200;
883
+ };
884
+ };
885
+ } & {
886
+ "/change_password": {
887
+ $post: {
888
+ input: {
889
+ json: {
890
+ client_id: string;
891
+ connection: "Username-Password-Authentication";
892
+ email: string;
893
+ };
894
+ };
895
+ output: {};
896
+ outputFormat: string;
897
+ status: 200;
898
+ };
899
+ };
900
+ }, "/dbconnections"> & import("hono/types").MergeSchemaPath<{
901
+ "/": {
902
+ $post: {
903
+ input: {
904
+ form: {
905
+ token: string;
906
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
907
+ client_id?: string | undefined;
908
+ client_secret?: string | undefined;
909
+ };
910
+ } & {
911
+ json: {
912
+ token: string;
913
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
914
+ client_id?: string | undefined;
915
+ client_secret?: string | undefined;
916
+ };
917
+ };
918
+ output: {};
919
+ outputFormat: string;
920
+ status: 200;
921
+ } | {
922
+ input: {
923
+ form: {
924
+ token: string;
925
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
926
+ client_id?: string | undefined;
927
+ client_secret?: string | undefined;
928
+ };
929
+ } & {
930
+ json: {
931
+ token: string;
932
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
933
+ client_id?: string | undefined;
934
+ client_secret?: string | undefined;
935
+ };
936
+ };
937
+ output: {
938
+ error: string;
939
+ error_description?: string | undefined;
940
+ };
941
+ outputFormat: "json";
942
+ status: 400;
943
+ } | {
944
+ input: {
945
+ form: {
946
+ token: string;
947
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
948
+ client_id?: string | undefined;
949
+ client_secret?: string | undefined;
950
+ };
951
+ } & {
952
+ json: {
953
+ token: string;
954
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
955
+ client_id?: string | undefined;
956
+ client_secret?: string | undefined;
957
+ };
958
+ };
959
+ output: {
960
+ error: string;
961
+ error_description?: string | undefined;
962
+ };
963
+ outputFormat: "json";
964
+ status: 401;
965
+ };
966
+ };
967
+ }, "/oauth/revoke"> & import("hono/types").MergeSchemaPath<{
968
+ "/": {
969
+ $post: {
970
+ input: {
971
+ form: {
972
+ grant_type: "client_credentials";
973
+ scope?: string | undefined;
974
+ audience?: string | undefined;
975
+ organization?: string | undefined;
976
+ client_id?: string | undefined;
977
+ client_secret?: string | undefined;
978
+ client_assertion?: string | undefined;
979
+ client_assertion_type?: string | undefined;
980
+ } | {
981
+ grant_type: "authorization_code";
982
+ code: string;
983
+ client_id?: string | undefined;
984
+ client_secret?: string | undefined;
985
+ client_assertion?: string | undefined;
986
+ client_assertion_type?: string | undefined;
987
+ redirect_uri?: string | undefined;
988
+ code_verifier?: string | undefined;
989
+ organization?: string | undefined;
990
+ } | {
991
+ grant_type: "refresh_token";
992
+ refresh_token: string;
993
+ client_id?: string | undefined;
994
+ client_secret?: string | undefined;
995
+ client_assertion?: string | undefined;
996
+ client_assertion_type?: string | undefined;
997
+ redirect_uri?: string | undefined;
998
+ organization?: string | undefined;
999
+ } | {
1000
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1001
+ client_id: string;
1002
+ username: string;
1003
+ otp: string;
1004
+ realm: "sms" | "email";
1005
+ };
1006
+ } & {
1007
+ json: {
1008
+ grant_type: "client_credentials";
1009
+ scope?: string | undefined;
1010
+ audience?: string | undefined;
1011
+ organization?: string | undefined;
1012
+ client_id?: string | undefined;
1013
+ client_secret?: string | undefined;
1014
+ client_assertion?: string | undefined;
1015
+ client_assertion_type?: string | undefined;
1016
+ } | {
1017
+ grant_type: "authorization_code";
1018
+ code: string;
1019
+ client_id?: string | undefined;
1020
+ client_secret?: string | undefined;
1021
+ client_assertion?: string | undefined;
1022
+ client_assertion_type?: string | undefined;
1023
+ redirect_uri?: string | undefined;
1024
+ code_verifier?: string | undefined;
1025
+ organization?: string | undefined;
1026
+ } | {
1027
+ grant_type: "refresh_token";
1028
+ refresh_token: string;
1029
+ client_id?: string | undefined;
1030
+ client_secret?: string | undefined;
1031
+ client_assertion?: string | undefined;
1032
+ client_assertion_type?: string | undefined;
1033
+ redirect_uri?: string | undefined;
1034
+ organization?: string | undefined;
1035
+ } | {
1036
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1037
+ client_id: string;
1038
+ username: string;
1039
+ otp: string;
1040
+ realm: "sms" | "email";
1041
+ };
1042
+ };
1043
+ output: {};
1044
+ outputFormat: string;
1045
+ status: 302;
1046
+ } | {
1047
+ input: {
1048
+ form: {
1049
+ grant_type: "client_credentials";
1050
+ scope?: string | undefined;
1051
+ audience?: string | undefined;
1052
+ organization?: string | undefined;
1053
+ client_id?: string | undefined;
1054
+ client_secret?: string | undefined;
1055
+ client_assertion?: string | undefined;
1056
+ client_assertion_type?: string | undefined;
1057
+ } | {
1058
+ grant_type: "authorization_code";
1059
+ code: string;
1060
+ client_id?: string | undefined;
1061
+ client_secret?: string | undefined;
1062
+ client_assertion?: string | undefined;
1063
+ client_assertion_type?: string | undefined;
1064
+ redirect_uri?: string | undefined;
1065
+ code_verifier?: string | undefined;
1066
+ organization?: string | undefined;
1067
+ } | {
1068
+ grant_type: "refresh_token";
1069
+ refresh_token: string;
1070
+ client_id?: string | undefined;
1071
+ client_secret?: string | undefined;
1072
+ client_assertion?: string | undefined;
1073
+ client_assertion_type?: string | undefined;
1074
+ redirect_uri?: string | undefined;
1075
+ organization?: string | undefined;
1076
+ } | {
1077
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1078
+ client_id: string;
1079
+ username: string;
1080
+ otp: string;
1081
+ realm: "sms" | "email";
1082
+ };
1083
+ } & {
1084
+ json: {
1085
+ grant_type: "client_credentials";
1086
+ scope?: string | undefined;
1087
+ audience?: string | undefined;
1088
+ organization?: string | undefined;
1089
+ client_id?: string | undefined;
1090
+ client_secret?: string | undefined;
1091
+ client_assertion?: string | undefined;
1092
+ client_assertion_type?: string | undefined;
1093
+ } | {
1094
+ grant_type: "authorization_code";
1095
+ code: string;
1096
+ client_id?: string | undefined;
1097
+ client_secret?: string | undefined;
1098
+ client_assertion?: string | undefined;
1099
+ client_assertion_type?: string | undefined;
1100
+ redirect_uri?: string | undefined;
1101
+ code_verifier?: string | undefined;
1102
+ organization?: string | undefined;
1103
+ } | {
1104
+ grant_type: "refresh_token";
1105
+ refresh_token: string;
1106
+ client_id?: string | undefined;
1107
+ client_secret?: string | undefined;
1108
+ client_assertion?: string | undefined;
1109
+ client_assertion_type?: string | undefined;
1110
+ redirect_uri?: string | undefined;
1111
+ organization?: string | undefined;
1112
+ } | {
1113
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1114
+ client_id: string;
1115
+ username: string;
1116
+ otp: string;
1117
+ realm: "sms" | "email";
1118
+ };
1119
+ };
1120
+ output: {
1121
+ access_token: string;
1122
+ token_type: string;
1123
+ expires_in: number;
1124
+ id_token?: string | undefined;
1125
+ scope?: string | undefined;
1126
+ state?: string | undefined;
1127
+ refresh_token?: string | undefined;
1128
+ };
1129
+ outputFormat: "json";
1130
+ status: 200;
1131
+ } | {
1132
+ input: {
1133
+ form: {
1134
+ grant_type: "client_credentials";
1135
+ scope?: string | undefined;
1136
+ audience?: string | undefined;
1137
+ organization?: string | undefined;
1138
+ client_id?: string | undefined;
1139
+ client_secret?: string | undefined;
1140
+ client_assertion?: string | undefined;
1141
+ client_assertion_type?: string | undefined;
1142
+ } | {
1143
+ grant_type: "authorization_code";
1144
+ code: string;
1145
+ client_id?: string | undefined;
1146
+ client_secret?: string | undefined;
1147
+ client_assertion?: string | undefined;
1148
+ client_assertion_type?: string | undefined;
1149
+ redirect_uri?: string | undefined;
1150
+ code_verifier?: string | undefined;
1151
+ organization?: string | undefined;
1152
+ } | {
1153
+ grant_type: "refresh_token";
1154
+ refresh_token: string;
1155
+ client_id?: string | undefined;
1156
+ client_secret?: string | undefined;
1157
+ client_assertion?: string | undefined;
1158
+ client_assertion_type?: string | undefined;
1159
+ redirect_uri?: string | undefined;
1160
+ organization?: string | undefined;
1161
+ } | {
1162
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1163
+ client_id: string;
1164
+ username: string;
1165
+ otp: string;
1166
+ realm: "sms" | "email";
1167
+ };
1168
+ } & {
1169
+ json: {
1170
+ grant_type: "client_credentials";
1171
+ scope?: string | undefined;
1172
+ audience?: string | undefined;
1173
+ organization?: string | undefined;
1174
+ client_id?: string | undefined;
1175
+ client_secret?: string | undefined;
1176
+ client_assertion?: string | undefined;
1177
+ client_assertion_type?: string | undefined;
1178
+ } | {
1179
+ grant_type: "authorization_code";
1180
+ code: string;
1181
+ client_id?: string | undefined;
1182
+ client_secret?: string | undefined;
1183
+ client_assertion?: string | undefined;
1184
+ client_assertion_type?: string | undefined;
1185
+ redirect_uri?: string | undefined;
1186
+ code_verifier?: string | undefined;
1187
+ organization?: string | undefined;
1188
+ } | {
1189
+ grant_type: "refresh_token";
1190
+ refresh_token: string;
1191
+ client_id?: string | undefined;
1192
+ client_secret?: string | undefined;
1193
+ client_assertion?: string | undefined;
1194
+ client_assertion_type?: string | undefined;
1195
+ redirect_uri?: string | undefined;
1196
+ organization?: string | undefined;
1197
+ } | {
1198
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1199
+ client_id: string;
1200
+ username: string;
1201
+ otp: string;
1202
+ realm: "sms" | "email";
1203
+ };
1204
+ };
1205
+ output: {
1206
+ error: string;
1207
+ error_description?: string | undefined;
1208
+ };
1209
+ outputFormat: "json";
1210
+ status: 400;
1211
+ } | {
1212
+ input: {
1213
+ form: {
1214
+ grant_type: "client_credentials";
1215
+ scope?: string | undefined;
1216
+ audience?: string | undefined;
1217
+ organization?: string | undefined;
1218
+ client_id?: string | undefined;
1219
+ client_secret?: string | undefined;
1220
+ client_assertion?: string | undefined;
1221
+ client_assertion_type?: string | undefined;
1222
+ } | {
1223
+ grant_type: "authorization_code";
1224
+ code: string;
1225
+ client_id?: string | undefined;
1226
+ client_secret?: string | undefined;
1227
+ client_assertion?: string | undefined;
1228
+ client_assertion_type?: string | undefined;
1229
+ redirect_uri?: string | undefined;
1230
+ code_verifier?: string | undefined;
1231
+ organization?: string | undefined;
1232
+ } | {
1233
+ grant_type: "refresh_token";
1234
+ refresh_token: string;
1235
+ client_id?: string | undefined;
1236
+ client_secret?: string | undefined;
1237
+ client_assertion?: string | undefined;
1238
+ client_assertion_type?: string | undefined;
1239
+ redirect_uri?: string | undefined;
1240
+ organization?: string | undefined;
1241
+ } | {
1242
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1243
+ client_id: string;
1244
+ username: string;
1245
+ otp: string;
1246
+ realm: "sms" | "email";
1247
+ };
1248
+ } & {
1249
+ json: {
1250
+ grant_type: "client_credentials";
1251
+ scope?: string | undefined;
1252
+ audience?: string | undefined;
1253
+ organization?: string | undefined;
1254
+ client_id?: string | undefined;
1255
+ client_secret?: string | undefined;
1256
+ client_assertion?: string | undefined;
1257
+ client_assertion_type?: string | undefined;
1258
+ } | {
1259
+ grant_type: "authorization_code";
1260
+ code: string;
1261
+ client_id?: string | undefined;
1262
+ client_secret?: string | undefined;
1263
+ client_assertion?: string | undefined;
1264
+ client_assertion_type?: string | undefined;
1265
+ redirect_uri?: string | undefined;
1266
+ code_verifier?: string | undefined;
1267
+ organization?: string | undefined;
1268
+ } | {
1269
+ grant_type: "refresh_token";
1270
+ refresh_token: string;
1271
+ client_id?: string | undefined;
1272
+ client_secret?: string | undefined;
1273
+ client_assertion?: string | undefined;
1274
+ client_assertion_type?: string | undefined;
1275
+ redirect_uri?: string | undefined;
1276
+ organization?: string | undefined;
1277
+ } | {
1278
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1279
+ client_id: string;
1280
+ username: string;
1281
+ otp: string;
1282
+ realm: "sms" | "email";
1283
+ };
1284
+ };
1285
+ output: {
1286
+ error: string;
1287
+ error_description?: string | undefined;
1288
+ };
1289
+ outputFormat: "json";
1290
+ status: 401;
1291
+ } | {
1292
+ input: {
1293
+ form: {
1294
+ grant_type: "client_credentials";
1295
+ scope?: string | undefined;
1296
+ audience?: string | undefined;
1297
+ organization?: string | undefined;
1298
+ client_id?: string | undefined;
1299
+ client_secret?: string | undefined;
1300
+ client_assertion?: string | undefined;
1301
+ client_assertion_type?: string | undefined;
1302
+ } | {
1303
+ grant_type: "authorization_code";
1304
+ code: string;
1305
+ client_id?: string | undefined;
1306
+ client_secret?: string | undefined;
1307
+ client_assertion?: string | undefined;
1308
+ client_assertion_type?: string | undefined;
1309
+ redirect_uri?: string | undefined;
1310
+ code_verifier?: string | undefined;
1311
+ organization?: string | undefined;
1312
+ } | {
1313
+ grant_type: "refresh_token";
1314
+ refresh_token: string;
1315
+ client_id?: string | undefined;
1316
+ client_secret?: string | undefined;
1317
+ client_assertion?: string | undefined;
1318
+ client_assertion_type?: string | undefined;
1319
+ redirect_uri?: string | undefined;
1320
+ organization?: string | undefined;
1321
+ } | {
1322
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1323
+ client_id: string;
1324
+ username: string;
1325
+ otp: string;
1326
+ realm: "sms" | "email";
1327
+ };
1328
+ } & {
1329
+ json: {
1330
+ grant_type: "client_credentials";
1331
+ scope?: string | undefined;
1332
+ audience?: string | undefined;
1333
+ organization?: string | undefined;
1334
+ client_id?: string | undefined;
1335
+ client_secret?: string | undefined;
1336
+ client_assertion?: string | undefined;
1337
+ client_assertion_type?: string | undefined;
1338
+ } | {
1339
+ grant_type: "authorization_code";
1340
+ code: string;
1341
+ client_id?: string | undefined;
1342
+ client_secret?: string | undefined;
1343
+ client_assertion?: string | undefined;
1344
+ client_assertion_type?: string | undefined;
1345
+ redirect_uri?: string | undefined;
1346
+ code_verifier?: string | undefined;
1347
+ organization?: string | undefined;
1348
+ } | {
1349
+ grant_type: "refresh_token";
1350
+ refresh_token: string;
1351
+ client_id?: string | undefined;
1352
+ client_secret?: string | undefined;
1353
+ client_assertion?: string | undefined;
1354
+ client_assertion_type?: string | undefined;
1355
+ redirect_uri?: string | undefined;
1356
+ organization?: string | undefined;
1357
+ } | {
1358
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1359
+ client_id: string;
1360
+ username: string;
1361
+ otp: string;
1362
+ realm: "sms" | "email";
1363
+ };
1364
+ };
1365
+ output: {
1366
+ error: string;
1367
+ error_description?: string | undefined;
1368
+ };
1369
+ outputFormat: "json";
1370
+ status: 403;
1371
+ };
1372
+ };
1373
+ }, "/oauth/token"> & import("hono/types").MergeSchemaPath<{
1374
+ "/jwks.json": {
1375
+ $get: {
1376
+ input: {};
1377
+ output: {
1378
+ keys: {
1379
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1380
+ kid: string;
1381
+ kty: "EC" | "RSA" | "oct";
1382
+ use?: "sig" | "enc" | undefined;
1383
+ n?: string | undefined;
1384
+ e?: string | undefined;
1385
+ crv?: string | undefined;
1386
+ x?: string | undefined;
1387
+ y?: string | undefined;
1388
+ x5t?: string | undefined;
1389
+ x5c?: string[] | undefined;
1390
+ }[];
1391
+ };
1392
+ outputFormat: "json";
1393
+ status: 200;
1394
+ };
1395
+ };
1396
+ } & {
1397
+ "/openid-configuration": {
1398
+ $get: {
1399
+ input: {};
1400
+ output: {
1401
+ issuer: string;
1402
+ authorization_endpoint: string;
1403
+ token_endpoint: string;
1404
+ userinfo_endpoint: string;
1405
+ jwks_uri: string;
1406
+ revocation_endpoint: string;
1407
+ scopes_supported: string[];
1408
+ response_types_supported: string[];
1409
+ code_challenge_methods_supported: string[];
1410
+ response_modes_supported: string[];
1411
+ subject_types_supported: string[];
1412
+ id_token_signing_alg_values_supported: string[];
1413
+ token_endpoint_auth_methods_supported: string[];
1414
+ claims_supported: string[];
1415
+ request_uri_parameter_supported: boolean;
1416
+ request_parameter_supported: boolean;
1417
+ token_endpoint_auth_signing_alg_values_supported: string[];
1418
+ registration_endpoint?: string | undefined;
1419
+ end_session_endpoint?: string | undefined;
1420
+ grant_types_supported?: string[] | undefined;
1421
+ claims_parameter_supported?: boolean | undefined;
1422
+ request_object_signing_alg_values_supported?: string[] | undefined;
1423
+ };
1424
+ outputFormat: "json";
1425
+ status: 200;
1426
+ };
1427
+ };
1428
+ } & {
1429
+ "/*": {
1430
+ $get: {
1431
+ input: {};
1432
+ output: "Not Found";
1433
+ outputFormat: "text";
1434
+ status: 404;
1435
+ } | {
1436
+ input: {};
1437
+ output: string;
1438
+ outputFormat: "text";
1439
+ status: 200;
1440
+ };
1441
+ };
1442
+ }, "/.well-known"> & import("hono/types").MergeSchemaPath<{
1443
+ "/": {
1444
+ $get: {
1445
+ input: {};
1446
+ output: {
1447
+ sub: string;
1448
+ email?: string | undefined;
1449
+ email_verified?: boolean | undefined;
1450
+ phone_number?: string | undefined;
1451
+ phone_number_verified?: boolean | undefined;
1452
+ name?: string | undefined;
1453
+ family_name?: string | undefined;
1454
+ given_name?: string | undefined;
1455
+ middle_name?: string | undefined;
1456
+ nickname?: string | undefined;
1457
+ preferred_username?: string | undefined;
1458
+ profile?: string | undefined;
1459
+ picture?: string | undefined;
1460
+ website?: string | undefined;
1461
+ gender?: string | undefined;
1462
+ birthdate?: string | undefined;
1463
+ zoneinfo?: string | undefined;
1464
+ locale?: string | undefined;
1465
+ updated_at?: number | undefined;
1466
+ address?: {
1467
+ formatted?: string | undefined;
1468
+ street_address?: string | undefined;
1469
+ locality?: string | undefined;
1470
+ region?: string | undefined;
1471
+ postal_code?: string | undefined;
1472
+ country?: string | undefined;
1473
+ } | undefined;
1474
+ };
1475
+ outputFormat: "json";
1476
+ status: 200;
1477
+ };
1478
+ };
1479
+ } & {
1480
+ "/": {
1481
+ $post: {
1482
+ input: {
1483
+ form: {
1484
+ access_token?: string | undefined;
1485
+ };
1486
+ };
1487
+ output: {
1488
+ sub: string;
1489
+ email?: string | undefined;
1490
+ email_verified?: boolean | undefined;
1491
+ phone_number?: string | undefined;
1492
+ phone_number_verified?: boolean | undefined;
1493
+ name?: string | undefined;
1494
+ family_name?: string | undefined;
1495
+ given_name?: string | undefined;
1496
+ middle_name?: string | undefined;
1497
+ nickname?: string | undefined;
1498
+ preferred_username?: string | undefined;
1499
+ profile?: string | undefined;
1500
+ picture?: string | undefined;
1501
+ website?: string | undefined;
1502
+ gender?: string | undefined;
1503
+ birthdate?: string | undefined;
1504
+ zoneinfo?: string | undefined;
1505
+ locale?: string | undefined;
1506
+ updated_at?: number | undefined;
1507
+ address?: {
1508
+ formatted?: string | undefined;
1509
+ street_address?: string | undefined;
1510
+ locality?: string | undefined;
1511
+ region?: string | undefined;
1512
+ postal_code?: string | undefined;
1513
+ country?: string | undefined;
1514
+ } | undefined;
1515
+ };
1516
+ outputFormat: "json";
1517
+ status: 200;
1518
+ };
1519
+ };
1520
+ }, "/userinfo"> & import("hono/types").MergeSchemaPath<{
1521
+ "/": {
1522
+ $get: {
1523
+ input: {
1524
+ query: {
1525
+ id_token_hint?: string | undefined;
1526
+ client_id?: string | undefined;
1527
+ post_logout_redirect_uri?: string | undefined;
1528
+ state?: string | undefined;
1529
+ logout_hint?: string | undefined;
1530
+ ui_locales?: string | undefined;
1531
+ };
1532
+ };
1533
+ output: {};
1534
+ outputFormat: string;
1535
+ status: 200;
1536
+ } | {
1537
+ input: {
1538
+ query: {
1539
+ id_token_hint?: string | undefined;
1540
+ client_id?: string | undefined;
1541
+ post_logout_redirect_uri?: string | undefined;
1542
+ state?: string | undefined;
1543
+ logout_hint?: string | undefined;
1544
+ ui_locales?: string | undefined;
1545
+ };
1546
+ };
1547
+ output: {};
1548
+ outputFormat: string;
1549
+ status: 302;
1550
+ } | {
1551
+ input: {
1552
+ query: {
1553
+ id_token_hint?: string | undefined;
1554
+ client_id?: string | undefined;
1555
+ post_logout_redirect_uri?: string | undefined;
1556
+ state?: string | undefined;
1557
+ logout_hint?: string | undefined;
1558
+ ui_locales?: string | undefined;
1559
+ };
1560
+ };
1561
+ output: {};
1562
+ outputFormat: string;
1563
+ status: 400;
1564
+ };
1565
+ };
1566
+ }, "/oidc/logout"> & import("hono/types").MergeSchemaPath<{
1567
+ "/": {
1568
+ $get: {
1569
+ input: {
1570
+ query: {
1571
+ client_id: string;
1572
+ returnTo?: string | undefined;
1573
+ };
1574
+ };
1575
+ output: {};
1576
+ outputFormat: string;
1577
+ status: 302;
1578
+ };
1579
+ };
1580
+ }, "/v2/logout">, "/">;