ahqstore-types 4.2.0 → 4.3.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 +17 -33
  2. package/package.json +1 -1
@@ -1,20 +1,9 @@
1
1
  // This file has been generated by Specta. DO NOT EDIT.
2
2
 
3
- /**
4
- * šŸ”¬ Under Development
5
- *
6
- *
7
- */
8
- export type AndroidAbi = "Aarch64" | "Armv7" | "X86" | "X64"
9
-
10
3
  export type Semi = { title: string; background: string; appId: string; color: string | null }
11
4
 
12
5
  export type MobSFReport = { status: SecurityReportStatus; score: number }
13
6
 
14
- export type AndroidAssetId = { assetType: "Universal"; assetId: number } | { assetType: "AbiBased"; aarch64: number | null; armv7: number | null; x86: number | null; x86_64: number | null }
15
-
16
- export type Platform = "WindowsX64" | "WindowsArm64" | "LinuxX64" | "LinuxArm64" | "AndroidX64" | "AndroidX86" | "AndroidArm7" | "AndroidArm64"
17
-
18
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 }
19
8
 
20
9
  export type SecurityReportStatus = "Passed" | "Failed" | "Unknown"
@@ -27,16 +16,18 @@ export type Resource = { intent: FileIntent; asset: AssetData; sha: string }
27
16
 
28
17
  export type AppSupport = { discord: string | null; website: string | null; github: string | null }
29
18
 
30
- export type InstallerOptions = { win32: InstallerOptionsWindows | null; winarm: InstallerOptionsWindows | null; linux: InstallerOptionsLinux | null; linuxArm64: InstallerOptionsLinux | null; android: InstallerOptionsAndroid | null }
19
+ export type InstallerOptions = { win32: number | null; winarm: number | null; linux: number | null; linuxArm64: number | null; android: AndroidAssetId | null }
31
20
 
32
21
  export type StatusUpdateData = { queue: QueuedAppData[]; supportsUpdate: boolean; queueOverflow: boolean }
33
22
 
34
- export type FileIntent = { type: "ArtifactZip" } | { type: "Artifact"; extension: string } | { type: "WindowsZip" } | { type: "WindowsInstallerMsi" } | { type: "WindowsInstallerExe" } | { type: "WindowsUWPMsix" } | { type: "WindowsAHQDB" } | { type: "LinuxAppImage" } | { type: "AndroidApkZip" }
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 }
35
24
 
36
25
  export type AssetData = ({ type: "AssetName" } & string) | ({ type: "ArbitraryUrl" } & string)
37
26
 
38
27
  export type DeveloperUser = { name: string; description: string; gh_username: string; icon_base64: string | null; ahq_official: boolean; email: string; support: AppSupport; apps: string[] }
39
28
 
29
+ export type WindowsInstallScope = "User" | "Machine" | "Both"
30
+
40
31
  /**
41
32
  * This is exactly `Vec<(String, Vec<String>)>`
42
33
  */
@@ -58,37 +49,25 @@ export type AppUpdateInstallStatus = { status: "Pending" } | { status: "PendingU
58
49
 
59
50
  export type Commits = { ahqstore: string; alt: string }
60
51
 
61
- export type AppRepo = { provider: RepositoryProvider; author: string; repo: string }
62
-
63
52
  export type InstallerScheme = { PackageIdentifier: string; PackageVersion: string; Scope: string; Installers: Installer[] }
64
53
 
65
- export type RepositoryProvider = "GitHub"
66
-
67
54
  export type Hero = { title: string; description: string; button: string; background: string; author: string; appId: string }
68
55
 
69
56
  export type SubHero = { title: string; background: string; appId: string; color: string | null }
70
57
 
71
- export type GHRepoCommit = { sha: string }
58
+ export type Platform = "WindowsX64" | "WindowsArm64" | "LinuxX64" | "LinuxArm64" | "AndroidX64" | "AndroidX86" | "AndroidArm7" | "AndroidArm64"
72
59
 
73
- /**
74
- * šŸ”¬ Under Development
75
- *
76
- *
77
- */
78
- export type InstallerOptionsLinux = { assetId: number }
60
+ export type AndroidAssetId = { assetType: "Universal"; assetId: number } | { assetType: "AbiBased"; aarch64: number | null; armv7: number | null; x86: number | null; x86_64: number | null }
61
+
62
+ export type GHRepoCommit = { sha: string }
79
63
 
80
64
  export type SearchEntry = { name: string; title: string; id: string }
81
65
 
82
- export type Home = { splash: Splash | null; home: HomeMapData }
66
+ export type AppRepo = { provider: RepositoryProvider; author: string; repo: string }
83
67
 
84
- export type InstallerOptionsWindows = { assetId: number; exec: string | null; scope: WindowsInstallScope | null; installerArgs: string[] | null }
68
+ export type Home = { splash: Splash | null; home: HomeMapData }
85
69
 
86
- /**
87
- * šŸ”¬ Under Development
88
- *
89
- *
90
- */
91
- export type InstallerOptionsAndroid = { asset: AndroidAssetId; min_sdk: number }
70
+ export type RepositoryProvider = "GitHub"
92
71
 
93
72
  export type SecurityReports = { windowsDefenderStatus: SecurityReportStatus; clamAVReport: ClamAVReport; mobSFReport: MobSFReport; ciIntegrity: LLMCICDReport; ciReferencesSecondaryScripts: boolean }
94
73
 
@@ -96,7 +75,12 @@ export type ClamAVReport = { status: SecurityReportStatus; goodFiles: string[];
96
75
 
97
76
  export type QueuedAppData = { id: string; transaction: number; status: AppUpdateInstallStatus; intent: AppActionIntent }
98
77
 
99
- export type WindowsInstallScope = "User" | "Machine"
78
+ /**
79
+ * šŸ”¬ Under Development
80
+ *
81
+ *
82
+ */
83
+ export type AndroidAbi = "Aarch64" | "Armv7" | "X86" | "X64"
100
84
 
101
85
  /**
102
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.2.0",
5
+ "version": "4.3.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",