@@ -2,7 +2,7 @@ import type { InitData } from '@supabase/mcp-utils';
2
2
import { z } from 'zod' ;
3
3
import { AWS_REGION_CODES } from '../regions.js' ;
4
4
5
- export const v1StorageBucketResponseSchema = z . object ( {
5
+ export const storageBucketSchema = z . object ( {
6
6
id : z . string ( ) ,
7
7
name : z . string ( ) ,
8
8
owner : z . string ( ) ,
@@ -11,7 +11,7 @@ export const v1StorageBucketResponseSchema = z.object({
11
11
public : z . boolean ( ) ,
12
12
} ) ;
13
13
14
- export const storageConfigResponseSchema = z . object ( {
14
+ export const storageConfigSchema = z . object ( {
15
15
fileSizeLimit : z . number ( ) ,
16
16
features : z . object ( {
17
17
imageTransformation : z . object ( { enabled : z . boolean ( ) } ) ,
@@ -152,11 +152,8 @@ export type GenerateTypescriptTypesResult = z.infer<
152
152
typeof generateTypescriptTypesResultSchema
153
153
> ;
154
154
155
- export type StorageConfigResponse = z . infer < typeof storageConfigResponseSchema > ;
156
- export type StorageConfigUpdate = z . infer < typeof storageConfigResponseSchema > ;
157
- export type StorageBucketResponse = z . infer <
158
- typeof v1StorageBucketResponseSchema
159
- > ;
155
+ export type StorageConfig = z . infer < typeof storageConfigSchema > ;
156
+ export type StorageBucket = z . infer < typeof storageBucketSchema > ;
160
157
161
158
export type SupabasePlatform = {
162
159
init ?( info : InitData ) : Promise < void > ;
@@ -213,10 +210,7 @@ export type SupabasePlatform = {
213
210
rebaseBranch ( branchId : string ) : Promise < void > ;
214
211
215
212
// Storage
216
- getStorageConfig ( projectId : string ) : Promise < StorageConfigResponse > ;
217
- updateStorageConfig (
218
- projectId : string ,
219
- config : StorageConfigUpdate
220
- ) : Promise < void > ;
221
- listAllBuckets ( projectId : string ) : Promise < StorageBucketResponse [ ] > ;
213
+ getStorageConfig ( projectId : string ) : Promise < StorageConfig > ;
214
+ updateStorageConfig ( projectId : string , config : StorageConfig ) : Promise < void > ;
215
+ listAllBuckets ( projectId : string ) : Promise < StorageBucket [ ] > ;
222
216
} ;
0 commit comments