@azure/msal-browser 5.21.0 → 5.23.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 (564) 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 +23 -3
  5. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +5 -2
  7. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
  8. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  9. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +49 -0
  10. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -0
  11. package/dist/cache/AccountManager.mjs +1 -1
  12. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  13. package/dist/cache/BrowserCacheManager.mjs +1 -1
  14. package/dist/cache/CacheHelpers.mjs +1 -1
  15. package/dist/cache/CacheKeys.mjs +1 -1
  16. package/dist/cache/CookieStorage.mjs +1 -1
  17. package/dist/cache/DatabaseStorage.mjs +1 -1
  18. package/dist/cache/EncryptedData.mjs +1 -1
  19. package/dist/cache/LocalStorage.mjs +1 -1
  20. package/dist/cache/MemoryStorage.mjs +1 -1
  21. package/dist/cache/SessionStorage.mjs +1 -1
  22. package/dist/cache/TokenCache.mjs +1 -1
  23. package/dist/config/Configuration.mjs +1 -1
  24. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  25. package/dist/controllers/StandardController.mjs +1 -1
  26. package/dist/crypto/BrowserCrypto.mjs +1 -1
  27. package/dist/crypto/CryptoOps.mjs +1 -1
  28. package/dist/crypto/PkceGenerator.mjs +1 -1
  29. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  30. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  31. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  32. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +27 -2
  33. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  34. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +192 -2
  35. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  36. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  37. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  38. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  39. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  51. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  52. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  53. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +21 -0
  54. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -0
  55. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +80 -0
  56. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -0
  57. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +102 -0
  58. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +1 -0
  59. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +12 -0
  60. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -0
  61. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +20 -0
  62. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +1 -0
  63. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +36 -0
  64. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +1 -0
  65. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +29 -0
  66. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +1 -0
  67. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +76 -0
  68. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -0
  69. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +36 -0
  70. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +1 -0
  71. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +36 -0
  72. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -0
  73. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +134 -0
  74. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -0
  75. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +23 -0
  76. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -0
  77. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +22 -0
  78. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -0
  79. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +61 -0
  80. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +1 -0
  81. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +87 -0
  82. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -0
  83. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +3 -2
  84. package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
  85. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  86. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  87. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  88. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  89. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  90. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  91. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  92. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  93. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  94. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  95. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  96. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  97. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  98. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  99. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  100. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  101. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  102. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  103. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  104. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  105. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  106. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +602 -0
  107. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -0
  108. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +67 -0
  109. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -0
  110. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +46 -0
  111. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -0
  112. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  113. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  114. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +3 -2
  115. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
  116. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  117. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  118. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  119. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  120. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  121. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  122. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +30 -0
  123. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -0
  124. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +193 -0
  125. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -0
  126. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +236 -0
  127. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -0
  128. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +26 -0
  129. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +1 -0
  130. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +66 -0
  131. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -0
  132. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +97 -0
  133. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -0
  134. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +56 -0
  135. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +1 -0
  136. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +23 -0
  137. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -0
  138. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +14 -0
  139. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -0
  140. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  141. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +3 -2
  142. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +1 -1
  143. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +38 -0
  144. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -0
  145. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +20 -3
  146. package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
  147. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  148. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  149. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  150. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  151. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  152. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  153. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  154. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  155. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  156. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  157. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  158. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  159. package/dist/custom_auth/index.mjs +23 -1
  160. package/dist/custom_auth/index.mjs.map +1 -1
  161. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  162. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  163. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  164. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  165. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  166. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  167. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  168. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  169. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  170. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  171. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  172. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +29 -0
  173. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +1 -0
  174. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +59 -0
  175. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -0
  176. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  177. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  178. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  179. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  180. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  181. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  182. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  183. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  184. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  185. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  186. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  187. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  188. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  189. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +18 -0
  190. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +1 -0
  191. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +37 -0
  192. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +1 -0
  193. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +23 -0
  194. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +1 -0
  195. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +70 -0
  196. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
  197. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +61 -0
  198. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -0
  199. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  200. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  201. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  202. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  203. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  204. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  205. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  206. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  207. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  208. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  209. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  210. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  211. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  212. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  213. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +25 -0
  214. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +1 -0
  215. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +33 -0
  216. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +1 -0
  217. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +40 -0
  218. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -0
  219. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +25 -0
  220. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +1 -0
  221. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +47 -0
  222. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +1 -0
  223. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +60 -0
  224. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -0
  225. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  226. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  227. package/dist/encode/Base64Decode.mjs +1 -1
  228. package/dist/encode/Base64Encode.mjs +1 -1
  229. package/dist/error/BrowserAuthError.mjs +1 -1
  230. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  231. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  232. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  233. package/dist/error/NativeAuthError.mjs +1 -1
  234. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  235. package/dist/error/NestedAppAuthError.mjs +1 -1
  236. package/dist/event/EventHandler.mjs +1 -1
  237. package/dist/event/EventMessage.mjs +1 -1
  238. package/dist/event/EventType.mjs +1 -1
  239. package/dist/index.mjs +1 -1
  240. package/dist/index.mjs.map +1 -1
  241. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  242. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  243. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +8 -2
  244. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  245. package/dist/interaction_client/PopupClient.mjs +1 -1
  246. package/dist/interaction_client/RedirectClient.mjs +11 -8
  247. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  248. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  249. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  250. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  251. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  252. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  253. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  254. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  255. package/dist/log-strings-mapping.json +189 -5
  256. package/dist/naa/BridgeError.mjs +1 -1
  257. package/dist/naa/BridgeProxy.mjs +1 -1
  258. package/dist/naa/BridgeStatusCode.mjs +1 -1
  259. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  260. package/dist/navigation/NavigationClient.mjs +1 -1
  261. package/dist/network/FetchClient.mjs +1 -1
  262. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  263. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  264. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  265. package/dist/packageMetadata.mjs +2 -2
  266. package/dist/popup_relay/constants.mjs +1 -1
  267. package/dist/popup_relay/index.mjs +1 -1
  268. package/dist/popup_relay/relayClient.mjs +1 -1
  269. package/dist/protocol/Authorize.mjs +1 -1
  270. package/dist/redirect_bridge/index.mjs +1 -1
  271. package/dist/request/RequestHelpers.mjs +1 -1
  272. package/dist/response/ResponseHandler.mjs +1 -1
  273. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  274. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  275. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  276. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  277. package/dist/utils/BrowserConstants.mjs +1 -1
  278. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  279. package/dist/utils/BrowserUtils.mjs +1 -1
  280. package/dist/utils/Helpers.mjs +1 -1
  281. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  282. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  283. package/dist/webBrokerBridge/PerfEventNames.mjs +38 -0
  284. package/dist/webBrokerBridge/PerfEventNames.mjs.map +1 -0
  285. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  286. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  287. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +139 -0
  288. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs.map +1 -0
  289. package/dist/webBrokerBridge/index.mjs +8 -0
  290. package/dist/webBrokerBridge/index.mjs.map +1 -0
  291. package/lib/custom-auth-path/log-strings-mapping.json +195 -11
  292. package/lib/custom-auth-path/msal-custom-auth.cjs +2996 -204
  293. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  294. package/lib/custom-auth-path/msal-custom-auth.js +2996 -204
  295. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  296. package/lib/log-strings-mapping.json +2 -2
  297. package/lib/msal-browser.cjs +176 -87
  298. package/lib/msal-browser.cjs.map +1 -1
  299. package/lib/msal-browser.js +176 -87
  300. package/lib/msal-browser.js.map +1 -1
  301. package/lib/msal-browser.min.js +2 -2
  302. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  303. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  304. package/lib/popup-relay/msal-popup-relay.js +2 -2
  305. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  306. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  307. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  308. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  309. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  310. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  311. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  312. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +353 -0
  313. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs.map +1 -0
  314. package/package.json +19 -2
  315. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +40 -2
  316. package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +4 -1
  317. package/src/broker/nativeBroker/PlatformAuthRequest.ts +118 -6
  318. package/src/broker/nativeBroker/PlatformAuthResponse.ts +14 -1
  319. package/src/custom_auth/CustomAuthActionInputs.ts +11 -0
  320. package/src/custom_auth/CustomAuthPublicClientApplication.ts +40 -4
  321. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +44 -0
  322. package/src/custom_auth/controller/CustomAuthStandardController.ts +360 -1
  323. package/src/custom_auth/controller/ICustomAuthStandardController.ts +14 -0
  324. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +18 -0
  325. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +20 -0
  326. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +133 -0
  327. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +146 -0
  328. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +8 -0
  329. package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +15 -0
  330. package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +33 -0
  331. package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +25 -0
  332. package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +18 -0
  333. package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +26 -0
  334. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +26 -0
  335. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +25 -0
  336. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +30 -0
  337. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +40 -0
  338. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +100 -0
  339. package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +59 -0
  340. package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +53 -0
  341. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +196 -0
  342. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +16 -0
  343. package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +44 -0
  344. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +15 -0
  345. package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +76 -0
  346. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +119 -0
  347. package/src/custom_auth/core/error/CustomAuthApiError.ts +3 -1
  348. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +35 -0
  349. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +1145 -0
  350. package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +150 -0
  351. package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +66 -0
  352. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +185 -0
  353. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +1 -0
  354. package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +30 -0
  355. package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +423 -0
  356. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +553 -0
  357. package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +24 -0
  358. package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +81 -0
  359. package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +177 -0
  360. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +129 -0
  361. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +68 -0
  362. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +50 -0
  363. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.ts +20 -0
  364. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +202 -0
  365. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +111 -0
  366. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +26 -0
  367. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +44 -0
  368. package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +64 -0
  369. package/src/custom_auth/core/telemetry/PublicApiId.ts +18 -0
  370. package/src/custom_auth/index.ts +96 -0
  371. package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +25 -0
  372. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +33 -0
  373. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +69 -0
  374. package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.ts +9 -0
  375. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +13 -0
  376. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +35 -0
  377. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +19 -0
  378. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +31 -0
  379. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +32 -0
  380. package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +22 -0
  381. package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +96 -0
  382. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +83 -0
  383. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +12 -0
  384. package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +21 -0
  385. package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +32 -0
  386. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +28 -0
  387. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +20 -0
  388. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +48 -0
  389. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +34 -0
  390. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +63 -0
  391. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +24 -0
  392. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +112 -0
  393. package/src/index.ts +0 -2
  394. package/src/interaction_client/PlatformAuthInteractionClient.ts +23 -2
  395. package/src/interaction_client/RedirectClient.ts +15 -5
  396. package/src/packageMetadata.ts +1 -1
  397. package/src/webBrokerBridge/PerfEventNames.ts +43 -0
  398. package/src/webBrokerBridge/index.ts +28 -6
  399. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +1 -0
  400. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  401. package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
  402. package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +68 -5
  403. package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
  404. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +12 -1
  405. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
  406. package/types/custom_auth/CustomAuthActionInputs.d.ts +7 -0
  407. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  408. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  409. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +27 -5
  410. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  411. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +30 -0
  412. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -0
  413. package/types/custom_auth/controller/CustomAuthStandardController.d.ts +11 -2
  414. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  415. package/types/custom_auth/controller/ICustomAuthStandardController.d.ts +7 -1
  416. package/types/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -1
  417. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +14 -0
  418. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -0
  419. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +14 -0
  420. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -0
  421. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +53 -0
  422. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -0
  423. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +40 -0
  424. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +1 -0
  425. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +4 -0
  426. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -0
  427. package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +11 -0
  428. package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +1 -0
  429. package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +23 -0
  430. package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +1 -0
  431. package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +18 -0
  432. package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +1 -0
  433. package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +7 -0
  434. package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +1 -0
  435. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +15 -0
  436. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -0
  437. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +16 -0
  438. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -0
  439. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +16 -0
  440. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -0
  441. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +18 -0
  442. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -0
  443. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +23 -0
  444. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -0
  445. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +21 -0
  446. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -0
  447. package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +17 -0
  448. package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +1 -0
  449. package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +14 -0
  450. package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -0
  451. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +25 -0
  452. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -0
  453. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +11 -0
  454. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -0
  455. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +28 -0
  456. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -0
  457. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +10 -0
  458. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -0
  459. package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +18 -0
  460. package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +1 -0
  461. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +25 -0
  462. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -0
  463. package/types/custom_auth/core/error/CustomAuthApiError.d.ts +3 -1
  464. package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
  465. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +21 -0
  466. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -0
  467. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +35 -0
  468. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -0
  469. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +26 -0
  470. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -0
  471. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +43 -0
  472. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -0
  473. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +80 -0
  474. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -0
  475. package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -0
  476. package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  477. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +17 -0
  478. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -0
  479. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +31 -0
  480. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -0
  481. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +23 -0
  482. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -0
  483. package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +19 -0
  484. package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -0
  485. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts +2 -0
  486. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -0
  487. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +15 -0
  488. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -0
  489. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +52 -0
  490. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -0
  491. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts +3 -0
  492. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts.map +1 -0
  493. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts +37 -0
  494. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -0
  495. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts +12 -0
  496. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts.map +1 -0
  497. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +133 -0
  498. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -0
  499. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +70 -0
  500. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -0
  501. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +10 -0
  502. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -0
  503. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +33 -0
  504. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -0
  505. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +4 -0
  506. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -0
  507. package/types/custom_auth/core/telemetry/PublicApiId.d.ts +16 -0
  508. package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  509. package/types/custom_auth/index.d.ts +37 -0
  510. package/types/custom_auth/index.d.ts.map +1 -1
  511. package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +18 -0
  512. package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +1 -0
  513. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +22 -0
  514. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -0
  515. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +19 -0
  516. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -0
  517. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts +3 -0
  518. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts.map +1 -0
  519. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +9 -0
  520. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +1 -0
  521. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +22 -0
  522. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +1 -0
  523. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +12 -0
  524. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +1 -0
  525. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +21 -0
  526. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -0
  527. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +17 -0
  528. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -0
  529. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +9 -0
  530. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
  531. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +17 -0
  532. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
  533. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +24 -0
  534. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -0
  535. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +4 -0
  536. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -0
  537. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +14 -0
  538. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +1 -0
  539. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +20 -0
  540. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +1 -0
  541. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +15 -0
  542. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -0
  543. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +8 -0
  544. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -0
  545. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +15 -0
  546. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -0
  547. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +11 -0
  548. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +1 -0
  549. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +19 -0
  550. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +1 -0
  551. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +14 -0
  552. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -0
  553. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +10 -0
  554. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -0
  555. package/types/index.d.ts +0 -1
  556. package/types/index.d.ts.map +1 -1
  557. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  558. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  559. package/types/packageMetadata.d.ts +1 -1
  560. package/types/webBrokerBridge/PerfEventNames.d.ts +30 -0
  561. package/types/webBrokerBridge/PerfEventNames.d.ts.map +1 -0
  562. package/types/webBrokerBridge/index.d.cts +1 -0
  563. package/types/webBrokerBridge/index.d.ts +3 -5
  564. package/types/webBrokerBridge/index.d.ts.map +1 -1
@@ -0,0 +1,236 @@
1
+ /*! @azure/msal-browser v5.23.0 2026-09-23 */
2
+ 'use strict';
3
+ import { HttpMethod } from '../../http_client/IHttpClient.mjs';
4
+ import { BaseApiClientV2 } from './BaseApiClientV2.mjs';
5
+ import { VerifyNextActionV2, AuthenticationFactorV2, ChallengeNextActionV2 } from './result/BaseResultsV2.mjs';
6
+ import { SignUpSubmitAttributesNextActionV2 } from './result/SignUpResultsV2.mjs';
7
+ import { ResponseStateV2, COLLECT_ATTRIBUTES_RELATION, VERIFY_RELATION, AuthenticationMethodTypeV2, UPDATE_RELATION, CHALLENGE_RELATION, RISK_VERIFY_RELATION } from './ApiClientConstantsV2.mjs';
8
+ import { INVALID_HAL_RESPONSE, UNEXPECTED_AUTHENTICATION_FACTOR, NO_AUTHENTICATION_METHODS } from './ErrorCodesV2.mjs';
9
+ import { CustomAuthApiError } from '../../../error/CustomAuthApiError.mjs';
10
+
11
+ /*
12
+ * Copyright (c) Microsoft Corporation. All rights reserved.
13
+ * Licensed under the MIT License.
14
+ */
15
+ /*
16
+ * Native Auth V2 network client that follows server-provided HAL links.
17
+ * Flow-specific entry methods reuse shared challenge, verification, and token operations.
18
+ */
19
+ class CustomAuthApiClientV2 extends BaseApiClientV2 {
20
+ /*
21
+ * Starts the reset-password flow using a server-provided link.
22
+ */
23
+ async resetPasswordStart(resetPasswordHref, request, context) {
24
+ return this.sendStartRequest(resetPasswordHref, request, context);
25
+ }
26
+ /*
27
+ * Starts sign-in using a server-provided link.
28
+ */
29
+ async signInStart(signInHref, request, context) {
30
+ const result = await this.sendStartRequest(signInHref, request, context);
31
+ return result;
32
+ }
33
+ /*
34
+ * Starts sign-up using a server-provided link.
35
+ */
36
+ async signUpStart(signUpHref, request, context) {
37
+ const parsedResponse = await this.sendActionRequest(signUpHref, HttpMethod.POST, request, context);
38
+ return {
39
+ continuationToken: this.handler.requireContinuationToken(parsedResponse.continuationToken, parsedResponse.correlationId),
40
+ submitAttributesHref: this.handler.requireHref(parsedResponse.body._links?.submitAttributes?.href, "submitAttributes", parsedResponse.correlationId),
41
+ attributes: parsedResponse.body.attributes,
42
+ };
43
+ }
44
+ /*
45
+ * Submits the initial sign-up attributes. A successful response has already
46
+ * sent the email code and supplies the links needed to verify or resend it.
47
+ */
48
+ async submitSignUpAttributes(submitAttributesHref, request, context) {
49
+ const parsedResponse = await this.sendActionRequest(submitAttributesHref, HttpMethod.POST, request, context);
50
+ const correlationId = parsedResponse.correlationId;
51
+ const continuationToken = this.handler.requireContinuationToken(parsedResponse.continuationToken, correlationId);
52
+ if (parsedResponse.body.state === ResponseStateV2.CONTINUE) {
53
+ return {
54
+ nextAction: SignUpSubmitAttributesNextActionV2.CONTINUE,
55
+ continuationToken,
56
+ };
57
+ }
58
+ if (parsedResponse.body.action === COLLECT_ATTRIBUTES_RELATION) {
59
+ return {
60
+ nextAction: SignUpSubmitAttributesNextActionV2.COLLECT_ATTRIBUTES,
61
+ continuationToken,
62
+ attributes: parsedResponse.body.attributes ?? [],
63
+ submitAttributesHref: this.handler.requireHref(parsedResponse.body._links?.submitAttributes?.href, "submitAttributes", correlationId),
64
+ };
65
+ }
66
+ if (parsedResponse.body.action === VERIFY_RELATION) {
67
+ return {
68
+ ...this.toChallengeVerificationResult(parsedResponse),
69
+ attributes: parsedResponse.body.attributes,
70
+ };
71
+ }
72
+ const message = "Invalid HAL response: sign-up attribute submission returned no known next action";
73
+ this.logger?.error(message, correlationId);
74
+ throw new CustomAuthApiError(INVALID_HAL_RESPONSE, message, correlationId);
75
+ }
76
+ /*
77
+ * Requests the selected method's challenge and returns the data needed for verification.
78
+ */
79
+ async requestChallenge(challengeHref, request, context) {
80
+ const parsedResponse = await this.sendActionRequest(challengeHref, HttpMethod.POST, request, context);
81
+ return this.toChallengeResult(parsedResponse);
82
+ }
83
+ async verifyRisk(riskVerifyHref, request, context) {
84
+ const parsedResponse = await this.sendActionRequest(riskVerifyHref, HttpMethod.POST, request, context);
85
+ if (parsedResponse.body.action !== VERIFY_RELATION) {
86
+ throw new CustomAuthApiError(INVALID_HAL_RESPONSE, "Invalid HAL response: SMS risk verification returned no known next action", parsedResponse.correlationId);
87
+ }
88
+ if (parsedResponse.body.type?.toLowerCase() !==
89
+ AuthenticationMethodTypeV2.SMS) {
90
+ throw new CustomAuthApiError(INVALID_HAL_RESPONSE, "Invalid HAL response: SMS risk verification returned a non-SMS challenge", parsedResponse.correlationId);
91
+ }
92
+ return this.toChallengeVerificationResult(parsedResponse);
93
+ }
94
+ /*
95
+ * Verifies the submitted credential and returns the server-directed next action.
96
+ */
97
+ async verifyChallenge(verifyHref, request, context) {
98
+ const parsedResponse = await this.sendActionRequest(verifyHref, HttpMethod.POST, request, context);
99
+ return this.toVerifyResult(parsedResponse);
100
+ }
101
+ /*
102
+ * Submits the new password and returns the link used to poll for completion.
103
+ */
104
+ async submitNewPassword(updateHref, request, context) {
105
+ const parsedResponse = await this.sendActionRequest(updateHref, HttpMethod.PUT, request, context);
106
+ const nextContinuationToken = this.handler.requireContinuationToken(parsedResponse.continuationToken, parsedResponse.correlationId);
107
+ return {
108
+ continuationToken: nextContinuationToken,
109
+ pollHref: this.handler.requireHref(parsedResponse.body._links?.poll?.href, "poll", parsedResponse.correlationId),
110
+ };
111
+ }
112
+ /*
113
+ * Polls once for reset completion and returns the next server-provided link.
114
+ */
115
+ async poll(pollHref, request, context) {
116
+ const parsedResponse = await this.sendActionRequest(pollHref, HttpMethod.POST, request, context);
117
+ const isCompleted = parsedResponse.body.state === ResponseStateV2.CONTINUE;
118
+ return {
119
+ continuationToken: parsedResponse.continuationToken ?? request.continuationToken,
120
+ isCompleted,
121
+ pollHref: isCompleted
122
+ ? undefined
123
+ : this.handler.requireHref(parsedResponse.body._links?.poll?.href, "poll", parsedResponse.correlationId),
124
+ };
125
+ }
126
+ async sendStartRequest(startHref, request, context) {
127
+ const parsedResponse = await this.sendActionRequest(startHref, HttpMethod.POST, request, context);
128
+ const continuationToken = this.handler.requireContinuationToken(parsedResponse.continuationToken, parsedResponse.correlationId);
129
+ return {
130
+ continuationToken,
131
+ methods: this.resolveMethods(parsedResponse.body, parsedResponse.correlationId),
132
+ authenticationFactor: this.resolveAuthenticationFactor(parsedResponse.body.challengeContext?.authenticationFactor, parsedResponse.correlationId),
133
+ scenario: parsedResponse.body.scenario,
134
+ };
135
+ }
136
+ toVerifyResult(parsedResponse) {
137
+ const correlationId = parsedResponse.correlationId;
138
+ const continuationToken = this.handler.requireContinuationToken(parsedResponse.continuationToken, correlationId);
139
+ if (parsedResponse.body.state === ResponseStateV2.CONTINUE) {
140
+ return {
141
+ nextAction: VerifyNextActionV2.CONTINUE,
142
+ continuationToken,
143
+ };
144
+ }
145
+ if (parsedResponse.body.action === COLLECT_ATTRIBUTES_RELATION) {
146
+ return {
147
+ nextAction: VerifyNextActionV2.COLLECT_ATTRIBUTES,
148
+ continuationToken,
149
+ attributes: parsedResponse.body.attributes ?? [],
150
+ submitAttributesHref: this.handler.requireHref(parsedResponse.body._links?.submitAttributes?.href, "submitAttributes", correlationId),
151
+ };
152
+ }
153
+ if (parsedResponse.body.action === UPDATE_RELATION) {
154
+ return {
155
+ nextAction: VerifyNextActionV2.UPDATE,
156
+ continuationToken,
157
+ updateHref: this.handler.requireHref(parsedResponse.body._links?.update?.href, "update", correlationId),
158
+ };
159
+ }
160
+ if (parsedResponse.body.action === CHALLENGE_RELATION) {
161
+ return {
162
+ nextAction: VerifyNextActionV2.CHALLENGE,
163
+ continuationToken,
164
+ authenticationFactor: this.resolveAuthenticationFactor(parsedResponse.body.challengeContext?.authenticationFactor, correlationId),
165
+ methods: this.resolveMethods(parsedResponse.body, correlationId),
166
+ };
167
+ }
168
+ throw new CustomAuthApiError(INVALID_HAL_RESPONSE, "Invalid HAL response: verify returned no known next action", correlationId);
169
+ }
170
+ resolveAuthenticationFactor(authenticationFactor, correlationId) {
171
+ if (authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR ||
172
+ authenticationFactor === AuthenticationFactorV2.MULTI_FACTOR) {
173
+ return authenticationFactor;
174
+ }
175
+ const message = authenticationFactor
176
+ ? `Unexpected authentication factor '${authenticationFactor}'.`
177
+ : "The response did not include an authentication factor.";
178
+ this.logger?.error(message, correlationId);
179
+ throw new CustomAuthApiError(UNEXPECTED_AUTHENTICATION_FACTOR, message, correlationId);
180
+ }
181
+ toChallengeResult(parsedResponse) {
182
+ if (parsedResponse.body.action === RISK_VERIFY_RELATION) {
183
+ const riskResponse = parsedResponse.body;
184
+ return {
185
+ nextAction: ChallengeNextActionV2.RISK_VERIFY,
186
+ continuationToken: this.handler.requireContinuationToken(parsedResponse.continuationToken, parsedResponse.correlationId),
187
+ riskVerifyHref: this.handler.requireHref(riskResponse._links?.riskverify?.href, RISK_VERIFY_RELATION, parsedResponse.correlationId),
188
+ };
189
+ }
190
+ if (parsedResponse.body.action === VERIFY_RELATION) {
191
+ return this.toChallengeVerificationResult(parsedResponse);
192
+ }
193
+ throw new CustomAuthApiError(INVALID_HAL_RESPONSE, "Invalid HAL response: challenge returned no known next action", parsedResponse.correlationId);
194
+ }
195
+ toChallengeVerificationResult(parsedResponse) {
196
+ const continuationToken = this.handler.requireContinuationToken(parsedResponse.continuationToken, parsedResponse.correlationId);
197
+ const links = parsedResponse.body._links;
198
+ const codeMetadata = "hint" in parsedResponse.body ||
199
+ "codeLength" in parsedResponse.body ||
200
+ "payload" in parsedResponse.body
201
+ ? parsedResponse.body
202
+ : undefined;
203
+ return {
204
+ nextAction: ChallengeNextActionV2.VERIFY,
205
+ continuationToken,
206
+ verifyHref: this.handler.requireHref(links?.verify?.href, "verify", parsedResponse.correlationId),
207
+ resendHref: links && "resend" in links ? links.resend?.href : undefined,
208
+ codeLength: codeMetadata?.codeLength ?? codeMetadata?.payload?.codeLength,
209
+ hint: codeMetadata?.hint,
210
+ type: parsedResponse.body.type,
211
+ };
212
+ }
213
+ resolveMethods(body, correlationId) {
214
+ const methods = this.handler.requireMethods(body._embedded?.methods, correlationId);
215
+ const resolved = [];
216
+ methods.forEach((method, index) => {
217
+ const href = method._links?.challenge?.href;
218
+ if (href) {
219
+ resolved.push({
220
+ id: method.id ?? method.type ?? `method-${index}`,
221
+ type: method.type,
222
+ hint: method.hint,
223
+ challengeHref: href,
224
+ });
225
+ }
226
+ });
227
+ if (resolved.length === 0) {
228
+ this.logger?.error("1poo9g", correlationId);
229
+ throw new CustomAuthApiError(NO_AUTHENTICATION_METHODS, "The flow-start response contains no authentication method with a challenge link", correlationId);
230
+ }
231
+ return resolved;
232
+ }
233
+ }
234
+
235
+ export { CustomAuthApiClientV2 };
236
+ //# sourceMappingURL=CustomAuthApiClientV2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomAuthApiClientV2.mjs","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;AAmEH;;;AAGG;AACG,MAAO,qBAAsB,SAAQ,eAAe,CAAA;AACtD;;AAEG;AACH,IAAA,MAAM,kBAAkB,CACpB,iBAAyB,EACzB,OAAoC,EACpC,OAAyB,EAAA;QAEzB,OAAO,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;AAED;;AAEG;AACH,IAAA,MAAM,WAAW,CACb,UAAkB,E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MIT License.
6
+ */
7
+ const HTTP_REQUEST_FAILED = "http_request_failed";
8
+ const REDIRECT_TO_WEB = "redirect_to_web";
9
+ const UNEXPECTED_ERROR = "unexpected_error";
10
+ const AUTH_CODE_MISSING = "authorization_code_missing";
11
+ const INVALID_TOKEN_RESPONSE = "invalid_token_response";
12
+ const INVALID_RESPONSE_BODY = "invalid_response_body";
13
+ const CONTINUATION_TOKEN_MISSING = "continuation_token_missing";
14
+ const INVALID_HAL_RESPONSE = "invalid_hal_response";
15
+ const RESET_PASSWORD_UNSUPPORTED = "reset_password_unsupported";
16
+ const SIGN_IN_UNSUPPORTED = "sign_in_unsupported";
17
+ const SIGN_UP_UNSUPPORTED = "sign_up_unsupported";
18
+ const CONTINUATION_LINK_MISSING = "continuation_link_missing";
19
+ const RESET_PASSWORD_TIMEOUT = "reset_password_timeout";
20
+ const UNSUPPORTED_FLOW_STEP = "unsupported_flow_step";
21
+ const UNSUPPORTED_FLOW_TRANSITION = "unsupported_flow_transition";
22
+ const NO_AUTHENTICATION_METHODS = "no_authentication_methods";
23
+ const UNEXPECTED_AUTHENTICATION_FACTOR = "unexpected_authentication_factor";
24
+
25
+ export { AUTH_CODE_MISSING, CONTINUATION_LINK_MISSING, CONTINUATION_TOKEN_MISSING, HTTP_REQUEST_FAILED, INVALID_HAL_RESPONSE, INVALID_RESPONSE_BODY, INVALID_TOKEN_RESPONSE, NO_AUTHENTICATION_METHODS, REDIRECT_TO_WEB, RESET_PASSWORD_TIMEOUT, RESET_PASSWORD_UNSUPPORTED, SIGN_IN_UNSUPPORTED, SIGN_UP_UNSUPPORTED, UNEXPECTED_AUTHENTICATION_FACTOR, UNEXPECTED_ERROR, UNSUPPORTED_FLOW_STEP, UNSUPPORTED_FLOW_TRANSITION };
26
+ //# sourceMappingURL=ErrorCodesV2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorCodesV2.mjs","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,eAAe,GAAG,kBAAkB;AAC1C,MAAM,gBAAgB,GAAG,mBAAmB;AAE5C,MAAM,iBAAiB,GAAG,6BAA6B;AACvD,MAAM,sBAAsB,GAAG,yBAAyB;AACxD,MAAM,qBAAqB,GAAG,wBAAwB;AACtD,MAAM,0BAA0B,GAAG,6BAA6B;AAChE,MAAM,oBAAoB,GAAG,uBAAuB;AACpD,MAAM,0BAA0B,GAAG,6BAA6B;AAChE,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,yBAAyB,GAAG,4BAA4B;AAC9D,MAAM,sBAAsB,GAAG,yBAAyB;AACxD,MAAM,qBAAqB,GAAG,wBAAwB;AACtD,MAAM,2BAA2B,GAAG,8BAA8B;AAClE,MAAM,yBAAyB,GAAG,4BAA4B;AAC9D,MAAM,gCAAgC,GACzC;;;;"}
@@ -0,0 +1,66 @@
1
+ /*! @azure/msal-browser v5.23.0 2026-09-23 */
2
+ 'use strict';
3
+ import { ParsedUrlError } from '../../../error/ParsedUrlError.mjs';
4
+ import { InvalidUrl } from '../../../error/ParsedUrlErrorCodes.mjs';
5
+
6
+ /*
7
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8
+ * Licensed under the MIT License.
9
+ */
10
+ const API_MARKERS = ["/api/", "/oauth2/"];
11
+ /*
12
+ * Resolves a HAL href against the configured authority. Absolute HTTP(S) URLs
13
+ * pass through; relative URLs retain their API path and query while using the
14
+ * configured tenant path.
15
+ *
16
+ * TODO: Remove tenant-path rewriting once the service consistently returns links that can be
17
+ * resolved directly against the configured authority.
18
+ */
19
+ function resolveHrefV2(base, href) {
20
+ const trimmed = href.trim();
21
+ if (!trimmed) {
22
+ throw new ParsedUrlError(InvalidUrl, "The HAL href cannot be empty");
23
+ }
24
+ const absolute = tryParseAbsolute(trimmed);
25
+ if (absolute) {
26
+ return absolute;
27
+ }
28
+ let resolved;
29
+ try {
30
+ resolved = new URL(trimmed, base.origin);
31
+ }
32
+ catch (e) {
33
+ throw new ParsedUrlError(InvalidUrl, `The HAL href "${href}" could not be resolved: ${e}`);
34
+ }
35
+ if (resolved.protocol !== "http:" && resolved.protocol !== "https:") {
36
+ throw new ParsedUrlError(InvalidUrl, `The HAL href "${href}" must use the HTTP or HTTPS protocol`);
37
+ }
38
+ const tenantPath = base.pathname.endsWith("/")
39
+ ? base.pathname.slice(0, -1)
40
+ : base.pathname;
41
+ resolved.pathname = tenantPath + apiPath(resolved.pathname);
42
+ return resolved;
43
+ }
44
+ function tryParseAbsolute(href) {
45
+ try {
46
+ const url = new URL(href);
47
+ return url.protocol === "http:" || url.protocol === "https:"
48
+ ? url
49
+ : undefined;
50
+ }
51
+ catch {
52
+ return undefined;
53
+ }
54
+ }
55
+ function apiPath(path) {
56
+ for (const marker of API_MARKERS) {
57
+ const index = path.indexOf(marker);
58
+ if (index >= 0) {
59
+ return path.slice(index);
60
+ }
61
+ }
62
+ return path.startsWith("/") ? path : `/${path}`;
63
+ }
64
+
65
+ export { resolveHrefV2 };
66
+ //# sourceMappingURL=HrefResolverV2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HrefResolverV2.mjs","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAKH,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAE1C;;;;;;;AAOG;AACG,SAAU,aAAa,CAAC,IAAS,EAAE,IAAY,EAAA;AACjD,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAE5B,IAAI,CAAC,OAAO,EAAE;AACV,QAAA,MAAM,IAAI,cAAc,CAAC,UAAU,EAAE,8BAA8B,CAAC,CAAC;AACxE,IAAA,CAAA;AAED,IAAA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O,SAAS,CAAC;AACpB,IAAA,CAAA;AACL,CAAC;AAED,SAAS,OAAO,CAAC,IAAY,EAAA;AACzB,IAAA,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE;QAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAEnC,IAAI,KAAK,IAAI,CAAC,EAAE;AACZ,YAAA,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5B,QAAA,CAAA;AACJ,IAAA,CAAA;AAED,IAAA,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,CAAA,CAAA,EAAI,IAAI,EAAE,CAAC;AACpD;;;;"}
@@ -0,0 +1,97 @@
1
+ /*! @azure/msal-browser v5.23.0 2026-09-23 */
2
+ 'use strict';
3
+ import { HttpHeaderKeys } from '../../../../CustomAuthConstants.mjs';
4
+ import { CustomAuthApiError } from '../../../error/CustomAuthApiError.mjs';
5
+ import { normalizeServerErrorV2 } from './response/ErrorNormalizerV2.mjs';
6
+ import { ResponseStateV2 } from './ApiClientConstantsV2.mjs';
7
+ import { INVALID_HAL_RESPONSE, CONTINUATION_TOKEN_MISSING, NO_AUTHENTICATION_METHODS, INVALID_RESPONSE_BODY, REDIRECT_TO_WEB } from './ErrorCodesV2.mjs';
8
+
9
+ /*
10
+ * Copyright (c) Microsoft Corporation. All rights reserved.
11
+ * Licensed under the MIT License.
12
+ */
13
+ /*
14
+ * Turns a raw HTTP response from a V2 endpoint into a typed, checked envelope, and validates HAL
15
+ * relations. Raw-preserving: the body keeps its HAL `_links`/`_embedded` shape so the api-client
16
+ * navigates typed hrefs directly. Parsing never throws on a non-200 status - every V2 response
17
+ * (including the entry response) carries a meaningful body, so only a non-object body is a hard
18
+ * failure; the wire error is normalized onto the envelope (`error`). Required response values use
19
+ * shared guards after callers read their strongly typed response properties directly.
20
+ */
21
+ class ResponseHandlerV2 {
22
+ constructor(logger) {
23
+ this.logger = logger;
24
+ }
25
+ async parseResponse(response, requestCorrelationId) {
26
+ const correlationId = response.headers.get(HttpHeaderKeys.X_MS_REQUEST_ID) ??
27
+ requestCorrelationId;
28
+ const json = await this.parseBody(response, correlationId);
29
+ const state = typeof json.state === "string" ? json.state : undefined;
30
+ const continuationToken = (typeof json.continuationToken === "string"
31
+ ? json.continuationToken
32
+ : undefined) ??
33
+ (typeof json.continuation_token === "string"
34
+ ? json.continuation_token
35
+ : undefined);
36
+ const flatError = typeof json.error === "string" ? json.error : undefined;
37
+ const isWebFallbackRequired = flatError === REDIRECT_TO_WEB ||
38
+ state === ResponseStateV2.WEB_FALLBACK_REQUIRED;
39
+ const error = normalizeServerErrorV2(json);
40
+ // Surface the header correlation id on the body (HalResponseBaseV2.correlationId).
41
+ json.correlationId = correlationId;
42
+ return {
43
+ statusCode: response.status,
44
+ correlationId,
45
+ continuationToken,
46
+ isWebFallbackRequired,
47
+ error,
48
+ body: json,
49
+ };
50
+ }
51
+ // Required href; throws when it is absent.
52
+ requireHref(href, relation, correlationId, missingHrefError) {
53
+ if (!href) {
54
+ const errorCode = missingHrefError?.code ?? INVALID_HAL_RESPONSE;
55
+ const errorMessage = missingHrefError?.message ??
56
+ `Invalid HAL response: missing '${relation}' link`;
57
+ this.logger?.error(errorMessage, correlationId);
58
+ throw new CustomAuthApiError(errorCode, errorMessage, correlationId);
59
+ }
60
+ return href;
61
+ }
62
+ // Required continuation token to advance the flow; throws when absent.
63
+ requireContinuationToken(continuationToken, correlationId) {
64
+ if (!continuationToken) {
65
+ this.logger?.error("0a3z6v", correlationId);
66
+ throw new CustomAuthApiError(CONTINUATION_TOKEN_MISSING, "Continuation token is missing in the response", correlationId);
67
+ }
68
+ return continuationToken;
69
+ }
70
+ // Required embedded auth methods; throws when `_embedded.methods` is absent or empty.
71
+ requireMethods(methods, correlationId) {
72
+ if (!methods?.length) {
73
+ this.logger?.error("0u0cak", correlationId);
74
+ throw new CustomAuthApiError(NO_AUTHENTICATION_METHODS, "Invalid HAL response: no embedded authentication methods", correlationId);
75
+ }
76
+ return methods;
77
+ }
78
+ async parseBody(response, correlationId) {
79
+ let json;
80
+ try {
81
+ json = await response.json();
82
+ }
83
+ catch (e) {
84
+ this.logger?.error("0fc89v", correlationId);
85
+ throw new CustomAuthApiError(INVALID_RESPONSE_BODY, `V2 response body is not valid JSON: '${e}'`, correlationId);
86
+ }
87
+ // response.json() accepts primitives/arrays; every V2 body must be a JSON object.
88
+ if (typeof json !== "object" || json === null || Array.isArray(json)) {
89
+ this.logger?.error("09w4yw", correlationId);
90
+ throw new CustomAuthApiError(INVALID_RESPONSE_BODY, "V2 response body is not a JSON object", correlationId);
91
+ }
92
+ return json;
93
+ }
94
+ }
95
+
96
+ export { ResponseHandlerV2 };
97
+ //# sourceMappingURL=ResponseHandlerV2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResponseHandlerV2.mjs","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;AAgBH;;;;;;;AAOG;MACU,iBAAiB,CAAA;AAC1B,IAAA,WAAA,CAA6B,MAAe,EAAA;QAAf,IAAA,CAAA,MAAM,GAAN,MAAM,CAAS;IAAG,CAAC;AAEhD,IAAA,MAAM,aAAa,CACf,QAAkB,EAClB,oBAA4B,EAAA;QAE5B,MAAM,aAAa,GACf,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,eAAe,CAAC;AACpD,YAAA,oBAAoB,CAAC;QAEzB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAE3D,QAAA,MAAM,KAAK,GAAG,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,GAAG,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QAEtE,MAAM,iBAAiB,GACnB,CAAC,OAAO,IAAI,CAAC,iBAAiB,KAA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"}
@@ -0,0 +1,56 @@
1
+ /*! @azure/msal-browser v5.23.0 2026-09-23 */
2
+ 'use strict';
3
+ import { UNEXPECTED_ERROR } from '../ErrorCodesV2.mjs';
4
+
5
+ /*
6
+ * Copyright (c) Microsoft Corporation. All rights reserved.
7
+ * Licensed under the MIT License.
8
+ */
9
+ /*
10
+ * Normalizes nested HAL and flat OAuth error bodies into a `ServerErrorV2`.
11
+ * Returns `undefined` when the response contains no recognized error.
12
+ */
13
+ function normalizeServerErrorV2(body) {
14
+ const error = body.error;
15
+ if (error && typeof error === "object") {
16
+ return normalizeHalError(body);
17
+ }
18
+ if (typeof error === "string") {
19
+ return normalizeOAuthError(body);
20
+ }
21
+ return undefined;
22
+ }
23
+ function normalizeHalError(response) {
24
+ const error = response.error ?? {};
25
+ return {
26
+ code: readString(error.code) ?? UNEXPECTED_ERROR,
27
+ message: readString(error.message),
28
+ innerErrorCode: readString(error.innerError?.code),
29
+ attributeValidationDetails: error.innerError?.details,
30
+ correlationId: readString(error.correlationId),
31
+ traceId: readString(error.traceId),
32
+ timestamp: readString(error.timestamp),
33
+ };
34
+ }
35
+ function normalizeOAuthError(response) {
36
+ return {
37
+ code: readString(response.error) ?? UNEXPECTED_ERROR,
38
+ message: readString(response.error_description),
39
+ errorCodes: readNumberArray(response.error_codes),
40
+ correlationId: readString(response.correlation_id),
41
+ traceId: readString(response.trace_id),
42
+ timestamp: readString(response.timestamp),
43
+ };
44
+ }
45
+ function readString(value) {
46
+ return typeof value === "string" ? value : undefined;
47
+ }
48
+ function readNumberArray(value) {
49
+ if (Array.isArray(value) && value.every((v) => typeof v === "number")) {
50
+ return value;
51
+ }
52
+ return undefined;
53
+ }
54
+
55
+ export { normalizeServerErrorV2 };
56
+ //# sourceMappingURL=ErrorNormalizerV2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorNormalizerV2.mjs","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts"],"sourc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C,QAAQ,CAAC,WAAW,CAAC;AACjD,QAAA,aAAa,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC;AAClD,QAAA,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC;AACtC,QAAA,SAAS,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC;KAC5C,CAAC;AACN,CAAC;AAED,SAAS,UAAU,CAAC,KAAc,EAAA;AAC9B,IAAA,OAAO,OAAO,KAAK,KAAK,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AACzD,CAAC;AAED,SAAS,eAAe,CAAC,KAAc,EAAA;IACnC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,KAAK,QAAQ,CAAC,EAAE;AACnE,QAAA,OAAO,KAAiB,CAAC;AAC5B,IAAA,CAAA;AAED,IAAA,OAAO,SAAS,CAAC;AACrB;;;;"}
@@ -0,0 +1,23 @@
1
+ /*! @azure/msal-browser v5.23.0 2026-09-23 */
2
+ 'use strict';
3
+ /*
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License.
6
+ */
7
+ const AuthenticationFactorV2 = {
8
+ SINGLE_FACTOR: "singleFactor",
9
+ MULTI_FACTOR: "multiFactor",
10
+ };
11
+ const ChallengeNextActionV2 = {
12
+ VERIFY: "verify",
13
+ RISK_VERIFY: "riskVerify",
14
+ };
15
+ const VerifyNextActionV2 = {
16
+ UPDATE: "update",
17
+ CONTINUE: "continue",
18
+ CHALLENGE: "challenge",
19
+ COLLECT_ATTRIBUTES: "collectAttributes",
20
+ };
21
+
22
+ export { AuthenticationFactorV2, ChallengeNextActionV2, VerifyNextActionV2 };
23
+ //# sourceMappingURL=BaseResultsV2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseResultsV2.mjs","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AA4BI,MAAM,sBAAsB,GAAG;AAClC,IAAA,aAAa,EAAE,cAAc;AAC7B,IAAA,YAAY,EAAE,aAAa;EACpB;AAmBJ,MAAM,qBAAqB,GAAG;AACjC,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,WAAW,EAAE,YAAY;EAClB;AAsBJ,MAAM,kBAAkB,GAAG;AAC9B,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,kBAAkB,EAAE,mBAAmB;;;;;"}
@@ -0,0 +1,14 @@
1
+ /*! @azure/msal-browser v5.23.0 2026-09-23 */
2
+ 'use strict';
3
+ /*
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License.
6
+ */
7
+ const SignUpSubmitAttributesNextActionV2 = {
8
+ VERIFY: "verify",
9
+ COLLECT_ATTRIBUTES: "collectAttributes",
10
+ CONTINUE: "continue",
11
+ };
12
+
13
+ export { SignUpSubmitAttributesNextActionV2 };
14
+ //# sourceMappingURL=SignUpResultsV2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignUpResultsV2.mjs","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAoBI,MAAM,kCAAkC,GAAG;AAC9C,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,kBAAkB,EAAE,mBAAmB;AACvC,IAAA,QAAQ,EAAE,UAAU;;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.21.0 2026-09-02 */
1
+ /*! @azure/msal-browser v5.23.0 2026-09-23 */
2
2
  'use strict';
3
3
  import { HttpMethod } from './IHttpClient.mjs';
4
4
  import { HttpError } from '../../error/HttpError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.21.0 2026-09-02 */
1
+ /*! @azure/msal-browser v5.23.0 2026-09-23 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9,7 +9,8 @@
9
9
  */
10
10
  const HttpMethod = {
11
11
  GET: "GET",
12
- POST: "POST"};
12
+ POST: "POST",
13
+ PUT: "PUT"};
13
14
 
14
15
  export { HttpMethod };
15
16
  //# sourceMappingURL=IHttpClient.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"IHttpClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/http_client/IHttpClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AA0CH;;AAEG;AACI,MAAM,UAAU,GAAG;AACtB,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,IAAI,EAAE;;;;"}
1
+ {"version":3,"file":"IHttpClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/http_client/IHttpClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AA0CH;;AAEG;AACI,MAAM,UAAU,GAAG;AACtB,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,GAAG,EAAE;;;;"}
@@ -0,0 +1,38 @@
1
+ /*! @azure/msal-browser v5.23.0 2026-09-23 */
2
+ 'use strict';
3
+ import { CustomAuthFlowScenarioV2 } from '../auth_flow/v2/CustomAuthFlowScenarioV2.mjs';
4
+ import { SIGN_UP_V2_COMPLETE, SIGN_UP_V2_SUBMIT_ATTRIBUTES, SIGN_UP_V2_RESEND_CODE, SIGN_UP_V2_SUBMIT_CODE, SIGN_UP_V2_CHALLENGE, SIGN_IN_V2_COMPLETE, SIGN_IN_V2_SUBMIT_PASSWORD, SIGN_IN_V2_CHALLENGE, SIGN_IN_V2_SUBMIT_CODE, SIGN_IN_AFTER_PASSWORD_RESET, RESET_PASSWORD_V2_SUBMIT, RESET_PASSWORD_V2_RESEND_CODE, RESET_PASSWORD_V2_SUBMIT_CODE, RESET_PASSWORD_V2_CHALLENGE } from './PublicApiId.mjs';
5
+
6
+ /*
7
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8
+ * Licensed under the MIT License.
9
+ */
10
+ const FLOW_STEP_API_IDS_V2 = {
11
+ [CustomAuthFlowScenarioV2.PasswordReset]: {
12
+ requestChallenge: RESET_PASSWORD_V2_CHALLENGE,
13
+ submitCode: RESET_PASSWORD_V2_SUBMIT_CODE,
14
+ resendCode: RESET_PASSWORD_V2_RESEND_CODE,
15
+ submitNewPassword: RESET_PASSWORD_V2_SUBMIT,
16
+ signInWithContinuation: SIGN_IN_AFTER_PASSWORD_RESET,
17
+ },
18
+ [CustomAuthFlowScenarioV2.SignIn]: {
19
+ requestChallenge: SIGN_IN_V2_CHALLENGE,
20
+ submitCode: SIGN_IN_V2_SUBMIT_CODE,
21
+ resendCode: SIGN_IN_V2_CHALLENGE,
22
+ submitPassword: SIGN_IN_V2_SUBMIT_PASSWORD,
23
+ signInWithContinuation: SIGN_IN_V2_COMPLETE,
24
+ },
25
+ [CustomAuthFlowScenarioV2.SignUp]: {
26
+ requestChallenge: SIGN_UP_V2_CHALLENGE,
27
+ submitCode: SIGN_UP_V2_SUBMIT_CODE,
28
+ resendCode: SIGN_UP_V2_RESEND_CODE,
29
+ submitAttributes: SIGN_UP_V2_SUBMIT_ATTRIBUTES,
30
+ signInWithContinuation: SIGN_UP_V2_COMPLETE,
31
+ },
32
+ };
33
+ function getPublicApiIdV2(scenario, step) {
34
+ return FLOW_STEP_API_IDS_V2[scenario]?.[step];
35
+ }
36
+
37
+ export { getPublicApiIdV2 };
38
+ //# sourceMappingURL=FlowApiIdHelperV2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlowApiIdHelperV2.mjs","sources":["../../../../src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AA6BH,MAAM,oBAAoB,GAEtB;AACA,IAAA,CAAC,wBAAwB,CAAC,aAAa,GAAG;AACtC,QAAA,gBAAgB,EAAE,2BAA2B;AAC7C,QAAA,UAAU,EAAE,6BAA6B;AACzC,QAAA,UAAU,EAAE,6BAA6B;AACzC,QAAA,iBAAiB,EAAE,wBAAwB;AAC3C,QAAA,sBAAsB,EAAE,4BAA4B;AACvD,KAAA;AACD,IAAA,CAAC,wBAAwB,CAAC,MAAM,GAAG;AAC/B,QAAA,gBAAgB,EAAE,oBAAoB;AACtC,QAAA,UAAU,EAAE,sBAAsB;AAClC,QAAA,UAAU,EAAE,oBAAoB;AAChC,QAAA,cAAc,EAAE,0BAA0B;AAC1C,QAAA,sBAAsB,EAAE,mBAAmB;AAC9C,KAAA;AACD,IAAA,CAAC,wBAAwB,CAAC,MAAM,GAAG;AAC/B,QAAA,gBAAgB,EAAE,oBAAoB;AACtC,QAAA,UAAU,EAAE,sBAAsB;AAClC,QAAA,UAAU,EAAE,sBAAsB;AAClC,QAAA,gBAAgB,EAAE,4BAA4B;AAC9C,QAAA,sBAAsB,EAAE,mBAAmB;AAC9C,KAAA;CACJ,CAAC;AAEI,SAAU,gBAAgB,CAC5B,QAAkC,EAClC,IAAgB,EAAA;IAEhB,OAAO,oBAAoB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;AAClD;;;;"}