UNPKG

liferay-headless-rest-client

Version:
35 lines (34 loc) 829 B
export type Captcha = { answer?: string; image?: string; token: string; readonly 'x-class-name'?: string; }; export type GetCaptchaChallengeData = { body?: never; path?: never; query?: never; url: '/o/captcha/v1.0/captcha/challenge'; }; export type GetCaptchaChallengeResponses = { /** * default response */ default: Captcha; }; export type GetCaptchaChallengeResponse = GetCaptchaChallengeResponses[keyof GetCaptchaChallengeResponses]; export type PostCaptchaResponseData = { body?: Captcha; path?: never; query?: never; url: '/o/captcha/v1.0/captcha/response'; }; export type PostCaptchaResponseResponses = { /** * default response */ default: unknown; }; export type ClientOptions = { baseUrl: 'http://localhost:8080' | (string & {}); };