chore: Update schemas to version all types (#383)
This commit is contained in:
parent
91fb8da525
commit
d343201724
16 changed files with 279 additions and 248 deletions
|
|
@ -1,49 +1,50 @@
|
|||
import "@typespec/json-schema";
|
||||
using TypeSpec.JsonSchema;
|
||||
|
||||
@jsonSchema("/modules/default-flatpaks.json")
|
||||
@jsonSchema("/modules/default-flatpaks-v1.json")
|
||||
@jsonSchema("/modules/default-flatpaks-latest.json")
|
||||
model DefaultFlatpaksModule {
|
||||
/** The default-flatpaks module can be used to install or uninstall flatpaks from a configurable remote on every boot.
|
||||
* https://blue-build.org/reference/modules/default-flatpaks/
|
||||
*/
|
||||
type: "default-flatpaks";
|
||||
/** The default-flatpaks module can be used to install or uninstall flatpaks from a configurable remote on every boot.
|
||||
* https://blue-build.org/reference/modules/default-flatpaks/
|
||||
*/
|
||||
type: "default-flatpaks" | "default-flatpaks@v1" | "default-flatpaks@latest";
|
||||
|
||||
/** Whether to send a notification after the install/uninstall is finished. */
|
||||
notify?: boolean = false;
|
||||
/** Whether to send a notification after the install/uninstall is finished. */
|
||||
notify?: boolean = false;
|
||||
|
||||
/** Configuration for system flatpaks. */
|
||||
system?: {
|
||||
/** URL of the repo to add. Defaults to Flathub's URL. */
|
||||
"repo-url"?: string = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||
/** Configuration for system flatpaks. */
|
||||
system?: {
|
||||
/** URL of the repo to add. Defaults to Flathub's URL. */
|
||||
`repo-url`?: string = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||
|
||||
/** Name for the repo to add. */
|
||||
"repo-name"?: string = "flathub";
|
||||
/** Name for the repo to add. */
|
||||
`repo-name`?: string = "flathub";
|
||||
|
||||
/** Pretty title for the repo to add. Not set by default. */
|
||||
"repo-title"?: string;
|
||||
/** Pretty title for the repo to add. Not set by default. */
|
||||
`repo-title`?: string;
|
||||
|
||||
/** List of Flatpak IDs to install from the repo. */
|
||||
install?: Array<string>;
|
||||
/** List of Flatpak IDs to install from the repo. */
|
||||
install?: Array<string>;
|
||||
|
||||
/** List of Flatpak IDs to remove. */
|
||||
remove?: Array<string>;
|
||||
};
|
||||
/** List of Flatpak IDs to remove. */
|
||||
remove?: Array<string>;
|
||||
};
|
||||
|
||||
/** Configuration for user flatpaks. */
|
||||
user?: {
|
||||
/** URL of the repo to add. Defaults to Flathub's URL. */
|
||||
"repo-url"?: string = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||
/** Configuration for user flatpaks. */
|
||||
user?: {
|
||||
/** URL of the repo to add. Defaults to Flathub's URL. */
|
||||
`repo-url`?: string = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||
|
||||
/** Name for the repo to add. */
|
||||
"repo-name"?: string = "flathub";
|
||||
/** Name for the repo to add. */
|
||||
`repo-name`?: string = "flathub";
|
||||
|
||||
/** Pretty title for the repo to add. Not set by default. */
|
||||
"repo-title"?: string;
|
||||
/** Pretty title for the repo to add. Not set by default. */
|
||||
`repo-title`?: string;
|
||||
|
||||
/** List of Flatpak IDs to install from the repo. */
|
||||
install?: Array<string>;
|
||||
/** List of Flatpak IDs to install from the repo. */
|
||||
install?: Array<string>;
|
||||
|
||||
/** List of Flatpak IDs to remove. */
|
||||
remove?: Array<string>;
|
||||
};
|
||||
}
|
||||
/** List of Flatpak IDs to remove. */
|
||||
remove?: Array<string>;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue