From 622a83e7fbfd669b158b23b9cab2b65a54de9462 Mon Sep 17 00:00:00 2001 From: Eliott C Date: Tue, 5 Dec 2023 14:54:04 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F=20Fix=20whoami=20test=20(?= =?UTF-8?q?#392)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hub/src/lib/who-am-i.spec.ts | 2 -- packages/hub/src/lib/who-am-i.ts | 9 --------- 2 files changed, 11 deletions(-) diff --git a/packages/hub/src/lib/who-am-i.spec.ts b/packages/hub/src/lib/who-am-i.spec.ts index a7f09ca25..56c42306a 100644 --- a/packages/hub/src/lib/who-am-i.spec.ts +++ b/packages/hub/src/lib/who-am-i.spec.ts @@ -13,7 +13,6 @@ describe("whoAmI", () => { fullname: "@huggingface/hub CI bot", email: "eliott@huggingface.co", emailVerified: true, - plan: "NO_PLAN", canPay: false, isPro: false, periodEnd: null, @@ -25,7 +24,6 @@ describe("whoAmI", () => { displayName: "ci-hub.js", role: "write", }, - permissions: ["inference-api"], }, }); }); diff --git a/packages/hub/src/lib/who-am-i.ts b/packages/hub/src/lib/who-am-i.ts index 02d5ff95c..d344f5fa6 100644 --- a/packages/hub/src/lib/who-am-i.ts +++ b/packages/hub/src/lib/who-am-i.ts @@ -15,10 +15,6 @@ export interface WhoAmIUser { name: string; fullname: string; canPay: boolean; - /** - * @deprecated - */ - plan?: unknown; avatarUrl: string; /** * Unix timestamp in seconds @@ -34,10 +30,6 @@ export interface WhoAmIOrg { fullname: string; email: string | null; canPay: boolean; - /** - * @deprecated - */ - plan?: unknown; avatarUrl: string; /** * Unix timestamp in seconds @@ -63,7 +55,6 @@ export interface AuthInfo { expiration?: Date; role: AccessTokenRole; }; - permissions: string[]; expiresAt?: Date; }