calmlens 0.35.0

Rust SDK for CalmLens moderation, storage and CDN delivery
Documentation
// Generated by packages/sdk-contract/generate.ts from packages/shared/src/UploadMimeTypes.ts; do not edit.
// After lower-casing and dropping parameters, a type in REJECTED is refused; otherwise one
// that starts with a PREFIXES entry, ends with a SUFFIXES entry or is in TYPES is accepted,
// and any other type is refused with upload/unsupported-type. A type in DOCUMENTS is a
// document: PDFs can be up to 2,000 MiB and other documents up to 50 MiB.

pub(crate) const UPLOAD_MIME_REJECTED: &[&str] = &[
    "application/octet-stream",
    "multipart/form-data",
    "multipart/mixed",
    "multipart/alternative",
    "multipart/related",
    "multipart/signed",
    "multipart/encrypted",
];
pub(crate) const UPLOAD_MIME_PREFIXES: &[&str] = &["image/", "video/", "audio/", "text/"];
pub(crate) const UPLOAD_MIME_SUFFIXES: &[&str] = &["+json", "+xml"];
pub(crate) const UPLOAD_MIME_TYPES: &[&str] = &[
    "application/pdf",
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    "application/vnd.ms-word.document.macroenabled.12",
    "application/msword",
    "application/rtf",
    "application/vnd.oasis.opendocument.text",
    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
    "application/vnd.ms-excel.sheet.macroenabled.12",
    "application/vnd.ms-excel",
    "application/vnd.oasis.opendocument.spreadsheet",
    "application/vnd.openxmlformats-officedocument.presentationml.presentation",
    "application/vnd.ms-powerpoint.presentation.macroenabled.12",
    "application/vnd.ms-powerpoint",
    "application/vnd.oasis.opendocument.presentation",
    "application/javascript",
    "application/json",
    "application/x-javascript",
    "application/x-yaml",
    "application/xml",
    "application/yaml",
];
pub(crate) const UPLOAD_MIME_DOCUMENTS: &[&str] = &[
    "application/pdf",
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    "application/vnd.ms-word.document.macroenabled.12",
    "application/msword",
    "application/rtf",
    "application/vnd.oasis.opendocument.text",
    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
    "application/vnd.ms-excel.sheet.macroenabled.12",
    "application/vnd.ms-excel",
    "application/vnd.oasis.opendocument.spreadsheet",
    "application/vnd.openxmlformats-officedocument.presentationml.presentation",
    "application/vnd.ms-powerpoint.presentation.macroenabled.12",
    "application/vnd.ms-powerpoint",
    "application/vnd.oasis.opendocument.presentation",
];