The API surface createTrueNasClient assumes when the caller does not
say otherwise: the oldest supported version.
Conservative in the direction that matters — against a newer server the types
understate what is available, rather than promising methods that are not
there. Move it in step with --min-version in the generate:api script.
Named rather than written inline because a type parameter's default cannot be
observed through ReturnType, which erases it to unknown. Tests assert
against this alias; without it they pass whatever the default is, which is
how the missing 22 methods went unnoticed in the first place.
The API surface createTrueNasClient assumes when the caller does not say otherwise: the oldest supported version.
Conservative in the direction that matters — against a newer server the types understate what is available, rather than promising methods that are not there. Move it in step with
--min-versionin thegenerate:apiscript.Named rather than written inline because a type parameter's default cannot be observed through
ReturnType, which erases it tounknown. Tests assert against this alias; without it they pass whatever the default is, which is how the missing 22 methods went unnoticed in the first place.