studiocms
Version:
Astro Native CMS for AstroDB. Built from the ground up by the Astro community.
100 lines (99 loc) • 3.3 kB
TypeScript
import { z } from 'astro/zod';
export declare const localUsernameAndPasswordConfig: z.ZodDefault<z.ZodOptional<z.ZodObject<{
/**
* Allow User Registration - Allows users to register an account
*
* @default false
*/
allowUserRegistration: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
allowUserRegistration: boolean;
}, {
allowUserRegistration?: boolean | undefined;
}>>>;
export declare const authProviderSchema: z.ZodDefault<z.ZodOptional<z.ZodObject<{
/**
* Username and Password Auth Provider
*
*/
usernameAndPassword: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
usernameAndPasswordConfig: z.ZodDefault<z.ZodOptional<z.ZodObject<{
/**
* Allow User Registration - Allows users to register an account
*
* @default false
*/
allowUserRegistration: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
allowUserRegistration: boolean;
}, {
allowUserRegistration?: boolean | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
usernameAndPassword: boolean;
usernameAndPasswordConfig: {
allowUserRegistration: boolean;
};
}, {
usernameAndPassword?: boolean | undefined;
usernameAndPasswordConfig?: {
allowUserRegistration?: boolean | undefined;
} | undefined;
}>>>;
export type AuthProviders = z.infer<typeof authProviderSchema>;
export declare const authConfigSchema: z.ZodDefault<z.ZodOptional<z.ZodObject<{
/**
* Auth Providers - Allows enabling or disabling of the Authentication Providers
*/
providers: z.ZodDefault<z.ZodOptional<z.ZodObject<{
/**
* Username and Password Auth Provider
*
*/
usernameAndPassword: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
usernameAndPasswordConfig: z.ZodDefault<z.ZodOptional<z.ZodObject<{
/**
* Allow User Registration - Allows users to register an account
*
* @default false
*/
allowUserRegistration: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
allowUserRegistration: boolean;
}, {
allowUserRegistration?: boolean | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
usernameAndPassword: boolean;
usernameAndPasswordConfig: {
allowUserRegistration: boolean;
};
}, {
usernameAndPassword?: boolean | undefined;
usernameAndPasswordConfig?: {
allowUserRegistration?: boolean | undefined;
} | undefined;
}>>>;
/**
* Auth Enabled - Allows enabling or disabling of the Authentication Configuration
*
* @default true
*/
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
providers: {
usernameAndPassword: boolean;
usernameAndPasswordConfig: {
allowUserRegistration: boolean;
};
};
enabled: boolean;
}, {
providers?: {
usernameAndPassword?: boolean | undefined;
usernameAndPasswordConfig?: {
allowUserRegistration?: boolean | undefined;
} | undefined;
} | undefined;
enabled?: boolean | undefined;
}>>>;