import { z } from 'zod';
import { ZTrackedSignupParams } from '../tracking';
export var GoogleOAuthActions;
(function (GoogleOAuthActions) {
    GoogleOAuthActions["SIGNIN"] = "signin";
    GoogleOAuthActions["SIGNUP"] = "signup";
})(GoogleOAuthActions || (GoogleOAuthActions = {}));
export const ZGoogleOAuthAction = z.nativeEnum(GoogleOAuthActions);
export const ZDataGoogleUrl = z.object({
    url: z.string().url()
});
export const ZGoogleRedirectParams = z.object({
    failureRedirectUrl: z.string().url(),
    successRedirectUrl: z.string().url(),
    tracking: ZTrackedSignupParams
});
export const ZGetGoogleOAuthParams = ZGoogleRedirectParams.extend({
    action: ZGoogleOAuthAction
}).merge(ZTrackedSignupParams);
