bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
65 lines (64 loc) • 2.84 kB
TypeScript
import { Permission } from "../../auth/authorize/Permission";
import { s } from "bknd/utils";
export declare const accessAdmin: Permission<"system.access.admin", {}, undefined, undefined>;
export declare const accessApi: Permission<"system.access.api", {}, undefined, undefined>;
export declare const configRead: Permission<"system.config.read", {}, s.ObjectSchema<{
readonly module: {
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.IObjectOptions> & s.IObjectOptions, {
[x: string]: unknown;
module?: string | undefined;
}>;
export declare const configReadSecrets: Permission<"system.config.read.secrets", {}, s.ObjectSchema<{
readonly module: {
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.IObjectOptions> & s.IObjectOptions, {
[x: string]: unknown;
module?: string | undefined;
}>;
export declare const configWrite: Permission<"system.config.write", {}, s.ObjectSchema<{
readonly module: {
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.IObjectOptions> & s.IObjectOptions, {
[x: string]: unknown;
module?: string | undefined;
}>;
export declare const schemaRead: Permission<"system.schema.read", {}, s.ObjectSchema<{
readonly module: {
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.IObjectOptions> & s.IObjectOptions, {
[x: string]: unknown;
module?: string | undefined;
}>;
export declare const build: Permission<"system.build", {}, undefined, undefined>;
export declare const mcp: Permission<"system.mcp", {}, undefined, undefined>;
export declare const info: Permission<"system.info", {}, undefined, undefined>;
export declare const openapi: Permission<"system.openapi", {}, undefined, undefined>;