ahqstore-types 4.3.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.
Files changed (2) hide show
  1. package/ahqstore.types.d.ts +41 -41
  2. package/package.json +1 -1
@@ -1,86 +1,86 @@
1
1
  // This file has been generated by Specta. DO NOT EDIT.
2
2
 
3
- export type Semi = { title: string; background: string; appId: string; color: string | null }
3
+ export type SearchEntry = { name: string; title: string; id: string }
4
4
 
5
- export type MobSFReport = { status: SecurityReportStatus; score: number }
5
+ export type InstallerScheme = { PackageIdentifier: string; PackageVersion: string; Scope: string; Installers: Installer[] }
6
6
 
7
- 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 }
7
+ /**
8
+ * šŸ”¬ Under Development
9
+ *
10
+ *
11
+ */
12
+ export type AndroidAbi = "Aarch64" | "Armv7" | "X86" | "X64"
8
13
 
9
- export type SecurityReportStatus = "Passed" | "Failed" | "Unknown"
14
+ export type AppActionIntent = "Install" | "Uninstall" | "Update"
10
15
 
11
- export type DevData = { name: string | null; id: string; github: string; avatar_url: string | null; verified?: boolean }
16
+ export type Splash = { hero: Hero; subhero: SubHero; third: Semi; fourth: Semi }
17
+
18
+ export type SubHero = { title: string; background: string; appId: string; color: string | null }
19
+
20
+ export type WindowsInstallScope = "User" | "Machine" | "Both"
21
+
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 }
23
+
24
+ export type MobSFReport = { status: SecurityReportStatus; score: number }
25
+
26
+ export type AppRepo = { provider: RepositoryProvider; author: string; repo: string }
12
27
 
13
28
  export type Installer = { Architecture: string; InstallerType: string | null; InstallerLocale: string | null; InstallerUrl: string }
14
29
 
15
30
  export type Resource = { intent: FileIntent; asset: AssetData; sha: string }
16
31
 
17
- export type AppSupport = { discord: string | null; website: string | null; github: string | null }
32
+ export type Platform = "WindowsX64" | "WindowsArm64" | "LinuxX64" | "LinuxArm64" | "AndroidX64" | "AndroidX86" | "AndroidArm7" | "AndroidArm64"
33
+
34
+ export type Hero = { title: string; description: string; button: string; background: string; author: string; appId: string }
18
35
 
19
36
  export type InstallerOptions = { win32: number | null; winarm: number | null; linux: number | null; linuxArm64: number | null; android: AndroidAssetId | null }
20
37
 
21
38
  export type StatusUpdateData = { queue: QueuedAppData[]; supportsUpdate: boolean; queueOverflow: boolean }
22
39
 
23
- 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 }
24
-
25
- export type AssetData = ({ type: "AssetName" } & string) | ({ type: "ArbitraryUrl" } & string)
40
+ export type AndroidAssetId = { assetType: "Universal"; assetId: number } | { assetType: "AbiBased"; aarch64: number | null; armv7: number | null; x86: number | null; x86_64: number | null }
26
41
 
27
42
  export type DeveloperUser = { name: string; description: string; gh_username: string; icon_base64: string | null; ahq_official: boolean; email: string; support: AppSupport; apps: string[] }
28
43
 
29
- export type WindowsInstallScope = "User" | "Machine" | "Both"
30
-
31
44
  /**
32
45
  * This is exactly `Vec<(String, Vec<String>)>`
33
46
  */
34
47
  export type HomeMapData = { inner: ([string, string[]])[] }
35
48
 
36
- export type Splash = { hero: Hero; subhero: SubHero; third: Semi; fourth: Semi }
49
+ export type ClamAVReport = { status: SecurityReportStatus; goodFiles: string[]; badFiles: string[]; virusNames: string[] }
37
50
 
38
51
  export type Attestations = { oidc: string; ed25519: string; workflow: string; workflowSha: string; security_reports: SecurityReports }
39
52
 
40
- export type AppActionIntent = "Install" | "Uninstall" | "Update"
41
-
42
- /**
43
- * This uses an LLM to verify and attest that the building
44
- * CI CD indeed builds the codebase on the fly of the exact repository
45
- */
46
- export type LLMCICDReport = { status: SecurityReportStatus; integrityScore: number; intentScore: number; bestPracticesScore: number; totalScore: number }
47
-
48
- 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)
49
54
 
50
55
  export type Commits = { ahqstore: string; alt: string }
51
56
 
52
- export type InstallerScheme = { PackageIdentifier: string; PackageVersion: string; Scope: string; Installers: Installer[] }
53
-
54
- export type Hero = { title: string; description: string; button: string; background: string; author: string; appId: string }
55
-
56
- export type SubHero = { title: string; background: string; appId: string; color: string | null }
57
-
58
- export type Platform = "WindowsX64" | "WindowsArm64" | "LinuxX64" | "LinuxArm64" | "AndroidX64" | "AndroidX86" | "AndroidArm7" | "AndroidArm64"
57
+ export type RepositoryProvider = "GitHub"
59
58
 
60
- export type AndroidAssetId = { assetType: "Universal"; assetId: number } | { assetType: "AbiBased"; aarch64: number | null; armv7: number | null; x86: number | null; x86_64: number | null }
59
+ export type QueuedAppData = { id: string; transaction: number; status: AppUpdateInstallStatus; intent: AppActionIntent }
61
60
 
62
61
  export type GHRepoCommit = { sha: string }
63
62
 
64
- export type SearchEntry = { name: string; title: string; id: string }
65
-
66
- export type AppRepo = { provider: RepositoryProvider; author: string; repo: string }
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 }
67
64
 
68
- export type Home = { splash: Splash | null; home: HomeMapData }
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 }
69
66
 
70
- export type RepositoryProvider = "GitHub"
67
+ export type SecurityReportStatus = "Passed" | "Failed" | "Unknown"
71
68
 
72
- export type SecurityReports = { windowsDefenderStatus: SecurityReportStatus; clamAVReport: ClamAVReport; mobSFReport: MobSFReport; ciIntegrity: LLMCICDReport; ciReferencesSecondaryScripts: boolean }
69
+ export type DevData = { name: string | null; id: string; github: string; avatar_url: string | null; verified?: boolean }
73
70
 
74
- export type ClamAVReport = { status: SecurityReportStatus; goodFiles: string[]; badFiles: string[]; virusNames: string[] }
71
+ export type AppSupport = { discord: string | null; website: string | null; github: string | null }
75
72
 
76
- export type QueuedAppData = { id: string; transaction: number; status: AppUpdateInstallStatus; intent: AppActionIntent }
73
+ export type Semi = { title: string; background: string; appId: string; color: string | null }
77
74
 
78
75
  /**
79
- * šŸ”¬ Under Development
80
- *
81
- *
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
82
78
  */
83
- export type AndroidAbi = "Aarch64" | "Armv7" | "X86" | "X64"
79
+ export type LLMCICDReport = { status: SecurityReportStatus; integrityScore: number; intentScore: number; bestPracticesScore: number; totalScore: number }
80
+
81
+ export type SecurityReports = { windowsDefenderStatus: SecurityReportStatus; clamAVReport: ClamAVReport; mobSFReport: MobSFReport; ciIntegrity: LLMCICDReport; ciReferencesSecondaryScripts: boolean }
82
+
83
+ export type Home = { splash: Splash | null; home: HomeMapData }
84
84
 
85
85
  /**
86
86
  * Use the official ahqstore (<https://crates.io/crates/ahqstore_cli_rs>) cli\nšŸŽÆ Introduced in v1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ahqstore-types",
3
3
  "type": "module",
4
4
  "description": "Standard types used by AHQ Store",
5
- "version": "4.3.0",
5
+ "version": "4.4.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",