@@ -90,7 +90,7 @@ export const AuthApiAxiosParamCreator = function (
9090 * @throws {RequiredError }
9191 */
9292 getLexboxLoginUrl : async ( options : any = { } ) : Promise < RequestArgs > => {
93- const localVarPath = `/v1/auth/lexbox/ login-url` ;
93+ const localVarPath = `/v1/auth/lexbox- login-url` ;
9494 // use dummy base URL string because the URL constructor only accepts absolute URLs.
9595 const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ;
9696 let baseOptions ;
@@ -115,6 +115,56 @@ export const AuthApiAxiosParamCreator = function (
115115 ...options . headers ,
116116 } ;
117117
118+ return {
119+ url : toPathString ( localVarUrlObj ) ,
120+ options : localVarRequestOptions ,
121+ } ;
122+ } ,
123+ /**
124+ *
125+ * @param {string } [code]
126+ * @param {string } [state]
127+ * @param {* } [options] Override http request option.
128+ * @throws {RequiredError }
129+ */
130+ lexboxOauthCallback : async (
131+ code ?: string ,
132+ state ?: string ,
133+ options : any = { }
134+ ) : Promise < RequestArgs > => {
135+ const localVarPath = `/v1/auth/oauth-callback` ;
136+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
137+ const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ;
138+ let baseOptions ;
139+ if ( configuration ) {
140+ baseOptions = configuration . baseOptions ;
141+ }
142+
143+ const localVarRequestOptions = {
144+ method : "GET" ,
145+ ...baseOptions ,
146+ ...options ,
147+ } ;
148+ const localVarHeaderParameter = { } as any ;
149+ const localVarQueryParameter = { } as any ;
150+
151+ if ( code !== undefined ) {
152+ localVarQueryParameter [ "code" ] = code ;
153+ }
154+
155+ if ( state !== undefined ) {
156+ localVarQueryParameter [ "state" ] = state ;
157+ }
158+
159+ setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ;
160+ let headersFromBaseOptions =
161+ baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
162+ localVarRequestOptions . headers = {
163+ ...localVarHeaderParameter ,
164+ ...headersFromBaseOptions ,
165+ ...options . headers ,
166+ } ;
167+
118168 return {
119169 url : toPathString ( localVarUrlObj ) ,
120170 options : localVarRequestOptions ,
@@ -168,6 +218,33 @@ export const AuthApiFp = function (configuration?: Configuration) {
168218 configuration
169219 ) ;
170220 } ,
221+ /**
222+ *
223+ * @param {string } [code]
224+ * @param {string } [state]
225+ * @param {* } [options] Override http request option.
226+ * @throws {RequiredError }
227+ */
228+ async lexboxOauthCallback (
229+ code ?: string ,
230+ state ?: string ,
231+ options ?: any
232+ ) : Promise <
233+ ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < AuthStatus >
234+ > {
235+ const localVarAxiosArgs =
236+ await localVarAxiosParamCreator . lexboxOauthCallback (
237+ code ,
238+ state ,
239+ options
240+ ) ;
241+ return createRequestFunction (
242+ localVarAxiosArgs ,
243+ globalAxios ,
244+ BASE_PATH ,
245+ configuration
246+ ) ;
247+ } ,
171248 } ;
172249} ;
173250
@@ -202,9 +279,46 @@ export const AuthApiFactory = function (
202279 . getLexboxLoginUrl ( options )
203280 . then ( ( request ) => request ( axios , basePath ) ) ;
204281 } ,
282+ /**
283+ *
284+ * @param {string } [code]
285+ * @param {string } [state]
286+ * @param {* } [options] Override http request option.
287+ * @throws {RequiredError }
288+ */
289+ lexboxOauthCallback (
290+ code ?: string ,
291+ state ?: string ,
292+ options ?: any
293+ ) : AxiosPromise < AuthStatus > {
294+ return localVarFp
295+ . lexboxOauthCallback ( code , state , options )
296+ . then ( ( request ) => request ( axios , basePath ) ) ;
297+ } ,
205298 } ;
206299} ;
207300
301+ /**
302+ * Request parameters for lexboxOauthCallback operation in AuthApi.
303+ * @export
304+ * @interface AuthApiLexboxOauthCallbackRequest
305+ */
306+ export interface AuthApiLexboxOauthCallbackRequest {
307+ /**
308+ *
309+ * @type {string }
310+ * @memberof AuthApiLexboxOauthCallback
311+ */
312+ readonly code ?: string ;
313+
314+ /**
315+ *
316+ * @type {string }
317+ * @memberof AuthApiLexboxOauthCallback
318+ */
319+ readonly state ?: string ;
320+ }
321+
208322/**
209323 * AuthApi - object-oriented interface
210324 * @export
@@ -235,4 +349,24 @@ export class AuthApi extends BaseAPI {
235349 . getLexboxLoginUrl ( options )
236350 . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
237351 }
352+
353+ /**
354+ *
355+ * @param {AuthApiLexboxOauthCallbackRequest } requestParameters Request parameters.
356+ * @param {* } [options] Override http request option.
357+ * @throws {RequiredError }
358+ * @memberof AuthApi
359+ */
360+ public lexboxOauthCallback (
361+ requestParameters : AuthApiLexboxOauthCallbackRequest = { } ,
362+ options ?: any
363+ ) {
364+ return AuthApiFp ( this . configuration )
365+ . lexboxOauthCallback (
366+ requestParameters . code ,
367+ requestParameters . state ,
368+ options
369+ )
370+ . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
371+ }
238372}
0 commit comments