output {
    lexicons "crates/polymodel-api/lexicons"
    codegen "crates/polymodel-api/src"
    cargo-toml "crates/polymodel-api/Cargo.toml"
}

source "polymodel" type="local" priority=200 {
    path "./lexicons"
}

source "bluesky-atproto" type="git" priority=101 {
    repo "https://github.com/bluesky-social/atproto"
    pattern "lexicons/com/atproto/**/*.json"
}

// app.bsky.actor is pulled in so the getProfile profileViewUnion can reference
// app.bsky.actor.defs#profileViewDetailed as its bluesky-only variant. Scoped to
// the actor namespace to keep the generated crate small.
source "bluesky-actor" type="git" priority=100 {
    repo "https://github.com/bluesky-social/atproto"
    pattern "lexicons/app/bsky/actor/**/*.json"
}
