Skip to content

Definitions ​

Publish typed definitions into registries and resolve the definitions visible to a consumer. Definitions are data; registering one does not make arbitrary launcher code execute it.

Contract: nexa.definitions/100. API index.

Typical sequence ​

Discover the registry and its accepted schema first. Register owned values during staging, and use the returned identity and revision for later updates. Tags and overlays affect resolution according to the registry contract.

Behavior and limits ​

Use ExplainResolution when an overlay or tag produces an unexpected result. Keep a failed resolution distinct from a valid empty result; remove only definitions owned by the current load.

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 ​

ListRegistries · DescribeRegistry · DefineRegistry · Register · RegisterBatch · Get · Query · Watch · UpdateOwned · RemoveOwned · RegisterTag · ResolveTag · PreviewOverlay · RegisterOverlay · ExplainResolution

ListRegistries ​

PageRequest → Page<RegistryDescriptor> (wrapper, item)

PropertyContract
Local SDK method ID1
KindQuery
Permissionnexa.definitions.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_Definitions_ListRegistries(&reply, request, &options);

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

DescribeRegistry ​

QualifiedRequest → RegistryDescriptor

PropertyContract
Local SDK method ID2
KindQuery
Permissionnexa.definitions.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.

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_Definitions_DescribeRegistry(&reply, request, &options);

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

DefineRegistry ​

RegistryDescriptor → RegistrationRef

PropertyContract
Local SDK method ID3
KindRegistration
Permissionnexa.definitions.write
Legal phasesInitialize
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.
SchemaSchemaRefExact schema identity, version and fingerprint used to validate Value.
EntryIdentitystringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ReferenceTypesQualifiedId[]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.
MergePolicyMergePolicyUse an exact enum member listed in the reference. The Host can support a subset for a particular operation.
OrderingPolicyOrderingPolicyUse an exact enum member listed in the reference. The Host can support a subset for a particular operation.
ActivationActivationPolicyUse an exact enum member listed in the reference. The Host can support a subset for a particular operation.
OwnershipOwnershipPolicyUse an exact enum member listed in the reference. The Host can support a subset for a particular operation.
SupportedOperationsstring[]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.
ValidationRulesQualifiedId[]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.
ConsumerQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
DeletionDeletionPolicyUse an exact enum member listed in the reference. The Host can support a subset for a particular operation.
MergeContractQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.

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_Definitions_DefineRegistry(&reply, request, &options);

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

Register ​

Definition → RegistrationRef

PropertyContract
Local SDK method ID4
KindRegistration
Permissionnexa.definitions.write
Legal phasesInitialize
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.
RegistryQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
SchemaSchemaRefExact schema identity, version and fingerprint used to validate Value.
BodyAbiValueDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ReferencesReference[]Structured Reference 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. Preserve structured errors; see recovery guidance.

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

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

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

RegisterBatch ​

DefinitionBatch → Page<RegistrationRef> (wrapper, item)

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

Request fields

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

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. 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_Definitions_RegisterBatch(&reply, request, &options);

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

Get ​

DefinitionQuery → Snapshot<Definition> (wrapper, item)

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

Request fields

FieldTypeMeaning
RegistryQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.

Successful result

Read Value together with Revision, SchemaVersion and ObservedAt. Preserve the revision for conditional changes and observation time for freshness.

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_Definitions_Get(&reply, request, &options);

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

Query ​

DefinitionSearch → Page<Definition> (wrapper, item)

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

Request fields

FieldTypeMeaning
RegistryQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
TagsQualifiedId[]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.
PagePageRequestStructured PageRequest value; follow its linked field contract.

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_Definitions_Query(&reply, request, &options);

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

Watch ​

QualifiedRequest → SubscriptionRef

PropertyContract
Local SDK method ID8
KindSubscription
Permissionnexa.definitions.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.

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_Definitions_Watch(&reply, request, &options);

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

UpdateOwned ​

DefinitionUpdate → RegistrationRef

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

Request fields

FieldTypeMeaning
DefinitionDefinitionStructured Definition value; follow its linked field contract.
ExpectedRevisionRevisionRevision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target.

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_Definitions_UpdateOwned(&reply, request, &options);

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

RemoveOwned ​

DefinitionRemove → Empty

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

Request fields

FieldTypeMeaning
RegistryQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
ExpectedRevisionRevisionRevision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target.

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_Definitions_RemoveOwned(&reply, request, &options);

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

RegisterTag ​

TagDefinition → RegistrationRef

PropertyContract
Local SDK method ID11
KindRegistration
Permissionnexa.definitions.write
Legal phasesInitialize
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.
RegistryQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
AddQualifiedId[]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.
RemoveQualifiedId[]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.
IncludeQualifiedId[]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_Definitions_RegisterTag(&reply, request, &options);

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

ResolveTag ​

QualifiedRequest → TagResolution

PropertyContract
Local SDK method ID12
KindQuery
Permissionnexa.definitions.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.

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_Definitions_ResolveTag(&reply, request, &options);

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

PreviewOverlay ​

OverlayDefinition → MutationPlan

PropertyContract
Local SDK method ID13
KindQuery
Permissionnexa.definitions.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.
TargetQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ModeMergePolicyUse an exact enum member listed in the reference. The Host can support a subset for a particular operation.
SchemaSchemaRefExact schema identity, version and fingerprint used to validate Value.
PatchAbiValueDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
BeforeQualifiedId[]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.
AfterQualifiedId[]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 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_Definitions_PreviewOverlay(&reply, request, &options);

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

RegisterOverlay ​

OverlayDefinition → RegistrationRef

PropertyContract
Local SDK method ID14
KindRegistration
Permissionnexa.definitions.write
Legal phasesInitialize
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.
TargetQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ModeMergePolicyUse an exact enum member listed in the reference. The Host can support a subset for a particular operation.
SchemaSchemaRefExact schema identity, version and fingerprint used to validate Value.
PatchAbiValueDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
BeforeQualifiedId[]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.
AfterQualifiedId[]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_Definitions_RegisterOverlay(&reply, request, &options);

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

ExplainResolution ​

QualifiedRequest → ResolutionReport

PropertyContract
Local SDK method ID15
KindQuery
Permissionnexa.definitions.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.

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_Definitions_ExplainResolution(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Definitions_ExplainResolution_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.