@@ -15,6 +15,7 @@ import type {
1515 ItemsDeleteItemData ,
1616 ItemsDeleteItemResponse ,
1717 LoginLoginAccessTokenData ,
18+ LogoutResponse ,
1819 LoginLoginAccessTokenResponse ,
1920 LoginTestTokenResponse ,
2021 LoginRecoverPasswordData ,
@@ -66,6 +67,7 @@ export class ItemsService {
6667 skip : data . skip ,
6768 limit : data . limit ,
6869 } ,
70+ withCredentials : true ,
6971 errors : {
7072 422 : "Validation Error" ,
7173 } ,
@@ -88,6 +90,7 @@ export class ItemsService {
8890 url : "/api/v1/items/" ,
8991 body : data . requestBody ,
9092 mediaType : "application/json" ,
93+ withCredentials : true ,
9194 errors : {
9295 422 : "Validation Error" ,
9396 } ,
@@ -111,6 +114,7 @@ export class ItemsService {
111114 path : {
112115 id : data . id ,
113116 } ,
117+ withCredentials : true ,
114118 errors : {
115119 422 : "Validation Error" ,
116120 } ,
@@ -135,6 +139,7 @@ export class ItemsService {
135139 path : {
136140 id : data . id ,
137141 } ,
142+ withCredentials : true ,
138143 body : data . requestBody ,
139144 mediaType : "application/json" ,
140145 errors : {
@@ -160,6 +165,7 @@ export class ItemsService {
160165 path : {
161166 id : data . id ,
162167 } ,
168+ withCredentials : true ,
163169 errors : {
164170 422 : "Validation Error" ,
165171 } ,
@@ -194,6 +200,31 @@ export class LoginService {
194200 } )
195201 }
196202
203+
204+ /**
205+ * Login Access Token
206+ * OAuth2 compatible token login, get an access token for future requests
207+ * @param data The data for the request.
208+ * @param data.formData
209+ * @returns Token Successful Response
210+ * @throws ApiError
211+ */
212+ public static logout ( ) : CancelablePromise < LogoutResponse > {
213+ return __request ( OpenAPI , {
214+ method : "POST" ,
215+ url : "/api/v1/logout" ,
216+ headers : {
217+ "Content-Type" : "application/x-www-form-urlencoded" ,
218+ } ,
219+ mediaType : "application/x-www-form-urlencoded" ,
220+ withCredentials : true ,
221+ errors : {
222+ 422 : "Validation Error" ,
223+ } ,
224+ } )
225+ }
226+
227+
197228 /**
198229 * Test Token
199230 * Test access token
@@ -331,20 +362,13 @@ export class UsersService {
331362 * @returns UserPublic Successful Response
332363 * @throws ApiError
333364 */
334- // public static readUserMe(): CancelablePromise<UsersReadUserMeResponse> {
335- // console.log("readUserMe")
336- // let r = __request(OpenAPI, {
337- // method: "GET",
338- // url: "/api/v1/users/me",
339- // withCredentials: true,
340- // })
341- // console.log(r.promise)
342- // return __request(OpenAPI, {
343- // method: "GET",
344- // url: "/api/v1/users/me",
345- // withCredentials: true,
346- // })
347- // }
365+ public static readUserMe ( ) : CancelablePromise < UsersReadUserMeResponse > {
366+ return __request ( OpenAPI , {
367+ method : "GET" ,
368+ url : "/api/v1/users/me" ,
369+ withCredentials : true ,
370+ } )
371+ }
348372
349373 /**
350374 * Delete User Me
@@ -356,6 +380,7 @@ export class UsersService {
356380 return __request ( OpenAPI , {
357381 method : "DELETE" ,
358382 url : "/api/v1/users/me" ,
383+ withCredentials : true ,
359384 } )
360385 }
361386
@@ -375,6 +400,7 @@ export class UsersService {
375400 url : "/api/v1/users/me" ,
376401 body : data . requestBody ,
377402 mediaType : "application/json" ,
403+ withCredentials : true ,
378404 errors : {
379405 422 : "Validation Error" ,
380406 } ,
@@ -397,6 +423,7 @@ export class UsersService {
397423 url : "/api/v1/users/me/password" ,
398424 body : data . requestBody ,
399425 mediaType : "application/json" ,
426+ withCredentials : true ,
400427 errors : {
401428 422 : "Validation Error" ,
402429 } ,
@@ -468,6 +495,7 @@ export class UsersService {
468495 } ,
469496 body : data . requestBody ,
470497 mediaType : "application/json" ,
498+ withCredentials : true ,
471499 errors : {
472500 422 : "Validation Error" ,
473501 } ,
@@ -488,6 +516,7 @@ export class UsersService {
488516 return __request ( OpenAPI , {
489517 method : "DELETE" ,
490518 url : "/api/v1/users/{user_id}" ,
519+ withCredentials : true ,
491520 path : {
492521 user_id : data . userId ,
493522 } ,
0 commit comments