studiocms
Version:
Astro Native CMS for AstroDB. Built from the ground up by the Astro community.
29 lines (28 loc) • 1.59 kB
TypeScript
import { Schema } from '../../../../../../effect.js';
declare const JSONData_base: Schema.Class<JSONData, {
username: Schema.Union<[typeof Schema.String, typeof Schema.Undefined]>;
password: Schema.Union<[typeof Schema.String, typeof Schema.Undefined]>;
email: Schema.Union<[typeof Schema.String, typeof Schema.Undefined]>;
displayname: Schema.Union<[typeof Schema.String, typeof Schema.Undefined]>;
rank: Schema.Union<[Schema.Literal<["owner"]>, Schema.Literal<["admin"]>, Schema.Literal<["editor"]>, Schema.Literal<["visitor"]>, typeof Schema.Undefined]>;
}, Schema.Struct.Encoded<{
username: Schema.Union<[typeof Schema.String, typeof Schema.Undefined]>;
password: Schema.Union<[typeof Schema.String, typeof Schema.Undefined]>;
email: Schema.Union<[typeof Schema.String, typeof Schema.Undefined]>;
displayname: Schema.Union<[typeof Schema.String, typeof Schema.Undefined]>;
rank: Schema.Union<[Schema.Literal<["owner"]>, Schema.Literal<["admin"]>, Schema.Literal<["editor"]>, Schema.Literal<["visitor"]>, typeof Schema.Undefined]>;
}>, never, {
readonly password: string | undefined;
} & {
readonly email: string | undefined;
} & {
readonly username: string | undefined;
} & {
readonly rank: "owner" | "admin" | "editor" | "visitor" | undefined;
} & {
readonly displayname: string | undefined;
}, {}, {}>;
export declare class JSONData extends JSONData_base {
}
export declare const ALL: import("astro").APIRoute, GET: import("astro").APIRoute, POST: import("astro").APIRoute, OPTIONS: import("astro").APIRoute;
export {};