UNPKG

@statezero/core

Version:

The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate

30 lines (29 loc) 850 B
/** * Get current user's username - simple focused action * * @param {Object} [axiosOverrides] - Allows overriding Axios request parameters. * @returns {Promise<Object>} A promise that resolves with the action's result. */ export function getCurrentUsername(axiosOverrides?: Object): Promise<Object>; export namespace getCurrentUsername { let actionName: string; let title: string; let app: string; let permissions: string[]; let configKey: string; } /** * Zod schema for the response of getCurrentUsername. */ export const getCurrentUsernameResponseSchema: z.ZodObject<{ username: z.ZodString; retrieved_at: z.ZodString; }, "strip", z.ZodTypeAny, { username: string; retrieved_at: string; }, { username: string; retrieved_at: string; }>; export default getCurrentUsername; import { z } from 'zod';