@azure/msal-browser 5.27.0 → 5.28.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.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +9 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +7 -6
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +4 -2
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +21 -7
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +14 -1
- package/dist/cache/AsyncMemoryStorage.mjs.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +9 -2
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +65 -7
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/crypto/TokenBindingKeyManager.mjs +14 -1
- package/dist/crypto/TokenBindingKeyManager.mjs.map +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +14 -2
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +68 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +3 -2
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +87 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +5 -3
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +14 -2
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +4 -3
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +246 -73
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +10 -2
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +10 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +118 -25
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +2 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +2 -12
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +2 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +17 -3
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +9 -3
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +3 -1
- package/dist/custom_auth/index.mjs.map +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +32 -13
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +14 -2
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +9 -2
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +504 -75
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +27 -20
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +29 -14
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +44 -32
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +59 -19
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/popup_relay/constants.mjs +1 -1
- package/dist/popup_relay/index.mjs +1 -1
- package/dist/popup_relay/relayClient.mjs +1 -1
- package/dist/protocol/Authorize.mjs +21 -13
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +35 -11
- package/dist/request/RequestHelpers.mjs.map +1 -1
- package/dist/request/SilentRequestHelpers.mjs +6 -6
- package/dist/request/SilentRequestHelpers.mjs.map +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +3 -2
- package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserDetection.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/IframeMonitor.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/utils/PopupMonitor.mjs +1 -1
- package/dist/utils/PopupOriginCheck.mjs +1 -1
- package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
- package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
- package/dist/webBrokerBridge/index.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +51 -11
- package/lib/custom-auth-path/msal-custom-auth.cjs +1563 -424
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +1563 -424
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +19 -11
- package/lib/msal-browser.cjs +914 -259
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +914 -259
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
- package/lib/popup-relay/msal-popup-relay.js +2 -2
- package/lib/popup-relay/msal-popup-relay.js.map +1 -1
- package/lib/popup-relay/msal-popup-relay.min.js +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
- package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
- package/package.json +2 -2
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +15 -0
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +6 -21
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +3 -1
- package/src/broker/nativeBroker/PlatformAuthRequest.ts +12 -8
- package/src/broker/nativeBroker/PlatformAuthResponse.ts +31 -0
- package/src/cache/AsyncMemoryStorage.ts +16 -0
- package/src/cache/BrowserCacheManager.ts +19 -1
- package/src/controllers/StandardController.ts +107 -11
- package/src/crypto/TokenBindingKeyManager.ts +21 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +15 -0
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +23 -0
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +26 -0
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +1 -1
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +2 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +94 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +7 -2
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +132 -0
- package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +8 -2
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +13 -0
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +8 -2
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +1 -0
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +445 -91
- package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +25 -0
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +34 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +9 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +262 -43
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +4 -7
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +21 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +41 -2
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +44 -19
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +4 -6
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +6 -1
- package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +25 -1
- package/src/custom_auth/core/telemetry/PublicApiId.ts +6 -0
- package/src/custom_auth/index.ts +11 -0
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +6 -7
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +47 -15
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +2 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +2 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +18 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +2 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +13 -0
- package/src/interaction_client/PlatformAuthInteractionClient.ts +851 -128
- package/src/interaction_client/PopupClient.ts +104 -83
- package/src/interaction_client/RedirectClient.ts +88 -34
- package/src/interaction_client/SilentIframeClient.ts +121 -95
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +46 -18
- package/src/request/RequestHelpers.ts +64 -11
- package/src/request/SilentRequestHelpers.ts +8 -9
- package/src/telemetry/BrowserPerformanceEvents.ts +1 -0
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +6 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +21 -0
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
- package/types/cache/AsyncMemoryStorage.d.ts +5 -0
- package/types/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/types/cache/BrowserCacheManager.d.ts +4 -0
- package/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts +5 -0
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/crypto/TokenBindingKeyManager.d.ts +9 -0
- package/types/crypto/TokenBindingKeyManager.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +11 -0
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +15 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +2 -1
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +22 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +28 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +3 -2
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +9 -0
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -0
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +12 -5
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +17 -0
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +18 -2
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +8 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +8 -2
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +3 -3
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +12 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +29 -2
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +30 -17
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +3 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +3 -2
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +6 -1
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -1
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts +6 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/types/custom_auth/index.d.ts +5 -0
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +6 -8
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +4 -4
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +2 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +2 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +2 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts +106 -5
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/protocol/Authorize.d.ts +4 -4
- package/types/protocol/Authorize.d.ts.map +1 -1
- package/types/request/RequestHelpers.d.ts +21 -3
- package/types/request/RequestHelpers.d.ts.map +1 -1
- package/types/request/SilentRequestHelpers.d.ts.map +1 -1
- package/types/telemetry/BrowserPerformanceEvents.d.ts +1 -0
- package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
|
|
2
|
+
import type { CompletedStateV2 } from "../state/CompletedStateV2.js";
|
|
3
|
+
import type { FailedStateV2 } from "../state/FailedStateV2.js";
|
|
4
|
+
import type { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
|
|
5
|
+
/**
|
|
6
|
+
* The states an authentication-method verification submission can resolve to.
|
|
7
|
+
* A successful submission completes the authentication flow.
|
|
8
|
+
*/
|
|
9
|
+
export type AuthMethodVerificationSubmitChallengeResultStateV2 = CompletedStateV2 | FailedStateV2;
|
|
10
|
+
/**
|
|
11
|
+
* Result of submitting the authentication-method verification challenge. It
|
|
12
|
+
* includes account data when verification and token completion succeed.
|
|
13
|
+
*/
|
|
14
|
+
export type AuthMethodVerificationSubmitChallengeResultV2 = CustomAuthResultV2<AuthMethodVerificationSubmitChallengeResultStateV2, CustomAuthAccountData>;
|
|
15
|
+
//# sourceMappingURL=AuthMethodVerificationSubmitChallengeResultV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthMethodVerificationSubmitChallengeResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,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,kDAAkD,GACxD,gBAAgB,GAChB,aAAa,CAAC;AAEpB;;;GAGG;AACH,MAAM,MAAM,6CAA6C,GAAG,kBAAkB,CAC1E,kDAAkD,EAClD,qBAAqB,CACxB,CAAC"}
|
|
@@ -9,7 +9,7 @@ import type { PasswordRequiredStateV2 } from "../../../../sign_in/auth_flow/v2/s
|
|
|
9
9
|
*/
|
|
10
10
|
export type RequestChallengeResultStateV2 = CodeRequiredStateV2 | MFAVerificationRequiredStateV2 | PasswordRequiredStateV2 | FailedStateV2;
|
|
11
11
|
/**
|
|
12
|
-
* Result of requesting
|
|
12
|
+
* Result of requesting a challenge. It wraps one of
|
|
13
13
|
* {@link RequestChallengeResultStateV2} plus, on failure, the unified V2 flow
|
|
14
14
|
* error.
|
|
15
15
|
*/
|
|
@@ -7,12 +7,13 @@ import type { AttributesRequiredStateV2 } from "../../../../sign_up/auth_flow/v2
|
|
|
7
7
|
import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2/state/SignInContinuationStateV2.js";
|
|
8
8
|
import type { SignUpPasswordRequiredStateV2 } from "../../../../sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.js";
|
|
9
9
|
import type { AuthMethodSelectionRequiredStateV2 } from "../state/AuthMethodSelectionRequiredStateV2.js";
|
|
10
|
+
import type { AuthMethodRegistrationRequiredStateV2 } from "../state/AuthMethodRegistrationRequiredStateV2.js";
|
|
10
11
|
/**
|
|
11
12
|
* The states a verify-challenge action can resolve to. Verifying the one-time
|
|
12
13
|
* code advances password reset to `NewPasswordRequiredStateV2` or completes
|
|
13
14
|
* MFA sign-in. Failures resolve to `FailedStateV2`.
|
|
14
15
|
*/
|
|
15
|
-
export type VerifyChallengeResultStateV2 = NewPasswordRequiredStateV2 | SignUpPasswordRequiredStateV2 | AttributesRequiredStateV2 | SignInContinuationStateV2 | AuthMethodSelectionRequiredStateV2 | CompletedStateV2 | FailedStateV2;
|
|
16
|
+
export type VerifyChallengeResultStateV2 = NewPasswordRequiredStateV2 | SignUpPasswordRequiredStateV2 | AttributesRequiredStateV2 | SignInContinuationStateV2 | AuthMethodSelectionRequiredStateV2 | AuthMethodRegistrationRequiredStateV2 | CompletedStateV2 | FailedStateV2;
|
|
16
17
|
/**
|
|
17
18
|
* Result of verifying a challenge. It wraps one of
|
|
18
19
|
* {@link VerifyChallengeResultStateV2} plus, on failure, the unified V2 flow
|
|
@@ -1 +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,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,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;
|
|
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,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,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACzG,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,mDAAmD,CAAC;AAE/G;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAClC,0BAA0B,GAC1B,6BAA6B,GAC7B,yBAAyB,GACzB,yBAAyB,GACzB,kCAAkC,GAClC,qCAAqC,GACrC,gBAAgB,GAChB,aAAa,CAAC;AAEpB;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CACpD,4BAA4B,EAC5B,qBAAqB,GAAG,SAAS,CACpC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AuthFlowActionRequiredStateBase } from "../../AuthFlowState.js";
|
|
2
|
+
import type { AuthenticationMethodRegistrationV2 } from "../AuthenticationMethodRegistrationV2.js";
|
|
3
|
+
import type { AuthMethodRegistrationChallengeResultV2 } from "../result/AuthMethodRegistrationChallengeResultV2.js";
|
|
4
|
+
import type { AuthMethodRegistrationRequiredStateParametersV2 } from "./CustomAuthStateParametersV2.js";
|
|
5
|
+
/**
|
|
6
|
+
* State returned when an authentication method must be registered. Applications
|
|
7
|
+
* select one of the sanitized offered methods and provide its contact value.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AuthMethodRegistrationRequiredStateV2 extends AuthFlowActionRequiredStateBase<AuthMethodRegistrationRequiredStateParametersV2> {
|
|
10
|
+
readonly stateType = "authMethodRegistrationRequired";
|
|
11
|
+
readonly methods: readonly AuthenticationMethodRegistrationV2[];
|
|
12
|
+
constructor(stateParameters: AuthMethodRegistrationRequiredStateParametersV2);
|
|
13
|
+
/**
|
|
14
|
+
* Selects an authentication method for strong-auth registration and requests
|
|
15
|
+
* its activation challenge.
|
|
16
|
+
* @param method - A method from {@link methods}.
|
|
17
|
+
* @param verificationContact - The email address or phone number to register.
|
|
18
|
+
* @returns The registration activation result.
|
|
19
|
+
*/
|
|
20
|
+
selectAuthMethod(method: AuthenticationMethodRegistrationV2, verificationContact: string): Promise<AuthMethodRegistrationChallengeResultV2>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=AuthMethodRegistrationRequiredStateV2.d.ts.map
|
package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthMethodRegistrationRequiredStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAEnG,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,sDAAsD,CAAC;AACpH,OAAO,KAAK,EAAE,+CAA+C,EAAE,MAAM,kCAAkC,CAAC;AAKxG;;;GAGG;AACH,qBAAa,qCAAsC,SAAQ,+BAA+B,CAAC,+CAA+C,CAAC;IACvI,QAAQ,CAAC,SAAS,oCAAoC;IACtD,QAAQ,CAAC,OAAO,EAAE,SAAS,kCAAkC,EAAE,CAAC;gBAG5D,eAAe,EAAE,+CAA+C;IAMpE;;;;;;OAMG;IACG,gBAAgB,CAClB,MAAM,EAAE,kCAAkC,EAC1C,mBAAmB,EAAE,MAAM,GAC5B,OAAO,CAAC,uCAAuC,CAAC;CAsDtD"}
|
package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map
CHANGED
|
@@ -1 +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;AAEtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,kCAAkC,CAAC;AACrG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AActF;;;;;GAKG;AACH,qBAAa,kCAAmC,SAAQ,+BAA+B,CAAC,4CAA4C,CAAC;IACjI,QAAQ,CAAC,SAAS,iCAAiC;IACnD,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;gBAExC,eAAe,EAAE,4CAA4C;IAKzE;;;;;OAKG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,wBAAwB,CAAC;YAuHtB,8BAA8B;
|
|
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;AAEtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,kCAAkC,CAAC;AACrG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AActF;;;;;GAKG;AACH,qBAAa,kCAAmC,SAAQ,+BAA+B,CAAC,4CAA4C,CAAC;IACjI,QAAQ,CAAC,SAAS,iCAAiC;IACnD,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;gBAExC,eAAe,EAAE,4CAA4C;IAKzE;;;;;OAKG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,wBAAwB,CAAC;YAuHtB,8BAA8B;CAkC/C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AuthFlowActionRequiredStateBase } from "../../AuthFlowState.js";
|
|
2
|
+
import type { AuthMethodRegistrationChallengeResultV2 } from "../result/AuthMethodRegistrationChallengeResultV2.js";
|
|
3
|
+
import type { AuthMethodVerificationSubmitChallengeResultV2 } from "../result/AuthMethodVerificationSubmitChallengeResultV2.js";
|
|
4
|
+
import type { AuthMethodVerificationRequiredStateParametersV2 } from "./CustomAuthStateParametersV2.js";
|
|
5
|
+
/**
|
|
6
|
+
* State returned when a newly registered authentication method must be
|
|
7
|
+
* activated with the challenge sent by the service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AuthMethodVerificationRequiredStateV2 extends AuthFlowActionRequiredStateBase<AuthMethodVerificationRequiredStateParametersV2> {
|
|
10
|
+
readonly stateType = "authMethodVerificationRequired";
|
|
11
|
+
readonly type: string;
|
|
12
|
+
readonly sentTo?: string;
|
|
13
|
+
readonly codeLength: number;
|
|
14
|
+
constructor(stateParameters: AuthMethodVerificationRequiredStateParametersV2);
|
|
15
|
+
/**
|
|
16
|
+
* Submits the activation challenge for the registered method.
|
|
17
|
+
* @param challenge - The activation challenge to submit.
|
|
18
|
+
* @returns The completed authentication result or a failed state.
|
|
19
|
+
*/
|
|
20
|
+
submitChallenge(challenge: string): Promise<AuthMethodVerificationSubmitChallengeResultV2>;
|
|
21
|
+
/**
|
|
22
|
+
* Requests a replacement activation challenge using the retained server
|
|
23
|
+
* resend link.
|
|
24
|
+
* @returns Refreshed activation metadata or a failed state.
|
|
25
|
+
*/
|
|
26
|
+
resendChallenge(): Promise<AuthMethodRegistrationChallengeResultV2>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=AuthMethodVerificationRequiredStateV2.d.ts.map
|
package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthMethodVerificationRequiredStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAEzE,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,sDAAsD,CAAC;AACpH,OAAO,KAAK,EAAE,6CAA6C,EAAE,MAAM,4DAA4D,CAAC;AAChI,OAAO,KAAK,EAAE,+CAA+C,EAAE,MAAM,kCAAkC,CAAC;AAKxG;;;GAGG;AACH,qBAAa,qCAAsC,SAAQ,+BAA+B,CAAC,+CAA+C,CAAC;IACvI,QAAQ,CAAC,SAAS,oCAAoC;IACtD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;gBAGxB,eAAe,EAAE,+CAA+C;IAQpE;;;;OAIG;IACG,eAAe,CACjB,SAAS,EAAE,MAAM,GAClB,OAAO,CAAC,6CAA6C,CAAC;IA6CzD;;;;OAIG;IACG,eAAe,IAAI,OAAO,CAAC,uCAAuC,CAAC;CAyC5E"}
|
|
@@ -2,13 +2,14 @@ import { AuthFlowActionRequiredStateBase } from "../../AuthFlowState.js";
|
|
|
2
2
|
import type { AuthenticationMethodV2 } from "../AuthenticationMethodV2.js";
|
|
3
3
|
import type { CodeVerificationStateParametersV2 } from "./CustomAuthStateParametersV2.js";
|
|
4
4
|
import type { FlowCodeRequiredResultV2, FlowSubmitCodeResultV2 } from "../../../interaction_client/v2/result/FlowActionResultV2.js";
|
|
5
|
+
import type { AuthenticationFactorV2 } from "../../../network_client/custom_auth_api/v2/result/BaseResultsV2.js";
|
|
5
6
|
export declare abstract class ChallengeVerificationStateBaseV2<TParameters extends CodeVerificationStateParametersV2 = CodeVerificationStateParametersV2> extends AuthFlowActionRequiredStateBase<TParameters> {
|
|
6
7
|
readonly method?: AuthenticationMethodV2;
|
|
7
8
|
readonly sentTo?: string;
|
|
8
9
|
readonly channel?: string;
|
|
9
10
|
readonly codeLength?: number;
|
|
10
11
|
constructor(stateParameters: TParameters);
|
|
11
|
-
protected submitCodeCore(code: string): Promise<FlowSubmitCodeResultV2>;
|
|
12
|
-
protected resendCodeCore(): Promise<FlowCodeRequiredResultV2>;
|
|
12
|
+
protected submitCodeCore(code: string, authenticationFactor?: AuthenticationFactorV2): Promise<FlowSubmitCodeResultV2>;
|
|
13
|
+
protected resendCodeCore(authenticationFactor?: AuthenticationFactorV2): Promise<FlowCodeRequiredResultV2>;
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=ChallengeVerificationStateBaseV2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChallengeVerificationStateBaseV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,KAAK,EACR,wBAAwB,EACxB,sBAAsB,EACzB,MAAM,6DAA6D,CAAC;
|
|
1
|
+
{"version":3,"file":"ChallengeVerificationStateBaseV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,KAAK,EACR,wBAAwB,EACxB,sBAAsB,EACzB,MAAM,6DAA6D,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oEAAoE,CAAC;AAEjH,8BAAsB,gCAAgC,CAClD,WAAW,SAAS,iCAAiC,GAAG,iCAAiC,CAC3F,SAAQ,+BAA+B,CAAC,WAAW,CAAC;IAClD,QAAQ,CAAC,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAEzC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;gBAEjB,eAAe,EAAE,WAAW;cAQxB,cAAc,CAC1B,IAAI,EAAE,MAAM,EACZ,oBAAoB,CAAC,EAAE,sBAAsB,GAC9C,OAAO,CAAC,sBAAsB,CAAC;cAelB,cAAc,CAC1B,oBAAoB,CAAC,EAAE,sBAAsB,GAC9C,OAAO,CAAC,wBAAwB,CAAC;CAOvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeRequiredStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"CodeRequiredStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAe1E,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAGzF;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,gCAAgC,CAAC,6BAA6B,CAAC;IACpG,QAAQ,CAAC,SAAS,kBAAkB;IAEpC;;;;;OAKG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;IA8HhE;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,kBAAkB,CAAC;CAwClD"}
|
|
@@ -6,6 +6,7 @@ import { CustomAuthSilentCacheClient } from "../../../../get_account/interaction
|
|
|
6
6
|
import type { SignUpStateTransitionHandlerV2 } from "../../../../sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.js";
|
|
7
7
|
import type { AuthenticationFactorV2 } from "../../../network_client/custom_auth_api/v2/result/BaseResultsV2.js";
|
|
8
8
|
import type { SignInStateTransitionHandlerV2 } from "../../../../sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.js";
|
|
9
|
+
import type { AuthenticationMethodRegistrationV2 } from "../AuthenticationMethodRegistrationV2.js";
|
|
9
10
|
export interface CustomAuthActionRequiredStateParametersV2 extends AuthFlowActionRequiredStateParameters {
|
|
10
11
|
flowClient: FlowInteractionClientV2;
|
|
11
12
|
continuationState: FlowContinuationStateV2;
|
|
@@ -27,4 +28,12 @@ export interface CodeRequiredStateParametersV2 extends CodeVerificationStatePara
|
|
|
27
28
|
signInStateTransitionHandler?: SignInStateTransitionHandlerV2;
|
|
28
29
|
}
|
|
29
30
|
export type MFAVerificationRequiredStateParametersV2 = CodeVerificationStateParametersV2;
|
|
31
|
+
export interface AuthMethodRegistrationRequiredStateParametersV2 extends CustomAuthActionRequiredStateParametersV2 {
|
|
32
|
+
methods: readonly AuthenticationMethodRegistrationV2[];
|
|
33
|
+
}
|
|
34
|
+
export interface AuthMethodVerificationRequiredStateParametersV2 extends CustomAuthActionRequiredStateParametersV2 {
|
|
35
|
+
type: string;
|
|
36
|
+
sentTo?: string;
|
|
37
|
+
codeLength: number;
|
|
38
|
+
}
|
|
30
39
|
//# sourceMappingURL=CustomAuthStateParametersV2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthStateParametersV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qCAAqC,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACxH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,0EAA0E,CAAC;AAC/H,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oEAAoE,CAAC;AACjH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,0EAA0E,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomAuthStateParametersV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qCAAqC,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACxH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,0EAA0E,CAAC;AAC/H,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oEAAoE,CAAC;AACjH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,0EAA0E,CAAC;AAC/H,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAEnG,MAAM,WAAW,yCACb,SAAQ,qCAAqC;IAC7C,UAAU,EAAE,uBAAuB,CAAC;IACpC,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,WAAW,EAAE,2BAA2B,CAAC;CAC5C;AAED,MAAM,WAAW,4CACb,SAAQ,yCAAyC;IACjD,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC3C,oBAAoB,EAAE,sBAAsB,CAAC;IAC7C,4BAA4B,CAAC,EAAE,8BAA8B,CAAC;CACjE;AAED,MAAM,WAAW,iCACb,SAAQ,yCAAyC;IACjD,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,6BACb,SAAQ,iCAAiC;IACzC,4BAA4B,CAAC,EAAE,8BAA8B,CAAC;IAC9D,4BAA4B,CAAC,EAAE,8BAA8B,CAAC;CACjE;AAED,MAAM,MAAM,wCAAwC,GAChD,iCAAiC,CAAC;AAEtC,MAAM,WAAW,+CACb,SAAQ,yCAAyC;IACjD,OAAO,EAAE,SAAS,kCAAkC,EAAE,CAAC;CAC1D;AAED,MAAM,WAAW,+CACb,SAAQ,yCAAyC;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MFAVerificationRequiredStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AACjG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAM1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"MFAVerificationRequiredStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AACjG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAM1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAGzF;;;GAGG;AACH,qBAAa,8BAA+B,SAAQ,gCAAgC,CAAC,wCAAwC,CAAC;IAC1H,QAAQ,CAAC,SAAS,6BAA6B;IAE/C;;;;;OAKG;IACG,eAAe,CACjB,SAAS,EAAE,MAAM,GAClB,OAAO,CAAC,0BAA0B,CAAC;IA6CtC;;;;OAIG;IACG,eAAe,IAAI,OAAO,CAAC,0BAA0B,CAAC;CAsC/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowContinuationStateV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAM1F,MAAM,WAAW,WAAW;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAOD,MAAM,WAAW,uBAAuB;IACpC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,wBAAwB,CAAC;IACnC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE;QACL,mBAAmB,EAAE,OAAO,CAAC;KAChC,CAAC;CACL"}
|
|
1
|
+
{"version":3,"file":"FlowContinuationStateV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAM1F,MAAM,WAAW,WAAW;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAOD,MAAM,WAAW,uBAAuB;IACpC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,wBAAwB,CAAC;IACnC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE;QACL,mBAAmB,EAAE,OAAO,CAAC;KAChC,CAAC;CACL"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICrypto, IPerformanceClient, Logger } from "@azure/msal-common/browser";
|
|
2
2
|
import { InteractionClientBaseV2 } from "./InteractionClientBaseV2.js";
|
|
3
|
-
import { FlowStartParamsV2, FlowSignInStartParamsV2, FlowSignUpStartParamsV2, FlowChallengeParamsV2, FlowSubmitCodeParamsV2, FlowSubmitNewPasswordParamsV2, FlowSubmitSignInPasswordParamsV2, FlowSubmitSignUpAttributesParamsV2, FlowSignInWithContinuationParamsV2 } from "./parameter/FlowParamsV2.js";
|
|
4
|
-
import type { FlowMethodSelectionRequiredResultV2, FlowCodeRequiredResultV2, FlowSignInCodeRequiredResultV2, FlowResetPasswordCodeRequiredResultV2, FlowPasswordRequiredResultV2, FlowSignUpPasswordRequiredResultV2, FlowMFARequiredResultV2, FlowAttributesRequiredResultV2, FlowSignInContinuationRequiredResultV2, FlowCompletedResultV2, FlowSignUpActionResultV2, FlowSubmitCodeResultV2 } from "./result/FlowActionResultV2.js";
|
|
3
|
+
import { FlowStartParamsV2, FlowSignInStartParamsV2, FlowSignUpStartParamsV2, FlowChallengeParamsV2, FlowSubmitCodeParamsV2, FlowSubmitNewPasswordParamsV2, FlowSubmitSignInPasswordParamsV2, FlowSubmitSignUpAttributesParamsV2, FlowSignInWithContinuationParamsV2, FlowRegisterAuthMethodParamsV2, FlowVerifyAuthMethodRegistrationParamsV2 } from "./parameter/FlowParamsV2.js";
|
|
4
|
+
import type { FlowMethodSelectionRequiredResultV2, FlowCodeRequiredResultV2, FlowSignInCodeRequiredResultV2, FlowResetPasswordCodeRequiredResultV2, FlowPasswordRequiredResultV2, FlowSignUpPasswordRequiredResultV2, FlowMFARequiredResultV2, FlowAttributesRequiredResultV2, FlowSignInContinuationRequiredResultV2, FlowCompletedResultV2, FlowSignUpActionResultV2, FlowSubmitCodeResultV2, FlowAuthMethodRegistrationRequiredResultV2, FlowAuthMethodVerificationRequiredResultV2 } from "./result/FlowActionResultV2.js";
|
|
5
5
|
import { BrowserConfiguration } from "../../../../config/Configuration.js";
|
|
6
6
|
import { BrowserCacheManager } from "../../../../cache/BrowserCacheManager.js";
|
|
7
7
|
import { EventHandler } from "../../../../event/EventHandler.js";
|
|
@@ -11,18 +11,25 @@ import { CustomAuthApiClientV2 } from "../../network_client/custom_auth_api/v2/C
|
|
|
11
11
|
export declare class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
12
12
|
protected apiClient: CustomAuthApiClientV2;
|
|
13
13
|
constructor(config: BrowserConfiguration, storageImpl: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, performanceClient: IPerformanceClient, customAuthAuthority: CustomAuthAuthority, apiClient: CustomAuthApiClientV2);
|
|
14
|
-
signIn(parameters: FlowSignInStartParamsV2): Promise<FlowMethodSelectionRequiredResultV2 | FlowPasswordRequiredResultV2 | FlowSignInCodeRequiredResultV2 | FlowMFARequiredResultV2 | FlowCompletedResultV2>;
|
|
14
|
+
signIn(parameters: FlowSignInStartParamsV2): Promise<FlowMethodSelectionRequiredResultV2 | FlowPasswordRequiredResultV2 | FlowSignInCodeRequiredResultV2 | FlowMFARequiredResultV2 | FlowAuthMethodRegistrationRequiredResultV2 | FlowCompletedResultV2>;
|
|
15
15
|
signUp(parameters: FlowSignUpStartParamsV2): Promise<FlowCodeRequiredResultV2 | FlowSignUpPasswordRequiredResultV2 | FlowAttributesRequiredResultV2>;
|
|
16
16
|
resetPassword(parameters: FlowStartParamsV2): Promise<FlowMethodSelectionRequiredResultV2 | FlowResetPasswordCodeRequiredResultV2>;
|
|
17
17
|
requestChallenge(parameters: FlowChallengeParamsV2): Promise<FlowCodeRequiredResultV2 | FlowPasswordRequiredResultV2>;
|
|
18
|
+
registerAuthMethod(parameters: FlowRegisterAuthMethodParamsV2): Promise<FlowAuthMethodVerificationRequiredResultV2>;
|
|
19
|
+
verifyAuthMethodRegistration(parameters: FlowVerifyAuthMethodRegistrationParamsV2): Promise<FlowCompletedResultV2>;
|
|
20
|
+
resendAuthMethodRegistrationChallenge(parameters: FlowChallengeParamsV2): Promise<FlowAuthMethodVerificationRequiredResultV2>;
|
|
18
21
|
submitCode(parameters: FlowSubmitCodeParamsV2): Promise<FlowSubmitCodeResultV2>;
|
|
19
22
|
resendCode(parameters: FlowChallengeParamsV2): Promise<FlowCodeRequiredResultV2>;
|
|
20
23
|
submitSignUpAttributes(parameters: FlowSubmitSignUpAttributesParamsV2): Promise<FlowSignUpActionResultV2>;
|
|
21
|
-
submitNewPassword(parameters: FlowSubmitNewPasswordParamsV2): Promise<FlowSignInContinuationRequiredResultV2>;
|
|
22
|
-
submitSignInPassword(parameters: FlowSubmitSignInPasswordParamsV2): Promise<FlowMFARequiredResultV2 | FlowCompletedResultV2>;
|
|
24
|
+
submitNewPassword(parameters: FlowSubmitNewPasswordParamsV2): Promise<FlowSignInContinuationRequiredResultV2 | FlowAuthMethodRegistrationRequiredResultV2>;
|
|
25
|
+
submitSignInPassword(parameters: FlowSubmitSignInPasswordParamsV2): Promise<FlowMFARequiredResultV2 | FlowAuthMethodRegistrationRequiredResultV2 | FlowCompletedResultV2>;
|
|
23
26
|
signInWithContinuation(parameters: FlowSignInWithContinuationParamsV2): Promise<FlowCompletedResultV2>;
|
|
24
27
|
private handleSignInVerification;
|
|
28
|
+
private handleSignUpVerification;
|
|
25
29
|
private getSupportedSignInMethods;
|
|
30
|
+
private createRegistrationRequest;
|
|
31
|
+
private createAuthMethodRegistrationRequiredResult;
|
|
32
|
+
private createAuthMethodVerificationRequiredResult;
|
|
26
33
|
private toSignUpActionResult;
|
|
27
34
|
private ensureAuthenticationFactor;
|
|
28
35
|
private verifySignInPassword;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowInteractionClientV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,kBAAkB,EAClB,MAAM,EACT,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,6BAA6B,EAC7B,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,
|
|
1
|
+
{"version":3,"file":"FlowInteractionClientV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,kBAAkB,EAClB,MAAM,EACT,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,6BAA6B,EAC7B,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,EAElC,8BAA8B,EAC9B,wCAAwC,EAC3C,MAAM,6BAA6B,CAAC;AAiBrC,OAAO,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from "../FlowContinuationStateV2.js";
|
|
2
2
|
import { UserAccountAttributes } from "../../../../UserAccountAttributes.js";
|
|
3
|
+
import type { AuthenticationFactorV2, EnrollmentMethodV2 } from "../../../network_client/custom_auth_api/v2/result/BaseResultsV2.js";
|
|
4
|
+
import type { AuthenticationMethodRegistrationV2 } from "../../../auth_flow/v2/AuthenticationMethodRegistrationV2.js";
|
|
3
5
|
interface FlowParamsBaseV2 {
|
|
4
6
|
correlationId: string;
|
|
5
7
|
}
|
|
@@ -17,9 +19,11 @@ export interface FlowSignUpStartParamsV2 extends FlowStartParamsV2 {
|
|
|
17
19
|
}
|
|
18
20
|
export interface FlowChallengeParamsV2 extends FlowParamsBaseV2 {
|
|
19
21
|
continuationState: FlowContinuationStateV2;
|
|
22
|
+
authenticationFactor?: AuthenticationFactorV2;
|
|
20
23
|
}
|
|
21
24
|
export interface FlowSubmitCodeParamsV2 extends FlowParamsBaseV2 {
|
|
22
25
|
continuationState: FlowContinuationStateV2;
|
|
26
|
+
authenticationFactor?: AuthenticationFactorV2;
|
|
23
27
|
code: string;
|
|
24
28
|
}
|
|
25
29
|
export interface FlowSubmitNewPasswordParamsV2 extends FlowParamsBaseV2 {
|
|
@@ -37,5 +41,18 @@ export interface FlowSubmitSignUpAttributesParamsV2 extends FlowParamsBaseV2 {
|
|
|
37
41
|
export interface FlowSignInWithContinuationParamsV2 extends FlowParamsBaseV2 {
|
|
38
42
|
continuationState: FlowContinuationStateV2;
|
|
39
43
|
}
|
|
44
|
+
export interface FlowAuthMethodRegistrationRequiredParamsV2 extends FlowParamsBaseV2 {
|
|
45
|
+
continuationState: FlowContinuationStateV2;
|
|
46
|
+
methods: EnrollmentMethodV2[];
|
|
47
|
+
}
|
|
48
|
+
export interface FlowRegisterAuthMethodParamsV2 extends FlowParamsBaseV2 {
|
|
49
|
+
continuationState: FlowContinuationStateV2;
|
|
50
|
+
method: AuthenticationMethodRegistrationV2;
|
|
51
|
+
verificationContact: string;
|
|
52
|
+
}
|
|
53
|
+
export interface FlowVerifyAuthMethodRegistrationParamsV2 extends FlowParamsBaseV2 {
|
|
54
|
+
continuationState: FlowContinuationStateV2;
|
|
55
|
+
code: string;
|
|
56
|
+
}
|
|
40
57
|
export {};
|
|
41
58
|
//# sourceMappingURL=FlowParamsV2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowParamsV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"FlowParamsV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,EACR,sBAAsB,EACtB,kBAAkB,EACrB,MAAM,oEAAoE,CAAC;AAC5E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,6DAA6D,CAAC;AAOtH,UAAU,gBAAgB;IACtB,aAAa,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC;AAGD,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC3D,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,oBAAoB,CAAC,EAAE,sBAAsB,CAAC;CACjD;AAGD,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,oBAAoB,CAAC,EAAE,sBAAsB,CAAC;IAC9C,IAAI,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACnE,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;IACtE,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;IACxE,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,UAAU,EAAE,qBAAqB,CAAC;CACrC;AAGD,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;IACxE,iBAAiB,EAAE,uBAAuB,CAAC;CAC9C;AAED,MAAM,WAAW,0CACb,SAAQ,gBAAgB;IACxB,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,OAAO,EAAE,kBAAkB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;IACpE,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,MAAM,EAAE,kCAAkC,CAAC;IAC3C,mBAAmB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,wCACb,SAAQ,gBAAgB;IACxB,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -2,6 +2,7 @@ import { AuthenticationResult } from "../../../../../response/AuthenticationResu
|
|
|
2
2
|
import { AuthenticationMethodV2 } from "../../../auth_flow/v2/AuthenticationMethodV2.js";
|
|
3
3
|
import { FlowContinuationStateV2 } from "../FlowContinuationStateV2.js";
|
|
4
4
|
import { SignUpAttributeV2 } from "../../../network_client/custom_auth_api/v2/result/SignUpResultsV2.js";
|
|
5
|
+
import { AuthenticationMethodRegistrationV2 } from "../../../auth_flow/v2/AuthenticationMethodRegistrationV2.js";
|
|
5
6
|
interface FlowActionResultBaseV2 {
|
|
6
7
|
type: string;
|
|
7
8
|
correlationId: string;
|
|
@@ -56,8 +57,19 @@ export interface FlowCompletedResultV2 extends FlowActionResultBaseV2 {
|
|
|
56
57
|
type: typeof FLOW_COMPLETED_V2;
|
|
57
58
|
authenticationResult: AuthenticationResult;
|
|
58
59
|
}
|
|
59
|
-
export
|
|
60
|
-
|
|
60
|
+
export interface FlowAuthMethodRegistrationRequiredResultV2 extends FlowActionResultBaseV2 {
|
|
61
|
+
type: typeof FLOW_AUTH_METHOD_REGISTRATION_REQUIRED_V2;
|
|
62
|
+
continuationState: FlowContinuationStateV2;
|
|
63
|
+
methods: AuthenticationMethodRegistrationV2[];
|
|
64
|
+
}
|
|
65
|
+
export interface FlowAuthMethodVerificationRequiredResultV2 extends FlowActionResultBaseV2 {
|
|
66
|
+
type: typeof FLOW_AUTH_METHOD_VERIFICATION_REQUIRED_V2;
|
|
67
|
+
continuationState: FlowContinuationStateV2;
|
|
68
|
+
sentTo?: string;
|
|
69
|
+
codeLength: number;
|
|
70
|
+
}
|
|
71
|
+
export type FlowSubmitCodeResultV2 = FlowNewPasswordRequiredResultV2 | FlowSignUpPasswordRequiredResultV2 | FlowAttributesRequiredResultV2 | FlowSignInContinuationRequiredResultV2 | FlowMFARequiredResultV2 | FlowAuthMethodRegistrationRequiredResultV2 | FlowCompletedResultV2;
|
|
72
|
+
export type FlowSignUpActionResultV2 = FlowCodeRequiredResultV2 | FlowSignUpPasswordRequiredResultV2 | FlowAttributesRequiredResultV2 | FlowAuthMethodRegistrationRequiredResultV2 | FlowSignInContinuationRequiredResultV2;
|
|
61
73
|
export declare const FLOW_METHOD_SELECTION_REQUIRED_V2 = "FlowMethodSelectionRequiredResultV2";
|
|
62
74
|
export declare const FLOW_CODE_REQUIRED_V2 = "FlowCodeRequiredResultV2";
|
|
63
75
|
export declare const FLOW_PASSWORD_REQUIRED_V2 = "FlowPasswordRequiredResultV2";
|
|
@@ -67,6 +79,8 @@ export declare const FLOW_NEW_PASSWORD_REQUIRED_V2 = "FlowNewPasswordRequiredRes
|
|
|
67
79
|
export declare const FLOW_ATTRIBUTES_REQUIRED_V2 = "FlowAttributesRequiredResultV2";
|
|
68
80
|
export declare const FLOW_SIGN_IN_CONTINUATION_REQUIRED_V2 = "FlowSignInContinuationRequiredResultV2";
|
|
69
81
|
export declare const FLOW_COMPLETED_V2 = "FlowCompletedResultV2";
|
|
82
|
+
export declare const FLOW_AUTH_METHOD_REGISTRATION_REQUIRED_V2 = "FlowAuthMethodRegistrationRequiredResultV2";
|
|
83
|
+
export declare const FLOW_AUTH_METHOD_VERIFICATION_REQUIRED_V2 = "FlowAuthMethodVerificationRequiredResultV2";
|
|
70
84
|
export declare function createFlowMethodSelectionRequiredResultV2(input: Omit<FlowMethodSelectionRequiredResultV2, "type">): FlowMethodSelectionRequiredResultV2;
|
|
71
85
|
export declare function createFlowCodeRequiredResultV2(input: Omit<FlowCodeRequiredResultV2, "type">): FlowCodeRequiredResultV2;
|
|
72
86
|
export declare function createFlowPasswordRequiredResultV2(input: Omit<FlowPasswordRequiredResultV2, "type">): FlowPasswordRequiredResultV2;
|
|
@@ -76,5 +90,7 @@ export declare function createFlowNewPasswordRequiredResultV2(input: Omit<FlowNe
|
|
|
76
90
|
export declare function createFlowAttributesRequiredResultV2(input: Omit<FlowAttributesRequiredResultV2, "type">): FlowAttributesRequiredResultV2;
|
|
77
91
|
export declare function createFlowSignInContinuationRequiredResultV2(input: Omit<FlowSignInContinuationRequiredResultV2, "type">): FlowSignInContinuationRequiredResultV2;
|
|
78
92
|
export declare function createFlowCompletedResultV2(input: Omit<FlowCompletedResultV2, "type">): FlowCompletedResultV2;
|
|
93
|
+
export declare function createFlowAuthMethodRegistrationRequiredResultV2(input: Omit<FlowAuthMethodRegistrationRequiredResultV2, "type">): FlowAuthMethodRegistrationRequiredResultV2;
|
|
94
|
+
export declare function createFlowAuthMethodVerificationRequiredResultV2(input: Omit<FlowAuthMethodVerificationRequiredResultV2, "type">): FlowAuthMethodVerificationRequiredResultV2;
|
|
79
95
|
export {};
|
|
80
96
|
//# sourceMappingURL=FlowActionResultV2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowActionResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;
|
|
1
|
+
{"version":3,"file":"FlowActionResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;AACzG,OAAO,EAAE,kCAAkC,EAAE,MAAM,6DAA6D,CAAC;AAOjH,UAAU,sBAAsB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACzB;AAMD,MAAM,WAAW,mCACb,SAAQ,sBAAsB;IAC9B,IAAI,EAAE,OAAO,iCAAiC,CAAC;IAC/C,iBAAiB,EAAE,uBAAuB,CA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are const RISK_VERIFY_RELATION = "riskverify";
|
|
6
6
|
export declare const COLLECT_ATTRIBUTES_RELATION = "collectAttributes";
|
|
7
|
+
export declare const ENROLL_RELATION = "enroll";
|
|
8
|
+
export declare const ACTIVATE_RELATION = "activate";
|
|
9
|
+
export declare const RESEND_RELATION = "resend";
|
|
10
|
+
export declare const POLL_RELATION = "poll";
|
|
7
11
|
export declare const AuthenticationMethodTypeV2: {
|
|
8
12
|
readonly EMAIL: "email";
|
|
9
13
|
readonly PASSWORD: "password";
|
|
14
|
+
readonly PHONE: "phone";
|
|
15
|
+
readonly SMS: "sms";
|
|
16
|
+
};
|
|
17
|
+
export declare const PhoneRegistrationChannelV2: {
|
|
10
18
|
readonly SMS: "sms";
|
|
11
19
|
};
|
|
12
20
|
export declare const ResponseStateV2: {
|
package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientConstantsV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAGpD,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAC9C,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,2BAA2B,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiClientConstantsV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAGpD,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAC9C,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,2BAA2B,sBAAsB,CAAC;AAC/D,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,aAAa,SAAS,CAAC;AAEpC,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AAEX,eAAO,MAAM,0BAA0B;;CAE7B,CAAC;AAMX,eAAO,MAAM,eAAe;;;CAGlB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseApiClientV2 } from "./BaseApiClientV2.js";
|
|
2
2
|
import { ResetPasswordUpdateResultV2, ResetPasswordPollResultV2 } from "./result/ResetPasswordResultsV2.js";
|
|
3
|
-
import { ResetPasswordStartApiResultV2, SignInStartApiResultV2, ChallengeResultV2, ChallengeVerificationResultV2, VerifyResultV2 } from "./result/BaseResultsV2.js";
|
|
3
|
+
import { ResetPasswordStartApiResultV2, SignInStartApiResultV2, ChallengeResultV2, ChallengeVerificationResultV2, VerifyResultV2, ActivationResultV2, EnrollmentResultV2 } from "./result/BaseResultsV2.js";
|
|
4
4
|
import { SignUpStartApiResultV2, SignUpSubmitAttributesApiResultV2 } from "./result/SignUpResultsV2.js";
|
|
5
|
-
import { RequestContextV2, PasswordResetStartRequestV2, SignInStartRequestV2, SignUpStartRequestV2, SignUpSubmitAttributesRequestV2, ChallengeRequestV2, VerifyRequestV2, UpdatePasswordRequestV2, PollRequestV2 } from "./request/RequestsV2.js";
|
|
5
|
+
import { RequestContextV2, PasswordResetStartRequestV2, SignInStartRequestV2, SignUpStartRequestV2, SignUpSubmitAttributesRequestV2, ChallengeRequestV2, VerifyRequestV2, UpdatePasswordRequestV2, PollRequestV2, AuthMethodRegistrationRequestV2, AuthMethodRegistrationVerificationRequestV2 } from "./request/RequestsV2.js";
|
|
6
6
|
export declare class CustomAuthApiClientV2 extends BaseApiClientV2 {
|
|
7
7
|
resetPasswordStart(resetPasswordHref: string, request: PasswordResetStartRequestV2, context: RequestContextV2): Promise<ResetPasswordStartApiResultV2>;
|
|
8
8
|
signInStart(signInHref: string, request: SignInStartRequestV2, context: RequestContextV2): Promise<SignInStartApiResultV2>;
|
|
@@ -11,13 +11,19 @@ export declare class CustomAuthApiClientV2 extends BaseApiClientV2 {
|
|
|
11
11
|
requestChallenge(challengeHref: string, request: ChallengeRequestV2, context: RequestContextV2): Promise<ChallengeResultV2>;
|
|
12
12
|
verifyRisk(riskVerifyHref: string, request: ChallengeRequestV2, context: RequestContextV2): Promise<ChallengeVerificationResultV2>;
|
|
13
13
|
verifyChallenge(verifyHref: string, request: VerifyRequestV2, context: RequestContextV2): Promise<VerifyResultV2>;
|
|
14
|
+
enrollAuthMethod(enrollHref: string, request: AuthMethodRegistrationRequestV2, context: RequestContextV2): Promise<EnrollmentResultV2>;
|
|
15
|
+
resendAuthMethodRegistrationChallenge(resendHref: string, request: ChallengeRequestV2, context: RequestContextV2): Promise<EnrollmentResultV2>;
|
|
16
|
+
private sendEnrollmentRequest;
|
|
17
|
+
activateAuthMethod(activateHref: string, request: AuthMethodRegistrationVerificationRequestV2, context: RequestContextV2): Promise<ActivationResultV2>;
|
|
14
18
|
submitNewPassword(updateHref: string, request: UpdatePasswordRequestV2, context: RequestContextV2): Promise<ResetPasswordUpdateResultV2>;
|
|
15
19
|
poll(pollHref: string, request: PollRequestV2, context: RequestContextV2): Promise<ResetPasswordPollResultV2>;
|
|
16
20
|
private sendStartRequest;
|
|
17
21
|
private toVerifyResult;
|
|
22
|
+
private resolveEnrollmentMethods;
|
|
18
23
|
private resolveAuthenticationFactor;
|
|
19
24
|
private toChallengeResult;
|
|
20
25
|
private toChallengeVerificationResult;
|
|
26
|
+
private normalizeCodeLength;
|
|
21
27
|
private resolveMethods;
|
|
22
28
|
}
|
|
23
29
|
//# sourceMappingURL=CustomAuthApiClientV2.d.ts.map
|
package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthApiClientV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACH,2BAA2B,EAC3B,yBAAyB,EAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACH,6BAA6B,EAC7B,sBAAsB,EAGtB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"CustomAuthApiClientV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACH,2BAA2B,EAC3B,yBAAyB,EAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACH,6BAA6B,EAC7B,sBAAsB,EAGtB,iBAAiB,EACjB,6BAA6B,EAC7B,cAAc,EAEd,kBAAkB,EAClB,kBAAkB,EAErB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,sBAAsB,EACtB,iCAAiC,EAEpC,MAAM,6BAA6B,CAAC;AAmBrC,OAAO,EACH,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,+BAA+B,EAC/B,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,+BAA+B,EAC/B,2CAA2C,EAC9C,MAAM,yBAAyB,CAAC;AAyBjC,qBAAa,qBAAsB,SAAQ,eAAe;IAIhD,kBAAkB,CACpB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,6BAA6B,CAAC;IAOnC,WAAW,CACb,UAAU,EAAE,MAA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AA2B,CAAC;IA2BjC,IAAI,CACN,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,yBAAyB,CAAC;YA0DvB,gBAAgB;IA+B9B,OAAO,CAAC,cAAc;IAgFtB,OAAO,CAAC,wBAAwB;IAqChC,OAAO,CAAC,2BAA2B;IAuBnC,OAAO,CAAC,iBAAiB;IAkCzB,OAAO,CAAC,6BAA6B;IA+CrC,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,cAAc;CAkCzB"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Logger } from "@azure/msal-common/browser";
|
|
2
|
-
import {
|
|
2
|
+
import { ParsedResponseV2 } from "./response/ResponsesV2.js";
|
|
3
3
|
export declare class ResponseHandlerV2 {
|
|
4
4
|
private readonly logger?;
|
|
5
5
|
constructor(logger?: Logger | undefined);
|
|
6
6
|
parseResponse<T>(response: Response, requestCorrelationId: string): Promise<ParsedResponseV2<T>>;
|
|
7
|
-
requireHref(href:
|
|
7
|
+
requireHref(href: unknown, relation: string, correlationId: string, missingHrefError?: {
|
|
8
8
|
code: string;
|
|
9
9
|
message: string;
|
|
10
10
|
}): string;
|
|
11
11
|
requireContinuationToken(continuationToken: string | undefined, correlationId: string): string;
|
|
12
|
-
requireMethods(methods:
|
|
12
|
+
requireMethods<T>(methods: T[] | undefined, correlationId: string): T[];
|
|
13
13
|
private parseBody;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=ResponseHandlerV2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseHandlerV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAIpD,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"ResponseHandlerV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAIpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAiB7D,qBAAa,iBAAiB;IACd,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAAP,MAAM,CAAC,oBAAQ;IAEtC,aAAa,CAAC,CAAC,EACjB,QAAQ,EAAE,QAAQ,EAClB,oBAAoB,EAAE,MAAM,GAC7B,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAiC/B,WAAW,CACP,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GACrD,MAAM;IAoBT,wBAAwB,CACpB,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,aAAa,EAAE,MAAM,GACtB,MAAM;IAkBT,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,SAAS,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC,EAAE;YAiBzD,SAAS;CAqC1B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiRequestBase } from "../../types/ApiTypesBase.js";
|
|
2
2
|
import { UserAccountAttributes } from "../../../../../UserAccountAttributes.js";
|
|
3
|
+
import { PhoneRegistrationChannelV2 } from "../ApiClientConstantsV2.js";
|
|
3
4
|
export type RequestContextV2 = ApiRequestBase;
|
|
4
5
|
export interface OAuthFormRequestV2 {
|
|
5
6
|
client_id: string;
|
|
@@ -35,6 +36,17 @@ export interface SignUpSubmitAttributesRequestV2 extends ActionRequestBaseV2 {
|
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
export type ChallengeRequestV2 = ActionRequestBaseV2;
|
|
39
|
+
export interface EmailAuthMethodRegistrationRequestV2 extends ActionRequestBaseV2 {
|
|
40
|
+
email: string;
|
|
41
|
+
}
|
|
42
|
+
export interface PhoneAuthMethodRegistrationRequestV2 extends ActionRequestBaseV2 {
|
|
43
|
+
phoneNumber: string;
|
|
44
|
+
channel: typeof PhoneRegistrationChannelV2.SMS;
|
|
45
|
+
}
|
|
46
|
+
export type AuthMethodRegistrationRequestV2 = EmailAuthMethodRegistrationRequestV2 | PhoneAuthMethodRegistrationRequestV2;
|
|
47
|
+
export interface AuthMethodRegistrationVerificationRequestV2 extends ActionRequestBaseV2 {
|
|
48
|
+
otp: string;
|
|
49
|
+
}
|
|
38
50
|
type VerifyRequestBaseV2 = ActionRequestBaseV2;
|
|
39
51
|
interface VerifyOtpRequestV2 extends VerifyRequestBaseV2 {
|
|
40
52
|
otp: string;
|
package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestsV2.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"RequestsV2.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAMxE,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAQ9C,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EA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AUD,KAAK,mBAAmB,GAAG,mBAAmB,CAAC;AAE/C,UAAU,kBAAmB,SAAQ,mBAAmB;IACpD,GAAG,EAAE,MAAM,CAAC;CACf;AAED,UAAU,uBAAwB,SAAQ,mBAAmB;IACzD,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG,uBAAuB,CAAC;AAO3E,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAChE,WAAW,EAAE,MAAM,CAAC;CACvB;AAMD,MAAM,MAAM,aAAa,GAAG,mBAAmB,CAAC"}
|
|
@@ -18,6 +18,18 @@ export interface EmbeddedMethodV2 extends Omit<HalResource, "_links"> {
|
|
|
18
18
|
challenge?: HalLink;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
+
export interface EmbeddedEnrollmentMethodV2 extends Omit<HalResource, "_links"> {
|
|
22
|
+
type?: string;
|
|
23
|
+
channels?: string[];
|
|
24
|
+
_links?: {
|
|
25
|
+
enroll?: HalLink;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface EnrollmentRequiredResponseV2 extends Omit<HalResponseBaseV2, "_embedded"> {
|
|
29
|
+
_embedded?: {
|
|
30
|
+
methods?: EmbeddedEnrollmentMethodV2[];
|
|
31
|
+
};
|
|
32
|
+
}
|
|
21
33
|
export interface AuthorizeChallengeContinueResponseV2 {
|
|
22
34
|
code?: string;
|
|
23
35
|
}
|
|
@@ -77,13 +89,16 @@ export interface RiskVerificationRequiredResponseV2 extends ChallengeResponseBas
|
|
|
77
89
|
}
|
|
78
90
|
export type ChallengeResponseV2 = VerificationChallengeResponseV2 | RiskVerificationRequiredResponseV2;
|
|
79
91
|
export type RiskVerificationResponseV2 = CodeChallengeResponseV2;
|
|
80
|
-
export interface SignUpSubmitAttributesResponseV2 extends Omit<CodeChallengeResponseV2, "_links"> {
|
|
92
|
+
export interface SignUpSubmitAttributesResponseV2 extends Omit<CodeChallengeResponseV2, "_links" | "_embedded"> {
|
|
81
93
|
attributes?: SignUpAttributeResponseV2[];
|
|
82
94
|
_links?: {
|
|
83
95
|
verify?: HalLink;
|
|
84
96
|
resend?: HalLink;
|
|
85
97
|
submitAttributes?: HalLink;
|
|
86
98
|
};
|
|
99
|
+
_embedded?: {
|
|
100
|
+
methods?: EmbeddedEnrollmentMethodV2[];
|
|
101
|
+
};
|
|
87
102
|
}
|
|
88
103
|
export interface VerifyResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
89
104
|
id?: string;
|
|
@@ -95,7 +110,16 @@ export interface VerifyResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
|
95
110
|
submitAttributes?: HalLink;
|
|
96
111
|
};
|
|
97
112
|
_embedded?: {
|
|
98
|
-
methods?: EmbeddedMethodV2[];
|
|
113
|
+
methods?: (EmbeddedMethodV2 | EmbeddedEnrollmentMethodV2)[];
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
export interface EnrollmentResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
117
|
+
codeLength?: number;
|
|
118
|
+
type?: string;
|
|
119
|
+
hint?: string;
|
|
120
|
+
_links?: {
|
|
121
|
+
activate?: HalLink;
|
|
122
|
+
resend?: HalLink;
|
|
99
123
|
};
|
|
100
124
|
}
|
|
101
125
|
export interface UpdatePasswordResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
@@ -110,6 +134,9 @@ export interface PollResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
|
110
134
|
_links?: {
|
|
111
135
|
poll?: HalLink;
|
|
112
136
|
};
|
|
137
|
+
_embedded?: {
|
|
138
|
+
methods?: EmbeddedEnrollmentMethodV2[];
|
|
139
|
+
};
|
|
113
140
|
}
|
|
114
141
|
export interface TokenResponseV2 {
|
|
115
142
|
token_type: string;
|