@stytch/react 20.0.0-next.0 → 20.0.0-next.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 (270) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/{StytchSSRProxy-CUOvjF03.js → StytchSSRProxy-Bz6LNYdq.js} +186 -1
  3. package/dist/cjs/StytchSSRProxy-Bz6LNYdq.js.map +1 -0
  4. package/dist/cjs/adminPortal/index.cjs +102 -26
  5. package/dist/cjs/adminPortal/index.cjs.map +1 -1
  6. package/dist/cjs/b2b/index.cjs +176 -138
  7. package/dist/cjs/b2b/index.cjs.map +1 -1
  8. package/dist/cjs/b2b/index.headless.cjs +24 -24
  9. package/dist/cjs/b2b/index.headless.cjs.map +1 -1
  10. package/dist/cjs/{idpHelpers-eUP8j58U.js → idpHelpers-Bj_7pbfW.js} +7 -191
  11. package/dist/cjs/idpHelpers-Bj_7pbfW.js.map +1 -0
  12. package/dist/cjs/{index-DfiRrtK8.js → index-Ni_dyEsz.js} +3 -3
  13. package/dist/cjs/{index-DfiRrtK8.js.map → index-Ni_dyEsz.js.map} +1 -1
  14. package/dist/cjs/index.cjs +207 -196
  15. package/dist/cjs/index.cjs.map +1 -1
  16. package/dist/cjs/index.headless.cjs +32 -32
  17. package/dist/cjs/index.headless.cjs.map +1 -1
  18. package/dist/cjs/{passwordManagerDisableAutofillProps-C0akDAKd.js → passwordManagerDisableAutofillProps-DV31RTL_.js} +2 -2
  19. package/dist/cjs/{passwordManagerDisableAutofillProps-C0akDAKd.js.map → passwordManagerDisableAutofillProps-DV31RTL_.js.map} +1 -1
  20. package/dist/cjs/{shadcn-Bbv2Hk3P.js → shadcn-B8TEzQMT.js} +99 -81
  21. package/dist/cjs/shadcn-B8TEzQMT.js.map +1 -0
  22. package/dist/cjs-dev/{StytchSSRProxy-D0B5PuT0.js → StytchSSRProxy-CxXsyme4.js} +186 -1
  23. package/dist/cjs-dev/StytchSSRProxy-CxXsyme4.js.map +1 -0
  24. package/dist/cjs-dev/adminPortal/index.cjs +102 -26
  25. package/dist/cjs-dev/adminPortal/index.cjs.map +1 -1
  26. package/dist/cjs-dev/b2b/index.cjs +176 -138
  27. package/dist/cjs-dev/b2b/index.cjs.map +1 -1
  28. package/dist/cjs-dev/b2b/index.headless.cjs +24 -24
  29. package/dist/cjs-dev/b2b/index.headless.cjs.map +1 -1
  30. package/dist/cjs-dev/{idpHelpers-DOOVv6dT.js → idpHelpers-Cf8Qq1B4.js} +7 -191
  31. package/dist/cjs-dev/idpHelpers-Cf8Qq1B4.js.map +1 -0
  32. package/dist/cjs-dev/{index-paeFcHjf.js → index-DdK3Jt4u.js} +3 -3
  33. package/dist/cjs-dev/{index-paeFcHjf.js.map → index-DdK3Jt4u.js.map} +1 -1
  34. package/dist/cjs-dev/index.cjs +207 -196
  35. package/dist/cjs-dev/index.cjs.map +1 -1
  36. package/dist/cjs-dev/index.headless.cjs +32 -32
  37. package/dist/cjs-dev/index.headless.cjs.map +1 -1
  38. package/dist/cjs-dev/{passwordManagerDisableAutofillProps-CnLBAXyr.js → passwordManagerDisableAutofillProps-D70WyvIu.js} +2 -2
  39. package/dist/cjs-dev/{passwordManagerDisableAutofillProps-CnLBAXyr.js.map → passwordManagerDisableAutofillProps-D70WyvIu.js.map} +1 -1
  40. package/dist/cjs-dev/{shadcn-CdbmlhdF.js → shadcn-C4w3DtKK.js} +99 -81
  41. package/dist/cjs-dev/shadcn-C4w3DtKK.js.map +1 -0
  42. package/dist/esm/_virtual/index.mjs +4 -4
  43. package/dist/esm/_virtual/index3.mjs +3 -5
  44. package/dist/esm/_virtual/index3.mjs.map +1 -1
  45. package/dist/esm/_virtual/index4.mjs +5 -3
  46. package/dist/esm/_virtual/index4.mjs.map +1 -1
  47. package/dist/esm/_virtual/index6.mjs +2 -2
  48. package/dist/esm/_virtual/index7.mjs +2 -2
  49. package/dist/esm/adminPortal/index.mjs +4 -1
  50. package/dist/esm/adminPortal/index.mjs.map +1 -1
  51. package/dist/esm/b2b/index.mjs.map +1 -1
  52. package/dist/esm/node_modules/lodash.merge/index.mjs +1 -1
  53. package/dist/esm/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  54. package/dist/esm/packages/core/src/rpc/FrameClient.mjs +1 -0
  55. package/dist/esm/packages/core/src/rpc/FrameClient.mjs.map +1 -1
  56. package/dist/esm/packages/web/messages/b2b/en.json.mjs +10 -3
  57. package/dist/esm/packages/web/messages/b2b/en.json.mjs.map +1 -1
  58. package/dist/esm/packages/web/messages/en.json.mjs +10 -3
  59. package/dist/esm/packages/web/messages/en.json.mjs.map +1 -1
  60. package/dist/esm/packages/web/src/adminPortal/memberManagement/AccessSection.mjs +6 -3
  61. package/dist/esm/packages/web/src/adminPortal/memberManagement/AccessSection.mjs.map +1 -1
  62. package/dist/esm/packages/web/src/adminPortal/memberManagement/InviteModal.mjs +4 -1
  63. package/dist/esm/packages/web/src/adminPortal/memberManagement/InviteModal.mjs.map +1 -1
  64. package/dist/esm/packages/web/src/adminPortal/memberManagement/MemberListScreen.mjs +3 -1
  65. package/dist/esm/packages/web/src/adminPortal/memberManagement/MemberListScreen.mjs.map +1 -1
  66. package/dist/esm/packages/web/src/adminPortal/scim/SCIMConnectionRoleAssignmentsSection.mjs +6 -2
  67. package/dist/esm/packages/web/src/adminPortal/scim/SCIMConnectionRoleAssignmentsSection.mjs.map +1 -1
  68. package/dist/esm/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs +7 -3
  69. package/dist/esm/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs.map +1 -1
  70. package/dist/esm/packages/web/src/adminPortal/sso/RoleAssignmentsSection.mjs +5 -1
  71. package/dist/esm/packages/web/src/adminPortal/sso/RoleAssignmentsSection.mjs.map +1 -1
  72. package/dist/esm/packages/web/src/adminPortal/utils/theme.mjs +1 -1
  73. package/dist/esm/packages/web/src/adminPortal/utils/useRbac.mjs.map +1 -1
  74. package/dist/esm/packages/web/src/adminPortal/utils/useRoleAutocomplete.mjs +3 -3
  75. package/dist/esm/packages/web/src/adminPortal/utils/useRoleAutocomplete.mjs.map +1 -1
  76. package/dist/esm/packages/web/src/adminPortal/utils/useRoleDisplayInfo.mjs +2 -2
  77. package/dist/esm/packages/web/src/adminPortal/utils/useRoleDisplayInfo.mjs.map +1 -1
  78. package/dist/esm/packages/web/src/adminPortal/utils/useRoles.mjs +7 -2
  79. package/dist/esm/packages/web/src/adminPortal/utils/useRoles.mjs.map +1 -1
  80. package/dist/esm/packages/web/src/ui/b2b/components/OrganizationRow.mjs +1 -1
  81. package/dist/esm/packages/web/src/ui/b2b/screens/EmailConfirmation.mjs +27 -3
  82. package/dist/esm/packages/web/src/ui/b2b/screens/EmailConfirmation.mjs.map +1 -1
  83. package/dist/esm/packages/web/src/ui/b2b/screens/RecoveryCodeEntryScreen.mjs +2 -0
  84. package/dist/esm/packages/web/src/ui/b2b/screens/RecoveryCodeEntryScreen.mjs.map +1 -1
  85. package/dist/esm/packages/web/src/ui/b2b/screens/SMSOTPEntryScreen.mjs +2 -0
  86. package/dist/esm/packages/web/src/ui/b2b/screens/SMSOTPEntryScreen.mjs.map +1 -1
  87. package/dist/esm/packages/web/src/ui/b2b/utils.mjs +8 -1
  88. package/dist/esm/packages/web/src/ui/b2b/utils.mjs.map +1 -1
  89. package/dist/esm/packages/web/src/ui/b2c/components/GoogleOneTap.mjs +1 -1
  90. package/dist/esm/packages/web/src/ui/b2c/screens/Main/LoginForm/index.mjs +1 -1
  91. package/dist/esm/packages/web/src/ui/b2c/screens/Passkey/EditableRow.mjs +1 -1
  92. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/EmailConfirmation.mjs +10 -4
  93. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/EmailConfirmation.mjs.map +1 -1
  94. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.mjs +2 -1
  95. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.mjs.map +1 -1
  96. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/PasswordlessAuthenticate.mjs +5 -68
  97. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/PasswordlessAuthenticate.mjs.map +1 -1
  98. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs +71 -0
  99. package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs.map +1 -0
  100. package/dist/esm/packages/web/src/ui/components/atoms/AnimatedContainer.mjs +1 -1
  101. package/dist/esm/packages/web/src/ui/components/atoms/Button.mjs +1 -1
  102. package/dist/esm/packages/web/src/ui/components/atoms/CircularProgress.mjs +4 -5
  103. package/dist/esm/packages/web/src/ui/components/atoms/CircularProgress.mjs.map +1 -1
  104. package/dist/esm/packages/web/src/ui/components/atoms/CodeContainer.mjs +1 -1
  105. package/dist/esm/packages/web/src/ui/components/atoms/Column.mjs +1 -1
  106. package/dist/esm/packages/web/src/ui/components/atoms/Typography.mjs +1 -1
  107. package/dist/esm/packages/web/src/ui/components/atoms/VerticalTransition.mjs +1 -1
  108. package/dist/esm/packages/web/src/ui/components/atoms/VisuallyHidden.mjs +1 -1
  109. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.mjs +14 -23
  110. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.mjs.map +1 -1
  111. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.module.css.mjs +2 -2
  112. package/dist/esm/packages/web/src/ui/components/molecules/Badge.mjs +1 -1
  113. package/dist/esm/packages/web/src/ui/components/molecules/EmailInput.mjs +1 -1
  114. package/dist/esm/packages/web/src/ui/components/molecules/EmailInput.mjs.map +1 -1
  115. package/dist/esm/packages/web/src/ui/components/molecules/ErrorText.mjs +12 -4
  116. package/dist/esm/packages/web/src/ui/components/molecules/ErrorText.mjs.map +1 -1
  117. package/dist/esm/packages/web/src/ui/components/molecules/Input.mjs +3 -2
  118. package/dist/esm/packages/web/src/ui/components/molecules/Input.mjs.map +1 -1
  119. package/dist/esm/packages/web/src/ui/components/molecules/MainContainer.mjs +6 -6
  120. package/dist/esm/packages/web/src/ui/components/molecules/MainContainer.mjs.map +1 -1
  121. package/dist/esm/packages/web/src/ui/components/molecules/MainContainer.module.css.mjs +2 -2
  122. package/dist/esm/packages/web/src/ui/components/molecules/OtpInput.mjs +1 -1
  123. package/dist/esm/packages/web/src/ui/components/molecules/PasswordStrengthCheck.mjs +1 -1
  124. package/dist/esm/packages/web/src/ui/components/molecules/PhoneInput.mjs +3 -4
  125. package/dist/esm/packages/web/src/ui/components/molecules/PhoneInput.mjs.map +1 -1
  126. package/dist/esm/packages/web/src/ui/components/organisms/EmailConfirmationView.mjs +26 -3
  127. package/dist/esm/packages/web/src/ui/components/organisms/EmailConfirmationView.mjs.map +1 -1
  128. package/dist/esm/packages/web/src/ui/components/organisms/IDPConsentManifest.mjs +1 -1
  129. package/dist/esm/packages/web/src/ui/components/organisms/OneTapError.mjs +1 -1
  130. package/dist/esm/packages/web/src/ui/components/organisms/ResendOTPButton.mjs +2 -2
  131. package/dist/esm/packages/web/src/ui/components/organisms/ResendOTPButton.mjs.map +1 -1
  132. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalMemberManagement.mjs +0 -42
  133. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalMemberManagement.mjs.map +1 -1
  134. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalOrgSettings.mjs +0 -40
  135. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalOrgSettings.mjs.map +1 -1
  136. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalSCIM.mjs +0 -43
  137. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalSCIM.mjs.map +1 -1
  138. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalSSO.mjs +0 -36
  139. package/dist/esm/packages/web/src/ui/react/adminPortal/AdminPortalSSO.mjs.map +1 -1
  140. package/dist/esm/packages/web/src/ui/react/b2b/Stytch.mjs.map +1 -1
  141. package/dist/esm/packages/web/src/ui/react/bindings/createB2BComponent.mjs.map +1 -1
  142. package/dist/esm/packages/web/src/utils/crypto.mjs +1 -1
  143. package/dist/esm-dev/_virtual/index.mjs +4 -4
  144. package/dist/esm-dev/_virtual/index3.mjs +3 -5
  145. package/dist/esm-dev/_virtual/index3.mjs.map +1 -1
  146. package/dist/esm-dev/_virtual/index4.mjs +5 -3
  147. package/dist/esm-dev/_virtual/index4.mjs.map +1 -1
  148. package/dist/esm-dev/_virtual/index6.mjs +2 -2
  149. package/dist/esm-dev/_virtual/index7.mjs +2 -2
  150. package/dist/esm-dev/adminPortal/index.mjs +4 -1
  151. package/dist/esm-dev/adminPortal/index.mjs.map +1 -1
  152. package/dist/esm-dev/b2b/index.mjs.map +1 -1
  153. package/dist/esm-dev/node_modules/lodash.merge/index.mjs +1 -1
  154. package/dist/esm-dev/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  155. package/dist/esm-dev/packages/core/src/rpc/FrameClient.mjs +1 -0
  156. package/dist/esm-dev/packages/core/src/rpc/FrameClient.mjs.map +1 -1
  157. package/dist/esm-dev/packages/web/messages/b2b/en.json.mjs +10 -3
  158. package/dist/esm-dev/packages/web/messages/b2b/en.json.mjs.map +1 -1
  159. package/dist/esm-dev/packages/web/messages/en.json.mjs +10 -3
  160. package/dist/esm-dev/packages/web/messages/en.json.mjs.map +1 -1
  161. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/AccessSection.mjs +6 -3
  162. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/AccessSection.mjs.map +1 -1
  163. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/InviteModal.mjs +4 -1
  164. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/InviteModal.mjs.map +1 -1
  165. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/MemberListScreen.mjs +3 -1
  166. package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/MemberListScreen.mjs.map +1 -1
  167. package/dist/esm-dev/packages/web/src/adminPortal/scim/SCIMConnectionRoleAssignmentsSection.mjs +6 -2
  168. package/dist/esm-dev/packages/web/src/adminPortal/scim/SCIMConnectionRoleAssignmentsSection.mjs.map +1 -1
  169. package/dist/esm-dev/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs +7 -3
  170. package/dist/esm-dev/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs.map +1 -1
  171. package/dist/esm-dev/packages/web/src/adminPortal/sso/RoleAssignmentsSection.mjs +5 -1
  172. package/dist/esm-dev/packages/web/src/adminPortal/sso/RoleAssignmentsSection.mjs.map +1 -1
  173. package/dist/esm-dev/packages/web/src/adminPortal/utils/theme.mjs +1 -1
  174. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRbac.mjs.map +1 -1
  175. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoleAutocomplete.mjs +3 -3
  176. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoleAutocomplete.mjs.map +1 -1
  177. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoleDisplayInfo.mjs +2 -2
  178. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoleDisplayInfo.mjs.map +1 -1
  179. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoles.mjs +7 -2
  180. package/dist/esm-dev/packages/web/src/adminPortal/utils/useRoles.mjs.map +1 -1
  181. package/dist/esm-dev/packages/web/src/ui/b2b/components/OrganizationRow.mjs +1 -1
  182. package/dist/esm-dev/packages/web/src/ui/b2b/screens/EmailConfirmation.mjs +27 -3
  183. package/dist/esm-dev/packages/web/src/ui/b2b/screens/EmailConfirmation.mjs.map +1 -1
  184. package/dist/esm-dev/packages/web/src/ui/b2b/screens/RecoveryCodeEntryScreen.mjs +2 -0
  185. package/dist/esm-dev/packages/web/src/ui/b2b/screens/RecoveryCodeEntryScreen.mjs.map +1 -1
  186. package/dist/esm-dev/packages/web/src/ui/b2b/screens/SMSOTPEntryScreen.mjs +2 -0
  187. package/dist/esm-dev/packages/web/src/ui/b2b/screens/SMSOTPEntryScreen.mjs.map +1 -1
  188. package/dist/esm-dev/packages/web/src/ui/b2b/utils.mjs +8 -1
  189. package/dist/esm-dev/packages/web/src/ui/b2b/utils.mjs.map +1 -1
  190. package/dist/esm-dev/packages/web/src/ui/b2c/components/GoogleOneTap.mjs +1 -1
  191. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Main/LoginForm/index.mjs +1 -1
  192. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Passkey/EditableRow.mjs +1 -1
  193. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/EmailConfirmation.mjs +10 -4
  194. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/EmailConfirmation.mjs.map +1 -1
  195. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.mjs +2 -1
  196. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.mjs.map +1 -1
  197. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/PasswordlessAuthenticate.mjs +5 -68
  198. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/PasswordlessAuthenticate.mjs.map +1 -1
  199. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs +71 -0
  200. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs.map +1 -0
  201. package/dist/esm-dev/packages/web/src/ui/components/atoms/AnimatedContainer.mjs +1 -1
  202. package/dist/esm-dev/packages/web/src/ui/components/atoms/Button.mjs +1 -1
  203. package/dist/esm-dev/packages/web/src/ui/components/atoms/CircularProgress.mjs +4 -5
  204. package/dist/esm-dev/packages/web/src/ui/components/atoms/CircularProgress.mjs.map +1 -1
  205. package/dist/esm-dev/packages/web/src/ui/components/atoms/CodeContainer.mjs +1 -1
  206. package/dist/esm-dev/packages/web/src/ui/components/atoms/Column.mjs +1 -1
  207. package/dist/esm-dev/packages/web/src/ui/components/atoms/Typography.mjs +1 -1
  208. package/dist/esm-dev/packages/web/src/ui/components/atoms/VerticalTransition.mjs +1 -1
  209. package/dist/esm-dev/packages/web/src/ui/components/atoms/VisuallyHidden.mjs +1 -1
  210. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.mjs +14 -23
  211. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.mjs.map +1 -1
  212. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.module.css.mjs +2 -2
  213. package/dist/esm-dev/packages/web/src/ui/components/molecules/Badge.mjs +1 -1
  214. package/dist/esm-dev/packages/web/src/ui/components/molecules/EmailInput.mjs +1 -1
  215. package/dist/esm-dev/packages/web/src/ui/components/molecules/EmailInput.mjs.map +1 -1
  216. package/dist/esm-dev/packages/web/src/ui/components/molecules/ErrorText.mjs +12 -4
  217. package/dist/esm-dev/packages/web/src/ui/components/molecules/ErrorText.mjs.map +1 -1
  218. package/dist/esm-dev/packages/web/src/ui/components/molecules/Input.mjs +3 -2
  219. package/dist/esm-dev/packages/web/src/ui/components/molecules/Input.mjs.map +1 -1
  220. package/dist/esm-dev/packages/web/src/ui/components/molecules/MainContainer.mjs +6 -6
  221. package/dist/esm-dev/packages/web/src/ui/components/molecules/MainContainer.mjs.map +1 -1
  222. package/dist/esm-dev/packages/web/src/ui/components/molecules/MainContainer.module.css.mjs +2 -2
  223. package/dist/esm-dev/packages/web/src/ui/components/molecules/OtpInput.mjs +1 -1
  224. package/dist/esm-dev/packages/web/src/ui/components/molecules/PasswordStrengthCheck.mjs +1 -1
  225. package/dist/esm-dev/packages/web/src/ui/components/molecules/PhoneInput.mjs +3 -4
  226. package/dist/esm-dev/packages/web/src/ui/components/molecules/PhoneInput.mjs.map +1 -1
  227. package/dist/esm-dev/packages/web/src/ui/components/organisms/EmailConfirmationView.mjs +26 -3
  228. package/dist/esm-dev/packages/web/src/ui/components/organisms/EmailConfirmationView.mjs.map +1 -1
  229. package/dist/esm-dev/packages/web/src/ui/components/organisms/IDPConsentManifest.mjs +1 -1
  230. package/dist/esm-dev/packages/web/src/ui/components/organisms/ResendOTPButton.mjs +2 -2
  231. package/dist/esm-dev/packages/web/src/ui/components/organisms/ResendOTPButton.mjs.map +1 -1
  232. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalMemberManagement.mjs +0 -42
  233. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalMemberManagement.mjs.map +1 -1
  234. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalOrgSettings.mjs +0 -40
  235. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalOrgSettings.mjs.map +1 -1
  236. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalSCIM.mjs +0 -43
  237. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalSCIM.mjs.map +1 -1
  238. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalSSO.mjs +0 -36
  239. package/dist/esm-dev/packages/web/src/ui/react/adminPortal/AdminPortalSSO.mjs.map +1 -1
  240. package/dist/esm-dev/packages/web/src/ui/react/b2b/Stytch.mjs.map +1 -1
  241. package/dist/esm-dev/packages/web/src/ui/react/bindings/createB2BComponent.mjs.map +1 -1
  242. package/dist/esm-dev/packages/web/src/utils/crypto.mjs +1 -1
  243. package/dist/types/{StytchB2BClient-Dq-ITB7Q.d.ts → StytchB2BClient-C_7NUKZh.d.ts} +1 -1
  244. package/dist/types/{StytchClient-BV0sT3Ox.d.ts → StytchClient-Ccvk8Nj1.d.ts} +1 -2
  245. package/dist/types/adminPortal/index.d.ts +5 -4
  246. package/dist/types/b2b/index.d.ts +11 -11
  247. package/dist/types/b2b/index.headless.d.ts +4 -4
  248. package/dist/types/{createAuthUrlHandler-Ck5TyB9J.d.ts → createAuthUrlHandler-BJRA2PHG.d.ts} +939 -39
  249. package/dist/types/idpHelpers-aCVwNrDk.d.ts +36 -0
  250. package/dist/types/index.d.ts +8 -8
  251. package/dist/types/index.headless.d.ts +4 -4
  252. package/dist/types/{shadcn-CFz8Asq0.d.ts → shadcn-0e4fkV5Z.d.ts} +6 -6
  253. package/messages/b2b/en.po +6 -3
  254. package/messages/en.po +6 -3
  255. package/package.json +1 -1
  256. package/dist/cjs/StytchSSRProxy-CUOvjF03.js.map +0 -1
  257. package/dist/cjs/idpHelpers-eUP8j58U.js.map +0 -1
  258. package/dist/cjs/shadcn-Bbv2Hk3P.js.map +0 -1
  259. package/dist/cjs-dev/StytchSSRProxy-D0B5PuT0.js.map +0 -1
  260. package/dist/cjs-dev/idpHelpers-DOOVv6dT.js.map +0 -1
  261. package/dist/cjs-dev/shadcn-CdbmlhdF.js.map +0 -1
  262. package/dist/esm/packages/web/src/adminPortal/MuiClassNameSetup.mjs +0 -5
  263. package/dist/esm/packages/web/src/adminPortal/MuiClassNameSetup.mjs.map +0 -1
  264. package/dist/esm/packages/web/src/adminPortal/classNameSeed.mjs +0 -5
  265. package/dist/esm/packages/web/src/adminPortal/classNameSeed.mjs.map +0 -1
  266. package/dist/esm-dev/packages/web/src/adminPortal/MuiClassNameSetup.mjs +0 -5
  267. package/dist/esm-dev/packages/web/src/adminPortal/MuiClassNameSetup.mjs.map +0 -1
  268. package/dist/esm-dev/packages/web/src/adminPortal/classNameSeed.mjs +0 -5
  269. package/dist/esm-dev/packages/web/src/adminPortal/classNameSeed.mjs.map +0 -1
  270. package/dist/types/idpHelpers-hBhPCtAC.d.ts +0 -936
@@ -344,7 +344,7 @@ type CommonLoginConfig = {
344
344
  /**
345
345
  * Internal common config options, excluding platform specific configs like styling and the
346
346
  * products array on web. This is just internal to avoid this being exported out and getting
347
- * confused with the public StytchB2BLoginConfig type
347
+ * confused with the public StytchB2BUIConfig type
348
348
  */
349
349
  type CommonB2BLoginConfig = {
350
350
  authFlowType: AuthFlowType;
@@ -1315,6 +1315,442 @@ type ScopeResult = {
1315
1315
  description: string;
1316
1316
  };
1317
1317
 
1318
+ type OAuthGetURLOptions = {
1319
+ /**
1320
+ * The URL that Stytch redirects to after the OAuth flow is completed for a user that already exists.
1321
+ * This URL should be an endpoint in the backend server that verifies the request by querying Stytch's /oauth/authenticate endpoint and finishes the login.
1322
+ * The URL should be configured as a Login URL in the Stytch Dashboard's Redirect URL page.
1323
+ * If the field is not specified, the default in the Dashboard is used.
1324
+ */
1325
+ login_redirect_url?: string;
1326
+ /**
1327
+ * The URL that Stytch redirects to after the OAuth flow is completed for a user that does not yet exist.
1328
+ * This URL should be an endpoint in the backend server that verifies the request by querying Stytch's /oauth/authenticate endpoint and finishes the login.
1329
+ * The URL should be configured as a Sign Up URL in the Stytch Dashboard's Redirect URL page.
1330
+ * If the field is not specified, the default in the Dashboard is used.
1331
+ */
1332
+ signup_redirect_url?: string;
1333
+ /**
1334
+ * An optional list of custom scopes that you'd like to request from the user in addition to the ones Stytch requests by default.
1335
+ * @example Google Custom Scopes
1336
+ * ['https://www.googleapis.com/auth/gmail.compose', 'https://www.googleapis.com/auth/firebase']
1337
+ *
1338
+ * @example Facebook Custom Scopes
1339
+ * ['public_profile', 'instagram_shopping_tag_products']
1340
+ */
1341
+ custom_scopes?: string[];
1342
+ /**
1343
+ * An optional mapping of provider specific values to pass through to the OAuth provider
1344
+ * @example Google authorization parameters
1345
+ * {"prompt": "select_account", "login_hint": "example@stytch.com"}
1346
+ */
1347
+ provider_params?: Record<string, string>;
1348
+ /**
1349
+ * An optional token to pre-associate an OAuth flow with an existing Stytch User
1350
+ */
1351
+ oauth_attach_token?: string;
1352
+ };
1353
+ type OAuthAuthenticateOptions = SessionDurationOptions;
1354
+ type OAuthAuthenticateResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration> & {
1355
+ /**
1356
+ * The `provider_subject` field is the unique identifier used to identify the user within a given OAuth provider.
1357
+ * Also commonly called the "sub" or "Subject field" in OAuth protocols.
1358
+ */
1359
+ provider_subject: string;
1360
+ /**
1361
+ * The `type` field denotes the OAuth identity provider that the user has authenticated with, e.g. Google, Facebook, GitHub etc.
1362
+ */
1363
+ provider_type: string;
1364
+ /**
1365
+ * If available, the `profile_picture_url` is a url of the user's profile picture set in OAuth identity the provider that the user has authenticated with, e.g. Facebook profile picture.
1366
+ */
1367
+ profile_picture_url: string;
1368
+ /**
1369
+ * If available, the `locale` is the user's locale set in the OAuth identity provider that the user has authenticated with.
1370
+ */
1371
+ locale: string;
1372
+ /**
1373
+ * The `provider_values` object lists relevant identifiers, values, and scopes for a given OAuth provider.
1374
+ * For example this object will include a provider's `access_token` that you can use to access the provider's API for a given user.
1375
+ * Note that these values will vary based on the OAuth provider in question, e.g. `id_token` may not be returned by all providers.
1376
+ */
1377
+ provider_values: {
1378
+ /**
1379
+ * The `access_token` that you may use to access the user's data in the provider's API.
1380
+ */
1381
+ access_token: string;
1382
+ /**
1383
+ * The `id_token` returned by the OAuth provider.
1384
+ * ID Tokens are JWTs that contain structured information about a user.
1385
+ * The exact content of each ID Token varies from provider to provider.
1386
+ * ID Tokens are returned from OAuth providers that conform to the {@link https://openid.net/foundation/ OpenID Connect} specification, which is based on OAuth.
1387
+ */
1388
+ id_token: string;
1389
+ /**
1390
+ * The `refresh_token` that you may use to refresh a user's session within the provider's API.
1391
+ */
1392
+ refresh_token: string;
1393
+ /**
1394
+ * The OAuth scopes included for a given provider.
1395
+ * See each provider's section above to see which scopes are included by default and how to add custom scopes.
1396
+ */
1397
+ scopes: string[];
1398
+ /**
1399
+ * The timestamp when the Session expires.
1400
+ * Values conform to the RFC 3339 standard and are expressed in UTC, e.g. 2021-12-29T12:33:09Z.
1401
+ */
1402
+ expires_at: string;
1403
+ };
1404
+ };
1405
+ type OAuthStartFailureReason = 'User Canceled' | 'Authentication Failed' | 'Invalid Platform';
1406
+ type OAuthStartResponse = void | {
1407
+ success: true;
1408
+ } | {
1409
+ success: false;
1410
+ reason: OAuthStartFailureReason;
1411
+ error?: Error;
1412
+ };
1413
+ /**
1414
+ * Methods for interacting with an individual OAuth provider.
1415
+ */
1416
+ interface IOAuthProvider$1 {
1417
+ /**
1418
+ * Start an OAuth flow by redirecting the browser to one of Stytch's {@link https://stytch.com/docs/api/oauth-google-start oauth start} endpoints.
1419
+ * If enabled, this method will also generate a PKCE code_verifier and store it in localstorage on the device (See the {@link https://stytch.com/docs/oauth#guides_pkce PKCE OAuth guide} for details).
1420
+ * If your application is configured to use a custom subdomain with Stytch, it will be used automatically.
1421
+ * @example
1422
+ * const loginWithGoogle = useCallback(()=> {
1423
+ * stytch.oauth.google.start({
1424
+ * login_redirect_url: 'https://example.com/oauth/callback',
1425
+ * signup_redirect_url: 'https://example.com/oauth/callback',
1426
+ * custom_scopes: ['https://www.googleapis.com/auth/gmail.compose']
1427
+ * })
1428
+ * }, [stytch]);
1429
+ * return (
1430
+ * <Button onClick={loginWithGoogle}> Log in! </Button>
1431
+ * );
1432
+ *
1433
+ * @param options - An {@link OAuthGetURLOptions} object
1434
+ *
1435
+ * @returns OAuthStartResponse - In browsers, the browser is redirected during this function call and will return void. You should not attempt to run any code after calling this function. In React Native applications, an external browser is opened, and this method will return the result of the browser/native authentication attempt.
1436
+ *
1437
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1438
+ */
1439
+ start(options?: OAuthGetURLOptions): Promise<OAuthStartResponse>;
1440
+ }
1441
+ type OAuthAttachResponse = ResponseCommon & {
1442
+ oauth_attach_token: string;
1443
+ };
1444
+ interface IHeadlessOAuthClient<TProjectConfiguration extends StytchProjectConfigurationInput> {
1445
+ google: IOAuthProvider$1;
1446
+ microsoft: IOAuthProvider$1;
1447
+ apple: IOAuthProvider$1;
1448
+ github: IOAuthProvider$1;
1449
+ gitlab: IOAuthProvider$1;
1450
+ facebook: IOAuthProvider$1;
1451
+ discord: IOAuthProvider$1;
1452
+ salesforce: IOAuthProvider$1;
1453
+ slack: IOAuthProvider$1;
1454
+ amazon: IOAuthProvider$1;
1455
+ bitbucket: IOAuthProvider$1;
1456
+ linkedin: IOAuthProvider$1;
1457
+ coinbase: IOAuthProvider$1;
1458
+ twitch: IOAuthProvider$1;
1459
+ twitter: IOAuthProvider$1;
1460
+ tiktok: IOAuthProvider$1;
1461
+ snapchat: IOAuthProvider$1;
1462
+ figma: IOAuthProvider$1;
1463
+ yahoo: IOAuthProvider$1;
1464
+ /**
1465
+ * The authenticate method wraps the {@link https://stytch.com/docs/api/oauth-authenticate authenticate} OAuth API endpoint which validates the OAuth token passed in.
1466
+ *
1467
+ * @example
1468
+ * const token = new URLSearchParams(window.location.search).get('token');
1469
+ * stytch.oauth.authenticate(token, {
1470
+ * session_duration_minutes: 60
1471
+ * }).then(...)
1472
+ *
1473
+ * @param token - The token to authenticate
1474
+ * @param options - {@link OAuthAuthenticateOptions}
1475
+ *
1476
+ * @returns A {@link OAuthAuthenticateResponse} indicating the token has been authenticated.
1477
+ *
1478
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1479
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1480
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1481
+ */
1482
+ authenticate(token: string, options: OAuthAuthenticateOptions): Promise<OAuthAuthenticateResponse<TProjectConfiguration>>;
1483
+ /**
1484
+ * The attach method wraps the {@link https://stytch.com/docs/api/oauth-attach attach} OAuth API endpoint and generates an OAuth Attach Token to pre-associate an OAuth flow with an existing Stytch User.
1485
+ *
1486
+ * You must have an active Stytch session to use this endpoint.
1487
+ * Pass the returned oauth_attach_token to the same provider's OAuth Start endpoint to treat this OAuth flow as a
1488
+ * login for that user instead of a signup
1489
+ *
1490
+ * @param provider - The OAuth provider's name.
1491
+ *
1492
+ * @returns A {@link OAuthAttachResponse} containing a single-use token for connecting the Stytch User selection from this request to the corresponding OAuth Start request.
1493
+ */
1494
+ attach(provider: string): Promise<OAuthAttachResponse>;
1495
+ }
1496
+
1497
+ type UserOnChangeCallback = (user: User | null) => void;
1498
+ type UserUpdateOptions = {
1499
+ /**
1500
+ * The name of the user. If at least one name field is passed, all name fields will be updated.
1501
+ */
1502
+ name?: {
1503
+ /**
1504
+ * The first name of the user. Replaces an existing first name, if it exists.
1505
+ */
1506
+ first_name?: string;
1507
+ /**
1508
+ * The middle name(s) of the user. Replaces an existing middle name, if it exists.
1509
+ */
1510
+ middle_name?: string;
1511
+ /**
1512
+ * The last name of the user. Replaces an existing last name, if it exists.
1513
+ */
1514
+ last_name?: string;
1515
+ };
1516
+ /**
1517
+ * A JSON object containing application-specific metadata.
1518
+ * Use it to store fields that a user can be allowed to edit directly without backend validation - such as `display_theme` or `preferred_locale`.
1519
+ * See our {@link https://stytch.com/docs/api/metadata metadata reference} for complete details.
1520
+ */
1521
+ untrusted_metadata?: Record<string, unknown>;
1522
+ };
1523
+ type UserUpdateResponse = ResponseCommon & {
1524
+ /**
1525
+ * Globally unique UUID that identifies a specific user in the Stytch API.
1526
+ */
1527
+ user_id: string;
1528
+ /**
1529
+ * The updated emails for the user.
1530
+ */
1531
+ emails: User['emails'];
1532
+ /**
1533
+ * The updated phone numbers for the user.
1534
+ */
1535
+ phone_numbers: User['phone_numbers'];
1536
+ /**
1537
+ * The updated crypto wallets for the user.
1538
+ */
1539
+ crypto_wallets: User['crypto_wallets'];
1540
+ };
1541
+ type UserInfo = Cacheable<{
1542
+ /**
1543
+ * The user object, or null if no user exists.
1544
+ */
1545
+ user: User | null;
1546
+ }>;
1547
+ type UserGetConnectedAppsResponse = ResponseCommon & {
1548
+ connected_apps: {
1549
+ connected_app_id: string;
1550
+ name: string;
1551
+ description: string;
1552
+ client_type: string;
1553
+ logo_url?: string;
1554
+ scopes_granted: string;
1555
+ }[];
1556
+ };
1557
+ interface IHeadlessUserClient {
1558
+ /**
1559
+ * The asynchronous method, `user.get`, wraps the {@link https://stytch.com/docs/api/get-user get user} endpoint.
1560
+ * It fetches the user's data and refreshes the cached object if changes are detected.
1561
+ * The Stytch SDK will invoke this method automatically in the background, so you probably won't need to call this method directly.
1562
+ *
1563
+ * @returns A {@link User} object, or null if no user exists.
1564
+ *
1565
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1566
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1567
+ */
1568
+ get(): Promise<User>;
1569
+ /**
1570
+ * Wraps Stytch's {@link https://stytch.com/docs/api/update-user update user} endpoint. Use this method to change the user's name, untrusted metadata, and attributes.
1571
+ *
1572
+ * You can listen for successful user updates anywhere in the codebase with the `stytch.user.onChange()` method or `useStytchUser()` hook if you are using React.
1573
+ *
1574
+ * **Note:** If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
1575
+ *
1576
+ * @example
1577
+ * ```
1578
+ * const updateName = useCallback(() => {
1579
+ * stytchClient.user.update({
1580
+ * name: {
1581
+ * first_name: 'Jane',
1582
+ * last_name: 'Doe',
1583
+ * },
1584
+ * });
1585
+ * }, [stytchClient]);
1586
+ * ```
1587
+ *
1588
+ * @param options - {@link UserUpdateOptions}
1589
+ *
1590
+ * @returns A {@link UserUpdateResponse} indicating the user has been updated.
1591
+ *
1592
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1593
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1594
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1595
+ */
1596
+ update(options: UserUpdateOptions): Promise<UserUpdateResponse>;
1597
+ /**
1598
+ * The `user.getSync` is a synchronous method for getting a user. This is the recommended approach. You can listen to changes with the `onChange` method.
1599
+ * If logged in, this returns the cached user object, otherwise it returns null. This method does not refresh the user's data.
1600
+ *
1601
+ * @returns A {@link User} object, or null if no user exists.
1602
+ *
1603
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1604
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1605
+ */
1606
+ getSync(): User | null;
1607
+ /**
1608
+ * The `user.getInfo` method is similar to `user.getSync`, but it returns an object containing the `user` object and a `fromCache` boolean.
1609
+ * If `fromCache` is true, the user object is from the cache and a state refresh is in progress.
1610
+ */
1611
+ getInfo(): UserInfo;
1612
+ /**
1613
+ * The `user.onChange` method takes in a callback that gets called whenever the user object changes. It returns an unsubscribe method for you to call when you no longer want to listen for such changes.
1614
+ *
1615
+ * In React, the `@stytch/react` library provides the `useStytchUser` hook that implements these methods for you to easily access the user and listen for changes.
1616
+ *
1617
+ * @param callback - Gets called whenever the user object changes. See {@link UserOnChangeCallback}.
1618
+ *
1619
+ * @returns An {@link UnsubscribeFunction} for you to call when you no longer want to listen for changes in the user object.
1620
+ *
1621
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1622
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1623
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1624
+ */
1625
+ onChange(callback: UserOnChangeCallback): UnsubscribeFunction;
1626
+ /**
1627
+ * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-email delete user email} endpoint.
1628
+ * This methods cannot be used to remove all factors from a user. A user must have at least one email, phone number, or OAuth provider associated with their account at all times, otherwise they will not be able to log in again.
1629
+ * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
1630
+ *
1631
+ * @param emailId - ID of the email to be deleted.
1632
+ *
1633
+ * @returns A {@link DeleteResponse} that indicates the user email has been deleted.
1634
+ *
1635
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1636
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1637
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1638
+ */
1639
+ deleteEmail(emailId: string): Promise<DeleteResponse>;
1640
+ /**
1641
+ * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-phone-number delete phone number} endpoint.
1642
+ * This methods cannot be used to remove all factors from a user. A user must have at least one email, phone number, or OAuth provider associated with their account at all times, otherwise they will not be able to log in again.
1643
+ * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
1644
+ *
1645
+ * @param phoneId - ID of the phone number to be deleted.
1646
+ *
1647
+ * @returns A {@link DeleteResponse} that indicates the user phone number has been deleted.
1648
+ *
1649
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1650
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1651
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1652
+ */
1653
+ deletePhoneNumber(phoneId: string): Promise<DeleteResponse>;
1654
+ /**
1655
+ * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-totp delete TOTP} endpoint.
1656
+ * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
1657
+ *
1658
+ * @param totpId - ID of the TOTP registration to be deleted.
1659
+ *
1660
+ * @returns A {@link DeleteResponse} that indicates the user TOTP registration has been deleted.
1661
+ *
1662
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1663
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1664
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1665
+ */
1666
+ deleteTOTP(totpId: string): Promise<DeleteResponse>;
1667
+ /**
1668
+ * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-oauth-registration delete OAuth} endpoint.
1669
+ * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
1670
+ *
1671
+ * @param oauthUserRegistrationId - ID of the OAuth registration to be deleted.
1672
+ *
1673
+ * @returns A {@link DeleteResponse} that indicates the user OAuth registration has been deleted.
1674
+ *
1675
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1676
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1677
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1678
+ */
1679
+ deleteOAuthRegistration(oauthUserRegistrationId: string): Promise<DeleteResponse>;
1680
+ /**
1681
+ * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-crypto-wallet delete crypto wallet} endpoint.
1682
+ * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
1683
+ *
1684
+ * @param cryptoWalletId - ID of the crypto wallet to be deleted.
1685
+ *
1686
+ * @returns A {@link DeleteResponse} that indicates the user crypto wallet has been deleted.
1687
+ *
1688
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1689
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1690
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1691
+ */
1692
+ deleteCryptoWallet(cryptoWalletId: string): Promise<DeleteResponse>;
1693
+ /**
1694
+ * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-webauthn-registration delete WebAuthn} endpoint.
1695
+ * Note: If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk#resources_multi-factor-authentication Multi-factor authentication} section for more details.
1696
+ *
1697
+ * @param webAuthnId - ID of the WebAuthn registration to be deleted.
1698
+ *
1699
+ * @returns A {@link DeleteResponse} that indicates the user WebAuthn registration has been deleted.
1700
+ *
1701
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1702
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1703
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1704
+ */
1705
+ deleteWebauthnRegistration(webAuthnId: string): Promise<DeleteResponse>;
1706
+ /**
1707
+ * Wraps Stytch's {@link https://stytch.com/docs/api/delete-user-biometric-registration delete biometric} endpoint.
1708
+ *
1709
+ * @param biometricRegistrationId - ID of the biometric registration to be deleted.
1710
+ *
1711
+ * @returns A {@link DeleteResponse} that indicates the user Biometric registration has been deleted.
1712
+ *
1713
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
1714
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1715
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1716
+ */
1717
+ deleteBiometricRegistration(biometricRegistrationId: string): Promise<DeleteResponse>;
1718
+ /**
1719
+ * The User Get Connected Apps method wraps the {@link https://stytch.com/docs/api/connected-app-user-get-all User Get Connected Apps} API endpoint.
1720
+ * The `user_id` will be automatically inferred from the logged-in user's session.
1721
+ *
1722
+ * This method retrieves a list of Connected Apps that the user has completed an authorization flow with successfully.
1723
+ * If the user revokes a Connected App's access (e.g. via the `revokeConnectedApp` method) then the Connected App will
1724
+ * no longer be returned in this endpoint's response.
1725
+ *
1726
+ * @returns A {@link UserGetConnectedAppsResponse} containing a list of the user's connected apps
1727
+ *
1728
+ * @throws A `StytchSDKAPIError` when the Stytch API returns an error.
1729
+ * @throws A `SDKAPIUnreachableError` when the SDK cannot contact the Stytch API.
1730
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1731
+ */
1732
+ getConnectedApps(): Promise<UserGetConnectedAppsResponse>;
1733
+ /**
1734
+ * The User Revoke Connected App method wraps the {@link https://stytch.com/docs/api/connected-app-user-revoke User Revoke Connected App} API endpoint.
1735
+ * The `user_id` will be automatically inferred from the logged-in user's session.
1736
+ *
1737
+ * This method revokes a Connected App's access to the user and revokes all active tokens that have been
1738
+ * created on the user's behalf. New tokens cannot be created until the user completes a new authorization
1739
+ * flow with the Connected App.
1740
+ *
1741
+ * Note that after calling this method, the user will be forced to grant consent in subsequent authorization
1742
+ * flows with the Connected App.
1743
+ *
1744
+ * @param connectedAppId - ID of the Connected App to revoke.
1745
+ * @returns A {@link ResponseCommon} indicating that the Connected App's access has been revoked.
1746
+ *
1747
+ * @throws A `StytchSDKAPIError` when the Stytch API returns an error.
1748
+ * @throws A `SDKAPIUnreachableError` when the SDK cannot contact the Stytch API.
1749
+ * @throws A `StytchSDKUsageError` when called with invalid input.
1750
+ */
1751
+ revokedConnectedApp(connectedAppId: string): Promise<ResponseCommon>;
1752
+ }
1753
+
1318
1754
  type MagicLinksBaseOptions = {
1319
1755
  /**
1320
1756
  * The url the user clicks from the sign-up email magic link.
@@ -1769,66 +2205,222 @@ interface IHeadlessCryptoWalletClient<TProjectConfiguration extends StytchProjec
1769
2205
  *
1770
2206
  * For Ethereum crypto wallets, the challenge will follow the Sign In With Ethereum (SIWE) protocol if you have toggled **SIWE Enabled** in the {@link https://stytch.com/dashboard/sdk-configuration SDK Configuration page}. The domain and URI will be inferred automatically, but you may optionally override the URI.
1771
2207
  *
1772
- * Load the challenge data by calling `cryptoWallets.authenticateStart()`.
2208
+ * Load the challenge data by calling `cryptoWallets.authenticateStart()`.
2209
+ *
2210
+ * You'll then pass this challenge to the user's wallet for signing. You can do so by using the crypto provider's built-in API and by including the `crypto_wallet_address` and `challenge` that is provided from `cryptoWallets.authenticateStart()`. See [Ethereum's EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) for an example of Ethereum's provider API.
2211
+ *
2212
+ *
2213
+ * @example
2214
+ * ```
2215
+ * // Request user's address
2216
+ * const [crypto_wallet_address] = await ethereum.request({
2217
+ * method: 'eth_requestAccounts',
2218
+ * });
2219
+ *
2220
+ * // Ask Stytch to generate a challenge for the user
2221
+ * const { challenge } = await stytch.cryptoWallets.authenticateStart({
2222
+ * crypto_wallet_address: crypto_wallet_address,
2223
+ * crypto_wallet_type: 'ethereum',
2224
+ * });
2225
+ * ```
2226
+ * @param options - {@link CryptoWalletAuthenticateStartOptions}
2227
+ *
2228
+ * @returns A {@link CryptoWalletAuthenticateStartResponse} containing a challenge to be passed to the user's wallet for signing.
2229
+ *
2230
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
2231
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
2232
+ * @throws A `StytchSDKUsageError` when called with invalid input.
2233
+ */
2234
+ authenticateStart(options: CryptoWalletAuthenticateStartOptions): Promise<CryptoWalletAuthenticateStartResponse>;
2235
+ /**
2236
+ * Wraps Stytch's {@link https://stytch.com/docs/api/crypto-wallet-authenticate authenticate} crypto wallet endpoint. Call this method after the user signs the challenge to validate the signature.
2237
+ * If this method succeeds and the user is not already logged in, the user will be logged in, granted an active session, and the {@link https://stytch.com/docs/sdks/javascript-sdk/resources/cookies-and-session-management session cookies} will be minted and stored in the browser.
2238
+ * If the user is already logged in, the crypto wallet will be added to the `user.crypto_wallets[]` array and associated with user's existing session as an `authentication_factor`.
2239
+ *
2240
+ * See [Ethereum's EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) for an example of Ethereum's provider API.
2241
+ *
2242
+ * @example
2243
+ * ```
2244
+ * // Ask the user to sign the challenge
2245
+ * const signature = await ethereum.request({
2246
+ * method: 'personal_sign',
2247
+ * params: [challenge, crypto_wallet_address],
2248
+ * });
2249
+ *
2250
+ * // Authenticate the signature
2251
+ * stytch.cryptoWallets.authenticate({
2252
+ * crypto_wallet_address: crypto_wallet_address,
2253
+ * crypto_wallet_type: 'ethereum',
2254
+ * signature: signature,
2255
+ * session_duration_minutes: 60,
2256
+ * });
2257
+ * ```
2258
+ *
2259
+ * @param options - {@link CryptoWalletAuthenticateOptions}
2260
+ *
2261
+ * @returns A {@link CryptoWalletAuthenticateResponse} indicating the user has been authenticated.
2262
+ *
2263
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
2264
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
2265
+ * @throws A `StytchSDKUsageError` when called with invalid input.
2266
+ */
2267
+ authenticate(options: CryptoWalletAuthenticateOptions): Promise<CryptoWalletAuthenticateResponse<TProjectConfiguration>>;
2268
+ }
2269
+
2270
+ type TOTPCreateOptions = {
2271
+ /**
2272
+ * The expiration for the TOTP instance. If the newly created TOTP is not authenticated within this time frame the TOTP will be unusable. Defaults to 60 (1 hour) with a minimum of 5 and a maximum of 1440.
2273
+ */
2274
+ expiration_minutes: number;
2275
+ };
2276
+ type TOTPCreateResponse = ResponseCommon & {
2277
+ /**
2278
+ * Globally unique UUID that identifies a specific TOTP registration in the Stytch API.
2279
+ */
2280
+ totp_id: string;
2281
+ /**
2282
+ * The TOTP secret key shared between the authenticator app and the server used to generate TOTP codes.
2283
+ */
2284
+ secret: string;
2285
+ /**
2286
+ * The QR code image encoded in base64.
2287
+ */
2288
+ qr_code: string;
2289
+ /**
2290
+ * The recovery codes used to authenticate the user without an authenticator app.
2291
+ */
2292
+ recovery_codes: string[];
2293
+ };
2294
+ type TOTPAuthenticateOptions = SessionDurationOptions & {
2295
+ /**
2296
+ * The TOTP code to authenticate. The TOTP code should consist of 6 digits.
2297
+ */
2298
+ totp_code: string;
2299
+ };
2300
+ type TOTPAuthenticateResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration> & {
2301
+ /**
2302
+ * Globally unique UUID that identifies a specific TOTP registration in the Stytch API.
2303
+ */
2304
+ totp_id: string;
2305
+ /**
2306
+ * The device history of the user.
2307
+ */
2308
+ user_device?: SDKDeviceHistory;
2309
+ };
2310
+ type TOTPRecovery = {
2311
+ /**
2312
+ * Globally unique UUID that identifies a specific TOTP registration in the Stytch API.
2313
+ */
2314
+ totp_id: string;
2315
+ /**
2316
+ * Indicates whether or not the TOTP registration has been verified by the user.
2317
+ */
2318
+ verified: boolean;
2319
+ /**
2320
+ * The recovery codes for the TOTP registration.
2321
+ */
2322
+ recovery_codes: string[];
2323
+ };
2324
+ type TOTPRecoveryCodesResponse = ResponseCommon & {
2325
+ /**
2326
+ * Globally unique UUID that identifies a specific user in the Stytch API.
2327
+ */
2328
+ user_id: string;
2329
+ /**
2330
+ * See {@link TOTPRecovery}.
2331
+ */
2332
+ totps: TOTPRecovery;
2333
+ };
2334
+ type TOTPRecoverOptions = SessionDurationOptions & {
2335
+ /**
2336
+ * The recovery code to authenticate.
2337
+ */
2338
+ recovery_code: string;
2339
+ };
2340
+ type TOTPRecoverResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration> & {
2341
+ /**
2342
+ * Globally unique UUID that identifies a specific TOTP registration in the Stytch API.
2343
+ */
2344
+ totp_id: string;
2345
+ /**
2346
+ * The device history of the user.
2347
+ */
2348
+ user_device?: SDKDeviceHistory;
2349
+ };
2350
+ interface IHeadlessTOTPClient<TProjectConfiguration extends StytchProjectConfigurationInput> {
2351
+ /**
2352
+ * Wraps Stytch's {@link https://stytch.com/docs/api/totp-create Create} endpoint. Call this method to create a new TOTP instance for a user. The user can use the authenticator application of their choice to scan the QR code or enter the secret.
2353
+ *
2354
+ * You can listen for successful user updates anywhere in the codebase with the `stytch.user.onChange()` method or `useStytchUser()` hook if you are using React.
2355
+ *
2356
+ * **Note:** If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk/resources/mfa Multi-factor Authentication} section for more details.
2357
+ *
2358
+ * @example
2359
+ * ```
2360
+ * stytchClient.totps.create({ expiration_minutes: 60 });
2361
+ * ```
2362
+ *
2363
+ * @param options - {@link TOTPCreateOptions}
1773
2364
  *
1774
- * You'll then pass this challenge to the user's wallet for signing. You can do so by using the crypto provider's built-in API and by including the `crypto_wallet_address` and `challenge` that is provided from `cryptoWallets.authenticateStart()`. See [Ethereum's EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) for an example of Ethereum's provider API.
2365
+ * @returns A {@link TOTPCreateResponse} indicating a new TOTP instance has been created.
1775
2366
  *
2367
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
2368
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
2369
+ * @throws A `StytchSDKUsageError` when called with invalid input.
2370
+ */
2371
+ create(options: TOTPCreateOptions): Promise<TOTPCreateResponse>;
2372
+ /**
2373
+ * Wraps Stytch's {@link https://stytch.com/docs/api/totp-authenticate Authenticate} endpoint. Call this method to authenticate a TOTP code entered by a user.
1776
2374
  *
1777
2375
  * @example
1778
2376
  * ```
1779
- * // Request user's address
1780
- * const [crypto_wallet_address] = await ethereum.request({
1781
- * method: 'eth_requestAccounts',
1782
- * });
1783
- *
1784
- * // Ask Stytch to generate a challenge for the user
1785
- * const { challenge } = await stytch.cryptoWallets.authenticateStart({
1786
- * crypto_wallet_address: crypto_wallet_address,
1787
- * crypto_wallet_type: 'ethereum',
1788
- * });
2377
+ * stytch.totps.authenticate({ totp_code: '123456', session_duration_minutes: 60 });
1789
2378
  * ```
1790
- * @param options - {@link CryptoWalletAuthenticateStartOptions}
1791
2379
  *
1792
- * @returns A {@link CryptoWalletAuthenticateStartResponse} containing a challenge to be passed to the user's wallet for signing.
2380
+ * @param options - {@link TOTPAuthenticateOptions}
2381
+ *
2382
+ * @returns A {@link TOTPAuthenticateResponse} indicating the TOTP code has been authenticated.
1793
2383
  *
1794
2384
  * @throws A `StytchAPIError` when the Stytch API returns an error.
1795
2385
  * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1796
2386
  * @throws A `StytchSDKUsageError` when called with invalid input.
1797
2387
  */
1798
- authenticateStart(options: CryptoWalletAuthenticateStartOptions): Promise<CryptoWalletAuthenticateStartResponse>;
2388
+ authenticate(options: TOTPAuthenticateOptions): Promise<TOTPAuthenticateResponse<TProjectConfiguration>>;
1799
2389
  /**
1800
- * Wraps Stytch's {@link https://stytch.com/docs/api/crypto-wallet-authenticate authenticate} crypto wallet endpoint. Call this method after the user signs the challenge to validate the signature.
1801
- * If this method succeeds and the user is not already logged in, the user will be logged in, granted an active session, and the {@link https://stytch.com/docs/sdks/javascript-sdk/resources/cookies-and-session-management session cookies} will be minted and stored in the browser.
1802
- * If the user is already logged in, the crypto wallet will be added to the `user.crypto_wallets[]` array and associated with user's existing session as an `authentication_factor`.
2390
+ * Wraps Stytch's {@link https://stytch.com/docs/api/totp-get-recovery-codes Recovery Codes} endpoint. Call this method to retrieve the recovery codes for a TOTP instance tied to a user.
1803
2391
  *
1804
- * See [Ethereum's EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) for an example of Ethereum's provider API.
2392
+ * You can listen for successful user updates anywhere in the codebase with the `stytch.user.onChange()` method or `useStytchUser()` hook if you are using React.
2393
+ *
2394
+ * **Note:** If a user has enrolled another MFA method, this method will require MFA. See the {@link https://stytch.com/docs/sdks/javascript-sdk/resources/mfa Multi-factor authentication} section for more details.
1805
2395
  *
1806
2396
  * @example
1807
2397
  * ```
1808
- * // Ask the user to sign the challenge
1809
- * const signature = await ethereum.request({
1810
- * method: 'personal_sign',
1811
- * params: [challenge, crypto_wallet_address],
1812
- * });
2398
+ * stytchClient.totps.recoveryCodes();
2399
+ * ```
1813
2400
  *
1814
- * // Authenticate the signature
1815
- * stytch.cryptoWallets.authenticate({
1816
- * crypto_wallet_address: crypto_wallet_address,
1817
- * crypto_wallet_type: 'ethereum',
1818
- * signature: signature,
1819
- * session_duration_minutes: 60,
1820
- * });
2401
+ * @returns A {@link TOTPRecoveryCodesResponse} containing the TOTP recovery codes tied to the user.
2402
+ *
2403
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
2404
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
2405
+ */
2406
+ recoveryCodes(): Promise<TOTPRecoveryCodesResponse>;
2407
+ /**
2408
+ * Wraps Stytch's {@link https://stytch.com/docs/api/totp-recover Recover} endpoint. Call this method to authenticate a recovery code for a TOTP instance.
2409
+ *
2410
+ * @example
2411
+ * ```
2412
+ * stytch.totps.recover({ recovery_code: 'xxxx-xxxx-xxxx', session_duration_minutes: 60 });
1821
2413
  * ```
1822
2414
  *
1823
- * @param options - {@link CryptoWalletAuthenticateOptions}
2415
+ * @param options - {@link TOTPRecoverOptions}
1824
2416
  *
1825
- * @returns A {@link CryptoWalletAuthenticateResponse} indicating the user has been authenticated.
2417
+ * @returns A {@link TOTPRecoverResponse} indicating the TOTP recovery code has been authenticated.
1826
2418
  *
1827
2419
  * @throws A `StytchAPIError` when the Stytch API returns an error.
1828
2420
  * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
1829
2421
  * @throws A `StytchSDKUsageError` when called with invalid input.
1830
2422
  */
1831
- authenticate(options: CryptoWalletAuthenticateOptions): Promise<CryptoWalletAuthenticateResponse<TProjectConfiguration>>;
2423
+ recover(options: TOTPRecoverOptions): Promise<TOTPRecoverResponse<TProjectConfiguration>>;
1832
2424
  }
1833
2425
 
1834
2426
  type WebAuthnRegisterStartOptions = SessionDurationOptions & {
@@ -6944,9 +7536,9 @@ interface IHeadlessB2BRecoveryCodesClient<TProjectConfiguration extends StytchPr
6944
7536
  get(): Promise<RecoveryCodeGetResponse>;
6945
7537
  }
6946
7538
 
6947
- type Actions<Actions extends string> = Record<Actions, boolean>;
7539
+ type Actions$1<Actions extends string> = Record<Actions, boolean>;
6948
7540
  type PermissionsMap<Permissions extends Record<string, string>> = {
6949
- [ResourceID in keyof Permissions]: Actions<Permissions[ResourceID]>;
7541
+ [ResourceID in keyof Permissions]: Actions$1<Permissions[ResourceID]>;
6950
7542
  };
6951
7543
  interface IHeadlessB2BRBACClient {
6952
7544
  /**
@@ -8388,6 +8980,314 @@ type RNUIProductConfig = {
8388
8980
  passwordOptions: RNUIPasswordOptions;
8389
8981
  };
8390
8982
 
8983
+ type BiometricsRegisterOptions = {
8984
+ /**
8985
+ * The text rendered when raising the biometric prompt.
8986
+ */
8987
+ prompt: string;
8988
+ /**
8989
+ * The text rendered on the cancel button when raising the biometric prompt. Defaults to "Cancel".
8990
+ */
8991
+ cancelButtonText?: string;
8992
+ /**
8993
+ * On Android devices, allow the private key data to be stored as cleartext in the application sandbox.
8994
+ */
8995
+ allowFallbackToCleartext?: boolean;
8996
+ /**
8997
+ * Allows user to enter their device credentials as a fallback for failed biometric authentication.
8998
+ */
8999
+ allowDeviceCredentials?: boolean;
9000
+ /**
9001
+ * Specify the desired session duration, in minutes
9002
+ */
9003
+ sessionDurationMinutes?: number;
9004
+ };
9005
+ type BiometricsRegisterStartResponse = ResponseCommon & {
9006
+ /**
9007
+ * A unique ID that identifies a specific biometric registration.
9008
+ */
9009
+ biometric_registration_id: string;
9010
+ /**
9011
+ * The challenge to be signed by the device.
9012
+ */
9013
+ challenge: string;
9014
+ };
9015
+ type BiometricsRegisterCompleteResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration> & {
9016
+ /**
9017
+ * A unique ID that identifies a specific biometric registration.
9018
+ */
9019
+ biometric_registration_id: string;
9020
+ };
9021
+ type BiometricsAuthenticateOptions = {
9022
+ /**
9023
+ * The text rendered when raising the biometric prompt.
9024
+ */
9025
+ prompt: string;
9026
+ /**
9027
+ * Set the session lifetime to be this many minutes from now.
9028
+ * This value must be a minimum of 5 and may not exceed the `maximum session duration minutes` value set in the {@link https://stytch.com/dashboard/sdk-configuration SDK Configuration} page of the Stytch dashboard.
9029
+ * A successful authentication will continue to extend the session this many minutes.
9030
+ */
9031
+ sessionDurationMinutes: number;
9032
+ /**
9033
+ * The text rendered on the cancel button when raising the biometric prompt. Defaults to "Cancel".
9034
+ */
9035
+ cancelButtonText?: string;
9036
+ /**
9037
+ * Allows user to enter their device credentials as a fallback for failed biometric authentication.
9038
+ */
9039
+ allowDeviceCredentials?: boolean;
9040
+ /**
9041
+ * The text rendered on the fallback prompt after biometrics has failed and allowDeviceCredentials is true. Defaults to "Enter Passcode". This only appears on iOS devices.
9042
+ */
9043
+ fallbackTitle?: string;
9044
+ };
9045
+ type BiometricsAuthenticateStartResponse = ResponseCommon & {
9046
+ /**
9047
+ * The challenge to be signed by the device.
9048
+ */
9049
+ challenge: string;
9050
+ /**
9051
+ * A unique ID that identifies a specific biometric registration.
9052
+ */
9053
+ biometric_registration_id: string;
9054
+ };
9055
+ type BiometricsAuthenticateCompleteResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration> & {
9056
+ /**
9057
+ * A unique ID that identifies a specific biometric registration.
9058
+ */
9059
+ biometric_registration_id: string;
9060
+ /**
9061
+ * The device history of the user.
9062
+ */
9063
+ user_device?: SDKDeviceHistory;
9064
+ };
9065
+ type BiometricsDeleteResponse = ResponseCommon & {
9066
+ /**
9067
+ * A unique ID that identifies a specific biometric registration.
9068
+ */
9069
+ biometric_registration_id: string;
9070
+ /**
9071
+ * Globally unique UUID that identifies a specific user in the Stytch API.
9072
+ */
9073
+ user_id: string;
9074
+ };
9075
+ /**
9076
+ * Type of biometric authentication available on the device. iOS supports 'TouchID' or 'FaceID', and Android supports 'Biometrics'.
9077
+ */
9078
+ type BiometryType = 'TouchID' | 'FaceID' | 'Biometrics';
9079
+ type BiometricsGetSensorResponse = {
9080
+ /**
9081
+ * Type of biometric authentication available on the device.
9082
+ */
9083
+ biometryType: BiometryType;
9084
+ };
9085
+ interface IHeadlessBiometricsClient<TProjectConfiguration extends StytchProjectConfigurationInput> {
9086
+ /**
9087
+ * Indicates if there is an existing biometric registration on the device.
9088
+ *
9089
+ * @returns true if there is a biometric registration on the device, otherwise false.
9090
+ */
9091
+ isRegistrationAvailable: () => Promise<boolean>;
9092
+ /**
9093
+ * Indicates whether or not the Keystore is available on the device.
9094
+ *
9095
+ * @returns true if the keystore is available, otherwise false.
9096
+ */
9097
+ isKeystoreAvailable: () => Promise<boolean>;
9098
+ /**
9099
+ * Adds a biometric registration for the current user.
9100
+ *
9101
+ * @param options - {@link BiometricsRegisterOptions}
9102
+ *
9103
+ * @returns A {@link BiometricsRegisterCompleteResponse} indicating the biometric registration has been successful.
9104
+ *
9105
+ * @throws A `StytchSDKError` when the Stytch React Native module returns an error.
9106
+ */
9107
+ register: (options: BiometricsRegisterOptions) => Promise<BiometricsRegisterCompleteResponse<TProjectConfiguration>>;
9108
+ /**
9109
+ * Updates the session by using a biometric registration.
9110
+ *
9111
+ * @param options - {@link BiometricsAuthenticateOptions}
9112
+ *
9113
+ * @returns A {@link BiometricsRegisterCompleteResponse} indicating the authentication has been successful.
9114
+ *
9115
+ * @throws A `StytchSDKError` when the Stytch React Native module returns an error.
9116
+ */
9117
+ authenticate: (options: BiometricsAuthenticateOptions) => Promise<BiometricsAuthenticateCompleteResponse<TProjectConfiguration>>;
9118
+ /**
9119
+ * Attempts to remove the biometric registration from the user and device.
9120
+ *
9121
+ * @returns A {@link BiometricsDeleteResponse} indicating whether the deletion has been successful.
9122
+ */
9123
+ removeRegistration: () => Promise<BiometricsDeleteResponse>;
9124
+ /**
9125
+ * Checks the type of biometrics that is available on the device.
9126
+ *
9127
+ * @param allowDeviceCredentials Allows user to enter their device credentials as a fallback for failed biometric authentication.
9128
+ *
9129
+ * @returns A {@link BiometricsGetSensorResponse} containing a {@link BiometryType}.
9130
+ *
9131
+ * @throws A `StytchSDKError` when the Stytch React Native module returns an error.
9132
+ */
9133
+ getSensor: (allowDeviceCredentials?: boolean) => Promise<BiometricsGetSensorResponse>;
9134
+ /**
9135
+ * Gets the current biometric_registration_id saved on device, if it exists
9136
+ */
9137
+ getBiometricRegistrationId: () => Promise<string | undefined>;
9138
+ /**
9139
+ * Deletes the local biometric keys from the device, if any
9140
+ *
9141
+ * @returns true if keys were found and deleted from the device, false if no keys were present
9142
+ */
9143
+ deleteDeviceRegistration: () => Promise<boolean>;
9144
+ }
9145
+
9146
+ type ImpersonationAuthenticateOptions = {
9147
+ /**
9148
+ * The impersonation token used to authenticate a user
9149
+ */
9150
+ impersonation_token: string;
9151
+ };
9152
+ type ImpersonationAuthenticateResponse<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> = AuthenticateResponse<TProjectConfiguration>;
9153
+ interface IHeadlessImpersonationClient<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> {
9154
+ /**
9155
+ * Wraps Stytch's {@link https://stytch.com/docs/api/authenticate-impersonation-token Authenticate Impersonation Token} endpoint.
9156
+ * The authenticate method wraps the consumer impersonation authenticate endpoint.
9157
+ *
9158
+ * @param data - {@link ImpersonationAuthenticateOptions}
9159
+ * @returns A {@link ImpersonationAuthenticateResponse} indicating that the token has been authenticated
9160
+ *
9161
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
9162
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
9163
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid token, invalid options, etc.)
9164
+ */
9165
+ authenticate(data: ImpersonationAuthenticateOptions): Promise<ImpersonationAuthenticateResponse<TProjectConfiguration>>;
9166
+ }
9167
+
9168
+ type Actions<Actions extends string> = Record<Actions, boolean>;
9169
+ type ConsumerPermissionsMap<Permissions extends Record<string, string>> = {
9170
+ [ResourceID in keyof Permissions]: Actions<Permissions[ResourceID]>;
9171
+ };
9172
+ interface IHeadlessRBACClient {
9173
+ /**
9174
+ * The `isAuthorizedSync` method determines whether the logged-in user is allowed to perform the specified action on the specified resource.
9175
+ * Returns `true` if the user can perform the action, `false` otherwise.
9176
+ *
9177
+ * If the user is not logged in, or the RBAC policy has not been loaded, this method will always return false.
9178
+ * If the resource or action provided are not valid for the configured RBAC policy, this method will return false.
9179
+ * @example
9180
+ * const isAuthorized = stytch.rbac.isAuthorizedSync<Permissions>('document', 'image');
9181
+ */
9182
+ isAuthorizedSync(resourceId: string, action: string): boolean;
9183
+ /**
9184
+ * The `isAuthorized` method determines whether the logged-in user is allowed to perform the specified action on the specified resource.
9185
+ * It will return a Promise that resolves after the RBAC policy has been loaded. Returns `true` if the user can perform the action, `false` otherwise.
9186
+ *
9187
+ * If the user is not logged in, this method will always return false.
9188
+ * If the resource or action provided are not valid for the configured RBAC policy, this method will return false.
9189
+ *
9190
+ * @example
9191
+ * const isAuthorized = await stytch.rbac.isAuthorizedSync<Permissions>('document', 'image');
9192
+ */
9193
+ isAuthorized(resourceId: string, action: string): Promise<boolean>;
9194
+ /**
9195
+ * The `allPermissions` method returns the complete list of permissions assigned to the currently logged-in user. If the user is not logged in, all values will be `false`.
9196
+ *
9197
+ * As a best practice, authorization checks for sensitive actions should also occur on the backend.
9198
+ *
9199
+ * @example
9200
+ * type Permissions = {
9201
+ * document: 'create' | 'read' | 'write
9202
+ * image: 'create' | 'read'
9203
+ * }
9204
+ * const permissions = await stytch.rbac.allPermissions<Permissions>();
9205
+ * console.log(permissions.document.create) // true
9206
+ * console.log(permissions.image.create) // false
9207
+ * @returns A {@link ConsumerPermissionsMap} for the active member
9208
+ */
9209
+ allPermissions<Permissions extends Record<string, string>>(): Promise<ConsumerPermissionsMap<Permissions>>;
9210
+ }
9211
+
9212
+ type OAuthAuthorizeStartOptions = {
9213
+ client_id: string;
9214
+ redirect_uri: string;
9215
+ response_type: string;
9216
+ scopes: string[];
9217
+ prompt?: string;
9218
+ };
9219
+ type OAuthAuthorizeStartResponse = ResponseCommon & {
9220
+ user_id: string;
9221
+ user: User;
9222
+ client: ConnectedAppPublic;
9223
+ consent_required: boolean;
9224
+ scope_results: ScopeResult[];
9225
+ };
9226
+ type OAuthAuthorizeSubmitOptions = {
9227
+ client_id: string;
9228
+ redirect_uri: string;
9229
+ response_type: string;
9230
+ scopes: string[];
9231
+ state?: string;
9232
+ nonce?: string;
9233
+ code_challenge?: string;
9234
+ consent_granted: boolean;
9235
+ prompt?: string;
9236
+ resource?: string[];
9237
+ };
9238
+ type OAuthAuthorizeSubmitResponse = ResponseCommon & {
9239
+ redirect_uri: string;
9240
+ authorization_code?: string;
9241
+ };
9242
+ type OAuthLogoutStartOptions = {
9243
+ client_id: string;
9244
+ post_logout_redirect_uri: string;
9245
+ state?: string;
9246
+ id_token_hint?: string;
9247
+ };
9248
+ type OAuthLogoutStartResponse = ResponseCommon & {
9249
+ redirect_uri: string;
9250
+ consent_required: boolean;
9251
+ };
9252
+ interface IHeadlessIDPClient {
9253
+ /**
9254
+ * Initiates a request for authorization of a Connected App to access a User's account.
9255
+ *
9256
+ * Call this endpoint using the query parameters from an OAuth Authorization request. This endpoint validates various fields (scope, client_id, redirect_uri, prompt, etc...) are correct and returns relevant information for rendering an OAuth Consent Screen.
9257
+ *
9258
+ * @param data - The options for the OAuth authorization flow.
9259
+ * @returns The response from the OAuth authorization flow.
9260
+ * @example
9261
+ * const response = await stytch.idp.oauthAuthorizeStart({
9262
+ * client_id: 'client_123',
9263
+ */
9264
+ oauthAuthorizeStart(data: OAuthAuthorizeStartOptions): Promise<OAuthAuthorizeStartResponse>;
9265
+ /**
9266
+ * Completes a request for authorization of a Connected App to access a Member's account.
9267
+ *
9268
+ * Call this endpoint using the query parameters from an OAuth Authorization request, after previously validating those parameters using the Preflight Check API. Note that this endpoint takes in a few additional parameters the preflight check does not- state, nonce, and code_challenge.
9269
+ *
9270
+ * If the authorization was successful, the redirect_uri will contain a valid authorization_code embedded as a query parameter. If the authorization was unsuccessful, the redirect_uri will contain an OAuth2.1 error_code. In both cases, redirect the Member to the location for the response to be consumed by the Connected App.
9271
+ *
9272
+ * Exactly one of the following must be provided to identify the Member granting authorization:
9273
+ * organization_id + member_id
9274
+ * session_token
9275
+ * session_jwt
9276
+ *
9277
+ * If a session_token or session_jwt is passed, the OAuth Authorization will be linked to the Member's session for tracking purposes. One of these fields must be used if the Connected App intends to complete the Exchange Access Token flow.
9278
+ *
9279
+ * @param data - The options for the OAuth authorization flow.
9280
+ * @returns The response from the OAuth authorization flow.
9281
+ * @example
9282
+ * const response = await stytch.idp.oauthAuthorizeSubmit({
9283
+ * client_id: 'client_123',
9284
+ * redirect_uri: 'https://example.com/callback',
9285
+ * scope: 'openid email profile',
9286
+ * });
9287
+ */
9288
+ oauthAuthorizeSubmit(data: OAuthAuthorizeSubmitOptions): Promise<OAuthAuthorizeSubmitResponse>;
9289
+ }
9290
+
8391
9291
  type TokenType = 'magic_links' | 'oauth' | 'reset_password';
8392
9292
 
8393
9293
  type DeepReadonly<T> = {
@@ -8455,5 +9355,5 @@ href?: string) => Promise<{
8455
9355
  token: string;
8456
9356
  } | null>;
8457
9357
 
8458
- export { BiometricsUnavailableError as b$, StytchEventType as bD, RNUIProducts as bG, SDKAPIUnreachableError as bM, StytchSDKUsageError as bN, StytchSDKSchemaError as bO, StytchSDKAPIError as bP, UNRECOVERABLE_ERROR_TYPES as bQ, StytchError as bR, StytchAPIUnreachableError as bS, StytchAPISchemaError as bT, StytchAPIError as bU, StytchSDKError as bW, NoCurrentSessionError as bY, InternalError as bZ, NoBiometricsRegistrationError as b_, OAuthProviders as bo, Wallets as bp, OneTapPositions as bq, OTPMethods as bu, KeyInvalidatedError as c0, KeystoreUnavailableError as c1, NoBiometricsEnrolledError as c2, BiometricsAlreadyEnrolledError as c3, UserCancellationError as c4, UserLockedOutError as c5, DeviceCredentialsNotAllowedError as c6, MissingGoogleClientIDError as c7, MissingPKCEError as c8, MissingAuthorizationCredentialIDTokenError as c9, InvalidAuthorizationCredentialError as ca, NoCredentialsPresentError as cb, MissingPublicKeyError as cc, ChallengeSigningFailedError as cd, SDKNotConfiguredError as ce, FailedCodeChallengeError as cf, PasskeysUnsupportedError as cg, FailedToDecryptDataError as ch, BiometricsFailedError as ci, InvalidStartUrlError as cj, InvalidRedirectSchemeError as ck, MissingUrlError as cl, InvalidCredentialTypeError as cm, MissingAttestationObjectError as cn, JSONDataNotConvertibleToStringError as co, RandomNumberGenerationFailed as cp, PasskeysInvalidEncoding as cq, PasskeysMisconfigured as cr, SignInWithAppleMisconfigured as cs, MissingCipherIv as ct, InvalidPrivateKeyLength as cu, BiometricRegistrationIdIsNullOrBlank as cv, DFPNotConfigured as cw, IDPOAuthFlowMissingParamError as cx, errorToStytchError as cy, AuthFlowType as eA, RedirectURLType as eB, B2BOAuthProviders as eC, B2BMFAProducts as eL };
8459
- export type { locale as $, AuthenticateByUrl as A, B2BOAuthAuthorizeStartOptions as B, ConsumerState as C, IHeadlessB2BRBACClient as D, IHeadlessB2BSCIMClient as E, IHeadlessB2BImpersonationClient as F, B2BState as G, Member as H, INetworkClient as I, Organization as J, PermissionsMap as K, StytchProjectConfiguration as L, MemberSession as M, StringsOptions as N, OneTapRenderResult as O, ParseAuthenticateUrl as P, Callbacks as Q, ResponseCommon as R, StytchProjectConfigurationInput as S, TokenType as T, User as U, AuthenticateResponse as V, WebAuthnRegistration as W, DeleteResponse as X, UpdateResponse as Y, SessionDurationOptions as Z, UnsubscribeFunction as _, IHeadlessMagicLinksClient as a, CryptoWalletAuthenticateOptions as a$, MemberEmailUpdateDeliveryMethod as a0, DeviceAttributeDetails as a1, SDKDeviceHistory as a2, ConnectedAppPublic as a3, ScopeResult as a4, EmailFactor as a5, PhoneNumberFactor as a6, GoogleOAuthFactor as a7, MicrosoftOAuthFactor as a8, AppleOAuthFactor as a9, SessionAuthenticateResponse as aA, SessionAccessTokenExchangeOptions as aB, SessionAccessTokenExchangeResponse as aC, SessionRevokeOptions as aD, SessionRevokeResponse as aE, SessionAttestOptions as aF, SessionAttestResponse as aG, SessionOnChangeCallback as aH, SessionTokens$1 as aI, SessionTokensUpdate as aJ, SessionInfo as aK, MagicLinksLoginOrCreateOptions as aL, MagicLinksSendOptions as aM, MagicLinksLoginOrCreateResponse as aN, MagicLinksSendResponse as aO, MagicLinksAuthenticateOptions as aP, MagicLinksAuthenticateResponse as aQ, OTPCodeOptions as aR, OTPCodeSMSOptions as aS, OTPCodeEmailOptions as aT, OTPAuthenticateOptions as aU, OTPsLoginOrCreateResponse as aV, OTPsSendResponse as aW, OTPsAuthenticateResponse as aX, SIWEParams as aY, CryptoWalletAuthenticateStartOptions as aZ, CryptoWalletAuthenticateStartResponse as a_, GithubOAuthFactor as aa, GitLabOAuthFactor as ab, FacebookOAuthFactor as ac, DiscordOAuthFactor as ad, SalesforceOAuthFactor as ae, SlackOAuthFactor as af, AmazonOAuthFactor as ag, BitbucketOAuthFactor as ah, LinkedInOAuthFactor as ai, CoinbaseOAuthFactor as aj, TwitchOAuthFactor as ak, TwitterOAuthFactor as al, TikTokOAuthFactor as am, FigmaOAuthFactor as an, SnapchatOAuthFactor as ao, YahooOAuthFactor as ap, WebAuthnFactor as aq, AuthenticatorAppFactor as ar, RecoveryCodeFactor as as, CryptoWalletFactor as at, PasswordFactor as au, BiometricFactor as av, AccessTokenExchangeFactor as aw, AuthenticationFactor as ax, Session as ay, SessionAuthenticateOptions as az, IHeadlessSessionClient as b, CryptoWalletAuthenticateResponse as b0, WebAuthnRegisterStartOptions as b1, WebAuthnRegisterStartResponse as b2, WebAuthnRegisterResponse as b3, WebAuthnAuthenticateStartOptions as b4, WebAuthnAuthenticateStartResponse as b5, WebAuthnAuthenticateResponse as b6, WebAuthnUpdateOptions as b7, WebAuthnUpdateResponse as b8, PasswordCreateOptions as b9, IDPConsentItem as bA, IDPConsentSection as bB, IDPConsentScreenManifest as bC, StytchEvent as bE, OneTapStyleConfig as bF, RNUIEmailMagicLinksOptions as bH, RNUIOAuthOptions as bI, RNUIOTPOptions as bJ, RNUIPasswordOptions as bK, RNUIProductConfig as bL, StytchSDKErrorOptions as bV, StytchSDKUIError as bX, PasswordCreateResponse as ba, PasswordAuthenticateOptions as bb, PasswordAuthenticateResponse as bc, PasswordResetByEmailStartOptions as bd, PasswordResetByEmailStartResponse as be, PasswordResetByEmailOptions as bf, PasswordResetByEmailResponse as bg, PasswordResetByExistingPasswordOptions as bh, PasswordResetByExistingPasswordResponse as bi, PasswordResetBySessionOptions as bj, PasswordResetBySessionResponse as bk, PasswordStrengthCheckOptions as bl, PasswordStrengthCheckResponse as bm, EmailMagicLinksOptions as bn, ProviderOptions as br, ProvidersOptions as bs, OAuthOptions as bt, OtpOptions as bv, PasswordOptions as bw, SessionOptions as bx, PasskeyOptions as by, StyleConfig as bz, IHeadlessOTPsClient as c, B2BSessionRevokeForMemberOptions as c$, B2BPhoneNumberFactor as cA, B2BGoogleOAuthFactor as cB, B2BMicrosoftOAuthFactor as cC, B2BHubSpotOAuthFactor as cD, B2BSlackOAuthFactor as cE, B2BGitHubOAuthFactor as cF, B2BAuthenticationFactor as cG, MemberResponseCommon as cH, OAuthRegistration as cI, MemberRole as cJ, RetiredEmailAddress as cK, B2BAuthenticateResponse as cL, B2BAuthenticateResponseWithMFA as cM, B2BAllowedAuthMethods as cN, B2BAllowedMFAMethods as cO, SSOActiveConnection as cP, DiscoveredOrganization as cQ, MfaRequired as cR, PrimaryRequired as cS, MemberOptions as cT, X509Certificate as cU, EncryptionPrivateKey as cV, SAMLConnection as cW, OIDCConnection as cX, ExternalConnection as cY, B2BSessionAuthenticateResponse as cZ, B2BSessionRevokeOptions as c_, B2BEmailFactor as cz, IHeadlessCryptoWalletClient as d, OrganizationInfo as d$, B2BSessionRevokeForMemberResponse as d0, B2BSessionOnChangeCallback as d1, B2BSessionExchangeOptions as d2, B2BSessionExchangeResponse as d3, B2BSessionAccessTokenExchangeOptions as d4, B2BSessionAccessTokenExchangeResponse as d5, MemberSessionInfo as d6, B2BSessionAttestOptions as d7, B2BSessionAttestResponse as d8, B2BMagicLinksInviteOptions as d9, B2BOrganizationsDeleteResponse as dA, B2BOrganizationsGetBySlugOptions as dB, OrganizationBySlugMatch as dC, B2BOrganizationsGetBySlugResponse as dD, B2BOrganizationsGetConnectedAppsResponse as dE, B2BOrganizationsGetConnectedAppOptions as dF, B2BOrganizationsGetConnectedAppResponse as dG, B2BOrganizationsMembersCreateOptions as dH, B2BOrganizationsMembersCreateResponse as dI, B2BOrganizationsMembersUpdateOptions as dJ, B2BOrganizationsMembersUpdateResponse as dK, SearchQueryOperand as dL, B2BOrganizationsMembersSearchOptions as dM, B2BOrganizationsMembersSearchResponse as dN, B2BOrganizationsMembersDeleteResponse as dO, B2BOrganizationsMembersReactivateResponse as dP, B2BOrganizationsMemberDeletePasswordResponse as dQ, B2BOrganizationsMemberDeleteMFAPhoneNumberResponse as dR, B2BOrganizationsMemberDeleteMFATOTPResponse as dS, B2BOrganizationsMemberUnlinkRetiredEmailOptions as dT, B2BOrganizationsMemberUnlinkRetiredEmailResponse as dU, B2BOrganizationsMemberStartEmailUpdateOptions as dV, B2BOrganizationsMemberStartEmailUpdateResponse as dW, B2BOrganizationsMemberGetConnectedAppsOptions as dX, B2BOrganizationsMemberGetConnectedAppsResponse as dY, B2BOrganizationsMemberRevokeConnectedAppOptions as dZ, B2BOrganizationsMemberRevokeConnectedAppResponse as d_, B2BMagicLinksInviteResponse as da, B2BMagicLinkLoginOrSignupOptions as db, B2BMagicLinkLoginOrSignupResponse as dc, B2BMagicLinksAuthenticateOptions as dd, B2BMagicLinksAuthenticateResponse as de, B2BMagicLinksEmailDiscoverySendOptions as df, B2BMagicLinksEmailDiscoverySendResponse as dg, B2BMagicLinksDiscoveryAuthenticateResponse as dh, B2BMagicLinksDiscoveryAuthenticateOptions as di, B2BMemberOnChangeCallback as dj, B2BMemberUpdateOptions as dk, B2BMemberUnlinkRetiredEmailRequest as dl, B2BMemberStartEmailUpdateRequest as dm, B2BMemberStartEmailUpdateResponse as dn, B2BMemberGetConnectedAppsResponse as dp, B2BMemberRevokeConnectedAppOptions as dq, B2BMemberRevokeConnectedAppResponse as dr, B2BMemberUpdateResponse as ds, B2BMemberDeleteMFAPhoneNumberResponse as dt, B2BMemberDeletePasswordResponse as du, B2BMemberDeleteMFATOTPResponse as dv, B2BMemberUnlinkRetiredEmailResponse as dw, MemberInfo as dx, B2BOrganizationsUpdateOptions as dy, B2BOrganizationsUpdateResponse as dz, IHeadlessWebAuthnClient as e, B2BPasswordResetBySessionResponse as e$, OAuthStartOptions as e0, B2BOAuthDiscoveryStartOptions as e1, B2BOAuthAuthenticateOptions as e2, OAuthDiscoveryAuthenticateOptions as e3, B2BOAuthDiscoveryAuthenticateResponse as e4, B2BOAuthAuthenticateResponse as e5, SSOStartOptions as e6, SSOAuthenticateOptions as e7, SSOAuthenticateResponse as e8, B2BSSOSAMLCreateConnectionOptions as e9, B2BEmailMagicLinksOptions as eD, B2BSSOOptions as eE, B2BOAuthOptions as eF, B2BOAuthProviderConfig as eG, B2BPasswordOptions as eH, B2BEmailOTPOptions as eI, B2BSMSOTPOptions as eJ, DirectLoginForSingleMembershipConfig as eK, B2BPasswordAuthenticateOptions as eM, B2BPasswordDiscoveryAuthenticateResponse as eN, B2BPasswordDiscoveryAuthenticateOptions as eO, B2BPasswordAuthenticateResponse as eP, B2BPasswordResetByEmailStartOptions as eQ, B2BPasswordResetByEmailStartResponse as eR, B2BPasswordDiscoveryResetByEmailStartOptions as eS, B2BPasswordDiscoveryResetByEmailStartResponse as eT, B2BPasswordDiscoveryResetByEmailOptions as eU, B2BPasswordDiscoveryResetByEmailResponse as eV, B2BPasswordResetByEmailOptions as eW, B2BPasswordResetByEmailResponse as eX, B2BPasswordResetByExistingPasswordOptions as eY, B2BPasswordResetByExistingPasswordResponse as eZ, B2BPasswordResetBySessionOptions as e_, B2BSSOSAMLCreateConnectionResponse as ea, B2BSSOSAMLUpdateConnectionOptions as eb, B2BSSOSAMLUpdateConnectionResponse as ec, B2BSSOSAMLUpdateConnectionByURLOptions as ed, B2BSSOSAMLUpdateConnectionByURLResponse as ee, B2BSSOSAMLDeleteVerificationCertificateOptions as ef, B2BSSOSAMLDeleteVerificationCertificateResponse as eg, B2BSSOSAMLDeleteEncryptionPrivateKeyOptions as eh, B2BSSOSAMLDeleteEncryptionPrivateKeyResponse as ei, B2BSSOCreateExternalConnectionOptions as ej, B2BSSOCreateExternalConnectionResponse as ek, B2BSSOUpdateExternalConnectionOptions as el, B2BSSOUpdateExternalConnectionResponse as em, B2BSSOOIDCCreateConnectionOptions as en, B2BSSOOIDCCreateConnectionResponse as eo, B2BSSOOIDCUpdateConnectionOptions as ep, B2BSSOOIDCUpdateConnectionResponse as eq, B2BSSOGetConnectionsResponse as er, B2BSSODeleteConnectionResponse as es, B2BSSODiscoverConnectionsResponse as et, B2BDiscoveryOrganizationsResponse as eu, B2BDiscoveryOrganizationsCreateOptions as ev, B2BDiscoveryOrganizationsCreateResponse as ew, B2BDiscoveryIntermediateSessionsExchangeOptions as ex, B2BDiscoveryIntermediateSessionsExchangeResponse as ey, B2BDiscoveryAuthenticateResponse as ez, IHeadlessPasswordClient as f, B2BPasswordStrengthCheckOptions as f0, B2BPasswordStrengthCheckResponse as f1, B2BSMSSendOptions as f2, B2BSMSSendResponse as f3, B2BSMSAuthenticateOptions as f4, B2BSMSAuthenticateResponse as f5, B2BOTPsEmailLoginOrSignupOptions as f6, B2BOTPsEmailLoginOrSignupResponse as f7, B2BOTPsEmailAuthenticateOptions as f8, B2BOTPsEmailAuthenticateResponse as f9, B2BSCIMRotateCancelResponse as fA, B2BImpersonationAuthenticateOptions as fB, B2BImpersonationAuthenticateResponse as fC, Cacheable as fD, PartialDeep as fE, RBACPolicyRole as fF, CommonLoginConfig as fG, CommonB2BLoginConfig as fH, B2BDiscoveryOTPEmailSendOptions as fa, B2BDiscoveryOTPEmailSendResponse as fb, B2BDiscoveryOTPEmailAuthenticateOptions as fc, B2BDiscoveryOTPEmailAuthenticateResponse as fd, B2BTOTPCreateOptions as fe, B2BTOTPCreateResponse as ff, B2BTOTPAuthenticateOptions as fg, B2BTOTPAuthenticateResponse as fh, RecoveryCodeRecoverOptions as fi, RecoveryCodeRecoverResponse as fj, RecoveryCodeRotateResponse as fk, RecoveryCodeGetResponse as fl, SCIMConnection as fm, SCIMConnectionWithBearerToken as fn, SCIMConnectionWithNextBearerToken as fo, SCIMGroup as fp, B2BSCIMCreateConnectionOptions as fq, B2BSCIMCreateConnectionResponse as fr, B2BSCIMUpdateConnectionOptions as fs, B2BSCIMUpdateConnectionResponse as ft, B2BSCIMDeleteConnectionResponse as fu, B2BSCIMGetConnectionResponse as fv, B2BSCIMGetConnectionGroupsOptions as fw, B2BSCIMGetConnectionGroupsResponse as fx, B2BSCIMRotateStartResponse as fy, B2BSCIMRotateCompleteResponse as fz, StateChangeRegisterFunction as g, StytchClientOptions as h, IHeadlessB2BIDPClient as i, B2BOAuthAuthorizeStartResponse as j, B2BOAuthAuthorizeSubmitOptions as k, B2BOAuthAuthorizeSubmitResponse as l, B2BOAuthLogoutStartOptions as m, B2BOAuthLogoutStartResponse as n, IHeadlessB2BOAuthClient as o, IHeadlessB2BMagicLinksClient as p, IHeadlessB2BSessionClient as q, IHeadlessB2BMemberClient as r, IHeadlessB2BSelfClient as s, IHeadlessB2BOrganizationClient as t, IHeadlessB2BSSOClient as u, IHeadlessB2BDiscoveryClient as v, IHeadlessB2BPasswordClient as w, IHeadlessB2BOTPsClient as x, IHeadlessB2BTOTPsClient as y, IHeadlessB2BRecoveryCodesClient as z };
9358
+ export { OAuthProviders as bT, Wallets as bU, OneTapPositions as bV, OTPMethods as bZ, DFPNotConfigured as c$, StytchEventType as c6, RNUIProducts as c9, UserLockedOutError as cA, DeviceCredentialsNotAllowedError as cB, MissingGoogleClientIDError as cC, MissingPKCEError as cD, MissingAuthorizationCredentialIDTokenError as cE, InvalidAuthorizationCredentialError as cF, NoCredentialsPresentError as cG, MissingPublicKeyError as cH, ChallengeSigningFailedError as cI, SDKNotConfiguredError as cJ, FailedCodeChallengeError as cK, PasskeysUnsupportedError as cL, FailedToDecryptDataError as cM, BiometricsFailedError as cN, InvalidStartUrlError as cO, InvalidRedirectSchemeError as cP, MissingUrlError as cQ, InvalidCredentialTypeError as cR, MissingAttestationObjectError as cS, JSONDataNotConvertibleToStringError as cT, RandomNumberGenerationFailed as cU, PasskeysInvalidEncoding as cV, PasskeysMisconfigured as cW, SignInWithAppleMisconfigured as cX, MissingCipherIv as cY, InvalidPrivateKeyLength as cZ, BiometricRegistrationIdIsNullOrBlank as c_, SDKAPIUnreachableError as cf, StytchSDKUsageError as cg, StytchSDKSchemaError as ch, StytchSDKAPIError as ci, UNRECOVERABLE_ERROR_TYPES as cj, StytchError as ck, StytchAPIUnreachableError as cl, StytchAPISchemaError as cm, StytchAPIError as cn, StytchSDKError as cp, NoCurrentSessionError as cr, InternalError as cs, NoBiometricsRegistrationError as ct, BiometricsUnavailableError as cu, KeyInvalidatedError as cv, KeystoreUnavailableError as cw, NoBiometricsEnrolledError as cx, BiometricsAlreadyEnrolledError as cy, UserCancellationError as cz, IDPOAuthFlowMissingParamError as d0, errorToStytchError as d1, AuthFlowType as fd, RedirectURLType as fe, B2BOAuthProviders as ff, B2BMFAProducts as fo };
9359
+ export type { StytchProjectConfiguration as $, AuthenticateByUrl as A, B2BOAuthAuthorizeStartOptions as B, ConsumerState as C, IHeadlessB2BOAuthClient as D, IHeadlessB2BMagicLinksClient as E, IHeadlessB2BSessionClient as F, IHeadlessB2BMemberClient as G, IHeadlessB2BSelfClient as H, IHeadlessIDPClient as I, IHeadlessB2BOrganizationClient as J, IHeadlessB2BSSOClient as K, IHeadlessB2BDiscoveryClient as L, IHeadlessB2BPasswordClient as M, IHeadlessB2BOTPsClient as N, OAuthAuthorizeStartOptions as O, ParseAuthenticateUrl as P, IHeadlessB2BTOTPsClient as Q, IHeadlessB2BRecoveryCodesClient as R, StytchProjectConfigurationInput as S, IHeadlessB2BRBACClient as T, IHeadlessB2BSCIMClient as U, IHeadlessB2BImpersonationClient as V, B2BState as W, MemberSession as X, Member as Y, Organization as Z, PermissionsMap as _, INetworkClient as a, OAuthStartResponse as a$, StringsOptions as a0, Callbacks as a1, TokenType as a2, ResponseCommon as a3, User as a4, WebAuthnRegistration as a5, AuthenticateResponse as a6, DeleteResponse as a7, UpdateResponse as a8, SessionDurationOptions as a9, SnapchatOAuthFactor as aA, YahooOAuthFactor as aB, WebAuthnFactor as aC, AuthenticatorAppFactor as aD, RecoveryCodeFactor as aE, CryptoWalletFactor as aF, PasswordFactor as aG, BiometricFactor as aH, AccessTokenExchangeFactor as aI, AuthenticationFactor as aJ, Session as aK, SessionAuthenticateOptions as aL, SessionAuthenticateResponse as aM, SessionAccessTokenExchangeOptions as aN, SessionAccessTokenExchangeResponse as aO, SessionRevokeOptions as aP, SessionRevokeResponse as aQ, SessionAttestOptions as aR, SessionAttestResponse as aS, SessionOnChangeCallback as aT, SessionTokens$1 as aU, SessionTokensUpdate as aV, SessionInfo as aW, OAuthGetURLOptions as aX, OAuthAuthenticateOptions as aY, OAuthAuthenticateResponse as aZ, OAuthStartFailureReason as a_, UnsubscribeFunction as aa, locale as ab, MemberEmailUpdateDeliveryMethod as ac, DeviceAttributeDetails as ad, SDKDeviceHistory as ae, ConnectedAppPublic as af, ScopeResult as ag, EmailFactor as ah, PhoneNumberFactor as ai, GoogleOAuthFactor as aj, MicrosoftOAuthFactor as ak, AppleOAuthFactor as al, GithubOAuthFactor as am, GitLabOAuthFactor as an, FacebookOAuthFactor as ao, DiscordOAuthFactor as ap, SalesforceOAuthFactor as aq, SlackOAuthFactor as ar, AmazonOAuthFactor as as, BitbucketOAuthFactor as at, LinkedInOAuthFactor as au, CoinbaseOAuthFactor as av, TwitchOAuthFactor as aw, TwitterOAuthFactor as ax, TikTokOAuthFactor as ay, FigmaOAuthFactor as az, OAuthAuthorizeStartResponse as b, PasswordOptions as b$, IOAuthProvider$1 as b0, OAuthAttachResponse as b1, UserOnChangeCallback as b2, UserUpdateOptions as b3, UserUpdateResponse as b4, UserInfo as b5, UserGetConnectedAppsResponse as b6, MagicLinksLoginOrCreateOptions as b7, MagicLinksSendOptions as b8, MagicLinksLoginOrCreateResponse as b9, WebAuthnAuthenticateStartResponse as bA, WebAuthnAuthenticateResponse as bB, WebAuthnUpdateOptions as bC, WebAuthnUpdateResponse as bD, PasswordCreateOptions as bE, PasswordCreateResponse as bF, PasswordAuthenticateOptions as bG, PasswordAuthenticateResponse as bH, PasswordResetByEmailStartOptions as bI, PasswordResetByEmailStartResponse as bJ, PasswordResetByEmailOptions as bK, PasswordResetByEmailResponse as bL, PasswordResetByExistingPasswordOptions as bM, PasswordResetByExistingPasswordResponse as bN, PasswordResetBySessionOptions as bO, PasswordResetBySessionResponse as bP, PasswordStrengthCheckOptions as bQ, PasswordStrengthCheckResponse as bR, EmailMagicLinksOptions as bS, ProviderOptions as bW, ProvidersOptions as bX, OAuthOptions as bY, OtpOptions as b_, MagicLinksSendResponse as ba, MagicLinksAuthenticateOptions as bb, MagicLinksAuthenticateResponse as bc, OTPCodeOptions as bd, OTPCodeSMSOptions as be, OTPCodeEmailOptions as bf, OTPAuthenticateOptions as bg, OTPsLoginOrCreateResponse as bh, OTPsSendResponse as bi, OTPsAuthenticateResponse as bj, SIWEParams as bk, CryptoWalletAuthenticateStartOptions as bl, CryptoWalletAuthenticateStartResponse as bm, CryptoWalletAuthenticateOptions as bn, CryptoWalletAuthenticateResponse as bo, TOTPCreateOptions as bp, TOTPCreateResponse as bq, TOTPAuthenticateOptions as br, TOTPAuthenticateResponse as bs, TOTPRecoveryCodesResponse as bt, TOTPRecoverOptions as bu, TOTPRecoverResponse as bv, WebAuthnRegisterStartOptions as bw, WebAuthnRegisterStartResponse as bx, WebAuthnRegisterResponse as by, WebAuthnAuthenticateStartOptions as bz, OAuthAuthorizeSubmitOptions as c, SessionOptions as c0, PasskeyOptions as c1, StyleConfig as c2, IDPConsentItem as c3, IDPConsentSection as c4, IDPConsentScreenManifest as c5, StytchEvent as c7, OneTapStyleConfig as c8, RNUIEmailMagicLinksOptions as ca, RNUIOAuthOptions as cb, RNUIOTPOptions as cc, RNUIPasswordOptions as cd, RNUIProductConfig as ce, StytchSDKErrorOptions as co, StytchSDKUIError as cq, OAuthAuthorizeSubmitResponse as d, B2BMemberUnlinkRetiredEmailRequest as d$, BiometricsRegisterOptions as d2, BiometricsRegisterStartResponse as d3, BiometricsRegisterCompleteResponse as d4, BiometricsAuthenticateOptions as d5, BiometricsAuthenticateStartResponse as d6, BiometricsAuthenticateCompleteResponse as d7, BiometricsDeleteResponse as d8, BiometryType as d9, SAMLConnection as dA, OIDCConnection as dB, ExternalConnection as dC, B2BSessionAuthenticateResponse as dD, B2BSessionRevokeOptions as dE, B2BSessionRevokeForMemberOptions as dF, B2BSessionRevokeForMemberResponse as dG, B2BSessionOnChangeCallback as dH, B2BSessionExchangeOptions as dI, B2BSessionExchangeResponse as dJ, B2BSessionAccessTokenExchangeOptions as dK, B2BSessionAccessTokenExchangeResponse as dL, MemberSessionInfo as dM, B2BSessionAttestOptions as dN, B2BSessionAttestResponse as dO, B2BMagicLinksInviteOptions as dP, B2BMagicLinksInviteResponse as dQ, B2BMagicLinkLoginOrSignupOptions as dR, B2BMagicLinkLoginOrSignupResponse as dS, B2BMagicLinksAuthenticateOptions as dT, B2BMagicLinksAuthenticateResponse as dU, B2BMagicLinksEmailDiscoverySendOptions as dV, B2BMagicLinksEmailDiscoverySendResponse as dW, B2BMagicLinksDiscoveryAuthenticateResponse as dX, B2BMagicLinksDiscoveryAuthenticateOptions as dY, B2BMemberOnChangeCallback as dZ, B2BMemberUpdateOptions as d_, BiometricsGetSensorResponse as da, IHeadlessBiometricsClient as db, B2BEmailFactor as dc, B2BPhoneNumberFactor as dd, B2BGoogleOAuthFactor as de, B2BMicrosoftOAuthFactor as df, B2BHubSpotOAuthFactor as dg, B2BSlackOAuthFactor as dh, B2BGitHubOAuthFactor as di, B2BAuthenticationFactor as dj, MemberResponseCommon as dk, OAuthRegistration as dl, MemberRole as dm, RetiredEmailAddress as dn, B2BAuthenticateResponse as dp, B2BAuthenticateResponseWithMFA as dq, B2BAllowedAuthMethods as dr, B2BAllowedMFAMethods as ds, SSOActiveConnection as dt, DiscoveredOrganization as du, MfaRequired as dv, PrimaryRequired as dw, MemberOptions as dx, X509Certificate as dy, EncryptionPrivateKey as dz, OAuthLogoutStartOptions as e, B2BSSOUpdateExternalConnectionResponse as e$, B2BMemberStartEmailUpdateRequest as e0, B2BMemberStartEmailUpdateResponse as e1, B2BMemberGetConnectedAppsResponse as e2, B2BMemberRevokeConnectedAppOptions as e3, B2BMemberRevokeConnectedAppResponse as e4, B2BMemberUpdateResponse as e5, B2BMemberDeleteMFAPhoneNumberResponse as e6, B2BMemberDeletePasswordResponse as e7, B2BMemberDeleteMFATOTPResponse as e8, B2BMemberUnlinkRetiredEmailResponse as e9, B2BOrganizationsMemberGetConnectedAppsOptions as eA, B2BOrganizationsMemberGetConnectedAppsResponse as eB, B2BOrganizationsMemberRevokeConnectedAppOptions as eC, B2BOrganizationsMemberRevokeConnectedAppResponse as eD, OrganizationInfo as eE, OAuthStartOptions as eF, B2BOAuthDiscoveryStartOptions as eG, B2BOAuthAuthenticateOptions as eH, OAuthDiscoveryAuthenticateOptions as eI, B2BOAuthDiscoveryAuthenticateResponse as eJ, B2BOAuthAuthenticateResponse as eK, SSOStartOptions as eL, SSOAuthenticateOptions as eM, SSOAuthenticateResponse as eN, B2BSSOSAMLCreateConnectionOptions as eO, B2BSSOSAMLCreateConnectionResponse as eP, B2BSSOSAMLUpdateConnectionOptions as eQ, B2BSSOSAMLUpdateConnectionResponse as eR, B2BSSOSAMLUpdateConnectionByURLOptions as eS, B2BSSOSAMLUpdateConnectionByURLResponse as eT, B2BSSOSAMLDeleteVerificationCertificateOptions as eU, B2BSSOSAMLDeleteVerificationCertificateResponse as eV, B2BSSOSAMLDeleteEncryptionPrivateKeyOptions as eW, B2BSSOSAMLDeleteEncryptionPrivateKeyResponse as eX, B2BSSOCreateExternalConnectionOptions as eY, B2BSSOCreateExternalConnectionResponse as eZ, B2BSSOUpdateExternalConnectionOptions as e_, MemberInfo as ea, B2BOrganizationsUpdateOptions as eb, B2BOrganizationsUpdateResponse as ec, B2BOrganizationsDeleteResponse as ed, B2BOrganizationsGetBySlugOptions as ee, OrganizationBySlugMatch as ef, B2BOrganizationsGetBySlugResponse as eg, B2BOrganizationsGetConnectedAppsResponse as eh, B2BOrganizationsGetConnectedAppOptions as ei, B2BOrganizationsGetConnectedAppResponse as ej, B2BOrganizationsMembersCreateOptions as ek, B2BOrganizationsMembersCreateResponse as el, B2BOrganizationsMembersUpdateOptions as em, B2BOrganizationsMembersUpdateResponse as en, SearchQueryOperand as eo, B2BOrganizationsMembersSearchOptions as ep, B2BOrganizationsMembersSearchResponse as eq, B2BOrganizationsMembersDeleteResponse as er, B2BOrganizationsMembersReactivateResponse as es, B2BOrganizationsMemberDeletePasswordResponse as et, B2BOrganizationsMemberDeleteMFAPhoneNumberResponse as eu, B2BOrganizationsMemberDeleteMFATOTPResponse as ev, B2BOrganizationsMemberUnlinkRetiredEmailOptions as ew, B2BOrganizationsMemberUnlinkRetiredEmailResponse as ex, B2BOrganizationsMemberStartEmailUpdateOptions as ey, B2BOrganizationsMemberStartEmailUpdateResponse as ez, OAuthLogoutStartResponse as f, SCIMConnection as f$, B2BSSOOIDCCreateConnectionOptions as f0, B2BSSOOIDCCreateConnectionResponse as f1, B2BSSOOIDCUpdateConnectionOptions as f2, B2BSSOOIDCUpdateConnectionResponse as f3, B2BSSOGetConnectionsResponse as f4, B2BSSODeleteConnectionResponse as f5, B2BSSODiscoverConnectionsResponse as f6, B2BDiscoveryOrganizationsResponse as f7, B2BDiscoveryOrganizationsCreateOptions as f8, B2BDiscoveryOrganizationsCreateResponse as f9, B2BPasswordResetByEmailResponse as fA, B2BPasswordResetByExistingPasswordOptions as fB, B2BPasswordResetByExistingPasswordResponse as fC, B2BPasswordResetBySessionOptions as fD, B2BPasswordResetBySessionResponse as fE, B2BPasswordStrengthCheckOptions as fF, B2BPasswordStrengthCheckResponse as fG, B2BSMSSendOptions as fH, B2BSMSSendResponse as fI, B2BSMSAuthenticateOptions as fJ, B2BSMSAuthenticateResponse as fK, B2BOTPsEmailLoginOrSignupOptions as fL, B2BOTPsEmailLoginOrSignupResponse as fM, B2BOTPsEmailAuthenticateOptions as fN, B2BOTPsEmailAuthenticateResponse as fO, B2BDiscoveryOTPEmailSendOptions as fP, B2BDiscoveryOTPEmailSendResponse as fQ, B2BDiscoveryOTPEmailAuthenticateOptions as fR, B2BDiscoveryOTPEmailAuthenticateResponse as fS, B2BTOTPCreateOptions as fT, B2BTOTPCreateResponse as fU, B2BTOTPAuthenticateOptions as fV, B2BTOTPAuthenticateResponse as fW, RecoveryCodeRecoverOptions as fX, RecoveryCodeRecoverResponse as fY, RecoveryCodeRotateResponse as fZ, RecoveryCodeGetResponse as f_, B2BDiscoveryIntermediateSessionsExchangeOptions as fa, B2BDiscoveryIntermediateSessionsExchangeResponse as fb, B2BDiscoveryAuthenticateResponse as fc, B2BEmailMagicLinksOptions as fg, B2BSSOOptions as fh, B2BOAuthOptions as fi, B2BOAuthProviderConfig as fj, B2BPasswordOptions as fk, B2BEmailOTPOptions as fl, B2BSMSOTPOptions as fm, DirectLoginForSingleMembershipConfig as fn, B2BPasswordAuthenticateOptions as fp, B2BPasswordDiscoveryAuthenticateResponse as fq, B2BPasswordDiscoveryAuthenticateOptions as fr, B2BPasswordAuthenticateResponse as fs, B2BPasswordResetByEmailStartOptions as ft, B2BPasswordResetByEmailStartResponse as fu, B2BPasswordDiscoveryResetByEmailStartOptions as fv, B2BPasswordDiscoveryResetByEmailStartResponse as fw, B2BPasswordDiscoveryResetByEmailOptions as fx, B2BPasswordDiscoveryResetByEmailResponse as fy, B2BPasswordResetByEmailOptions as fz, IHeadlessOAuthClient as g, SCIMConnectionWithBearerToken as g0, SCIMConnectionWithNextBearerToken as g1, SCIMGroup as g2, B2BSCIMCreateConnectionOptions as g3, B2BSCIMCreateConnectionResponse as g4, B2BSCIMUpdateConnectionOptions as g5, B2BSCIMUpdateConnectionResponse as g6, B2BSCIMDeleteConnectionResponse as g7, B2BSCIMGetConnectionResponse as g8, B2BSCIMGetConnectionGroupsOptions as g9, B2BSCIMGetConnectionGroupsResponse as ga, B2BSCIMRotateStartResponse as gb, B2BSCIMRotateCompleteResponse as gc, B2BSCIMRotateCancelResponse as gd, B2BImpersonationAuthenticateOptions as ge, B2BImpersonationAuthenticateResponse as gf, ImpersonationAuthenticateOptions as gg, ImpersonationAuthenticateResponse as gh, ConsumerPermissionsMap as gi, PartialDeep as gj, RBACPolicyRole as gk, CommonLoginConfig as gl, CommonB2BLoginConfig as gm, OneTapRenderResult as h, IHeadlessUserClient as i, IHeadlessMagicLinksClient as j, IHeadlessSessionClient as k, IHeadlessOTPsClient as l, IHeadlessCryptoWalletClient as m, IHeadlessTOTPClient as n, IHeadlessWebAuthnClient as o, IHeadlessPasswordClient as p, IHeadlessImpersonationClient as q, IHeadlessRBACClient as r, StateChangeRegisterFunction as s, StytchClientOptions as t, IHeadlessB2BIDPClient as u, B2BOAuthAuthorizeStartResponse as v, B2BOAuthAuthorizeSubmitOptions as w, B2BOAuthAuthorizeSubmitResponse as x, B2BOAuthLogoutStartOptions as y, B2BOAuthLogoutStartResponse as z };