SynheartConfig class

Configuration for Synheart Core SDK

Constructors

SynheartConfig({String appId = '', String subjectId = '', SynheartMode mode = SynheartMode.personal, String appVersion = '0.0.0', String appName = '', String category = '', String developer = '', Map<String, dynamic> additionalAppMetadata = const {}, String deviceId = '', String? platform, StorageConfig storage = const StorageConfig(), SyncConfig sync = const SyncConfig(), PrivacyConfig privacy = const PrivacyConfig(), WearConfig? wearConfig, PhoneConfig? phoneConfig, BehaviorConfig? behaviorConfig, CloudConfig? cloudConfig, ConsentConfig? consentConfig, DeviceAuthConfig? deviceAuthConfig, @Deprecated('Not forwarded to the runtime; use deviceAuthConfig. ' 'Will be removed in a future release.') CapabilityToken? capabilityToken, @Deprecated('A signing secret must never ship in an app bundle; use ' 'deviceAuthConfig. Will be removed in a future release.') String? capabilitySecret, bool allowUnsignedCapabilities = false, bool batchIngestOnStop = false, String? runtimeLogEnvFilter, HostDeclarations hostDeclarations = const HostDeclarations(), List<ExtraHead> extraHeads = const <ExtraHead>[], bool emitDiagnostics = false, ModelBackend? modelBackend, bool researchBaseline = false, bool strictChannelConsent = false, int? windowMs})
SynheartConfig.defaults()
Create default configuration
factory

Properties

additionalAppMetadata → Map<String, dynamic>
Additional app-level metadata for lab ingestion.
final
allowUnsignedCapabilities → bool
When true, allows SDK to run with default capabilities and no signed token (debug only)
final
appId → String
Developer-provided app identifier.
final
appName → String
Human-readable app name (used in lab metadata).
final
appVersion → String
App version string (used in session records).
final
batchIngestOnStop → bool
When true, the runtime buffers wear and behavior events during the session and runs a single batch ingest (plus drain) when the session stops, instead of streaming events and ticking every second. HSI is then only produced after stop.
final
behaviorConfig → BehaviorConfig?
final
capabilitySecret → String?
HMAC secret for verifying the capability token signature.
final
capabilityToken → CapabilityToken?
Server-signed capability token for feature gating.
final
category → String
App category (e.g. "Game", "Health", "Productivity").
final
cloudConfig → CloudConfig?
Cloud connector configuration
final
consentConfig → ConsentConfig?
Consent service configuration
final
developer → String
Developer name or organization.
final
deviceAuthConfig → DeviceAuthConfig?
Device authentication configuration. When set, enables automatic device registration, capability token fetching, and device-signed request authentication.
final
deviceId → String
Device identifier (auto-generated if not provided).
final
emitDiagnostics → bool
Publish per-head evidence terms in meta.synheart.diagnostics.
final
extraHeads → List<ExtraHead>
Opt-in kinematic heads. Empty by default; they also require a body-worn accelerometer placement before they produce anything.
final
hashCode → int
The hash code for this object.
no setterinherited
hostDeclarations → HostDeclarations
Host declarations that change engine output — sensing, device_class, mask_profile, cfi_structural_components.
final
mode → SynheartMode
Operational mode (default: personal).
final
modelBackend → ModelBackend?
Which backend the engine's heads may use. Null leaves the runtime's default (deterministic formulas only); see ModelBackend.
final
phoneConfig → PhoneConfig?
final
platform → String
Platform string (ios | android | desktop).
final
privacy → PrivacyConfig
Privacy configuration.
final
researchBaseline → bool
Use the single-visit baseline profile (d_min = 1) without switching the whole instance into SynheartMode.research.
final
resolvedEmitRawMotionSamples → bool
Whether raw accelerometer samples are forwarded to the runtime.
no setter
runtimeLogEnvFilter → String?
Optional tracing EnvFilter for synheart_core_init_logging (SDK §1b). When non-empty, overrides the bridge default filter during SDK initialization.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storage → StorageConfig
Storage configuration.
final
strictChannelConsent → bool
Enforce consent per channel instead of per category.
final
subjectId → String
Stable user identity. Developer-provided.
final
sync → SyncConfig
Sync configuration.
final
wearConfig → WearConfig?
Module-specific configurations
final
windowMs → int?
Inference window length in ms. Null leaves the runtime default (60 000).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validate() → void
Validate config and throw SynheartError on violations.

Operators

operator ==(Object other) → bool
The equality operator.
inherited