Skip to content

Variable: ContentCreateSchema

ts
const ContentCreateSchema: ZodObject<{
  ancestors: ZodOptional<ZodNullable<ZodArray<ZodObject<{
     id: ZodString;
  }, $loose>>>>;
  body: ZodOptional<ZodObject<{
     anonymous_export_view: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
     atlas_doc_format: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
     editor: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
     editor2: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
     export_view: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
     plain: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
     raw: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
     storage: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
     styled_view: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
     view: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
     wiki: ZodOptional<ZodObject<{
        representation: ZodEnum<{
           anonymous_export_view: "anonymous_export_view";
           atlas_doc_format: "atlas_doc_format";
           editor: "editor";
           editor2: "editor2";
           export_view: "export_view";
           plain: "plain";
           raw: "raw";
           storage: "storage";
           styled_view: "styled_view";
           view: "view";
           wiki: "wiki";
        }>;
        value: ZodString;
     }, $loose>>;
  }, $loose>>;
  container: ZodOptional<ZodNullable<ZodObject<{
     id: ZodUnion<readonly [ZodNumber, ZodString]>;
     type: ZodString;
  }, $loose>>>;
  id: ZodOptional<ZodNullable<ZodString>>;
  space: ZodOptional<ZodNullable<ZodObject<{
     description: ZodOptional<ZodNullable<ZodObject<{
        _expandable: ZodOptional<...>;
        plain: ZodOptional<...>;
        view: ZodOptional<...>;
     }, $loose>>>;
     history: ZodOptional<ZodObject<{
        createdBy: ZodOptional<ZodType<..., ..., ...>>;
        createdDate: ZodCoercedDate<unknown>;
     }, $loose>>;
     homepage: ZodOptional<ZodType<Content, unknown, $ZodTypeInternals<Content, unknown>>>;
     icon: ZodOptional<ZodObject<{
        height: ZodNumber;
        isDefault: ZodBoolean;
        path: ZodString;
        width: ZodNumber;
     }, $loose>>;
     id: ZodOptional<ZodNullable<ZodNumber>>;
     identifiers: ZodOptional<ZodObject<{
        spaceIdentifier: ZodString;
     }, $loose>>;
     key: ZodString;
     links: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodAny>>>;
     lookAndFeel: ZodOptional<ZodObject<{
        bordersAndDividers: ZodObject<{
           color: ...;
        }, $loose>;
        content: ZodObject<{
           body: ...;
           container: ...;
           header: ...;
           screen: ...;
        }, $loose>;
        header: ZodObject<{
           backgroundColor: ...;
           button: ...;
           primaryNavigation: ...;
           search: ...;
           secondaryNavigation: ...;
        }, $loose>;
        headings: ZodObject<{
           color: ...;
        }, $loose>;
        horizontalHeader: ZodOptional<ZodObject<..., ...>>;
        links: ZodObject<{
           color: ...;
        }, $loose>;
        menus: ZodObject<{
           color: ...;
           hoverOrFocus: ...;
        }, $loose>;
        spaceReference: ZodOptional<ZodNullable<...>>;
     }, $loose>>;
     metadata: ZodOptional<ZodNullable<ZodObject<{
        _expandable: ZodOptional<...>;
        labels: ZodOptional<...>;
     }, $loose>>>;
     name: ZodOptional<ZodNullable<ZodString>>;
     operations: ZodOptional<ZodNullable<ZodArray<ZodObject<{
        operation: ...;
        targetType: ...;
     }, $loose>>>>;
     permissions: ZodOptional<ZodNullable<ZodArray<ZodType<SpacePermission, unknown, $ZodTypeInternals<..., ...>>>>>;
     settings: ZodOptional<ZodObject<{
        _links: ZodObject<{
           base: ...;
           byOperation: ...;
           collection: ...;
           context: ...;
           download: ...;
           editui: ...;
           edituiv2: ...;
           next: ...;
           prev: ...;
           self: ...;
           tinyui: ...;
           webui: ...;
        }, $loose>;
        contentMode: ZodOptional<ZodNullable<...>>;
        editor: ZodOptional<ZodObject<..., ...>>;
        routeOverrideEnabled: ZodBoolean;
        spaceKey: ZodOptional<ZodString>;
     }, $loose>>;
     status: ZodOptional<ZodNullable<ZodString>>;
     theme: ZodOptional<ZodObject<{
        _links: ZodOptional<ZodObject<..., ...>>;
        description: ZodOptional<ZodString>;
        icon: ZodOptional<ZodObject<..., ...>>;
        name: ZodOptional<ZodString>;
        themeKey: ZodString;
     }, $loose>>;
     type: ZodOptional<ZodNullable<ZodString>>;
  }, $loose>>>;
  status: ZodOptional<ZodEnum<{
     current: "current";
     deleted: "deleted";
     draft: "draft";
     historical: "historical";
  }>>;
  title: ZodOptional<ZodNullable<ZodString>>;
  type: ZodString;
}, $loose>;

Defined in: src/v1/models/contentCreate.ts:16