File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
packages/service-utils/src Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,10 @@ type TeamCapabilities = {
112112 enabled : boolean ;
113113 rateLimit : number ;
114114 } ;
115+ gateway : {
116+ enabled : boolean ;
117+ rateLimit : number ;
118+ } ;
115119} ;
116120
117121type TeamPlan =
@@ -207,6 +211,10 @@ export type ProjectService =
207211 payoutAddress : string | null ;
208212 developerFeeBPS ?: number | null ;
209213 }
214+ | {
215+ name : "gateway" ;
216+ actions : never [ ] ;
217+ }
210218 | {
211219 name : "storage" ;
212220 actions : ( "read" | "write" ) [ ] ;
Original file line number Diff line number Diff line change @@ -83,6 +83,13 @@ export const SERVICE_DEFINITIONS = {
8383 name : "storage" ,
8484 title : "Storage" ,
8585 } ,
86+ gateway : {
87+ // all actions allowed
88+ actions : [ ] ,
89+ description : "api.thirdweb.com" ,
90+ name : "gateway" ,
91+ title : "Gateway" ,
92+ } ,
8693} as const ;
8794
8895export const SERVICE_NAMES = Object . keys (
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export const USAGE_V2_SOURCES = [
1010 "wallet" ,
1111 "pay" ,
1212 "webhook" ,
13+ "gateway" ,
1314] as const ;
1415export type UsageV2Source = ( typeof USAGE_V2_SOURCES ) [ number ] ;
1516
Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ export const validTeamResponse: TeamResponse = {
8484 enabled : true ,
8585 rateLimit : 1000 ,
8686 } ,
87+ gateway : {
88+ enabled : true ,
89+ rateLimit : 1000 ,
90+ } ,
8791 platform : {
8892 auditLogs : true ,
8993 ecosystemWallets : true ,
You can’t perform that action at this time.
0 commit comments