ahqstore-types 4.2.0 ā 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ahqstore.types.d.ts +31 -47
- package/package.json +1 -1
package/ahqstore.types.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
// This file has been generated by Specta. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
+
export type SearchEntry = { name: string; title: string; id: string }
|
|
4
|
+
|
|
5
|
+
export type InstallerScheme = { PackageIdentifier: string; PackageVersion: string; Scope: string; Installers: Installer[] }
|
|
6
|
+
|
|
3
7
|
/**
|
|
4
8
|
* š¬ Under Development
|
|
5
9
|
*
|
|
@@ -7,33 +11,33 @@
|
|
|
7
11
|
*/
|
|
8
12
|
export type AndroidAbi = "Aarch64" | "Armv7" | "X86" | "X64"
|
|
9
13
|
|
|
10
|
-
export type
|
|
14
|
+
export type AppActionIntent = "Install" | "Uninstall" | "Update"
|
|
11
15
|
|
|
12
|
-
export type
|
|
16
|
+
export type Splash = { hero: Hero; subhero: SubHero; third: Semi; fourth: Semi }
|
|
13
17
|
|
|
14
|
-
export type
|
|
18
|
+
export type SubHero = { title: string; background: string; appId: string; color: string | null }
|
|
15
19
|
|
|
16
|
-
export type
|
|
20
|
+
export type WindowsInstallScope = "User" | "Machine" | "Both"
|
|
17
21
|
|
|
18
|
-
export type
|
|
22
|
+
export type AppUpdateInstallStatus = { status: "Pending" } | { status: "PendingUserAction" } | { status: "Cancelled"; time: number } | { status: "Downloading"; progress: number } | { status: "AVScanning" } | { status: "PendingInstall" } | { status: "Installing"; progress: number | null } | { status: "MoreDwnlNeeded"; progress: number; current: number; items: number } | { status: "CopyingFiles"; percentage: number; total: number } | { status: "Finalizing" } | { status: "Updating" } | { status: "Uninstalling" } | { status: "Successful"; time: number } | { status: "Error"; err: string; time: number }
|
|
19
23
|
|
|
20
|
-
export type
|
|
24
|
+
export type MobSFReport = { status: SecurityReportStatus; score: number }
|
|
21
25
|
|
|
22
|
-
export type
|
|
26
|
+
export type AppRepo = { provider: RepositoryProvider; author: string; repo: string }
|
|
23
27
|
|
|
24
28
|
export type Installer = { Architecture: string; InstallerType: string | null; InstallerLocale: string | null; InstallerUrl: string }
|
|
25
29
|
|
|
26
30
|
export type Resource = { intent: FileIntent; asset: AssetData; sha: string }
|
|
27
31
|
|
|
28
|
-
export type
|
|
32
|
+
export type Platform = "WindowsX64" | "WindowsArm64" | "LinuxX64" | "LinuxArm64" | "AndroidX64" | "AndroidX86" | "AndroidArm7" | "AndroidArm64"
|
|
29
33
|
|
|
30
|
-
export type
|
|
34
|
+
export type Hero = { title: string; description: string; button: string; background: string; author: string; appId: string }
|
|
31
35
|
|
|
32
|
-
export type
|
|
36
|
+
export type InstallerOptions = { win32: number | null; winarm: number | null; linux: number | null; linuxArm64: number | null; android: AndroidAssetId | null }
|
|
33
37
|
|
|
34
|
-
export type
|
|
38
|
+
export type StatusUpdateData = { queue: QueuedAppData[]; supportsUpdate: boolean; queueOverflow: boolean }
|
|
35
39
|
|
|
36
|
-
export type
|
|
40
|
+
export type AndroidAssetId = { assetType: "Universal"; assetId: number } | { assetType: "AbiBased"; aarch64: number | null; armv7: number | null; x86: number | null; x86_64: number | null }
|
|
37
41
|
|
|
38
42
|
export type DeveloperUser = { name: string; description: string; gh_username: string; icon_base64: string | null; ahq_official: boolean; email: string; support: AppSupport; apps: string[] }
|
|
39
43
|
|
|
@@ -42,61 +46,41 @@ export type DeveloperUser = { name: string; description: string; gh_username: st
|
|
|
42
46
|
*/
|
|
43
47
|
export type HomeMapData = { inner: ([string, string[]])[] }
|
|
44
48
|
|
|
45
|
-
export type
|
|
49
|
+
export type ClamAVReport = { status: SecurityReportStatus; goodFiles: string[]; badFiles: string[]; virusNames: string[] }
|
|
46
50
|
|
|
47
51
|
export type Attestations = { oidc: string; ed25519: string; workflow: string; workflowSha: string; security_reports: SecurityReports }
|
|
48
52
|
|
|
49
|
-
export type
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* This uses an LLM to verify and attest that the building
|
|
53
|
-
* CI CD indeed builds the codebase on the fly of the exact repository
|
|
54
|
-
*/
|
|
55
|
-
export type LLMCICDReport = { status: SecurityReportStatus; integrityScore: number; intentScore: number; bestPracticesScore: number; totalScore: number }
|
|
56
|
-
|
|
57
|
-
export type AppUpdateInstallStatus = { status: "Pending" } | { status: "PendingUserAction" } | { status: "Cancelled"; time: number } | { status: "Downloading"; progress: number } | { status: "AVScanning" } | { status: "PendingInstall" } | { status: "Installing"; progress: number | null } | { status: "MoreDwnlNeeded"; progress: number; current: number; items: number } | { status: "CopyingFiles"; percentage: number; total: number } | { status: "Finalizing" } | { status: "Updating" } | { status: "Uninstalling" } | { status: "Successful"; time: number } | { status: "Error"; err: string; time: number }
|
|
53
|
+
export type AssetData = ({ type: "AssetName" } & string) | ({ type: "ArbitraryUrl" } & string)
|
|
58
54
|
|
|
59
55
|
export type Commits = { ahqstore: string; alt: string }
|
|
60
56
|
|
|
61
|
-
export type AppRepo = { provider: RepositoryProvider; author: string; repo: string }
|
|
62
|
-
|
|
63
|
-
export type InstallerScheme = { PackageIdentifier: string; PackageVersion: string; Scope: string; Installers: Installer[] }
|
|
64
|
-
|
|
65
57
|
export type RepositoryProvider = "GitHub"
|
|
66
58
|
|
|
67
|
-
export type
|
|
68
|
-
|
|
69
|
-
export type SubHero = { title: string; background: string; appId: string; color: string | null }
|
|
59
|
+
export type QueuedAppData = { id: string; transaction: number; status: AppUpdateInstallStatus; intent: AppActionIntent }
|
|
70
60
|
|
|
71
61
|
export type GHRepoCommit = { sha: string }
|
|
72
62
|
|
|
73
|
-
|
|
74
|
-
* š¬ Under Development
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*/
|
|
78
|
-
export type InstallerOptionsLinux = { assetId: number }
|
|
63
|
+
export type FileIntent = { type: "ArtifactZip" } | { type: "Artifact"; extension: string } | { type: "WindowsZip"; exec: string; scope: WindowsInstallScope } | { type: "WindowsInstallerMsi"; guid: string | null } | { type: "WindowsInstallerExe"; args: string[] | null } | { type: "WindowsUWPMsix"; aumid: string | null } | { type: "WindowsAHQDB"; scope: WindowsInstallScope } | { type: "LinuxAppImage" } | { type: "AndroidApkZip"; min_sdk: number }
|
|
79
64
|
|
|
80
|
-
export type
|
|
65
|
+
export type WingetApplication = { PackageIdentifier: string; PackageVersion: string; Publisher: string | null; PublisherUrl: string | null; Copyright: string | null; ShortDescription: string | null; Description: string | null; ReleaseNotes: string | null; PackageName: string; PackageUrl: string | null; License: string | null; LicenseUrl: string | null }
|
|
81
66
|
|
|
82
|
-
export type
|
|
67
|
+
export type SecurityReportStatus = "Passed" | "Failed" | "Unknown"
|
|
83
68
|
|
|
84
|
-
export type
|
|
69
|
+
export type DevData = { name: string | null; id: string; github: string; avatar_url: string | null; verified?: boolean }
|
|
70
|
+
|
|
71
|
+
export type AppSupport = { discord: string | null; website: string | null; github: string | null }
|
|
72
|
+
|
|
73
|
+
export type Semi = { title: string; background: string; appId: string; color: string | null }
|
|
85
74
|
|
|
86
75
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
76
|
+
* This uses an LLM to verify and attest that the building
|
|
77
|
+
* CI CD indeed builds the codebase on the fly of the exact repository
|
|
90
78
|
*/
|
|
91
|
-
export type
|
|
79
|
+
export type LLMCICDReport = { status: SecurityReportStatus; integrityScore: number; intentScore: number; bestPracticesScore: number; totalScore: number }
|
|
92
80
|
|
|
93
81
|
export type SecurityReports = { windowsDefenderStatus: SecurityReportStatus; clamAVReport: ClamAVReport; mobSFReport: MobSFReport; ciIntegrity: LLMCICDReport; ciReferencesSecondaryScripts: boolean }
|
|
94
82
|
|
|
95
|
-
export type
|
|
96
|
-
|
|
97
|
-
export type QueuedAppData = { id: string; transaction: number; status: AppUpdateInstallStatus; intent: AppActionIntent }
|
|
98
|
-
|
|
99
|
-
export type WindowsInstallScope = "User" | "Machine"
|
|
83
|
+
export type Home = { splash: Splash | null; home: HomeMapData }
|
|
100
84
|
|
|
101
85
|
/**
|
|
102
86
|
* Use the official ahqstore (<https://crates.io/crates/ahqstore_cli_rs>) cli\nšÆ Introduced in v1
|