ComfyUI/app/assets/services/__init__.py
Luke Mino-Altherr 9290e26e9f refactor: add explicit types to asset service functions
- Add typed result dataclasses: IngestResult, AddTagsResult,
  RemoveTagsResult, SetTagsResult, TagUsage
- Add UserMetadata type alias for user_metadata parameters
- Type helper functions with Session parameters
- Use TypedDicts at query layer to avoid circular imports
- Update manager.py and tests to use attribute access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 20:32:14 -08:00

50 lines
1.0 KiB
Python

from app.assets.services.asset_management import (
delete_asset_reference,
get_asset_detail,
set_asset_preview,
update_asset_metadata,
)
from app.assets.services.ingest import (
ingest_file_from_path,
register_existing_asset,
)
from app.assets.services.schemas import (
AddTagsResult,
AssetData,
AssetDetailResult,
AssetInfoData,
IngestResult,
RegisterAssetResult,
RemoveTagsResult,
SetTagsResult,
TagUsage,
UserMetadata,
)
from app.assets.services.tagging import (
apply_tags,
list_tags,
remove_tags,
)
__all__ = [
"ingest_file_from_path",
"register_existing_asset",
"get_asset_detail",
"update_asset_metadata",
"delete_asset_reference",
"set_asset_preview",
"apply_tags",
"remove_tags",
"list_tags",
"AddTagsResult",
"AssetData",
"AssetDetailResult",
"AssetInfoData",
"IngestResult",
"RegisterAssetResult",
"RemoveTagsResult",
"SetTagsResult",
"TagUsage",
"UserMetadata",
]