Determines the API version to use based on the user provided version and the available versions.
The 'unstable' version is always allowed without validation.
Parameters
options: ResolveApiVersionOptions
Options for resolving the API version.
Returns Promise<string>
The resolved API version.
Throws
AbortError if the provided version is not allowed.
Determines the API version to use based on the user provided version and the available versions. The 'unstable' version is always allowed without validation.