mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-27 05:44:02 +02:00
38 lines
1.1 KiB
TypeScript
Generated
38 lines
1.1 KiB
TypeScript
Generated
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
|
|
export type PluginUpdateInfo = { name: string; currentVersion: string; latestVersion: string };
|
|
|
|
export type PluginUpdateNotification = { updateCount: number; plugins: Array<PluginUpdateInfo> };
|
|
|
|
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";
|
|
|
|
export type YaakNotification = {
|
|
timestamp: string;
|
|
timeout: number | null;
|
|
id: string;
|
|
title: string | null;
|
|
message: string;
|
|
color: string | null;
|
|
action: YaakNotificationAction | null;
|
|
};
|
|
|
|
export type YaakNotificationAction = { label: string; url: string };
|