File tree Expand file tree Collapse file tree 3 files changed +76
-0
lines changed
packages/service-utils/src Expand file tree Collapse file tree 3 files changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @thirdweb-dev/service-utils " : patch
3+ ---
4+
5+ add team capabilities
Original file line number Diff line number Diff line change @@ -43,6 +43,42 @@ export type ApiResponse = {
4343 } ;
4444} ;
4545
46+ // needs to be kept in sync with the capabilities from the backend
47+ type TeamCapabilities = {
48+ "rpc-edge" : {
49+ enabled : boolean ;
50+ rateLimit : number ;
51+ } ;
52+ insight : {
53+ enabled : boolean ;
54+ rateLimit : number ;
55+ } ;
56+ storage : {
57+ download : {
58+ enabled : boolean ;
59+ rateLimit : number ;
60+ } ;
61+ upload : {
62+ enabled : boolean ;
63+ rateLimit : number ;
64+ } ;
65+ } ;
66+ nebula : {
67+ enabled : boolean ;
68+ rateLimit : number ;
69+ } ;
70+ bundler : {
71+ enabled : true ;
72+ mainnetEnabled : boolean ;
73+ rateLimit : number ;
74+ } ;
75+ embeddedWallets : {
76+ enabled : boolean ;
77+ customAuth : boolean ;
78+ customBranding : boolean ;
79+ } ;
80+ } ;
81+
4682export type TeamResponse = {
4783 id : string ;
4884 name : string ;
@@ -68,6 +104,7 @@ export type TeamResponse = {
68104 canCreatePublicChains : boolean | null ;
69105 enabledScopes : ServiceName [ ] ;
70106 isOnboarded : boolean ;
107+ capabilities : TeamCapabilities ;
71108} ;
72109
73110export type ProjectSecretKey = {
Original file line number Diff line number Diff line change @@ -59,6 +59,40 @@ export const validTeamResponse: TeamResponse = {
5959 canCreatePublicChains : false ,
6060 enabledScopes : [ "storage" , "rpc" , "bundler" ] ,
6161 isOnboarded : true ,
62+ capabilities : {
63+ "rpc-edge" : {
64+ enabled : true ,
65+ rateLimit : 1000 ,
66+ } ,
67+ insight : {
68+ enabled : true ,
69+ rateLimit : 1000 ,
70+ } ,
71+ storage : {
72+ download : {
73+ enabled : true ,
74+ rateLimit : 1000 ,
75+ } ,
76+ upload : {
77+ enabled : true ,
78+ rateLimit : 1000 ,
79+ } ,
80+ } ,
81+ nebula : {
82+ enabled : true ,
83+ rateLimit : 1000 ,
84+ } ,
85+ bundler : {
86+ enabled : true ,
87+ mainnetEnabled : true ,
88+ rateLimit : 1000 ,
89+ } ,
90+ embeddedWallets : {
91+ enabled : true ,
92+ customAuth : true ,
93+ customBranding : true ,
94+ } ,
95+ } ,
6296} ;
6397
6498export const validTeamAndProjectResponse : TeamAndProjectResponse = {
You can’t perform that action at this time.
0 commit comments