From c8648998be8a36ea8e4974ed302cade92a6c1856 Mon Sep 17 00:00:00 2001 From: DacongDA Date: Tue, 7 May 2024 17:02:43 +0800 Subject: [PATCH] feat: fix roles type in JwtPayload (#49) * feat: fix role error in jwtpayload * fix: remove log for test --- src/sdk.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/sdk.ts b/src/sdk.ts index c147906..ae09b24 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -45,6 +45,17 @@ export interface Account { accessToken: string } +export interface Role { + owner: string, + name: string, + createdTime: string, + displayName: string, + description: string, + roles: string[], + domains: string[] + isEnabled: boolean +} + export interface JwtPayload { owner: string; name: string; @@ -114,7 +125,7 @@ export interface JwtPayload { mfaEmailEnabled: boolean; ldap: string; properties: Record; - roles: string[]; + roles: Role[]; permissions: Permission[]; groups: string[]; lastSigninWrongTime: string;