Skip to content

Commit 80c6b6a

Browse files
authored
Add gateway team capabilities (#7718)
1 parent eb2d49c commit 80c6b6a

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.changeset/cute-houses-own.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+
add `gateway` team capabilities

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ export function teamStub(id: string, billingPlan: Team["billingPlan"]): Team {
8989
enabled: true,
9090
rateLimit: 10,
9191
},
92+
gateway: {
93+
enabled: true,
94+
rateLimit: 1000,
95+
},
9296
},
9397
createdAt: new Date().toISOString(),
9498
dedicatedSupportChannel: null,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ type TeamCapabilities = {
116116
enabled: boolean;
117117
rateLimit: number;
118118
};
119+
gateway: {
120+
enabled: boolean;
121+
rateLimit: number;
122+
};
119123
};
120124

121125
type TeamPlan =

packages/service-utils/src/mocks.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ export const validTeamResponse: TeamResponse = {
107107
enabled: true,
108108
rateLimit: 10,
109109
},
110+
gateway: {
111+
enabled: true,
112+
rateLimit: 1000,
113+
},
110114
},
111115
createdAt: new Date("2024-06-01").toISOString(),
112116
dedicatedSupportChannel: null,

0 commit comments

Comments
 (0)