/** * Generated by orval v8.19.0 🍺 * Do not edit manually. * Webitel API * OpenAPI spec version: 24.04.0 */ import axios from '@aliasedDeps/api-services/axios'; import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; import type { ApiLoginResponse, ApiUserinfo, SignupParams, UserInfo2Params, UserInfoParams, } from '../_models'; // --- header start // export const // --- title start getAuth = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end /** * @summary Signup new domain with superior access token */ const signup = ( params?: SignupParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.post(`/signup`, undefined, { ...options, params: { ...params, ...options?.params, }, }); }; /** * @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. */ const userInfo2 = ( params?: UserInfo2Params, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/userinfo`, { ...options, params: { ...params, ...options?.params, }, }); }; /** * @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. */ const userInfo = ( params?: UserInfoParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.post(`/userinfo`, undefined, { ...options, params: { ...params, ...options?.params, }, }); }; // --- footer start return { signup, userInfo2, userInfo, }; }; export type SignupResult = AxiosResponse; export type UserInfo2Result = AxiosResponse; export type UserInfoResult = AxiosResponse; // --- footer end