Files
opengenesislinkserver/OpenSim/Region/Framework/Interfaces/IExperienceModule.cs
T
OpenGenesis (MPL 2.0) b05d39a39e feat(experiences): opt-in pending LSL consent resolved by verified Firestorm preferences (#139)
* feat(experiences): bounded simulator pending consent queue with timeout and cancellation

* feat(experiences): region interface for deferred LSL consent result

* feat(experiences): opt-in pending script-consent lifecycle, timer and region cancellation

* feat(experiences): queue LSL requests pending explicit Firestorm Allow and revalidate on grant

* feat(experiences): settle pending LSL requests only after persisted viewer consent

* feat(lsl): defer experience_permissions until explicit viewer consent or timeout

* test(experiences): pending LSL consent isolation, bounds, timeout, callbacks and region cancellation

* ci/docs(experiences): opt-in bounded LSL consent wait and explicit Firestorm approval gates

* ci/docs(experiences): opt-in bounded LSL consent wait and explicit Firestorm approval gates

* ci/docs(experiences): opt-in bounded LSL consent wait and explicit Firestorm approval gates

* security(experiences): never queue script consent for disabled Experience

* fix(experiences): query script inventory via SceneObjectPart.Inventory API
2026-10-10 19:15:14 +02:00

89 lines
2.5 KiB
C#

// SPDX-License-Identifier: BSD-3-Clause
using OpenMetaverse;
namespace OpenSim.Region.Framework.Interfaces
{
/// <summary>
/// Region-facing adapter for the authoritative OpenGenesisLINK Experience service.
/// Implementations must not keep an independent money-/permission-like authority
/// in the simulator; they proxy the central service.
/// </summary>
public interface IExperienceModule
{
UUID ResolveExperience(UUID scriptItemId);
bool TryGetExperienceDetails(
UUID experienceId,
out string name,
out UUID ownerId,
out UUID groupId,
out int maturity,
out bool enabled);
bool HasExperiencePermission(
UUID scriptItemId,
UUID residentId,
UUID parcelId,
out UUID experienceId,
out string reason);
/// <summary>
/// Opt-in, fail-closed pending Experience consent. Only unblocked,
/// ungranted residents with a live viewer can be queued.
/// Callback: 0=granted, 4=denied, 18=timeout. Implementations must
/// revalidate the script, region and parcel before granting.
/// </summary>
bool QueueExperiencePermissionRequest(
UUID scriptItemId,
UUID objectId,
UUID residentId,
UUID parcelId,
System.Action<int> onResult);
bool AgentInExperience(
UUID scriptItemId,
UUID residentId);
bool CreateKeyValue(
UUID scriptItemId,
string key,
string value,
out string error);
bool ReadKeyValue(
UUID scriptItemId,
string key,
out string value,
out string error);
bool UpdateKeyValue(
UUID scriptItemId,
string key,
string value,
bool checkOriginal,
string originalValue,
out bool retryMismatch,
out string error);
bool DeleteKeyValue(
UUID scriptItemId,
string key,
out string error);
bool GetKeyValueStats(
UUID scriptItemId,
out long usedBytes,
out long quotaBytes,
out int keyCount,
out string error);
bool ListKeyValueKeys(
UUID scriptItemId,
int start,
int count,
out string[] keys,
out string error);
}
}