Skip to content

Variable: PublishLegacyDraftSchema

ts
const PublishLegacyDraftSchema: ZodObject<{
  body: ZodObject<{
     ancestors: ZodOptional<ZodNullable<ZodArray<ZodObject<{
        id: ZodString;
     }, $loose>>>>;
     space: ZodOptional<ZodObject<{
        key: ZodString;
     }, $loose>>;
     status: ZodOptional<ZodCustom<string & object | "current", string & object | "current">>;
     title: ZodString;
     type: ZodCustom<"page" | string & object, "page" | string & object>;
     version: ZodObject<{
        number: ZodNumber;
     }, $loose>;
  }, $loose>;
  draftId: ZodString;
  expand: ZodOptional<ZodArray<ZodString>>;
  status: ZodOptional<ZodString>;
}, $strip>;

Defined in: src/v1/parameters/publishLegacyDraft.ts:4