/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v3";

export type UpdateWorkspaceBody = {
  /**
   * The updated name of the workspace
   */
  name: string | null;
};

/** @internal */
export type UpdateWorkspaceBody$Outbound = {
  name: string | null;
};

/** @internal */
export const UpdateWorkspaceBody$outboundSchema: z.ZodType<
  UpdateWorkspaceBody$Outbound,
  z.ZodTypeDef,
  UpdateWorkspaceBody
> = z.object({
  name: z.nullable(z.string()),
});

export function updateWorkspaceBodyToJSON(
  updateWorkspaceBody: UpdateWorkspaceBody,
): string {
  return JSON.stringify(
    UpdateWorkspaceBody$outboundSchema.parse(updateWorkspaceBody),
  );
}
