本页为英文技术参考;字段、编号与支持状态直接来自同一契约源。中文学习路线见 开发文档。
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)
| Property | Contract |
|---|---|
| Local SDK method ID | 1 |
| Kind | Query |
| Permission | nexa.accounts.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_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
| Property | Contract |
|---|---|
| Local SDK method ID | 2 |
| Kind | Query |
| Permission | nexa.accounts.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped 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
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | 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_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
| Property | Contract |
|---|---|
| Local SDK method ID | 3 |
| Kind | Subscription |
| Permission | nexa.accounts.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Target | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
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. |
Schema | SchemaRef | Exact 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 4 |
| Kind | Mutation |
| Permission | nexa.accounts.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | 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. 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_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
| Property | Contract |
|---|---|
| Local SDK method ID | 5 |
| Kind | Operation |
| Permission | nexa.accounts.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Provider | QualifiedId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Scope | string | Explicit 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 6 |
| Kind | Operation |
| Permission | nexa.accounts.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Flow | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Response | AbiValue | Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. |
Schema | SchemaRef | Exact 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 7 |
| Kind | Mutation |
| Permission | nexa.accounts.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | Identity 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 8 |
| Kind | Operation |
| Permission | nexa.accounts.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | Identity 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 9 |
| Kind | Mutation |
| Permission | nexa.accounts.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped 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
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | Identity 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 10 |
| Kind | Mutation |
| Permission | nexa.accounts.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | Identity 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 11 |
| Kind | Query |
| Permission | nexa.accounts.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | 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_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
| Property | Contract |
|---|---|
| Local SDK method ID | 12 |
| Kind | Operation |
| Permission | nexa.accounts.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Account | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Instance | EntityId | Identity 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 13 |
| Kind | Query |
| Permission | nexa.accounts.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Id | EntityId | 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_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
| Property | Contract |
|---|---|
| Local SDK method ID | 14 |
| Kind | Query |
| Permission | nexa.accounts.read |
| Legal phases | Initialize, PostInitialize, Checkup, Finalize, Active |
| Idempotency | ReadOnly |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Account | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Image | BlobRef | Structured BlobRef value; follow its linked field contract. |
Model | string | Domain 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 15 |
| Kind | Operation |
| Permission | nexa.accounts.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Account | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
Image | BlobRef | Structured BlobRef value; follow its linked field contract. |
Model | string | Domain 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 16 |
| Kind | Operation |
| Permission | nexa.accounts.write |
| Legal phases | Active |
| Idempotency | RequiredKey |
| Host status | Mapped in recorded snapshot |
Request fields
| Field | Type | Meaning |
|---|---|---|
Account | EntityId | Identity or revision in this model’s domain; preserve ownership and exact spelling. |
CapeId | string? | 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):
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
| Property | Contract |
|---|---|
| Local SDK method ID | 17 |
| Kind | Registration |
| Permission | nexa.accounts.write |
| Legal phases | Initialize |
| Idempotency | RequiredKey |
| Host status | Mapped 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
| 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. |
Kind | QualifiedId | Host-supported provider family. Registration succeeds only for a mapped family. |
ContractVersion | ulong | Provider contract version; current catalog read-provider callbacks use 100. |
SchemaHash | string | Digest of the provider callback envelope schema; current catalog read providers use BusinessProviderCall. |
DisplayName | LocalizedText | User-facing localized label; it is not an authority-bearing identity. |
Capabilities | string[] | 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. |
SupportedScopes | string[] | 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. |
Selection | SelectionPolicy | Selection rule; the current catalog callback boundary supports ExplicitRequest. |
Concurrency | ConcurrencyPolicy | Declared execution policy. A provider family may reject enum members whose semantics it does not implement. |
DeadlineMilliseconds | long | Requested deadline in milliseconds; queue time consumes this budget and caller deadlines can shorten it. |
FailurePolicy | ProviderFailurePolicy | How this provider family reports callback failures; it does not automatically make retries safe. |
Configuration | SchemaRef | Schema for provider configuration, not arbitrary executable Host configuration. |
Handler | ulong | Callback 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):
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.
来源: NexaCL-Plugin-SDK · Apache-2.0.