@uniai-fe/uds-templates 0.5.17 → 0.5.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniai-fe/uds-templates",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "description": "UNIAI Design System; UI Templates Package",
5
5
  "type": "module",
6
6
  "private": false,
@@ -419,31 +419,55 @@ export interface API_Res_LoginRole {
419
419
  }
420
420
 
421
421
  /**
422
- * 로그인 API; 응답 성공 데이터
422
+ * 로그인 API; 세션정보 응답 데이터
423
423
  * @route /auth/user/login
424
- * @property {string} access_token 엑세스 토큰
424
+ * @route /auth/user/refresh
425
425
  * @property {string} token_type 엑세스 토큰 타입 (ex, bearer)
426
+ * @property {string} access_token 엑세스 토큰
426
427
  * @property {number} expires_in 토큰 유효기간 (초 단위)
427
- * @property {API_Res_LoginUserInfo} user_info 로그인 유저 정보
428
- * @property {API_Res_LoginGroup[]} [groups] 소속 그룹 목록
429
- * @property {API_Res_LoginGroup[]} [ancestor_groups] 상위 그룹 목록
430
- * @property {API_Res_LoginRole[]} [roles] 역할 목록
428
+ * @property {string} refresh_token 리프레시 토큰
429
+ * @property {number} refresh_expires_in 리프레시 토큰 유효기간 (초 단위)
431
430
  */
432
- export interface API_Res_LoginData {
433
- /**
434
- * 엑세스 토큰
435
- */
436
- access_token: string;
431
+ export interface API_Res_LoginToken {
437
432
  /**
438
433
  * 엑세스 토큰 타입
439
434
  * - bearer
440
435
  */
441
436
  token_type: string;
437
+ /**
438
+ * 엑세스 토큰
439
+ */
440
+ access_token: string;
442
441
  /**
443
442
  * 토큰 유효기간
444
443
  * - 초 단위
445
444
  */
446
445
  expires_in: number;
446
+ /**
447
+ * 리프레시 토큰
448
+ */
449
+ refresh_token: string;
450
+ /**
451
+ * 토큰 유효기간
452
+ * - 초 단위
453
+ */
454
+ refresh_expires_in: number;
455
+ }
456
+
457
+ /**
458
+ * 로그인 API; 응답 성공 데이터
459
+ * @route /auth/user/login
460
+ * @property {string} token_type 엑세스 토큰 타입 (ex, bearer)
461
+ * @property {string} access_token 엑세스 토큰
462
+ * @property {number} expires_in 토큰 유효기간 (초 단위)
463
+ * @property {string} refresh_token 리프레시 토큰
464
+ * @property {number} refresh_expires_in 리프레시 토큰 유효기간 (초 단위)
465
+ * @property {API_Res_LoginUserInfo} user_info 로그인 유저 정보
466
+ * @property {API_Res_LoginGroup[]} [groups] 소속 그룹 목록
467
+ * @property {API_Res_LoginGroup[]} [ancestor_groups] 상위 그룹 목록
468
+ * @property {API_Res_LoginRole[]} [roles] 역할 목록
469
+ */
470
+ export interface API_Res_LoginData extends API_Res_LoginToken {
447
471
  /**
448
472
  * 로그인 유저 정보
449
473
  */