@azure/msal-browser 5.22.0 → 5.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (574) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  4. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +133 -29
  5. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +178 -64
  7. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
  8. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +61 -22
  9. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
  10. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +49 -0
  11. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -0
  12. package/dist/cache/AccountManager.mjs +1 -1
  13. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  14. package/dist/cache/BrowserCacheManager.mjs +1 -1
  15. package/dist/cache/CacheHelpers.mjs +1 -1
  16. package/dist/cache/CacheKeys.mjs +1 -1
  17. package/dist/cache/CookieStorage.mjs +1 -1
  18. package/dist/cache/DatabaseStorage.mjs +1 -1
  19. package/dist/cache/EncryptedData.mjs +1 -1
  20. package/dist/cache/LocalStorage.mjs +97 -29
  21. package/dist/cache/LocalStorage.mjs.map +1 -1
  22. package/dist/cache/MemoryStorage.mjs +1 -1
  23. package/dist/cache/SessionStorage.mjs +1 -1
  24. package/dist/cache/TokenCache.mjs +1 -1
  25. package/dist/config/Configuration.mjs +1 -1
  26. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  27. package/dist/controllers/StandardController.mjs +10 -10
  28. package/dist/controllers/StandardController.mjs.map +1 -1
  29. package/dist/crypto/BrowserCrypto.mjs +1 -1
  30. package/dist/crypto/CryptoOps.mjs +1 -1
  31. package/dist/crypto/PkceGenerator.mjs +1 -1
  32. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  33. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  34. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  35. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +27 -2
  36. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  37. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +192 -2
  38. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  39. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  51. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  52. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  53. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  54. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  55. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  56. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +21 -0
  57. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -0
  58. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +80 -0
  59. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -0
  60. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +102 -0
  61. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +1 -0
  62. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +12 -0
  63. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -0
  64. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +20 -0
  65. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +1 -0
  66. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +36 -0
  67. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +1 -0
  68. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +29 -0
  69. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +1 -0
  70. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +76 -0
  71. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -0
  72. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +36 -0
  73. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +1 -0
  74. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +36 -0
  75. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -0
  76. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +134 -0
  77. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -0
  78. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +23 -0
  79. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -0
  80. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +22 -0
  81. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -0
  82. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +61 -0
  83. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +1 -0
  84. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +87 -0
  85. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -0
  86. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +3 -2
  87. package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
  88. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  89. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  90. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  91. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  92. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  93. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  94. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  95. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  96. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  97. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  98. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  99. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  100. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  101. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  102. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  103. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  104. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  105. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  106. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  107. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  108. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  109. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +602 -0
  110. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -0
  111. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +67 -0
  112. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -0
  113. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +46 -0
  114. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -0
  115. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  116. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  117. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +3 -2
  118. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
  119. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  120. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  121. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  122. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  123. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  124. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  125. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +30 -0
  126. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -0
  127. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +193 -0
  128. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -0
  129. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +236 -0
  130. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -0
  131. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +26 -0
  132. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +1 -0
  133. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +66 -0
  134. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -0
  135. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +97 -0
  136. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -0
  137. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +56 -0
  138. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +1 -0
  139. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +23 -0
  140. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -0
  141. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +14 -0
  142. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -0
  143. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  144. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +3 -2
  145. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +1 -1
  146. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +38 -0
  147. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -0
  148. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +20 -3
  149. package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
  150. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  151. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  152. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  153. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  154. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  155. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  156. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  157. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  158. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  159. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  160. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  161. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  162. package/dist/custom_auth/index.mjs +23 -1
  163. package/dist/custom_auth/index.mjs.map +1 -1
  164. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  165. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  166. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  167. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  168. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  169. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  170. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  171. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  172. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  173. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  174. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  175. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +29 -0
  176. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +1 -0
  177. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +59 -0
  178. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -0
  179. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  180. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  181. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  182. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  183. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  184. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  185. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  186. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  187. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  188. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  189. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  190. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  191. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  192. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +18 -0
  193. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +1 -0
  194. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +37 -0
  195. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +1 -0
  196. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +23 -0
  197. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +1 -0
  198. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +70 -0
  199. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
  200. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +61 -0
  201. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -0
  202. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  203. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  204. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  205. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  206. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  207. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  208. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  209. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  210. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  211. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  212. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  213. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  214. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  215. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  216. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +25 -0
  217. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +1 -0
  218. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +33 -0
  219. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +1 -0
  220. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +40 -0
  221. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -0
  222. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +25 -0
  223. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +1 -0
  224. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +47 -0
  225. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +1 -0
  226. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +60 -0
  227. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -0
  228. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  229. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  230. package/dist/encode/Base64Decode.mjs +1 -1
  231. package/dist/encode/Base64Encode.mjs +1 -1
  232. package/dist/error/BrowserAuthError.mjs +1 -1
  233. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  234. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  235. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  236. package/dist/error/NativeAuthError.mjs +1 -1
  237. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  238. package/dist/error/NestedAppAuthError.mjs +1 -1
  239. package/dist/event/EventHandler.mjs +1 -1
  240. package/dist/event/EventMessage.mjs +1 -1
  241. package/dist/event/EventType.mjs +1 -1
  242. package/dist/index.mjs +1 -1
  243. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  244. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  245. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +21 -14
  246. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  247. package/dist/interaction_client/PopupClient.mjs +1 -1
  248. package/dist/interaction_client/RedirectClient.mjs +11 -8
  249. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  250. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  251. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  252. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  253. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  254. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  255. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  256. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  257. package/dist/log-strings-mapping.json +1381 -1185
  258. package/dist/naa/BridgeError.mjs +1 -1
  259. package/dist/naa/BridgeProxy.mjs +1 -1
  260. package/dist/naa/BridgeStatusCode.mjs +1 -1
  261. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  262. package/dist/navigation/NavigationClient.mjs +1 -1
  263. package/dist/network/FetchClient.mjs +1 -1
  264. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  265. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  266. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  267. package/dist/packageMetadata.mjs +2 -2
  268. package/dist/popup_relay/constants.mjs +1 -1
  269. package/dist/popup_relay/index.mjs +1 -1
  270. package/dist/popup_relay/relayClient.mjs +1 -1
  271. package/dist/protocol/Authorize.mjs +1 -1
  272. package/dist/redirect_bridge/index.mjs +1 -1
  273. package/dist/request/RequestHelpers.mjs +1 -1
  274. package/dist/response/ResponseHandler.mjs +1 -1
  275. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  276. package/dist/telemetry/BrowserPerformanceEvents.mjs +16 -2
  277. package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
  278. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  279. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  280. package/dist/utils/BrowserConstants.mjs +1 -1
  281. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  282. package/dist/utils/BrowserUtils.mjs +1 -1
  283. package/dist/utils/Helpers.mjs +1 -1
  284. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  285. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  286. package/dist/webBrokerBridge/PerfEventNames.mjs +38 -0
  287. package/dist/webBrokerBridge/PerfEventNames.mjs.map +1 -0
  288. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  289. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  290. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  291. package/dist/webBrokerBridge/index.mjs +2 -1
  292. package/dist/webBrokerBridge/index.mjs.map +1 -1
  293. package/lib/custom-auth-path/log-strings-mapping.json +215 -19
  294. package/lib/custom-auth-path/msal-custom-auth.cjs +3571 -479
  295. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  296. package/lib/custom-auth-path/msal-custom-auth.js +3571 -479
  297. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  298. package/lib/log-strings-mapping.json +23 -11
  299. package/lib/msal-browser.cjs +622 -233
  300. package/lib/msal-browser.cjs.map +1 -1
  301. package/lib/msal-browser.js +622 -233
  302. package/lib/msal-browser.js.map +1 -1
  303. package/lib/msal-browser.min.js +2 -2
  304. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  305. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  306. package/lib/popup-relay/msal-popup-relay.js +2 -2
  307. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  308. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  309. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  310. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  311. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  312. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  313. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  314. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +59 -1
  315. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs.map +1 -1
  316. package/package.json +3 -3
  317. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +217 -45
  318. package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +261 -107
  319. package/src/broker/nativeBroker/PlatformAuthProvider.ts +92 -37
  320. package/src/broker/nativeBroker/PlatformAuthRequest.ts +118 -6
  321. package/src/broker/nativeBroker/PlatformAuthResponse.ts +14 -1
  322. package/src/cache/LocalStorage.ts +135 -28
  323. package/src/controllers/StandardController.ts +17 -23
  324. package/src/custom_auth/CustomAuthActionInputs.ts +11 -0
  325. package/src/custom_auth/CustomAuthPublicClientApplication.ts +40 -4
  326. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +44 -0
  327. package/src/custom_auth/controller/CustomAuthStandardController.ts +360 -1
  328. package/src/custom_auth/controller/ICustomAuthStandardController.ts +14 -0
  329. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +18 -0
  330. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +20 -0
  331. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +133 -0
  332. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +146 -0
  333. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +8 -0
  334. package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +15 -0
  335. package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +33 -0
  336. package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +25 -0
  337. package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +18 -0
  338. package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +26 -0
  339. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +26 -0
  340. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +25 -0
  341. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +30 -0
  342. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +40 -0
  343. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +100 -0
  344. package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +59 -0
  345. package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +53 -0
  346. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +196 -0
  347. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +16 -0
  348. package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +44 -0
  349. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +15 -0
  350. package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +76 -0
  351. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +119 -0
  352. package/src/custom_auth/core/error/CustomAuthApiError.ts +3 -1
  353. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +35 -0
  354. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +1145 -0
  355. package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +150 -0
  356. package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +66 -0
  357. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +185 -0
  358. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +1 -0
  359. package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +30 -0
  360. package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +423 -0
  361. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +553 -0
  362. package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +24 -0
  363. package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +81 -0
  364. package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +177 -0
  365. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +129 -0
  366. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +68 -0
  367. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +50 -0
  368. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.ts +20 -0
  369. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +202 -0
  370. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +111 -0
  371. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +26 -0
  372. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +44 -0
  373. package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +64 -0
  374. package/src/custom_auth/core/telemetry/PublicApiId.ts +18 -0
  375. package/src/custom_auth/index.ts +96 -0
  376. package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +25 -0
  377. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +33 -0
  378. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +69 -0
  379. package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.ts +9 -0
  380. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +13 -0
  381. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +35 -0
  382. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +19 -0
  383. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +31 -0
  384. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +32 -0
  385. package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +22 -0
  386. package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +96 -0
  387. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +83 -0
  388. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +12 -0
  389. package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +21 -0
  390. package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +32 -0
  391. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +28 -0
  392. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +20 -0
  393. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +48 -0
  394. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +34 -0
  395. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +63 -0
  396. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +24 -0
  397. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +112 -0
  398. package/src/interaction_client/PlatformAuthInteractionClient.ts +79 -17
  399. package/src/interaction_client/RedirectClient.ts +15 -5
  400. package/src/packageMetadata.ts +1 -1
  401. package/src/telemetry/BrowserPerformanceEvents.ts +20 -0
  402. package/src/webBrokerBridge/PerfEventNames.ts +43 -0
  403. package/src/webBrokerBridge/index.ts +26 -0
  404. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +3 -1
  405. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  406. package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +3 -1
  407. package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
  408. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
  409. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
  410. package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +68 -5
  411. package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
  412. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +12 -1
  413. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
  414. package/types/cache/LocalStorage.d.ts +4 -5
  415. package/types/cache/LocalStorage.d.ts.map +1 -1
  416. package/types/controllers/StandardController.d.ts.map +1 -1
  417. package/types/custom_auth/CustomAuthActionInputs.d.ts +7 -0
  418. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  419. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  420. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +27 -5
  421. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  422. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +30 -0
  423. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -0
  424. package/types/custom_auth/controller/CustomAuthStandardController.d.ts +11 -2
  425. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  426. package/types/custom_auth/controller/ICustomAuthStandardController.d.ts +7 -1
  427. package/types/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -1
  428. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +14 -0
  429. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -0
  430. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +14 -0
  431. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -0
  432. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +53 -0
  433. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -0
  434. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +40 -0
  435. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +1 -0
  436. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +4 -0
  437. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -0
  438. package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +11 -0
  439. package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +1 -0
  440. package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +23 -0
  441. package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +1 -0
  442. package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +18 -0
  443. package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +1 -0
  444. package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +7 -0
  445. package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +1 -0
  446. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +15 -0
  447. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -0
  448. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +16 -0
  449. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -0
  450. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +16 -0
  451. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -0
  452. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +18 -0
  453. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -0
  454. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +23 -0
  455. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -0
  456. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +21 -0
  457. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -0
  458. package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +17 -0
  459. package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +1 -0
  460. package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +14 -0
  461. package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -0
  462. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +25 -0
  463. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -0
  464. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +11 -0
  465. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -0
  466. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +28 -0
  467. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -0
  468. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +10 -0
  469. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -0
  470. package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +18 -0
  471. package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +1 -0
  472. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +25 -0
  473. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -0
  474. package/types/custom_auth/core/error/CustomAuthApiError.d.ts +3 -1
  475. package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
  476. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +21 -0
  477. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -0
  478. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +35 -0
  479. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -0
  480. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +26 -0
  481. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -0
  482. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +43 -0
  483. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -0
  484. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +80 -0
  485. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -0
  486. package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -0
  487. package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  488. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +17 -0
  489. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -0
  490. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +31 -0
  491. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -0
  492. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +23 -0
  493. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -0
  494. package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +19 -0
  495. package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -0
  496. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts +2 -0
  497. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -0
  498. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +15 -0
  499. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -0
  500. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +52 -0
  501. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -0
  502. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts +3 -0
  503. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts.map +1 -0
  504. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts +37 -0
  505. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -0
  506. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts +12 -0
  507. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts.map +1 -0
  508. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +133 -0
  509. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -0
  510. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +70 -0
  511. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -0
  512. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +10 -0
  513. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -0
  514. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +33 -0
  515. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -0
  516. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +4 -0
  517. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -0
  518. package/types/custom_auth/core/telemetry/PublicApiId.d.ts +16 -0
  519. package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  520. package/types/custom_auth/index.d.ts +37 -0
  521. package/types/custom_auth/index.d.ts.map +1 -1
  522. package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +18 -0
  523. package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +1 -0
  524. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +22 -0
  525. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -0
  526. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +19 -0
  527. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -0
  528. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts +3 -0
  529. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts.map +1 -0
  530. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +9 -0
  531. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +1 -0
  532. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +22 -0
  533. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +1 -0
  534. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +12 -0
  535. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +1 -0
  536. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +21 -0
  537. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -0
  538. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +17 -0
  539. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -0
  540. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +9 -0
  541. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
  542. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +17 -0
  543. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
  544. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +24 -0
  545. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -0
  546. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +4 -0
  547. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -0
  548. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +14 -0
  549. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +1 -0
  550. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +20 -0
  551. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +1 -0
  552. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +15 -0
  553. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -0
  554. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +8 -0
  555. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -0
  556. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +15 -0
  557. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -0
  558. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +11 -0
  559. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +1 -0
  560. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +19 -0
  561. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +1 -0
  562. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +14 -0
  563. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -0
  564. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +10 -0
  565. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -0
  566. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  567. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  568. package/types/packageMetadata.d.ts +1 -1
  569. package/types/telemetry/BrowserPerformanceEvents.d.ts +13 -0
  570. package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  571. package/types/webBrokerBridge/PerfEventNames.d.ts +30 -0
  572. package/types/webBrokerBridge/PerfEventNames.d.ts.map +1 -0
  573. package/types/webBrokerBridge/index.d.ts +1 -0
  574. package/types/webBrokerBridge/index.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthActionInputs.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthActionInputs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GAAG;IACvD,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"CustomAuthActionInputs.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthActionInputs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GAAG;IACvD,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAE1C,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG;IACxC,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,iCAAiC,CAAC"}
@@ -23,7 +23,7 @@ export declare const CustomHeaderConstants: {
23
23
  };
24
24
  export declare const DefaultPackageInfo: {
25
25
  readonly SKU: "msal.browser";
26
- readonly VERSION: "5.22.0";
26
+ readonly VERSION: "5.24.0";
27
27
  readonly OS: "";
28
28
  readonly CPU: "";
29
29
  };
@@ -1,19 +1,22 @@
1
1
  import { GetAccountResult } from "./get_account/auth_flow/result/GetAccountResult.js";
2
2
  import { SignInResult } from "./sign_in/auth_flow/result/SignInResult.js";
3
3
  import { SignUpResult } from "./sign_up/auth_flow/result/SignUpResult.js";
4
- import { ICustomAuthPublicClientApplication } from "./ICustomAuthPublicClientApplication.js";
5
- import { AccountRetrievalInputs, SignInInputs, SignUpInputs, ResetPasswordInputs } from "./CustomAuthActionInputs.js";
4
+ import { ICustomAuthPublicClientApplicationV2 } from "./ICustomAuthPublicClientApplicationV2.js";
5
+ import { AccountRetrievalInputs, SignInInputs, SignUpInputs, ResetPasswordInputs, ResetPasswordInputsV2, SignInInputsV2, SignUpInputsV2 } from "./CustomAuthActionInputs.js";
6
+ import { ResetPasswordStartResultV2 } from "./core/auth_flow/v2/result/ResetPasswordStartResultV2.js";
7
+ import { SignInStartResultV2 } from "./sign_in/auth_flow/v2/result/SignInStartResultV2.js";
8
+ import { SignUpStartResultV2 } from "./sign_up/auth_flow/v2/result/SignUpStartResultV2.js";
6
9
  import { CustomAuthConfiguration } from "./configuration/CustomAuthConfiguration.js";
7
10
  import { ResetPasswordStartResult } from "./reset_password/auth_flow/result/ResetPasswordStartResult.js";
8
11
  import { PublicClientApplication } from "../app/PublicClientApplication.js";
9
- export declare class CustomAuthPublicClientApplication extends PublicClientApplication implements ICustomAuthPublicClientApplication {
12
+ export declare class CustomAuthPublicClientApplication extends PublicClientApplication implements ICustomAuthPublicClientApplicationV2 {
10
13
  private readonly customAuthController;
11
14
  /**
12
15
  * Creates a new instance of a PublicClientApplication with the given configuration and controller to start Native authentication flows
13
16
  * @param {CustomAuthConfiguration} config - A configuration object for the PublicClientApplication instance
14
- * @returns {Promise<ICustomAuthPublicClientApplication>} - A promise that resolves to a CustomAuthPublicClientApplication instance
17
+ * @returns {Promise<ICustomAuthPublicClientApplicationV2>} - A promise that resolves to a CustomAuthPublicClientApplication instance
15
18
  */
16
- static create(config: CustomAuthConfiguration): Promise<ICustomAuthPublicClientApplication>;
19
+ static create(config: CustomAuthConfiguration): Promise<ICustomAuthPublicClientApplicationV2>;
17
20
  private constructor();
18
21
  /**
19
22
  * Gets the current account from the browser cache.
@@ -45,6 +48,25 @@ export declare class CustomAuthPublicClientApplication extends PublicClientAppli
45
48
  * @returns {Promise<ResetPasswordStartResult>} - A promise that resolves to ResetPasswordStartResult
46
49
  */
47
50
  resetPassword(resetPasswordInputs: ResetPasswordInputs): Promise<ResetPasswordStartResult>;
51
+ /**
52
+ * Starts native auth V2 sign-in and returns the authentication methods
53
+ * offered for the first factor.
54
+ * @param inputs - Inputs for the sign-in V2 flow.
55
+ * @returns A promise that resolves to the sign-in start result.
56
+ */
57
+ signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
58
+ /**
59
+ * Starts native auth V2 sign-up.
60
+ * @param inputs - Inputs for the sign-up V2 flow.
61
+ * @returns A promise that resolves to the sign-up start result.
62
+ */
63
+ signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
64
+ /**
65
+ * Initiates the native auth V2 self-service password reset flow.
66
+ * @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
67
+ * @returns {Promise<ResetPasswordStartResultV2>} - A promise that resolves to ResetPasswordStartResultV2
68
+ */
69
+ resetPasswordV2(inputs: ResetPasswordInputsV2): Promise<ResetPasswordStartResultV2>;
48
70
  /**
49
71
  * Validates the configuration to ensure it is a valid CustomAuthConfiguration object.
50
72
  * @param {CustomAuthConfiguration} config - The configuration object for the PublicClientApplication.
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAGzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAO5E,qBAAa,iCACT,SAAQ,uBACR,YAAW,kCAAkC;IAE7C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IAErE;;;;OAIG;WACU,MAAM,CACf,MAAM,EAAE,uBAAuB,GAChC,OAAO,CAAC,kCAAkC,CAAC;IAiB9C,OAAO;IASP;;;;OAIG;IACH,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAMnB;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAIpC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;CAoChC"}
1
+ {"version":3,"file":"CustomAuthPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAGzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAO5E,qBAAa,iCACT,SAAQ,uBACR,YAAW,oCAAoC;IAE/C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IAErE;;;;OAIG;WACU,MAAM,CACf,MAAM,EAAE,uBAAuB,GAChC,OAAO,CAAC,oCAAoC,CAAC;IAiBhD,OAAO;IASP;;;;OAIG;IACH,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAMnB;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAIpC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9D;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9D;;;;OAIG;IACH,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IAItC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;CAoChC"}
@@ -0,0 +1,30 @@
1
+ import { ICustomAuthPublicClientApplication } from "./ICustomAuthPublicClientApplication.js";
2
+ import { ResetPasswordInputsV2, SignInInputsV2, SignUpInputsV2 } from "./CustomAuthActionInputs.js";
3
+ import { ResetPasswordStartResultV2 } from "./core/auth_flow/v2/result/ResetPasswordStartResultV2.js";
4
+ import { SignInStartResultV2 } from "./sign_in/auth_flow/v2/result/SignInStartResultV2.js";
5
+ import { SignUpStartResultV2 } from "./sign_up/auth_flow/v2/result/SignUpStartResultV2.js";
6
+ /**
7
+ * Public interface for the native auth V2 surface.
8
+ */
9
+ export interface ICustomAuthPublicClientApplicationV2 extends ICustomAuthPublicClientApplication {
10
+ /**
11
+ * Starts native auth V2 sign-in and returns the authentication methods
12
+ * offered for the first factor.
13
+ * @param inputs - Inputs for the sign-in V2 flow.
14
+ * @returns A promise that resolves to the sign-in start result.
15
+ */
16
+ signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
17
+ /**
18
+ * Starts native auth V2 sign-up.
19
+ * @param inputs - Inputs for the sign-up V2 flow.
20
+ * @returns A promise that resolves to the sign-up start result.
21
+ */
22
+ signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
23
+ /**
24
+ * Initiates the native auth V2 self-service password reset flow for the given username.
25
+ * @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
26
+ * @returns {Promise<ResetPasswordStartResultV2>} A promise that resolves to ResetPasswordStartResultV2
27
+ */
28
+ resetPasswordV2(inputs: ResetPasswordInputsV2): Promise<ResetPasswordStartResultV2>;
29
+ }
30
+ //# sourceMappingURL=ICustomAuthPublicClientApplicationV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICustomAuthPublicClientApplicationV2.d.ts","sourceRoot":"","sources":["../../src/custom_auth/ICustomAuthPublicClientApplicationV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EACH,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAE3F;;GAEG;AACH,MAAM,WAAW,oCACb,SAAQ,kCAAkC;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D;;;;OAIG;IACH,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC1C"}
@@ -1,10 +1,14 @@
1
1
  import { GetAccountResult } from "../get_account/auth_flow/result/GetAccountResult.js";
2
2
  import { SignInResult } from "../sign_in/auth_flow/result/SignInResult.js";
3
3
  import { SignUpResult } from "../sign_up/auth_flow/result/SignUpResult.js";
4
- import { AccountRetrievalInputs, SignInInputs, SignUpInputs, ResetPasswordInputs } from "../CustomAuthActionInputs.js";
4
+ import { AccountRetrievalInputs, SignInInputs, SignUpInputs, ResetPasswordInputs, ResetPasswordInputsV2, SignInInputsV2, SignUpInputsV2 } from "../CustomAuthActionInputs.js";
5
5
  import { CustomAuthOperatingContext } from "../operating_context/CustomAuthOperatingContext.js";
6
6
  import { ICustomAuthStandardController } from "./ICustomAuthStandardController.js";
7
7
  import { ResetPasswordStartResult } from "../reset_password/auth_flow/result/ResetPasswordStartResult.js";
8
+ import { ResetPasswordStartResultV2 } from "../core/auth_flow/v2/result/ResetPasswordStartResultV2.js";
9
+ import { CustomAuthApiClientV2 } from "../core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.js";
10
+ import { SignInStartResultV2 } from "../sign_in/auth_flow/v2/result/SignInStartResultV2.js";
11
+ import { SignUpStartResultV2 } from "../sign_up/auth_flow/v2/result/SignUpStartResultV2.js";
8
12
  import { ICustomAuthApiClient } from "../core/network_client/custom_auth_api/ICustomAuthApiClient.js";
9
13
  import { StandardController } from "../../controllers/StandardController.js";
10
14
  export declare class CustomAuthStandardController extends StandardController implements ICustomAuthStandardController {
@@ -16,11 +20,16 @@ export declare class CustomAuthStandardController extends StandardController imp
16
20
  private readonly cacheClient;
17
21
  private readonly customAuthConfig;
18
22
  private readonly authority;
19
- constructor(operatingContext: CustomAuthOperatingContext, customAuthApiClient?: ICustomAuthApiClient);
23
+ private readonly flowClientV2;
24
+ private readonly signUpStateTransitionHandlerV2;
25
+ constructor(operatingContext: CustomAuthOperatingContext, customAuthApiClient?: ICustomAuthApiClient, customAuthApiClientV2?: CustomAuthApiClientV2);
20
26
  getCurrentAccount(accountRetrievalInputs?: AccountRetrievalInputs): GetAccountResult;
21
27
  signIn(signInInputs: SignInInputs): Promise<SignInResult>;
22
28
  signUp(signUpInputs: SignUpInputs): Promise<SignUpResult>;
23
29
  resetPassword(resetPasswordInputs: ResetPasswordInputs): Promise<ResetPasswordStartResult>;
30
+ resetPasswordV2(inputs: ResetPasswordInputsV2): Promise<ResetPasswordStartResultV2>;
31
+ signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
32
+ signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
24
33
  private getCorrelationId;
25
34
  private ensureUserNotSignedIn;
26
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEtB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAgB1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAmBtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAM7E,qBAAa,4BACT,SAAQ,kBACR,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;gBAQ5C,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB;IA+D9C,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAqCb,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAiOzD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAkHzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAsDpC,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
1
+ {"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEnB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAO3G,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAE5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AA+B5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAmBtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAM7E,qBAAa,4BACT,SAAQ,kBACR,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;IAChD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA0B;IACvD,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CACN;gBASrC,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB,EAC1C,qBAAqB,CAAC,EAAE,qBAAqB;IAmFjD,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAqCb,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAiOzD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAkHzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAsD9B,eAAe,CACjB,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IA8EhC,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAqH9D,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA4GpE,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
@@ -1,13 +1,19 @@
1
1
  import { GetAccountResult } from "../get_account/auth_flow/result/GetAccountResult.js";
2
2
  import { SignInResult } from "../sign_in/auth_flow/result/SignInResult.js";
3
3
  import { SignUpResult } from "../sign_up/auth_flow/result/SignUpResult.js";
4
- import { AccountRetrievalInputs, ResetPasswordInputs, SignInInputs, SignUpInputs } from "../CustomAuthActionInputs.js";
4
+ import { AccountRetrievalInputs, ResetPasswordInputs, SignInInputs, SignUpInputs, ResetPasswordInputsV2, SignInInputsV2, SignUpInputsV2 } from "../CustomAuthActionInputs.js";
5
5
  import { ResetPasswordStartResult } from "../reset_password/auth_flow/result/ResetPasswordStartResult.js";
6
6
  import { IController } from "../../controllers/IController.js";
7
+ import { ResetPasswordStartResultV2 } from "../core/auth_flow/v2/result/ResetPasswordStartResultV2.js";
8
+ import { SignInStartResultV2 } from "../sign_in/auth_flow/v2/result/SignInStartResultV2.js";
9
+ import { SignUpStartResultV2 } from "../sign_up/auth_flow/v2/result/SignUpStartResultV2.js";
7
10
  export interface ICustomAuthStandardController extends IController {
8
11
  getCurrentAccount(accountRetrievalInputs?: AccountRetrievalInputs): GetAccountResult;
9
12
  signIn(signInInputs: SignInInputs): Promise<SignInResult>;
10
13
  signUp(signUpInputs: SignUpInputs): Promise<SignUpResult>;
11
14
  resetPassword(resetPasswordInputs: ResetPasswordInputs): Promise<ResetPasswordStartResult>;
15
+ signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
16
+ signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
17
+ resetPasswordV2(inputs: ResetPasswordInputsV2): Promise<ResetPasswordStartResultV2>;
12
18
  }
13
19
  //# sourceMappingURL=ICustomAuthStandardController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ICustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/ICustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EACH,sBAAsB,EACtB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAK/D,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAM9D,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB,CAAC;IAOpB,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAO1D,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAO1D,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACxC"}
1
+ {"version":3,"file":"ICustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/ICustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EACH,sBAAsB,EACtB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAK5F,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAM9D,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB,CAAC;IAOpB,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAO1D,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAO1D,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAErC,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * An authentication method offered by the server during a native auth V2 flow.
3
+ * Each method describes one way the user can prove control of their account
4
+ * (for example an email one-time code), and is surfaced when the flow needs the
5
+ * app to pick a method before a challenge is issued. The app passes the selected
6
+ * method back to the SDK to request a challenge for it.
7
+ */
8
+ export interface AuthenticationMethodV2 {
9
+ id: string;
10
+ type: string;
11
+ hint?: string;
12
+ challengeHref: string;
13
+ }
14
+ //# sourceMappingURL=AuthenticationMethodV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticationMethodV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The native auth V2 flow that a result or error originates from (sign-in,
3
+ * sign-up, or password reset). It lets a shared result or error type report
4
+ * which entry flow produced it; `Unknown` is used when the flow cannot be
5
+ * determined.
6
+ */
7
+ export declare const CustomAuthFlowScenarioV2: {
8
+ readonly SignIn: "signIn";
9
+ readonly SignUp: "signUp";
10
+ readonly PasswordReset: "passwordReset";
11
+ readonly Unknown: "unknown";
12
+ };
13
+ export type CustomAuthFlowScenarioV2 = (typeof CustomAuthFlowScenarioV2)[keyof typeof CustomAuthFlowScenarioV2];
14
+ //# sourceMappingURL=CustomAuthFlowScenarioV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomAuthFlowScenarioV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAChC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { AuthFlowStateBase } from "../AuthFlowState.js";
2
+ import { CustomAuthError } from "../../error/CustomAuthError.js";
3
+ import { FailedStateV2 } from "./state/FailedStateV2.js";
4
+ import { AuthFlowErrorBaseV2 } from "./error/AuthFlowErrorBaseV2.js";
5
+ import { CustomAuthFlowScenarioV2 } from "./CustomAuthFlowScenarioV2.js";
6
+ type CreateWithErrorOptions<TError extends AuthFlowErrorBaseV2> = {
7
+ errorType: new (errorData: CustomAuthError, scenario?: CustomAuthFlowScenarioV2) => TError;
8
+ scenario?: CustomAuthFlowScenarioV2;
9
+ correlationId?: string;
10
+ };
11
+ /**
12
+ * Result of a native auth V2 operation. Use {@link CustomAuthResultV2.isState}
13
+ * to narrow the state before accessing its members.
14
+ */
15
+ export declare class CustomAuthResultV2<TState extends AuthFlowStateBase, TError extends AuthFlowErrorBaseV2, TData = void> {
16
+ readonly state: TState;
17
+ readonly data?: TData | undefined;
18
+ readonly scenario: CustomAuthFlowScenarioV2;
19
+ constructor(state: TState, data?: TData | undefined, scenario?: CustomAuthFlowScenarioV2);
20
+ error?: TError;
21
+ /**
22
+ * Narrows the result to a specific state by its `stateType` discriminator.
23
+ * A successful match makes the state's properties available without a cast.
24
+ * @param stateType - The state type to test for.
25
+ * @returns True (and narrows `state`) when the current state matches `stateType`.
26
+ */
27
+ isState<TType extends TState["stateType"]>(stateType: TType): this is this & {
28
+ state: Extract<TState, {
29
+ stateType: TType;
30
+ }>;
31
+ };
32
+ /**
33
+ * Checks whether the result is in the terminal failed state. A failed result
34
+ * contains the flow-specific error.
35
+ * @returns True (and narrows `state`) when the operation failed.
36
+ */
37
+ isFailed(): this is this & {
38
+ state: Extract<TState, {
39
+ stateType: "failed";
40
+ }>;
41
+ };
42
+ /**
43
+ * Creates a failed result from the supplied error. The result uses the
44
+ * shared {@link FailedStateV2} terminal state.
45
+ * @param error - The error that occurred.
46
+ * @param options - The flow-error type and error context.
47
+ * @returns A failed result carrying the flow-specific error.
48
+ */
49
+ static createWithError<TState extends AuthFlowStateBase, TError extends AuthFlowErrorBaseV2, TData = void>(error: unknown, options: CreateWithErrorOptions<TError>): CustomAuthResultV2<TState | FailedStateV2, TError, TData>;
50
+ private static createErrorData;
51
+ }
52
+ export {};
53
+ //# sourceMappingURL=CustomAuthResultV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomAuthResultV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGjE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,KAAK,sBAAsB,CAAC,MAAM,SAAS,mBAAmB,IAAI;IAC9D,SAAS,EAAE,KACP,SAAS,EAAE,eAAe,EAC1B,QAAQ,CAAC,EAAE,wBAAwB,KAClC,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,qBAAa,kBAAkB,CAC3B,MAAM,SAAS,iBAAiB,EAChC,MAAM,SAAS,mBAAmB,EAClC,KAAK,GAAG,IAAI;aAGQ,KAAK,EAAE,MAAM;aACb,IAAI,CAAC;aACL,QAAQ,EAAE,wBAAwB;gBAFlC,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,mBAAO,EACZ,QAAQ,GAAE,wBAA2D;IAGzF,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,OAAO,CAAC,KAAK,SAAS,MAAM,CAAC,WAAW,CAAC,EACrC,SAAS,EAAE,KAAK,GACjB,IAAI,IAAI,IAAI,GAAG;QAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE;YAAE,SAAS,EAAE,KAAK,CAAA;SAAE,CAAC,CAAA;KAAE;IAIlE;;;;OAIG;IACH,QAAQ,IAAI,IAAI,IAAI,IAAI,GAAG;QACvB,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE;YAAE,SAAS,EAAE,QAAQ,CAAA;SAAE,CAAC,CAAC;KACnD;IAID;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAClB,MAAM,SAAS,iBAAiB,EAChC,MAAM,SAAS,mBAAmB,EAClC,KAAK,GAAG,IAAI,EAEZ,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,sBAAsB,CAAC,MAAM,CAAC,GACxC,kBAAkB,CAAC,MAAM,GAAG,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC;IAsB5D,OAAO,CAAC,MAAM,CAAC,eAAe;CAiCjC"}
@@ -0,0 +1,40 @@
1
+ import type { CustomAuthError } from "../../../error/CustomAuthError.js";
2
+ import { CustomAuthFlowScenarioV2 } from "../CustomAuthFlowScenarioV2.js";
3
+ import type { AttributeValidationDetailV2 } from "../../../network_client/custom_auth_api/v2/response/ErrorResponsesV2.js";
4
+ export declare abstract class AuthFlowErrorBaseV2 {
5
+ errorData: CustomAuthError;
6
+ readonly scenario: CustomAuthFlowScenarioV2;
7
+ constructor(errorData: CustomAuthError, scenario?: CustomAuthFlowScenarioV2);
8
+ get correlationId(): string | undefined;
9
+ get errorCodes(): number[] | undefined;
10
+ get errorDescription(): string | undefined;
11
+ /**
12
+ * Checks if the error requires the flow to continue in the browser. The
13
+ * server surfaces this as a `redirect_to_web` failure, so a browser hand-off
14
+ * always arrives as a `FailedStateV2` on which this detector returns true.
15
+ * @returns True if the browser is required, false otherwise.
16
+ */
17
+ isBrowserRequired(): boolean;
18
+ /**
19
+ * Checks if the error is due to a caller-supplied argument failing
20
+ * client-side validation before the request was issued (for example an empty
21
+ * username, code, or password, or an unknown method id). Use it to prompt the
22
+ * user to correct the input rather than treating it as a server failure.
23
+ * @returns True if the input was invalid, false otherwise.
24
+ */
25
+ isInvalidInput(): boolean;
26
+ /**
27
+ * Checks whether an account already exists for the supplied identifier.
28
+ * This can occur at different stages while completing sign-up.
29
+ * @returns True if the account already exists, otherwise false.
30
+ */
31
+ isUserAlreadyExists(): boolean;
32
+ protected isUserNotFoundError(): boolean;
33
+ protected isUserInvalidError(): boolean;
34
+ protected isInvalidCodeError(): boolean;
35
+ protected isInvalidPasswordError(): boolean;
36
+ protected isPasswordPolicyViolationError(): boolean;
37
+ protected isPasswordIncorrectError(): boolean;
38
+ protected getAttributeValidationDetails(): AttributeValidationDetailV2[];
39
+ }
40
+ //# sourceMappingURL=AuthFlowErrorBaseV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthFlowErrorBaseV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAQzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yEAAyE,CAAC;AAO3H,8BAAsB,mBAAmB;IAI1B,SAAS,EAAE,eAAe;IAHrC,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;gBAGjC,SAAS,EAAE,eAAe,EACjC,QAAQ,GAAE,wBAA2D;IAKzE,IAAI,aAAa,IAAI,MAAM,GAAG,SAAS,CAEtC;IAED,IAAI,UAAU,IAAI,MAAM,EAAE,GAAG,SAAS,CAErC;IAED,IAAI,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAEzC;IAED;;;;;OAKG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;;;;OAMG;IACH,cAAc,IAAI,OAAO;IAIzB;;;;OAIG;IACH,mBAAmB,IAAI,OAAO;IAY9B,SAAS,CAAC,mBAAmB,IAAI,OAAO;IAOxC,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAWvC,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAQvC,SAAS,CAAC,sBAAsB,IAAI,OAAO;IAO3C,SAAS,CAAC,8BAA8B,IAAI,OAAO;IAUnD,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAO7C,SAAS,CAAC,6BAA6B,IAAI,2BAA2B,EAAE;CAc3E"}
@@ -0,0 +1,4 @@
1
+ export declare const INVALID_ONE_TIME_CODE = "invalidOneTimeCode";
2
+ export declare const INVALID_USERNAME_OR_PASSWORD = "invalidUserNameOrPassword";
3
+ export declare const PASSWORD_TOO_WEAK = "passwordTooWeak";
4
+ //# sourceMappingURL=AuthFlowErrorSubcodesV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthFlowErrorSubcodesV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,uBAAuB,CAAC;AAC1D,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AACxE,eAAO,MAAM,iBAAiB,oBAAoB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { AuthFlowErrorBaseV2 } from "./AuthFlowErrorBaseV2.js";
2
+ /**
3
+ * Error raised when requesting (or resending) a challenge for a selected
4
+ * authentication method. It is a shared action error bound to the shared
5
+ * `RequestChallengeResultV2` and returned regardless of which entry flow reached
6
+ * it. It currently exposes no action-specific detectors — only the inherited
7
+ * `isBrowserRequired()`.
8
+ */
9
+ export declare class RequestChallengeErrorV2 extends AuthFlowErrorBaseV2 {
10
+ }
11
+ //# sourceMappingURL=RequestChallengeErrorV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestChallengeErrorV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;;;;GAMG;AACH,qBAAa,uBAAwB,SAAQ,mBAAmB;CAAG"}
@@ -0,0 +1,23 @@
1
+ import { AuthFlowErrorBaseV2 } from "./AuthFlowErrorBaseV2.js";
2
+ /**
3
+ * Error raised by the first call of the native auth V2 reset-password flow
4
+ * (`resetPasswordV2`). It surfaces only the detectors relevant to starting a
5
+ * password reset, so an app inspecting `result.error` sees a small, focused set.
6
+ * Any unrecognised failure carries no specific detector; inspect the error code
7
+ * (`unexpected_error` when the server gives none) and `errorDescription`.
8
+ */
9
+ export declare class ResetPasswordStartErrorV2 extends AuthFlowErrorBaseV2 {
10
+ /**
11
+ * Checks if the supplied username is empty or invalid.
12
+ * @returns True if the username is invalid, false otherwise.
13
+ */
14
+ isInvalidUsername(): boolean;
15
+ /**
16
+ * Checks if the error is due to the user not being found. Use it to tell the
17
+ * user no account matches the supplied username, rather than exposing a
18
+ * generic failure that hides the real cause.
19
+ * @returns True if the user was not found, false otherwise.
20
+ */
21
+ isUserNotFound(): boolean;
22
+ }
23
+ //# sourceMappingURL=ResetPasswordStartErrorV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResetPasswordStartErrorV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;;;;GAMG;AACH,qBAAa,yBAA0B,SAAQ,mBAAmB;IAC9D;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;;;OAKG;IACH,cAAc,IAAI,OAAO;CAG5B"}
@@ -0,0 +1,18 @@
1
+ import { AuthFlowErrorBaseV2 } from "./AuthFlowErrorBaseV2.js";
2
+ /**
3
+ * Error raised when verifying a challenge (submitting a one-time code). It
4
+ * exposes the detectors relevant to code verification so the app can respond to
5
+ * a rejected code specifically. Unrecognised failures carry no specific
6
+ * detector; inspect the error code (`unexpected_error` when the server gives
7
+ * none) and `errorDescription`.
8
+ */
9
+ export declare class VerifyChallengeErrorV2 extends AuthFlowErrorBaseV2 {
10
+ /**
11
+ * Checks if the error is due to the provided code being invalid or expired.
12
+ * Use it to prompt the user to re-enter the code or request a new one, rather
13
+ * than restarting the whole flow.
14
+ * @returns True if the code is invalid, false otherwise.
15
+ */
16
+ isInvalidCode(): boolean;
17
+ }
18
+ //# sourceMappingURL=VerifyChallengeErrorV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyChallengeErrorV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;;;;GAMG;AACH,qBAAa,sBAAuB,SAAQ,mBAAmB;IAC3D;;;;;OAKG;IACH,aAAa,IAAI,OAAO;CAG3B"}
@@ -0,0 +1,7 @@
1
+ import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
2
+ import type { RequestChallengeErrorV2 } from "../error/RequestChallengeErrorV2.js";
3
+ import type { MFAVerificationRequiredStateV2 } from "../state/MFAVerificationRequiredStateV2.js";
4
+ import type { FailedStateV2 } from "../state/FailedStateV2.js";
5
+ export type MFARequestChallengeResultStateV2 = MFAVerificationRequiredStateV2 | FailedStateV2;
6
+ export type MFARequestChallengeResultV2 = CustomAuthResultV2<MFARequestChallengeResultStateV2, RequestChallengeErrorV2>;
7
+ //# sourceMappingURL=MFARequestChallengeResultV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MFARequestChallengeResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AACjG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,MAAM,gCAAgC,GACtC,8BAA8B,GAC9B,aAAa,CAAC;AAEpB,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CACxD,gCAAgC,EAChC,uBAAuB,CAC1B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
2
+ import type { RequestChallengeErrorV2 } from "../error/RequestChallengeErrorV2.js";
3
+ import type { FailedStateV2 } from "../state/FailedStateV2.js";
4
+ import type { MFAVerificationRequiredStateV2 } from "../state/MFAVerificationRequiredStateV2.js";
5
+ /**
6
+ * States returned after an app requests a replacement MFA challenge. The
7
+ * operation either returns refreshed verification metadata or a failed state.
8
+ */
9
+ export type MFAResendChallengeResultStateV2 = MFAVerificationRequiredStateV2 | FailedStateV2;
10
+ /**
11
+ * Result returned after an app requests a replacement MFA challenge. Inspect
12
+ * the state before prompting the user for the new email or SMS challenge.
13
+ */
14
+ export type MFAResendChallengeResultV2 = CustomAuthResultV2<MFAResendChallengeResultStateV2, RequestChallengeErrorV2>;
15
+ //# sourceMappingURL=MFAResendChallengeResultV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MFAResendChallengeResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAEjG;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GACrC,8BAA8B,GAC9B,aAAa,CAAC;AAEpB;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,CACvD,+BAA+B,EAC/B,uBAAuB,CAC1B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
2
+ import type { VerifyChallengeErrorV2 } from "../error/VerifyChallengeErrorV2.js";
3
+ import type { CompletedStateV2 } from "../state/CompletedStateV2.js";
4
+ import type { FailedStateV2 } from "../state/FailedStateV2.js";
5
+ import type { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
6
+ /**
7
+ * States returned after an app submits an MFA challenge. The operation either
8
+ * completes sign-in or returns a failed state with error details.
9
+ */
10
+ export type MFASubmitChallengeResultStateV2 = CompletedStateV2 | FailedStateV2;
11
+ /**
12
+ * Result returned after an app submits an MFA challenge. Inspect the state to
13
+ * determine whether sign-in completed or challenge verification failed.
14
+ */
15
+ export type MFASubmitChallengeResultV2 = CustomAuthResultV2<MFASubmitChallengeResultStateV2, VerifyChallengeErrorV2, CustomAuthAccountData>;
16
+ //# sourceMappingURL=MFASubmitChallengeResultV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MFASubmitChallengeResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,gBAAgB,GAAG,aAAa,CAAC;AAE/E;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,CACvD,+BAA+B,EAC/B,sBAAsB,EACtB,qBAAqB,CACxB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
2
+ import type { RequestChallengeErrorV2 } from "../error/RequestChallengeErrorV2.js";
3
+ import type { CodeRequiredStateV2 } from "../state/CodeRequiredStateV2.js";
4
+ import type { FailedStateV2 } from "../state/FailedStateV2.js";
5
+ /**
6
+ * The states a password-reset request-challenge action can resolve to.
7
+ * Password reset supports email one-time-code verification only.
8
+ */
9
+ export type RequestChallengeResultStateV2 = CodeRequiredStateV2 | FailedStateV2;
10
+ /**
11
+ * Result of requesting (or resending) a challenge. It wraps one of
12
+ * {@link RequestChallengeResultStateV2} plus, on failure, a
13
+ * {@link RequestChallengeErrorV2}.
14
+ */
15
+ export type RequestChallengeResultV2 = CustomAuthResultV2<RequestChallengeResultStateV2, RequestChallengeErrorV2>;
16
+ //# sourceMappingURL=RequestChallengeResultV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestChallengeResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG,mBAAmB,GAAG,aAAa,CAAC;AAEhF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,kBAAkB,CACrD,6BAA6B,EAC7B,uBAAuB,CAC1B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
2
+ import type { ResetPasswordStartErrorV2 } from "../error/ResetPasswordStartErrorV2.js";
3
+ import type { AuthMethodSelectionRequiredStateV2 } from "../state/AuthMethodSelectionRequiredStateV2.js";
4
+ import type { CodeRequiredStateV2 } from "../state/CodeRequiredStateV2.js";
5
+ import type { FailedStateV2 } from "../state/FailedStateV2.js";
6
+ /**
7
+ * The states a reset-password (V2) entry operation can resolve to. On success
8
+ * a sole method is challenged automatically; multiple methods require
9
+ * selection. `FailedStateV2` carries a terminal error.
10
+ */
11
+ export type ResetPasswordStartResultStateV2 = AuthMethodSelectionRequiredStateV2 | CodeRequiredStateV2 | FailedStateV2;
12
+ /**
13
+ * Result of starting a native auth V2 reset-password operation. It is returned
14
+ * by `resetPasswordV2` and wraps one of {@link ResetPasswordStartResultStateV2}
15
+ * plus, on failure, a {@link ResetPasswordStartErrorV2}.
16
+ */
17
+ export type ResetPasswordStartResultV2 = CustomAuthResultV2<ResetPasswordStartResultStateV2, ResetPasswordStartErrorV2>;
18
+ //# sourceMappingURL=ResetPasswordStartResultV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResetPasswordStartResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACzG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,+BAA+B,GACrC,kCAAkC,GAClC,mBAAmB,GACnB,aAAa,CAAC;AAEpB;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,CACvD,+BAA+B,EAC/B,yBAAyB,CAC5B,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
2
+ import type { VerifyChallengeErrorV2 } from "../error/VerifyChallengeErrorV2.js";
3
+ import type { NewPasswordRequiredStateV2 } from "../../../../reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.js";
4
+ import type { FailedStateV2 } from "../state/FailedStateV2.js";
5
+ import type { CompletedStateV2 } from "../state/CompletedStateV2.js";
6
+ import type { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
7
+ import type { AttributesRequiredStateV2 } from "../../../../sign_up/auth_flow/v2/state/AttributesRequiredStateV2.js";
8
+ import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2/state/SignInContinuationStateV2.js";
9
+ import type { SignUpPasswordRequiredStateV2 } from "../../../../sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.js";
10
+ import type { MFARequiredStateV2 } from "../state/MFARequiredStateV2.js";
11
+ /**
12
+ * The states a verify-challenge action can resolve to. Verifying the one-time
13
+ * code advances password reset to `NewPasswordRequiredStateV2` or completes
14
+ * MFA sign-in. Failures resolve to `FailedStateV2`.
15
+ */
16
+ export type VerifyChallengeResultStateV2 = NewPasswordRequiredStateV2 | SignUpPasswordRequiredStateV2 | AttributesRequiredStateV2 | SignInContinuationStateV2 | MFARequiredStateV2 | CompletedStateV2 | FailedStateV2;
17
+ /**
18
+ * Result of verifying a challenge. It wraps one of
19
+ * {@link VerifyChallengeResultStateV2} plus, on failure, a
20
+ * {@link VerifyChallengeErrorV2}.
21
+ */
22
+ export type VerifyChallengeResultV2 = CustomAuthResultV2<VerifyChallengeResultStateV2, VerifyChallengeErrorV2, CustomAuthAccountData | undefined>;
23
+ //# sourceMappingURL=VerifyChallengeResultV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyChallengeResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6EAA6E,CAAC;AAC9H,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACxG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;AACrH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;AACrH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yEAAyE,CAAC;AAC7H,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAClC,0BAA0B,GAC1B,6BAA6B,GAC7B,yBAAyB,GACzB,yBAAyB,GACzB,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,CAAC;AAEpB;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CACpD,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,GAAG,SAAS,CACpC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { AuthenticationMethodV2 } from "../AuthenticationMethodV2.js";
2
+ import type { AuthMethodSelectionRequiredStateParametersV2 } from "./CustomAuthStateParametersV2.js";
3
+ import type { RequestChallengeResultV2 } from "../result/RequestChallengeResultV2.js";
4
+ import { AuthenticationMethodSelectionStateBaseV2 } from "./AuthenticationMethodSelectionStateBaseV2.js";
5
+ /**
6
+ * State returned when the user must select one of several authentication
7
+ * methods before a challenge can be issued. It exposes the list of offered
8
+ * methods and lets the app request a challenge for the chosen one. The flow
9
+ * stays on this state until a challenge is successfully requested.
10
+ */
11
+ export declare class AuthMethodSelectionRequiredStateV2 extends AuthenticationMethodSelectionStateBaseV2<AuthMethodSelectionRequiredStateParametersV2> {
12
+ readonly stateType = "authMethodSelectionRequired";
13
+ /**
14
+ * Requests a challenge for the selected authentication method. The returned
15
+ * state identifies the credential the application must collect.
16
+ * @param method - The method to challenge, from {@link methods}.
17
+ * @returns The result of requesting the challenge.
18
+ */
19
+ requestChallenge(method: AuthenticationMethodV2): Promise<RequestChallengeResultV2>;
20
+ }
21
+ //# sourceMappingURL=AuthMethodSelectionRequiredStateV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthMethodSelectionRequiredStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAItE,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,kCAAkC,CAAC;AACrG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEtF,OAAO,EAAE,wCAAwC,EAAE,MAAM,+CAA+C,CAAC;AAKzG;;;;;GAKG;AACH,qBAAa,kCAAmC,SAAQ,wCAAwC,CAAC,4CAA4C,CAAC;IAC1I,QAAQ,CAAC,SAAS,iCAAiC;IAEnD;;;;;OAKG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,wBAAwB,CAAC;CAiEvC"}
@@ -0,0 +1,17 @@
1
+ import { AuthFlowActionRequiredStateBase } from "../../AuthFlowState.js";
2
+ import { AuthenticationMethodV2 } from "../AuthenticationMethodV2.js";
3
+ import type { CustomAuthActionRequiredStateParametersV2 } from "./CustomAuthStateParametersV2.js";
4
+ import type { FlowCodeRequiredResultV2, FlowPasswordRequiredResultV2 } from "../../../interaction_client/v2/result/FlowActionResultV2.js";
5
+ interface AuthenticationMethodSelectionStateParametersV2 extends CustomAuthActionRequiredStateParametersV2 {
6
+ methods: readonly AuthenticationMethodV2[];
7
+ }
8
+ export declare abstract class AuthenticationMethodSelectionStateBaseV2<TParameters extends AuthenticationMethodSelectionStateParametersV2> extends AuthFlowActionRequiredStateBase<TParameters> {
9
+ readonly methods: readonly AuthenticationMethodV2[];
10
+ constructor(stateParameters: TParameters);
11
+ protected requestSelectedMethodChallenge(method: AuthenticationMethodV2): Promise<{
12
+ result: FlowCodeRequiredResultV2 | FlowPasswordRequiredResultV2;
13
+ selectedMethod: AuthenticationMethodV2;
14
+ }>;
15
+ }
16
+ export {};
17
+ //# sourceMappingURL=AuthenticationMethodSelectionStateBaseV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticationMethodSelectionStateBaseV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAEzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,kCAAkC,CAAC;AAClG,OAAO,KAAK,EACR,wBAAwB,EACxB,4BAA4B,EAC/B,MAAM,6DAA6D,CAAC;AAErE,UAAU,8CACN,SAAQ,yCAAyC;IACjD,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;CAC9C;AAED,8BAAsB,wCAAwC,CAC1D,WAAW,SAAS,8CAA8C,CACpE,SAAQ,+BAA+B,CAAC,WAAW,CAAC;IAClD,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;gBAExC,eAAe,EAAE,WAAW;cAKxB,8BAA8B,CAC1C,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC;QACP,MAAM,EAAE,wBAAwB,GAAG,4BAA4B,CAAC;QAChE,cAAc,EAAE,sBAAsB,CAAC;KAC1C,CAAC;CAwBL"}