@mcesystems/apple-kit 1.0.97 → 1.0.98

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 (79) hide show
  1. package/README.md +258 -258
  2. package/dist/index.js +50 -0
  3. package/dist/index.js.map +2 -2
  4. package/dist/index.mjs +50 -0
  5. package/dist/index.mjs.map +2 -2
  6. package/dist/resources/bin/darwin/idevice_id +0 -0
  7. package/dist/resources/bin/darwin/idevicedebug +0 -0
  8. package/dist/resources/bin/darwin/idevicediagnostics +0 -0
  9. package/dist/resources/bin/darwin/ideviceinfo +0 -0
  10. package/dist/resources/bin/darwin/ideviceinstaller +0 -0
  11. package/dist/resources/bin/darwin/idevicename +0 -0
  12. package/dist/resources/bin/darwin/idevicepair +0 -0
  13. package/dist/resources/bin/darwin/idevicescreenshot +0 -0
  14. package/dist/resources/bin/darwin/idevicesyslog +0 -0
  15. package/dist/resources/bin/darwin/iproxy +0 -0
  16. package/dist/resources/bin/darwin/libcrypto.3.dylib +0 -0
  17. package/dist/resources/bin/darwin/libimobiledevice-1.0.6.dylib +0 -0
  18. package/dist/resources/bin/darwin/libimobiledevice-glue-1.0.0.dylib +0 -0
  19. package/dist/resources/bin/darwin/liblzma.5.dylib +0 -0
  20. package/dist/resources/bin/darwin/libplist-2.0.4.dylib +0 -0
  21. package/dist/resources/bin/darwin/libssl.3.dylib +0 -0
  22. package/dist/resources/bin/darwin/libusbmuxd-2.0.7.dylib +0 -0
  23. package/dist/resources/bin/darwin/libzip.5.dylib +0 -0
  24. package/dist/resources/bin/darwin/libzstd.1.dylib +0 -0
  25. package/dist/resources/licenses/LGPL-2.1.txt +33 -0
  26. package/dist/resources/plist/certificate-trust.xml +43 -43
  27. package/dist/resources/plist/wifi-enterprise.xml +59 -59
  28. package/dist/resources/plist/wifi-standard.xml +50 -50
  29. package/dist/types/index.d.ts +98 -0
  30. package/dist/types/index.d.ts.map +1 -0
  31. package/dist/types/logic/actions/activation.d.ts +12 -0
  32. package/dist/types/logic/actions/activation.d.ts.map +1 -0
  33. package/dist/types/logic/actions/device.d.ts +15 -0
  34. package/dist/types/logic/actions/device.d.ts.map +1 -0
  35. package/dist/types/logic/actions/install.d.ts +10 -0
  36. package/dist/types/logic/actions/install.d.ts.map +1 -0
  37. package/dist/types/logic/actions/pair.d.ts +6 -0
  38. package/dist/types/logic/actions/pair.d.ts.map +1 -0
  39. package/dist/types/logic/actions/proxy.d.ts +23 -0
  40. package/dist/types/logic/actions/proxy.d.ts.map +1 -0
  41. package/dist/types/logic/actions/restore.d.ts +36 -0
  42. package/dist/types/logic/actions/restore.d.ts.map +1 -0
  43. package/dist/types/logic/actions/tool.d.ts +8 -0
  44. package/dist/types/logic/actions/tool.d.ts.map +1 -0
  45. package/dist/types/logic/activationFlow.d.ts +15 -0
  46. package/dist/types/logic/activationFlow.d.ts.map +1 -0
  47. package/dist/types/logic/appleDeviceKit.d.ts +164 -0
  48. package/dist/types/logic/appleDeviceKit.d.ts.map +1 -0
  49. package/dist/types/logic/dataParser.d.ts +23 -0
  50. package/dist/types/logic/dataParser.d.ts.map +1 -0
  51. package/dist/types/logic/iosCli.d.ts +6 -0
  52. package/dist/types/logic/iosCli.d.ts.map +1 -0
  53. package/dist/types/logic/utils/resolvePath.d.ts +13 -0
  54. package/dist/types/logic/utils/resolvePath.d.ts.map +1 -0
  55. package/dist/types/types/activation.d.ts +28 -0
  56. package/dist/types/types/activation.d.ts.map +1 -0
  57. package/dist/types/types/ios.d.ts +152 -0
  58. package/dist/types/types/ios.d.ts.map +1 -0
  59. package/dist/types/types/trust.d.ts +10 -0
  60. package/dist/types/types/trust.d.ts.map +1 -0
  61. package/dist/types/types/types.d.ts +47 -0
  62. package/dist/types/types/types.d.ts.map +1 -0
  63. package/dist/types/types/wifi.d.ts +19 -0
  64. package/dist/types/types/wifi.d.ts.map +1 -0
  65. package/dist/types/types.d.ts +140 -0
  66. package/dist/types/types.d.ts.map +1 -0
  67. package/dist/types/utils/debug.d.ts +17 -0
  68. package/dist/types/utils/debug.d.ts.map +1 -0
  69. package/dist/types/utils/templateLoader.d.ts +8 -0
  70. package/dist/types/utils/templateLoader.d.ts.map +1 -0
  71. package/dist/types/utils/wifiProfile.d.ts +14 -0
  72. package/dist/types/utils/wifiProfile.d.ts.map +1 -0
  73. package/package.json +3 -3
  74. package/scripts/README.md +209 -209
  75. package/scripts/build-windows.sh.template +222 -222
  76. package/scripts/prepare-ios.ts +9 -1
  77. package/resources/ios.exe +0 -0
  78. package/resources/wintun-LICENSE.txt +0 -84
  79. package/resources/wintun.dll +0 -0
package/dist/index.mjs CHANGED
@@ -1577,6 +1577,38 @@ var DeviceActions = class {
1577
1577
  }
1578
1578
  return result.output[0];
1579
1579
  }
1580
+ async batteryInfo() {
1581
+ logInfo(`Getting device info for ${this.udid}`);
1582
+ const result = await this.iosClient.batteryInfo();
1583
+ if (result.exitCode !== 0) {
1584
+ throw new Error("Failed to get battery info");
1585
+ }
1586
+ return result.output[0];
1587
+ }
1588
+ async capacityInfo() {
1589
+ logInfo(`Getting device info for ${this.udid}`);
1590
+ const result = await this.iosClient.capacityInfo();
1591
+ if (result.exitCode !== 0) {
1592
+ throw new Error("Failed to get capacity info");
1593
+ }
1594
+ return result.output[0];
1595
+ }
1596
+ async cloudConfigInfo() {
1597
+ logInfo(`Getting device info for ${this.udid}`);
1598
+ const result = await this.iosClient.cloudConfigInfo();
1599
+ if (result.exitCode !== 0) {
1600
+ throw new Error("Failed to get cloud config info");
1601
+ }
1602
+ return result.output[0];
1603
+ }
1604
+ async regularModelNumber() {
1605
+ logInfo(`Getting device info for ${this.udid}`);
1606
+ const result = await this.iosClient.regularModelNumber();
1607
+ if (result.exitCode !== 0) {
1608
+ throw new Error("Failed to get regular model number");
1609
+ }
1610
+ return result.output[0];
1611
+ }
1580
1612
  async listDevices() {
1581
1613
  logInfo("Listing devices");
1582
1614
  return this.iosClient.listDevices();
@@ -39143,6 +39175,24 @@ var IosClient = class {
39143
39175
  async info() {
39144
39176
  return this.runIosCommand(["info", "--udid", this.udid]);
39145
39177
  }
39178
+ async batteryInfo() {
39179
+ return this.runIosCommand(["batteryregistry", "--udid", this.udid]);
39180
+ }
39181
+ async capacityInfo() {
39182
+ return this.runIosCommand([
39183
+ "lockdown",
39184
+ "get",
39185
+ "--domain=com.apple.disk_usage",
39186
+ "--udid",
39187
+ this.udid
39188
+ ]);
39189
+ }
39190
+ async cloudConfigInfo() {
39191
+ return this.runIosCommand(["prepare", "cloudconfig", "--udid", this.udid]);
39192
+ }
39193
+ async regularModelNumber() {
39194
+ return this.runIosCommand(["lockdown", "get", "RegulatoryModelNumber", "--udid", this.udid]);
39195
+ }
39146
39196
  async installApp(ipaPath) {
39147
39197
  return this.runIosCommand(["install", `--path=${ipaPath}`, "--udid", this.udid]);
39148
39198
  }