Skip to content

Commit 2fd65bd

Browse files
committed
fix types in sdks js
1 parent d7cab4e commit 2fd65bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdks/js/src/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2141,13 +2141,15 @@ export type UpsertFolderResponseType = z.infer<
21412141
typeof UpsertFolderResponseSchema
21422142
>;
21432143

2144+
const ProviderVisibilitySchema = FlexibleEnumSchema<"public" | "private">();
2145+
21442146
export const UpsertDataSourceFolderRequestSchema = z.object({
21452147
timestamp: z.number(),
21462148
parents: z.array(z.string()).nullable().optional(),
21472149
parent_id: z.string().nullable().optional(),
21482150
title: z.string(),
21492151
mime_type: z.string(),
2150-
provider_visibility: z.string().nullable().optional(),
2152+
provider_visibility: ProviderVisibilitySchema.nullable().optional(),
21512153
});
21522154
export type UpsertDataSourceFolderRequestType = z.infer<
21532155
typeof UpsertDataSourceFolderRequestSchema

0 commit comments

Comments
 (0)