Validates the ModelInstanceDocument header against the Model definition.
The model that this ModelInstanceDocument belongs to
the header to validate
Applies commit (genesis|signed|anchor)
Commit (with JWS envelope or anchor proof, if available and extracted before application)
Interface to read and write data to ceramic network
Optional
state: StreamState<ModelInstanceDocumentStateMetadata>Document state
ModelInstanceDocument stream handler implementation