Copyright (c) 2026 Oskar Rochowiak Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Unprivileged read-only interface for observing active sessions. Broadcast to all connected clients when any session is created. Sent once for each already-active session when the manager is first created. Creates a `session_core_session` object for the given session_id. The daemon immediately pushes all fields, followed by done. If the session does not exist, destroyed is sent instead. Creates a session_core_session object for the session whose leader PID matches the given pid. The daemon immediately pushes all fields, followed by done. If no matching session exists, destroyed is sent instead. Creates a session_core_session object for the session whose user ID matches the given uid. The daemon immediately pushes all fields, followed by done. If no matching session exists, destroyed is sent instead. Creates a session_core_user object for the given uid. The daemon immediately pushes all fields, followed by done. If uid does not correspond to a known user, not_found is sent instead. Provides information about a single session. All fields are pushed immediately on creation and re-sent if they change. Sent when the session is destroyed or if the `session_id` passed to `get_session` was not found. The client should release this object. Non-zero if this client may lock, unlock, terminate, or kill this session. Provides information about a single user, identified by uid. All fields are pushed immediately on creation, followed by done. Reflects whether the user currently has sessions and whether any of them is in the foreground, combined with the lingering flag. Re-sent whenever it changes. Sent when the uid passed to get_user does not correspond to a known user. The client should release this object. Non-zero if this client may terminate or kill this user's sessions.