@widget-js/core 24.1.1-beta.84 → 24.1.1-beta.86

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/dist/index.d.cts CHANGED
@@ -1186,6 +1186,7 @@ declare class DeployedWidgetApiImpl extends BaseApi<DeployedWidgetApiMethods> im
1186
1186
  }
1187
1187
  declare const DeployedWidgetApi: DeployedWidgetApiImpl;
1188
1188
 
1189
+ type AppRoutes = '/widget/search' | '/widget/package' | '/setting/common' | '/setting/theme' | '/setting/ai' | '/setting/proxy' | '/setting/info' | '/user/profile';
1189
1190
  /**
1190
1191
  * AppApi 接口定义了与应用程序相关的一系列方法。这些方法提供了应用程序配置管理、版本信息获取、路径获取以及应用内置窗口操作等功能。
1191
1192
  * @see [Electron API App](https://www.electronjs.org/docs/latest/api/app)
@@ -1236,6 +1237,7 @@ interface IAppApi {
1236
1237
  getAppPath: () => Promise<string>;
1237
1238
  /**
1238
1239
  * Open the app's add/search widget window
1240
+ * @deprecated Use `showAppWindow('/widget/add', options)` instead, which is more flexible and supports custom routes.
1239
1241
  */
1240
1242
  openAddWidgetWindow: () => Promise<void>;
1241
1243
  /**
@@ -1247,22 +1249,29 @@ interface IAppApi {
1247
1249
  * @param route
1248
1250
  * @param options
1249
1251
  */
1250
- showAppWindow: (route: string | '/user/profile' | '/auth/register', options: BrowserWindowOptions) => Promise<void>;
1252
+ showAppWindow: (route: string | AppRoutes, options?: BrowserWindowOptions) => Promise<void>;
1251
1253
  /**
1252
1254
  * Open the app's setting window
1255
+ * @deprecated Use `showAppWindow('/setting/common', options)` instead, which is more flexible and supports custom routes.
1253
1256
  */
1254
1257
  openSettingWindow: () => Promise<void>;
1255
1258
  /**
1256
1259
  * Open the app's update window
1260
+ * @deprecated Use `showAppWindow('/widget/info', options)` instead, which is more flexible and supports custom routes.
1257
1261
  */
1258
1262
  openCheckUpdateWindow: () => Promise<void>;
1259
1263
  /**
1260
1264
  * open the app's widget manager window
1265
+ * @deprecated Use `showAppWindow('/widget/search', options)` instead, which is more flexible and supports custom routes.
1261
1266
  */
1262
1267
  openWidgetManagerWindow: () => Promise<void>;
1268
+ /**
1269
+ * @deprecated Use `showAppWindow('/widget/package', options)` instead, which is more flexible and supports custom routes.
1270
+ */
1263
1271
  openWidgetPackageManagerWindow: () => Promise<void>;
1264
1272
  /**
1265
1273
  * Open the app's runtime info window
1274
+ * @deprecated Use `showAppWindow('/setting/info', options)` instead, which is more flexible and supports custom routes.
1266
1275
  */
1267
1276
  openRuntimeInfoWindow: () => Promise<void>;
1268
1277
  /**
@@ -1430,8 +1439,9 @@ interface IWidgetPackageApi {
1430
1439
  /**
1431
1440
  * Uninstall a widget package by package name.
1432
1441
  * @param packageName
1442
+ * @param clearData Whether to clear the data of the widget package, default is false.
1433
1443
  */
1434
- uninstall: (widgetPackage: WidgetPackage | string) => Promise<void>;
1444
+ uninstall: (widgetPackage: WidgetPackage | string, clearData?: boolean) => Promise<void>;
1435
1445
  }
1436
1446
  type WidgetPackageApiMethods = keyof IWidgetPackageApi;
1437
1447
  /**
@@ -1870,6 +1880,8 @@ interface SmartData {
1870
1880
  passed: boolean;
1871
1881
  };
1872
1882
  lifetime_hours: number;
1883
+ error_count_total: number;
1884
+ error_count_outdated: number;
1873
1885
  }[];
1874
1886
  count: number;
1875
1887
  error_count_total: number;
@@ -2084,30 +2096,569 @@ interface CurrentLoadData {
2084
2096
  rawCurrentLoadGuest: number;
2085
2097
  cpus: CurrentLoadCpuData[];
2086
2098
  }
2087
-
2088
- type HardwareType = 'Cpu' | 'Gpu' | 'Storage' | 'GpuAmd' | 'GpuNvidia' | 'Memory' | 'GpuIntel' | 'Motherboard' | 'SuperIO' | 'Cooler' | 'Battery' | 'Psu' | 'EmbeddedController' | 'Network';
2089
- type SensorType = 'Voltage' | 'Current' | 'Power' | 'Clock' | 'Temperature' | 'Load' | 'Frequency' | 'Fan' | 'Flow' | 'Control' | 'Level' | 'Factor' | 'Data' | 'SmallData' | 'Throughput' | 'TimeSpan' | 'Energy' | 'Noise';
2090
- interface Hardware {
2091
- id?: number;
2092
- hardwareType: HardwareType;
2093
- hardwareName: string;
2094
- children: HardwareSensor[];
2099
+ interface TimeData {
2100
+ current: number;
2101
+ uptime: number;
2102
+ timezone: string;
2103
+ timezoneName: string;
2104
+ }
2105
+ interface RaspberryRevisionData {
2106
+ manufacturer: string;
2107
+ processor: string;
2108
+ type: string;
2109
+ revision: string;
2110
+ }
2111
+ interface SystemData {
2112
+ manufacturer: string;
2113
+ model: string;
2114
+ version: string;
2115
+ serial: string;
2116
+ uuid: string;
2117
+ sku: string;
2118
+ virtual: boolean;
2119
+ virtualHost?: string;
2120
+ raspberry?: RaspberryRevisionData;
2121
+ }
2122
+ interface BiosData {
2123
+ vendor: string;
2124
+ version: string;
2125
+ releaseDate: string;
2126
+ revision: string;
2127
+ serial?: string;
2128
+ language?: string;
2129
+ features?: string[];
2130
+ }
2131
+ interface BaseboardData {
2132
+ manufacturer: string;
2133
+ model: string;
2134
+ version: string;
2135
+ serial: string;
2136
+ assetTag: string;
2137
+ memMax: number | null;
2138
+ memSlots: number | null;
2139
+ }
2140
+ interface ChassisData {
2141
+ manufacturer: string;
2142
+ model: string;
2143
+ type: string;
2144
+ version: string;
2145
+ serial: string;
2146
+ assetTag: string;
2147
+ sku: string;
2148
+ }
2149
+ interface UuidData {
2150
+ os: string;
2151
+ hardware: string;
2152
+ macs: string[];
2153
+ }
2154
+ interface CpuTemperatureData {
2155
+ main: number;
2156
+ cores: number[];
2157
+ max: number;
2158
+ socket?: number[];
2159
+ chipset?: number;
2160
+ }
2161
+ interface FsSizeData {
2162
+ fs: string;
2163
+ type: string;
2164
+ size: number;
2165
+ used: number;
2166
+ available: number;
2167
+ use: number;
2168
+ mount: string;
2169
+ rw: boolean | null;
2170
+ }
2171
+ interface FsOpenFilesData {
2172
+ max: number;
2173
+ allocated: number;
2174
+ available: number;
2175
+ }
2176
+ interface BlockDevicesData {
2177
+ name: string;
2178
+ identifier: string;
2179
+ type: string;
2180
+ fsType: string;
2181
+ mount: string;
2182
+ size: number;
2183
+ physical: string;
2184
+ uuid: string;
2185
+ label: string;
2186
+ model: string;
2187
+ serial: string;
2188
+ removable: boolean;
2189
+ protocol: string;
2190
+ group?: string;
2191
+ device?: string;
2192
+ }
2193
+ interface FsStatsData {
2194
+ rx: number;
2195
+ wx: number;
2196
+ tx: number;
2197
+ rx_sec: number | null;
2198
+ wx_sec: number | null;
2199
+ tx_sec: number | null;
2200
+ ms: number;
2201
+ }
2202
+ interface DisksIoData {
2203
+ rIO: number;
2204
+ wIO: number;
2205
+ tIO: number;
2206
+ rIO_sec: number | null;
2207
+ wIO_sec: number | null;
2208
+ tIO_sec: number | null;
2209
+ rWaitTime: number;
2210
+ wWaitTime: number;
2211
+ tWaitTime: number;
2212
+ rWaitPercent: number | null;
2213
+ wWaitPercent: number | null;
2214
+ tWaitPercent: number | null;
2215
+ ms: number;
2216
+ }
2217
+ interface NetworkInterfacesData {
2218
+ iface: string;
2219
+ ifaceName: string;
2220
+ default: boolean;
2221
+ ip4: string;
2222
+ ip4subnet: string;
2223
+ ip6: string;
2224
+ ip6subnet: string;
2225
+ mac: string;
2226
+ internal: boolean;
2227
+ virtual: boolean;
2228
+ operstate: string;
2229
+ type: string;
2230
+ duplex: string;
2231
+ mtu: number | null;
2232
+ speed: number | null;
2233
+ dhcp: boolean;
2234
+ dnsSuffix: string;
2235
+ ieee8021xAuth: string;
2236
+ ieee8021xState: string;
2237
+ carrierChanges: number;
2238
+ }
2239
+ interface NetworkStatsData {
2240
+ iface: string;
2241
+ operstate: string;
2242
+ rx_bytes: number;
2243
+ rx_dropped: number;
2244
+ rx_errors: number;
2245
+ tx_bytes: number;
2246
+ tx_dropped: number;
2247
+ tx_errors: number;
2248
+ rx_sec: number;
2249
+ tx_sec: number;
2250
+ ms: number;
2251
+ }
2252
+ interface NetworkConnectionsData {
2253
+ protocol: string;
2254
+ localAddress: string;
2255
+ localPort: string;
2256
+ peerAddress: string;
2257
+ peerPort: string;
2258
+ state: string;
2259
+ pid: number;
2260
+ process: string;
2261
+ }
2262
+ interface InetChecksiteData {
2263
+ url: string;
2264
+ ok: boolean;
2265
+ status: number;
2266
+ ms: number;
2267
+ }
2268
+ interface WifiNetworkData {
2269
+ ssid: string;
2270
+ bssid: string;
2271
+ mode: string;
2272
+ channel: number;
2273
+ frequency: number;
2274
+ signalLevel: number;
2275
+ quality: number;
2276
+ security: string[];
2277
+ wpaFlags: string[];
2278
+ rsnFlags: string[];
2279
+ }
2280
+ interface WifiInterfaceData {
2281
+ id: string;
2282
+ iface: string;
2283
+ model: string;
2284
+ vendor: string;
2285
+ mac: string;
2286
+ }
2287
+ interface WifiConnectionData {
2288
+ id: string;
2289
+ iface: string;
2290
+ model: string;
2291
+ ssid: string;
2292
+ bssid: string;
2293
+ channel: number;
2294
+ frequency: number;
2295
+ type: string;
2296
+ security: string;
2297
+ signalLevel: number;
2298
+ quality: number;
2299
+ txRate: number;
2300
+ }
2301
+ interface ProcessesData {
2302
+ all: number;
2303
+ running: number;
2304
+ blocked: number;
2305
+ sleeping: number;
2306
+ unknown: number;
2307
+ list: ProcessesProcessData[];
2308
+ }
2309
+ interface ProcessesProcessData {
2310
+ pid: number;
2311
+ parentPid: number;
2312
+ name: string;
2313
+ cpu: number;
2314
+ cpuu: number;
2315
+ cpus: number;
2316
+ mem: number;
2317
+ priority: number;
2318
+ memVsz: number;
2319
+ memRss: number;
2320
+ nice: number;
2321
+ started: string;
2322
+ state: string;
2323
+ tty: string;
2324
+ user: string;
2325
+ command: string;
2326
+ params: string;
2327
+ path: string;
2328
+ }
2329
+ interface ProcessesProcessLoadData {
2330
+ proc: string;
2331
+ pid: number;
2332
+ pids: number[];
2333
+ cpu: number;
2334
+ mem: number;
2095
2335
  }
2096
- interface Node {
2097
- id?: number;
2098
- text?: string;
2099
- min?: number;
2100
- max?: number;
2101
- value?: number;
2102
- unit?: string;
2103
- children?: any[];
2336
+ interface ServicesData {
2337
+ name: string;
2338
+ running: boolean;
2339
+ startmode: string;
2340
+ pids: number[];
2341
+ cpu: number;
2342
+ mem: number;
2343
+ }
2344
+ interface DockerInfoData {
2345
+ id: string;
2346
+ containers: number;
2347
+ containersRunning: number;
2348
+ containersPaused: number;
2349
+ containersStopped: number;
2350
+ images: number;
2351
+ driver: string;
2352
+ memoryLimit: boolean;
2353
+ swapLimit: boolean;
2354
+ kernelMemory: boolean;
2355
+ cpuCfsPeriod: boolean;
2356
+ cpuCfsQuota: boolean;
2357
+ cpuShares: boolean;
2358
+ cpuSet: boolean;
2359
+ ipv4Forwarding: boolean;
2360
+ bridgeNfIptables: boolean;
2361
+ bridgeNfIp6tables: boolean;
2362
+ debug: boolean;
2363
+ nfd: number;
2364
+ oomKillDisable: boolean;
2365
+ ngoroutines: number;
2366
+ systemTime: string;
2367
+ loggingDriver: string;
2368
+ cgroupDriver: string;
2369
+ nEventsListener: number;
2370
+ kernelVersion: string;
2371
+ operatingSystem: string;
2372
+ osType: string;
2373
+ architecture: string;
2374
+ ncpu: number;
2375
+ memTotal: number;
2376
+ dockerRootDir: string;
2377
+ httpProxy: string;
2378
+ httpsProxy: string;
2379
+ noProxy: string;
2380
+ name: string;
2381
+ labels: string[];
2382
+ experimentalBuild: boolean;
2383
+ serverVersion: string;
2384
+ clusterStore: string;
2385
+ clusterAdvertise: string;
2386
+ defaultRuntime: string;
2387
+ liveRestoreEnabled: boolean;
2388
+ isolation: string;
2389
+ initBinary: string;
2390
+ productLicense: string;
2391
+ }
2392
+ interface DockerImageData {
2393
+ id: string;
2394
+ container: string;
2395
+ comment: string;
2396
+ os: string;
2397
+ architecture: string;
2398
+ parent: string;
2399
+ dockerVersion: string;
2400
+ size: number;
2401
+ sharedSize: number;
2402
+ virtualSize: number;
2403
+ author: string;
2404
+ created: number;
2405
+ containerConfig: any;
2406
+ graphDriver: any;
2407
+ repoDigests: any;
2408
+ repoTags: any;
2409
+ config: any;
2410
+ rootFS: any;
2411
+ }
2412
+ interface DockerContainerData {
2413
+ id: string;
2414
+ name: string;
2415
+ image: string;
2416
+ imageID: string;
2417
+ command: string;
2418
+ created: number;
2419
+ started: number;
2420
+ finished: number;
2421
+ createdAt: string;
2422
+ startedAt: string;
2423
+ finishedAt: string;
2424
+ state: string;
2425
+ restartCount: number;
2426
+ platform: string;
2427
+ driver: string;
2428
+ ports: number[];
2429
+ mounts: DockerContainerMountData[];
2430
+ }
2431
+ interface DockerContainerMountData {
2432
+ Type: string;
2433
+ Source: string;
2434
+ Destination: string;
2435
+ Mode: string;
2436
+ RW: boolean;
2437
+ Propagation: string;
2438
+ }
2439
+ interface DockerContainerStatsData {
2440
+ id: string;
2441
+ memUsage: number;
2442
+ memLimit: number;
2443
+ memPercent: number;
2444
+ cpuPercent: number;
2445
+ pids: number;
2446
+ netIO: {
2447
+ rx: number;
2448
+ wx: number;
2449
+ };
2450
+ blockIO: {
2451
+ r: number;
2452
+ w: number;
2453
+ };
2454
+ restartCount: number;
2455
+ cpuStats: any;
2456
+ precpuStats: any;
2457
+ memoryStats: any;
2458
+ networks: any;
2459
+ }
2460
+ interface DockerContainerProcessData {
2461
+ pidHost: string;
2462
+ ppid: string;
2463
+ pgid: string;
2464
+ user: string;
2465
+ ruser: string;
2466
+ group: string;
2467
+ rgroup: string;
2468
+ stat: string;
2469
+ time: string;
2470
+ elapsed: string;
2471
+ nice: string;
2472
+ rss: string;
2473
+ vsz: string;
2474
+ command: string;
2475
+ }
2476
+ interface DockerVolumeData {
2477
+ name: string;
2478
+ driver: string;
2479
+ labels: any;
2480
+ mountpoint: string;
2481
+ options: any;
2482
+ scope: string;
2483
+ created: number;
2484
+ }
2485
+ interface VboxInfoData {
2486
+ id: string;
2487
+ name: string;
2488
+ running: boolean;
2489
+ started: string;
2490
+ runningSince: number;
2491
+ stopped: string;
2492
+ stoppedSince: number;
2493
+ guestOS: string;
2494
+ hardwareUUID: string;
2495
+ memory: number;
2496
+ vram: number;
2497
+ cpus: number;
2498
+ cpuExepCap: string;
2499
+ cpuProfile: string;
2500
+ chipset: string;
2501
+ firmware: string;
2502
+ pageFusion: boolean;
2503
+ configFile: string;
2504
+ snapshotFolder: string;
2505
+ logFolder: string;
2506
+ hpet: boolean;
2507
+ pae: boolean;
2508
+ longMode: boolean;
2509
+ tripleFaultReset: boolean;
2510
+ apic: boolean;
2511
+ x2Apic: boolean;
2512
+ acpi: boolean;
2513
+ ioApic: boolean;
2514
+ biosApicMode: string;
2515
+ bootMenuMode: string;
2516
+ bootDevice1: string;
2517
+ bootDevice2: string;
2518
+ bootDevice3: string;
2519
+ bootDevice4: string;
2520
+ timeOffset: string;
2521
+ rtc: string;
2522
+ }
2523
+ interface PrinterData {
2524
+ id: number;
2525
+ name: string;
2526
+ model: string;
2527
+ uri: string;
2528
+ uuid: string;
2529
+ local: boolean;
2530
+ status: string;
2531
+ default: boolean;
2532
+ shared: boolean;
2533
+ }
2534
+ interface UsbData {
2535
+ id: number | string;
2536
+ bus: number;
2537
+ deviceId: number;
2538
+ name: string;
2539
+ type: string;
2540
+ removable: boolean;
2541
+ vendor: string;
2542
+ manufacturer: string;
2543
+ maxPower: string;
2544
+ serialNumber: string;
2104
2545
  }
2105
- interface HardwareSensor extends Node {
2106
- sensorId?: string;
2107
- sensorType: SensorType;
2108
- hardwareType?: HardwareType;
2109
- hardwareName?: string;
2546
+ interface AudioData {
2547
+ id: number | string;
2548
+ name: string;
2549
+ manufacturer: string;
2550
+ default: boolean;
2551
+ revision: string;
2552
+ driver: string;
2553
+ channel: string;
2554
+ in: boolean;
2555
+ out: boolean;
2556
+ type: string;
2557
+ status: string;
2110
2558
  }
2559
+ interface BluetoothDeviceData {
2560
+ device: string;
2561
+ name: string;
2562
+ macDevice: string;
2563
+ macHost: string;
2564
+ batteryPercent: number;
2565
+ manufacturer: string;
2566
+ type: string;
2567
+ connected: boolean;
2568
+ }
2569
+ interface StaticData {
2570
+ version: string;
2571
+ system: SystemData;
2572
+ bios: BiosData;
2573
+ baseboard: BaseboardData;
2574
+ chassis: ChassisData;
2575
+ os: OsData;
2576
+ uuid: UuidData;
2577
+ versions: VersionData;
2578
+ cpu: CpuData;
2579
+ graphics: GraphicsData;
2580
+ net: NetworkInterfacesData[];
2581
+ memLayout: MemLayoutData[];
2582
+ diskLayout: DiskLayoutData[];
2583
+ }
2584
+ interface DynamicData {
2585
+ time: TimeData;
2586
+ node: string;
2587
+ v8: string;
2588
+ cpuCurrentSpeed: CpuCurrentSpeedData;
2589
+ users: UserData[];
2590
+ processes: ProcessesData[];
2591
+ currentLoad: CurrentLoadData;
2592
+ cpuTemperature: CpuTemperatureData;
2593
+ networkStats: NetworkStatsData[];
2594
+ networkConnections: NetworkConnectionsData[];
2595
+ mem: MemData;
2596
+ battery: BatteryData;
2597
+ services: ServicesData[];
2598
+ fsSize: FsSizeData;
2599
+ fsStats: FsStatsData;
2600
+ disksIO: DisksIoData;
2601
+ wifiNetworks: WifiNetworkData;
2602
+ inetLatency: number;
2603
+ }
2604
+ interface SystemInfoResultMap {
2605
+ 'system': SystemData;
2606
+ 'bios': BiosData;
2607
+ 'baseboard': BaseboardData;
2608
+ 'chassis': ChassisData;
2609
+ 'time': TimeData;
2610
+ 'osInfo': OsData;
2611
+ 'versions': VersionData;
2612
+ 'shell': string;
2613
+ 'uuid': UuidData;
2614
+ 'cpu': CpuData;
2615
+ 'cpuFlags': string;
2616
+ 'cpuCache': CpuCacheData;
2617
+ 'cpuCurrentSpeed': CpuCurrentSpeedData;
2618
+ 'cpuTemperature': CpuTemperatureData;
2619
+ 'currentLoad': CurrentLoadData;
2620
+ 'fullLoad': number;
2621
+ 'mem': MemData;
2622
+ 'memLayout': MemLayoutData[];
2623
+ 'battery': BatteryData;
2624
+ 'graphics': GraphicsData;
2625
+ 'fsSize': FsSizeData[];
2626
+ 'fsOpenFiles': FsOpenFilesData;
2627
+ 'blockDevices': BlockDevicesData[];
2628
+ 'fsStats': FsStatsData;
2629
+ 'disksIO': DisksIoData;
2630
+ 'diskLayout': DiskLayoutData[];
2631
+ 'networkInterfaceDefault': string;
2632
+ 'networkGatewayDefault': string;
2633
+ 'networkInterfaces': NetworkInterfacesData[];
2634
+ 'networkStats': NetworkStatsData[];
2635
+ 'networkConnections': NetworkConnectionsData[];
2636
+ 'inetChecksite': InetChecksiteData;
2637
+ 'inetLatency': number;
2638
+ 'wifiNetworks': WifiNetworkData[];
2639
+ 'wifiInterfaces': WifiInterfaceData[];
2640
+ 'wifiConnections': WifiConnectionData[];
2641
+ 'users': UserData[];
2642
+ 'processes': ProcessesData;
2643
+ 'processLoad': ProcessesProcessLoadData[];
2644
+ 'services': ServicesData[];
2645
+ 'dockerInfo': DockerInfoData;
2646
+ 'dockerImages': DockerImageData[];
2647
+ 'dockerContainers': DockerContainerData[];
2648
+ 'dockerContainerStats': DockerContainerStatsData[];
2649
+ 'dockerContainerProcesses': DockerContainerProcessData[];
2650
+ 'dockerVolumes': DockerVolumeData[];
2651
+ 'dockerAll': any;
2652
+ 'vboxInfo': VboxInfoData[];
2653
+ 'printer': PrinterData[];
2654
+ 'usb': UsbData[];
2655
+ 'audio': AudioData[];
2656
+ 'bluetoothDevices': BluetoothDeviceData[];
2657
+ 'getStaticData': StaticData;
2658
+ 'getDynamicData': DynamicData;
2659
+ 'getAllData': StaticData & DynamicData;
2660
+ }
2661
+ type SystemInfoMethods = keyof SystemInfoResultMap;
2111
2662
 
2112
2663
  interface SystemFile {
2113
2664
  isDirectory: boolean;
@@ -2565,6 +3116,15 @@ interface IAiApi {
2565
3116
  setConfigList(configs: AiConfig[]): Promise<void>;
2566
3117
  getConfig(id: string): Promise<AiConfig | undefined>;
2567
3118
  }
3119
+ /**
3120
+ * AiApiEvent
3121
+ */
3122
+ declare enum AiApiEvent {
3123
+ /**
3124
+ * 配置更新事件
3125
+ */
3126
+ CONFIG_UPDATED = "channel::cn.widgetjs.core.ai.config.updated"
3127
+ }
2568
3128
  type AiApiMethods = keyof IAiApi;
2569
3129
 
2570
3130
  type DeviceApiMethods = keyof IDeviceApi;
@@ -3254,22 +3814,11 @@ interface ISystemApi {
3254
3814
  */
3255
3815
  getWallpaper: () => Promise<string>;
3256
3816
  /**
3257
- * Get hardware information, such as CPU, GPU, Memory, etc.
3258
- * @param hardwareType
3259
- * @return Hardware[]
3260
- */
3261
- getHardware: (hardwareType: HardwareType | HardwareType[]) => Promise<Hardware[]>;
3262
- /**
3263
- * Get hardware sensor information, such as temperature, voltage, fan speed, etc.
3264
- * @param hardwareType
3265
- * @param sensorType
3266
- * @return HardwareSensor[]
3267
- */
3268
- getHardwareSensor: (hardwareType: HardwareType | HardwareType[], sensorType: SensorType | SensorType[]) => Promise<HardwareSensor[]>;
3269
- /**
3270
- * Check if the monitor process is started
3817
+ * Get system information based on the provided valuesObject. The valuesObject can contain specific keys to retrieve certain information.
3818
+ * @param valuesObject
3819
+ * @see https://systeminformation.io/general.html
3271
3820
  */
3272
- isMonitorStarted: () => Promise<boolean>;
3821
+ getInfo: (valuesObject: any) => Promise<any>;
3273
3822
  /**
3274
3823
  * Get system uptime in seconds
3275
3824
  * @return Promise<number>
@@ -3305,7 +3854,7 @@ declare const SystemApi: ISystemApi;
3305
3854
  declare class WidgetPackageApiImpl extends BaseApi<WidgetPackageApiMethods> implements IWidgetPackageApi {
3306
3855
  getChannel(): string;
3307
3856
  install(widgetPackage: WidgetPackage | string): Promise<any>;
3308
- uninstall(widgetPackage: WidgetPackage | string): Promise<any>;
3857
+ uninstall(widgetPackage: WidgetPackage | string, clearData?: boolean): Promise<any>;
3309
3858
  upgrade(packageName: string, remoteUrlInfo: RemotePackageUrlInfo): Promise<void>;
3310
3859
  /**
3311
3860
  *
@@ -3942,4 +4491,4 @@ declare class GridSystem extends GridRect {
3942
4491
  getHeight(): number;
3943
4492
  }
3944
4493
 
3945
- export { type AddTrayOptions, type AddWidgetOption, AiApi, type AiApiMethods, type AiConfig, type AlignPosition, ApiConstants, AppApi, AppApiConstants, AppApiEvent, type AppApiMethods, AppConfig, AppEvent, type AppMouseEvent, AppNotification, AppReminderNotification, type AppRuntimeInfo, BackgroundWidget, BaseApi, type BatteryData, BroadcastApi, type BroadcastApiMethods, BroadcastEvent, type BroadcastEventType, BrowserWindowApi, BrowserWindowApiEvent, type BrowserWindowApiMethods, type BrowserWindowOptions, type CallNotificationOption, type Category, Channel, ClipboardApi, ClipboardApiEvent, type ClipboardApiMethods, type CountdownNotificationOption, type CpuCacheData, type CpuCurrentSpeedData, type CpuData, type CurrentLoadCpuData, type CurrentLoadData, DefaultWidgetTheme, DeployMode, DeployedPage, DeployedWidget, DeployedWidgetApi, type DeployedWidgetApiMethods, type DevOptions, DeviceApi, type DeviceApiMethods, DialogApi, type DialogApiMethods, type DiskLayoutData, type Display, type DisplayBalloonOptions, type DownloadUrlOptions, ElectronApi, ElectronUtils, FileApi, type FileApiMethods, type GraphicsControllerData, type GraphicsData, type GraphicsDisplayData, Gravity, GridRect, GridSystem, type Hardware, type HardwareSensor, type HardwareType, HostedMode, HttpApi, type HttpApiMethods, type IAiApi, type IAppApi, type IBackgroundWidgetOptions, type IDeviceApi, type IDialogApi, type IFileApi, type IGridRect, type ILogApi, type IMouseApi, type IPage, type IPageOptions, type IProcessApi, type ITrayApi, type IUserApi, type IWidgetDataApi, type IWidgetOptions, type IWidgetPackageApi, type IWidgetTheme, type IWindowSize, type InfoNotificationOption, type Language, type LanguageCode, LanguageMap, type LanguageTextMap, LanguageUtils, type LocalPackageUrlInfo, type LocationQuery, type LocationQueryRaw, type LocationQueryValue, type LocationQueryValueRaw, LogApi, type LogApiMethods, type MemData, type MemLayoutData, MenuApi, MenuApiEvent, type MenuApiMethods, type MetaInfo, type Metadata, MouseApi, MouseApiEvent, type MouseApiMethods, type NativeKeyboardEvent, type Node, type NormalizeOptions, NotificationApi, NotificationApiEvent, type NotificationApiMethods, type NotificationOption, NotificationSize, type NotificationType, type OsData, Page, type Point, type Position, ProcessApi, type ProcessApiMethods, type ProxyConfig, type ReadDirOptions, type Rectangle, type ReminderNotificationOption, type RemotePackageUrlInfo, type SaveWidgetOption, type SensorType, type SetPositionOptions, ShortcutApi, ShortcutApiEvent, type ShortcutApiMethods, type ShortcutDetails, type ShowMenuOption, type Size, type SmartData, SocialInfo, type SocialLink, type SocialType, StorageApi, type StorageApiMethods, StoreApi, type StoreApiMethods, SystemApi, SystemApiEvent, type SystemApiMethods, type SystemFile, ThemeMode, TrayApi, TrayApiEvent, type TrayApiMethods, type TrayWidgetOptions, UserApi, UserApiEvent, type UserApiMethods, type UserData, type VersionData, WebSocketEvent, WebSocketEventType, Widget, WidgetApi, WidgetApiEvent, type WidgetApiMethods, WidgetData, WidgetDataApi, type WidgetDataApiMethods, WidgetKeyword, type WidgetMenuItem, WidgetPackage, WidgetPackageApi, WidgetPackageApiEvent, type WidgetPackageApiMethods, type WidgetPackageOptions, WidgetPackageUtils, WidgetParams, type WidgetPermission, type WidgetRoute, type WidgetSyncInfo, WidgetTheme, type WidgetThemeKey, type WidgetThemeProperty, WidgetUtils, delay, normalizeUrl, parseQuery, stringifyQuery };
4494
+ export { type AddTrayOptions, type AddWidgetOption, AiApi, AiApiEvent, type AiApiMethods, type AiConfig, type AlignPosition, ApiConstants, AppApi, AppApiConstants, AppApiEvent, type AppApiMethods, AppConfig, AppEvent, type AppMouseEvent, AppNotification, AppReminderNotification, type AppRoutes, type AppRuntimeInfo, type AudioData, BackgroundWidget, BaseApi, type BaseboardData, type BatteryData, type BiosData, type BlockDevicesData, type BluetoothDeviceData, BroadcastApi, type BroadcastApiMethods, BroadcastEvent, type BroadcastEventType, BrowserWindowApi, BrowserWindowApiEvent, type BrowserWindowApiMethods, type BrowserWindowOptions, type CallNotificationOption, type Category, Channel, type ChassisData, ClipboardApi, ClipboardApiEvent, type ClipboardApiMethods, type CountdownNotificationOption, type CpuCacheData, type CpuCurrentSpeedData, type CpuData, type CpuTemperatureData, type CurrentLoadCpuData, type CurrentLoadData, DefaultWidgetTheme, DeployMode, DeployedPage, DeployedWidget, DeployedWidgetApi, type DeployedWidgetApiMethods, type DevOptions, DeviceApi, type DeviceApiMethods, DialogApi, type DialogApiMethods, type DiskLayoutData, type DisksIoData, type Display, type DisplayBalloonOptions, type DockerContainerData, type DockerContainerMountData, type DockerContainerProcessData, type DockerContainerStatsData, type DockerImageData, type DockerInfoData, type DockerVolumeData, type DownloadUrlOptions, type DynamicData, ElectronApi, ElectronUtils, FileApi, type FileApiMethods, type FsOpenFilesData, type FsSizeData, type FsStatsData, type GraphicsControllerData, type GraphicsData, type GraphicsDisplayData, Gravity, GridRect, GridSystem, HostedMode, HttpApi, type HttpApiMethods, type IAiApi, type IAppApi, type IBackgroundWidgetOptions, type IDeviceApi, type IDialogApi, type IFileApi, type IGridRect, type ILogApi, type IMouseApi, type IPage, type IPageOptions, type IProcessApi, type ITrayApi, type IUserApi, type IWidgetDataApi, type IWidgetOptions, type IWidgetPackageApi, type IWidgetTheme, type IWindowSize, type InetChecksiteData, type InfoNotificationOption, type Language, type LanguageCode, LanguageMap, type LanguageTextMap, LanguageUtils, type LocalPackageUrlInfo, type LocationQuery, type LocationQueryRaw, type LocationQueryValue, type LocationQueryValueRaw, LogApi, type LogApiMethods, type MemData, type MemLayoutData, MenuApi, MenuApiEvent, type MenuApiMethods, type MetaInfo, type Metadata, MouseApi, MouseApiEvent, type MouseApiMethods, type NativeKeyboardEvent, type NetworkConnectionsData, type NetworkInterfacesData, type NetworkStatsData, type NormalizeOptions, NotificationApi, NotificationApiEvent, type NotificationApiMethods, type NotificationOption, NotificationSize, type NotificationType, type OsData, Page, type Point, type Position, type PrinterData, ProcessApi, type ProcessApiMethods, type ProcessesData, type ProcessesProcessData, type ProcessesProcessLoadData, type ProxyConfig, type RaspberryRevisionData, type ReadDirOptions, type Rectangle, type ReminderNotificationOption, type RemotePackageUrlInfo, type SaveWidgetOption, type ServicesData, type SetPositionOptions, ShortcutApi, ShortcutApiEvent, type ShortcutApiMethods, type ShortcutDetails, type ShowMenuOption, type Size, type SmartData, SocialInfo, type SocialLink, type SocialType, type StaticData, StorageApi, type StorageApiMethods, StoreApi, type StoreApiMethods, SystemApi, SystemApiEvent, type SystemApiMethods, type SystemData, type SystemFile, type SystemInfoMethods, type SystemInfoResultMap, ThemeMode, type TimeData, TrayApi, TrayApiEvent, type TrayApiMethods, type TrayWidgetOptions, type UsbData, UserApi, UserApiEvent, type UserApiMethods, type UserData, type UuidData, type VboxInfoData, type VersionData, WebSocketEvent, WebSocketEventType, Widget, WidgetApi, WidgetApiEvent, type WidgetApiMethods, WidgetData, WidgetDataApi, type WidgetDataApiMethods, WidgetKeyword, type WidgetMenuItem, WidgetPackage, WidgetPackageApi, WidgetPackageApiEvent, type WidgetPackageApiMethods, type WidgetPackageOptions, WidgetPackageUtils, WidgetParams, type WidgetPermission, type WidgetRoute, type WidgetSyncInfo, WidgetTheme, type WidgetThemeKey, type WidgetThemeProperty, WidgetUtils, type WifiConnectionData, type WifiInterfaceData, type WifiNetworkData, delay, normalizeUrl, parseQuery, stringifyQuery };