diff --git a/api-definitions b/api-definitions index 7e76b99..dd7f501 160000 --- a/api-definitions +++ b/api-definitions @@ -1 +1 @@ -Subproject commit 7e76b9943c2a8a6a69c906b7a5f248646b24a17b +Subproject commit dd7f501d93a6fca96c9d27743562e613101093fb diff --git a/packages/core/src/typesAuth.ts b/packages/core/src/typesAuth.ts index 027d5db..470c23a 100644 --- a/packages/core/src/typesAuth.ts +++ b/packages/core/src/typesAuth.ts @@ -80,6 +80,7 @@ export type TokenDetails = { projectId: ProjectId, tokenId: TokenId, createdAt: Date, + description?: string, } export type IssueTokenRequest = { @@ -190,6 +191,7 @@ export class ConvertAuth { projectId: token.getProjectId(), tokenId: token.getTokenId(), createdAt: new Date(token.getCreationDate()), + description: (typeof token.getDescription() == "string" && token.getDescription().length > 0) ? token.getDescription() : null, } }), }