Skip to content

Commit 77c57b9

Browse files
committed
[service-utils] Add platform, SMS, and pay capabilities to TeamCapabilities type
1 parent af03614 commit 77c57b9

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.changeset/little-pillows-divide.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 new capabilities to the type

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ export type ApiResponse = {
4949
* This type should match the schema from API server.
5050
*/
5151
type TeamCapabilities = {
52+
platform: {
53+
auditLogs: boolean;
54+
ecosystemWallets: boolean;
55+
seats: boolean;
56+
};
5257
rpc: {
5358
enabled: boolean;
5459
rateLimit: number;
@@ -81,12 +86,20 @@ type TeamCapabilities = {
8186
enabled: boolean;
8287
customAuth: boolean;
8388
customBranding: boolean;
89+
sms: {
90+
domestic: boolean;
91+
international: boolean;
92+
};
8493
};
8594
engineCloud: {
8695
enabled: boolean;
8796
mainnetEnabled: boolean;
8897
rateLimit: number;
8998
};
99+
pay: {
100+
enabled: boolean;
101+
rateLimit: number;
102+
};
90103
};
91104

92105
type TeamPlan =

packages/service-utils/src/mocks.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,25 @@ export const validTeamResponse: TeamResponse = {
9393
enabled: true,
9494
customAuth: true,
9595
customBranding: true,
96+
sms: {
97+
domestic: true,
98+
international: true,
99+
},
96100
},
97101
engineCloud: {
98102
enabled: true,
99103
mainnetEnabled: true,
100104
rateLimit: 100,
101105
},
106+
pay: {
107+
enabled: true,
108+
rateLimit: 1000,
109+
},
110+
platform: {
111+
auditLogs: true,
112+
ecosystemWallets: true,
113+
seats: true,
114+
},
102115
},
103116
planCancellationDate: null,
104117
unthreadCustomerId: null,

0 commit comments

Comments
 (0)