Skip to content

Commit

Permalink
Fix whoami test (#415)
Browse files Browse the repository at this point in the history
Hub has changed (see failing CI [here](https://github.com/huggingface/huggingface.js/pull/352/checks))

Original: #392
Reverted: #396
  • Loading branch information
xenova authored Dec 14, 2023
1 parent 98c9768 commit 2410462
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
2 changes: 0 additions & 2 deletions packages/hub/src/lib/who-am-i.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ describe("whoAmI", () => {
fullname: "@huggingface/hub CI bot",
email: "[email protected]",
emailVerified: true,
plan: "NO_PLAN",
canPay: false,
isPro: false,
periodEnd: null,
Expand All @@ -25,7 +24,6 @@ describe("whoAmI", () => {
displayName: "ci-hub.js",
role: "write",
},
permissions: ["inference-api"],
},
});
});
Expand Down
9 changes: 0 additions & 9 deletions packages/hub/src/lib/who-am-i.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ export interface WhoAmIUser {
name: string;
fullname: string;
canPay: boolean;
/**
* @deprecated
*/
plan?: unknown;
avatarUrl: string;
/**
* Unix timestamp in seconds
Expand All @@ -34,10 +30,6 @@ export interface WhoAmIOrg {
fullname: string;
email: string | null;
canPay: boolean;
/**
* @deprecated
*/
plan?: unknown;
avatarUrl: string;
/**
* Unix timestamp in seconds
Expand All @@ -63,7 +55,6 @@ export interface AuthInfo {
expiration?: Date;
role: AccessTokenRole;
};
permissions: string[];
expiresAt?: Date;
}

Expand Down
4 changes: 0 additions & 4 deletions packages/hub/src/types/api/api-who-am-i.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ interface ApiWhoAmIEntityBase extends ApiWhoAmIBase {
fullname: string;
email: string | null;
canPay: boolean;
/**
* @deprecated
*/
plan?: unknown;
avatarUrl: string;
/**
* Unix timestamp in seconds
Expand Down

0 comments on commit 2410462

Please sign in to comment.