Skip to content

Settings ​

Read effective settings and apply reviewed changes to the requested scope. Stored values, inherited values and temporary overlays have different ownership and lifetimes.

Contract: nexa.settings/100. API index.

Typical sequence ​

Use GetEffective when the UI needs the value and its origin. Preview a change and apply its plan; retain an overlay’s registration so it can be ended explicitly.

Behavior and limits ​

A temporary overlay is not a durable profile write. Schema/page registration and migration routes remain unmapped where listed; direct modification of launcher configuration files is not a supported substitute.

The recorded Host maps 15 of 15 operations in this group. A mapping is subject to permission, phase, scope, platform and business preconditions. Host snapshot identifies the source revision; negotiate against the actual installed Host.

Operations ​

RegisterSchema · RegisterPage · Get · GetEffective · Watch · PreviewChange · Apply · Reset · Migrate · ListProfiles · SaveProfile · SelectProfile · BeginTemporaryOverlay · EndTemporaryOverlay · RegisterVersionedSchema

RegisterSchema ​

SettingSchema → RegistrationRef

PropertyContract
Local SDK method ID1
KindRegistration
Permissionnexa.settings.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Stage a plugin-owned setting schema at version 1. Supported scopes are global and instance. ValueSchema and Default must validate against a known ABI schema. The Host stores values in a private durable namespace using canonical instance identity, revision CAS and explicit defaults. Use RegisterVersionedSchema before introducing a migration.

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
ValueSchemaSchemaRefStructured SchemaRef value; follow its linked field contract.
DefaultAbiValueDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
Scopesstring[]Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. A bounded collection; do not assume an unbounded result or unspecified ordering.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_RegisterSchema(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_RegisterSchema_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

RegisterPage ​

UIPage → RegistrationRef

PropertyContract
Local SDK method ID2
KindRegistration
Permissionnexa.settings.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Register a verified NXML package page through the same rendering path as UI.RegisterPage. EntryFile must be an owned package-file handle. The page appears only after atomic activation and is removed on retirement. Registering a schema does not automatically generate controls.

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
EntryFileFileRefStructured FileRef value; follow its linked field contract.
SchemaSchemaRefExact schema identity, version and fingerprint used to validate Value.
LocalizationsQualifiedId[]Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_RegisterPage(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_RegisterPage_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

Get ​

SettingQuery → StateSnapshot

PropertyContract
Local SDK method ID3
KindQuery
Permissionnexa.settings.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
TargetScopedTargetStructured ScopedTarget value; follow its linked field contract.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_Get(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_Get_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

GetEffective ​

SettingQuery → EffectiveSetting

PropertyContract
Local SDK method ID4
KindQuery
Permissionnexa.settings.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
TargetScopedTargetStructured ScopedTarget value; follow its linked field contract.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_GetEffective(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_GetEffective_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

Watch ​

SettingQuery → SubscriptionRef

PropertyContract
Local SDK method ID5
KindSubscription
Permissionnexa.settings.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
TargetScopedTargetStructured ScopedTarget value; follow its linked field contract.

Successful result

Retain the subscription identity, consume bounded batches or callbacks as specified, handle gaps, and release it when no longer needed.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_Watch(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_Watch_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

PreviewChange ​

SettingChange → MutationPlan

PropertyContract
Local SDK method ID6
KindQuery
Permissionnexa.settings.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
TargetScopedTargetStructured ScopedTarget value; follow its linked field contract.
ValueAbiValuePayload interpreted using the accompanying or declared schema; Null is not a substitute for an error.
ExpectedRevisionRevisionRevision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target.

Successful result

Retain the exact plan ID and revision, review its bound inputs and confirmation requirement, then use the corresponding commit operation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_PreviewChange(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_PreviewChange_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

Apply ​

PlanRequest → OperationRef

PropertyContract
Local SDK method ID7
KindOperation
Permissionnexa.settings.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
PlanEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ExpectedRevisionRevisionRevision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target.
ConfirmationTokenstring?Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.

Successful result

Work has been admitted. Read or watch the owned operation through Tasks to establish its terminal result; admission is not completion.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_Apply(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_Apply_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

Reset ​

SettingQuery → StateSnapshot

PropertyContract
Local SDK method ID8
KindMutation
Permissionnexa.settings.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
TargetScopedTargetStructured ScopedTarget value; follow its linked field contract.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_Reset(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_Reset_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

Migrate ​

SettingMigration → OperationRef

PropertyContract
Local SDK method ID9
KindOperation
Permissionnexa.settings.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Confirm a forward migration from the exact persisted FromVersion to the registered ToVersion. Handler receives SettingMigrationInput and returns a value matching the current setting schema. The callback is query-only and cannot mutate Host state. The Host rechecks schema identity and storage revision before one atomic write; failure or rejection preserves the old value. Repeating a completed migration returns a stale-version error.

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
TargetScopedTargetStructured ScopedTarget value; follow its linked field contract.
FromVersionulongExact stored setting version to transform. A mismatch rejects migration before committing.
ToVersionulongCurrently registered positive setting version. Migrations must move forward.
HandlerulongCallback identifier registered by this plugin. A handler alone is not a public action or provider registration.

Successful result

Work has been admitted. Read or watch the owned operation through Tasks to establish its terminal result; admission is not completion.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_Migrate(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_Migrate_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

ListProfiles ​

PageRequest → Page<SettingsProfile> (wrapper, item)

PropertyContract
Local SDK method ID10
KindQuery
Permissionnexa.settings.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
Cursorstring?Opaque continuation or observation cursor. Reuse only in the issuing query/scope; absence and invalidity are different. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.
LimitlongRequested bound on returned items. The Host may impose a smaller domain-specific limit.

Successful result

Read Items and continue with NextCursor while preserving the original query. An absent cursor ends the sequence; an invalid cursor is an error.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_ListProfiles(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_ListProfiles_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

SaveProfile ​

SettingsProfile → SettingsProfile

PropertyContract
Local SDK method ID11
KindMutation
Permissionnexa.settings.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdEntityIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
NamestringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ValuesEffectiveSetting[]Structured EffectiveSetting value; follow its linked field contract. A bounded collection; do not assume an unbounded result or unspecified ordering.
RevisionRevisionOpaque version token issued by the owner. Do not increment it or substitute another object’s revision.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_SaveProfile(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_SaveProfile_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

SelectProfile ​

EntityRequest → SettingsProfile

PropertyContract
Local SDK method ID12
KindMutation
Permissionnexa.settings.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdEntityIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_SelectProfile(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_SelectProfile_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

BeginTemporaryOverlay ​

SettingsOverlay → RegistrationRef

PropertyContract
Local SDK method ID13
KindMutation
Permissionnexa.settings.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
TargetScopedTargetStructured ScopedTarget value; follow its linked field contract.
ValuesEffectiveSetting[]Structured EffectiveSetting value; follow its linked field contract. A bounded collection; do not assume an unbounded result or unspecified ordering.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_BeginTemporaryOverlay(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_BeginTemporaryOverlay_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

EndTemporaryOverlay ​

RegistrationRequest → Empty

PropertyContract
Local SDK method ID14
KindMutation
Permissionnexa.settings.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
RegistrationRegistrationRefStructured RegistrationRef value; follow its linked field contract.

Successful result

There is no result payload beyond the encoded Empty model. Check Success; an empty failure value is not successful completion.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_EndTemporaryOverlay(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_EndTemporaryOverlay_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

RegisterVersionedSchema ​

VersionedSettingSchema → RegistrationRef

PropertyContract
Local SDK method ID15
KindRegistration
Permissionnexa.settings.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Stage the current positive version of an owned SettingSchema. Registration does not transform persisted values. GetEffective rejects a stored value from another version until Migrate succeeds. The same plugin ID and setting ID retain their durable values across load replacement.

Request fields

FieldTypeMeaning
SchemaSettingSchemaExact schema identity, version and fingerprint used to validate Value.
VersionulongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Settings_RegisterVersionedSchema(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Settings_RegisterVersionedSchema_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.


Source: NexaCL-Plugin-SDK · Apache-2.0.

Site documentation: CC BY-SA 4.0. Imported SDK documents: Apache-2.0 as marked.