Skip to content

Accounts ​

Read public account information and request account workflows without exposing credentials. Authentication tokens and launch credentials are not ordinary account metadata.

Contract: nexa.accounts/100. API index.

Typical sequence ​

Begin sign-in, present its challenge through the supported user flow, then continue or cancel with the returned identity. Check launch eligibility before requesting a scoped launch grant.

Behavior and limits ​

Public reads do not authorize token extraction. Sign-out and custom account providers remain unmapped where listed. A cancelled challenge is not a successful sign-in.

The recorded Host maps 17 of 17 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 ​

List · ReadPublic · Watch · Select · BeginSignIn · ContinueSignIn · CancelSignIn · Refresh · SignOut · Remove · ReadLaunchEligibility · RequestLaunchGrant · ReadWardrobe · PreviewSkin · UploadSkin · SetCape · RegisterProvider

List ​

PageRequest → Page<AccountPublic> (wrapper, item)

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

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

ReadPublic ​

EntityRequest → AccountPublic

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

Only public metadata is returned. Account tokens and credentials are not made available by this method or by a successful read permission check.

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

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

Watch ​

WatchRequest → SubscriptionRef

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

Request fields

FieldTypeMeaning
TargetEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
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.
SchemaSchemaRefExact schema identity, version and fingerprint used to validate Value.

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

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

Select ​

EntityRequest → AccountPublic

PropertyContract
Local SDK method ID4
KindMutation
Permissionnexa.accounts.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_Accounts_Select(&reply, request, &options);

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

BeginSignIn ​

SignInRequest → SignInChallenge

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

Request fields

FieldTypeMeaning
ProviderQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ScopestringExplicit target scope. The Host checks that the caller is authorized for it.

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

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

ContinueSignIn ​

SignInContinue → SignInChallenge

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

Request fields

FieldTypeMeaning
FlowEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ResponseAbiValueDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
SchemaSchemaRefExact schema identity, version and fingerprint used to validate Value.

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

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

CancelSignIn ​

EntityRequest → Empty

PropertyContract
Local SDK method ID7
KindMutation
Permissionnexa.accounts.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

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

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

Refresh ​

EntityRequest → OperationRef

PropertyContract
Local SDK method ID8
KindOperation
Permissionnexa.accounts.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

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

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

SignOut ​

EntityRequest → Empty

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

Ask the Host to clear persisted access, refresh and provider credentials from the selected account record while retaining public profile metadata. The account owner checks roster CAS, advances credential generations, retires verified launch identities and clears selection if needed. Re-read Accounts.List afterward because account handles include the roster revision. This is local sign-out, not remote token revocation.

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

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

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

Remove ​

EntityRequest → Empty

PropertyContract
Local SDK method ID10
KindMutation
Permissionnexa.accounts.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

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

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

ReadLaunchEligibility ​

EntityRequest → LaunchEligibility

PropertyContract
Local SDK method ID11
KindQuery
Permissionnexa.accounts.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
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. 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_Accounts_ReadLaunchEligibility(&reply, request, &options);

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

RequestLaunchGrant ​

GrantRequest → LaunchGrant

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

Request fields

FieldTypeMeaning
AccountEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
InstanceEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.

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

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

ReadWardrobe ​

EntityRequest → Wardrobe

PropertyContract
Local SDK method ID13
KindQuery
Permissionnexa.accounts.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
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. 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_Accounts_ReadWardrobe(&reply, request, &options);

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

PreviewSkin ​

SkinRequest → BlobRef

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

Request fields

FieldTypeMeaning
AccountEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ImageBlobRefStructured BlobRef value; follow its linked field contract.
ModelstringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

The Host retains bytes under an opaque, owned blob handle. It is not the bytes themselves and is not portable across loads.

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

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

UploadSkin ​

SkinRequest → OperationRef

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

Request fields

FieldTypeMeaning
AccountEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ImageBlobRefStructured BlobRef value; follow its linked field contract.
ModelstringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

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

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

SetCape ​

CapeSelection → OperationRef

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

Request fields

FieldTypeMeaning
AccountEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
CapeIdstring?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_Accounts_SetCape(&reply, request, &options);

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

RegisterProvider ​

ProviderDescriptor → RegistrationRef

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

Register kind nexa:accounts/authentication with ResolveSignIn: SignInRequest → AccountProviderConfiguration. The supported protocols are yggdrasil and nide8 with an HTTPS auth server. BeginSignIn resolves this configuration and uses the existing Host onboarding flow. Credentials and tokens remain with that owner; callbacks cannot replace the resolved server during ContinueSignIn. Arbitrary OAuth implementations are outside this provider table.

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.
KindQualifiedIdHost-supported provider family. Registration succeeds only for a mapped family.
ContractVersionulongProvider contract version; current catalog read-provider callbacks use 100.
SchemaHashstringDigest of the provider callback envelope schema; current catalog read providers use BusinessProviderCall.
DisplayNameLocalizedTextUser-facing localized label; it is not an authority-bearing identity.
Capabilitiesstring[]Exact capabilities advertised or required by this descriptor, subject to the Host’s accepted table. A bounded collection; do not assume an unbounded result or unspecified ordering.
SupportedScopesstring[]Scopes the provider declares it can handle; declaration does not authorize every target. A bounded collection; do not assume an unbounded result or unspecified ordering.
SelectionSelectionPolicySelection rule; the current catalog callback boundary supports ExplicitRequest.
ConcurrencyConcurrencyPolicyDeclared execution policy. A provider family may reject enum members whose semantics it does not implement.
DeadlineMillisecondslongRequested deadline in milliseconds; queue time consumes this budget and caller deadlines can shorten it.
FailurePolicyProviderFailurePolicyHow this provider family reports callback failures; it does not automatically make retries safe.
ConfigurationSchemaRefSchema for provider configuration, not arbitrary executable Host configuration.
HandlerulongCallback identifier registered by this plugin. A handler alone is not a public action or provider registration.

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

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