@mcesystems/apple-kit 1.0.44 → 1.0.46

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 (37) hide show
  1. package/README.md +13 -3
  2. package/dist/index.js +32759 -86
  3. package/dist/index.js.map +4 -4
  4. package/dist/index.mjs +32754 -85
  5. package/dist/index.mjs.map +4 -4
  6. package/dist/plist/certificate-trust.xml +41 -0
  7. package/dist/plist/wifi-enterprise.xml +59 -0
  8. package/dist/plist/wifi-standard.xml +50 -0
  9. package/dist/types/graphql/queries.d.ts +9 -0
  10. package/dist/types/graphql/queries.d.ts.map +1 -0
  11. package/dist/types/index.d.ts +4 -1
  12. package/dist/types/index.d.ts.map +1 -1
  13. package/dist/types/logic/actions/install.d.ts +2 -2
  14. package/dist/types/logic/actions/install.d.ts.map +1 -1
  15. package/dist/types/logic/activationFlow.d.ts +17 -0
  16. package/dist/types/logic/activationFlow.d.ts.map +1 -0
  17. package/dist/types/logic/appleDeviceKit.d.ts +8 -9
  18. package/dist/types/logic/appleDeviceKit.d.ts.map +1 -1
  19. package/dist/types/logic/iosCli.d.ts +3 -0
  20. package/dist/types/logic/iosCli.d.ts.map +1 -0
  21. package/dist/types/types.d.ts +96 -0
  22. package/dist/types/types.d.ts.map +1 -1
  23. package/dist/types/utils/authClient.d.ts +7 -0
  24. package/dist/types/utils/authClient.d.ts.map +1 -0
  25. package/dist/types/utils/mdmClient.d.ts +7 -0
  26. package/dist/types/utils/mdmClient.d.ts.map +1 -0
  27. package/dist/types/utils/templateLoader.d.ts +8 -0
  28. package/dist/types/utils/templateLoader.d.ts.map +1 -0
  29. package/dist/types/utils/trustProfile.d.ts +8 -0
  30. package/dist/types/utils/trustProfile.d.ts.map +1 -0
  31. package/dist/types/utils/wifiProfile.d.ts +10 -0
  32. package/dist/types/utils/wifiProfile.d.ts.map +1 -0
  33. package/package.json +10 -2
  34. package/resources/ios.exe +0 -0
  35. package/resources/wintun-LICENSE.txt +84 -0
  36. package/resources/wintun.dll +0 -0
  37. package/scripts/prepare-ios.ts +222 -0
package/README.md CHANGED
@@ -98,9 +98,19 @@ import { AppleDeviceKit } from '@mcesystems/apple-kit';
98
98
 
99
99
  const device = new AppleDeviceKit('device-udid', 1);
100
100
 
101
- // Install an agent/app
101
+ // Install an agent/app locally
102
102
  await device.installApp('/path/to/agent.ipa');
103
103
 
104
+ // Install via MDM (ignores ipaPath, uses appId or url)
105
+ await device.installApp('/path/to/agent.ipa', {
106
+ installViaMdm: true,
107
+ mdm: {
108
+ appId: 'com.example.agent',
109
+ url: 'https://example.com/agent.ipa',
110
+ waitForInstalled: true
111
+ }
112
+ });
113
+
104
114
  // Check if installed
105
115
  const isInstalled = await device.isAppInstalled('com.example.agent');
106
116
 
@@ -183,7 +193,7 @@ console.log(`Activated: ${state.isActivated}`);
183
193
  console.log(`State: ${state.activationState}`);
184
194
 
185
195
  // Activate device (requires valid activation record)
186
- await device.activate();
196
+ await device.activate({ iosBinaryPath: process.env.IOS_BIN ?? "ios" });
187
197
 
188
198
  // Deactivate device
189
199
  await device.deactivate();
@@ -226,7 +236,7 @@ daemon.stop();
226
236
  - `getPort()`: Get the logical port number
227
237
 
228
238
  **App Management:**
229
- - `installApp(ipaPath)`: Install an IPA file
239
+ - `installApp(ipaPath, options?)`: Install an IPA file or via MDM
230
240
  - `uninstallApp(bundleId)`: Uninstall an app by bundle ID
231
241
  - `isAppInstalled(bundleId)`: Check if app is installed
232
242
  - `listApps()`: List all installed user apps