* feat(experiences): verified creator-role script binding in central store * feat(experiences): trusted simulator script-binding API route * feat(experiences): expose validated viewer script binding module method * feat(experiences): authenticated task metadata and authorized script binding bridge * feat(experiences): persist Firestorm-selected Experience after successful task compile * test(experiences): verify creator-only script binding, unlink and disabled policy * test(experiences): require task-upload Experience binding and metadata round-trip * docs(experiences): Firestorm script binding and separate profile Save behavior * docs(openapi): define secure Experience viewer script-binding route and schemas * test(openapi): enforce typed Experience viewer script-binding contract * fix(experiences): do not block ordinary LSL compilation when optional viewer binding is disabled * fix(experiences): avoid local Experience ID shadowing in viewer bridge
97 lines
2.9 KiB
C#
97 lines
2.9 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);
|
|
|
|
/// <summary>
|
|
/// After an authenticated task-script upload compiled successfully,
|
|
/// enforce live object/script edit permissions and persist the chosen
|
|
/// Experience in the central authority. Zero removes a binding.
|
|
/// </summary>
|
|
bool TrySetViewerScriptExperience(UUID primId, UUID scriptItemId,
|
|
UUID avatarId, UUID experienceId, out string reason);
|
|
|
|
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);
|
|
}
|
|
}
|