/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: af070f1be2e4 */ import * as z from "zod"; import { ApiError, ApiError$zodSchema } from "./apierror.js"; import { FolderRolesResponse, FolderRolesResponse$zodSchema, } from "./folderrolesresponse.js"; export type GetFolderRolesGlobals = { cloud_name?: string | undefined }; export const GetFolderRolesGlobals$zodSchema: z.ZodType = z.object({ cloud_name: z.string().describe( "The cloud name of your product environment.", ).optional(), }); export type GetFolderRolesRequest = { folder_id: string; permitted_roles?: boolean | undefined; }; export const GetFolderRolesRequest$zodSchema: z.ZodType = z.object({ folder_id: z.string().describe( "The immutable identifier of the folder, returned by the Get root folders and Get subfolders endpoints.", ), permitted_roles: z.boolean().describe( "Whether to include in the response the roles the authenticated user can assign on this folder, based on their permission level. Default: `false`.\n", ).optional(), }); export type GetFolderRolesResponse = ApiError | FolderRolesResponse; export const GetFolderRolesResponse$zodSchema: z.ZodType< GetFolderRolesResponse > = z.union([ ApiError$zodSchema, FolderRolesResponse$zodSchema, ]);