Add `flags` field to `Definition`
Created by: romac
All definitions have flags, so I think we could reflect that in the Definition
type. This is useful to me within Stainless for the inner classes implementation, as I sometime need to invalidate the cache from within the ExtractionCache#cached
method.