{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "aiasset:set-credentials returns",
  "type": "object",
  "properties": {
    "ok": { "const": true },
    "realProvidersEnabled": {
      "type": "boolean",
      "description": "True when AIASSET_ENABLE_REAL_PROVIDERS resolves to \"1\" (process.env wins over the plugin .env)."
    },
    "litellmConfigured": {
      "type": "boolean",
      "description": "Read-only. True when Studio global .env has a 3D gateway key (priority FORGEAX_3D_GATEWAY_KEY > ANTHROPIC_API_KEY > LITELLM_PROXY_KEY)."
    },
    "litellmProxyKey": {
      "type": ["string", "null"],
      "description": "Read-only masked 3D gateway key from Studio Settings (first4...last4, or *** when <= 8 chars), or null when unset. Never plaintext. The plugin .env never holds this key."
    },
    "credentials": {
      "type": "object",
      "properties": {
        "COS_SECRET_ID": {
          "type": ["string", "null"],
          "description": "Masked COS SecretId (first4...last4, or *** when <= 8 chars) or null when unset. Never plaintext."
        },
        "COS_SECRET_KEY": {
          "type": ["string", "null"],
          "description": "Masked COS SecretKey or null when unset. Never plaintext."
        },
        "COS_BUCKET": {
          "type": ["string", "null"],
          "description": "Plaintext COS bucket name (an address, not a secret) or null when unset."
        },
        "COS_REGION": {
          "type": ["string", "null"],
          "description": "Plaintext COS region (an address, not a secret) or null when unset."
        }
      },
      "required": ["COS_SECRET_ID", "COS_SECRET_KEY", "COS_BUCKET", "COS_REGION"],
      "additionalProperties": false
    }
  },
  "required": ["ok", "realProvidersEnabled", "litellmConfigured", "litellmProxyKey", "credentials"],
  "additionalProperties": false
}
