The required uses block is for dependencies your service cannot run without. The auth event subscription above belongs there if your service needs those events to do its job.
Sometimes an integration is useful but not required. Put those in uses.optional:
import { sdk as core } from "@qlever-llc/trellis/sdk/core";
uses: {
required: {
auth: auth.use({
events: { subscribe: ["Auth.Connections.Opened"] },
}),
},
optional: {
coreStatus: core.use({
rpc: { call: ["Trellis.Surface.Status"] },
}),
},
}, Optional uses still participate in the contract digest, so Trellis can tell exactly what the service was built to use. If the target contract or surface is not active, Trellis skips the optional binding and grants no authority for it.