@statezero/core
Version:
The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate
39 lines (38 loc) • 1.17 kB
TypeScript
/**
* Get server status and random data (no authentication required)
*
* @param {Object} [axiosOverrides] - Allows overriding Axios request parameters.
* @returns {Promise<Object>} A promise that resolves with the action's result.
*/
export function getServerStatus(axiosOverrides?: Object): Promise<Object>;
export namespace getServerStatus {
let actionName: string;
let title: string;
let app: string;
let permissions: any[];
let configKey: string;
}
/**
* Zod schema for the response of getServerStatus.
*/
export const getServerStatusResponseSchema: z.ZodObject<{
status: z.ZodString;
timestamp: z.ZodString;
random_number: z.ZodNumber;
server_info: z.ZodRecord<z.ZodString, z.ZodAny>;
demo_data: z.ZodRecord<z.ZodString, z.ZodAny>;
}, "strip", z.ZodTypeAny, {
status: string;
timestamp: string;
random_number: number;
server_info: Record<string, any>;
demo_data: Record<string, any>;
}, {
status: string;
timestamp: string;
random_number: number;
server_info: Record<string, any>;
demo_data: Record<string, any>;
}>;
export default getServerStatus;
import { z } from 'zod';