{
  "plugin_id": "community.yamtrack.watchsync",
  "version": "0.2.0",
  "silo_api_version": "v1",
  "presentation": {
    "display_name": "Yamtrack Watch Sync",
    "summary": "Imports watched movies, episodes, play counts, and watch dates from Yamtrack.",
    "description_markdown": "A read-only Yamtrack watch-sync provider for Silo. Yamtrack remains authoritative and the plugin never writes to its database.",
    "setup_markdown": "Connect the Silo container to Yamtrack's Docker network, configure the database address and Yamtrack user ID, then connect the provider using the read-only PostgreSQL role password."
  },
  "capabilities": [
    {
      "type": "watch_sync_provider.v1",
      "id": "yamtrack",
      "display_name": "Yamtrack",
      "description": "Read-only watched-state import from Yamtrack PostgreSQL.",
      "watch_sync_provider": {
        "auth_methods": [
          "WATCH_SYNC_AUTH_METHOD_API_KEY"
        ],
        "import_watched": true,
        "import_progress": false,
        "export_watched": false,
        "export_unwatched": false,
        "supported_media_types": [
          "WATCH_SYNC_MEDIA_TYPE_MOVIE",
          "WATCH_SYNC_MEDIA_TYPE_EPISODE"
        ],
        "external_id_namespaces": [
          "tmdb"
        ],
        "max_batch_size": 100
      }
    }
  ],
  "global_config_schema": [
    {
      "key": "yamtrack",
      "title": "Yamtrack PostgreSQL",
      "description": "Connection settings for the read-only silo_sync role. The password is entered later when connecting a Silo profile.",
      "required": true,
      "json_schema": "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"host\":{\"type\":\"string\",\"title\":\"Host\",\"default\":\"yamtrack-db\"},\"port\":{\"type\":\"integer\",\"title\":\"Port\",\"minimum\":1,\"maximum\":65535,\"default\":5432},\"database\":{\"type\":\"string\",\"title\":\"Database\",\"default\":\"yamtrack\"},\"user\":{\"type\":\"string\",\"title\":\"Read-only database user\",\"default\":\"silo_sync\"},\"sslmode\":{\"type\":\"string\",\"title\":\"SSL mode\",\"enum\":[\"disable\",\"require\",\"verify-ca\",\"verify-full\"],\"default\":\"disable\"},\"user_id\":{\"type\":\"integer\",\"title\":\"Yamtrack user ID\",\"minimum\":1,\"default\":1}},\"required\":[\"host\",\"port\",\"database\",\"user\",\"sslmode\",\"user_id\"]}"
    }
  ],
  "checksum": "17e3d97c778af924e24b89d9453ef702a6ebf955b73c33e44f720a8255c9eacc",
  "supported_platforms": [
    {
      "os": "linux",
      "arch": "amd64"
    }
  ]
}
