ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/AuthenticationExtensionsClientOutputs.hs
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from webauthn-4 (webref). Do not edit.
module GHCJS.DOM.JSFFI.Generated.AuthenticationExtensionsClientOutputs
(js_newAuthenticationExtensionsClientOutputs, js_setCredBlob, js_getCredBlob, js_setGetCredBlob, js_getGetCredBlob, js_setHmacCreateSecret, js_getHmacCreateSecret, js_setHmacGetSecret, js_getHmacGetSecret, js_setPayment, js_getPayment, js_setAppid, js_getAppid, js_setAppidExclude, js_getAppidExclude, js_setCredProps, js_getCredProps, js_setPrf, js_getPrf, js_setLargeBlob, js_getLargeBlob, js_setRemoteClientDataJSON, js_getRemoteClientDataJSON, newAuthenticationExtensionsClientOutputs, setCredBlob, getCredBlob, getCredBlobUnsafe, getCredBlobUnchecked, setGetCredBlob, getGetCredBlob, getGetCredBlobUnsafe, getGetCredBlobUnchecked, setHmacCreateSecret, getHmacCreateSecret, getHmacCreateSecretUnsafe, getHmacCreateSecretUnchecked, setHmacGetSecret, getHmacGetSecret, getHmacGetSecretUnsafe, getHmacGetSecretUnchecked, setPayment, getPayment, getPaymentUnsafe, getPaymentUnchecked, setAppid, getAppid, getAppidUnsafe, getAppidUnchecked, setAppidExclude, getAppidExclude, getAppidExcludeUnsafe, getAppidExcludeUnchecked, setCredProps, getCredProps, getCredPropsUnsafe, getCredPropsUnchecked, setPrf, getPrf, getPrfUnsafe, getPrfUnchecked, setLargeBlob, getLargeBlob, getLargeBlobUnsafe, getLargeBlobUnchecked, setRemoteClientDataJSON, getRemoteClientDataJSON, getRemoteClientDataJSONUnsafe, getRemoteClientDataJSONUnchecked, AuthenticationExtensionsClientOutputs(..), gTypeAuthenticationExtensionsClientOutputs)
where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import GHCJS.Types (JSVal, JSString)
import GHCJS.Foreign (jsUndefined, jsNull)
import GHCJS.DOM.Types
import qualified GHCJS.DOM.Types as Types
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import GHCJS.DOM.JSFFI.Generated.Enums
foreign import javascript safe "(() => { return ({}); })"
js_newAuthenticationExtensionsClientOutputs :: IO AuthenticationExtensionsClientOutputs
-- | <https://w3c.github.io/webauthn/#dictdef-authenticationextensionsclientoutputs AuthenticationExtensionsClientOutputs specification>
newAuthenticationExtensionsClientOutputs :: (MonadDOM m) => m AuthenticationExtensionsClientOutputs
newAuthenticationExtensionsClientOutputs = liftDOM ((js_newAuthenticationExtensionsClientOutputs))
foreign import javascript safe "(($1, $2) => { $1[\"credBlob\"] = $2; })"
js_setCredBlob :: AuthenticationExtensionsClientOutputs -> Bool -> IO ()
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-credblob AuthenticationExtensionsClientOutputs.credBlob specification>
setCredBlob :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> Bool -> m ()
setCredBlob self val = liftDOM (void ((js_setCredBlob (self) (val))))
foreign import javascript unsafe "(($1) => { return $1[\"credBlob\"]; })"
js_getCredBlob :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-credblob AuthenticationExtensionsClientOutputs.credBlob specification>
getCredBlob :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe Bool)
getCredBlob self = liftDOM (((js_getCredBlob (self)) >>= fromJSValUnchecked))
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-credblob AuthenticationExtensionsClientOutputs.credBlob specification>
getCredBlobUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m Bool
getCredBlobUnsafe self = liftDOM ((((js_getCredBlob (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-credblob AuthenticationExtensionsClientOutputs.credBlob specification>
getCredBlobUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m Bool
getCredBlobUnchecked self = liftDOM ((pFromJSVal <$> (js_getCredBlob (self))))
foreign import javascript safe "(($1, $2) => { $1[\"getCredBlob\"] = $2; })"
js_setGetCredBlob :: AuthenticationExtensionsClientOutputs -> ArrayBuffer -> IO ()
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-getcredblob AuthenticationExtensionsClientOutputs.getCredBlob specification>
setGetCredBlob :: (MonadDOM m, IsArrayBuffer val) => AuthenticationExtensionsClientOutputs -> val -> m ()
setGetCredBlob self val = liftDOM (void ((js_setGetCredBlob (self) (Types.toArrayBuffer val))))
foreign import javascript unsafe "(($1) => { return $1[\"getCredBlob\"]; })"
js_getGetCredBlob :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-getcredblob AuthenticationExtensionsClientOutputs.getCredBlob specification>
getGetCredBlob :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe ArrayBuffer)
getGetCredBlob self = liftDOM (((js_getGetCredBlob (self)) >>= fromJSValUnchecked))
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-getcredblob AuthenticationExtensionsClientOutputs.getCredBlob specification>
getGetCredBlobUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m ArrayBuffer
getGetCredBlobUnsafe self = liftDOM ((((js_getGetCredBlob (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-getcredblob AuthenticationExtensionsClientOutputs.getCredBlob specification>
getGetCredBlobUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m ArrayBuffer
getGetCredBlobUnchecked self = liftDOM ((pFromJSVal <$> (js_getGetCredBlob (self))))
foreign import javascript safe "(($1, $2) => { $1[\"hmacCreateSecret\"] = $2; })"
js_setHmacCreateSecret :: AuthenticationExtensionsClientOutputs -> Bool -> IO ()
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-hmaccreatesecret AuthenticationExtensionsClientOutputs.hmacCreateSecret specification>
setHmacCreateSecret :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> Bool -> m ()
setHmacCreateSecret self val = liftDOM (void ((js_setHmacCreateSecret (self) (val))))
foreign import javascript unsafe "(($1) => { return $1[\"hmacCreateSecret\"]; })"
js_getHmacCreateSecret :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-hmaccreatesecret AuthenticationExtensionsClientOutputs.hmacCreateSecret specification>
getHmacCreateSecret :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe Bool)
getHmacCreateSecret self = liftDOM (((js_getHmacCreateSecret (self)) >>= fromJSValUnchecked))
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-hmaccreatesecret AuthenticationExtensionsClientOutputs.hmacCreateSecret specification>
getHmacCreateSecretUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m Bool
getHmacCreateSecretUnsafe self = liftDOM ((((js_getHmacCreateSecret (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-hmaccreatesecret AuthenticationExtensionsClientOutputs.hmacCreateSecret specification>
getHmacCreateSecretUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m Bool
getHmacCreateSecretUnchecked self = liftDOM ((pFromJSVal <$> (js_getHmacCreateSecret (self))))
foreign import javascript safe "(($1, $2) => { $1[\"hmacGetSecret\"] = $2; })"
js_setHmacGetSecret :: AuthenticationExtensionsClientOutputs -> HMACGetSecretOutput -> IO ()
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-hmacgetsecret AuthenticationExtensionsClientOutputs.hmacGetSecret specification>
setHmacGetSecret :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> HMACGetSecretOutput -> m ()
setHmacGetSecret self val = liftDOM (void ((js_setHmacGetSecret (self) (val))))
foreign import javascript unsafe "(($1) => { return $1[\"hmacGetSecret\"]; })"
js_getHmacGetSecret :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-hmacgetsecret AuthenticationExtensionsClientOutputs.hmacGetSecret specification>
getHmacGetSecret :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe HMACGetSecretOutput)
getHmacGetSecret self = liftDOM (((js_getHmacGetSecret (self)) >>= fromJSValUnchecked))
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-hmacgetsecret AuthenticationExtensionsClientOutputs.hmacGetSecret specification>
getHmacGetSecretUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m HMACGetSecretOutput
getHmacGetSecretUnsafe self = liftDOM ((((js_getHmacGetSecret (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientoutputs-hmacgetsecret AuthenticationExtensionsClientOutputs.hmacGetSecret specification>
getHmacGetSecretUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m HMACGetSecretOutput
getHmacGetSecretUnchecked self = liftDOM ((pFromJSVal <$> (js_getHmacGetSecret (self))))
foreign import javascript safe "(($1, $2) => { $1[\"payment\"] = $2; })"
js_setPayment :: AuthenticationExtensionsClientOutputs -> AuthenticationExtensionsPaymentOutputs -> IO ()
-- | <https://w3c.github.io/secure-payment-confirmation/#dom-authenticationextensionsclientoutputs-payment AuthenticationExtensionsClientOutputs.payment specification>
setPayment :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> AuthenticationExtensionsPaymentOutputs -> m ()
setPayment self val = liftDOM (void ((js_setPayment (self) (val))))
foreign import javascript unsafe "(($1) => { return $1[\"payment\"]; })"
js_getPayment :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://w3c.github.io/secure-payment-confirmation/#dom-authenticationextensionsclientoutputs-payment AuthenticationExtensionsClientOutputs.payment specification>
getPayment :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe AuthenticationExtensionsPaymentOutputs)
getPayment self = liftDOM (((js_getPayment (self)) >>= fromJSValUnchecked))
-- | <https://w3c.github.io/secure-payment-confirmation/#dom-authenticationextensionsclientoutputs-payment AuthenticationExtensionsClientOutputs.payment specification>
getPaymentUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m AuthenticationExtensionsPaymentOutputs
getPaymentUnsafe self = liftDOM ((((js_getPayment (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://w3c.github.io/secure-payment-confirmation/#dom-authenticationextensionsclientoutputs-payment AuthenticationExtensionsClientOutputs.payment specification>
getPaymentUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m AuthenticationExtensionsPaymentOutputs
getPaymentUnchecked self = liftDOM ((pFromJSVal <$> (js_getPayment (self))))
foreign import javascript safe "(($1, $2) => { $1[\"appid\"] = $2; })"
js_setAppid :: AuthenticationExtensionsClientOutputs -> Bool -> IO ()
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-appid AuthenticationExtensionsClientOutputs.appid specification>
setAppid :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> Bool -> m ()
setAppid self val = liftDOM (void ((js_setAppid (self) (val))))
foreign import javascript unsafe "(($1) => { return $1[\"appid\"]; })"
js_getAppid :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-appid AuthenticationExtensionsClientOutputs.appid specification>
getAppid :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe Bool)
getAppid self = liftDOM (((js_getAppid (self)) >>= fromJSValUnchecked))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-appid AuthenticationExtensionsClientOutputs.appid specification>
getAppidUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m Bool
getAppidUnsafe self = liftDOM ((((js_getAppid (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-appid AuthenticationExtensionsClientOutputs.appid specification>
getAppidUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m Bool
getAppidUnchecked self = liftDOM ((pFromJSVal <$> (js_getAppid (self))))
foreign import javascript safe "(($1, $2) => { $1[\"appidExclude\"] = $2; })"
js_setAppidExclude :: AuthenticationExtensionsClientOutputs -> Bool -> IO ()
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-appidexclude AuthenticationExtensionsClientOutputs.appidExclude specification>
setAppidExclude :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> Bool -> m ()
setAppidExclude self val = liftDOM (void ((js_setAppidExclude (self) (val))))
foreign import javascript unsafe "(($1) => { return $1[\"appidExclude\"]; })"
js_getAppidExclude :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-appidexclude AuthenticationExtensionsClientOutputs.appidExclude specification>
getAppidExclude :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe Bool)
getAppidExclude self = liftDOM (((js_getAppidExclude (self)) >>= fromJSValUnchecked))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-appidexclude AuthenticationExtensionsClientOutputs.appidExclude specification>
getAppidExcludeUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m Bool
getAppidExcludeUnsafe self = liftDOM ((((js_getAppidExclude (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-appidexclude AuthenticationExtensionsClientOutputs.appidExclude specification>
getAppidExcludeUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m Bool
getAppidExcludeUnchecked self = liftDOM ((pFromJSVal <$> (js_getAppidExclude (self))))
foreign import javascript safe "(($1, $2) => { $1[\"credProps\"] = $2; })"
js_setCredProps :: AuthenticationExtensionsClientOutputs -> CredentialPropertiesOutput -> IO ()
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-credprops AuthenticationExtensionsClientOutputs.credProps specification>
setCredProps :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> CredentialPropertiesOutput -> m ()
setCredProps self val = liftDOM (void ((js_setCredProps (self) (val))))
foreign import javascript unsafe "(($1) => { return $1[\"credProps\"]; })"
js_getCredProps :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-credprops AuthenticationExtensionsClientOutputs.credProps specification>
getCredProps :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe CredentialPropertiesOutput)
getCredProps self = liftDOM (((js_getCredProps (self)) >>= fromJSValUnchecked))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-credprops AuthenticationExtensionsClientOutputs.credProps specification>
getCredPropsUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m CredentialPropertiesOutput
getCredPropsUnsafe self = liftDOM ((((js_getCredProps (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-credprops AuthenticationExtensionsClientOutputs.credProps specification>
getCredPropsUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m CredentialPropertiesOutput
getCredPropsUnchecked self = liftDOM ((pFromJSVal <$> (js_getCredProps (self))))
foreign import javascript safe "(($1, $2) => { $1[\"prf\"] = $2; })"
js_setPrf :: AuthenticationExtensionsClientOutputs -> AuthenticationExtensionsPRFOutputs -> IO ()
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-prf AuthenticationExtensionsClientOutputs.prf specification>
setPrf :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> AuthenticationExtensionsPRFOutputs -> m ()
setPrf self val = liftDOM (void ((js_setPrf (self) (val))))
foreign import javascript unsafe "(($1) => { return $1[\"prf\"]; })"
js_getPrf :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-prf AuthenticationExtensionsClientOutputs.prf specification>
getPrf :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe AuthenticationExtensionsPRFOutputs)
getPrf self = liftDOM (((js_getPrf (self)) >>= fromJSValUnchecked))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-prf AuthenticationExtensionsClientOutputs.prf specification>
getPrfUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m AuthenticationExtensionsPRFOutputs
getPrfUnsafe self = liftDOM ((((js_getPrf (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-prf AuthenticationExtensionsClientOutputs.prf specification>
getPrfUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m AuthenticationExtensionsPRFOutputs
getPrfUnchecked self = liftDOM ((pFromJSVal <$> (js_getPrf (self))))
foreign import javascript safe "(($1, $2) => { $1[\"largeBlob\"] = $2; })"
js_setLargeBlob :: AuthenticationExtensionsClientOutputs -> AuthenticationExtensionsLargeBlobOutputs -> IO ()
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-largeblob AuthenticationExtensionsClientOutputs.largeBlob specification>
setLargeBlob :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> AuthenticationExtensionsLargeBlobOutputs -> m ()
setLargeBlob self val = liftDOM (void ((js_setLargeBlob (self) (val))))
foreign import javascript unsafe "(($1) => { return $1[\"largeBlob\"]; })"
js_getLargeBlob :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-largeblob AuthenticationExtensionsClientOutputs.largeBlob specification>
getLargeBlob :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe AuthenticationExtensionsLargeBlobOutputs)
getLargeBlob self = liftDOM (((js_getLargeBlob (self)) >>= fromJSValUnchecked))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-largeblob AuthenticationExtensionsClientOutputs.largeBlob specification>
getLargeBlobUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m AuthenticationExtensionsLargeBlobOutputs
getLargeBlobUnsafe self = liftDOM ((((js_getLargeBlob (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-largeblob AuthenticationExtensionsClientOutputs.largeBlob specification>
getLargeBlobUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m AuthenticationExtensionsLargeBlobOutputs
getLargeBlobUnchecked self = liftDOM ((pFromJSVal <$> (js_getLargeBlob (self))))
foreign import javascript safe "(($1, $2) => { $1[\"remoteClientDataJSON\"] = $2; })"
js_setRemoteClientDataJSON :: AuthenticationExtensionsClientOutputs -> Bool -> IO ()
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-remoteclientdatajson AuthenticationExtensionsClientOutputs.remoteClientDataJSON specification>
setRemoteClientDataJSON :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> Bool -> m ()
setRemoteClientDataJSON self val = liftDOM (void ((js_setRemoteClientDataJSON (self) (val))))
foreign import javascript unsafe "(($1) => { return $1[\"remoteClientDataJSON\"]; })"
js_getRemoteClientDataJSON :: AuthenticationExtensionsClientOutputs -> IO JSVal
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-remoteclientdatajson AuthenticationExtensionsClientOutputs.remoteClientDataJSON specification>
getRemoteClientDataJSON :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m (Maybe Bool)
getRemoteClientDataJSON self = liftDOM (((js_getRemoteClientDataJSON (self)) >>= fromJSValUnchecked))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-remoteclientdatajson AuthenticationExtensionsClientOutputs.remoteClientDataJSON specification>
getRemoteClientDataJSONUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientOutputs -> m Bool
getRemoteClientDataJSONUnsafe self = liftDOM ((((js_getRemoteClientDataJSON (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientoutputs-remoteclientdatajson AuthenticationExtensionsClientOutputs.remoteClientDataJSON specification>
getRemoteClientDataJSONUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientOutputs -> m Bool
getRemoteClientDataJSONUnchecked self = liftDOM ((pFromJSVal <$> (js_getRemoteClientDataJSON (self))))