packages feed

jsaddle-dom-0.10.0.0: src/JSDOM/Generated/AuthenticationExtensionsClientInputs.hs

{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from webauthn-4 (webref). Do not edit.
module JSDOM.Generated.AuthenticationExtensionsClientInputs
       (newAuthenticationExtensionsClientInputs, setCredentialProtectionPolicy, getCredentialProtectionPolicy, getCredentialProtectionPolicyUnsafe, getCredentialProtectionPolicyUnchecked, setEnforceCredentialProtectionPolicy, getEnforceCredentialProtectionPolicy, getEnforceCredentialProtectionPolicyUnsafe, getEnforceCredentialProtectionPolicyUnchecked, setCredBlob, getCredBlob, getCredBlobUnsafe, getCredBlobUnchecked, setGetCredBlob, getGetCredBlob, getGetCredBlobUnsafe, getGetCredBlobUnchecked, setMinPinLength, getMinPinLength, getMinPinLengthUnsafe, getMinPinLengthUnchecked, setPinComplexityPolicy, getPinComplexityPolicy, getPinComplexityPolicyUnsafe, getPinComplexityPolicyUnchecked, 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, AuthenticationExtensionsClientInputs(..), gTypeAuthenticationExtensionsClientInputs)
       where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import Language.Javascript.JSaddle (JSM, JSVal, JSString, toJSVal, valToBool, valToNumber, js, jss, jsf, jsg, new, function, asyncFunction, jsUndefined, jsNull)
import JSDOM.Types
import qualified JSDOM.Types as Types
import JSDOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import JSDOM.Generated.Enums

-- | <https://w3c.github.io/webauthn/#dictdef-authenticationextensionsclientinputs AuthenticationExtensionsClientInputs specification>
newAuthenticationExtensionsClientInputs :: (MonadDOM m) => m AuthenticationExtensionsClientInputs
newAuthenticationExtensionsClientInputs = liftDOM ((((new (jsg "Object") () >>= \o -> P.return o)) >>= fromJSValUnchecked))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-credentialprotectionpolicy AuthenticationExtensionsClientInputs.credentialProtectionPolicy specification>
setCredentialProtectionPolicy :: (MonadDOM m, ToJSString val) => AuthenticationExtensionsClientInputs -> val -> m ()
setCredentialProtectionPolicy self val = liftDOM (void (self ^. jss "credentialProtectionPolicy" (toJSVal val)))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-credentialprotectionpolicy AuthenticationExtensionsClientInputs.credentialProtectionPolicy specification>
getCredentialProtectionPolicy :: (MonadDOM m, FromJSString result) => AuthenticationExtensionsClientInputs -> m (Maybe result)
getCredentialProtectionPolicy self = liftDOM (((self ^. js "credentialProtectionPolicy") >>= fromMaybeJSString))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-credentialprotectionpolicy AuthenticationExtensionsClientInputs.credentialProtectionPolicy specification>
getCredentialProtectionPolicyUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => AuthenticationExtensionsClientInputs -> m result
getCredentialProtectionPolicyUnsafe self = liftDOM ((((self ^. js "credentialProtectionPolicy") >>= fromMaybeJSString) >>= 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-authenticationextensionsclientinputs-credentialprotectionpolicy AuthenticationExtensionsClientInputs.credentialProtectionPolicy specification>
getCredentialProtectionPolicyUnchecked :: (MonadDOM m, FromJSString result) => AuthenticationExtensionsClientInputs -> m result
getCredentialProtectionPolicyUnchecked self = liftDOM (((self ^. js "credentialProtectionPolicy") >>= fromJSValUnchecked))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-enforcecredentialprotectionpolicy AuthenticationExtensionsClientInputs.enforceCredentialProtectionPolicy specification>
setEnforceCredentialProtectionPolicy :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> Bool -> m ()
setEnforceCredentialProtectionPolicy self val = liftDOM (void (self ^. jss "enforceCredentialProtectionPolicy" (toJSVal val)))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-enforcecredentialprotectionpolicy AuthenticationExtensionsClientInputs.enforceCredentialProtectionPolicy specification>
getEnforceCredentialProtectionPolicy :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe Bool)
getEnforceCredentialProtectionPolicy self = liftDOM (((self ^. js "enforceCredentialProtectionPolicy") >>= fromJSValUnchecked))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-enforcecredentialprotectionpolicy AuthenticationExtensionsClientInputs.enforceCredentialProtectionPolicy specification>
getEnforceCredentialProtectionPolicyUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m Bool
getEnforceCredentialProtectionPolicyUnsafe self = liftDOM ((((self ^. js "enforceCredentialProtectionPolicy") >>= 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-authenticationextensionsclientinputs-enforcecredentialprotectionpolicy AuthenticationExtensionsClientInputs.enforceCredentialProtectionPolicy specification>
getEnforceCredentialProtectionPolicyUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m Bool
getEnforceCredentialProtectionPolicyUnchecked self = liftDOM (((self ^. js "enforceCredentialProtectionPolicy") >>= valToBool))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-credblob AuthenticationExtensionsClientInputs.credBlob specification>
setCredBlob :: (MonadDOM m, IsArrayBuffer val) => AuthenticationExtensionsClientInputs -> val -> m ()
setCredBlob self val = liftDOM (void (self ^. jss "credBlob" (toJSVal val)))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-credblob AuthenticationExtensionsClientInputs.credBlob specification>
getCredBlob :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe ArrayBuffer)
getCredBlob self = liftDOM (((self ^. js "credBlob") >>= fromJSValUnchecked))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-credblob AuthenticationExtensionsClientInputs.credBlob specification>
getCredBlobUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m ArrayBuffer
getCredBlobUnsafe self = liftDOM ((((self ^. js "credBlob") >>= 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-authenticationextensionsclientinputs-credblob AuthenticationExtensionsClientInputs.credBlob specification>
getCredBlobUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m ArrayBuffer
getCredBlobUnchecked self = liftDOM (((self ^. js "credBlob") >>= fromJSValUnchecked))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-getcredblob AuthenticationExtensionsClientInputs.getCredBlob specification>
setGetCredBlob :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> Bool -> m ()
setGetCredBlob self val = liftDOM (void (self ^. jss "getCredBlob" (toJSVal val)))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-getcredblob AuthenticationExtensionsClientInputs.getCredBlob specification>
getGetCredBlob :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe Bool)
getGetCredBlob self = liftDOM (((self ^. js "getCredBlob") >>= fromJSValUnchecked))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-getcredblob AuthenticationExtensionsClientInputs.getCredBlob specification>
getGetCredBlobUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m Bool
getGetCredBlobUnsafe self = liftDOM ((((self ^. js "getCredBlob") >>= 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-authenticationextensionsclientinputs-getcredblob AuthenticationExtensionsClientInputs.getCredBlob specification>
getGetCredBlobUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m Bool
getGetCredBlobUnchecked self = liftDOM (((self ^. js "getCredBlob") >>= valToBool))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-minpinlength AuthenticationExtensionsClientInputs.minPinLength specification>
setMinPinLength :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> Bool -> m ()
setMinPinLength self val = liftDOM (void (self ^. jss "minPinLength" (toJSVal val)))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-minpinlength AuthenticationExtensionsClientInputs.minPinLength specification>
getMinPinLength :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe Bool)
getMinPinLength self = liftDOM (((self ^. js "minPinLength") >>= fromJSValUnchecked))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-minpinlength AuthenticationExtensionsClientInputs.minPinLength specification>
getMinPinLengthUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m Bool
getMinPinLengthUnsafe self = liftDOM ((((self ^. js "minPinLength") >>= 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-authenticationextensionsclientinputs-minpinlength AuthenticationExtensionsClientInputs.minPinLength specification>
getMinPinLengthUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m Bool
getMinPinLengthUnchecked self = liftDOM (((self ^. js "minPinLength") >>= valToBool))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-pincomplexitypolicy AuthenticationExtensionsClientInputs.pinComplexityPolicy specification>
setPinComplexityPolicy :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> Bool -> m ()
setPinComplexityPolicy self val = liftDOM (void (self ^. jss "pinComplexityPolicy" (toJSVal val)))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-pincomplexitypolicy AuthenticationExtensionsClientInputs.pinComplexityPolicy specification>
getPinComplexityPolicy :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe Bool)
getPinComplexityPolicy self = liftDOM (((self ^. js "pinComplexityPolicy") >>= fromJSValUnchecked))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-pincomplexitypolicy AuthenticationExtensionsClientInputs.pinComplexityPolicy specification>
getPinComplexityPolicyUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m Bool
getPinComplexityPolicyUnsafe self = liftDOM ((((self ^. js "pinComplexityPolicy") >>= 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-authenticationextensionsclientinputs-pincomplexitypolicy AuthenticationExtensionsClientInputs.pinComplexityPolicy specification>
getPinComplexityPolicyUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m Bool
getPinComplexityPolicyUnchecked self = liftDOM (((self ^. js "pinComplexityPolicy") >>= valToBool))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-hmaccreatesecret AuthenticationExtensionsClientInputs.hmacCreateSecret specification>
setHmacCreateSecret :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> Bool -> m ()
setHmacCreateSecret self val = liftDOM (void (self ^. jss "hmacCreateSecret" (toJSVal val)))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-hmaccreatesecret AuthenticationExtensionsClientInputs.hmacCreateSecret specification>
getHmacCreateSecret :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe Bool)
getHmacCreateSecret self = liftDOM (((self ^. js "hmacCreateSecret") >>= fromJSValUnchecked))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-hmaccreatesecret AuthenticationExtensionsClientInputs.hmacCreateSecret specification>
getHmacCreateSecretUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m Bool
getHmacCreateSecretUnsafe self = liftDOM ((((self ^. js "hmacCreateSecret") >>= 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-authenticationextensionsclientinputs-hmaccreatesecret AuthenticationExtensionsClientInputs.hmacCreateSecret specification>
getHmacCreateSecretUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m Bool
getHmacCreateSecretUnchecked self = liftDOM (((self ^. js "hmacCreateSecret") >>= valToBool))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-hmacgetsecret AuthenticationExtensionsClientInputs.hmacGetSecret specification>
setHmacGetSecret :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> HMACGetSecretInput -> m ()
setHmacGetSecret self val = liftDOM (void (self ^. jss "hmacGetSecret" (toJSVal val)))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-hmacgetsecret AuthenticationExtensionsClientInputs.hmacGetSecret specification>
getHmacGetSecret :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe HMACGetSecretInput)
getHmacGetSecret self = liftDOM (((self ^. js "hmacGetSecret") >>= fromJSValUnchecked))

-- | <https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#dom-authenticationextensionsclientinputs-hmacgetsecret AuthenticationExtensionsClientInputs.hmacGetSecret specification>
getHmacGetSecretUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m HMACGetSecretInput
getHmacGetSecretUnsafe self = liftDOM ((((self ^. js "hmacGetSecret") >>= 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-authenticationextensionsclientinputs-hmacgetsecret AuthenticationExtensionsClientInputs.hmacGetSecret specification>
getHmacGetSecretUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m HMACGetSecretInput
getHmacGetSecretUnchecked self = liftDOM (((self ^. js "hmacGetSecret") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/secure-payment-confirmation/#dom-authenticationextensionsclientinputs-payment AuthenticationExtensionsClientInputs.payment specification>
setPayment :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> AuthenticationExtensionsPaymentInputs -> m ()
setPayment self val = liftDOM (void (self ^. jss "payment" (toJSVal val)))

-- | <https://w3c.github.io/secure-payment-confirmation/#dom-authenticationextensionsclientinputs-payment AuthenticationExtensionsClientInputs.payment specification>
getPayment :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe AuthenticationExtensionsPaymentInputs)
getPayment self = liftDOM (((self ^. js "payment") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/secure-payment-confirmation/#dom-authenticationextensionsclientinputs-payment AuthenticationExtensionsClientInputs.payment specification>
getPaymentUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m AuthenticationExtensionsPaymentInputs
getPaymentUnsafe self = liftDOM ((((self ^. js "payment") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/secure-payment-confirmation/#dom-authenticationextensionsclientinputs-payment AuthenticationExtensionsClientInputs.payment specification>
getPaymentUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m AuthenticationExtensionsPaymentInputs
getPaymentUnchecked self = liftDOM (((self ^. js "payment") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-appid AuthenticationExtensionsClientInputs.appid specification>
setAppid :: (MonadDOM m, ToJSString val) => AuthenticationExtensionsClientInputs -> val -> m ()
setAppid self val = liftDOM (void (self ^. jss "appid" (toJSVal val)))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-appid AuthenticationExtensionsClientInputs.appid specification>
getAppid :: (MonadDOM m, FromJSString result) => AuthenticationExtensionsClientInputs -> m (Maybe result)
getAppid self = liftDOM (((self ^. js "appid") >>= fromMaybeJSString))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-appid AuthenticationExtensionsClientInputs.appid specification>
getAppidUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => AuthenticationExtensionsClientInputs -> m result
getAppidUnsafe self = liftDOM ((((self ^. js "appid") >>= fromMaybeJSString) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-appid AuthenticationExtensionsClientInputs.appid specification>
getAppidUnchecked :: (MonadDOM m, FromJSString result) => AuthenticationExtensionsClientInputs -> m result
getAppidUnchecked self = liftDOM (((self ^. js "appid") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-appidexclude AuthenticationExtensionsClientInputs.appidExclude specification>
setAppidExclude :: (MonadDOM m, ToJSString val) => AuthenticationExtensionsClientInputs -> val -> m ()
setAppidExclude self val = liftDOM (void (self ^. jss "appidExclude" (toJSVal val)))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-appidexclude AuthenticationExtensionsClientInputs.appidExclude specification>
getAppidExclude :: (MonadDOM m, FromJSString result) => AuthenticationExtensionsClientInputs -> m (Maybe result)
getAppidExclude self = liftDOM (((self ^. js "appidExclude") >>= fromMaybeJSString))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-appidexclude AuthenticationExtensionsClientInputs.appidExclude specification>
getAppidExcludeUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => AuthenticationExtensionsClientInputs -> m result
getAppidExcludeUnsafe self = liftDOM ((((self ^. js "appidExclude") >>= fromMaybeJSString) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-appidexclude AuthenticationExtensionsClientInputs.appidExclude specification>
getAppidExcludeUnchecked :: (MonadDOM m, FromJSString result) => AuthenticationExtensionsClientInputs -> m result
getAppidExcludeUnchecked self = liftDOM (((self ^. js "appidExclude") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-credprops AuthenticationExtensionsClientInputs.credProps specification>
setCredProps :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> Bool -> m ()
setCredProps self val = liftDOM (void (self ^. jss "credProps" (toJSVal val)))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-credprops AuthenticationExtensionsClientInputs.credProps specification>
getCredProps :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe Bool)
getCredProps self = liftDOM (((self ^. js "credProps") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-credprops AuthenticationExtensionsClientInputs.credProps specification>
getCredPropsUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m Bool
getCredPropsUnsafe self = liftDOM ((((self ^. js "credProps") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-credprops AuthenticationExtensionsClientInputs.credProps specification>
getCredPropsUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m Bool
getCredPropsUnchecked self = liftDOM (((self ^. js "credProps") >>= valToBool))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-prf AuthenticationExtensionsClientInputs.prf specification>
setPrf :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> AuthenticationExtensionsPRFInputs -> m ()
setPrf self val = liftDOM (void (self ^. jss "prf" (toJSVal val)))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-prf AuthenticationExtensionsClientInputs.prf specification>
getPrf :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe AuthenticationExtensionsPRFInputs)
getPrf self = liftDOM (((self ^. js "prf") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-prf AuthenticationExtensionsClientInputs.prf specification>
getPrfUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m AuthenticationExtensionsPRFInputs
getPrfUnsafe self = liftDOM ((((self ^. js "prf") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-prf AuthenticationExtensionsClientInputs.prf specification>
getPrfUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m AuthenticationExtensionsPRFInputs
getPrfUnchecked self = liftDOM (((self ^. js "prf") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-largeblob AuthenticationExtensionsClientInputs.largeBlob specification>
setLargeBlob :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> AuthenticationExtensionsLargeBlobInputs -> m ()
setLargeBlob self val = liftDOM (void (self ^. jss "largeBlob" (toJSVal val)))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-largeblob AuthenticationExtensionsClientInputs.largeBlob specification>
getLargeBlob :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m (Maybe AuthenticationExtensionsLargeBlobInputs)
getLargeBlob self = liftDOM (((self ^. js "largeBlob") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-largeblob AuthenticationExtensionsClientInputs.largeBlob specification>
getLargeBlobUnsafe :: (MonadDOM m, HasCallStack) => AuthenticationExtensionsClientInputs -> m AuthenticationExtensionsLargeBlobInputs
getLargeBlobUnsafe self = liftDOM ((((self ^. js "largeBlob") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-largeblob AuthenticationExtensionsClientInputs.largeBlob specification>
getLargeBlobUnchecked :: (MonadDOM m) => AuthenticationExtensionsClientInputs -> m AuthenticationExtensionsLargeBlobInputs
getLargeBlobUnchecked self = liftDOM (((self ^. js "largeBlob") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-remoteclientdatajson AuthenticationExtensionsClientInputs.remoteClientDataJSON specification>
setRemoteClientDataJSON :: (MonadDOM m, ToJSString val) => AuthenticationExtensionsClientInputs -> val -> m ()
setRemoteClientDataJSON self val = liftDOM (void (self ^. jss "remoteClientDataJSON" (toJSVal val)))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-remoteclientdatajson AuthenticationExtensionsClientInputs.remoteClientDataJSON specification>
getRemoteClientDataJSON :: (MonadDOM m, FromJSString result) => AuthenticationExtensionsClientInputs -> m (Maybe result)
getRemoteClientDataJSON self = liftDOM (((self ^. js "remoteClientDataJSON") >>= fromMaybeJSString))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-remoteclientdatajson AuthenticationExtensionsClientInputs.remoteClientDataJSON specification>
getRemoteClientDataJSONUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => AuthenticationExtensionsClientInputs -> m result
getRemoteClientDataJSONUnsafe self = liftDOM ((((self ^. js "remoteClientDataJSON") >>= fromMaybeJSString) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webauthn/#dom-authenticationextensionsclientinputs-remoteclientdatajson AuthenticationExtensionsClientInputs.remoteClientDataJSON specification>
getRemoteClientDataJSONUnchecked :: (MonadDOM m, FromJSString result) => AuthenticationExtensionsClientInputs -> m result
getRemoteClientDataJSONUnchecked self = liftDOM (((self ^. js "remoteClientDataJSON") >>= fromJSValUnchecked))