mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-13 12:13:42 +01:00
33 lines
964 B
TypeScript
Generated
33 lines
964 B
TypeScript
Generated
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
|
|
export type UpdateInfo = {
|
|
replyEventId: string;
|
|
version: string;
|
|
downloaded: boolean;
|
|
/**
|
|
* How this update gets applied. Anything but `Integrated` means the app can't do it
|
|
* itself and the user is told how to update instead.
|
|
*/
|
|
install: UpdateInstall;
|
|
};
|
|
|
|
/**
|
|
* How an update can be applied to this install.
|
|
*/
|
|
export type UpdateInstall = "integrated" | "flatpak" | "manual";
|
|
|
|
export type UpdateResponse = { type: "ack" } | { type: "action"; action: UpdateResponseAction };
|
|
|
|
export type UpdateResponseAction = "install" | "skip";
|
|
|
|
/**
|
|
* Where this process's update stands.
|
|
*/
|
|
export type UpdateState =
|
|
| { state: "idle" }
|
|
| { state: "checking" }
|
|
| { state: "offered"; version: string }
|
|
| { state: "downloading"; version: string }
|
|
| { state: "installing"; version: string }
|
|
| { state: "installed"; version: string };
|