Fetches details for a given project.
If called from scratchpad or if the user does not have permission to access the project.
Optional
The project ID. Defaults to the active project if not provided.
A promise that resolves with the project's details data.
Fetches details for a given project.
Throws
If called from scratchpad or if the user does not have permission to access the project.