/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const Roles = { Admin: "admin", ApiAccess: "api_access", } as const; export type Roles = ClosedEnum; export type UpdateMemberRoleInputBody = { /** * Array of role identifiers to assign to the user */ roles: Array | null; }; /** @internal */ export const Roles$outboundSchema: z.ZodNativeEnum = z.nativeEnum( Roles, ); /** @internal */ export type UpdateMemberRoleInputBody$Outbound = { roles: Array | null; }; /** @internal */ export const UpdateMemberRoleInputBody$outboundSchema: z.ZodType< UpdateMemberRoleInputBody$Outbound, z.ZodTypeDef, UpdateMemberRoleInputBody > = z.object({ roles: z.nullable(z.array(Roles$outboundSchema)), }); export function updateMemberRoleInputBodyToJSON( updateMemberRoleInputBody: UpdateMemberRoleInputBody, ): string { return JSON.stringify( UpdateMemberRoleInputBody$outboundSchema.parse(updateMemberRoleInputBody), ); }