Skip to content

Commit 9cfb3be

Browse files
committed
Update nebula rateLimit type to include perSecond and perMinute
1 parent 71efe7a commit 9cfb3be

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.changeset/loud-clocks-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/service-utils": patch
3+
---
4+
5+
update nebula ratelimit type

apps/dashboard/src/@/storybook/stubs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ export function teamStub(id: string, billingPlan: Team["billingPlan"]): Team {
5757
},
5858
nebula: {
5959
enabled: true,
60-
rateLimit: 1000,
60+
rateLimit: {
61+
perSecond: 1000,
62+
perMinute: 1000,
63+
},
6164
},
6265
pay: {
6366
enabled: true,

packages/service-utils/src/core/api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ type TeamCapabilities = {
8484
};
8585
nebula: {
8686
enabled: boolean;
87-
rateLimit: number;
87+
rateLimit: {
88+
perSecond: number;
89+
perMinute: number;
90+
};
8891
};
8992
bundler: {
9093
enabled: boolean;

packages/service-utils/src/mocks.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ export const validTeamResponse: TeamResponse = {
7575
},
7676
nebula: {
7777
enabled: true,
78-
rateLimit: 1000,
78+
rateLimit: {
79+
perSecond: 1000,
80+
perMinute: 1000,
81+
},
7982
},
8083
pay: {
8184
enabled: true,

0 commit comments

Comments
 (0)