mock
library
Classes
$AppFailure
Polymorphic application failure taxonomy (v8, ZFA-001).
$AsyncSlice <T >
A closed, generic async-load state for one domain slice (v8, ZFA-012).
$AsyncSliceFailed <T >
The load failed. staleData carries the last known value, when any, so a
view can keep rendering it through the error.
$AsyncSliceIdle <T >
The slice has not started loading. Holds no data.
$AsyncSliceLoading <T >
A load is in flight and no data is available yet.
$AsyncSliceReady <T >
Data is available. isRefreshing marks a background refresh that keeps
the current data visible while it runs.
$BoundaryViolationFailure
$CancelledFailure
$ConflictFailure
$CreateParams <T >
Parameters for creating a new entity of type T.
$Credentials
$DeleteParams <I extends Object >
Parameters for deleting an entity of type I.
$InitializationParams
Parameters for initializing a repository or data source.
$InterruptedFailure
$ListQueryParams <T >
Parameters for querying a list of entities.
$MockCorruptBoundaryScenario
The corrupt-boundary scenario: a raw payload is decoded through the
descriptor's fromWire trust boundary.
$MockCrashAfterScenario
The crash-after scenario: operations succeed for callsBeforeCrash calls,
then crash.
$MockFailingScenario
The failing scenario: operations fail with a domain error.
$MockNominalScenario
The nominal scenario: every operation against the backend succeeds.
$MockScenarioPolicy
The scenario a mock-first ZfaStore backend replays (v8, ZFA-014).
$NetworkFailure
$NotFoundFailure
$PolicyDeniedFailure
$QueryParams <T >
Parameters for querying a single entity by a field (usually ID or slug).
$Settings
$StorageFailure
$TimeoutFailure
$ToggleParams <I extends Object , F >
Parameters for toggling a boolean field of an entity.
$UnexpectedFailure
$UpdateParams <I , P >
Parameters for updating an entity.
AdapterSpec <T >
Configuration that specifies the generation of a TypeAdapter
AlwaysMatch <TEntity >
A filter that always evaluates to true.
And <TEntity >
Logical AND combining multiple filters
AnnotatedElement
ApiEndpoint
Immutable metadata for a single registered UseCase VM Service extension.
AppendExecutor
AppendRequest
AppendResult
AppendStrategy
AppFailure
AppFailureMockData
AppLocale
A BCP-47-ish locale tag (language-region).
AppRestartCachePolicy
App restart cache policy.
AppUpdatePort
The app-update contract.
AppUpdateService
App-facing update facade: check, gate, and launch.
ArgumentSpec
ArtifactContext
Rich context passed to every ArtifactHook when an artifact is published.
ArtifactHook
Base class for artifact hooks.
ArtifactPublisher
Global singleton manager for artifact hooks.
AstHelper
AstModifier
AstParseResult
ASTScanner
Scans a Dart project for all decorator annotations and produces
ScanResult s containing MethodAST + DecoratorAST pairs.
AsyncSlice <T >
AsyncSliceFailed <T >
AsyncSliceIdle <T >
AsyncSliceLoading <T >
AsyncSliceReady <T >
AuthDDAPlugin
DDA plugin that processes @RequiresAuth annotations on UseCase
classes or methods and generates security interceptor logic.
AuthGenerator
Generates lib/src/middleware/zfa_auth.g.dart from collected
@RequiresAuth annotation metadata.
Baseline
A historical benchmark result kept for comparison (FR-009).
BaselineStore
Persistent storage for historical benchmark results (FR-009).
BenchmarkComparison
The result of comparing current metrics against a baseline (AC-10).
BenchmarkContract
The contract between benchmark scenarios and the benchmark framework
(FR-001, FR-015).
BenchmarkDryRunResult
The outcome of a dry run (FR-012): validation only, no execution.
BenchmarkRegistry
Central registry for discovering and managing registered scenarios
(FR-002).
BenchmarkRegistryError
A registry failure: machine-readable code plus a human message.
BenchmarkResult
Structured output of one benchmark scenario execution (FR-004).
BenchmarkRunner
Orchestrates execution of benchmarks, collects metrics, evaluates
thresholds (FR-004).
BenchmarkRunnerConfig
Runner-level configuration.
BenchmarkScenario
Convenience base class for scenarios (SC-001 ergonomics).
BenchmarkSuiteResult
Aggregate outcome of a benchmark suite run (FR-008).
BidirectionalSyncStrategy <T >
Bidirectional synchronization strategy.
BinaryReader
The BinaryReader is used to bring data back from the binary format on the
disk.
BinaryWriter
The BinaryWriter is used to encode data to the binary format.
BiometricsPort
The biometrics contract.
BiometricsService
App-facing biometrics facade with a permission-free safety net.
BoundaryErr <T >
A failed boundary decode.
BoundaryOk <T >
A successful boundary decode carrying the value of type T.
BoundaryViolationFailure
BoundaryViolationFailureFields
Typed field descriptors over BoundaryViolationFailure — one
ZorphyField per payload field, inherited fields
included (issue #247).
BoundaryViolationFailureLenses
Typed lenses over BoundaryViolationFailure — one per writable field.
BoundaryViolationFailureMockData
BoundInvocation
The invocation passed to a DiBinding.boundHandler (FR-007).
Box <E >
Boxes contain all of your data. In the browser, each box has its own
IndexedDB database. On all other platforms, each Box is stored in a
separate file in the Hive home directory.
BoxBase <E >
Boxes contain all of your data. In the browser, each box has its own
IndexedDB database. On all other platforms, each Box is stored in a
seperate file in the Hive home directory.
BoxCollection
TODO: Document this!
BoxEvent
A event representing a change in a box.
BuildPipeline
Orchestrates the complete zfa build DDA pipeline.
BuildResult
BuiltInSessionPresets
Built-in session presets, instantiable with zero configuration
(spec FR-002 / SC-006): anonymous, authentication token, cookie,
header, OAuth, and API key.
Cacheable
Marks a repository or datasource method for auto-generated caching.
CacheAndPersistenceMiddleware <I , O extends ZorphyEntityBase <Object ? > >
Cached fetch middleware that resolves each dispatch through a
CachePolicy over a ZfaStore hydrated from a ZfaPersistenceAdapter
(v8, ZFA-010).
CacheBindingConfig
Configuration for cache binding generation.
CacheBindingPlugin
DDA plugin that detects @Cacheable on UseCase return types
and generates cache observer bindings in DomainState.
CacheDDAPlugin
DDA plugin that processes @Cacheable and @CacheInvalidate
annotations on repository/datasource methods and generates
caching wrapper logic.
CachedSchema
A cached schema artifact set: the introspection data, the parsed schema,
and the file locations it was loaded from.
CacheGenerator
Generates lib/src/cache/zfa_cache.g.dart from collected
@Cacheable and @CacheInvalidate annotation metadata.
CacheInvalidate
Marks a method as a cache invalidator.
CacheObserver
An observable cache that emits updates when entities change.
CachePolicy
Cache policy abstraction for determining cache validity.
CallbackObserver <T >
A simple Observer implementation using callbacks.
CancellationToken
Cooperative cancellation for the v8 chord runtime.
CancelledFailure
CancelledFailureFields
Typed field descriptors over CancelledFailure — one
ZorphyField per payload field, inherited fields
included (issue #247).
CancelledFailureLenses
Typed lenses over CancelledFailure — one per writable field.
CancelledFailureMockData
CancelToken
A token for cooperative cancellation of asynchronous operations.
CliApp
The standardized entry point for a Zuraffa CLI app (FR-001).
CliContract
The standardized CLI contract for Zuraffa apps.
CliExitCodes
The exit-code vocabulary for the standard CLI contract (FR-002, FR-009).
CliGlobalFlag
A global flag specification (FR-002).
CliGlobalFlags
The standard set of global flags every Zuraffa CLI app recognizes (FR-002).
CliInvocation
A parsed command invocation — what the handler receives (FR-003).
ClipboardPort
The clipboard contract.
ClipboardService
App-facing clipboard facade.
CliPlugin
Metadata for the native, built-in standard CLI plugin (FR-010).
CliProgressReporter
CodeBuilderFactory
CollectionBox <V >
represents a Box being part of a BoxCollection
CommandArgument
A positional argument declaration.
CommandFlag
A named flag declaration.
CommandRegistry
The shared command registry (FR-004, FR-005, FR-006).
CommandResult
The result of running a command (FR-001, FR-008).
CommonPatterns
CompletableUseCase <Params >
A UseCase that doesn't return a value.
CompositeScaffolder
CompositeScaffoldResult
Computed <T >
A lazy, cached derived value over explicitly declared ReadonlySignal
dependencies.
ConflictDetector
ConflictFailure
ConflictFailureFields
Typed field descriptors over ConflictFailure — one
ZorphyField per payload field, inherited fields
included (issue #247).
ConflictFailureLenses
Typed lenses over ConflictFailure — one per writable field.
ConflictFailureMockData
ConsoleExporter
Console exporter for development/debugging.
ConstructorParam
Contains <TEntity , TValue >
Contains filter (e.g., for strings or lists)
ContextStore
ControlledWidgetDetector
Detects usage of the legacy ControlledWidget base class.
CreateParams <T >
Credentials
CredentialsFields
Typed field descriptors over Credentials — one
ZorphyField per payload field, inherited fields
included (issue #247).
CredentialsLenses
Typed lenses over Credentials — one per writable field.
CredentialsMockData
CrossAppInvoker
Invokes another app's registered command by name through the registry
(FR-005).
DailyCachePolicy
Daily cache expiration policy.
DartTypeNamer
Datasource
Marks a class as a datasource implementation.
Deadline
An absolute point in time after which work should stop.
DecoratorAST
Represents a parsed decorator annotation found on a class, method,
or field declaration.
DecoratorDispatcher
Dispatches scanned decorator annotations to their registered plugins
and accumulates generated code into GenerationResult s.
DefaultBenchmarkRunner
The built-in BenchmarkRunner .
DefaultFileSystem
DeleteParams <I extends Object >
DependencyOverridesDetector
Detects dependency_overrides in pubspec.yaml that are v5-specific.
DependencyRequest
A request for a dependency, declared by a command's handler (FR-007).
DetectorResult
Result of running a single migration detector.
DeviceInfo
Immutable device/environment snapshot.
DevicePort
The device contract.
DeviceService
App-facing device facade.
DeviceStatus
Live connectivity + power reading.
DiBinding
Binds a SharedCommand 's handler to a host app's DiContainer (FR-007).
DiContainer
The DI container abstraction — apps implement this for their DI of choice
(GetIt, Provider, injectable, hand-rolled). The standard CLI plugin only
depends on this abstraction, never on a specific DI package.
DIGenerator
Generates lib/src/di/zuraffa_injection.g.dart from collected
@Datasource and @Repository metadata.
DIPlugin
DDA plugin that processes @Datasource and @Repository annotations
and accumulates DI registration metadata.
DisabledCachePolicy
A cache policy decorator that completely disables caching.
Disposable
If objects that are registered inside GetIt implements Disposable the
onDispose method will be called whenever that Object is unregistered,
reset or its enclosing Scope is popped
DocumentBuilder
Builds GraphQL query/mutation/subscription documents from schema metadata.
DomainState
Base class for auto-generated DomainState .
DtoGenerator
Generates DTO classes from GraphQL INPUT_OBJECT types.
DualLayerPresenter
A presenter that strictly separates DomainState (auto-generated,
immutable, regenerated) from ViewState (developer-editable, preserved).
DurationConverter
EntityGenerator
Generates zorphy entity classes from GraphQL OBJECT types.
EntitySpec
Specification for an entity derived from a GraphQL object type.
EnumSpec
Specification for an enum derived from a GraphQL enum type.
Eq <TEntity , TValue >
Equality filter (e.g., field == value)
ErrorMappingConfig
Configuration for mapping GraphQL union error variants to
Zuraffa's AppFailure taxonomy.
ErrorResult
Failed command execution.
ExponentialBackoffRetryPolicy
Exponential backoff retry policy — the OpenTelemetry standard convention.
ExportAppendStrategy
Failure <S , F >
Failure case of Result
FailureReport
A single failure report with context.
FailureReporter
Abstract contract for reporting failures to external systems.
FailureReporterRegistry
Global singleton registry for failure reporters.
FailureReportQueue
In-memory bounded queue that batches failure reports for delivery.
FailureReportStore
Persists failure reports to a JSON file on disk.
FeatureJournal
The whole canonical stream for one feature — everything JournalReader
hands a tool, so the tool never opens a journal file itself.
FetchStrategy <Input , Output >
Strategy interface for pluggable data-fetching pipelines.
Field <TEntity , TValue >
Represents a field in a Zorphy entity TEntity with value type TValue.
Used for type-safe query construction and runtime evaluation.
FieldSpec
Specification for a single field in an entity.
FieldViolation
A single field-level decode failure at a trust boundary.
FileGeneratorPlugin
A plugin that generates files.
FileOperation
FileParser
FileSystem
Filter <TEntity >
Base class for all filters
FilterConverter
Converter for ZorphyFilter .
FixedIntervalRetryPolicy
Fixed interval retry policy.
GenerateAdapters
Annotation to generate TypeAdapters for the given specs
GenerationContext
Encapsulates state and dependencies for a single generation session.
GenerationResult
Aggregated generation result for a single source file.
GenerationTransaction
Manages atomic file operations during generation.
GetIt
Very simple and easy to use service locator
You register your object creation factory or an instance of an object with registerFactory ,
registerSingleton or registerLazySingleton
And retrieve the desired object using get or call your locator as function as its a
callable class
Additionally GetIt offers asynchronous creation functions as well as functions to synchronize
the async initialization of multiple Singletons
GqlArgument
Represents a GraphQL field argument.
GqlConstStringDetector
Detects v5-style const-string GraphQL documents in Dart source files.
GqlEnumValue
Represents a GraphQL enum value.
GqlField
Represents a GraphQL field.
GqlMigrator
GqlSchema
Represents a complete GraphQL schema from introspection.
GqlTypeDef
Represents a GraphQL type definition.
GqlTypeRef
Represents a GraphQL type reference, which can be nested for NON_NULL/LIST wrappers.
GraphQLEntityEmitter
Emits Dart entity and enum files from GraphQL schema specifications.
GraphQLEnumType
Enum type.
GraphQLField
Field on an object/interface type.
GraphQLInputField
Input field (for input objects and field arguments).
GraphQLInputObjectType
Input object type (e.g. ProductListOptions).
GraphQLInterfaceType
Interface type.
GraphQLIntrospectionService
Service for fetching GraphQL schema via introspection.
GraphQLListType
List wrapper type.
GraphQLNonNullType
Non-null wrapper type.
GraphQLObjectType
Object type (e.g. Product, Order).
GraphQLScalarType
Scalar type (String, Int, Float, Boolean, ID, or custom).
GraphQLSchema
Parsed GraphQL schema with type lookup.
GraphQLSchemaTranslator
Translates GraphQL schema types to Dart-friendly specifications.
GraphQLType
Base class for all GraphQL types in the schema.
GraphQLUnionType
Union type (e.g. AddItemToOrderResult).
Gt <TEntity , TValue >
Greater than filter
Gte <TEntity , TValue >
Greater than or equal filter
Has <TEntity , TElement >
List-contains-element filter (e.g., List
HiveAesCipher
Default encryption algorithm. Uses AES256 CBC with PKCS7 padding.
HiveCipher
Abstract cipher can be implemented to customize encryption.
HiveCollection <E extends HiveObjectMixin >
List containing HiveObjectMixin s.
HiveField
Annotate all fields you want to persist with HiveField .
HiveInterface
The main API interface of Hive. Available through the Hive constant.
HiveList <E extends HiveObjectMixin >
Allows defining references to other HiveObjectMixin s.
HiveObject
TODO: Document this!
HiveType
Annotate classes with HiveType to generate a TypeAdapter.
I18nPort
The localization contract.
I18nService
App-facing localization facade.
Immutable
Annotation on an immutable class.
InitDependency
Data structure used to identify a dependency by type and instanceName
InitializationParams
InitializationParamsFields
Typed field descriptors over InitializationParams — one
ZorphyField per payload field, inherited fields
included (issue #247).
InitializationParamsLenses
Typed lenses over InitializationParams — one per writable field.
InitializationParamsMockData
InList <TEntity , TValue >
In list filter
InMemoryAppUpdateAdapter
Pure-Dart default adapter: scripted check results.
InMemoryBenchmarkRegistry
In-memory BenchmarkRegistry implementation.
InMemoryBiometricsAdapter
Pure-Dart default adapter (test/dev): scripted outcomes.
InMemoryClipboardAdapter
Pure-Dart default adapter (test/dev): holds one string.
InMemoryDeviceAdapter
Pure-Dart default adapter (test/dev): scriptable status + lifecycle.
InMemoryI18n
Pure-Dart I18nPort implementation: an in-memory table-backed
translator with locale fallback chains and live switching.
InMemorySecureStorage
Pure-Dart default backend (test/dev): an in-memory map with an
optional corruption seam.
InMemorySessionPersistence
Volatile in-memory persistence — the default backend.
InMemoryShareAdapter
Pure-Dart default adapter: records every share for assertions.
InterruptedFailure
InterruptedFailureFields
Typed field descriptors over InterruptedFailure — one
ZorphyField per payload field, inherited fields
included (issue #247).
InterruptedFailureLenses
Typed lenses over InterruptedFailure — one per writable field.
InterruptedFailureMockData
IntrospectionClient
IntrospectionHttpResponse
One HTTP round-trip result of an introspection POST.
IsolateBenchmarkRunner
A BenchmarkRunner that executes every scenario in its own isolate.
IsolatedBox <E >
Isolated version of Box
IsolatedBoxBase <E >
Isolated version of BoxBase
IsolatedCompactionStrategy
A sendable description of a CompactionStrategy
IsolatedHiveInterface
Interface for IsolatedHive
IsolatedLazyBox <E >
Isolated version of LazyBox
IsolateNameServer
An abstraction of the IsolateNameServer
IsolateZfaLink
The zero-serialization ZfaLink fast path over SendPort/ReceivePort
(ZFA-009).
JournalBehavior
One registered behavior the journal tools reason about: the registry
record's id + the two files a prove fingerprints.
JournalEntry
One journal entry — one cycle's record (the issue's nine fields plus
the additive extras downstream tooling reads).
JournalReader
The ONE canonical read API (issue #1113 requirement 2): any tool —
theater, status, prove, simulate — reads the journal stream through
here, not N file-format parsers.
JournalSchema
The JSON Schema generator + entry validator for the unified journal.
JournalStepError
Issue #1329: one failed step's diagnostic evidence, carried by the
lane journal entry's optional error object — the spawned command,
the exit code, and the truncated stderr/stdout tail, so a transient
step failure is debuggable from the journal alone (the entry no
longer reads only "violations": ["stopped_at=<id>:<step>"]). The
object is schema-declared (see _entrySchema's error property) so
writer and shipped schema cannot drift.
JournalVerdict
The derived one-line verdict zfa tdd status prints from the
journal (issue #1113's shape):
JournalWriter
Appends entries to specs/<feature>/tdd/journal.json — the one
writer every cycle (engine/skin/meta, via the shared driver core, the
commands' gate refusals, and prove) funnels through. Atomic
(tmp + rename), and tdd/journal.schema.json lands beside the
journal on first append.
JsonBaselineStore
Filesystem-backed BaselineStore using one JSON file per scenario
(research.md decision: human-readable, git-friendly).
JsonConverter <T , S >
Implement this class to provide custom converters for a specific Type .
JsonEnum
Allows configuration of how enum elements are treated as JSON.
JsonKey
An annotation used to specify how a field is serialized.
JsonLiteral
An annotation used to generate a private field containing the contents of a
JSON file.
JsonSerializable
An annotation used to specify a class to generate code for.
JsonValue
An annotation used to specify how a enum value is serialized.
LazyBox <E >
LazyBox es don't keep the values in memory like normal boxes. Each time a
value is read, it is loaded from the backend.
List_E <E >
Enhanced List type for Zorphy with additional functionality
ListAppend <E >
Appends one item.
ListEquality <T >
Compares two lists element-by-element (recursively for nested lists/maps).
ListPatchDelta <E >
An ordered sequence of ListPatchOp steps — the collection-delta half of
the patch algebra (ISSUE-008).
ListPatchOp <E >
One operation on a list field of a patch.
ListQueryParams <T >
ListRemoveAt <E >
Removes the item at index .
ListReplaceAll <E >
Replaces the whole list. items is held as given — a const op cannot copy
it — so a caller that keeps mutating the list it passed in would see the
change.
ListUpdateAt <E >
Replaces the item at index .
LoadingResult <S , F >
A loading/ pending result state.
Log
The facade root: zuraffa.log.info('hi', {'user': 'ada'}).
LogEntry
One structured log record (what handlers receive).
Lt <TEntity , TValue >
Less than filter
Lte <TEntity , TValue >
Less than or equal filter
ManualDiDetector
Detects manual get_it registration patterns that should use
@Datasource / @Repository annotations in v6.
MapEquality <K , V >
Compares two maps entry-by-entry (recursively for nested lists/maps).
MapPatchDelta <K , V >
An ordered sequence of MapPatchOp steps — the key-keyed counterpart of
ListPatchDelta .
MapPatchOp <K , V >
One operation on a map field of a patch — the key-keyed counterpart of
ListPatchOp .
MapPut <K , V >
Sets one key.
MapRemove <K , V >
Removes one key.
MapReplaceAll <K , V >
Replaces the whole map. entries is held as given — a const op cannot
copy it — so a caller that keeps mutating the map it passed in would see the
change.
McpReadonlyAwareTool
Opt-in contract marking an McpTool that declares its
readonly/mutating classification (the Vendure MCP plugin
convention, mirrored per issue #2046 so the fleet's MCP surfaces
feel the same).
McpSchema
Minimal JSON-Schema (draft-07 subset) builder for MCP tool inputs.
McpServerPlugin
Runtime ZuraffaPlugin that exposes the host app's McpTool s
over the Model Context Protocol.
McpSseServer
SSE transport for the runtime MCP server.
McpStdioServer
stdio JSON-RPC 2.0 server that dispatches to a McpToolRegistry .
McpStreamableHttpServer
Streamable HTTP MCP server exposing a McpToolRegistry (issue
#2046). Stateless: no Mcp-Session-Id is issued and none is
required — each POST carries exactly one JSON-RPC message and the
response is the JSON-RPC reply.
McpTool
A runtime MCP tool exposed by a Zuraffa app.
McpToolRegistry
In-process registry of McpTool s exposed by a Zuraffa app.
McpToolResult
Result returned by an McpTool.call invocation.
McpUseCaseTool <T extends Object ? , P extends Object ? >
An McpTool that adapts a Zuraffa UseCase<T, Params> for the
app's MCP surface (issue #2046).
MethodAppendStrategy
Appends or replaces methods inside a class declaration.
MethodAST
Metadata about the annotated element.
MetricChange
The change of a single metric between baseline and current (FR-010).
MetricCollector
Extensible interface for capturing custom metrics during benchmark
execution (FR-006).
MetricContext
The context handed to a MetricCollector at each lifecycle point.
MiddlewarePipeline <I , O >
Composes and executes a pipeline of ZfaMiddleware .
MigrationAction
A migration action that was applied (or would be applied in dry-run).
MigrationDetector
Base class for all v5 pattern detectors.
MigrationFinding
A single finding from a v5 pattern scan.
MigrationFixer
Base class for migration fixers.
MigrationReport
Aggregated report for zfa doctor or zfa migrate.
MigrationResult
Result of running a migration fixer.
MockCorruptBoundaryScenario
MockCorruptBoundaryScenarioMockData
MockCrashAfterScenario
MockCrashAfterScenarioFields
Typed field descriptors over MockCrashAfterScenario — one
ZorphyField per payload field, inherited fields
included (issue #247).
MockCrashAfterScenarioLenses
Typed lenses over MockCrashAfterScenario — one per writable field.
MockCrashAfterScenarioMockData
MockFailingScenario
MockFailingScenarioMockData
MockNominalScenario
MockNominalScenarioMockData
MockScenarioPolicy
MockScenarioPolicyMockData
Neq <TEntity , TValue >
Not equal filter (e.g., field != value)
Nested <TEntity , TValue >
Nested object or collection filter
NetworkFailure
NetworkFailureFields
Typed field descriptors over NetworkFailure — one
ZorphyField per payload field, inherited fields
included (issue #247).
NetworkFailureLenses
Typed lenses over NetworkFailure — one per writable field.
NetworkFailureMockData
NodeFinder
NodeRegistry
The authoritative node registry (spec Key Entities).
NonViewTargetInfo
A @Route annotation the scanner collected but could not accept as a
route (non-View class, method target, missing path, malformed redirect).
NoopSpan
No-op span returned when telemetry is disabled or trace is unsampled.
NoParams
A sentinel class for UseCases that don't require parameters.
NoRetryPolicy
No retry policy — fire once, drop on failure.
Not <TEntity >
Logical NOT negating a filter
NotFoundFailure
NotFoundFailureFields
Typed field descriptors over NotFoundFailure — one
ZorphyField per payload field, inherited fields
included (issue #247).
NotFoundFailureLenses
Typed lenses over NotFoundFailure — one per writable field.
NotFoundFailureMockData
NullProgressReporter
ObjectRegistration <T extends Object >
Observer <T >
Observer for callback-based stream listening.
OperationSpec
Opt <T >
Optional type wrapper for Zorphy
Or <TEntity >
Logical OR combining multiple filters
OsBackgroundTask
A use-case abstraction for OS-scheduled background tasks wrapping
workmanager (iOS / Android / macOS).
OsBackgroundTaskDescriptor
Descriptor for registering an OsBackgroundTask with the OS scheduler.
OsBackgroundTaskSchedule
Scheduling configuration for an OsBackgroundTask .
OsBackgroundTaskUseCase <T >
Abstract base class for OS-scheduled background task use cases.
OtelLogExporter
Exports LogRecords to an OpenTelemetry collector via OTLP/HTTP.
OutputFormat
The output format renderer for the standard CLI contract (FR-008).
PackageAgentTools
Namespaced agent-tool bridge for Zuraffa-native packages (spec 025,
FR-008/FR-009).
PackageCompatibility
Parses the constraint forms the package SDK itself emits and compares
them against a concrete running version.
PackageCompatibilityResult
Result of PackageCompatibility.check .
PackageMode
Package-mode marker detection for the v6 package SDK (spec 025,
FR-010/FR-011).
PackageModule
Runtime module contract for Zuraffa-native packages (spec 025,
FR-006/FR-007).
PackageUseCaseTool <T extends Object >
A ready-made McpTool adapter that resolves a usecase from a DI
container and invokes it (spec 025, FR-008).
ParameterInfo
Params
Base contract for the parameter objects a UseCase receives.
Patch <T >
Patch interface for Zorphy code generation
PatchBase <TEntity , TEnum extends Enum >
The base every generated <Name>Patch extends (ISSUE-007).
PatchNested <Sub , SubPatch extends ZorphyPatch <Sub > >
A patch for one nested field of a parent patch: it carries the patch that
applies to the nested value instead of the nested value itself.
PatchSet <V >
The set PatchValue : the field takes value .
PatchUnchanged <V >
The unchanged PatchValue : the field is left as it is.
PatchValue <V >
A single field's contribution to a patch: either "leave it alone" or
"set it to this value".
PatchWireReplacement
A whole-value replacement for a nested field, as opposed to a
PatchNested -style edit of the existing value.
PatchWireSet
The unambiguous spelling of an explicit field set on the wire.
PersistenceTestHarness
Per-test Hive CE temp-box harness (bug #833, remediation 1).
PluginDiscovery
Discovers and loads ZorphyDecoratorPlugin s from packages listed in
pubspec.yaml under the zuraffa_decorators key.
PluginRegistry
Registry for managing the lifecycle of generation plugins.
PolicyDeniedFailure
PolicyDeniedFailureFields
Typed field descriptors over PolicyDeniedFailure — one
ZorphyField per payload field, inherited fields
included (issue #247).
PolicyDeniedFailureLenses
Typed lenses over PolicyDeniedFailure — one per writable field.
PolicyDeniedFailureMockData
PolicyGateMiddleware <I , O >
Built-in middleware that evaluates typed ZfaPolicyRule s before next
(ZFA-006).
ProgressReport
ProgressReporter
PushOnlySyncStrategy <T >
Default push-only synchronization strategy.
QueryParams <T >
ReadonlySignal <T >
A read-only view of a Signal .
RecordUse
Annotation on a statically resolved member or class whose usages will be
recorded.
RedirectRuleInfo
Public snapshot of one collected redirect rule.
RegisteredCommand
A registered command, with its owner app and registration metadata.
RegistryKey
The composite key for the registry: (ownerApp, name).
RepoMethod
Configuration for a generated repository method.
ReportRetryPolicy
Abstract retry strategy for failure report delivery.
Repository
Marks a class as a repository implementation.
RepositoryFactory
RepositoryGenerator
Generates repository interfaces and implementations.
RepositoryMethodSpec
RepositoryPatterns
RepositoryPlugin
RepositorySpecConfig
Required
Annotation on a required named parameter.
RequiresAuth
Marks a UseCase class or method as requiring authentication/authorization.
ResolvedMessage
A resolved translation with its substitutions already applied.
Result <S , F >
Result type for Clean Architecture
Retry
Marks a UseCase or datasource method for automatic retry on failure.
RetryDDAPlugin
DDA plugin that processes @Retry annotations on UseCase
or datasource methods and generates retry wrapper logic.
RetryGenerator
Generates lib/src/middleware/zfa_retry.g.dart from collected
@Retry annotation metadata.
Role
Role hierarchy for authorization checks.
RouteBuildResult
Outcome of one route build stage run.
RouteBuildStage
The zfa build route stage (spec 033, FR-002): scans a project's lib/
for @Route / @ZfaRoute annotations, validates the collected
configuration (FR-006), and compiles everything into the single generated
router file lib/src/routing/zfa_router.g.dart.
RouteDDAPlugin
DDA plugin that processes @ZfaRoute (and @Route) annotations and
collects route metadata for GoRouter configuration generation.
RouteEntryInfo
Public snapshot of one collected route (what the validator and generator
operate on).
RouteFactory
RouteGenerator
Generates lib/src/routing/zfa_router.g.dart from collected
@ZfaRoute annotation metadata.
RouteParams
Base class for generated route parameter classes.
RouteSpecConfig
RouteValidationError
A single actionable validation failure.
RouteValidator
Validates collected route metadata. Pure: data in, errors out.
ScanResult
ScenarioValidation
Metadata validation shared by the registry and the dry-run path (AC-2).
SchemaCache
Caches and loads GraphQL introspection schemas.
SchemaChange
A single detected difference between two schema versions.
SchemaDiff
The result of diffing two schemas.
SchemaDiffer
SchemaParser
Parses a GraphQL introspection JSON response into a GraphQLSchema .
SdlPrinter
SecretStore
App-facing convenience over SecureStoragePort : typed accessors for
the two shapes every caller stores — tokens (String) and arbitrary
JSON maps — plus raw map access.
SecureStorageCodec
JSON-string codec for SecureStoragePort entries — the wire form a
platform adapter stores inside its native vault (Keychain/Keystore/
encrypted file).
SecureStoragePort
The secure-storage contract: typed JSON value storage at rest.
Session
A single unit of session state: a type (preset name), a unique id ,
a caller-chosen key inside its scope, and a schema-free payload .
SessionContainer
A generic, platform-agnostic session container (spec FR-001/FR-005/
FR-006/FR-007).
SessionMetadata
Bookkeeping attached to a Session .
SessionPersistence
A persistence backend for serialized session envelopes.
SessionPreset
A named, reusable template for a common session kind (spec FR-002).
SessionPresetRegistry
Registry of known session presets: the built-ins plus any custom
presets applications register (spec FR-003).
Settings
SettingsFields
Typed field descriptors over Settings — one
ZorphyField per payload field, inherited fields
included (issue #247).
SettingsLenses
Typed lenses over Settings — one per writable field.
SettingsMockData
ShadowChangeHandlers
If an object implements the ShadowChangeHandler if will get notified if
an Object with the same registration type and name is registered on a
higher scope which will shadow it.
It also will get notified if the shadowing object is removed from GetIt
SharedCommand
A StandardCommand published for cross-app reuse (FR-006).
SharePort
The share contract.
ShareRequest
One share request as the platform received it.
ShareService
App-facing share facade with empty-payload validation.
Signal <T >
A zero-cost reactive signal primitive for zuraffa.
SignalResult <T >
A reactive wrapper around Result<T, AppFailure> backed by a Signal .
SignalScope
An automatic ownership group for signals.
SignalSlice <T >
A fine-grained reactive slice that wraps a SignalResult<T> .
SignalSubscription
Lightweight subscription handle. Call cancel to unsubscribe.
SimulationSpanCapture
The light capture seam the otel simulation family consumes.
SlicePresenter
A presenter that manages multiple SignalSlice s — one per UseCase.
SocketZfaLink
The NDJSON-framed ZfaLink over a Unix/TCP socket (ZFA-009).
Sort <TEntity >
Represents a sort operation on a field
SortConverter
Converter for ZorphySort .
SourceLocation
Location within a source file for precise error reporting.
SpanException
SpanSnapshot
One span captured by a SimulationSpanCapture implementation.
SpecLibrary
StandardCommand
A declarative CLI command (FR-003).
StandardMetricCollector
The built-in collector producing the six standard metrics (FR-004, AC-5).
StandardMetrics
The standard metric vocabulary and shared statistics.
StateDetector
Detects v5-style mixed state classes that lack the v6 DomainState/ViewState split.
StateGenerator
Generates dual-layer state files:
StateMigrator
StorageFailure
StorageFailureFields
Typed field descriptors over StorageFailure — one
ZorphyField per payload field, inherited fields
included (issue #247).
StorageFailureLenses
Typed lenses over StorageFailure — one per writable field.
StorageFailureMockData
StrategyPlugin
Generates FetchStrategy skeletons for pluggable data-fetching pipelines.
StrategySelector <Input , Output >
Selects a FetchStrategy for a given Input at runtime.
StreamToSignalResultAdapter <T >
Adapter for migrating v5 Stream<Result<T, AppFailure>> use cases to v6.
StructuredLogger
A structured logger: named, hierarchical, with typed fields.
Success <S , F >
Success case of Result
SuccessResult
Successful command execution.
SyncConfig
Configuration for sync behavior.
SyncMetadata
Metadata record tracking the sync state of a single entity instance.
SyncMetadataStore
Hive-backed persistence layer for SyncMetadata records.
SyncStrategy <T >
Strategy interface for offline-first synchronization.
SyncUseCase <T , Params >
Base class for synchronous UseCases that return immediately without async.
TelemetryCostMiddleware <I , O >
Built-in middleware that opens a child TelemetrySpan around next
(ZFA-006).
TelemetryExporter
TelemetryMesh
Global telemetry coordinator for zuraffa.
TelemetrySpan
A causal telemetry span for the v8 chord runtime.
TestClock
Injectable clock for persistence assertions (bug #833, remediation 2).
TestObserver <T >
Test utilities for zuraffa.
ThresholdConfig
Whether a threshold violation fails the benchmark or only warns (FR-005).
Pass/fail criteria for a single metric (FR-005).
ThresholdViolation
A threshold that was exceeded during benchmark execution (FR-005).
TimeoutAndRetryMiddleware <I , O >
Built-in middleware that retries a failed next with exponential backoff
(ZFA-006).
TimeoutFailure
TimeoutFailureFields
Typed field descriptors over TimeoutFailure — one
ZorphyField per payload field, inherited fields
included (issue #247).
TimeoutFailureLenses
Typed lenses over TimeoutFailure — one per writable field.
TimeoutFailureMockData
ToggleParams <I extends Object , F >
TraceObserver
TrackEvent
Marks a UseCase method for automatic telemetry event tracking.
TrackEventDDAPlugin
DDA plugin that processes @TrackEvent annotations on UseCase
methods and generates telemetry injection logic.
TrackEventGenerator
Generates lib/src/middleware/zfa_events.g.dart from collected
@TrackEvent annotation metadata.
TransactionResult
Represents the outcome of a GenerationTransaction .
TtlCachePolicy
Time-to-live (TTL) cache policy.
TypeAdapter <T >
Type adapters can be implemented to support non primitive values.
TypeMapper
Maps GraphQL types to Dart types for code generation.
TypeRegistry
TypeRegistries contain the TypeAdapter s associated with a typeId.
UiChildrenConstraint
Children constraint of a node definition.
UiNodeDefinition
A node definition in the vocabulary.
UiPayloadError
One diagnostic: category + actionable message + tree path.
UiPayloadValidationResult
UiPayloadValidator
UiPropDefinition
One property of a node definition.
UiRenderInputSchema
Derives the agent ui.render tool input schema directly from an
exported vocabulary artifact (SC-004 — "consumed as-is ... with no
manual transformation").
UiVocabularyExportCapability
MCP-discoverable capability exposing the UI vocabulary schema export
(spec 024 FR-006).
UncaughtErrorFunnel
The central uncaught-error funnel for the Zuraffa family.
UnexpectedFailure
UnexpectedFailureFields
Typed field descriptors over UnexpectedFailure — one
ZorphyField per payload field, inherited fields
included (issue #247).
UnexpectedFailureLenses
Typed lenses over UnexpectedFailure — one per writable field.
UnexpectedFailureMockData
UnionGenerator
Generates sealed class hierarchies from GraphQL UNION types.
UnionResultHandler
Generates the union-result handling code emitted into generated
datasources, mapping error variants to AppFailure and success variants
to the sealed union object.
UpdateInfo
The outcome of an update check.
UpdateParams <I , P >
UseCase <T , Params >
Base UseCase class for Clean Architecture.
UseCaseBinding
Metadata for a UseCase → slice binding.
UseCaseFactory
UseCasePatterns
UseCasePlugin
Manages use case generation for the domain layer.
UseCaseSpecConfig
UseResult
Annotation on function or property whose value must not be ignored.
ValidationResult
ViewState
Base class for developer-extended ViewState .
ViewStateField
Metadata for a ViewState transient field.
ViewTemplateGenerator
Generates zfa make-style view templates using ControlledWidget,
FragmentBuilder, and SignalBuilder.
VmServiceRpcZfaLink
The ZfaLink that bridges ZfaLinkEnvelope s onto the Dart VM-service
JSON-RPC message channel (ZFA-009).
VmServiceZfaLink
The ZfaLink that bridges a live ZorphyPatch.toWire() stream and a
fromWire RPC decode over the VM-service message channel (ZFA-009).
VocabularySchemaExporter
VpcFactory
VpcPatterns
VpcSpecConfig
WalReplayMiddleware <I , O >
Built-in middleware that journals an intent to the run's write-ahead log
before it executes (ZFA-015).
WarningResult
Successful but with a warning the user should see (exit code 0, but the
output's outcome is 'warning' so a pipeline can detect it).
WatchUseCase <I extends ZorphyIntentBase , O >
The v8 watch use case archetype.
WatchUseCaseIntent <Params >
Adapts legacy generator params to the v8 watch-usecase intent contract.
WillSignalReady
If your singleton that you register wants to use the manually signalling
of its ready state, it can implement this interface class instead of using
the signalsReady parameter of the registration functions
(you don't really have to implement much ;-) )
ZfaBackend <T extends ZorphyEntityBase <Object ? > >
A mock-first partition over a ZfaStore for one entity type T (v8,
ZFA-014).
ZfaCachePolicy
ZfaCachePolicyCacheFirst
ZfaCachePolicyNetworkOnly
ZfaCachePolicyOfflineFirst
ZfaCachePolicyStaleWhileRevalidate
ZfaContext
The v8 chord-runtime context (ctx).
ZfaController <D extends ZorphyStateBase , U extends ZorphyStateBase >
The lean v8 controller: a typed dispatch(ZorphyIntent, ZfaContext) loop
over a pair of reactive state signals, replacing the multi-method
Controller + redundant Presenter ceremony.
ZfaCostLedger
A self-counting cost ledger for the v8 chord runtime.
ZfaCostSnapshot
Immutable point-in-time totals captured from a ZfaCostLedger .
ZfaDocument <T extends ZorphyEntityBase <Object ? > >
One entity held by a ZfaStore , keyed by its principal key (v8, ZFA-008).
ZfaFeatureState
Base contract for a feature's normalized domain state (v8, ZFA-012).
ZfaIntentMetadata
Typed replay metadata a v8 intent exposes to the built-in middleware.
ZfaLink
A bidirectional cross-process transport for ZfaLinkEnvelope s (ZFA-009).
ZfaLinkBinding <T extends ZorphyEntityBase <Object ? > >
Binds a ZfaLink to a ZfaStore for one entity type T (ZFA-009).
ZfaLinkEnvelope
One unit of cross-process synchronization a ZfaLink moves between two
ZfaStore s (v8, ZFA-009).
ZfaMiddleware <I , O >
Pure-Dart typed onion middleware contract.
ZfaMiddlewareContext
Context passed along the middleware pipeline.
ZfaPersistenceAdapter
Reflection-free persistence seam for ZfaStore hydration (v8, ZFA-010).
ZfaPolicyRule <I >
A typed policy rule evaluated by PolicyGateMiddleware before next.
ZfaQuery <T extends ZorphyEntityBase <Object ? > >
A typed query over an entity T, built directly on the generated
<Entity>Fields ZorphyField descriptors (v8, ZFA-008).
ZfaReaction <I extends Object , O extends Object , N extends Object >
A single typed reaction step in a ZfaReactionBus choreography.
ZfaReactionBus
A typed, decoupled reaction bus for use case choreography.
ZfaReadonlySignal <T >
ZfaRevisionTracker
Per-id revision bookkeeping that flags a gap in a ZfaLink stream (ZFA-009).
ZfaRoute
Marks a View class as a route with the given path .
ZfaSignal <T >
A pure-Dart signal primitive for Zuraffa v8 with Expando + WeakReference owner bindings.
ZfaSignalSubscription
ZfaStore
A generic, reflection-free entity store keyed by principal key (v8,
ZFA-008).
ZfaStoreSubscription
A ZfaStore.watch subscription: cancel stops the change notifications.
ZfaSupervisor <O >
A crash-restart supervisor bounded by restartLimit (ZFA-015).
ZfaSyncEntry <T extends ZorphyEntityBase <Object ? > >
A queued offline mutation (v8, ZFA-011).
ZfaSyncOutbox <T extends ZorphyEntityBase <Object ? > >
An offline-first queue of ZfaSyncEntry s waiting to be merged and pushed
(v8, ZFA-011).
ZfaSyncWorker <T extends ZorphyEntityBase <Object ? > >
Drains a ZfaSyncOutbox with a deterministic three-way ZorphyPatch merge
(v8, ZFA-011).
ZfaToggleIntent <T extends ZorphyEntityBase <Object ? > , V >
A typed toggle intent over one field of an entity T (v8, ZFA-008).
ZfaTypeRegistry
Bridges a generic entity type T to its generated
ZorphyEntityDescriptor (v8, ZFA-008).
ZfaUiState <T extends ZorphyEntityBase <Object ? > >
Typed active query, principal key identity, edit draft, preview/undo lifecycle
over a ZfaStore (v8, ZFA-012).
ZfaWalJournal
A pre-execution write-ahead journal for one run (ZFA-015).
ZfaWalRecord
One parsed record from a run's wal.jsonl (ZFA-015).
ZorphyAnd <T >
ZorphyBoundaryResult <T >
The outcome of decoding untrusted data against an expected type T.
ZorphyCollections
Shadow-proof static access to the collection equality/hash helpers.
ZorphyContains <T >
ZorphyContext
Context passed to each ZorphyDecoratorPlugin during code generation.
ZorphyDecoratorPlugin
Abstract base class for all DDA (Decorator-Driven Architecture) plugins.
ZorphyDomainBool
Field-level escape hatch from ZORPHY_LINT_NO_BOOL_FLAGS (ISSUE-005, #180).
ZorphyEntity
An aggregate/event root with its own identity.
ZorphyEntityBase <Id >
Base marker implemented by every polymorphic root/subtype in an
@ZorphyEntity hierarchy.
ZorphyEntityDescriptor <T extends ZorphyEntityBase >
A reflection-free, generic runtime seam over a generated @ZorphyEntity.
ZorphyEquals <T , V >
ZorphyField <T , V >
A typed accessor and query handle for one value V inside an entity T.
ZorphyFilter <T >
A typed predicate over an entity T, built from its ZorphyField s.
ZorphyGreaterThan <T , V >
ZorphyGreaterThanOrEqual <T , V >
ZorphyIn <T , V >
ZorphyIntent
A command/intent envelope whose payloads are replayed across a boundary.
ZorphyIntentBase
Base marker implemented by every class in a @ZorphyIntent hierarchy.
ZorphyIntentDigest
The canonical-JSON + SHA-256 digest of one intent payload.
ZorphyIsNotNull <T >
ZorphyIsNull <T >
ZorphyLens <S , V >
A typed accessor for one value V inside a root S.
ZorphyLessThan <T , V >
ZorphyLessThanOrEqual <T , V >
ZorphyMock
Field-level mock-data seed hint for mock-first generation.
ZorphyMockPresets
The reserved ZorphyMock.preset names understood by the generator.
ZorphyNested <T , V >
Matches T through a predicate over the value of field (issue #303).
ZorphyNot <T >
ZorphyNotEquals <T , V >
ZorphyOr <T >
ZorphyPatch <T >
A partial update of a value of type T — the v3 patch contract.
ZorphyPatchWire
The field-level decode primitives a generated patch fromWire calls.
ZorphyPluginRegistry
Registry of all active decorator plugins.
ZorphyPolymorphicBase
Common super-marker shared by all five archetype families.
ZorphySort <T >
A typed ordering over an entity T, built from a ZorphyField .
ZorphyStartsWith <T >
ZorphyState
A mutable/composed state node in a (possibly sealed) hierarchy.
ZorphyStateBase
Base marker implemented by every class in a @ZorphyState hierarchy.
ZorphyUnion
A closed discriminated union of sibling variants.
ZorphyUnionBase
Base marker implemented by every member of a @ZorphyUnion hierarchy.
ZorphyValue
An immutable value object with no identity of its own.
ZorphyValueBase
Base marker implemented by every class in a @ZorphyValue hierarchy.
Zuraffa
Global configuration and utilities for Zuraffa.
ZuraffaApiBridge
VM Service extension bridge for Zuraffa.
ZuraffaContainer
Lightweight dependency-injection container for zuraffa.
ZuraffaContext
Lightweight correlation context carrier flowing from UI → UseCase → Data.
ZuraffaDIContainer
A lightweight dependency-injection container that wraps GetIt .
ZuraffaEngine
Central engine that discovers, wires, and initialises
ZuraffaPlugin instances.
ZuraffaPlugin
Abstract contract that every Zuraffa micro-frontend plugin must
implement.
ZuraffaRouteGuard
Base class for route guard / middleware implementations.
ZuraffaRouteState
Pure-Dart route state passed to ZuraffaRouteGuard callbacks.
ZuraffaSpan
A single operation span within a trace.
ZuraffaTrace
A complete trace — a tree of spans sharing a traceId.
ZuraffaUseCase <In , Out >
Base contract for all zuraffa use cases (v6).
Mixins
CacheMutator <T >
Mixin for UseCases that update the cache after mutation.
DisposableUseCase <In , Out >
Mixin for use cases that need manual disposal of internal signals.
FailureHandler
Mixin that provides failure handling capabilities to a class.
HiveObjectMixin
Extend HiveObject to add useful methods to the objects you want to store
in Hive
Loggable
Mixin that provides a Logger instance to a class.
Extensions
AppFailureWhenE
on AppFailure
AsyncSliceFailedMorphing
on AsyncSliceFailed <T >
AsyncSliceIdleMorphing
on AsyncSliceIdle <T >
AsyncSliceLoadingMorphing
on AsyncSliceLoading <T >
AsyncSliceReadyMorphing
on AsyncSliceReady <T >
AsyncSliceWhenE
on AsyncSlice <T >
BoundaryViolationFailureMorphing
on BoundaryViolationFailure
CacheBinding
on SignalSlice <T >
Binds a SignalSlice<T> to the CacheObserver for automatic
cross-view state synchronization.
CancelledFailureMorphing
on CancelledFailure
CancelTokenFutureExtension
on Future <T >
Extension methods for using CancelToken with Future
CancelTokenStreamExtension
on Stream <T >
Extension methods for using CancelToken with Stream
CollectionFieldOps
on Field <TEntity , List <TElement > >
ConflictFailureMorphing
on ConflictFailure
ErrorToFailure
on Error
Extension to convert errors to failures.
ExceptionToFailure
on Exception
Extension to convert exceptions to failures.
FieldOps
on Field <TEntity , TValue >
Extension methods for easier filter creation
FieldSortOps
on Field <TEntity , TValue >
Extension methods for sorting on fields
FilterListToListQueryExtension
on Iterable <ZorphyFilter <T > >
Extension methods for converting a list of ZorphyFilter s to a single
filter or ListQueryParams .
FilterListToQueryExtension
on Iterable <ZorphyFilter <T > >
Extension methods for converting a list of ZorphyFilter s to a single
filter or QueryParams .
FilterOps
on Filter <TEntity >
FilterToListQueryExtension
on ZorphyFilter <T >
Extension methods for converting a ZorphyFilter to ListQueryParams .
FilterToQueryExtension
on ZorphyFilter <T >
Extension methods for converting a ZorphyFilter to QueryParams .
FutureNullableExtension
on Future <T? >
Extension for handling nullable futures.
FutureResultExtension
on Future <Result <S , F > >
Extension methods for Future<Result> .
FutureResultExtensions
on Future <Result <S , F > >
Extension methods for Future<Result>
FutureResultListExtension
on Iterable <Future <Result <S , F > > >
Extension for combining multiple Result futures.
FutureToResultExtension
on Future <T >
Extension methods for converting Future to Result .
InterruptedFailureMorphing
on InterruptedFailure
ListQueryParamsExtension
on ListQueryParams
MockCorruptBoundaryScenarioMorphing
on MockCorruptBoundaryScenario
MockCrashAfterScenarioMorphing
on MockCrashAfterScenario
MockFailingScenarioMorphing
on MockFailingScenario
MockNominalScenarioMorphing
on MockNominalScenario
MockScenarioPolicyWhenE
on MockScenarioPolicy
NestedFilterToQueryExtension
on ZorphyField <TEntity , TValue >
Nested filtering over a value field: the field descriptor projects a
predicate over the nested type onto the owning entity
(ZorphyField.nested, zorphy#303). ZorphyFilter is sealed, so this is
composition through v3's own combinator — never a zuraffa-defined
predicate class.
NestedIterableFilterToQueryExtension
on ZorphyField <TEntity , List <TElement > >
Nested filtering over an Iterable<TElement> field: ZorphyNested
matches the entity when ANY element matches the nested predicate.
NestedNullableIterableFilterToQueryExtension
on ZorphyField <TEntity , List <TElement > ? >
Nested filtering over a nullable Iterable<TElement> field.
NetworkFailureMorphing
on NetworkFailure
NotFoundFailureMorphing
on NotFoundFailure
NullableStringFieldOps
on Field <TEntity , String ? >
ObserverStreamExtension
on Stream <Result <T , AppFailure > >
Extension to use Observer with stream sources.
OptExtension
on T
Extension to allow calling opt() on any value
PolicyDeniedFailureMorphing
on PolicyDeniedFailure
QueryParamsExtension
on Iterable <T >
Extension to query a single entity from an iterable using QueryParams.
ReadonlySignalExtension
on Signal <T >
ResultAsyncExtensions
on Result <S , F >
Extension methods for Result with async operations
SessionContainerPersistence
on SessionContainer
StorageFailureMorphing
on StorageFailure
StringFieldOps
on Field <TEntity , String >
TimeoutFailureMorphing
on TimeoutFailure
UnexpectedFailureMorphing
on UnexpectedFailure
ZorphyComparableFieldX
on ZorphyField <T , V >
Ordering predicates for fields whose value is Comparable — the shapes
double, int, String, DateTime and friends.
ZorphyFieldListX
on List <ZorphyField <T , Object ? > >
Wire resolution over a generated <Entity>Fields.all list.
ZorphyPatchAlgebra
on ZorphyPatch <T >
ZorphyQueryIterableExt
on Iterable <T >
Extension methods for in-memory querying of iterables
ZorphyStringFieldX
on ZorphyField <T , String >
Substring predicates for String fields.
Constants
alwaysThrows
→ const Object
Annotation marking a function as always throwing.
awaitNotRequired
→ const Object
Annotation on asynchronous function whose Future can be ignored.
checked
→ const Object
Annotation that no longer has any effect.
doNotStore
→ const Object
Annotation on function or property whose value must not be stored.
doNotSubmit
→ const Object
Annotation marking declaration that should be removed before publishing.
experimental
→ const Object
Annotation marking declaration as experimental and subject to change.
factory
→ const Object
Annotation on a function that creates new objects.
immutable
→ const Immutable
Annotation on an immutable class.
internal
→ const Object
Annotation on declaration that should not be used outside of its package.
isTest
→ const Object
Annotation on a test framework function that introduces a single test.
isTestGroup
→ const Object
Annotation on a test framework function that introduces a group of tests.
kSessionEnvelopeVersion
→ const int
The serialized wire format's schema version. Bumped on breaking
envelope changes; readers reject envelopes from the future with a
recoverable ZuraffaSessionException .
literal
→ const Object
Annotation on constructor that must be invoked with const if possible.
mustBeConst
→ const Object
Annotation on a parameter whose arguments must be constants.
mustBeOverridden
→ const Object
Annotation on instance members that must be overridden by subclasses.
mustCallSuper
→ const Object
Annotation on instance member that overriding members must call.
nonVirtual
→ const Object
Annotation on instance member that must not be overridden.
optionalTypeArgs
→ const Object
Annotation on type arguments that can safely be omitted.
protected
→ const Object
Annotation on instance member that should only be used by subclasses.
redeclare
→ const Object
Annotation on extension type members which redeclare superinterface members.
reopen
→ const Object
Annotation on declaration with less access restrictions than superinterface.
required
→ const Required
Annotation on named parameter that should always have an argument supplied.
sealed
→ const Object
Annotation on class that must not be subclassed outside of its package.
useResult
→ const UseResult
Annotation on function or property whose value must not be ignored.
version
→ const String
virtual
→ const Object
Annotation which no longer has any effect.
visibleForOverriding
→ const Object
Annotation on declaration that should not be used outside of its package.
visibleForTesting
→ const Object
Annotation on a public declaration that should only be used in tests.
zuraffaMockLibrary
→ const bool
Detectable marker: this project uses zuraffa-native mocking.
Functions
$checkedConvert <T > (Map map , String key , T castFunc (dynamic ), {Object ? readValue (Map , String )? })
→ T
Helper function used in generated code when
JsonSerializableGenerator.checked is true.
$checkedCreate <T > (String className , Map map , T constructor (S <S >(String , S (Object ? ), {Object ? readValue (Map , String )? }) ), {Map <String , String > fieldKeyMap = const {} })
→ T
Helper function used in generated code when
JsonSerializableGenerator.checked is true.
$checkedNew <T > (String className , Map map , T constructor (), {Map <String , String > ? fieldKeyMap })
→ T
Helper function used in generated code when
JsonSerializableGenerator.checked is true.
$checkKeys (Map map , {List <String > ? allowedKeys , List <String > ? requiredKeys , List <String > ? disallowNullValues })
→ void
Helper function used in generated fromJson code when
JsonSerializable.disallowUnrecognizedKeys is true for an annotated type or
JsonKey.required is true for any annotated fields.
$enumDecode <K extends Enum , V > (Map <K , V > enumValues , Object ? source , {K? unknownValue })
→ K
Returns the key associated with value source from enumValues, if one
exists.
$enumDecodeNullable <K extends Enum , V > (Map <K , V > enumValues , Object ? source , {Enum ? unknownValue })
→ K?
Returns the key associated with value source from enumValues, if one
exists.
alwaysMatch <T > ()
→ ZorphyFilter <T >
The neutral predicate — matches every instance. The v3 analogue of v2's
AlwaysMatch<T>(): an empty conjunction (ZorphyAnd([]) is vacuously
true).
batch <T > (T callback () )
→ T
Run callback as a synchronous batching boundary for signal writes.
compareBaselines (Baseline baseline , Map <String , num > current , {num tolerancePercent = 10 , Map <String , bool > ? lowerIsBetterOverride })
→ BenchmarkComparison
Compares current metrics against baseline (FR-010, AC-10, AC-11).
createParamsFromWire <T > (Map <String , dynamic > raw , T fromElement (Object ? json ) )
→ CreateParams <T >
Decode a CreateParams from a wire map; fromElement decodes the payload.
createParamsToWire <T > (CreateParams <T > params , {Object ? toElement (T value )? })
→ Map <String , dynamic >
Serialize a CreateParams to a wire map; toElement encodes the payload.
delayedFailure <T > (AppFailure failure , {Duration delay = const Duration(milliseconds: 100) })
→ Future <Result <T , AppFailure > >
Create a delayed Future that completes with a Result.failure .
delayedSuccess <T > (T value , {Duration delay = const Duration(milliseconds: 100) })
→ Future <Result <T , AppFailure > >
Create a delayed Future that completes with a Result.success .
deleteParamsFromWire <I extends Object > (Map <String , dynamic > raw , I fromI (Object ? json ) )
→ DeleteParams <I >
Decode a DeleteParams from a wire map.
deleteParamsToWire <I extends Object > (DeleteParams <I > params , {required Object ? toI (I value ) })
→ Map <String , dynamic >
Serialize a DeleteParams to a wire map; toI encodes the id.
failureFuture <T > (AppFailure failure )
→ Future <Result <T , AppFailure > >
Create a Future that completes with a Result.failure .
failureResult <T > (AppFailure failure )
→ Result <T , AppFailure >
Create a Result.failure for testing.
installCrc32Accelerator (Crc32Accelerator accelerator )
→ void
Installs accelerator in the current isolate for unsigned 32-bit seeds.
isListType (GraphQLType type )
→ bool
Whether type is a list, unwrapping a top-level NonNull wrapper.
isNonNullTop (GraphQLType type )
→ bool
Whether type is a top-level NonNull wrapper.
isResultFailure <S , F > (Result <S , F > result )
→ bool
Check if a Result is a Failure
isResultFailureOfType <F extends AppFailure > (Result <dynamic , AppFailure > result )
→ bool
Check if a Result is a Failure of a specific type
isResultSuccess <S , F > (Result <S , F > result )
→ bool
Check if a Result is a Success
journalFileFingerprint (String ? path )
→ Future <String ? >
sha256 of path's bytes; null when the file does not exist — the
prove baseline's fingerprint primitive (a file appearing or
disappearing is a change).
listElementType (GraphQLType type )
→ GraphQLType
The element type of a list type, unwrapping only the top-level
NonNull wrapper so element nullability is preserved.
listQueryParamsFromWire <T > (Map <String , dynamic > raw , T fromElement (Object ? json ), FieldResolver <T > resolveField )
→ ListQueryParams <T >
Decode a ListQueryParams from a wire map.
listQueryParamsToWire <T > (ListQueryParams <T > params )
→ Map <String , dynamic >
Serialize a ListQueryParams to a wire map.
pluralCategoryFor (int count , AppLocale locale )
→ PluralCategory
Recovers the CLDR cardinal plural category for count in locale.
queryParamsFromWire <T > (Map <String , dynamic > raw , T fromElement (Object ? json ), FieldResolver <T > resolveField )
→ QueryParams <T >
Decode a QueryParams from a wire map.
queryParamsToWire <T > (QueryParams <T > params )
→ Map <String , dynamic >
Serialize a QueryParams to a wire map.
registerAppUpdateDependencies (GetIt getIt , {AppUpdatePort ? port , String currentVersion = '0.0.0' })
→ void
Registers the app-update stack onto getIt.
registerBiometricsDependencies (GetIt getIt , {BiometricsPort ? port })
→ void
Registers the biometrics stack onto getIt.
registerClipboardDependencies (GetIt getIt , {ClipboardPort ? port })
→ void
Registers the clipboard stack onto getIt.
registerDeviceDependencies (GetIt getIt , {DevicePort ? port })
→ void
Registers the device stack onto getIt.
registerI18nDependencies (GetIt getIt , {required TranslationTable tableFor (), AppLocale ? initialLocale })
→ void
Registers the i18n stack onto getIt with a table built by
tableFor (apps load their own translations; the loader decides the
source — assets, files, network).
registerSecureStorageDependencies (GetIt getIt , {SecureStoragePort ? storage })
→ void
Registers the secure-storage stack onto getIt.
registerShareDependencies (GetIt getIt , {SharePort ? port })
→ void
Registers the share stack onto getIt.
reportedFailureStackTrace (AppFailure failure , StackTrace ? caught )
→ StackTrace ?
The stack trace to attach when reporting failure.
resultFailureContains (Result <dynamic , AppFailure > result , String substring )
→ bool
Check if a Result failure message contains a substring
successFuture <T > (T value )
→ Future <Result <T , AppFailure > >
Create a Future that completes with a Result.success .
successResult <T > (T value )
→ Result <T , AppFailure >
Create a Result.success for testing.
throwIf (bool condition , Object error )
→ void
Two handy functions that help me to express my intention clearer and shorter to check for runtime
errors
throwIfNot (bool condition , Object error )
→ void
toggleParamsFromWire <I extends Object , F > (Map <String , dynamic > raw , I fromI (Object ? json ), F fromF (Object ? json ) )
→ ToggleParams <I , F >
Decode a ToggleParams from a wire map.
toggleParamsToWire <I extends Object , F > (ToggleParams <I , F > params , {required Object ? toI (I value ), required Object ? toF (F value ) })
→ Map <String , dynamic >
Serialize a ToggleParams to a wire map; toI encodes the id, toF the field.
updateParamsFromWire <I , P > (Map <String , dynamic > raw , I fromI (Object ? json ), P fromP (Object ? json ) )
→ UpdateParams <I , P >
Decode an UpdateParams from a wire map.
updateParamsToWire <I , P > (UpdateParams <I , P > params , {required Object ? toI (I value ), required Object ? toP (P value ) })
→ Map <String , dynamic >
Serialize an UpdateParams to a wire map; toI encodes the id, toP the patch.
zfaIntentDigest (Object intent )
→ String ?
Reads ZfaIntentMetadata.intentDigest from intent, or null when the
intent exposes no digest.
zfaIntentName (Object intent )
→ String
Reads ZfaIntentMetadata.intentName from intent, falling back to the
runtime type name when the intent exposes no name.
zfaIntentReplaySafe (Object intent )
→ bool
Reads ZfaIntentMetadata.replaySafe from intent, or false when the
intent exposes no replay metadata.
zfaIntentToWire (Object intent )
→ Map <String , Object ? > ?
Reads the wire form from intent's toWire(), or null when the intent
exposes no toWire() map (ZFA-015).
zorphyCollectionEquals (Object ? a , Object ? b )
→ bool
Shallow content equality for snapshotted outer collections.
zorphyCollectionHash (Object ? value )
→ int
Hash compatible with zorphyCollectionEquals .
zorphyType (TypeMapper mapper , GraphQLType type )
→ String
Maps a GraphQL type to its Dart type for generated code, referencing
generated zorphy classes by their $-prefixed names.
Typedefs
CompactionStrategy
= bool Function(int entries , int deletedEntries )
A function which decides when to compact a box.
Crc32Accelerator
= int Function(Uint8List bytes , int seed , int offset , int length )
Computes the zlib-compatible CRC32 of a valid byte range in bytes.
DisposingFunc <T >
= FutureOr Function(T param )
Signature for disposing function
because closures like (x){} have a return type of Null we don't use FutureOr<void>
FactoryFunc <T >
= T Function()
Signature of the factory function used by non async factories
FactoryFuncAsync <T >
= Future <T > Function()
Signature of the factory function used by async factories
FactoryFuncParam <T , P1 , P2 >
= T Function(P1 param1 , P2 param2 )
For Factories that expect up to two parameters if you need only one use void for the one
you don't use
FactoryFuncParamAsync <T , P1 , P2 >
= Future <T > Function(P1 param1 , P2 param2 )
For async Factories that expect up to two parameters if you need only one use void for the one
you don't use
FieldResolver <T >
= ZorphyField <T , Object ? > ? Function(String pointer )
Resolves a field pointer (e.g. /price) to the entity's erased
ZorphyField — the shape ZorphyFilter.fromWire and ZorphySort.fromWire
both take, and exactly what <Entity>Fields.all.byPointer provides.
HiveLogger
= Logger
Hive's logger
HiveLoggerLevel
= LoggerLevel
Hive's logger level
IntrospectionTransport
= Future <IntrospectionHttpResponse > Function(Uri endpoint , String query )
Performs the introspection POST for endpoint.
KeyComparator
= int Function(dynamic key1 , dynamic key2 )
NextUseCase <I , O >
= Future <Result <O , AppFailure > > Function(I intent , ZfaMiddlewareContext ctx )
Signature for the next use case execution step in the pipeline.
OsBackgroundTaskHandler
= Future <void > Function()
Callback type for OS background task handlers.
PackageUseCaseInvoker <T >
= Future <Object ? > Function(T usecase , Map <String , dynamic > arguments )
Invokes a resolved usecase with the tool's arguments.
Partial <T >
= Map <String , dynamic >
A type alias for partial entity data.
ReactionRunner
= Future <Result <Object ? , AppFailure > > Function(Object intent , ZfaContext context )
Executes a single intent under a ZfaContext and returns its result.
Route
= ZfaRoute
Backward-compatible alias for ZfaRoute .
ScopeDisposeFunc
= FutureOr Function()
Signature for disposing function on scope level
TranslationTable
= Map <String , Map <String , String > >
The message table shape: locale tag → (key → message).
VoidCallback
= void Function()
ZfaReplayHandler <O >
= Future <Result <O , AppFailure > > Function(ZfaWalRecord intent )
Re-executes one uncommitted intent during recovery (ZFA-015).
ZuraffaPluginFactory
= ZuraffaPlugin Function()
ZuraffaRouteHandler
= Object ? Function(Object ? args )
Route handler callback type (platform-agnostic).
Exceptions / Errors
AmbiguousCommandException
Two or more owner apps have registered a command with the same name, and
the caller invoked by name only (without specifying an owner app) (FR-009
edge case 2: ambiguous / conflicting command names).
AppUpdateException
Recoverable, typed app-update error.
BadKeyException
A base class for exceptions thrown when decoding JSON.
BindingException
Raised by DiBinding.bind when a handler's declared dependency is not
registered in the host app's DI container.
BiometricsException
Recoverable, typed biometrics error.
CancellationTokenException
Thrown by CancellationToken.throwIfCancelled at a cancellation point.
CancelledException
Exception thrown when an operation is cancelled
CheckedFromJsonException
Exception thrown if there is a runtime exception in fromJson
code generated when JsonSerializableGenerator.checked is true
CircularReferenceException
A cross-app invocation chain detected a cycle (FR-009 edge case 4:
circular command references).
CliEdgeCaseException
Base class for all standard-CLI edge-case exceptions.
CliUsageException
A usage error raised internally by CliApp when args fail to parse or
a required positional arg is missing. Carries no edge-case metadata; the
exit code is CliExitCodes.usage .
CommandAlreadyRegistered
Raised by CommandRegistry.register when an app tries to register a
command whose (ownerApp, name) key is already registered.
CompositeScaffoldException
CorruptionDrillFailure
Raised by PersistenceTestHarness.openWithRecovery when the corruption
drill's recovery contract is violated (bug #833, remediation 3).
DecoratorParseError
Error thrown when decorator parsing fails.
DisallowedNullValueException
Exception thrown if there are keys with disallowed null values in a JSON
map that was provided during deserialization.
HiveError
An error related to Hive.
I18nException
Recoverable, typed i18n error.
IntrospectionException
Raised for every introspection failure mode with a human-actionable
message. Carries the HTTP status (when transport-level) and the raw
GraphQL error objects (when the server reported errors).
JournalException
Raised when a journal that EXISTS cannot be read (corrupt JSON, wrong
shape): honest failure, never a silent empty stream. A journal that
does not exist is NOT an error — it is honest pending state (the
feature has not been driven by a journal-writing cycle yet).
MissingRequiredKeysException
Exception thrown if there are missing required keys in a JSON map that was
provided during deserialization.
NodeRegistryException
Raised when a composite registration cannot be loaded.
NonInteractiveContextException
A command requires interaction with the user, but stdout is piped or
stdin is not a TTY (FR-009 edge case 6: non-CLI / non-interactive context).
PluginDiscoveryError
ReferencedAppMissingException
The owner app referenced by a cross-app invocation is not registered (FR-009
edge case 3: referenced command or app missing).
RegistrarGateError
Raised by PersistenceTestHarness.bootstrap when the init-time adapter
registration fails (bug #833, remediation 4 — the registrar gate).
SchemaCacheError
SchemaParseError
SecureStorageException
Recoverable, typed secure-storage error.
ShareException
Recoverable, typed share error.
UiPayloadParseException
Raised when the payload file cannot be parsed (Edge Cases).
UnknownCommandException
The requested command is not registered under any owner app (FR-009
edge case 1: unknown / mistyped command).
UnrecognizedKeysException
Exception thrown if there are unrecognized keys in a JSON map that was
provided during deserialization.
VersionMismatchException
A shared command was requested at a minimum version, but the published
version is below that minimum (FR-009 edge case 5: version mismatch
between sharing apps).
WaitingTimeOutException
ZuraffaMissingPluginException
Missing-plugin exception replacement (mirrors flutter/services.dart).
ZuraffaPlatformException
Platform-native exception replacement (mirrors flutter/services.dart).
ZuraffaSessionException
A typed, recoverable session-layer error.