// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Security_Authentication_Web_Core_2_H #define WINRT_Windows_Security_Authentication_Web_Core_2_H #include "winrt/impl/Windows.Foundation.Collections.1.h" #include "winrt/impl/Windows.Security.Credentials.1.h" #include "winrt/impl/Windows.System.1.h" #include "winrt/impl/Windows.Security.Authentication.Web.Core.1.h" WINRT_EXPORT namespace winrt::Windows::Security::Authentication::Web::Core { struct WINRT_IMPL_EMPTY_BASES FindAllAccountsResult : winrt::Windows::Security::Authentication::Web::Core::IFindAllAccountsResult { FindAllAccountsResult(std::nullptr_t) noexcept {} FindAllAccountsResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Security::Authentication::Web::Core::IFindAllAccountsResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES WebAccountEventArgs : winrt::Windows::Security::Authentication::Web::Core::IWebAccountEventArgs { WebAccountEventArgs(std::nullptr_t) noexcept {} WebAccountEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Security::Authentication::Web::Core::IWebAccountEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES WebAccountMonitor : winrt::Windows::Security::Authentication::Web::Core::IWebAccountMonitor, impl::require { WebAccountMonitor(std::nullptr_t) noexcept {} WebAccountMonitor(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Security::Authentication::Web::Core::IWebAccountMonitor(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES WebAuthenticationAddAccountResponse : winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationAddAccountResponse { WebAuthenticationAddAccountResponse(std::nullptr_t) noexcept {} WebAuthenticationAddAccountResponse(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationAddAccountResponse(ptr, take_ownership_from_abi) {} explicit WebAuthenticationAddAccountResponse(winrt::Windows::Security::Credentials::WebAccount const& webAccount); }; struct WINRT_IMPL_EMPTY_BASES WebAuthenticationAddAccountResult : winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationAddAccountResult { WebAuthenticationAddAccountResult(std::nullptr_t) noexcept {} WebAuthenticationAddAccountResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationAddAccountResult(ptr, take_ownership_from_abi) {} }; struct WebAuthenticationCoreManager { WebAuthenticationCoreManager() = delete; static auto GetTokenSilentlyAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request); static auto GetTokenSilentlyAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request, winrt::Windows::Security::Credentials::WebAccount const& webAccount); static auto RequestTokenAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request); static auto RequestTokenAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request, winrt::Windows::Security::Credentials::WebAccount const& webAccount); static auto FindAccountAsync(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& webAccountId); static auto FindAccountProviderAsync(param::hstring const& webAccountProviderId); static auto FindAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority); static auto FindAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority, winrt::Windows::System::User const& user); static auto CreateWebAccountMonitor(param::iterable const& webAccounts); static auto FindAllAccountsAsync(winrt::Windows::Security::Credentials::WebAccountProvider const& provider); static auto FindAllAccountsAsync(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& clientId); static auto FindSystemAccountProviderAsync(param::hstring const& webAccountProviderId); static auto FindSystemAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority); static auto FindSystemAccountProviderAsync(param::hstring const& webAccountProviderId, param::hstring const& authority, winrt::Windows::System::User const& user); static auto AddAccountWithTransferTokenAsync(winrt::Windows::Security::Authentication::Web::Core::WebAuthenticationTransferTokenRequest const& request); }; struct WINRT_IMPL_EMPTY_BASES WebAuthenticationTransferTokenRequest : winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationTransferTokenRequest { WebAuthenticationTransferTokenRequest(std::nullptr_t) noexcept {} WebAuthenticationTransferTokenRequest(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Security::Authentication::Web::Core::IWebAuthenticationTransferTokenRequest(ptr, take_ownership_from_abi) {} WebAuthenticationTransferTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& transferToken); WebAuthenticationTransferTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& transferToken, param::hstring const& correlationId); }; struct WINRT_IMPL_EMPTY_BASES WebProviderError : winrt::Windows::Security::Authentication::Web::Core::IWebProviderError { WebProviderError(std::nullptr_t) noexcept {} WebProviderError(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Security::Authentication::Web::Core::IWebProviderError(ptr, take_ownership_from_abi) {} WebProviderError(uint32_t errorCode, param::hstring const& errorMessage); }; struct WINRT_IMPL_EMPTY_BASES WebTokenRequest : winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequest, impl::require { WebTokenRequest(std::nullptr_t) noexcept {} WebTokenRequest(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequest(ptr, take_ownership_from_abi) {} WebTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& scope, param::hstring const& clientId); WebTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& scope, param::hstring const& clientId, winrt::Windows::Security::Authentication::Web::Core::WebTokenRequestPromptType const& promptType); explicit WebTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider); WebTokenRequest(winrt::Windows::Security::Credentials::WebAccountProvider const& provider, param::hstring const& scope); }; struct WINRT_IMPL_EMPTY_BASES WebTokenRequestResult : winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequestResult { WebTokenRequestResult(std::nullptr_t) noexcept {} WebTokenRequestResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Security::Authentication::Web::Core::IWebTokenRequestResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES WebTokenResponse : winrt::Windows::Security::Authentication::Web::Core::IWebTokenResponse { WebTokenResponse(std::nullptr_t) noexcept {} WebTokenResponse(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Security::Authentication::Web::Core::IWebTokenResponse(ptr, take_ownership_from_abi) {} WebTokenResponse(); explicit WebTokenResponse(param::hstring const& token); WebTokenResponse(param::hstring const& token, winrt::Windows::Security::Credentials::WebAccount const& webAccount); WebTokenResponse(param::hstring const& token, winrt::Windows::Security::Credentials::WebAccount const& webAccount, winrt::Windows::Security::Authentication::Web::Core::WebProviderError const& error); }; } #endif