@ahoo-wang/wow-client symbol index
Every name @ahoo-wang/wow-client exports — 122 — with its kind and the first sentence of its TSDoc, generated from the built declarations. 0 of them are described by hand in the curated pages, linked in the last column; the rest are read from their source through the signature in the API report. This index is English only.
| Symbol | Kind | Summary | Covered in |
|---|---|---|---|
AccessAttributeManifest | interface | An access attribute of an aggregate: its name, the type of its values, and whether it holds several. | — |
AccessField | type | The access.<name> field paths of the access attributes A. | — |
AccessValue | type | An access attribute's value as a record carries it: a single attribute's value or null, a multiple one's values, distinct and sorted. | — |
AccessValues | type | A record's access attributes by name, as the aggregate declares them (@Access on its state, the Manifest's access): a generated client types them as an <Aggregate>Access interface instead. | — |
AggregateManifest | interface | An aggregate type: its state, snapshots, commands, events and query models. | — |
AggregateRef | interface | One aggregate: its type, its tenant and its id. | — |
AggregateTextNumbers | interface | The numbers of an aggregate type kept as their exact text (TextNumbers). | — |
AggregateType | interface | An aggregate type: its bounded context and its name. | — |
CommandClient | class | Sends commands to the command routes of a Wow service as its Manifest lists them (POST /{context}/{aggregate}/{id}/{command}, the route without {id} for a request that names none, DELETE /{context}/{aggregate}/{id} for DeleteAggregate): the Manifest the client is given, else the service's, fetched once (GET /wow/manifest). | — |
CommandClientOptions | interface | How a CommandClient sends, beside how it reaches the service. | — |
CommandManifest | interface | A command of an aggregate or a context, and the routes that send it. | — |
CommandOptions | type | The options of a generated client's command method: a CommandRequest without what the method fixes, its command, body and type. | — |
CommandRef | interface | The aggregate a command names: an AggregateRef whose id is null while admission has not chosen it, as for a creation that leaves its id to the server and was refused before one was chosen. | — |
CommandRejectedError | class | The command was rejected: its result's status is rejected, decided by its aggregate (a business outcome with the domain's code) or at admission (an unknown command, an invalid one, a caller the authorizer forbids). | — |
CommandRequest | interface | One command a CommandClient sends, and how: the TypeScript CommandRequest of Kotlin's me.ahoo.wow.api.client, with the same fields. | — |
CommandResult | interface | The one outward result of a command: what it reached at one hop of its wait chain. | — |
CommandResultStatus | type, const | A CommandResultStatus value. | — |
CommandResultStream | type | The results of a command's event stream (Accept: text/event-stream), one per hop, each event named by its stage. | — |
CommitView | interface | One commit of a state trace: the events of a version and the aggregate after it. | — |
CommittedEvent | interface | An event as Wow reads it now: under its current name, upgraded to its latest revision. | — |
ContextManifest | interface | A bounded context: its aggregates, subscriptions, published streams, error codes and job commands. | — |
CreateCommandOptions | interface | The options of a command that may create its aggregate, with its id or not. | — |
Creation | type | Whether a command creates its aggregate. | — |
DatasetClient | class | The datasets of a Wow service: registered at run time, so not in the Manifest. | — |
DatasetEntry | interface | One dataset of GET /wow/dataset. | — |
DevelopmentCaller | interface | Who a request comes from, as a development run of a Wow service reads it (DevelopmentCallerHeaders). | — |
DevelopmentCallerHeaders | const | The identity headers a development run of a Wow service reads the caller from (the host's development callers, in a profile of wow.dev-profiles, when CoSec is off): any client can set them, so a deployment never reads them. | — |
ErrorInfo | interface | Why a command was rejected or failed. | — |
ErrorManifest | interface | An error code, the HTTP status it is answered with, and what a retry may do. | — |
EventManifest | interface | An event of an aggregate and its revision. | — |
EventQueryClient | class | Queries an aggregate type's event streams on the same engine as its snapshots: one record per commit, count counts commits, a condition on an event is an elementMatch on events, and per-event analytics expand events in an aggregation (elements). | — |
EventStream | interface | A record of the events query model: one commit of one aggregate and its events. | — |
EventStreamField | type | The fields of an event stream record a query names: its system fields, access and its built-in owner and space (a declared attribute is an AccessField), and events, the array an elementMatch filter and an aggregation's elements reach an event through, by the event's own name, revision and body.*. | — |
FrameworkErrorCode | type | A FrameworkErrorCodes value. | — |
FrameworkErrorCodes | const | The framework's error codes, each answered with the status of the error catalog. | — |
FunctionInfo | interface | Who produced a result: a function of kind in context. | — |
FunctionKind | type, const | A FunctionKind value. | — |
FunctionManifest | interface | The handler function of a subscription. | — |
Hop | interface, const | One hop of a wait chain: a stage, in a context (the command's own when absent), of a subscription when the stage is handled. | — |
Including | type | A query whose projection includes the literal paths INCLUDE: a query client narrows its records to them (Projected). | — |
JobManifest | interface | The scheduled job a subscription runs. | — |
LifecycleCommand | type | A LifecycleCommands value. | — |
LifecycleCommands | const | The lifecycle commands an aggregate may list. | — |
MANIFEST_FEATURES | const | The markers of a requires this client understands, on the Manifest, a context or an aggregate, as the Kotlin reader's ManifestFeatures: none yet. | — |
MANIFEST_FORMAT | const | The format of the Manifest this client reads. | — |
Manifest | interface | A service's Manifest, or a module's fragment (without service), format 1. | — |
NoAccess | type | The access attributes of an aggregate that declares none: a record's access is then empty, and a query names no access.<name>. | — |
Operator | interface | Who sent a command: the opaque id of the authenticated subject, its own tenant, and whether it acted in another tenant or scope. | — |
OwnStateClient | class | Reads the states of an aggregate type whose id is its owner's (@AggregateRoot(idSource = OWNER), the Manifest's idSource: "owner"): by id as StateClient does, for a caller with no owner, and the caller's own by no id, GET /{context}/{aggregate}/state and …/state/trace, its id the owner the caller reads as. | — |
OwnerTransferred | interface | The body of wow.lifecycle.OwnerTransferred: the aggregate's new owner. | — |
Ownership | type | How an aggregate belongs to its callers. | — |
Positioned | interface | One row of a streamed list, with its position. | — |
Problem | interface | An RFC 9457 problem as a Wow service writes it: type is urn:wow:error:<code>, or about:blank for an error that is only HTTP's (a missing route, 406, 415). | — |
PublishedManifest | interface | A stream a context publishes of an aggregate's events, and its topic. | — |
QUERYABLE_SUBSCRIPTION | const | The name a queryable hop gives the snapshot subscription of the store an aggregate type's snapshot queries read: its copy's where it has one, else its own store's, as snapshot is. | — |
QueryManifest | interface | A query model of an aggregate (snapshot, events) and its routes. | — |
QueryModelClient | class | Queries one query model of a Wow service: POST {path} with a body whose kind names the operation, GET {path} for the capability descriptor. | — |
RefusedResult | interface | A result that may not have succeeded, as a rejection or a problem carries it (CommandRejectedError.result, WowProblemError.result): a command refused before an aggregate id was decided names none (CommandRef). | — |
RequestOptions | interface | What every request may carry beside its own parameters. | — |
RetryAdvice | type | What a retry of a request answered with an error may do, as the error catalog declares it for the error's code and every problem carries it (retry): none, a retry fails alike; same-request, send it again with the same request id (Wow-Request-Id), so a command that did commit is answered as its duplicate; new-request, send it again as it is. | — |
RetryManifest | interface | A subscription's retry budget. | — |
RouteManifest | interface | A route of the edge: a method and a path, {id} the aggregate id. | — |
RouteParameterManifest | interface | A path variable or query parameter of a service route, and its scalar schema. | — |
RoutingCommand | type | A command as a RoutingManifest lists it: its name, former names and routes, and the property of its body that names its aggregate, for a command whose body does (idProperty). | — |
RoutingManifest | interface | What a CommandClient reads of a Manifest to send a command: each context's aggregates and their commands with their routes, and the context's own system commands; and what a ServiceRoutes reads to call a service route: the context's routes. | — |
RoutingServiceRoute | type | A service route as a RoutingManifest lists it: its name and its route. | — |
SNAPSHOT_SUBSCRIPTION | const | The name of the built-in subscription that writes snapshots. | — |
ScheduleCancelled | interface | The body of wow.schedule.ScheduleCancelled. | — |
ScheduleRule | interface | A schedule rule of a snapshot's schedules. | — |
ScheduleSet | interface | The body of wow.schedule.ScheduleSet: the aggregate set its schedule key, to send target the command of type commandType (command its body, a JSON object) as rule says. | — |
Scope | interface | The owner and the space an aggregate belongs to, beside its tenant. | — |
ServiceManifest | interface | The service a merged Manifest describes; a fragment has none. | — |
ServiceRouteManifest | interface | A service route: a route whose handler is the service's own code, its parameters and schemas. | — |
Snapshot | interface | An aggregate's latest committed state, as a record of the snapshot query model and as GET /{context}/{aggregate}/{id}/state answer it: the aggregate's system fields and its state. | — |
SnapshotManifest | interface | Whether an aggregate keeps snapshots, and the revision of their state. | — |
SnapshotQueryClient | class | Queries an aggregate type's snapshots, the default read model; only where the aggregate keeps them. | — |
SnapshotSystemField | type | The system fields of a snapshot record a query can filter, sort and project on; a state field is state.<path>. | — |
SourceManifest | interface | What a subscription reads: a context, aggregate types and events. | — |
SpaceTransferred | interface | The body of wow.lifecycle.SpaceTransferred: the aggregate's new space. | — |
Stage | type, const | A Stage value. | — |
StateClient | class | Reads an aggregate type's states: GET /{context}/{aggregate}/{id}/state with ?version=, ?at= or ?minVersion=, and its trace, …/state/trace; OwnStateClient reads the caller's own of a type whose id is its owner's. | — |
StateManifest | interface | An aggregate's state: its schema and the fingerprint of its shape. | — |
StateReadOptions | type | Which state a read asks for, one way at most: the latest; the committed state at a version; the committed state as of a time, at; or the latest at minVersion or later. | — |
StateReadResult | type | A state read: the snapshot and its entity tag, or notModified when the state held is current, with its tag and the version the tag names. | — |
StateTrace | interface | What GET /{context}/{aggregate}/{id}/state/trace answers: the aggregate and its commits in version order. | — |
StateTraceOptions | interface | Which commits a trace reads. | — |
StreamAccess | type | The access of an event stream: the aggregate's current owner and space beside its declared access attributes A. | — |
StreamOptions | interface | How a list is streamed: the request's options, and how it resumes. | — |
StreamResumeOptions | interface | How a streamed list resumes. | — |
SubscriptionManifest | interface | A subscription of a bounded context: what it reads and what its handler derives. | — |
SystemEvent | type | The system events the kernel gives every aggregate: the lifecycle events and the schedule events. | — |
TargetScope | interface | The scope a caller allowed to act across scopes acts in: the Wow-Scope header. | — |
TextNumbers | type | Which numbers of a JSON value a client reads and writes as their exact text: an int64, bigint or decimal field of a Manifest, which JavaScript's number would round. | — |
TextNumbersByName | interface | The marks of an object chosen by the value of one of its members: textNumbersBy. | — |
TextNumbersOr | interface | A number read exactly, or an object or array marked as given: textNumbersOr. | — |
TransferOwner | interface | The body of wow.lifecycle.TransferOwner. | — |
TransferSpace | interface | The body of wow.lifecycle.TransferSpace. | — |
TransformedFrom | interface | The command a request named before a transformer turned it into the one that ran. | — |
Violation | interface | Why a request broke a rule, one field or part at a time: a command's body that failed its validation, or a query the server refused (QueryViolation narrows its code). | — |
WaitPlan | class | How far a command is waited for, and for how long: the hops, in order, and a timeout in milliseconds. | — |
WowClientOptions | interface | How a client reaches its service. | — |
WowHeaders | const | The request headers of a Wow service's public port. | — |
WowProblemError | class | A request a Wow service answered with a problem: a non-2xx response, a command result that did not succeed, or the error event that ends a streamed query. | — |
developmentCaller | function | A request interceptor that sends every request as caller, by the headers a development run reads (developmentCallerHeaders): a fetcher that uses it asks as that caller, as a host's CoSec interceptors send its token. | — |
developmentCallerHeaders | function | The headers that name caller to a development run: only those it sets. | — |
fetchManifest | function | The service's Manifest, GET /wow/manifest, authorized as any API. | — |
formatHop | function | A hop as Wow-Wait spells it: accepted, committed, snapshot, queryable and handled(subscription), each with its context when it has one: committed(ctx), snapshot(ctx), queryable(ctx), handled(ctx/subscription). | — |
formatScope | function | A target scope as the Wow-Scope header spells it, an RFC 8941 dictionary: tenant="t1", owner="u1", space="s1". | — |
formatWaitPlan | function | A wait plan as the Wow-Wait header spells it: its hops, in order, separated by >; the inverse of parseWaitPlan. | — |
formatWaitTimeout | function | A wait timeout as the Wow-Wait-Timeout header spells it: milliseconds as <n>s when whole seconds, else <n>ms. | — |
isProblem | function | Whether value reads as a problem: an object with a numeric status. | — |
newRequestId | function | A new request id (Wow-Request-Id): a UUIDv7 (RFC 9562), the Unix milliseconds it was made in, then random bits. | — |
parseHop | function | The hop one part of a Wow-Wait value spells; see parseWaitPlan: a keyword of ASCII letters, then, after optional white space, an argument in parentheses that holds none, white space around it ignored. | — |
parseJson | function | text read as JSON.parse reads it, but each number marks marks comes back as its exact text, a string. | — |
parseWaitPlan | function | The plan a Wow-Wait value spells, as the service reads it: hops separated by >, each accepted, committed, snapshot, queryable or handled(subscription), with its context in parentheses (committed(ctx), handled(ctx/subscription)); the inverse of formatWaitPlan. | — |
readProblem | function | The problem a response that did not succeed carries: its body when it is a problem (or a code the type names), else one made of its status. | — |
requestIdOf | function | The request id (Wow-Request-Id) a command that failed with error was sent with: also after a failure no server answered (the network, a proxy, an abort), so the command can be retried with the same id and the service answers a commit that did happen as a duplicate. | — |
retryOf | function | What a retry of problem may do: its retry member, which every problem a Wow service writes carries, when it is one this client knows (a value a newer service added is read as absent, as the Kotlin client reads it); else the error catalog's for its code; else, for a body that is no Wow problem, same-request when it is a proxy's 503 or 429, which nothing behind it handled, or a gateway's 502 or 504: the gateway does not say whether the node behind it took the command and committed it, and the same request id is safe either way, a command that did commit answered as the duplicate it is. | — |
stringifyJson | function | value written as JSON.stringify writes it, but each string marks marks goes on the wire as the JSON number it spells, unquoted: {"price": "19.99"} marked {price: true} is {"price":19.99}. | — |
textNumbersBy | function | The marks of an object chosen by the string value of its member discriminant: textNumbersBy('name', { 'shop.cart.ItemAdded': { body: { price: true } } }) reads an event by its name. | — |
textNumbersOr | function | The marks of a value that is either an exact number or an object or array marked marks: textNumbersOr({ amount: true }) reads 12.50 and { "amount": 12.50 } both as their text. | — |
toWowProblemError | function | The WowProblemError of an error a request rejected with: the fetcher's ExchangeError of a response that is not 2xx, read as a problem. | — |