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

import * as z from "zod/v3";

export type UnpauseProjectRequest = {
  /**
   * The unique project identifier
   */
  projectId: string;
  /**
   * The Team identifier to perform the request on behalf of.
   */
  teamId?: string | undefined;
  /**
   * The Team slug to perform the request on behalf of.
   */
  slug?: string | undefined;
};

/** @internal */
export type UnpauseProjectRequest$Outbound = {
  projectId: string;
  teamId?: string | undefined;
  slug?: string | undefined;
};

/** @internal */
export const UnpauseProjectRequest$outboundSchema: z.ZodType<
  UnpauseProjectRequest$Outbound,
  z.ZodTypeDef,
  UnpauseProjectRequest
> = z.object({
  projectId: z.string(),
  teamId: z.string().optional(),
  slug: z.string().optional(),
});

export function unpauseProjectRequestToJSON(
  unpauseProjectRequest: UnpauseProjectRequest,
): string {
  return JSON.stringify(
    UnpauseProjectRequest$outboundSchema.parse(unpauseProjectRequest),
  );
}
