Skip to content

Commit

Permalink
fix types in sdks js
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi committed Jan 15, 2025
1 parent 3d43eed commit b7371f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdks/js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7371f8

Please sign in to comment.