// This file was generated by liblab | https://liblab.com/ import { z } from 'zod'; import { BaseService } from '../base-service'; import { ContentType, HttpResponse } from '../../http'; import { RequestConfig } from '../../http/types'; import { AuthenticateRequest, Response, authenticateRequestRequest, responseResponse } from './models'; export class AuthService extends BaseService { /** * Authenticate to retrieve the HUE application key. Requires to go and press the button on the bridge * @returns {Promise>} Authentication Success */ async authenticate(body: AuthenticateRequest, requestConfig?: RequestConfig): Promise> { const path = '/api'; const options: any = { responseSchema: z.array(responseResponse), requestSchema: authenticateRequestRequest, body: body as any, headers: { 'Content-Type': 'application/json', }, requestContentType: ContentType.Json, responseContentType: ContentType.Json, retry: requestConfig?.retry, config: this.config, }; return this.client.post(path, options); } }