Your camera answered SetScopes with a SOAP fault, ter:NotAuthorized: the
Operator login may not rename it. The onvif library reports every
SetScopes failure as "Wrong `SetScopes` response", so that cause was
invisible. We now keep the raw reply and turn a NotAuthorized fault into
our own error, and the page says the login isn't allowed to rename the
camera and that the name kept here still works.
Also give credential-store an explicit .ts import so plain Node can run
it, as the admin script's modules already do.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>