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)
| Property | Contract |
|---|---|
| Local SDK method ID | 1 |
| Kind | Query |
| Permission | nexa.definitions.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Cursor | string? | 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. |
Limit | long | Requested 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 2 |
| Kind | Query |
| Permission | nexa.definitions.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | QualifiedId | Identity 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 3 |
| Kind | Registration |
| Permission | nexa.definitions.write |
| Legal phases | Initialize |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | QualifiedId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Schema | SchemaRef | Exact schema identity, version and fingerprint used to validate Value. |
EntryIdentity | string | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. |
ReferenceTypes | QualifiedId[] | 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. |
MergePolicy | MergePolicy | Use an exact enum member listed in the reference. The Host can support a subset for a particular operation. |
OrderingPolicy | OrderingPolicy | Use an exact enum member listed in the reference. The Host can support a subset for a particular operation. |
Activation | ActivationPolicy | Use an exact enum member listed in the reference. The Host can support a subset for a particular operation. |
Ownership | OwnershipPolicy | Use an exact enum member listed in the reference. The Host can support a subset for a particular operation. |
SupportedOperations | string[] | 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. |
ValidationRules | QualifiedId[] | 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. |
Consumer | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Deletion | DeletionPolicy | Use an exact enum member listed in the reference. The Host can support a subset for a particular operation. |
MergeContract | QualifiedId | Identity 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 4 |
| Kind | Registration |
| Permission | nexa.definitions.write |
| Legal phases | Initialize |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | QualifiedId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Registry | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Schema | SchemaRef | Exact schema identity, version and fingerprint used to validate Value. |
Body | AbiValue | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. |
References | Reference[] | 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):
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)
| Property | Contract |
|---|---|
| Local SDK method ID | 5 |
| Kind | Registration |
| Permission | nexa.definitions.write |
| Legal phases | Initialize |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Definitions | Definition[] | 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):
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)
| Property | Contract |
|---|---|
| Local SDK method ID | 6 |
| Kind | Query |
| Permission | nexa.definitions.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Registry | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Id | QualifiedId | Identity 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):
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)
| Property | Contract |
|---|---|
| Local SDK method ID | 7 |
| Kind | Query |
| Permission | nexa.definitions.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Registry | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Tags | QualifiedId[] | 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. |
Page | PageRequest | Structured 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 8 |
| Kind | Subscription |
| Permission | nexa.definitions.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | QualifiedId | Identity 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 9 |
| Kind | Mutation |
| Permission | nexa.definitions.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Definition | Definition | Structured Definition value; follow its linked field contract. |
ExpectedRevision | Revision | Revision 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 10 |
| Kind | Mutation |
| Permission | nexa.definitions.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Registry | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Id | QualifiedId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
ExpectedRevision | Revision | Revision 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 11 |
| Kind | Registration |
| Permission | nexa.definitions.write |
| Legal phases | Initialize |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | QualifiedId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Registry | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Add | QualifiedId[] | 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. |
Remove | QualifiedId[] | 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. |
Include | QualifiedId[] | 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 12 |
| Kind | Query |
| Permission | nexa.definitions.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | QualifiedId | Identity 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 13 |
| Kind | Query |
| Permission | nexa.definitions.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | QualifiedId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Target | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Mode | MergePolicy | Use an exact enum member listed in the reference. The Host can support a subset for a particular operation. |
Schema | SchemaRef | Exact schema identity, version and fingerprint used to validate Value. |
Patch | AbiValue | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. |
Before | QualifiedId[] | 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. |
After | QualifiedId[] | 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 14 |
| Kind | Registration |
| Permission | nexa.definitions.write |
| Legal phases | Initialize |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | QualifiedId | Identity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path. |
Target | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Mode | MergePolicy | Use an exact enum member listed in the reference. The Host can support a subset for a particular operation. |
Schema | SchemaRef | Exact schema identity, version and fingerprint used to validate Value. |
Patch | AbiValue | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. |
Before | QualifiedId[] | 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. |
After | QualifiedId[] | 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 15 |
| Kind | Query |
| Permission | nexa.definitions.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | QualifiedId | Identity 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):
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.