on develop help sign in
Regenerating gogol-identity-toolkit from updated service defintions
commit017bbf304e6532620062c266b4acc377421064bc authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 11 Feb 2017, 11:36 (10 years ago) parent3738145
20 files changed+154−46
gogol-identity-toolkit/gen/Network/Google/IdentityToolkit.hs+8−1 gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types.hs+12−1 gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types/Product.hs+100−27 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/CreateAuthURI.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/DeleteAccount.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/DownloadAccount.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetAccountInfo.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetOOBConfirmationCode.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetProjectConfig.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetPublicKeys.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetRecaptchaParam.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/ResetPassword.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SetAccountInfo.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SetProjectConfig.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SignOutUser.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SignupNewUser.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/UploadAccount.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/VerifyAssertion.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/VerifyCustomToken.hs+2−1 gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/VerifyPassword.hs+2−1
gogol-identity-toolkit/gen/Network/Google/IdentityToolkit.hs+8−1
@@ -23,6 +23,7 @@ module Network.Google.IdentityToolkit
2323
2424 -- * OAuth Scopes
2525 , firebaseScope
26+ , cloudPlatformScope
2627
2728 -- * API Declaration
2829 , IdentityToolkitAPI
@@ -94,7 +95,6 @@ module Network.Google.IdentityToolkit
9495 , uipuiiProviderId
9596 , uipuiiEmail
9697 , uipuiiPhotoURL
97− , uipuiiRawUserInfo
9898 , uipuiiFederatedId
9999 , uipuiiDisplayName
100100 , uipuiiScreenName
@@ -136,6 +136,7 @@ module Network.Google.IdentityToolkit
136136 , uiDisplayName
137137 , uiPasswordHash
138138 , uiLocalId
139+ , uiRawPassword
139140 , uiScreenName
140141
141142 -- ** IdentitytoolkitRelyingPartySetProjectConfigResponse
@@ -273,6 +274,7 @@ module Network.Google.IdentityToolkit
273274 , irpgpcrResetPasswordTemplate
274275 , irpgpcrProjectId
275276 , irpgpcrUseEmailSending
277+ , irpgpcrDynamicLinksDomain
276278
277279 -- ** ResetPasswordResponse
278280 , ResetPasswordResponse
@@ -340,6 +342,7 @@ module Network.Google.IdentityToolkit
340342 , identitytoolkitRelyingPartyUploadAccountRequest
341343 , irpuarUsers
342344 , irpuarMemoryCost
345+ , irpuarAllowOverwrite
343346 , irpuarDelegatedProjectNumber
344347 , irpuarSanityCheck
345348 , irpuarSaltSeparator
@@ -400,6 +403,7 @@ module Network.Google.IdentityToolkit
400403 , iNextPageToken
401404 , iDelegatedProjectNumber
402405 , iMaxResults
406+ , iTargetProjectId
403407
404408 -- ** VerifyPasswordResponse
405409 , VerifyPasswordResponse
@@ -437,9 +441,12 @@ module Network.Google.IdentityToolkit
437441 , identitytoolkitRelyingPartySignupNewUserRequest
438442 , irpsnurEmail
439443 , irpsnurInstanceId
444+ , irpsnurPhotoURL
440445 , irpsnurCaptchaChallenge
446+ , irpsnurDisabled
441447 , irpsnurPassword
442448 , irpsnurCaptchaResponse
449+ , irpsnurEmailVerified
443450 , irpsnurDisplayName
444451 , irpsnurIdToken
445452
gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types.hs+12−1
@@ -21,6 +21,7 @@ module Network.Google.IdentityToolkit.Types
2121
2222 -- * OAuth Scopes
2323 , firebaseScope
24+ , cloudPlatformScope
2425
2526 -- * UploadAccountResponseErrorItem
2627 , UploadAccountResponseErrorItem
@@ -34,7 +35,6 @@ module Network.Google.IdentityToolkit.Types
3435 , uipuiiProviderId
3536 , uipuiiEmail
3637 , uipuiiPhotoURL
37− , uipuiiRawUserInfo
3838 , uipuiiFederatedId
3939 , uipuiiDisplayName
4040 , uipuiiScreenName
@@ -76,6 +76,7 @@ module Network.Google.IdentityToolkit.Types
7676 , uiDisplayName
7777 , uiPasswordHash
7878 , uiLocalId
79+ , uiRawPassword
7980 , uiScreenName
8081
8182 -- * IdentitytoolkitRelyingPartySetProjectConfigResponse
@@ -213,6 +214,7 @@ module Network.Google.IdentityToolkit.Types
213214 , irpgpcrResetPasswordTemplate
214215 , irpgpcrProjectId
215216 , irpgpcrUseEmailSending
217+ , irpgpcrDynamicLinksDomain
216218
217219 -- * ResetPasswordResponse
218220 , ResetPasswordResponse
@@ -280,6 +282,7 @@ module Network.Google.IdentityToolkit.Types
280282 , identitytoolkitRelyingPartyUploadAccountRequest
281283 , irpuarUsers
282284 , irpuarMemoryCost
285+ , irpuarAllowOverwrite
283286 , irpuarDelegatedProjectNumber
284287 , irpuarSanityCheck
285288 , irpuarSaltSeparator
@@ -340,6 +343,7 @@ module Network.Google.IdentityToolkit.Types
340343 , iNextPageToken
341344 , iDelegatedProjectNumber
342345 , iMaxResults
346+ , iTargetProjectId
343347
344348 -- * VerifyPasswordResponse
345349 , VerifyPasswordResponse
@@ -377,9 +381,12 @@ module Network.Google.IdentityToolkit.Types
377381 , identitytoolkitRelyingPartySignupNewUserRequest
378382 , irpsnurEmail
379383 , irpsnurInstanceId
384+ , irpsnurPhotoURL
380385 , irpsnurCaptchaChallenge
386+ , irpsnurDisabled
381387 , irpsnurPassword
382388 , irpsnurCaptchaResponse
389+ , irpsnurEmailVerified
383390 , irpsnurDisplayName
384391 , irpsnurIdToken
385392
@@ -452,3 +459,7 @@ identityToolkitService
452459-- | View and administer all your Firebase data and settings
453460firebaseScope :: Proxy '["https://www.googleapis.com/auth/firebase"]
454461firebaseScope = Proxy;
462+
463+-- | View and manage your data across Google Cloud Platform services
464+cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
465+cloudPlatformScope = Proxy;
gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types/Product.hs+100−27
@@ -74,7 +74,6 @@ data UserInfoProviderUserInfoItem = UserInfoProviderUserInfoItem'
7474 { _uipuiiProviderId :: !(Maybe Text)
7575 , _uipuiiEmail :: !(Maybe Text)
7676 , _uipuiiPhotoURL :: !(Maybe Text)
77− , _uipuiiRawUserInfo :: !(Maybe Text)
7877 , _uipuiiFederatedId :: !(Maybe Text)
7978 , _uipuiiDisplayName :: !(Maybe Text)
8079 , _uipuiiScreenName :: !(Maybe Text)
@@ -91,8 +90,6 @@ data UserInfoProviderUserInfoItem = UserInfoProviderUserInfoItem'
9190--
9291-- * 'uipuiiPhotoURL'
9392--
94−-- * 'uipuiiRawUserInfo'
95−--
9693-- * 'uipuiiFederatedId'
9794--
9895-- * 'uipuiiDisplayName'
@@ -107,7 +104,6 @@ userInfoProviderUserInfoItem =
107104 { _uipuiiProviderId = Nothing
108105 , _uipuiiEmail = Nothing
109106 , _uipuiiPhotoURL = Nothing
110− , _uipuiiRawUserInfo = Nothing
111107 , _uipuiiFederatedId = Nothing
112108 , _uipuiiDisplayName = Nothing
113109 , _uipuiiScreenName = Nothing
@@ -133,12 +129,6 @@ uipuiiPhotoURL
133129 = lens _uipuiiPhotoURL
134130 (\ s a -> s{_uipuiiPhotoURL = a})
135131
136−-- | Raw IDP-returned user info.
137−uipuiiRawUserInfo :: Lens' UserInfoProviderUserInfoItem (Maybe Text)
138−uipuiiRawUserInfo
139− = lens _uipuiiRawUserInfo
140− (\ s a -> s{_uipuiiRawUserInfo = a})
141−
142132-- | User\'s identifier at IDP.
143133uipuiiFederatedId :: Lens' UserInfoProviderUserInfoItem (Maybe Text)
144134uipuiiFederatedId
@@ -169,7 +159,6 @@ instance FromJSON UserInfoProviderUserInfoItem where
169159 UserInfoProviderUserInfoItem' <$>
170160 (o .:? "providerId") <*> (o .:? "email") <*>
171161 (o .:? "photoUrl")
172− <*> (o .:? "rawUserInfo")
173162 <*> (o .:? "federatedId")
174163 <*> (o .:? "displayName")
175164 <*> (o .:? "screenName")
@@ -182,7 +171,6 @@ instance ToJSON UserInfoProviderUserInfoItem where
182171 [("providerId" .=) <$> _uipuiiProviderId,
183172 ("email" .=) <$> _uipuiiEmail,
184173 ("photoUrl" .=) <$> _uipuiiPhotoURL,
185− ("rawUserInfo" .=) <$> _uipuiiRawUserInfo,
186174 ("federatedId" .=) <$> _uipuiiFederatedId,
187175 ("displayName" .=) <$> _uipuiiDisplayName,
188176 ("screenName" .=) <$> _uipuiiScreenName,
@@ -374,10 +362,11 @@ data UserInfo = UserInfo'
374362 , _uiPasswordUpdatedAt :: !(Maybe (Textual Double))
375363 , _uiVersion :: !(Maybe (Textual Int32))
376364 , _uiEmailVerified :: !(Maybe Bool)
377− , _uiSalt :: !(Maybe Base64)
365+ , _uiSalt :: !(Maybe Bytes)
378366 , _uiDisplayName :: !(Maybe Text)
379− , _uiPasswordHash :: !(Maybe Base64)
367+ , _uiPasswordHash :: !(Maybe Bytes)
380368 , _uiLocalId :: !(Maybe Text)
369+ , _uiRawPassword :: !(Maybe Text)
381370 , _uiScreenName :: !(Maybe Text)
382371 } deriving (Eq,Show,Data,Typeable,Generic)
383372
@@ -415,6 +404,8 @@ data UserInfo = UserInfo'
415404--
416405-- * 'uiLocalId'
417406--
407+-- * 'uiRawPassword'
408+--
418409-- * 'uiScreenName'
419410userInfo
420411 :: UserInfo
@@ -435,6 +426,7 @@ userInfo =
435426 , _uiDisplayName = Nothing
436427 , _uiPasswordHash = Nothing
437428 , _uiLocalId = Nothing
429+ , _uiRawPassword = Nothing
438430 , _uiScreenName = Nothing
439431 }
440432
@@ -507,7 +499,7 @@ uiEmailVerified
507499uiSalt :: Lens' UserInfo (Maybe ByteString)
508500uiSalt
509501 = lens _uiSalt (\ s a -> s{_uiSalt = a}) .
510− mapping _Base64
502+ mapping _Bytes
511503
512504-- | The name of the user.
513505uiDisplayName :: Lens' UserInfo (Maybe Text)
@@ -520,13 +512,19 @@ uiPasswordHash :: Lens' UserInfo (Maybe ByteString)
520512uiPasswordHash
521513 = lens _uiPasswordHash
522514 (\ s a -> s{_uiPasswordHash = a})
523− . mapping _Base64
515+ . mapping _Bytes
524516
525517-- | The local ID of the user.
526518uiLocalId :: Lens' UserInfo (Maybe Text)
527519uiLocalId
528520 = lens _uiLocalId (\ s a -> s{_uiLocalId = a})
529521
522+-- | The user\'s plain text password.
523+uiRawPassword :: Lens' UserInfo (Maybe Text)
524+uiRawPassword
525+ = lens _uiRawPassword
526+ (\ s a -> s{_uiRawPassword = a})
527+
530528-- | User\'s screen name at Twitter or login name at Github.
531529uiScreenName :: Lens' UserInfo (Maybe Text)
532530uiScreenName
@@ -551,6 +549,7 @@ instance FromJSON UserInfo where
551549 <*> (o .:? "displayName")
552550 <*> (o .:? "passwordHash")
553551 <*> (o .:? "localId")
552+ <*> (o .:? "rawPassword")
554553 <*> (o .:? "screenName"))
555554
556555instance ToJSON UserInfo where
@@ -572,6 +571,7 @@ instance ToJSON UserInfo where
572571 ("displayName" .=) <$> _uiDisplayName,
573572 ("passwordHash" .=) <$> _uiPasswordHash,
574573 ("localId" .=) <$> _uiLocalId,
574+ ("rawPassword" .=) <$> _uiRawPassword,
575575 ("screenName" .=) <$> _uiScreenName])
576576
577577-- | Response of setting the project configuration.
@@ -1867,6 +1867,7 @@ data IdentitytoolkitRelyingPartyGetProjectConfigResponse = IdentitytoolkitRelyin
18671867 , _irpgpcrResetPasswordTemplate :: !(Maybe EmailTemplate)
18681868 , _irpgpcrProjectId :: !(Maybe Text)
18691869 , _irpgpcrUseEmailSending :: !(Maybe Bool)
1870+ , _irpgpcrDynamicLinksDomain :: !(Maybe Text)
18701871 } deriving (Eq,Show,Data,Typeable,Generic)
18711872
18721873-- | Creates a value of 'IdentitytoolkitRelyingPartyGetProjectConfigResponse' with the minimum fields required to make a request.
@@ -1894,6 +1895,8 @@ data IdentitytoolkitRelyingPartyGetProjectConfigResponse = IdentitytoolkitRelyin
18941895-- * 'irpgpcrProjectId'
18951896--
18961897-- * 'irpgpcrUseEmailSending'
1898+--
1899+-- * 'irpgpcrDynamicLinksDomain'
18971900identitytoolkitRelyingPartyGetProjectConfigResponse
18981901 :: IdentitytoolkitRelyingPartyGetProjectConfigResponse
18991902identitytoolkitRelyingPartyGetProjectConfigResponse =
@@ -1909,6 +1912,7 @@ identitytoolkitRelyingPartyGetProjectConfigResponse =
19091912 , _irpgpcrResetPasswordTemplate = Nothing
19101913 , _irpgpcrProjectId = Nothing
19111914 , _irpgpcrUseEmailSending = Nothing
1915+ , _irpgpcrDynamicLinksDomain = Nothing
19121916 }
19131917
19141918-- | Authorized domains.
@@ -1981,6 +1985,11 @@ irpgpcrUseEmailSending
19811985 = lens _irpgpcrUseEmailSending
19821986 (\ s a -> s{_irpgpcrUseEmailSending = a})
19831987
1988+irpgpcrDynamicLinksDomain :: Lens' IdentitytoolkitRelyingPartyGetProjectConfigResponse (Maybe Text)
1989+irpgpcrDynamicLinksDomain
1990+ = lens _irpgpcrDynamicLinksDomain
1991+ (\ s a -> s{_irpgpcrDynamicLinksDomain = a})
1992+
19841993instance FromJSON
19851994 IdentitytoolkitRelyingPartyGetProjectConfigResponse
19861995 where
@@ -2000,7 +2009,8 @@ instance FromJSON
20002009 <*> (o .:? "allowPasswordUser")
20012010 <*> (o .:? "resetPasswordTemplate")
20022011 <*> (o .:? "projectId")
2003− <*> (o .:? "useEmailSending"))
2012+ <*> (o .:? "useEmailSending")
2013+ <*> (o .:? "dynamicLinksDomain"))
20042014
20052015instance ToJSON
20062016 IdentitytoolkitRelyingPartyGetProjectConfigResponse
@@ -2026,7 +2036,9 @@ instance ToJSON
20262036 ("resetPasswordTemplate" .=) <$>
20272037 _irpgpcrResetPasswordTemplate,
20282038 ("projectId" .=) <$> _irpgpcrProjectId,
2029− ("useEmailSending" .=) <$> _irpgpcrUseEmailSending])
2039+ ("useEmailSending" .=) <$> _irpgpcrUseEmailSending,
2040+ ("dynamicLinksDomain" .=) <$>
2041+ _irpgpcrDynamicLinksDomain])
20302042
20312043-- | Response of resetting the password.
20322044--
@@ -2607,11 +2619,12 @@ instance ToJSON EmailTemplate where
26072619data IdentitytoolkitRelyingPartyUploadAccountRequest = IdentitytoolkitRelyingPartyUploadAccountRequest'
26082620 { _irpuarUsers :: !(Maybe [UserInfo])
26092621 , _irpuarMemoryCost :: !(Maybe (Textual Int32))
2622+ , _irpuarAllowOverwrite :: !(Maybe Bool)
26102623 , _irpuarDelegatedProjectNumber :: !(Maybe (Textual Int64))
26112624 , _irpuarSanityCheck :: !(Maybe Bool)
2612− , _irpuarSaltSeparator :: !(Maybe Base64)
2625+ , _irpuarSaltSeparator :: !(Maybe Bytes)
26132626 , _irpuarHashAlgorithm :: !(Maybe Text)
2614− , _irpuarSignerKey :: !(Maybe Base64)
2627+ , _irpuarSignerKey :: !(Maybe Bytes)
26152628 , _irpuarRounds :: !(Maybe (Textual Int32))
26162629 , _irpuarTargetProjectId :: !(Maybe Text)
26172630 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -2624,6 +2637,8 @@ data IdentitytoolkitRelyingPartyUploadAccountRequest = IdentitytoolkitRelyingPar
26242637--
26252638-- * 'irpuarMemoryCost'
26262639--
2640+-- * 'irpuarAllowOverwrite'
2641+--
26272642-- * 'irpuarDelegatedProjectNumber'
26282643--
26292644-- * 'irpuarSanityCheck'
@@ -2643,6 +2658,7 @@ identitytoolkitRelyingPartyUploadAccountRequest =
26432658 IdentitytoolkitRelyingPartyUploadAccountRequest'
26442659 { _irpuarUsers = Nothing
26452660 , _irpuarMemoryCost = Nothing
2661+ , _irpuarAllowOverwrite = Nothing
26462662 , _irpuarDelegatedProjectNumber = Nothing
26472663 , _irpuarSanityCheck = Nothing
26482664 , _irpuarSaltSeparator = Nothing
@@ -2666,6 +2682,12 @@ irpuarMemoryCost
26662682 (\ s a -> s{_irpuarMemoryCost = a})
26672683 . mapping _Coerce
26682684
2685+-- | Whether allow overwrite existing account when user local_id exists.
2686+irpuarAllowOverwrite :: Lens' IdentitytoolkitRelyingPartyUploadAccountRequest (Maybe Bool)
2687+irpuarAllowOverwrite
2688+ = lens _irpuarAllowOverwrite
2689+ (\ s a -> s{_irpuarAllowOverwrite = a})
2690+
26692691-- | GCP project number of the requesting delegated app. Currently only
26702692-- intended for Firebase V1 migration.
26712693irpuarDelegatedProjectNumber :: Lens' IdentitytoolkitRelyingPartyUploadAccountRequest (Maybe Int64)
@@ -2686,7 +2708,7 @@ irpuarSaltSeparator :: Lens' IdentitytoolkitRelyingPartyUploadAccountRequest (Ma
26862708irpuarSaltSeparator
26872709 = lens _irpuarSaltSeparator
26882710 (\ s a -> s{_irpuarSaltSeparator = a})
2689− . mapping _Base64
2711+ . mapping _Bytes
26902712
26912713-- | The password hash algorithm.
26922714irpuarHashAlgorithm :: Lens' IdentitytoolkitRelyingPartyUploadAccountRequest (Maybe Text)
@@ -2699,7 +2721,7 @@ irpuarSignerKey :: Lens' IdentitytoolkitRelyingPartyUploadAccountRequest (Maybe
26992721irpuarSignerKey
27002722 = lens _irpuarSignerKey
27012723 (\ s a -> s{_irpuarSignerKey = a})
2702− . mapping _Base64
2724+ . mapping _Bytes
27032725
27042726-- | Rounds for hash calculation. Used by scrypt and similar algorithms.
27052727irpuarRounds :: Lens' IdentitytoolkitRelyingPartyUploadAccountRequest (Maybe Int32)
@@ -2722,6 +2744,7 @@ instance FromJSON
27222744 (\ o ->
27232745 IdentitytoolkitRelyingPartyUploadAccountRequest' <$>
27242746 (o .:? "users" .!= mempty) <*> (o .:? "memoryCost")
2747+ <*> (o .:? "allowOverwrite")
27252748 <*> (o .:? "delegatedProjectNumber")
27262749 <*> (o .:? "sanityCheck")
27272750 <*> (o .:? "saltSeparator")
@@ -2738,6 +2761,7 @@ instance ToJSON
27382761 (catMaybes
27392762 [("users" .=) <$> _irpuarUsers,
27402763 ("memoryCost" .=) <$> _irpuarMemoryCost,
2764+ ("allowOverwrite" .=) <$> _irpuarAllowOverwrite,
27412765 ("delegatedProjectNumber" .=) <$>
27422766 _irpuarDelegatedProjectNumber,
27432767 ("sanityCheck" .=) <$> _irpuarSanityCheck,
@@ -3221,6 +3245,7 @@ data IdentitytoolkitRelyingPartyDownloadAccountRequest = IdentitytoolkitRelyingP
32213245 { _iNextPageToken :: !(Maybe Text)
32223246 , _iDelegatedProjectNumber :: !(Maybe (Textual Int64))
32233247 , _iMaxResults :: !(Maybe (Textual Word32))
3248+ , _iTargetProjectId :: !(Maybe Text)
32243249 } deriving (Eq,Show,Data,Typeable,Generic)
32253250
32263251-- | Creates a value of 'IdentitytoolkitRelyingPartyDownloadAccountRequest' with the minimum fields required to make a request.
@@ -3232,6 +3257,8 @@ data IdentitytoolkitRelyingPartyDownloadAccountRequest = IdentitytoolkitRelyingP
32323257-- * 'iDelegatedProjectNumber'
32333258--
32343259-- * 'iMaxResults'
3260+--
3261+-- * 'iTargetProjectId'
32353262identitytoolkitRelyingPartyDownloadAccountRequest
32363263 :: IdentitytoolkitRelyingPartyDownloadAccountRequest
32373264identitytoolkitRelyingPartyDownloadAccountRequest =
@@ -3239,6 +3266,7 @@ identitytoolkitRelyingPartyDownloadAccountRequest =
32393266 { _iNextPageToken = Nothing
32403267 , _iDelegatedProjectNumber = Nothing
32413268 , _iMaxResults = Nothing
3269+ , _iTargetProjectId = Nothing
32423270 }
32433271
32443272-- | The token for the next page. This should be taken from the previous
@@ -3262,6 +3290,13 @@ iMaxResults
32623290 = lens _iMaxResults (\ s a -> s{_iMaxResults = a}) .
32633291 mapping _Coerce
32643292
3293+-- | Specify which project (field value is actually project id) to operate.
3294+-- Only used when provided credential.
3295+iTargetProjectId :: Lens' IdentitytoolkitRelyingPartyDownloadAccountRequest (Maybe Text)
3296+iTargetProjectId
3297+ = lens _iTargetProjectId
3298+ (\ s a -> s{_iTargetProjectId = a})
3299+
32653300instance FromJSON
32663301 IdentitytoolkitRelyingPartyDownloadAccountRequest
32673302 where
@@ -3273,7 +3308,8 @@ instance FromJSON
32733308 <$>
32743309 (o .:? "nextPageToken") <*>
32753310 (o .:? "delegatedProjectNumber")
3276− <*> (o .:? "maxResults"))
3311+ <*> (o .:? "maxResults")
3312+ <*> (o .:? "targetProjectId"))
32773313
32783314instance ToJSON
32793315 IdentitytoolkitRelyingPartyDownloadAccountRequest
@@ -3285,7 +3321,8 @@ instance ToJSON
32853321 [("nextPageToken" .=) <$> _iNextPageToken,
32863322 ("delegatedProjectNumber" .=) <$>
32873323 _iDelegatedProjectNumber,
3288− ("maxResults" .=) <$> _iMaxResults])
3324+ ("maxResults" .=) <$> _iMaxResults,
3325+ ("targetProjectId" .=) <$> _iTargetProjectId])
32893326
32903327-- | Request of verifying the password.
32913328--
@@ -3467,7 +3504,7 @@ data SetAccountInfoResponse = SetAccountInfoResponse'
34673504 , _sairProviderUserInfo :: !(Maybe [SetAccountInfoResponseProviderUserInfoItem])
34683505 , _sairExpiresIn :: !(Maybe (Textual Int64))
34693506 , _sairDisplayName :: !(Maybe Text)
3470− , _sairPasswordHash :: !(Maybe Base64)
3507+ , _sairPasswordHash :: !(Maybe Bytes)
34713508 , _sairLocalId :: !(Maybe Text)
34723509 , _sairNewEmail :: !(Maybe Text)
34733510 , _sairIdToken :: !(Maybe Text)
@@ -3562,7 +3599,7 @@ sairPasswordHash :: Lens' SetAccountInfoResponse (Maybe ByteString)
35623599sairPasswordHash
35633600 = lens _sairPasswordHash
35643601 (\ s a -> s{_sairPasswordHash = a})
3565− . mapping _Base64
3602+ . mapping _Bytes
35663603
35673604-- | The local ID of the user.
35683605sairLocalId :: Lens' SetAccountInfoResponse (Maybe Text)
@@ -3619,9 +3656,12 @@ instance ToJSON SetAccountInfoResponse where
36193656data IdentitytoolkitRelyingPartySignupNewUserRequest = IdentitytoolkitRelyingPartySignupNewUserRequest'
36203657 { _irpsnurEmail :: !(Maybe Text)
36213658 , _irpsnurInstanceId :: !(Maybe Text)
3659+ , _irpsnurPhotoURL :: !(Maybe Text)
36223660 , _irpsnurCaptchaChallenge :: !(Maybe Text)
3661+ , _irpsnurDisabled :: !(Maybe Bool)
36233662 , _irpsnurPassword :: !(Maybe Text)
36243663 , _irpsnurCaptchaResponse :: !(Maybe Text)
3664+ , _irpsnurEmailVerified :: !(Maybe Bool)
36253665 , _irpsnurDisplayName :: !(Maybe Text)
36263666 , _irpsnurIdToken :: !(Maybe Text)
36273667 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -3634,12 +3674,18 @@ data IdentitytoolkitRelyingPartySignupNewUserRequest = IdentitytoolkitRelyingPar
36343674--
36353675-- * 'irpsnurInstanceId'
36363676--
3677+-- * 'irpsnurPhotoURL'
3678+--
36373679-- * 'irpsnurCaptchaChallenge'
36383680--
3681+-- * 'irpsnurDisabled'
3682+--
36393683-- * 'irpsnurPassword'
36403684--
36413685-- * 'irpsnurCaptchaResponse'
36423686--
3687+-- * 'irpsnurEmailVerified'
3688+--
36433689-- * 'irpsnurDisplayName'
36443690--
36453691-- * 'irpsnurIdToken'
@@ -3649,9 +3695,12 @@ identitytoolkitRelyingPartySignupNewUserRequest =
36493695 IdentitytoolkitRelyingPartySignupNewUserRequest'
36503696 { _irpsnurEmail = Nothing
36513697 , _irpsnurInstanceId = Nothing
3698+ , _irpsnurPhotoURL = Nothing
36523699 , _irpsnurCaptchaChallenge = Nothing
3700+ , _irpsnurDisabled = Nothing
36533701 , _irpsnurPassword = Nothing
36543702 , _irpsnurCaptchaResponse = Nothing
3703+ , _irpsnurEmailVerified = Nothing
36553704 , _irpsnurDisplayName = Nothing
36563705 , _irpsnurIdToken = Nothing
36573706 }
@@ -3667,12 +3716,24 @@ irpsnurInstanceId
36673716 = lens _irpsnurInstanceId
36683717 (\ s a -> s{_irpsnurInstanceId = a})
36693718
3719+-- | The photo url of the user.
3720+irpsnurPhotoURL :: Lens' IdentitytoolkitRelyingPartySignupNewUserRequest (Maybe Text)
3721+irpsnurPhotoURL
3722+ = lens _irpsnurPhotoURL
3723+ (\ s a -> s{_irpsnurPhotoURL = a})
3724+
36703725-- | The captcha challenge.
36713726irpsnurCaptchaChallenge :: Lens' IdentitytoolkitRelyingPartySignupNewUserRequest (Maybe Text)
36723727irpsnurCaptchaChallenge
36733728 = lens _irpsnurCaptchaChallenge
36743729 (\ s a -> s{_irpsnurCaptchaChallenge = a})
36753730
3731+-- | Whether to disable the user. Only can be used by service account.
3732+irpsnurDisabled :: Lens' IdentitytoolkitRelyingPartySignupNewUserRequest (Maybe Bool)
3733+irpsnurDisabled
3734+ = lens _irpsnurDisabled
3735+ (\ s a -> s{_irpsnurDisabled = a})
3736+
36763737-- | The new password of the user.
36773738irpsnurPassword :: Lens' IdentitytoolkitRelyingPartySignupNewUserRequest (Maybe Text)
36783739irpsnurPassword
@@ -3685,6 +3746,12 @@ irpsnurCaptchaResponse
36853746 = lens _irpsnurCaptchaResponse
36863747 (\ s a -> s{_irpsnurCaptchaResponse = a})
36873748
3749+-- | Mark the email as verified or not. Only can be used by service account.
3750+irpsnurEmailVerified :: Lens' IdentitytoolkitRelyingPartySignupNewUserRequest (Maybe Bool)
3751+irpsnurEmailVerified
3752+ = lens _irpsnurEmailVerified
3753+ (\ s a -> s{_irpsnurEmailVerified = a})
3754+
36883755-- | The name of the user.
36893756irpsnurDisplayName :: Lens' IdentitytoolkitRelyingPartySignupNewUserRequest (Maybe Text)
36903757irpsnurDisplayName
@@ -3705,9 +3772,12 @@ instance FromJSON
37053772 (\ o ->
37063773 IdentitytoolkitRelyingPartySignupNewUserRequest' <$>
37073774 (o .:? "email") <*> (o .:? "instanceId") <*>
3708− (o .:? "captchaChallenge")
3775+ (o .:? "photoUrl")
3776+ <*> (o .:? "captchaChallenge")
3777+ <*> (o .:? "disabled")
37093778 <*> (o .:? "password")
37103779 <*> (o .:? "captchaResponse")
3780+ <*> (o .:? "emailVerified")
37113781 <*> (o .:? "displayName")
37123782 <*> (o .:? "idToken"))
37133783
@@ -3719,9 +3789,12 @@ instance ToJSON
37193789 (catMaybes
37203790 [("email" .=) <$> _irpsnurEmail,
37213791 ("instanceId" .=) <$> _irpsnurInstanceId,
3792+ ("photoUrl" .=) <$> _irpsnurPhotoURL,
37223793 ("captchaChallenge" .=) <$> _irpsnurCaptchaChallenge,
3794+ ("disabled" .=) <$> _irpsnurDisabled,
37233795 ("password" .=) <$> _irpsnurPassword,
37243796 ("captchaResponse" .=) <$> _irpsnurCaptchaResponse,
3797+ ("emailVerified" .=) <$> _irpsnurEmailVerified,
37253798 ("displayName" .=) <$> _irpsnurDisplayName,
37263799 ("idToken" .=) <$> _irpsnurIdToken])
37273800
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/CreateAuthURI.hs+2−1
@@ -80,7 +80,8 @@ instance GoogleRequest RelyingPartyCreateAuthURI
8080 where
8181 type Rs RelyingPartyCreateAuthURI =
8282 CreateAuthURIResponse
83− type Scopes RelyingPartyCreateAuthURI = '[]
83+ type Scopes RelyingPartyCreateAuthURI =
84+ '["https://www.googleapis.com/auth/cloud-platform"]
8485 requestClient RelyingPartyCreateAuthURI'{..}
8586 = go (Just AltJSON) _rpcauPayload
8687 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/DeleteAccount.hs+2−1
@@ -79,7 +79,8 @@ instance GoogleRequest RelyingPartyDeleteAccount
7979 where
8080 type Rs RelyingPartyDeleteAccount =
8181 DeleteAccountResponse
82− type Scopes RelyingPartyDeleteAccount = '[]
82+ type Scopes RelyingPartyDeleteAccount =
83+ '["https://www.googleapis.com/auth/cloud-platform"]
8384 requestClient RelyingPartyDeleteAccount'{..}
8485 = go (Just AltJSON) _rPayload identityToolkitService
8586 where go
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/DownloadAccount.hs+2−1
@@ -81,7 +81,8 @@ instance GoogleRequest RelyingPartyDownloadAccount
8181 type Rs RelyingPartyDownloadAccount =
8282 DownloadAccountResponse
8383 type Scopes RelyingPartyDownloadAccount =
84− '["https://www.googleapis.com/auth/firebase"]
84+ '["https://www.googleapis.com/auth/cloud-platform",
85+ "https://www.googleapis.com/auth/firebase"]
8586 requestClient RelyingPartyDownloadAccount'{..}
8687 = go (Just AltJSON) _rpdaPayload
8788 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetAccountInfo.hs+2−1
@@ -80,7 +80,8 @@ instance GoogleRequest RelyingPartyGetAccountInfo
8080 where
8181 type Rs RelyingPartyGetAccountInfo =
8282 GetAccountInfoResponse
83− type Scopes RelyingPartyGetAccountInfo = '[]
83+ type Scopes RelyingPartyGetAccountInfo =
84+ '["https://www.googleapis.com/auth/cloud-platform"]
8485 requestClient RelyingPartyGetAccountInfo'{..}
8586 = go (Just AltJSON) _rpgaiPayload
8687 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetOOBConfirmationCode.hs+2−1
@@ -80,7 +80,8 @@ instance GoogleRequest
8080 RelyingPartyGetOOBConfirmationCode where
8181 type Rs RelyingPartyGetOOBConfirmationCode =
8282 GetOOBConfirmationCodeResponse
83− type Scopes RelyingPartyGetOOBConfirmationCode = '[]
83+ type Scopes RelyingPartyGetOOBConfirmationCode =
84+ '["https://www.googleapis.com/auth/cloud-platform"]
8485 requestClient RelyingPartyGetOOBConfirmationCode'{..}
8586 = go (Just AltJSON) _rpgoobccPayload
8687 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetProjectConfig.hs+2−1
@@ -92,7 +92,8 @@ instance GoogleRequest RelyingPartyGetProjectConfig
9292 where
9393 type Rs RelyingPartyGetProjectConfig =
9494 IdentitytoolkitRelyingPartyGetProjectConfigResponse
95− type Scopes RelyingPartyGetProjectConfig = '[]
95+ type Scopes RelyingPartyGetProjectConfig =
96+ '["https://www.googleapis.com/auth/cloud-platform"]
9697 requestClient RelyingPartyGetProjectConfig'{..}
9798 = go _rpgpcDelegatedProjectNumber _rpgpcProjectNumber
9899 (Just AltJSON)
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetPublicKeys.hs+2−1
@@ -65,7 +65,8 @@ instance GoogleRequest RelyingPartyGetPublicKeys
6565 where
6666 type Rs RelyingPartyGetPublicKeys =
6767 IdentitytoolkitRelyingPartyGetPublicKeysResponse
68− type Scopes RelyingPartyGetPublicKeys = '[]
68+ type Scopes RelyingPartyGetPublicKeys =
69+ '["https://www.googleapis.com/auth/cloud-platform"]
6970 requestClient RelyingPartyGetPublicKeys'{}
7071 = go (Just AltJSON) identityToolkitService
7172 where go
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetRecaptchaParam.hs+2−1
@@ -64,7 +64,8 @@ instance GoogleRequest RelyingPartyGetRecaptchaParam
6464 where
6565 type Rs RelyingPartyGetRecaptchaParam =
6666 GetRecaptchaParamResponse
67− type Scopes RelyingPartyGetRecaptchaParam = '[]
67+ type Scopes RelyingPartyGetRecaptchaParam =
68+ '["https://www.googleapis.com/auth/cloud-platform"]
6869 requestClient RelyingPartyGetRecaptchaParam'{}
6970 = go (Just AltJSON) identityToolkitService
7071 where go
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/ResetPassword.hs+2−1
@@ -80,7 +80,8 @@ instance GoogleRequest RelyingPartyResetPassword
8080 where
8181 type Rs RelyingPartyResetPassword =
8282 ResetPasswordResponse
83− type Scopes RelyingPartyResetPassword = '[]
83+ type Scopes RelyingPartyResetPassword =
84+ '["https://www.googleapis.com/auth/cloud-platform"]
8485 requestClient RelyingPartyResetPassword'{..}
8586 = go (Just AltJSON) _rprpPayload
8687 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SetAccountInfo.hs+2−1
@@ -80,7 +80,8 @@ instance GoogleRequest RelyingPartySetAccountInfo
8080 where
8181 type Rs RelyingPartySetAccountInfo =
8282 SetAccountInfoResponse
83− type Scopes RelyingPartySetAccountInfo = '[]
83+ type Scopes RelyingPartySetAccountInfo =
84+ '["https://www.googleapis.com/auth/cloud-platform"]
8485 requestClient RelyingPartySetAccountInfo'{..}
8586 = go (Just AltJSON) _rpsaiPayload
8687 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SetProjectConfig.hs+2−1
@@ -82,7 +82,8 @@ instance GoogleRequest RelyingPartySetProjectConfig
8282 where
8383 type Rs RelyingPartySetProjectConfig =
8484 IdentitytoolkitRelyingPartySetProjectConfigResponse
85− type Scopes RelyingPartySetProjectConfig = '[]
85+ type Scopes RelyingPartySetProjectConfig =
86+ '["https://www.googleapis.com/auth/cloud-platform"]
8687 requestClient RelyingPartySetProjectConfig'{..}
8788 = go (Just AltJSON) _rpspcPayload
8889 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SignOutUser.hs+2−1
@@ -81,7 +81,8 @@ rpsouPayload
8181instance GoogleRequest RelyingPartySignOutUser where
8282 type Rs RelyingPartySignOutUser =
8383 IdentitytoolkitRelyingPartySignOutUserResponse
84− type Scopes RelyingPartySignOutUser = '[]
84+ type Scopes RelyingPartySignOutUser =
85+ '["https://www.googleapis.com/auth/cloud-platform"]
8586 requestClient RelyingPartySignOutUser'{..}
8687 = go (Just AltJSON) _rpsouPayload
8788 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SignupNewUser.hs+2−1
@@ -80,7 +80,8 @@ instance GoogleRequest RelyingPartySignupNewUser
8080 where
8181 type Rs RelyingPartySignupNewUser =
8282 SignupNewUserResponse
83− type Scopes RelyingPartySignupNewUser = '[]
83+ type Scopes RelyingPartySignupNewUser =
84+ '["https://www.googleapis.com/auth/cloud-platform"]
8485 requestClient RelyingPartySignupNewUser'{..}
8586 = go (Just AltJSON) _rpsnuPayload
8687 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/UploadAccount.hs+2−1
@@ -81,7 +81,8 @@ instance GoogleRequest RelyingPartyUploadAccount
8181 type Rs RelyingPartyUploadAccount =
8282 UploadAccountResponse
8383 type Scopes RelyingPartyUploadAccount =
84− '["https://www.googleapis.com/auth/firebase"]
84+ '["https://www.googleapis.com/auth/cloud-platform",
85+ "https://www.googleapis.com/auth/firebase"]
8586 requestClient RelyingPartyUploadAccount'{..}
8687 = go (Just AltJSON) _rpuaPayload
8788 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/VerifyAssertion.hs+2−1
@@ -80,7 +80,8 @@ instance GoogleRequest RelyingPartyVerifyAssertion
8080 where
8181 type Rs RelyingPartyVerifyAssertion =
8282 VerifyAssertionResponse
83− type Scopes RelyingPartyVerifyAssertion = '[]
83+ type Scopes RelyingPartyVerifyAssertion =
84+ '["https://www.googleapis.com/auth/cloud-platform"]
8485 requestClient RelyingPartyVerifyAssertion'{..}
8586 = go (Just AltJSON) _rpvaPayload
8687 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/VerifyCustomToken.hs+2−1
@@ -80,7 +80,8 @@ instance GoogleRequest RelyingPartyVerifyCustomToken
8080 where
8181 type Rs RelyingPartyVerifyCustomToken =
8282 VerifyCustomTokenResponse
83− type Scopes RelyingPartyVerifyCustomToken = '[]
83+ type Scopes RelyingPartyVerifyCustomToken =
84+ '["https://www.googleapis.com/auth/cloud-platform"]
8485 requestClient RelyingPartyVerifyCustomToken'{..}
8586 = go (Just AltJSON) _rpvctPayload
8687 identityToolkitService
gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/VerifyPassword.hs+2−1
@@ -80,7 +80,8 @@ instance GoogleRequest RelyingPartyVerifyPassword
8080 where
8181 type Rs RelyingPartyVerifyPassword =
8282 VerifyPasswordResponse
83− type Scopes RelyingPartyVerifyPassword = '[]
83+ type Scopes RelyingPartyVerifyPassword =
84+ '["https://www.googleapis.com/auth/cloud-platform"]
8485 requestClient RelyingPartyVerifyPassword'{..}
8586 = go (Just AltJSON) _rpvpPayload
8687 identityToolkitService