diff --git a/api/@ohos.update.d.ts b/api/@ohos.update.d.ts index 8f6b97e8d4e6719d328c67f8d3df700db36de4ea..c94591121a2d737965fc6e1cf517fd4ab864f84f 100644 --- a/api/@ohos.update.d.ts +++ b/api/@ohos.update.d.ts @@ -927,6 +927,16 @@ declare namespace update { */ effectiveMode: EffectiveMode; + /** + * Ota mode + * + * @type { ?OtaMode } + * @syscap SystemCapability.Update.UpdateService + * @systemapi hide for inner use. + * @since 18 + */ + otaMode?: OtaMode; + /** * Information about the version description file * @@ -1621,6 +1631,43 @@ declare namespace update { LIVE_AND_COLD = 3 } + /** + * Enumerates ota mode. + * + * @enum { number } + * @syscap SystemCapability.Update.UpdateService + * @systemapi hide for inner use. + * @since 9 + */ + export enum OtaMode { + /** + * normal update. + * + * @syscap SystemCapability.Update.UpdateService + * @systemapi hide for inner use. + * @since 9 + */ + NORMAL_OTA = 0, + + /** + * ab update. + * + * @syscap SystemCapability.Update.UpdateService + * @systemapi hide for inner use. + * @since 9 + */ + AB_REGULAR_OTA = 1, + + /** + * ab stream update. + * + * @syscap SystemCapability.Update.UpdateService + * @systemapi hide for inner use. + * @since 9 + */ + AB_STREAM_OTA = 2 + } + /** * Enumerates description type. *