Optionalrealm?: stringDefaults to "pam"
Optionaltfa?: (challenge: TfaChallenge) => Promise<string | undefined> | string | undefinedCalled when the account needs a second factor. Return the code the user entered: 6-8 digits is
sent as TOTP, anything else as a recovery key; a totp:/recovery:/yubico:/webauthn: prefix
is passed through. Without it, a 2FA account fails with a clear error.
An existing ticket session, e.g. restored from storage or obtained through OpenID login
(api.access.openid.login). There is no password: when it nears expiry or Proxmox answers 401
the ticket is renewed with itself. If renewal fails, the request fails.
Optionalagent?: AgentOptionalapiPath?: stringDefaults to "/api2/json"
Base URL like https://pve.example.com:8006
Optionalfetch?: FetchLike
API token string, either full "PVEAPIToken=user@realm!token=secret" or shorthand "user@realm!token=secret"