"""Configuration for transcription result storage"""

# AUTOGENERATED! DO NOT EDIT! File to edit: ../../nbs/storage/config.ipynb.

# %% auto 0
__all__ = ['STORAGE_CONFIG_SCHEMA', 'StorageConfig']

# %% ../../nbs/storage/config.ipynb 3
from dataclasses import dataclass, field
from typing import ClassVar

from cjm_fasthtml_jsonschema.core.dataclass import (
    SCHEMA_TITLE, SCHEMA_DESC,
    dataclass_to_jsonschema
)

# %% ../../nbs/storage/config.ipynb 5
@dataclass
class StorageConfig:
    """Result storage configuration."""
    
    # Class-level schema metadata
    __schema_name__: ClassVar[str] = "storage"
    __schema_title__: ClassVar[str] = "Storage Settings"
    __schema_description__: ClassVar[str] = "Configure transcription result storage"
    
    auto_save: bool = field(
        default=True,
        metadata={
            SCHEMA_TITLE: "Auto-save Results",
            SCHEMA_DESC: "Automatically save transcription results when complete"
        }
    )
    results_directory: str = field(
        default="transcription_results",
        metadata={
            SCHEMA_TITLE: "Results Directory",
            SCHEMA_DESC: "Directory to save transcription results"
        }
    )

# %% ../../nbs/storage/config.ipynb 7
STORAGE_CONFIG_SCHEMA = dataclass_to_jsonschema(StorageConfig)
