From b7371f850e5075a489a056a39ffe803c8e4f0c24 Mon Sep 17 00:00:00 2001 From: Aubin Date: Tue, 14 Jan 2025 17:56:40 +0100 Subject: [PATCH] fix types in sdks js --- sdks/js/src/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdks/js/src/types.ts b/sdks/js/src/types.ts index 6c61fb103dd1..780a566cd29b 100644 --- a/sdks/js/src/types.ts +++ b/sdks/js/src/types.ts @@ -2141,13 +2141,15 @@ export type UpsertFolderResponseType = z.infer< typeof UpsertFolderResponseSchema >; +const ProviderVisibilitySchema = FlexibleEnumSchema<"public" | "private">(); + export const UpsertDataSourceFolderRequestSchema = z.object({ timestamp: z.number(), parents: z.array(z.string()).nullable().optional(), parent_id: z.string().nullable().optional(), title: z.string(), mime_type: z.string(), - provider_visibility: z.string().nullable().optional(), + provider_visibility: ProviderVisibilitySchema.nullable().optional(), }); export type UpsertDataSourceFolderRequestType = z.infer< typeof UpsertDataSourceFolderRequestSchema