@@ -29,9 +29,6 @@ export const accountPlan = {
2929 enterprise : "enterprise" ,
3030} as const ;
3131
32- type AccountStatus = ( typeof accountStatus ) [ keyof typeof accountStatus ] ;
33- type AccountPlan = ( typeof accountPlan ) [ keyof typeof accountPlan ] ;
34-
3532export type AuthorizedWallet = {
3633 id : string ;
3734 accountId : string ;
@@ -47,30 +44,17 @@ export type Account = {
4744 id : string ;
4845 isStaff : boolean ;
4946 creatorWalletAddress : string ;
50- status : AccountStatus ;
51- plan : AccountPlan ;
5247 name ?: string ;
5348 email ?: string ;
5449 advancedEnabled : boolean ;
55- currentBillingPeriodStartsAt : string ;
56- currentBillingPeriodEndsAt : string ;
5750 emailConfirmedAt ?: string ;
5851 unconfirmedEmail ?: string ;
59- trialPeriodEndedAt ?: string ;
6052 emailConfirmationWalletAddress ?: string ;
61- stripePaymentActionUrl ?: string ;
6253 onboardSkipped ?: boolean ;
63- paymentAttemptCount ?: number ;
6454 notificationPreferences ?: {
6555 billing : "email" | "none" ;
6656 updates : "email" | "none" ;
6757 } ;
68- recurringPaymentFailures : {
69- subscriptionId : string ;
70- subscriptionDescription : string ;
71- paymentFailureCode : string ;
72- serviceCutoffDate : string ;
73- } [ ] ;
7458 // TODO - add image URL
7559} ;
7660
@@ -194,33 +178,16 @@ export interface UpdateKeyInput {
194178 redirectUrls : string [ ] ;
195179}
196180
197- interface UsageBundler {
198- chainId : number ;
199- sumTransactionFee : string ;
200- }
201-
202181interface UsageStorage {
203182 sumFileSizeBytes : number ;
204183}
205184
206- interface UsageEmbeddedWallets {
207- countWalletAddresses : number ;
208- }
209-
210185export interface UsageBillableByService {
211186 usage : {
212- bundler : UsageBundler [ ] ;
213187 storage : UsageStorage ;
214- embeddedWallets : UsageEmbeddedWallets ;
215- } ;
216- billableUsd : {
217- bundler : number ;
218- storage : number ;
219- embeddedWallets : number ;
220188 } ;
221189 limits : {
222190 storage : number ;
223- embeddedWallets : number ;
224191 } ;
225192 rateLimits : {
226193 storage : number ;
0 commit comments