Skip to content

Commit bbc8a8b

Browse files
authored
Merge branch 'main' into harmonize-hf-token
2 parents 19e2039 + 622a83e commit bbc8a8b

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

packages/hub/src/lib/who-am-i.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ describe("whoAmI", () => {
1313
fullname: "@huggingface/hub CI bot",
1414
1515
emailVerified: true,
16-
plan: "NO_PLAN",
1716
canPay: false,
1817
isPro: false,
1918
periodEnd: null,
@@ -25,7 +24,6 @@ describe("whoAmI", () => {
2524
displayName: "ci-hub.js",
2625
role: "write",
2726
},
28-
permissions: ["inference-api"],
2927
},
3028
});
3129
});

packages/hub/src/lib/who-am-i.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ export interface WhoAmIUser {
1515
name: string;
1616
fullname: string;
1717
canPay: boolean;
18-
/**
19-
* @deprecated
20-
*/
21-
plan?: unknown;
2218
avatarUrl: string;
2319
/**
2420
* Unix timestamp in seconds
@@ -34,10 +30,6 @@ export interface WhoAmIOrg {
3430
fullname: string;
3531
email: string | null;
3632
canPay: boolean;
37-
/**
38-
* @deprecated
39-
*/
40-
plan?: unknown;
4133
avatarUrl: string;
4234
/**
4335
* Unix timestamp in seconds
@@ -63,7 +55,6 @@ export interface AuthInfo {
6355
expiration?: Date;
6456
role: AccessTokenRole;
6557
};
66-
permissions: string[];
6758
expiresAt?: Date;
6859
}
6960

0 commit comments

Comments
 (0)