I'm gonna assume the response from /v13/deployments/:id is the ideal response and compare it to the deployment interfaces responded from other endpoints.
idisuidaliasAssignedAtisaliasAssigned, note thataliasAssignedis a boolean field in the ideal responsecreatedAtis duplicated intocreated, there're two fields with the same value in there,createdandcreatedAt- the
creatorfield returns two more properties,emailandgithubLogin readyStateis renamed asstate, the ideal response here is duplicating it though, thev13/deployments/:idrespond with bothstatusandreadyState, they are the same- it's missing a lot of fields, including the ones on aliases
aliasAssignedAtisaliasAssigned- the
creatorfield returns two more properties as well,emailandgithubLogin publicfield is flippedprivatefieldownerIdisuserId- returns
teamIdwhich the ideal response doesn't (or maybe it'sundefinedinstead ofnull) readyisreadyAt- also missing a bunch of fields
I'm creating three separate interfaces due to these differences,
VercelDeployment(the ideal one),VercelListedDeploymentandVercelLatestDeployment. This isn't the case for projects though.