Skip to content

js-bao-wss-client


js-bao-wss-client / ResourceMetadataResolveResult

Type Alias: ResourceMetadataResolveResult ​

ResourceMetadataResolveResult = { resourceId: string; resourceType: string; } | { resourceId: null; }

Result of resourceMetadata.resolve — a discriminated union on whether resourceId is null. A hit carries the owning resource; a miss carries resourceId: null and no resourceType. A value the caller is not permitted to resolve (the category's readRule denies reading the resource it points at) returns the miss shape as well, so the two cannot be told apart.

Union Members ​

Type Literal ​

{ resourceId: string; resourceType: string; }

resourceId ​

resourceId: string

ID of the resource that owns the value.

resourceType ​

resourceType: string

Type of the resource that owns the value.


Type Literal ​

{ resourceId: null; }

resourceId ​

resourceId: null

No readable resource owns this value.

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30