//#region src/ota/ota-types.d.ts /** Matches `helper::Ota::State` enum strings. */ type OtaState = 'Idle' | 'Checking' | 'Downloading' | 'Verifying' | 'Applying' | 'ReadyToReboot' | 'Failed' | 'Canceled'; /** Matches `helper::Ota::ArtifactType` enum strings. */ type OtaArtifactType = 'Firmware' | 'SystemAssets'; /** Matches `helper::Ota::SourceType` enum strings. */ type OtaSourceType = 'HttpManifest' | 'LocalManifest' | 'PushSession'; /** Matches `helper::Ota::VersionDecision` enum strings. */ type OtaVersionDecision = 'UpdateAvailable' | 'SameVersion' | 'OlderVersion' | 'CurrentVersionUnknown' | 'Forced'; /** Matches `helper::Ota::ErrorCode` enum strings. */ type OtaErrorCode = 'Ok' | 'InvalidArgument' | 'Busy' | 'NotFound' | 'TransportUnavailable' | 'DownloadFailed' | 'VerifyFailed' | 'ApplyFailed' | 'Canceled' | 'Unsupported' | 'NoUpdate' | 'DowngradeRejected' | 'TargetMismatch'; /** Matches `helper::Ota::ProgressOperation` enum strings. */ type OtaProgressOperation = 'None' | 'FetchManifest' | 'DownloadArtifact' | 'CopyArtifact' | 'VerifyArtifact' | 'ExtractArtifact' | 'WriteFirmware' | 'ActivateAssets' | 'ConfirmBoot'; /** Matches `helper::Ota::ProgressUnit` enum strings. */ type OtaProgressUnit = 'None' | 'Bytes' | 'Entries' | 'Percent'; type OtaSource = { type?: OtaSourceType; uri?: string; push_session_id?: string; force?: boolean; }; type OtaTargetInfo = { systems?: string[]; chips?: string[]; boards?: string[]; }; type OtaTargetIdentity = { system?: string; chip?: string; board?: string; }; type OtaArtifactInfo = { type?: OtaArtifactType; uri?: string; size?: number; sha256?: string; install?: Record; }; type OtaManifestInfo = { schema_version?: number; package_id?: string; version?: string; target?: OtaTargetInfo; artifacts?: OtaArtifactInfo[]; }; type OtaCheckResult = { manifest?: OtaManifestInfo; current_version?: string; target_version?: string; current_target?: OtaTargetIdentity; decision?: OtaVersionDecision; target_compatible?: boolean; update_available?: boolean; force?: boolean; target_reason?: string; reason?: string; }; type OtaProgress = { job_id?: string; state?: OtaState; error?: OtaErrorCode; message?: string; package_id?: string; version?: string; artifact_index?: number; artifact_count?: number; downloaded?: number; total?: number; artifact_uri?: string; operation?: OtaProgressOperation; operation_unit?: OtaProgressUnit; operation_done?: number; operation_total?: number; operation_percent?: number; artifact_percent?: number; overall_percent?: number; operation_detail?: string; }; type OtaHistoryEntry = { job_id?: string; package_id?: string; version?: string; state?: OtaState; error?: OtaErrorCode; message?: string; }; type OtaAssetsState = { current_root?: string; prev_root?: string; pending_root?: string; package_id?: string; version?: string; has_pending_transaction?: boolean; }; type OtaStorageConfig = { staging_root?: string; state_file?: string; assets_root?: string; factory_root?: string; max_retained_roots?: number; }; //#endregion export { OtaVersionDecision as _, OtaErrorCode as a, OtaProgress as c, OtaSource as d, OtaSourceType as f, OtaTargetInfo as g, OtaTargetIdentity as h, OtaCheckResult as i, OtaProgressOperation as l, OtaStorageConfig as m, OtaArtifactType as n, OtaHistoryEntry as o, OtaState as p, OtaAssetsState as r, OtaManifestInfo as s, OtaArtifactInfo as t, OtaProgressUnit as u }; //# sourceMappingURL=ota-types-ihf2x5T3.d.mts.map