"""Aliyun Bailian (Model Studio / DashScope) domain module. Surfaces the four resources Helix tracks for Bailian tenants: * **Workspaces** — business-space rows synced from Bailian via OpenAPI. * **Applications** — agents / workflows / RAG apps under each workspace. * **API keys** — Helix-issued keys (Aliyun-side handles only; secrets live on the originating ``api_key_assignments`` row). * **Usage daily** — per-(workspace × api_key × model × day) token + cost rollups for billing and per-employee ROI. Auto-grant flow lives at ``app/domains/apikey/bailian_autogrant.py`` and is invoked the same way the AWS Bedrock equivalent is — when the API key request transitions to ``approved`` via the Feishu callback. It mints a dedicated RAM user in the configured Aliyun cloud integration, attaches ``AliyunBailianFullAccess``, generates an AccessKey/Secret, and writes those credentials into ``api_key_assignments.key_value``. """ from __future__ import annotations from app.domains.bailian import models as _models # noqa: F401 __all__ = ["_models"]