@lazycatcloud/sdk 0.1.525 → 0.1.527

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.
@@ -0,0 +1,57 @@
1
+ const fs = require("fs");
2
+ const path = require("path");
3
+ function readJSON(file) {
4
+ return JSON.parse(fs.readFileSync(file, "utf8"));
5
+ }
6
+ function fail(message) {
7
+ console.error(message);
8
+ process.exitCode = 1;
9
+ }
10
+ function getInterface(source, name) {
11
+ const match = source.match(new RegExp(`export interface ${name} \\{([\\s\\S]*?)\\n\\}`));
12
+ return match ? match[1] : "";
13
+ }
14
+ const root = path.resolve(__dirname, "..");
15
+ const packageJSON = readJSON(path.join(root, "package.json"));
16
+ const distPackagePath = path.join(root, "dist", "package.json");
17
+ const devoptPath = path.join(root, "dist", "sys", "devopt.d.ts");
18
+ if (!fs.existsSync(distPackagePath)) {
19
+ fail("dist/package.json is missing. Run the generated SDK build before publishing.");
20
+ }
21
+ else {
22
+ const distPackageJSON = readJSON(distPackagePath);
23
+ if (distPackageJSON.version !== packageJSON.version) {
24
+ fail(`dist/package.json version ${distPackageJSON.version} does not match package version ${packageJSON.version}.`);
25
+ }
26
+ }
27
+ if (!fs.existsSync(devoptPath)) {
28
+ fail("dist/sys/devopt.d.ts is missing. Regenerate the sys SDK before publishing.");
29
+ }
30
+ else {
31
+ const devopt = fs.readFileSync(devoptPath, "utf8");
32
+ const sshdEnableRequest = getInterface(devopt, "SshdEnableRequest");
33
+ const enableSshdResponse = getInterface(devopt, "EnableSshdResponse");
34
+ const requiredFieldChecks = [
35
+ ["SshdEnableRequest", "enable: boolean;", sshdEnableRequest],
36
+ ["SshdEnableRequest", "password: string;", sshdEnableRequest],
37
+ ["SshdEnableRequest", "passwordIsPublicKey: boolean;", sshdEnableRequest],
38
+ ["EnableSshdResponse", "enabled: boolean;", enableSshdResponse],
39
+ ];
40
+ const forbiddenFields = [
41
+ /\bEnable: boolean;/,
42
+ /\bPassword: string;/,
43
+ /\bEnabled: boolean;/,
44
+ /export interface DeveloperOptions\b/,
45
+ ];
46
+ for (const [interfaceName, field, source] of requiredFieldChecks) {
47
+ if (!source.includes(field)) {
48
+ fail(`dist/sys/devopt.d.ts ${interfaceName} is missing expected field ${field}`);
49
+ }
50
+ }
51
+ for (const pattern of forbiddenFields) {
52
+ if (pattern.test(devopt)) {
53
+ fail(`dist/sys/devopt.d.ts contains stale generated content: ${pattern}`);
54
+ }
55
+ }
56
+ }
57
+ //# sourceMappingURL=check-publish.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-publish.js","sourceRoot":"","sources":["../../scripts/check-publish.js"],"names":[],"mappings":"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"}
@@ -102,8 +102,8 @@ export interface AppInfo {
102
102
  appid: string;
103
103
  /** 应用当前的安装状态 */
104
104
  status: AppStatus;
105
- /** 应用当前的运行状态 */
106
- instanceStatus: InstanceStatus;
105
+ /** 应用当前的运行状态。resource_only=true 时不设置。 */
106
+ instanceStatus?: InstanceStatus | undefined;
107
107
  version?: string | undefined;
108
108
  title?: string | undefined;
109
109
  description?: string | undefined;
@@ -134,6 +134,27 @@ export interface AppInfo {
134
134
  /** 此实例是否支持调整部署参数 */
135
135
  supportDeployParams: boolean;
136
136
  entries: AppEntry[];
137
+ /** true 表示该条目是 resource-only LPK,不对应任何 deploy/app instance。 */
138
+ resourceOnly: boolean;
139
+ /** true 表示该 LPK 不应显示在 launcher 中,但不影响系统设置中的管理入口。 */
140
+ hiddenFromLauncher: boolean;
141
+ }
142
+ export interface ListLPKRequest {
143
+ /** 为空表示返回所有已安装 LPK;非空时只返回指定 pkg_id。 */
144
+ pkgIds: string[];
145
+ }
146
+ export interface ListLPKResponse {
147
+ infoList: LPKInfo[];
148
+ }
149
+ export interface LPKInfo {
150
+ pkgId: string;
151
+ version?: string | undefined;
152
+ title?: string | undefined;
153
+ description?: string | undefined;
154
+ icon?: string | undefined;
155
+ builtin?: boolean | undefined;
156
+ resourceOnly: boolean;
157
+ hiddenFromLauncher: boolean;
137
158
  }
138
159
  export interface AppEntry {
139
160
  id: string;
@@ -208,6 +229,8 @@ export interface QueryApplicationRequest {
208
229
  ignorePendingPkg?: boolean | undefined;
209
230
  /** 搜索关键字(任意字符串),具体匹配策略由服务端实现 */
210
231
  filter?: string | undefined;
232
+ /** 显式要求同时返回 resource-only LPK。仅管理员允许使用。 */
233
+ includeResourceOnly?: boolean | undefined;
211
234
  }
212
235
  export interface QueryApplicationResponse {
213
236
  infoList: AppInfo[];
@@ -1147,7 +1170,7 @@ export declare const AppInfo: {
1147
1170
  create<I extends {
1148
1171
  appid?: string;
1149
1172
  status?: AppStatus;
1150
- instanceStatus?: InstanceStatus;
1173
+ instanceStatus?: InstanceStatus | undefined;
1151
1174
  version?: string | undefined;
1152
1175
  title?: string | undefined;
1153
1176
  description?: string | undefined;
@@ -1171,10 +1194,12 @@ export declare const AppInfo: {
1171
1194
  path?: string;
1172
1195
  prefixDomain?: string | undefined;
1173
1196
  }[];
1197
+ resourceOnly?: boolean;
1198
+ hiddenFromLauncher?: boolean;
1174
1199
  } & {
1175
1200
  appid?: string;
1176
1201
  status?: AppStatus;
1177
- instanceStatus?: InstanceStatus;
1202
+ instanceStatus?: InstanceStatus | undefined;
1178
1203
  version?: string | undefined;
1179
1204
  title?: string | undefined;
1180
1205
  description?: string | undefined;
@@ -1362,11 +1387,13 @@ export declare const AppInfo: {
1362
1387
  path?: string;
1363
1388
  prefixDomain?: string | undefined;
1364
1389
  }[]>]: never; };
1390
+ resourceOnly?: boolean;
1391
+ hiddenFromLauncher?: boolean;
1365
1392
  } & { [K_6 in Exclude<keyof I, keyof AppInfo>]: never; }>(base?: I): AppInfo;
1366
1393
  fromPartial<I_1 extends {
1367
1394
  appid?: string;
1368
1395
  status?: AppStatus;
1369
- instanceStatus?: InstanceStatus;
1396
+ instanceStatus?: InstanceStatus | undefined;
1370
1397
  version?: string | undefined;
1371
1398
  title?: string | undefined;
1372
1399
  description?: string | undefined;
@@ -1390,10 +1417,12 @@ export declare const AppInfo: {
1390
1417
  path?: string;
1391
1418
  prefixDomain?: string | undefined;
1392
1419
  }[];
1420
+ resourceOnly?: boolean;
1421
+ hiddenFromLauncher?: boolean;
1393
1422
  } & {
1394
1423
  appid?: string;
1395
1424
  status?: AppStatus;
1396
- instanceStatus?: InstanceStatus;
1425
+ instanceStatus?: InstanceStatus | undefined;
1397
1426
  version?: string | undefined;
1398
1427
  title?: string | undefined;
1399
1428
  description?: string | undefined;
@@ -1581,8 +1610,176 @@ export declare const AppInfo: {
1581
1610
  path?: string;
1582
1611
  prefixDomain?: string | undefined;
1583
1612
  }[]>]: never; };
1613
+ resourceOnly?: boolean;
1614
+ hiddenFromLauncher?: boolean;
1584
1615
  } & { [K_13 in Exclude<keyof I_1, keyof AppInfo>]: never; }>(object: I_1): AppInfo;
1585
1616
  };
1617
+ export declare const ListLPKRequest: {
1618
+ encode(message: ListLPKRequest, writer?: _m0.Writer): _m0.Writer;
1619
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListLPKRequest;
1620
+ fromJSON(object: any): ListLPKRequest;
1621
+ toJSON(message: ListLPKRequest): unknown;
1622
+ create<I extends {
1623
+ pkgIds?: string[];
1624
+ } & {
1625
+ pkgIds?: string[] & string[] & { [K in Exclude<keyof I["pkgIds"], keyof string[]>]: never; };
1626
+ } & { [K_1 in Exclude<keyof I, "pkgIds">]: never; }>(base?: I): ListLPKRequest;
1627
+ fromPartial<I_1 extends {
1628
+ pkgIds?: string[];
1629
+ } & {
1630
+ pkgIds?: string[] & string[] & { [K_2 in Exclude<keyof I_1["pkgIds"], keyof string[]>]: never; };
1631
+ } & { [K_3 in Exclude<keyof I_1, "pkgIds">]: never; }>(object: I_1): ListLPKRequest;
1632
+ };
1633
+ export declare const ListLPKResponse: {
1634
+ encode(message: ListLPKResponse, writer?: _m0.Writer): _m0.Writer;
1635
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListLPKResponse;
1636
+ fromJSON(object: any): ListLPKResponse;
1637
+ toJSON(message: ListLPKResponse): unknown;
1638
+ create<I extends {
1639
+ infoList?: {
1640
+ pkgId?: string;
1641
+ version?: string | undefined;
1642
+ title?: string | undefined;
1643
+ description?: string | undefined;
1644
+ icon?: string | undefined;
1645
+ builtin?: boolean | undefined;
1646
+ resourceOnly?: boolean;
1647
+ hiddenFromLauncher?: boolean;
1648
+ }[];
1649
+ } & {
1650
+ infoList?: {
1651
+ pkgId?: string;
1652
+ version?: string | undefined;
1653
+ title?: string | undefined;
1654
+ description?: string | undefined;
1655
+ icon?: string | undefined;
1656
+ builtin?: boolean | undefined;
1657
+ resourceOnly?: boolean;
1658
+ hiddenFromLauncher?: boolean;
1659
+ }[] & ({
1660
+ pkgId?: string;
1661
+ version?: string | undefined;
1662
+ title?: string | undefined;
1663
+ description?: string | undefined;
1664
+ icon?: string | undefined;
1665
+ builtin?: boolean | undefined;
1666
+ resourceOnly?: boolean;
1667
+ hiddenFromLauncher?: boolean;
1668
+ } & {
1669
+ pkgId?: string;
1670
+ version?: string | undefined;
1671
+ title?: string | undefined;
1672
+ description?: string | undefined;
1673
+ icon?: string | undefined;
1674
+ builtin?: boolean | undefined;
1675
+ resourceOnly?: boolean;
1676
+ hiddenFromLauncher?: boolean;
1677
+ } & { [K in Exclude<keyof I["infoList"][number], keyof LPKInfo>]: never; })[] & { [K_1 in Exclude<keyof I["infoList"], keyof {
1678
+ pkgId?: string;
1679
+ version?: string | undefined;
1680
+ title?: string | undefined;
1681
+ description?: string | undefined;
1682
+ icon?: string | undefined;
1683
+ builtin?: boolean | undefined;
1684
+ resourceOnly?: boolean;
1685
+ hiddenFromLauncher?: boolean;
1686
+ }[]>]: never; };
1687
+ } & { [K_2 in Exclude<keyof I, "infoList">]: never; }>(base?: I): ListLPKResponse;
1688
+ fromPartial<I_1 extends {
1689
+ infoList?: {
1690
+ pkgId?: string;
1691
+ version?: string | undefined;
1692
+ title?: string | undefined;
1693
+ description?: string | undefined;
1694
+ icon?: string | undefined;
1695
+ builtin?: boolean | undefined;
1696
+ resourceOnly?: boolean;
1697
+ hiddenFromLauncher?: boolean;
1698
+ }[];
1699
+ } & {
1700
+ infoList?: {
1701
+ pkgId?: string;
1702
+ version?: string | undefined;
1703
+ title?: string | undefined;
1704
+ description?: string | undefined;
1705
+ icon?: string | undefined;
1706
+ builtin?: boolean | undefined;
1707
+ resourceOnly?: boolean;
1708
+ hiddenFromLauncher?: boolean;
1709
+ }[] & ({
1710
+ pkgId?: string;
1711
+ version?: string | undefined;
1712
+ title?: string | undefined;
1713
+ description?: string | undefined;
1714
+ icon?: string | undefined;
1715
+ builtin?: boolean | undefined;
1716
+ resourceOnly?: boolean;
1717
+ hiddenFromLauncher?: boolean;
1718
+ } & {
1719
+ pkgId?: string;
1720
+ version?: string | undefined;
1721
+ title?: string | undefined;
1722
+ description?: string | undefined;
1723
+ icon?: string | undefined;
1724
+ builtin?: boolean | undefined;
1725
+ resourceOnly?: boolean;
1726
+ hiddenFromLauncher?: boolean;
1727
+ } & { [K_3 in Exclude<keyof I_1["infoList"][number], keyof LPKInfo>]: never; })[] & { [K_4 in Exclude<keyof I_1["infoList"], keyof {
1728
+ pkgId?: string;
1729
+ version?: string | undefined;
1730
+ title?: string | undefined;
1731
+ description?: string | undefined;
1732
+ icon?: string | undefined;
1733
+ builtin?: boolean | undefined;
1734
+ resourceOnly?: boolean;
1735
+ hiddenFromLauncher?: boolean;
1736
+ }[]>]: never; };
1737
+ } & { [K_5 in Exclude<keyof I_1, "infoList">]: never; }>(object: I_1): ListLPKResponse;
1738
+ };
1739
+ export declare const LPKInfo: {
1740
+ encode(message: LPKInfo, writer?: _m0.Writer): _m0.Writer;
1741
+ decode(input: _m0.Reader | Uint8Array, length?: number): LPKInfo;
1742
+ fromJSON(object: any): LPKInfo;
1743
+ toJSON(message: LPKInfo): unknown;
1744
+ create<I extends {
1745
+ pkgId?: string;
1746
+ version?: string | undefined;
1747
+ title?: string | undefined;
1748
+ description?: string | undefined;
1749
+ icon?: string | undefined;
1750
+ builtin?: boolean | undefined;
1751
+ resourceOnly?: boolean;
1752
+ hiddenFromLauncher?: boolean;
1753
+ } & {
1754
+ pkgId?: string;
1755
+ version?: string | undefined;
1756
+ title?: string | undefined;
1757
+ description?: string | undefined;
1758
+ icon?: string | undefined;
1759
+ builtin?: boolean | undefined;
1760
+ resourceOnly?: boolean;
1761
+ hiddenFromLauncher?: boolean;
1762
+ } & { [K in Exclude<keyof I, keyof LPKInfo>]: never; }>(base?: I): LPKInfo;
1763
+ fromPartial<I_1 extends {
1764
+ pkgId?: string;
1765
+ version?: string | undefined;
1766
+ title?: string | undefined;
1767
+ description?: string | undefined;
1768
+ icon?: string | undefined;
1769
+ builtin?: boolean | undefined;
1770
+ resourceOnly?: boolean;
1771
+ hiddenFromLauncher?: boolean;
1772
+ } & {
1773
+ pkgId?: string;
1774
+ version?: string | undefined;
1775
+ title?: string | undefined;
1776
+ description?: string | undefined;
1777
+ icon?: string | undefined;
1778
+ builtin?: boolean | undefined;
1779
+ resourceOnly?: boolean;
1780
+ hiddenFromLauncher?: boolean;
1781
+ } & { [K_1 in Exclude<keyof I_1, keyof LPKInfo>]: never; }>(object: I_1): LPKInfo;
1782
+ };
1586
1783
  export declare const AppEntry: {
1587
1784
  encode(message: AppEntry, writer?: _m0.Writer): _m0.Writer;
1588
1785
  decode(input: _m0.Reader | Uint8Array, length?: number): AppEntry;
@@ -23246,12 +23443,14 @@ export declare const QueryApplicationRequest: {
23246
23443
  onlyOwner?: boolean | undefined;
23247
23444
  ignorePendingPkg?: boolean | undefined;
23248
23445
  filter?: string | undefined;
23446
+ includeResourceOnly?: boolean | undefined;
23249
23447
  } & {
23250
23448
  deployIds?: string[] & string[] & { [K in Exclude<keyof I["deployIds"], keyof string[]>]: never; };
23251
23449
  otherUid?: string | undefined;
23252
23450
  onlyOwner?: boolean | undefined;
23253
23451
  ignorePendingPkg?: boolean | undefined;
23254
23452
  filter?: string | undefined;
23453
+ includeResourceOnly?: boolean | undefined;
23255
23454
  } & { [K_1 in Exclude<keyof I, keyof QueryApplicationRequest>]: never; }>(base?: I): QueryApplicationRequest;
23256
23455
  fromPartial<I_1 extends {
23257
23456
  deployIds?: string[];
@@ -23259,12 +23458,14 @@ export declare const QueryApplicationRequest: {
23259
23458
  onlyOwner?: boolean | undefined;
23260
23459
  ignorePendingPkg?: boolean | undefined;
23261
23460
  filter?: string | undefined;
23461
+ includeResourceOnly?: boolean | undefined;
23262
23462
  } & {
23263
23463
  deployIds?: string[] & string[] & { [K_2 in Exclude<keyof I_1["deployIds"], keyof string[]>]: never; };
23264
23464
  otherUid?: string | undefined;
23265
23465
  onlyOwner?: boolean | undefined;
23266
23466
  ignorePendingPkg?: boolean | undefined;
23267
23467
  filter?: string | undefined;
23468
+ includeResourceOnly?: boolean | undefined;
23268
23469
  } & { [K_3 in Exclude<keyof I_1, keyof QueryApplicationRequest>]: never; }>(object: I_1): QueryApplicationRequest;
23269
23470
  };
23270
23471
  export declare const QueryApplicationResponse: {
@@ -23276,7 +23477,7 @@ export declare const QueryApplicationResponse: {
23276
23477
  infoList?: {
23277
23478
  appid?: string;
23278
23479
  status?: AppStatus;
23279
- instanceStatus?: InstanceStatus;
23480
+ instanceStatus?: InstanceStatus | undefined;
23280
23481
  version?: string | undefined;
23281
23482
  title?: string | undefined;
23282
23483
  description?: string | undefined;
@@ -23300,12 +23501,14 @@ export declare const QueryApplicationResponse: {
23300
23501
  path?: string;
23301
23502
  prefixDomain?: string | undefined;
23302
23503
  }[];
23504
+ resourceOnly?: boolean;
23505
+ hiddenFromLauncher?: boolean;
23303
23506
  }[];
23304
23507
  } & {
23305
23508
  infoList?: {
23306
23509
  appid?: string;
23307
23510
  status?: AppStatus;
23308
- instanceStatus?: InstanceStatus;
23511
+ instanceStatus?: InstanceStatus | undefined;
23309
23512
  version?: string | undefined;
23310
23513
  title?: string | undefined;
23311
23514
  description?: string | undefined;
@@ -23329,10 +23532,12 @@ export declare const QueryApplicationResponse: {
23329
23532
  path?: string;
23330
23533
  prefixDomain?: string | undefined;
23331
23534
  }[];
23535
+ resourceOnly?: boolean;
23536
+ hiddenFromLauncher?: boolean;
23332
23537
  }[] & ({
23333
23538
  appid?: string;
23334
23539
  status?: AppStatus;
23335
- instanceStatus?: InstanceStatus;
23540
+ instanceStatus?: InstanceStatus | undefined;
23336
23541
  version?: string | undefined;
23337
23542
  title?: string | undefined;
23338
23543
  description?: string | undefined;
@@ -23356,10 +23561,12 @@ export declare const QueryApplicationResponse: {
23356
23561
  path?: string;
23357
23562
  prefixDomain?: string | undefined;
23358
23563
  }[];
23564
+ resourceOnly?: boolean;
23565
+ hiddenFromLauncher?: boolean;
23359
23566
  } & {
23360
23567
  appid?: string;
23361
23568
  status?: AppStatus;
23362
- instanceStatus?: InstanceStatus;
23569
+ instanceStatus?: InstanceStatus | undefined;
23363
23570
  version?: string | undefined;
23364
23571
  title?: string | undefined;
23365
23572
  description?: string | undefined;
@@ -23547,10 +23754,12 @@ export declare const QueryApplicationResponse: {
23547
23754
  path?: string;
23548
23755
  prefixDomain?: string | undefined;
23549
23756
  }[]>]: never; };
23757
+ resourceOnly?: boolean;
23758
+ hiddenFromLauncher?: boolean;
23550
23759
  } & { [K_6 in Exclude<keyof I["infoList"][number], keyof AppInfo>]: never; })[] & { [K_7 in Exclude<keyof I["infoList"], keyof {
23551
23760
  appid?: string;
23552
23761
  status?: AppStatus;
23553
- instanceStatus?: InstanceStatus;
23762
+ instanceStatus?: InstanceStatus | undefined;
23554
23763
  version?: string | undefined;
23555
23764
  title?: string | undefined;
23556
23765
  description?: string | undefined;
@@ -23574,13 +23783,15 @@ export declare const QueryApplicationResponse: {
23574
23783
  path?: string;
23575
23784
  prefixDomain?: string | undefined;
23576
23785
  }[];
23786
+ resourceOnly?: boolean;
23787
+ hiddenFromLauncher?: boolean;
23577
23788
  }[]>]: never; };
23578
23789
  } & { [K_8 in Exclude<keyof I, "infoList">]: never; }>(base?: I): QueryApplicationResponse;
23579
23790
  fromPartial<I_1 extends {
23580
23791
  infoList?: {
23581
23792
  appid?: string;
23582
23793
  status?: AppStatus;
23583
- instanceStatus?: InstanceStatus;
23794
+ instanceStatus?: InstanceStatus | undefined;
23584
23795
  version?: string | undefined;
23585
23796
  title?: string | undefined;
23586
23797
  description?: string | undefined;
@@ -23604,12 +23815,14 @@ export declare const QueryApplicationResponse: {
23604
23815
  path?: string;
23605
23816
  prefixDomain?: string | undefined;
23606
23817
  }[];
23818
+ resourceOnly?: boolean;
23819
+ hiddenFromLauncher?: boolean;
23607
23820
  }[];
23608
23821
  } & {
23609
23822
  infoList?: {
23610
23823
  appid?: string;
23611
23824
  status?: AppStatus;
23612
- instanceStatus?: InstanceStatus;
23825
+ instanceStatus?: InstanceStatus | undefined;
23613
23826
  version?: string | undefined;
23614
23827
  title?: string | undefined;
23615
23828
  description?: string | undefined;
@@ -23633,10 +23846,12 @@ export declare const QueryApplicationResponse: {
23633
23846
  path?: string;
23634
23847
  prefixDomain?: string | undefined;
23635
23848
  }[];
23849
+ resourceOnly?: boolean;
23850
+ hiddenFromLauncher?: boolean;
23636
23851
  }[] & ({
23637
23852
  appid?: string;
23638
23853
  status?: AppStatus;
23639
- instanceStatus?: InstanceStatus;
23854
+ instanceStatus?: InstanceStatus | undefined;
23640
23855
  version?: string | undefined;
23641
23856
  title?: string | undefined;
23642
23857
  description?: string | undefined;
@@ -23660,10 +23875,12 @@ export declare const QueryApplicationResponse: {
23660
23875
  path?: string;
23661
23876
  prefixDomain?: string | undefined;
23662
23877
  }[];
23878
+ resourceOnly?: boolean;
23879
+ hiddenFromLauncher?: boolean;
23663
23880
  } & {
23664
23881
  appid?: string;
23665
23882
  status?: AppStatus;
23666
- instanceStatus?: InstanceStatus;
23883
+ instanceStatus?: InstanceStatus | undefined;
23667
23884
  version?: string | undefined;
23668
23885
  title?: string | undefined;
23669
23886
  description?: string | undefined;
@@ -23851,10 +24068,12 @@ export declare const QueryApplicationResponse: {
23851
24068
  path?: string;
23852
24069
  prefixDomain?: string | undefined;
23853
24070
  }[]>]: never; };
24071
+ resourceOnly?: boolean;
24072
+ hiddenFromLauncher?: boolean;
23854
24073
  } & { [K_15 in Exclude<keyof I_1["infoList"][number], keyof AppInfo>]: never; })[] & { [K_16 in Exclude<keyof I_1["infoList"], keyof {
23855
24074
  appid?: string;
23856
24075
  status?: AppStatus;
23857
- instanceStatus?: InstanceStatus;
24076
+ instanceStatus?: InstanceStatus | undefined;
23858
24077
  version?: string | undefined;
23859
24078
  title?: string | undefined;
23860
24079
  description?: string | undefined;
@@ -23878,6 +24097,8 @@ export declare const QueryApplicationResponse: {
23878
24097
  path?: string;
23879
24098
  prefixDomain?: string | undefined;
23880
24099
  }[];
24100
+ resourceOnly?: boolean;
24101
+ hiddenFromLauncher?: boolean;
23881
24102
  }[]>]: never; };
23882
24103
  } & { [K_17 in Exclude<keyof I_1, "infoList">]: never; }>(object: I_1): QueryApplicationResponse;
23883
24104
  };
@@ -25733,6 +25954,8 @@ export declare const CancelPendingTaskResponse: {
25733
25954
  };
25734
25955
  export interface PackageManager {
25735
25956
  InstallLPK(request: DeepPartial<InstallLPKRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<InstallLPKResponse>;
25957
+ /** 列出已安装 LPK 的包级信息。仅管理员允许使用。 */
25958
+ ListLPK(request: DeepPartial<ListLPKRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ListLPKResponse>;
25736
25959
  /** 根据 AppId 卸载应用 */
25737
25960
  Uninstall(request: DeepPartial<UninstallRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
25738
25961
  /** 休眠应用 */
@@ -25788,6 +26011,7 @@ export declare class PackageManagerClientImpl implements PackageManager {
25788
26011
  private readonly rpc;
25789
26012
  constructor(rpc: Rpc);
25790
26013
  InstallLPK(request: DeepPartial<InstallLPKRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<InstallLPKResponse>;
26014
+ ListLPK(request: DeepPartial<ListLPKRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ListLPKResponse>;
25791
26015
  Uninstall(request: DeepPartial<UninstallRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
25792
26016
  Pause(request: DeepPartial<AppInstance>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
25793
26017
  Resume(request: DeepPartial<AppInstance>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
@@ -25812,6 +26036,7 @@ export declare const PackageManagerDesc: {
25812
26036
  serviceName: string;
25813
26037
  };
25814
26038
  export declare const PackageManagerInstallLPKDesc: UnaryMethodDefinitionish;
26039
+ export declare const PackageManagerListLPKDesc: UnaryMethodDefinitionish;
25815
26040
  export declare const PackageManagerUninstallDesc: UnaryMethodDefinitionish;
25816
26041
  export declare const PackageManagerPauseDesc: UnaryMethodDefinitionish;
25817
26042
  export declare const PackageManagerResumeDesc: UnaryMethodDefinitionish;