File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ describe("whoAmI", () => {
13
13
fullname : "@huggingface/hub CI bot" ,
14
14
email : "eliott@huggingface.co" ,
15
15
emailVerified : true ,
16
+ plan : "NO_PLAN" ,
16
17
canPay : false ,
17
18
isPro : false ,
18
19
periodEnd : null ,
@@ -24,6 +25,7 @@ describe("whoAmI", () => {
24
25
displayName : "ci-hub.js" ,
25
26
role : "write" ,
26
27
} ,
28
+ permissions : [ "inference-api" ] ,
27
29
} ,
28
30
} ) ;
29
31
} ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ export interface WhoAmIUser {
15
15
name : string ;
16
16
fullname : string ;
17
17
canPay : boolean ;
18
+ /**
19
+ * @deprecated
20
+ */
21
+ plan ?: unknown ;
18
22
avatarUrl : string ;
19
23
/**
20
24
* Unix timestamp in seconds
@@ -30,6 +34,10 @@ export interface WhoAmIOrg {
30
34
fullname : string ;
31
35
email : string | null ;
32
36
canPay : boolean ;
37
+ /**
38
+ * @deprecated
39
+ */
40
+ plan ?: unknown ;
33
41
avatarUrl : string ;
34
42
/**
35
43
* Unix timestamp in seconds
@@ -55,6 +63,7 @@ export interface AuthInfo {
55
63
expiration ?: Date ;
56
64
role : AccessTokenRole ;
57
65
} ;
66
+ permissions : string [ ] ;
58
67
expiresAt ?: Date ;
59
68
}
60
69
You can’t perform that action at this time.
0 commit comments