This interface defines the initial configuration for the OTA model, including
any pre-existing artifact data that should be loaded during model initialization.
In most cases, the OTA model will automatically load artifacts from the OTA service,
but this option allows for pre-loading or testing scenarios.
Example: Basic OTA Model Creation
// Most common usage - let model load artifacts automatically constotaModel = Ota.instance('system-updates').build();
// The model will automatically: // - Connect to OTA service // - Load current artifacts // - Subscribe to real-time updates
// Create OTA model with test data for different scenarios constcreateTestOtaModel = (scenario: 'downloading' | 'pending' | 'error') => { consttestArtifacts: OTAArtifactResponse[] = [];
Configuration options for OTA model instances.
This interface defines the initial configuration for the OTA model, including any pre-existing artifact data that should be loaded during model initialization. In most cases, the OTA model will automatically load artifacts from the OTA service, but this option allows for pre-loading or testing scenarios.
Example: Basic OTA Model Creation
Example: Pre-loaded Artifacts (Advanced)
Example: Testing Scenarios