@@ -244,6 +244,7 @@ instance ToJSON VerifyCustomTokenResponse where
244data IdpConfig = IdpConfig'
244data IdpConfig = IdpConfig'
245 { _icClientId :: !(Maybe Text)
245 { _icClientId :: !(Maybe Text)
246 , _icEnabled :: !(Maybe Bool)
246 , _icEnabled :: !(Maybe Bool)
247+ , _icSecret :: !(Maybe Text)
247 , _icExperimentPercent :: !(Maybe (Textual Int32))
248 , _icExperimentPercent :: !(Maybe (Textual Int32))
248 , _icProvider :: !(Maybe Text)
249 , _icProvider :: !(Maybe Text)
249 } deriving (Eq,Show,Data,Typeable,Generic)
250 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -256,6 +257,8 @@ data IdpConfig = IdpConfig'
257-- * 'icEnabled'
258-- * 'icEnabled'
259-- * 'icExperimentPercent'
262-- * 'icExperimentPercent'
261-- * 'icProvider'
264-- * 'icProvider'
@@ -265,6 +268,7 @@ idpConfig =
265 IdpConfig'
268 IdpConfig'
266 { _icClientId = Nothing
269 { _icClientId = Nothing
267 , _icEnabled = Nothing
270 , _icEnabled = Nothing
271+ , _icSecret = Nothing
268 , _icExperimentPercent = Nothing
272 , _icExperimentPercent = Nothing
269 , _icProvider = Nothing
273 , _icProvider = Nothing
@@ -279,6 +283,10 @@ icEnabled :: Lens' IdpConfig (Maybe Bool)
280 = lens _icEnabled (\ s a -> s{_icEnabled = a})
284 = lens _icEnabled (\ s a -> s{_icEnabled = a})
286+-- | OAuth2 client secret.
287+icSecret :: Lens' IdpConfig (Maybe Text)
288+icSecret = lens _icSecret (\ s a -> s{_icSecret = a})
282-- | Percent of users who will be prompted\/redirected federated login for
290-- | Percent of users who will be prompted\/redirected federated login for
283-- this IDP.
291-- this IDP.
284icExperimentPercent :: Lens' IdpConfig (Maybe Int32)
292icExperimentPercent :: Lens' IdpConfig (Maybe Int32)
@@ -298,7 +306,8 @@ instance FromJSON IdpConfig where
299 IdpConfig' <$>
307 IdpConfig' <$>
300 (o .:? "clientId") <*> (o .:? "enabled") <*>
308 (o .:? "clientId") <*> (o .:? "enabled") <*>
301− (o .:? "experimentPercent")
310+ <*> (o .:? "experimentPercent")
302 <*> (o .:? "provider"))
311 <*> (o .:? "provider"))
304instance ToJSON IdpConfig where
313instance ToJSON IdpConfig where
@@ -307,6 +316,7 @@ instance ToJSON IdpConfig where
307 (catMaybes
316 (catMaybes
308 [("clientId" .=) <$> _icClientId,
317 [("clientId" .=) <$> _icClientId,
309 ("enabled" .=) <$> _icEnabled,
318 ("enabled" .=) <$> _icEnabled,
319+ ("secret" .=) <$> _icSecret,
310 ("experimentPercent" .=) <$> _icExperimentPercent,
320 ("experimentPercent" .=) <$> _icExperimentPercent,
311 ("provider" .=) <$> _icProvider])
321 ("provider" .=) <$> _icProvider])
@@ -594,6 +604,7 @@ instance ToJSON
594data SetAccountInfoResponseProviderUserInfoItem = SetAccountInfoResponseProviderUserInfoItem'
604data SetAccountInfoResponseProviderUserInfoItem = SetAccountInfoResponseProviderUserInfoItem'
595 { _sairpuiiProviderId :: !(Maybe Text)
605 { _sairpuiiProviderId :: !(Maybe Text)
596 , _sairpuiiPhotoURL :: !(Maybe Text)
606 , _sairpuiiPhotoURL :: !(Maybe Text)
607+ , _sairpuiiFederatedId :: !(Maybe Text)
597 , _sairpuiiDisplayName :: !(Maybe Text)
608 , _sairpuiiDisplayName :: !(Maybe Text)
598 } deriving (Eq,Show,Data,Typeable,Generic)
609 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -605,6 +616,8 @@ data SetAccountInfoResponseProviderUserInfoItem = SetAccountInfoResponseProvider
606-- * 'sairpuiiPhotoURL'
617-- * 'sairpuiiPhotoURL'
619+-- * 'sairpuiiFederatedId'
608-- * 'sairpuiiDisplayName'
621-- * 'sairpuiiDisplayName'
609setAccountInfoResponseProviderUserInfoItem
622setAccountInfoResponseProviderUserInfoItem
610 :: SetAccountInfoResponseProviderUserInfoItem
623 :: SetAccountInfoResponseProviderUserInfoItem
@@ -612,6 +625,7 @@ setAccountInfoResponseProviderUserInfoItem =
612 SetAccountInfoResponseProviderUserInfoItem'
625 SetAccountInfoResponseProviderUserInfoItem'
613 { _sairpuiiProviderId = Nothing
626 { _sairpuiiProviderId = Nothing
614 , _sairpuiiPhotoURL = Nothing
627 , _sairpuiiPhotoURL = Nothing
628+ , _sairpuiiFederatedId = Nothing
615 , _sairpuiiDisplayName = Nothing
629 , _sairpuiiDisplayName = Nothing
@@ -629,6 +643,12 @@ sairpuiiPhotoURL
629 = lens _sairpuiiPhotoURL
643 = lens _sairpuiiPhotoURL
630 (\ s a -> s{_sairpuiiPhotoURL = a})
644 (\ s a -> s{_sairpuiiPhotoURL = a})
646+-- | User\'s identifier at IDP.
647+sairpuiiFederatedId :: Lens' SetAccountInfoResponseProviderUserInfoItem (Maybe Text)
649+ = lens _sairpuiiFederatedId
650+ (\ s a -> s{_sairpuiiFederatedId = a})
632-- | The user\'s display name at the IDP.
652-- | The user\'s display name at the IDP.
633sairpuiiDisplayName :: Lens' SetAccountInfoResponseProviderUserInfoItem (Maybe Text)
653sairpuiiDisplayName :: Lens' SetAccountInfoResponseProviderUserInfoItem (Maybe Text)
634sairpuiiDisplayName
654sairpuiiDisplayName
@@ -643,7 +663,8 @@ instance FromJSON
644 SetAccountInfoResponseProviderUserInfoItem' <$>
664 SetAccountInfoResponseProviderUserInfoItem' <$>
645 (o .:? "providerId") <*> (o .:? "photoUrl") <*>
665 (o .:? "providerId") <*> (o .:? "photoUrl") <*>
666+ (o .:? "federatedId")
646− (o .:? "displayName"))
667+ <*> (o .:? "displayName"))
648instance ToJSON
669instance ToJSON
649 SetAccountInfoResponseProviderUserInfoItem where
670 SetAccountInfoResponseProviderUserInfoItem where
@@ -653,6 +674,7 @@ instance ToJSON
653 (catMaybes
674 (catMaybes
654 [("providerId" .=) <$> _sairpuiiProviderId,
675 [("providerId" .=) <$> _sairpuiiProviderId,
655 ("photoUrl" .=) <$> _sairpuiiPhotoURL,
676 ("photoUrl" .=) <$> _sairpuiiPhotoURL,
677+ ("federatedId" .=) <$> _sairpuiiFederatedId,
656 ("displayName" .=) <$> _sairpuiiDisplayName])
678 ("displayName" .=) <$> _sairpuiiDisplayName])
658-- | Request to verify the password.
680-- | Request to verify the password.
@@ -911,20 +933,25 @@ instance ToJSON SignupNewUserResponse where
912-- /See:/ 'identitytoolkitRelyingPartySetProjectConfigRequest' smart constructor.
934-- /See:/ 'identitytoolkitRelyingPartySetProjectConfigRequest' smart constructor.
913data IdentitytoolkitRelyingPartySetProjectConfigRequest = IdentitytoolkitRelyingPartySetProjectConfigRequest'
935data IdentitytoolkitRelyingPartySetProjectConfigRequest = IdentitytoolkitRelyingPartySetProjectConfigRequest'
936+ { _irpspcrAuthorizedDomains :: !(Maybe [Text])
914− { _irpspcrAPIKey :: !(Maybe Text)
937+ , _irpspcrAPIKey :: !(Maybe Text)
915− , _irpspcrIdpConfig :: !(Maybe [IdpConfig])
938+ , _irpspcrIdpConfig :: !(Maybe [IdpConfig])
916− , _irpspcrChangeEmailTemplate :: !(Maybe EmailTemplate)
939+ , _irpspcrChangeEmailTemplate :: !(Maybe EmailTemplate)
917− , _irpspcrDelegatedProjectNumber :: !(Maybe (Textual Int64))
940+ , _irpspcrDelegatedProjectNumber :: !(Maybe (Textual Int64))
918− , _irpspcrVerifyEmailTemplate :: !(Maybe EmailTemplate)
941+ , _irpspcrVerifyEmailTemplate :: !(Maybe EmailTemplate)
942+ , _irpspcrEnableAnonymousUser :: !(Maybe Bool)
943+ , _irpspcrLegacyResetPasswordTemplate :: !(Maybe EmailTemplate)
919− , _irpspcrAllowPasswordUser :: !(Maybe Bool)
944+ , _irpspcrAllowPasswordUser :: !(Maybe Bool)
920− , _irpspcrResetPasswordTemplate :: !(Maybe EmailTemplate)
945+ , _irpspcrResetPasswordTemplate :: !(Maybe EmailTemplate)
921− , _irpspcrUseEmailSending :: !(Maybe Bool)
946+ , _irpspcrUseEmailSending :: !(Maybe Bool)
922 } deriving (Eq,Show,Data,Typeable,Generic)
947 } deriving (Eq,Show,Data,Typeable,Generic)
924-- | Creates a value of 'IdentitytoolkitRelyingPartySetProjectConfigRequest' with the minimum fields required to make a request.
949-- | Creates a value of 'IdentitytoolkitRelyingPartySetProjectConfigRequest' with the minimum fields required to make a request.
926-- Use one of the following lenses to modify other fields as desired:
951-- Use one of the following lenses to modify other fields as desired:
953+-- * 'irpspcrAuthorizedDomains'
928-- * 'irpspcrAPIKey'
955-- * 'irpspcrAPIKey'
930-- * 'irpspcrIdpConfig'
957-- * 'irpspcrIdpConfig'
@@ -935,6 +962,10 @@ data IdentitytoolkitRelyingPartySetProjectConfigRequest = IdentitytoolkitRelying
936-- * 'irpspcrVerifyEmailTemplate'
963-- * 'irpspcrVerifyEmailTemplate'
965+-- * 'irpspcrEnableAnonymousUser'
967+-- * 'irpspcrLegacyResetPasswordTemplate'
938-- * 'irpspcrAllowPasswordUser'
969-- * 'irpspcrAllowPasswordUser'
940-- * 'irpspcrResetPasswordTemplate'
971-- * 'irpspcrResetPasswordTemplate'
@@ -944,16 +975,27 @@ identitytoolkitRelyingPartySetProjectConfigRequest
944 :: IdentitytoolkitRelyingPartySetProjectConfigRequest
975 :: IdentitytoolkitRelyingPartySetProjectConfigRequest
945identitytoolkitRelyingPartySetProjectConfigRequest =
976identitytoolkitRelyingPartySetProjectConfigRequest =
946 IdentitytoolkitRelyingPartySetProjectConfigRequest'
977 IdentitytoolkitRelyingPartySetProjectConfigRequest'
978+ { _irpspcrAuthorizedDomains = Nothing
947− { _irpspcrAPIKey = Nothing
979+ , _irpspcrAPIKey = Nothing
948 , _irpspcrIdpConfig = Nothing
980 , _irpspcrIdpConfig = Nothing
949 , _irpspcrChangeEmailTemplate = Nothing
981 , _irpspcrChangeEmailTemplate = Nothing
950 , _irpspcrDelegatedProjectNumber = Nothing
982 , _irpspcrDelegatedProjectNumber = Nothing
951 , _irpspcrVerifyEmailTemplate = Nothing
983 , _irpspcrVerifyEmailTemplate = Nothing
984+ , _irpspcrEnableAnonymousUser = Nothing
985+ , _irpspcrLegacyResetPasswordTemplate = Nothing
952 , _irpspcrAllowPasswordUser = Nothing
986 , _irpspcrAllowPasswordUser = Nothing
953 , _irpspcrResetPasswordTemplate = Nothing
987 , _irpspcrResetPasswordTemplate = Nothing
954 , _irpspcrUseEmailSending = Nothing
988 , _irpspcrUseEmailSending = Nothing
991+-- | Authorized domains for widget redirect.
992+irpspcrAuthorizedDomains :: Lens' IdentitytoolkitRelyingPartySetProjectConfigRequest [Text]
993+irpspcrAuthorizedDomains
994+ = lens _irpspcrAuthorizedDomains
995+ (\ s a -> s{_irpspcrAuthorizedDomains = a})
957-- | Browser API key, needed when making http request to Apiary.
999-- | Browser API key, needed when making http request to Apiary.
958irpspcrAPIKey :: Lens' IdentitytoolkitRelyingPartySetProjectConfigRequest (Maybe Text)
1000irpspcrAPIKey :: Lens' IdentitytoolkitRelyingPartySetProjectConfigRequest (Maybe Text)
959irpspcrAPIKey
1001irpspcrAPIKey
@@ -988,6 +1030,18 @@ irpspcrVerifyEmailTemplate
988 = lens _irpspcrVerifyEmailTemplate
1030 = lens _irpspcrVerifyEmailTemplate
989 (\ s a -> s{_irpspcrVerifyEmailTemplate = a})
1031 (\ s a -> s{_irpspcrVerifyEmailTemplate = a})
1033+-- | Whether to enable anonymous user.
1034+irpspcrEnableAnonymousUser :: Lens' IdentitytoolkitRelyingPartySetProjectConfigRequest (Maybe Bool)
1035+irpspcrEnableAnonymousUser
1036+ = lens _irpspcrEnableAnonymousUser
1037+ (\ s a -> s{_irpspcrEnableAnonymousUser = a})
1039+-- | Legacy reset password email template.
1040+irpspcrLegacyResetPasswordTemplate :: Lens' IdentitytoolkitRelyingPartySetProjectConfigRequest (Maybe EmailTemplate)
1041+irpspcrLegacyResetPasswordTemplate
1042+ = lens _irpspcrLegacyResetPasswordTemplate
1043+ (\ s a -> s{_irpspcrLegacyResetPasswordTemplate = a})
991-- | Whether to allow password user sign in or sign up.
1045-- | Whether to allow password user sign in or sign up.
992irpspcrAllowPasswordUser :: Lens' IdentitytoolkitRelyingPartySetProjectConfigRequest (Maybe Bool)
1046irpspcrAllowPasswordUser :: Lens' IdentitytoolkitRelyingPartySetProjectConfigRequest (Maybe Bool)
993irpspcrAllowPasswordUser
1047irpspcrAllowPasswordUser
@@ -1015,10 +1069,14 @@ instance FromJSON
1016 IdentitytoolkitRelyingPartySetProjectConfigRequest'
1070 IdentitytoolkitRelyingPartySetProjectConfigRequest'
1072+ (o .:? "authorizedDomains" .!= mempty) <*>
1018− (o .:? "apiKey") <*> (o .:? "idpConfig" .!= mempty)
1074+ <*> (o .:? "idpConfig" .!= mempty)
1019 <*> (o .:? "changeEmailTemplate")
1075 <*> (o .:? "changeEmailTemplate")
1020 <*> (o .:? "delegatedProjectNumber")
1076 <*> (o .:? "delegatedProjectNumber")
1021 <*> (o .:? "verifyEmailTemplate")
1077 <*> (o .:? "verifyEmailTemplate")
1078+ <*> (o .:? "enableAnonymousUser")
1079+ <*> (o .:? "legacyResetPasswordTemplate")
1022 <*> (o .:? "allowPasswordUser")
1080 <*> (o .:? "allowPasswordUser")
1023 <*> (o .:? "resetPasswordTemplate")
1081 <*> (o .:? "resetPasswordTemplate")
1024 <*> (o .:? "useEmailSending"))
1082 <*> (o .:? "useEmailSending"))
@@ -1030,7 +1088,9 @@ instance ToJSON
1030 IdentitytoolkitRelyingPartySetProjectConfigRequest'{..}
1088 IdentitytoolkitRelyingPartySetProjectConfigRequest'{..}
1031 = object
1089 = object
1032 (catMaybes
1090 (catMaybes
1091+ [("authorizedDomains" .=) <$>
1092+ _irpspcrAuthorizedDomains,
1033− [("apiKey" .=) <$> _irpspcrAPIKey,
1093+ ("apiKey" .=) <$> _irpspcrAPIKey,
1034 ("idpConfig" .=) <$> _irpspcrIdpConfig,
1094 ("idpConfig" .=) <$> _irpspcrIdpConfig,
1035 ("changeEmailTemplate" .=) <$>
1095 ("changeEmailTemplate" .=) <$>
1036 _irpspcrChangeEmailTemplate,
1096 _irpspcrChangeEmailTemplate,
@@ -1038,6 +1098,10 @@ instance ToJSON
1038 _irpspcrDelegatedProjectNumber,
1098 _irpspcrDelegatedProjectNumber,
1039 ("verifyEmailTemplate" .=) <$>
1099 ("verifyEmailTemplate" .=) <$>
1040 _irpspcrVerifyEmailTemplate,
1100 _irpspcrVerifyEmailTemplate,
1101+ ("enableAnonymousUser" .=) <$>
1102+ _irpspcrEnableAnonymousUser,
1103+ ("legacyResetPasswordTemplate" .=) <$>
1104+ _irpspcrLegacyResetPasswordTemplate,
1041 ("allowPasswordUser" .=) <$>
1105 ("allowPasswordUser" .=) <$>
1042 _irpspcrAllowPasswordUser,
1106 _irpspcrAllowPasswordUser,
1043 ("resetPasswordTemplate" .=) <$>
1107 ("resetPasswordTemplate" .=) <$>
@@ -1605,15 +1669,17 @@ instance ToJSON DownloadAccountResponse where
1606-- /See:/ 'identitytoolkitRelyingPartyGetProjectConfigResponse' smart constructor.
1670-- /See:/ 'identitytoolkitRelyingPartyGetProjectConfigResponse' smart constructor.
1607data IdentitytoolkitRelyingPartyGetProjectConfigResponse = IdentitytoolkitRelyingPartyGetProjectConfigResponse'
1671data IdentitytoolkitRelyingPartyGetProjectConfigResponse = IdentitytoolkitRelyingPartyGetProjectConfigResponse'
1608− { _irpgpcrAuthorizedDomains :: !(Maybe [Text])
1672+ { _irpgpcrAuthorizedDomains :: !(Maybe [Text])
1609− , _irpgpcrAPIKey :: !(Maybe Text)
1673+ , _irpgpcrAPIKey :: !(Maybe Text)
1610− , _irpgpcrIdpConfig :: !(Maybe [IdpConfig])
1674+ , _irpgpcrIdpConfig :: !(Maybe [IdpConfig])
1611− , _irpgpcrChangeEmailTemplate :: !(Maybe EmailTemplate)
1675+ , _irpgpcrChangeEmailTemplate :: !(Maybe EmailTemplate)
1612− , _irpgpcrVerifyEmailTemplate :: !(Maybe EmailTemplate)
1676+ , _irpgpcrVerifyEmailTemplate :: !(Maybe EmailTemplate)
1677+ , _irpgpcrEnableAnonymousUser :: !(Maybe Bool)
1678+ , _irpgpcrLegacyResetPasswordTemplate :: !(Maybe EmailTemplate)
1613− , _irpgpcrAllowPasswordUser :: !(Maybe Bool)
1679+ , _irpgpcrAllowPasswordUser :: !(Maybe Bool)
1614− , _irpgpcrResetPasswordTemplate :: !(Maybe EmailTemplate)
1680+ , _irpgpcrResetPasswordTemplate :: !(Maybe EmailTemplate)
1615− , _irpgpcrProjectId :: !(Maybe Text)
1681+ , _irpgpcrProjectId :: !(Maybe Text)
1616− , _irpgpcrUseEmailSending :: !(Maybe Bool)
1682+ , _irpgpcrUseEmailSending :: !(Maybe Bool)
1617 } deriving (Eq,Show,Data,Typeable,Generic)
1683 } deriving (Eq,Show,Data,Typeable,Generic)
1619-- | Creates a value of 'IdentitytoolkitRelyingPartyGetProjectConfigResponse' with the minimum fields required to make a request.
1685-- | Creates a value of 'IdentitytoolkitRelyingPartyGetProjectConfigResponse' with the minimum fields required to make a request.
@@ -1630,6 +1696,10 @@ data IdentitytoolkitRelyingPartyGetProjectConfigResponse = IdentitytoolkitRelyin
1631-- * 'irpgpcrVerifyEmailTemplate'
1697-- * 'irpgpcrVerifyEmailTemplate'
1699+-- * 'irpgpcrEnableAnonymousUser'
1701+-- * 'irpgpcrLegacyResetPasswordTemplate'
1633-- * 'irpgpcrAllowPasswordUser'
1703-- * 'irpgpcrAllowPasswordUser'
1635-- * 'irpgpcrResetPasswordTemplate'
1705-- * 'irpgpcrResetPasswordTemplate'
@@ -1646,6 +1716,8 @@ identitytoolkitRelyingPartyGetProjectConfigResponse =
1646 , _irpgpcrIdpConfig = Nothing
1716 , _irpgpcrIdpConfig = Nothing
1647 , _irpgpcrChangeEmailTemplate = Nothing
1717 , _irpgpcrChangeEmailTemplate = Nothing
1648 , _irpgpcrVerifyEmailTemplate = Nothing
1718 , _irpgpcrVerifyEmailTemplate = Nothing
1719+ , _irpgpcrEnableAnonymousUser = Nothing
1720+ , _irpgpcrLegacyResetPasswordTemplate = Nothing
1649 , _irpgpcrAllowPasswordUser = Nothing
1721 , _irpgpcrAllowPasswordUser = Nothing
1650 , _irpgpcrResetPasswordTemplate = Nothing
1722 , _irpgpcrResetPasswordTemplate = Nothing
1651 , _irpgpcrProjectId = Nothing
1723 , _irpgpcrProjectId = Nothing
@@ -1686,6 +1758,18 @@ irpgpcrVerifyEmailTemplate
1686 = lens _irpgpcrVerifyEmailTemplate
1758 = lens _irpgpcrVerifyEmailTemplate
1687 (\ s a -> s{_irpgpcrVerifyEmailTemplate = a})
1759 (\ s a -> s{_irpgpcrVerifyEmailTemplate = a})
1761+-- | Whether anonymous user is enabled.
1762+irpgpcrEnableAnonymousUser :: Lens' IdentitytoolkitRelyingPartyGetProjectConfigResponse (Maybe Bool)
1763+irpgpcrEnableAnonymousUser
1764+ = lens _irpgpcrEnableAnonymousUser
1765+ (\ s a -> s{_irpgpcrEnableAnonymousUser = a})
1767+-- | Legacy reset password email template.
1768+irpgpcrLegacyResetPasswordTemplate :: Lens' IdentitytoolkitRelyingPartyGetProjectConfigResponse (Maybe EmailTemplate)
1769+irpgpcrLegacyResetPasswordTemplate
1770+ = lens _irpgpcrLegacyResetPasswordTemplate
1771+ (\ s a -> s{_irpgpcrLegacyResetPasswordTemplate = a})
1689-- | Whether to allow password user sign in or sign up.
1773-- | Whether to allow password user sign in or sign up.
1690irpgpcrAllowPasswordUser :: Lens' IdentitytoolkitRelyingPartyGetProjectConfigResponse (Maybe Bool)
1774irpgpcrAllowPasswordUser :: Lens' IdentitytoolkitRelyingPartyGetProjectConfigResponse (Maybe Bool)
1691irpgpcrAllowPasswordUser
1775irpgpcrAllowPasswordUser
@@ -1724,6 +1808,8 @@ instance FromJSON
1724 <*> (o .:? "idpConfig" .!= mempty)
1808 <*> (o .:? "idpConfig" .!= mempty)
1725 <*> (o .:? "changeEmailTemplate")
1809 <*> (o .:? "changeEmailTemplate")
1726 <*> (o .:? "verifyEmailTemplate")
1810 <*> (o .:? "verifyEmailTemplate")
1811+ <*> (o .:? "enableAnonymousUser")
1812+ <*> (o .:? "legacyResetPasswordTemplate")
1727 <*> (o .:? "allowPasswordUser")
1813 <*> (o .:? "allowPasswordUser")
1728 <*> (o .:? "resetPasswordTemplate")
1814 <*> (o .:? "resetPasswordTemplate")
1729 <*> (o .:? "projectId")
1815 <*> (o .:? "projectId")
@@ -1744,6 +1830,10 @@ instance ToJSON
1744 _irpgpcrChangeEmailTemplate,
1830 _irpgpcrChangeEmailTemplate,
1745 ("verifyEmailTemplate" .=) <$>
1831 ("verifyEmailTemplate" .=) <$>
1746 _irpgpcrVerifyEmailTemplate,
1832 _irpgpcrVerifyEmailTemplate,
1833+ ("enableAnonymousUser" .=) <$>
1834+ _irpgpcrEnableAnonymousUser,
1835+ ("legacyResetPasswordTemplate" .=) <$>
1836+ _irpgpcrLegacyResetPasswordTemplate,
1747 ("allowPasswordUser" .=) <$>
1837 ("allowPasswordUser" .=) <$>
1748 _irpgpcrAllowPasswordUser,
1838 _irpgpcrAllowPasswordUser,
1749 ("resetPasswordTemplate" .=) <$>
1839 ("resetPasswordTemplate" .=) <$>
@@ -3087,6 +3177,8 @@ data SetAccountInfoResponse = SetAccountInfoResponse'
3087 , _sairProviderUserInfo :: !(Maybe [SetAccountInfoResponseProviderUserInfoItem])
3177 , _sairProviderUserInfo :: !(Maybe [SetAccountInfoResponseProviderUserInfoItem])
3088 , _sairExpiresIn :: !(Maybe (Textual Int64))
3178 , _sairExpiresIn :: !(Maybe (Textual Int64))
3089 , _sairDisplayName :: !(Maybe Text)
3179 , _sairDisplayName :: !(Maybe Text)
3180+ , _sairPasswordHash :: !(Maybe (Textual Word8))
3181+ , _sairLocalId :: !(Maybe Text)
3090 , _sairNewEmail :: !(Maybe Text)
3182 , _sairNewEmail :: !(Maybe Text)
3091 , _sairIdToken :: !(Maybe Text)
3183 , _sairIdToken :: !(Maybe Text)
3092 } deriving (Eq,Show,Data,Typeable,Generic)
3184 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -3109,6 +3201,10 @@ data SetAccountInfoResponse = SetAccountInfoResponse'
3110-- * 'sairDisplayName'
3202-- * 'sairDisplayName'
3204+-- * 'sairPasswordHash'
3112-- * 'sairNewEmail'
3208-- * 'sairNewEmail'
3114-- * 'sairIdToken'
3210-- * 'sairIdToken'
@@ -3123,6 +3219,8 @@ setAccountInfoResponse =
3123 , _sairProviderUserInfo = Nothing
3219 , _sairProviderUserInfo = Nothing
3124 , _sairExpiresIn = Nothing
3220 , _sairExpiresIn = Nothing
3125 , _sairDisplayName = Nothing
3221 , _sairDisplayName = Nothing
3222+ , _sairPasswordHash = Nothing
3223+ , _sairLocalId = Nothing
3126 , _sairNewEmail = Nothing
3224 , _sairNewEmail = Nothing
3127 , _sairIdToken = Nothing
3225 , _sairIdToken = Nothing
@@ -3169,6 +3267,18 @@ sairDisplayName
3169 = lens _sairDisplayName
3267 = lens _sairDisplayName
3170 (\ s a -> s{_sairDisplayName = a})
3268 (\ s a -> s{_sairDisplayName = a})
3270+-- | The user\'s hashed password.
3271+sairPasswordHash :: Lens' SetAccountInfoResponse (Maybe Word8)
3273+ = lens _sairPasswordHash
3274+ (\ s a -> s{_sairPasswordHash = a})
3277+-- | The local ID of the user.
3278+sairLocalId :: Lens' SetAccountInfoResponse (Maybe Text)
3280+ = lens _sairLocalId (\ s a -> s{_sairLocalId = a})
3172-- | The new email the user attempts to change to.
3282-- | The new email the user attempts to change to.
3173sairNewEmail :: Lens' SetAccountInfoResponse (Maybe Text)
3283sairNewEmail :: Lens' SetAccountInfoResponse (Maybe Text)
3174sairNewEmail
3284sairNewEmail
@@ -3191,6 +3301,8 @@ instance FromJSON SetAccountInfoResponse where
3191 <*> (o .:? "providerUserInfo" .!= mempty)
3301 <*> (o .:? "providerUserInfo" .!= mempty)
3192 <*> (o .:? "expiresIn")
3302 <*> (o .:? "expiresIn")
3193 <*> (o .:? "displayName")
3303 <*> (o .:? "displayName")
3304+ <*> (o .:? "passwordHash")
3305+ <*> (o .:? "localId")
3194 <*> (o .:? "newEmail")
3306 <*> (o .:? "newEmail")
3195 <*> (o .:? "idToken"))
3307 <*> (o .:? "idToken"))
@@ -3205,6 +3317,8 @@ instance ToJSON SetAccountInfoResponse where
3205 ("providerUserInfo" .=) <$> _sairProviderUserInfo,
3317 ("providerUserInfo" .=) <$> _sairProviderUserInfo,
3206 ("expiresIn" .=) <$> _sairExpiresIn,
3318 ("expiresIn" .=) <$> _sairExpiresIn,
3207 ("displayName" .=) <$> _sairDisplayName,
3319 ("displayName" .=) <$> _sairDisplayName,
3320+ ("passwordHash" .=) <$> _sairPasswordHash,
3321+ ("localId" .=) <$> _sairLocalId,
3208 ("newEmail" .=) <$> _sairNewEmail,
3322 ("newEmail" .=) <$> _sairNewEmail,
3209 ("idToken" .=) <$> _sairIdToken])
3323 ("idToken" .=) <$> _sairIdToken])
@@ -3213,14 +3327,13 @@ instance ToJSON SetAccountInfoResponse where
3214-- /See:/ 'identitytoolkitRelyingPartySignupNewUserRequest' smart constructor.
3328-- /See:/ 'identitytoolkitRelyingPartySignupNewUserRequest' smart constructor.
3215data IdentitytoolkitRelyingPartySignupNewUserRequest = IdentitytoolkitRelyingPartySignupNewUserRequest'
3329data IdentitytoolkitRelyingPartySignupNewUserRequest = IdentitytoolkitRelyingPartySignupNewUserRequest'
3216− { _irpsnurEmail :: !(Maybe Text)
3330+ { _irpsnurEmail :: !(Maybe Text)
3217− , _irpsnurInstanceId :: !(Maybe Text)
3331+ , _irpsnurInstanceId :: !(Maybe Text)
3218− , _irpsnurCaptchaChallenge :: !(Maybe Text)
3332+ , _irpsnurCaptchaChallenge :: !(Maybe Text)
3219− , _irpsnurReturnSecureToken :: !(Maybe Bool)
3220− , _irpsnurPassword :: !(Maybe Text)
3333+ , _irpsnurPassword :: !(Maybe Text)
3221− , _irpsnurCaptchaResponse :: !(Maybe Text)
3334+ , _irpsnurCaptchaResponse :: !(Maybe Text)
3222− , _irpsnurDisplayName :: !(Maybe Text)
3335+ , _irpsnurDisplayName :: !(Maybe Text)
3223− , _irpsnurIdToken :: !(Maybe Text)
3336+ , _irpsnurIdToken :: !(Maybe Text)
3224 } deriving (Eq,Show,Data,Typeable,Generic)
3337 } deriving (Eq,Show,Data,Typeable,Generic)
3226-- | Creates a value of 'IdentitytoolkitRelyingPartySignupNewUserRequest' with the minimum fields required to make a request.
3339-- | Creates a value of 'IdentitytoolkitRelyingPartySignupNewUserRequest' with the minimum fields required to make a request.
@@ -3233,8 +3346,6 @@ data IdentitytoolkitRelyingPartySignupNewUserRequest = IdentitytoolkitRelyingPar
3234-- * 'irpsnurCaptchaChallenge'
3347-- * 'irpsnurCaptchaChallenge'
3236−-- * 'irpsnurReturnSecureToken'
3238-- * 'irpsnurPassword'
3349-- * 'irpsnurPassword'
3240-- * 'irpsnurCaptchaResponse'
3351-- * 'irpsnurCaptchaResponse'
@@ -3249,7 +3360,6 @@ identitytoolkitRelyingPartySignupNewUserRequest =
3249 { _irpsnurEmail = Nothing
3360 { _irpsnurEmail = Nothing
3250 , _irpsnurInstanceId = Nothing
3361 , _irpsnurInstanceId = Nothing
3251 , _irpsnurCaptchaChallenge = Nothing
3362 , _irpsnurCaptchaChallenge = Nothing
3252− , _irpsnurReturnSecureToken = Nothing
3253 , _irpsnurPassword = Nothing
3363 , _irpsnurPassword = Nothing
3254 , _irpsnurCaptchaResponse = Nothing
3364 , _irpsnurCaptchaResponse = Nothing
3255 , _irpsnurDisplayName = Nothing
3365 , _irpsnurDisplayName = Nothing
@@ -3273,12 +3383,6 @@ irpsnurCaptchaChallenge
3273 = lens _irpsnurCaptchaChallenge
3383 = lens _irpsnurCaptchaChallenge
3274 (\ s a -> s{_irpsnurCaptchaChallenge = a})
3384 (\ s a -> s{_irpsnurCaptchaChallenge = a})
3276−-- | Whether return sts id token and refresh token instead of gitkit token.
3277−irpsnurReturnSecureToken :: Lens' IdentitytoolkitRelyingPartySignupNewUserRequest (Maybe Bool)
3278−irpsnurReturnSecureToken
3279− = lens _irpsnurReturnSecureToken
3280− (\ s a -> s{_irpsnurReturnSecureToken = a})
3282-- | The new password of the user.
3386-- | The new password of the user.
3283irpsnurPassword :: Lens' IdentitytoolkitRelyingPartySignupNewUserRequest (Maybe Text)
3387irpsnurPassword :: Lens' IdentitytoolkitRelyingPartySignupNewUserRequest (Maybe Text)
3284irpsnurPassword
3388irpsnurPassword
@@ -3312,7 +3416,6 @@ instance FromJSON
3312 IdentitytoolkitRelyingPartySignupNewUserRequest' <$>
3416 IdentitytoolkitRelyingPartySignupNewUserRequest' <$>
3313 (o .:? "email") <*> (o .:? "instanceId") <*>
3417 (o .:? "email") <*> (o .:? "instanceId") <*>
3314 (o .:? "captchaChallenge")
3418 (o .:? "captchaChallenge")
3315− <*> (o .:? "returnSecureToken")
3316 <*> (o .:? "password")
3419 <*> (o .:? "password")
3317 <*> (o .:? "captchaResponse")
3420 <*> (o .:? "captchaResponse")
3318 <*> (o .:? "displayName")
3421 <*> (o .:? "displayName")
@@ -3327,8 +3430,6 @@ instance ToJSON
3327 [("email" .=) <$> _irpsnurEmail,
3430 [("email" .=) <$> _irpsnurEmail,
3328 ("instanceId" .=) <$> _irpsnurInstanceId,
3431 ("instanceId" .=) <$> _irpsnurInstanceId,
3329 ("captchaChallenge" .=) <$> _irpsnurCaptchaChallenge,
3432 ("captchaChallenge" .=) <$> _irpsnurCaptchaChallenge,
3330− ("returnSecureToken" .=) <$>
3331− _irpsnurReturnSecureToken,
3332 ("password" .=) <$> _irpsnurPassword,
3433 ("password" .=) <$> _irpsnurPassword,
3333 ("captchaResponse" .=) <$> _irpsnurCaptchaResponse,
3434 ("captchaResponse" .=) <$> _irpsnurCaptchaResponse,
3334 ("displayName" .=) <$> _irpsnurDisplayName,
3435 ("displayName" .=) <$> _irpsnurDisplayName,
@@ -3357,6 +3458,7 @@ data VerifyAssertionResponse = VerifyAssertionResponse'
3357 , _varAction :: !(Maybe Text)
3458 , _varAction :: !(Maybe Text)
3358 , _varNeedEmail :: !(Maybe Bool)
3459 , _varNeedEmail :: !(Maybe Bool)
3359 , _varFederatedId :: !(Maybe Text)
3460 , _varFederatedId :: !(Maybe Text)
3461+ , _varOAuthIdToken :: !(Maybe Text)
3360 , _varAppScheme :: !(Maybe Text)
3462 , _varAppScheme :: !(Maybe Text)
3361 , _varExpiresIn :: !(Maybe (Textual Int64))
3463 , _varExpiresIn :: !(Maybe (Textual Int64))
3362 , _varInputEmail :: !(Maybe Text)
3464 , _varInputEmail :: !(Maybe Text)
@@ -3416,6 +3518,8 @@ data VerifyAssertionResponse = VerifyAssertionResponse'
3417-- * 'varFederatedId'
3519-- * 'varFederatedId'
3521+-- * 'varOAuthIdToken'
3419-- * 'varAppScheme'
3523-- * 'varAppScheme'
3421-- * 'varExpiresIn'
3525-- * 'varExpiresIn'
@@ -3468,6 +3572,7 @@ verifyAssertionResponse =
3468 , _varAction = Nothing
3572 , _varAction = Nothing
3469 , _varNeedEmail = Nothing
3573 , _varNeedEmail = Nothing
3470 , _varFederatedId = Nothing
3574 , _varFederatedId = Nothing
3575+ , _varOAuthIdToken = Nothing
3471 , _varAppScheme = Nothing
3576 , _varAppScheme = Nothing
3472 , _varExpiresIn = Nothing
3577 , _varExpiresIn = Nothing
3473 , _varInputEmail = Nothing
3578 , _varInputEmail = Nothing
@@ -3603,6 +3708,12 @@ varFederatedId
3603 = lens _varFederatedId
3708 = lens _varFederatedId
3604 (\ s a -> s{_varFederatedId = a})
3709 (\ s a -> s{_varFederatedId = a})
3711+-- | The OIDC id token.
3712+varOAuthIdToken :: Lens' VerifyAssertionResponse (Maybe Text)
3714+ = lens _varOAuthIdToken
3715+ (\ s a -> s{_varOAuthIdToken = a})
3606-- | The custom scheme used by mobile app.
3717-- | The custom scheme used by mobile app.
3607varAppScheme :: Lens' VerifyAssertionResponse (Maybe Text)
3718varAppScheme :: Lens' VerifyAssertionResponse (Maybe Text)
3608varAppScheme
3719varAppScheme
@@ -3716,6 +3827,7 @@ instance FromJSON VerifyAssertionResponse where
3716 <*> (o .:? "action")
3827 <*> (o .:? "action")
3717 <*> (o .:? "needEmail")
3828 <*> (o .:? "needEmail")
3718 <*> (o .:? "federatedId")
3829 <*> (o .:? "federatedId")
3830+ <*> (o .:? "oauthIdToken")
3719 <*> (o .:? "appScheme")
3831 <*> (o .:? "appScheme")
3720 <*> (o .:? "expiresIn")
3832 <*> (o .:? "expiresIn")
3721 <*> (o .:? "inputEmail")
3833 <*> (o .:? "inputEmail")
@@ -3755,6 +3867,7 @@ instance ToJSON VerifyAssertionResponse where
3755 ("action" .=) <$> _varAction,
3867 ("action" .=) <$> _varAction,
3756 ("needEmail" .=) <$> _varNeedEmail,
3868 ("needEmail" .=) <$> _varNeedEmail,
3757 ("federatedId" .=) <$> _varFederatedId,
3869 ("federatedId" .=) <$> _varFederatedId,
3870+ ("oauthIdToken" .=) <$> _varOAuthIdToken,
3758 ("appScheme" .=) <$> _varAppScheme,
3871 ("appScheme" .=) <$> _varAppScheme,
3759 ("expiresIn" .=) <$> _varExpiresIn,
3872 ("expiresIn" .=) <$> _varExpiresIn,
3760 ("inputEmail" .=) <$> _varInputEmail,
3873 ("inputEmail" .=) <$> _varInputEmail,