@directus/sdk
Version:
Directus JavaScript SDK
45 lines (44 loc) • 1.12 kB
TypeScript
import { WebSocketAuthModes } from "../../../realtime/types.js";
import { RestCommand } from "../../types.js";
//#region src/rest/commands/server/info.d.ts
type ServerInfoOutput = {
project: {
project_name: string;
default_language: string;
public_registration: boolean;
public_registration_verify_email: boolean;
};
mcp_enabled?: boolean;
ai_enabled?: boolean;
rateLimit?: {
points: number;
duration: number;
} | false;
rateLimitGlobal?: {
points: number;
duration: number;
} | false;
queryLimit?: {
default: number;
max: number;
};
websocket?: {
rest: {
authentication: WebSocketAuthModes;
path: string;
} | false;
graphql: {
authentication: WebSocketAuthModes;
path: string;
} | false;
heartbeat: number | false;
} | false;
};
/**
* Get information about the current installation.
* @returns Information about the current installation.
*/
declare const serverInfo: <Schema>() => RestCommand<ServerInfoOutput, Schema>;
//#endregion
export { ServerInfoOutput, serverInfo };
//# sourceMappingURL=info.d.ts.map