@start9labs/start-sdk 0.4.0-beta.47 → 0.4.0-beta.48

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 (77) hide show
  1. package/base/lib/Effects.d.ts +1 -1
  2. package/base/lib/osBindings/AddCategoryParams.d.ts +2 -1
  3. package/base/lib/osBindings/AddCategoryParams.js +0 -1
  4. package/base/lib/osBindings/AddCategoryParams.js.map +1 -1
  5. package/base/lib/osBindings/AddMirrorParams.d.ts +7 -0
  6. package/base/lib/osBindings/AddMirrorParams.js +3 -0
  7. package/base/lib/osBindings/AddMirrorParams.js.map +1 -0
  8. package/base/lib/osBindings/AddPackageParams.d.ts +1 -1
  9. package/base/lib/osBindings/Alerts.d.ts +6 -5
  10. package/base/lib/osBindings/Alerts.js +0 -1
  11. package/base/lib/osBindings/Alerts.js.map +1 -1
  12. package/base/lib/osBindings/AttachParams.d.ts +1 -1
  13. package/base/lib/osBindings/Category.d.ts +2 -1
  14. package/base/lib/osBindings/Category.js +0 -1
  15. package/base/lib/osBindings/Category.js.map +1 -1
  16. package/base/lib/osBindings/CurrentDependencyInfo.d.ts +2 -1
  17. package/base/lib/osBindings/DependencyMetadata.d.ts +3 -2
  18. package/base/lib/osBindings/Description.d.ts +3 -2
  19. package/base/lib/osBindings/Description.js +0 -1
  20. package/base/lib/osBindings/Description.js.map +1 -1
  21. package/base/lib/osBindings/DeviceFilter.d.ts +5 -2
  22. package/base/lib/osBindings/GetPackageParams.d.ts +1 -1
  23. package/base/lib/osBindings/GetServiceManifestParams.d.ts +1 -1
  24. package/base/lib/osBindings/ImageConfig.d.ts +1 -0
  25. package/base/lib/osBindings/KeyboardOptions.d.ts +7 -0
  26. package/base/lib/osBindings/KeyboardOptions.js +4 -0
  27. package/base/lib/osBindings/KeyboardOptions.js.map +1 -0
  28. package/base/lib/osBindings/LocaleString.d.ts +1 -0
  29. package/base/lib/osBindings/LocaleString.js +4 -0
  30. package/base/lib/osBindings/LocaleString.js.map +1 -0
  31. package/base/lib/osBindings/LshwDisplay.d.ts +4 -1
  32. package/base/lib/osBindings/LshwProcessor.d.ts +3 -1
  33. package/base/lib/osBindings/Manifest.d.ts +3 -1
  34. package/base/lib/osBindings/Metadata.d.ts +2 -1
  35. package/base/lib/osBindings/PackageVersionInfo.d.ts +5 -4
  36. package/base/lib/osBindings/Pem.d.ts +1 -0
  37. package/base/lib/osBindings/Pem.js +4 -0
  38. package/base/lib/osBindings/Pem.js.map +1 -0
  39. package/base/lib/osBindings/RegistryAsset.d.ts +1 -1
  40. package/base/lib/osBindings/RemoveMirrorParams.d.ts +7 -0
  41. package/base/lib/osBindings/RemoveMirrorParams.js +3 -0
  42. package/base/lib/osBindings/RemoveMirrorParams.js.map +1 -0
  43. package/base/lib/osBindings/RemovePackageParams.d.ts +2 -0
  44. package/base/lib/osBindings/ServerInfo.d.ts +3 -0
  45. package/base/lib/osBindings/SetupExecuteParams.d.ts +2 -2
  46. package/base/lib/osBindings/SetupInfo.d.ts +4 -0
  47. package/base/lib/osBindings/SetupInfo.js +4 -0
  48. package/base/lib/osBindings/SetupInfo.js.map +1 -0
  49. package/base/lib/osBindings/SetupResult.d.ts +3 -3
  50. package/base/lib/osBindings/SetupResult.js +0 -1
  51. package/base/lib/osBindings/SetupResult.js.map +1 -1
  52. package/base/lib/osBindings/SetupStatusRes.d.ts +9 -4
  53. package/base/lib/osBindings/index.d.ts +6 -0
  54. package/base/lib/types/ManifestTypes.d.ts +18 -12
  55. package/base/lib/util/getServiceInterface.js +5 -2
  56. package/base/lib/util/getServiceInterface.js.map +1 -1
  57. package/base/lib/util/getServiceInterfaces.js +5 -2
  58. package/base/lib/util/getServiceInterfaces.js.map +1 -1
  59. package/package/lib/StartSdk.d.ts +1 -1
  60. package/package/lib/StartSdk.js +1 -1
  61. package/package/lib/i18n/index.d.ts +24 -0
  62. package/package/lib/i18n/index.js +59 -0
  63. package/package/lib/i18n/index.js.map +1 -0
  64. package/package/lib/index.d.ts +1 -0
  65. package/package/lib/index.js +3 -1
  66. package/package/lib/index.js.map +1 -1
  67. package/package/lib/manifest/setupManifest.js +2 -0
  68. package/package/lib/manifest/setupManifest.js.map +1 -1
  69. package/package/lib/test/output.js +390 -301
  70. package/package/lib/test/output.js.map +1 -1
  71. package/package/lib/util/GetServiceManifest.js +5 -2
  72. package/package/lib/util/GetServiceManifest.js.map +1 -1
  73. package/package/lib/util/fileHelper.js +6 -2
  74. package/package/lib/util/fileHelper.js.map +1 -1
  75. package/package/lib/version/VersionInfo.d.ts +1 -1
  76. package/package/package.json +1 -1
  77. package/package.json +1 -1
@@ -65,7 +65,7 @@ export type Effects = {
65
65
  getInstalledPackages(): Promise<string[]>;
66
66
  /** Returns the manifest of a service */
67
67
  getServiceManifest(options: {
68
- packageId?: PackageId;
68
+ packageId: PackageId;
69
69
  callback?: () => void;
70
70
  }): Promise<Manifest>;
71
71
  /** sets the result of a health check */
@@ -1,4 +1,5 @@
1
+ import type { LocaleString } from "./LocaleString";
1
2
  export type AddCategoryParams = {
2
3
  id: string;
3
- name: string;
4
+ name: LocaleString;
4
5
  };
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=AddCategoryParams.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddCategoryParams.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/AddCategoryParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
1
+ {"version":3,"file":"AddCategoryParams.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/AddCategoryParams.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { AnySignature } from "./AnySignature";
2
+ import type { MerkleArchiveCommitment } from "./MerkleArchiveCommitment";
3
+ export type AddMirrorParams = {
4
+ url: string;
5
+ commitment: MerkleArchiveCommitment;
6
+ signature: AnySignature;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AddMirrorParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddMirrorParams.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/AddMirrorParams.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  import type { AnySignature } from "./AnySignature";
2
2
  import type { MerkleArchiveCommitment } from "./MerkleArchiveCommitment";
3
3
  export type AddPackageParams = {
4
- url: string;
4
+ urls: string[];
5
5
  commitment: MerkleArchiveCommitment;
6
6
  signature: AnySignature;
7
7
  };
@@ -1,7 +1,8 @@
1
+ import type { LocaleString } from "./LocaleString";
1
2
  export type Alerts = {
2
- install: string | null;
3
- uninstall: string | null;
4
- restore: string | null;
5
- start: string | null;
6
- stop: string | null;
3
+ install: LocaleString | null;
4
+ uninstall: LocaleString | null;
5
+ restore: LocaleString | null;
6
+ start: LocaleString | null;
7
+ stop: LocaleString | null;
7
8
  };
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=Alerts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alerts.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Alerts.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
1
+ {"version":3,"file":"Alerts.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Alerts.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import type { EncryptedWire } from "./EncryptedWire";
2
2
  export type AttachParams = {
3
- startOsPassword: EncryptedWire | null;
3
+ password: EncryptedWire | null;
4
4
  guid: string;
5
5
  kiosk?: boolean;
6
6
  };
@@ -1,3 +1,4 @@
1
+ import type { LocaleString } from "./LocaleString";
1
2
  export type Category = {
2
- name: string;
3
+ name: LocaleString;
3
4
  };
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=Category.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Category.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Category.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
1
+ {"version":3,"file":"Category.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Category.ts"],"names":[],"mappings":""}
@@ -1,6 +1,7 @@
1
1
  import type { DataUrl } from "./DataUrl";
2
+ import type { LocaleString } from "./LocaleString";
2
3
  export type CurrentDependencyInfo = {
3
- title: string | null;
4
+ title: LocaleString | null;
4
5
  icon: DataUrl | null;
5
6
  versionRange: string;
6
7
  } & ({
@@ -1,7 +1,8 @@
1
1
  import type { DataUrl } from "./DataUrl";
2
+ import type { LocaleString } from "./LocaleString";
2
3
  export type DependencyMetadata = {
3
- title: string | null;
4
+ title: LocaleString | null;
4
5
  icon: DataUrl | null;
5
- description: string | null;
6
+ description: LocaleString | null;
6
7
  optional: boolean;
7
8
  };
@@ -1,4 +1,5 @@
1
+ import type { LocaleString } from "./LocaleString";
1
2
  export type Description = {
2
- short: string;
3
- long: string;
3
+ short: LocaleString;
4
+ long: LocaleString;
4
5
  };
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=Description.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Description.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
1
+ {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Description.ts"],"names":[],"mappings":""}
@@ -1,5 +1,8 @@
1
1
  export type DeviceFilter = {
2
+ description: string;
2
3
  class: "processor" | "display";
3
- pattern: string;
4
- patternDescription: string;
4
+ product: string | null;
5
+ vendor: string | null;
6
+ capabilities?: Array<string>;
7
+ driver?: string;
5
8
  };
@@ -5,5 +5,5 @@ export type GetPackageParams = {
5
5
  id: PackageId | null;
6
6
  targetVersion: string | null;
7
7
  sourceVersion: Version | null;
8
- otherVersions: PackageDetailLevel;
8
+ otherVersions: PackageDetailLevel | null;
9
9
  };
@@ -1,6 +1,6 @@
1
1
  import type { CallbackId } from "./CallbackId";
2
2
  import type { PackageId } from "./PackageId";
3
3
  export type GetServiceManifestParams = {
4
- packageId?: PackageId;
4
+ packageId: PackageId;
5
5
  callback?: CallbackId;
6
6
  };
@@ -3,4 +3,5 @@ export type ImageConfig = {
3
3
  source: ImageSource;
4
4
  arch: string[];
5
5
  emulateMissingAs: string | null;
6
+ nvidiaContainer: boolean;
6
7
  };
@@ -0,0 +1,7 @@
1
+ export type KeyboardOptions = {
2
+ layout: string;
3
+ keymap: string | null;
4
+ model: string | null;
5
+ variant: string | null;
6
+ options: Array<string>;
7
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=KeyboardOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyboardOptions.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/KeyboardOptions.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1 @@
1
+ export type LocaleString = string | Record<string, string>;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=LocaleString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocaleString.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/LocaleString.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -1,3 +1,6 @@
1
1
  export type LshwDisplay = {
2
- product: string;
2
+ product: string | null;
3
+ vendor: string | null;
4
+ capabilities: Array<string>;
5
+ driver: string | null;
3
6
  };
@@ -1,3 +1,5 @@
1
1
  export type LshwProcessor = {
2
- product: string;
2
+ product: string | null;
3
+ vendor: string | null;
4
+ capabilities: Array<string>;
3
5
  };
@@ -5,6 +5,7 @@ import type { GitHash } from "./GitHash";
5
5
  import type { HardwareRequirements } from "./HardwareRequirements";
6
6
  import type { ImageConfig } from "./ImageConfig";
7
7
  import type { ImageId } from "./ImageId";
8
+ import type { LocaleString } from "./LocaleString";
8
9
  import type { PackageId } from "./PackageId";
9
10
  import type { Version } from "./Version";
10
11
  import type { VolumeId } from "./VolumeId";
@@ -13,7 +14,7 @@ export type Manifest = {
13
14
  title: string;
14
15
  version: Version;
15
16
  satisfies: Array<Version>;
16
- releaseNotes: string;
17
+ releaseNotes: LocaleString;
17
18
  canMigrateTo: string;
18
19
  canMigrateFrom: string;
19
20
  license: string;
@@ -31,6 +32,7 @@ export type Manifest = {
31
32
  alerts: Alerts;
32
33
  dependencies: Dependencies;
33
34
  hardwareRequirements: HardwareRequirements;
35
+ hardwareAcceleration: boolean;
34
36
  gitHash: GitHash | null;
35
37
  osVersion: string;
36
38
  sdkVersion: string | null;
@@ -1,5 +1,6 @@
1
+ import type { LocaleString } from "./LocaleString";
1
2
  import type { PathOrUrl } from "./PathOrUrl";
2
3
  export type Metadata = {
3
- title: string;
4
+ title: LocaleString;
4
5
  icon: PathOrUrl;
5
6
  };
@@ -4,14 +4,17 @@ import type { DependencyMetadata } from "./DependencyMetadata";
4
4
  import type { Description } from "./Description";
5
5
  import type { GitHash } from "./GitHash";
6
6
  import type { HardwareRequirements } from "./HardwareRequirements";
7
+ import type { LocaleString } from "./LocaleString";
7
8
  import type { MerkleArchiveCommitment } from "./MerkleArchiveCommitment";
8
9
  import type { PackageId } from "./PackageId";
9
10
  import type { RegistryAsset } from "./RegistryAsset";
10
11
  export type PackageVersionInfo = {
12
+ sourceVersion: string | null;
13
+ s9pks: Array<[HardwareRequirements, RegistryAsset<MerkleArchiveCommitment>]>;
11
14
  title: string;
12
15
  icon: DataUrl;
13
16
  description: Description;
14
- releaseNotes: string;
17
+ releaseNotes: LocaleString;
15
18
  gitHash: GitHash | null;
16
19
  license: string;
17
20
  wrapperRepo: string;
@@ -26,7 +29,5 @@ export type PackageVersionInfo = {
26
29
  };
27
30
  osVersion: string;
28
31
  sdkVersion: string | null;
29
- hardwareRequirements: HardwareRequirements;
30
- sourceVersion: string | null;
31
- s9pk: RegistryAsset<MerkleArchiveCommitment>;
32
+ hardwareAcceleration: boolean;
32
33
  };
@@ -0,0 +1 @@
1
+ export type Pem = string;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Pem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pem.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Pem.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -2,7 +2,7 @@ import type { AnySignature } from "./AnySignature";
2
2
  import type { AnyVerifyingKey } from "./AnyVerifyingKey";
3
3
  export type RegistryAsset<Commitment> = {
4
4
  publishedAt: string;
5
- url: string;
5
+ urls: string[];
6
6
  commitment: Commitment;
7
7
  signatures: {
8
8
  [key: AnyVerifyingKey]: AnySignature;
@@ -0,0 +1,7 @@
1
+ import type { PackageId } from "./PackageId";
2
+ import type { Version } from "./Version";
3
+ export type RemoveMirrorParams = {
4
+ id: PackageId;
5
+ version: Version;
6
+ url: string;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RemoveMirrorParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoveMirrorParams.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/RemoveMirrorParams.ts"],"names":[],"mappings":""}
@@ -1,6 +1,8 @@
1
+ import type { Base64 } from "./Base64";
1
2
  import type { PackageId } from "./PackageId";
2
3
  import type { Version } from "./Version";
3
4
  export type RemovePackageParams = {
4
5
  id: PackageId;
5
6
  version: Version;
7
+ sighash: Base64 | null;
6
8
  };
@@ -1,4 +1,5 @@
1
1
  import type { Governor } from "./Governor";
2
+ import type { KeyboardOptions } from "./KeyboardOptions";
2
3
  import type { LshwDevice } from "./LshwDevice";
3
4
  import type { NetworkInfo } from "./NetworkInfo";
4
5
  import type { ServerStatus } from "./ServerStatus";
@@ -25,4 +26,6 @@ export type ServerInfo = {
25
26
  ram: number;
26
27
  devices: Array<LshwDevice>;
27
28
  kiosk: boolean | null;
29
+ language: string | null;
30
+ keyboard: KeyboardOptions | null;
28
31
  };
@@ -1,8 +1,8 @@
1
1
  import type { EncryptedWire } from "./EncryptedWire";
2
2
  import type { RecoverySource } from "./RecoverySource";
3
3
  export type SetupExecuteParams = {
4
- startOsLogicalname: string;
5
- startOsPassword: EncryptedWire;
4
+ guid: string;
5
+ password: EncryptedWire;
6
6
  recoverySource: RecoverySource<EncryptedWire> | null;
7
7
  kiosk?: boolean;
8
8
  };
@@ -0,0 +1,4 @@
1
+ export type SetupInfo = {
2
+ guid: string | null;
3
+ attach: boolean;
4
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=SetupInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupInfo.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/SetupInfo.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -1,6 +1,6 @@
1
+ import type { Pem } from "./Pem";
1
2
  export type SetupResult = {
2
- torAddresses: Array<string>;
3
3
  hostname: string;
4
- lanAddress: string;
5
- rootCa: string;
4
+ rootCa: Pem;
5
+ needsRestart: boolean;
6
6
  };
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=SetupResult.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SetupResult.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/SetupResult.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
1
+ {"version":3,"file":"SetupResult.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/SetupResult.ts"],"names":[],"mappings":""}
@@ -1,7 +1,12 @@
1
+ import type { SetupInfo } from "./SetupInfo";
1
2
  import type { SetupProgress } from "./SetupProgress";
2
3
  import type { SetupResult } from "./SetupResult";
3
- export type SetupStatusRes = ({
4
- status: "complete";
5
- } & SetupResult) | ({
4
+ export type SetupStatusRes = {
5
+ status: "needs-install";
6
+ } | ({
7
+ status: "incomplete";
8
+ } & SetupInfo) | ({
6
9
  status: "running";
7
- } & SetupProgress);
10
+ } & SetupProgress) | ({
11
+ status: "complete";
12
+ } & SetupResult);
@@ -13,6 +13,7 @@ export { ActionVisibility } from "./ActionVisibility";
13
13
  export { AddAdminParams } from "./AddAdminParams";
14
14
  export { AddAssetParams } from "./AddAssetParams";
15
15
  export { AddCategoryParams } from "./AddCategoryParams";
16
+ export { AddMirrorParams } from "./AddMirrorParams";
16
17
  export { AddPackageParams } from "./AddPackageParams";
17
18
  export { AddPackageSignerParams } from "./AddPackageSignerParams";
18
19
  export { AddPackageToCategoryParams } from "./AddPackageToCategoryParams";
@@ -120,9 +121,11 @@ export { InstallingState } from "./InstallingState";
120
121
  export { InstallParams } from "./InstallParams";
121
122
  export { IpHostname } from "./IpHostname";
122
123
  export { IpInfo } from "./IpInfo";
124
+ export { KeyboardOptions } from "./KeyboardOptions";
123
125
  export { ListPackageSignersParams } from "./ListPackageSignersParams";
124
126
  export { ListServiceInterfacesParams } from "./ListServiceInterfacesParams";
125
127
  export { ListVersionSignersParams } from "./ListVersionSignersParams";
128
+ export { LocaleString } from "./LocaleString";
126
129
  export { LoginParams } from "./LoginParams";
127
130
  export { LshwDevice } from "./LshwDevice";
128
131
  export { LshwDisplay } from "./LshwDisplay";
@@ -160,6 +163,7 @@ export { PackageState } from "./PackageState";
160
163
  export { PackageVersionInfo } from "./PackageVersionInfo";
161
164
  export { PasswordType } from "./PasswordType";
162
165
  export { PathOrUrl } from "./PathOrUrl";
166
+ export { Pem } from "./Pem";
163
167
  export { Percentage } from "./Percentage";
164
168
  export { Progress } from "./Progress";
165
169
  export { ProgressUnits } from "./ProgressUnits";
@@ -171,6 +175,7 @@ export { RegistryInfo } from "./RegistryInfo";
171
175
  export { RemoveAdminParams } from "./RemoveAdminParams";
172
176
  export { RemoveAssetParams } from "./RemoveAssetParams";
173
177
  export { RemoveCategoryParams } from "./RemoveCategoryParams";
178
+ export { RemoveMirrorParams } from "./RemoveMirrorParams";
174
179
  export { RemovePackageFromCategoryParams } from "./RemovePackageFromCategoryParams";
175
180
  export { RemovePackageParams } from "./RemovePackageParams";
176
181
  export { RemovePackageSignerParams } from "./RemovePackageSignerParams";
@@ -197,6 +202,7 @@ export { SetMainStatusStatus } from "./SetMainStatusStatus";
197
202
  export { SetMainStatus } from "./SetMainStatus";
198
203
  export { SetNameParams } from "./SetNameParams";
199
204
  export { SetupExecuteParams } from "./SetupExecuteParams";
205
+ export { SetupInfo } from "./SetupInfo";
200
206
  export { SetupProgress } from "./SetupProgress";
201
207
  export { SetupResult } from "./SetupResult";
202
208
  export { SetupStatusRes } from "./SetupStatusRes";
@@ -47,9 +47,9 @@ export type SDKManifest = {
47
47
  readonly docsUrl: string;
48
48
  readonly description: {
49
49
  /** Short description to display on the marketplace list page. Max length 80 chars. */
50
- readonly short: string;
50
+ readonly short: T.LocaleString;
51
51
  /** Long description to display on the marketplace details page for this service. Max length 500 chars. */
52
- readonly long: string;
52
+ readonly long: T.LocaleString;
53
53
  };
54
54
  /**
55
55
  * override the StartOS version this package was made for
@@ -94,17 +94,17 @@ export type SDKManifest = {
94
94
  readonly volumes: string[];
95
95
  readonly alerts?: {
96
96
  /** An warning alert requiring user confirmation before proceeding with initial installation of this service. */
97
- readonly install?: string | null;
97
+ readonly install?: T.LocaleString | null;
98
98
  /** An warning alert requiring user confirmation before updating this service. */
99
- readonly update?: string | null;
99
+ readonly update?: T.LocaleString | null;
100
100
  /** An warning alert requiring user confirmation before uninstalling this service. */
101
- readonly uninstall?: string | null;
101
+ readonly uninstall?: T.LocaleString | null;
102
102
  /** An warning alert requiring user confirmation before restoring this service from backup. */
103
- readonly restore?: string | null;
103
+ readonly restore?: T.LocaleString | null;
104
104
  /** An warning alert requiring user confirmation before starting this service. */
105
- readonly start?: string | null;
105
+ readonly start?: T.LocaleString | null;
106
106
  /** An warning alert requiring user confirmation before stopping this service. */
107
- readonly stop?: string | null;
107
+ readonly stop?: T.LocaleString | null;
108
108
  };
109
109
  /**
110
110
  * @description A mapping of service dependencies to be displayed to users when viewing the Marketplace
@@ -126,16 +126,17 @@ export type SDKManifest = {
126
126
  /**
127
127
  * @description (optional) A set of hardware requirements for this service. If the user's machine
128
128
  * does not meet these requirements, they will not be able to install this service.
129
- * @property {object[]} devices - TODO Aiden confirm type on the left. List of required devices (displays or processors).
129
+ * @property {object[]} devices - List of required devices (display or processor).
130
+ * `pattern` refers to a regular expression that at least one device of the specified class must match
131
+ * `patternDescription` is what will be displayed to the user about what kind of device is required
130
132
  * @property {number} ram - Minimum RAM requirement (in megabytes MB)
131
133
  * @property {string[]} arch - List of supported arches
132
134
  * @example
133
135
  * ```
134
- TODO Aiden verify below and provide examples for devices
135
136
  hardwareRequirements: {
136
137
  devices: [
137
- { class: 'display', value: '' },
138
- { class: 'processor', value: '' },
138
+ { class: 'display', pattern: 'CometLake', patternDescription: 'A CometLake (10th generation) Intel Integrated GPU' },
139
+ { class: 'processor', pattern: 'i[3579]-10[0-9]{3}U CPU', patternDescription: 'A 10th Generation Intel i-Series processor' },
139
140
  ],
140
141
  ram: 8192,
141
142
  arch: ['x86-64'],
@@ -147,6 +148,10 @@ export type SDKManifest = {
147
148
  readonly ram?: number | null;
148
149
  readonly arch?: string[] | null;
149
150
  };
151
+ /**
152
+ * @description Enable access to hardware acceleration devices (such as /dev/dri, or /dev/nvidia*)
153
+ */
154
+ readonly hardwareAcceleration?: boolean;
150
155
  };
151
156
  type ArchOptions = {
152
157
  0: ["x86_64", "aarch64", "riscv64"];
@@ -170,6 +175,7 @@ export type SDKImageInputSpec = {
170
175
  source: Exclude<ImageSource, "packed">;
171
176
  arch?: ArchOptions[A];
172
177
  emulateMissingAs?: ArchOptions[A][number] | null;
178
+ nvidiaContainer?: boolean;
173
179
  };
174
180
  }[keyof ArchOptions];
175
181
  export type ManifestDependency = T.Manifest["dependencies"][string];
@@ -186,10 +186,13 @@ class GetServiceInterface {
186
186
  const watch = this.watch(abort.signal);
187
187
  const res = await watch.next();
188
188
  if (this.effects.constRetry) {
189
- watch.next().then(() => {
189
+ watch
190
+ .next()
191
+ .then(() => {
190
192
  abort.abort();
191
193
  this.effects.constRetry && this.effects.constRetry();
192
- });
194
+ })
195
+ .catch();
193
196
  }
194
197
  return res.value;
195
198
  }