@flagpole/api-types 1.0.18 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/flagpole-api-types.d.ts +16 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# @flagpole/api-types v1.0.
|
|
1
|
+
# @flagpole/api-types v1.0.21
|
|
2
2
|
TypeScript types for FlagPole API generated from OpenAPI specification.
|
|
@@ -25,9 +25,23 @@ export type ApiKeysControllerFindAllData = any;
|
|
|
25
25
|
export type AuthControllerForgotPasswordData = any;
|
|
26
26
|
export type AuthControllerGetCurrentUserData = any;
|
|
27
27
|
export type AuthControllerGoogleAuthRedirectData = any;
|
|
28
|
-
export type AuthControllerLoginData =
|
|
28
|
+
export type AuthControllerLoginData = AuthResponseDto;
|
|
29
29
|
export type AuthControllerLogoutData = any;
|
|
30
30
|
export type AuthControllerResetPasswordData = any;
|
|
31
|
+
export interface AuthResponseDto {
|
|
32
|
+
/**
|
|
33
|
+
* JWT access token
|
|
34
|
+
* @example "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
|
|
35
|
+
*/
|
|
36
|
+
access_token: string;
|
|
37
|
+
/**
|
|
38
|
+
* Token expiration time
|
|
39
|
+
* @example "30d"
|
|
40
|
+
*/
|
|
41
|
+
expires_in?: string;
|
|
42
|
+
/** @example {"id":"5f9d4a3b2c1d0a3b4c5d6e7f","email":"user@example.com","roles":["user"],"firstName":"John","lastName":"Doe","currentOrganization":"128391831"} */
|
|
43
|
+
user: object;
|
|
44
|
+
}
|
|
31
45
|
export interface CheckoutSessionResponseDto {
|
|
32
46
|
/** @example "cs_test_1234567890" */
|
|
33
47
|
id: string;
|
|
@@ -1279,7 +1293,7 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
1279
1293
|
* @request POST:/api/auth/login
|
|
1280
1294
|
* @response `200` `AuthControllerLoginData` Returns JWT token and user information
|
|
1281
1295
|
*/
|
|
1282
|
-
authControllerLogin: (data: LoginDto, params?: RequestParams) => Promise<AxiosResponse<
|
|
1296
|
+
authControllerLogin: (data: LoginDto, params?: RequestParams) => Promise<AxiosResponse<AuthResponseDto, any>>;
|
|
1283
1297
|
/**
|
|
1284
1298
|
* No description
|
|
1285
1299
|
*
|