UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

746 lines 1.11 MB
import { MediaField } from "../media/MediaField"; import { s } from "bknd/utils"; export declare const FIELDS: { media: { schema: s.ObjectSchema<{ readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, any, any>; readonly entity: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly min_items: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly max_items: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly mime_types: s.Schema<s.ISchemaOptions, string[] | undefined, string[] | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; field: typeof MediaField; }; relation: { readonly schema: s.ObjectSchema<{ readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, any, any>; readonly reference: s.StringSchema<s.IStringOptions> & s.IStringOptions; readonly target: s.StringSchema<s.IStringOptions> & s.IStringOptions; readonly target_field: { readonly default: "id"; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly target_field_type: { readonly default: "integer"; readonly enum: ["text", "integer"]; } & s.Schema<s.ISchemaOptions, "text" | "integer" | undefined, "text" | "integer" | undefined>; readonly on_delete: { readonly default: "set null"; readonly enum: readonly ["cascade", "set null", "set default", "restrict", "no action"]; } & s.Schema<s.ISchemaOptions, "cascade" | "set null" | "set default" | "restrict" | "no action" | undefined, "cascade" | "set null" | "set default" | "restrict" | "no action" | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly field: typeof import("../data/relations").RelationField; }; primary: { readonly schema: s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, any, any>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly format: s.Schema<s.ISchemaOptions, "integer" | "uuid" | undefined, "integer" | "uuid" | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly field: typeof import("../data/fields").PrimaryField; }; text: { readonly schema: s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly minLength: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly maxLength: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly pattern: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly html_config: s.Schema<s.ISchemaOptions, { [x: string]: unknown; element?: string | undefined; props?: { [x: string]: string | number; } | undefined; } | undefined, { [x: string]: unknown; element?: string | undefined; props?: { [x: string]: string | number; } | undefined; } | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly field: typeof import("../data/fields").TextField; }; number: { readonly schema: s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly minimum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly maximum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly exclusiveMinimum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly exclusiveMaximum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly multipleOf: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly field: typeof import("../data/fields").NumberField; }; boolean: { readonly schema: s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly field: typeof import("../data/fields").BooleanField; }; date: { readonly schema: s.ObjectSchema<{ readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, any, any>; readonly type: s.Schema<s.ISchemaOptions, "date" | "week" | "datetime" | undefined, "date" | "week" | "datetime" | undefined>; readonly timezone: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly min_date: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly max_date: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly field: typeof import("../data/fields").DateField; }; enum: { readonly schema: s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly options: s.Schema<s.ISchemaOptions, { [x: string]: unknown; values: string[]; type: "strings"; } | { [x: string]: unknown; values: { [x: string]: unknown; value: string; label: string; }[]; type: "objects"; } | undefined, any>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly field: typeof import("../data/fields").EnumField; }; json: { readonly schema: s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, any, any>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly field: typeof import("../data/fields").JsonField; }; jsonschema: { readonly schema: s.ObjectSchema<{ readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, any, any>; readonly schema: s.Schema<s.ISchemaOptions, any, any>; readonly ui_schema: s.Schema<s.ISchemaOptions, any, any>; readonly default_from_schema: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly field: typeof import("../data/fields").JsonSchemaField; }; }; export declare const FIELD_TYPES: string[]; export type FieldType = keyof typeof FIELDS; export declare const RELATIONS: { readonly "1:1": { readonly schema: s.ObjectSchema<{ readonly mappedBy: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly inversedBy: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: { default?: any; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly sourceCardinality: { default?: any; enum?: (readonly any[] | any[]) | undefined; const?: any; multipleOf?: number | undefined; maximum?: number | undefined; exclusiveMaximum?: number | undefined; minimum?: number | undefined; exclusiveMinimum?: number | undefined; } & s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly with_limit: { readonly default: number; } & s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly fieldConfig: { default?: any; enum?: (readonly any[] | any[]) | undefined; const?: any; $defs?: Record<string, s.Schema> | undefined; patternProperties?: Record<string, s.Schema> | undefined; additionalProperties?: (s.Schema | false) | undefined; minProperties?: number | undefined; maxProperties?: number | undefined; propertyNames?: s.Schema | undefined; properties: { readonly label: s.StringSchema<s.IStringOptions> & s.IStringOptions; }; required: string[] | undefined; strict: () => s.ObjectSchema<{ readonly label: s.StringSchema<s.IStringOptions> & s.IStringOptions; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; partial: () => s.ObjectSchema<{ readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; }, s.IObjectOptions>; } & s.Schema<s.ISchemaOptions, { [x: string]: unknown; label: string; } | undefined, { [x: string]: unknown; label: string; } | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly cls: typeof import("../data/relations").OneToOneRelation; }; readonly "n:1": { readonly schema: s.ObjectSchema<{ readonly mappedBy: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly inversedBy: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: { default?: any; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly sourceCardinality: { default?: any; enum?: (readonly any[] | any[]) | undefined; const?: any; multipleOf?: number | undefined; maximum?: number | undefined; exclusiveMaximum?: number | undefined; minimum?: number | undefined; exclusiveMinimum?: number | undefined; } & s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly with_limit: { readonly default: number; } & s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly fieldConfig: { default?: any; enum?: (readonly any[] | any[]) | undefined; const?: any; $defs?: Record<string, s.Schema> | undefined; patternProperties?: Record<string, s.Schema> | undefined; additionalProperties?: (s.Schema | false) | undefined; minProperties?: number | undefined; maxProperties?: number | undefined; propertyNames?: s.Schema | undefined; properties: { readonly label: s.StringSchema<s.IStringOptions> & s.IStringOptions; }; required: string[] | undefined; strict: () => s.ObjectSchema<{ readonly label: s.StringSchema<s.IStringOptions> & s.IStringOptions; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; partial: () => s.ObjectSchema<{ readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; }, s.IObjectOptions>; } & s.Schema<s.ISchemaOptions, { [x: string]: unknown; label: string; } | undefined, { [x: string]: unknown; label: string; } | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly cls: typeof import("../data/relations").ManyToOneRelation; }; readonly "m:n": { readonly schema: s.ObjectSchema<{ readonly mappedBy: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly inversedBy: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: { default?: any; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly connectionTable: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly connectionTableMappedName: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly cls: typeof import("../data/relations").ManyToManyRelation; }; readonly poly: { readonly schema: s.ObjectSchema<{ readonly mappedBy: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly inversedBy: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: { default?: any; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly targetCardinality: { default?: any; enum?: (readonly any[] | any[]) | undefined; const?: any; multipleOf?: number | undefined; maximum?: number | undefined; exclusiveMaximum?: number | undefined; minimum?: number | undefined; exclusiveMinimum?: number | undefined; } & s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; readonly cls: typeof import("../data/relations").PolymorphicRelation; }; }; export declare const fieldsSchemaObject: { media: s.ObjectSchema<{ readonly name: { default?: any; maxLength?: number | undefined; minLength?: number | undefined; pattern?: (string | RegExp) | undefined; format?: string | undefined; enum?: (readonly any[] | any[]) | undefined; const?: any; } & s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly type: s.Schema<s.ILiteralOptions, "number" | "boolean" | "json" | "text" | "enum" | "media" | "date" | "relation" | "primary" | "jsonschema", "number" | "boolean" | "json" | "text" | "enum" | "media" | "date" | "relation" | "primary" | "jsonschema"> & s.Merge<s.ILiteralOptions & { const: "number" | "boolean" | "json" | "text" | "enum" | "media" | "date" | "relation" | "primary" | "jsonschema"; }>; readonly config: ({ properties: { readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly minLength: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly maxLength: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly pattern: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly html_config: s.Schema<s.ISchemaOptions, { [x: string]: unknown; element?: string | undefined; props?: { [x: string]: string | number; } | undefined; } | undefined, { [x: string]: unknown; element?: string | undefined; props?: { [x: string]: string | number; } | undefined; } | undefined>; }; required: string[] | undefined; strict: () => s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly minLength: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly maxLength: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly pattern: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly html_config: s.Schema<s.ISchemaOptions, { [x: string]: unknown; element?: string | undefined; props?: { [x: string]: string | number; } | undefined; } | undefined, { [x: string]: unknown; element?: string | undefined; props?: { [x: string]: string | number; } | undefined; } | undefined>; }, s.Merge<s.Merge<s.IObjectOptions & { additionalProperties: false; }> & { additionalProperties: false; }>>; partial: () => s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly minLength: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly maxLength: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly pattern: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly html_config: s.Schema<s.ISchemaOptions, { [x: string]: unknown; element?: string | undefined; props?: { [x: string]: string | number; } | undefined; } | undefined, { [x: string]: unknown; element?: string | undefined; props?: { [x: string]: string | number; } | undefined; } | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; } & s.Schema<s.ISchemaOptions, { description?: string | undefined; maxLength?: number | undefined; minLength?: number | undefined; pattern?: string | undefined; required?: boolean | undefined; default_value?: string | undefined; html_config?: { [x: string]: unknown; element?: string | undefined; props?: { [x: string]: string | number; } | undefined; } | undefined; label?: string | undefined; fillable?: boolean | ("create" | "read" | "update" | "delete")[] | undefined; hidden?: boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined; virtual?: boolean | undefined; } | undefined, { description?: string | undefined; maxLength?: number | undefined; minLength?: number | undefined; pattern?: string | undefined; required?: boolean | undefined; default_value?: string | undefined; html_config?: { [x: string]: unknown; element?: string | undefined; props?: { [x: string]: string | number; } | undefined; } | undefined; label?: string | undefined; fillable?: boolean | ("create" | "read" | "update" | "delete")[] | undefined; hidden?: boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined; virtual?: boolean | undefined; } | undefined>) | ({ properties: { readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, any, any>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly format: s.Schema<s.ISchemaOptions, "integer" | "uuid" | undefined, "integer" | "uuid" | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; }; required: string[] | undefined; strict: () => s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, any, any>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly format: s.Schema<s.ISchemaOptions, "integer" | "uuid" | undefined, "integer" | "uuid" | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; }, s.Merge<s.Merge<s.IObjectOptions & { additionalProperties: false; }> & { additionalProperties: false; }>>; partial: () => s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, any, any>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly format: s.Schema<s.ISchemaOptions, "integer" | "uuid" | undefined, "integer" | "uuid" | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; } & s.Schema<s.ISchemaOptions, { description?: string | undefined; format?: "integer" | "uuid" | undefined; required?: boolean | undefined; default_value?: any; label?: string | undefined; fillable?: boolean | ("create" | "read" | "update" | "delete")[] | undefined; hidden?: boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined; virtual?: boolean | undefined; } | undefined, { description?: string | undefined; format?: "integer" | "uuid" | undefined; required?: boolean | undefined; default_value?: any; label?: string | undefined; fillable?: boolean | ("create" | "read" | "update" | "delete")[] | undefined; hidden?: boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined; virtual?: boolean | undefined; } | undefined>) | ({ properties: { readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly minimum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly maximum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly exclusiveMinimum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly exclusiveMaximum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly multipleOf: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; }; required: string[] | undefined; strict: () => s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly minimum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly maximum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly exclusiveMinimum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly exclusiveMaximum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly multipleOf: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; }, s.Merge<s.Merge<s.IObjectOptions & { additionalProperties: false; }> & { additionalProperties: false; }>>; partial: () => s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly minimum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly maximum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly exclusiveMinimum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly exclusiveMaximum: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; readonly multipleOf: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; } & s.Schema<s.ISchemaOptions, { description?: string | undefined; required?: boolean | undefined; multipleOf?: number | undefined; maximum?: number | undefined; exclusiveMaximum?: number | undefined; minimum?: number | undefined; exclusiveMinimum?: number | undefined; default_value?: number | undefined; label?: string | undefined; fillable?: boolean | ("create" | "read" | "update" | "delete")[] | undefined; hidden?: boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined; virtual?: boolean | undefined; } | undefined, { description?: string | undefined; required?: boolean | undefined; multipleOf?: number | undefined; maximum?: number | undefined; exclusiveMaximum?: number | undefined; minimum?: number | undefined; exclusiveMinimum?: number | undefined; default_value?: number | undefined; label?: string | undefined; fillable?: boolean | ("create" | "read" | "update" | "delete")[] | undefined; hidden?: boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined; virtual?: boolean | undefined; } | undefined>) | ({ properties: { readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; }; required: string[] | undefined; strict: () => s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; }, s.Merge<s.Merge<s.IObjectOptions & { additionalProperties: false; }> & { additionalProperties: false; }>>; partial: () => s.ObjectSchema<{ readonly description: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly required: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly label: s.Schema<s.ISchemaOptions, string | undefined, string | undefined>; readonly fillable: s.Schema<s.ISchemaOptions, boolean | ("create" | "read" | "update" | "delete")[] | undefined, boolean | ("create" | "read" | "update" | "delete")[] | undefined>; readonly hidden: s.Schema<s.ISchemaOptions, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined, boolean | ("table" | "create" | "read" | "update" | "delete" | "form" | "submit")[] | undefined>; readonly virtual: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; readonly default_value: s.Schema<s.ISchemaOptions, boolean | undefined, boolean | undefined>; }, s.Merge<s.IObjectOptions & { additionalProperties: false; }>>; } & s.Schema<s.ISchemaOptions, { description?: string | undefined; required?: boolean | undefined; default_value?: boolean | undefined; label?: string | undefined; fillable?: boolean | ("create" | "read" | "update" | "delete")[] | undefined; h