You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
NETSAPIENS_AUTH_MODE=token: run the HTTP server without a NetSapiens OAuth client. The login page shows only the API key form, and each user pastes a key or token for their own NetSapiens user. The server holds no upstream credential, password and MFA sign-in are refused, and NETSAPIENS_OAUTH_CLIENT_ID and NETSAPIENS_OAUTH_CLIENT_SECRET are ignored. When an MCP client refreshes its session, the server checks that NetSapiens still accepts the key and ends the session if it does not. oauth stays the default and still requires the client. /health reports authMode.
Library: NetSapiensAuthProvider takes authMode, and nsClientId and nsClientSecret are optional unless it is oauth. RenderPagesOptions.login receives tokenOnly.
Changed
The copyright notice in LICENSE and the author field in package.json now name the current copyright holder. The license is still MIT. The last code carried over from the project this was forked from has been rewritten, so the earlier notice is gone.
Library types: NetSapiensUser, NetSapiensDomain, NetSapiensCDR, NetSapiensDevice, NetSapiensPhoneNumber, NetSapiensCallQueue, NetSapiensAgent, NetSapiensAutoAttendant, NetSapiensAnswerRule, NetSapiensGreeting, NetSapiensVoicemail, NetSapiensMusicOnHold and NetSapiensBilling now use the field names in the NetSapiens v2 API documents (for example name-first-name, not first_name) and keep an index signature for fields a host adds. Code that read the old guessed field names must switch.
NetSapiensApiResponse defaults its type parameter to unknown. loginAgent, logoutAgent and getAgentStatistics return NetSapiensApiResponse<unknown>.