@flagpole/api-types 1.0.20 → 1.0.24

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 CHANGED
@@ -1,2 +1,2 @@
1
- # @flagpole/api-types v1.0.19
1
+ # @flagpole/api-types v1.0.23
2
2
  TypeScript types for FlagPole API generated from OpenAPI specification.
@@ -25,9 +25,40 @@ 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 = any;
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
+ /**
43
+ * User information
44
+ * @example {"id":"5f9d4a3b2c1d0a3b4c5d6e7f","email":"user@example.com","roles":["user"],"firstName":"John","lastName":"Doe","currentOrganization":"128391831"}
45
+ */
46
+ user: AuthResponseUserDto;
47
+ }
48
+ export interface AuthResponseUserDto {
49
+ /** @example "128391831" */
50
+ currentOrganization?: string;
51
+ /** @example "user@example.com" */
52
+ email: string;
53
+ /** @example "John" */
54
+ firstName?: string;
55
+ /** @example "5f9d4a3b2c1d0a3b4c5d6e7f" */
56
+ id: string;
57
+ /** @example "Doe" */
58
+ lastName?: string;
59
+ /** @example ["user"] */
60
+ roles?: any[][];
61
+ }
31
62
  export interface CheckoutSessionResponseDto {
32
63
  /** @example "cs_test_1234567890" */
33
64
  id: string;
@@ -1279,7 +1310,7 @@ export declare class Api<SecurityDataType extends unknown> {
1279
1310
  * @request POST:/api/auth/login
1280
1311
  * @response `200` `AuthControllerLoginData` Returns JWT token and user information
1281
1312
  */
1282
- authControllerLogin: (data: LoginDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
1313
+ authControllerLogin: (data: LoginDto, params?: RequestParams) => Promise<AxiosResponse<AuthResponseDto, any>>;
1283
1314
  /**
1284
1315
  * No description
1285
1316
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flagpole/api-types",
3
- "version": "1.0.20",
3
+ "version": "1.0.24",
4
4
  "description": "TypeScript types for FlagPole API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",