Path: blob/master/src/packages/next/lib/api/schema/projects/restore.ts
1451 views
import { z } from "../../framework";12import { FailedAPIOperationSchema, OkAPIOperationSchema } from "../common";34import { ProjectIdSchema } from "./common";56// OpenAPI spec7//8export const RestoreProjectInputSchema = z9.object({10project_id: ProjectIdSchema,11})12.describe(13`Restores a specific project from its deleted state, which clears the project's14\`delete\` flag in the database and restores it to the user interface. Note that any15previously applied project licenses must be re-applied to the project upon16restoration.`,17);1819export const RestoreProjectOutputSchema = z.union([20FailedAPIOperationSchema,21OkAPIOperationSchema,22]);2324export type RestoreProjectInput = z.infer<typeof RestoreProjectInputSchema>;25export type RestoreProjectOutput = z.infer<typeof RestoreProjectOutputSchema>;262728