@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.
- package/README.md +13 -3
- package/dist/index.js +32759 -86
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +32754 -85
- package/dist/index.mjs.map +4 -4
- package/dist/plist/certificate-trust.xml +41 -0
- package/dist/plist/wifi-enterprise.xml +59 -0
- package/dist/plist/wifi-standard.xml +50 -0
- package/dist/types/graphql/queries.d.ts +9 -0
- package/dist/types/graphql/queries.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/logic/actions/install.d.ts +2 -2
- package/dist/types/logic/actions/install.d.ts.map +1 -1
- package/dist/types/logic/activationFlow.d.ts +17 -0
- package/dist/types/logic/activationFlow.d.ts.map +1 -0
- package/dist/types/logic/appleDeviceKit.d.ts +8 -9
- package/dist/types/logic/appleDeviceKit.d.ts.map +1 -1
- package/dist/types/logic/iosCli.d.ts +3 -0
- package/dist/types/logic/iosCli.d.ts.map +1 -0
- package/dist/types/types.d.ts +96 -0
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/authClient.d.ts +7 -0
- package/dist/types/utils/authClient.d.ts.map +1 -0
- package/dist/types/utils/mdmClient.d.ts +7 -0
- package/dist/types/utils/mdmClient.d.ts.map +1 -0
- package/dist/types/utils/templateLoader.d.ts +8 -0
- package/dist/types/utils/templateLoader.d.ts.map +1 -0
- package/dist/types/utils/trustProfile.d.ts +8 -0
- package/dist/types/utils/trustProfile.d.ts.map +1 -0
- package/dist/types/utils/wifiProfile.d.ts +10 -0
- package/dist/types/utils/wifiProfile.d.ts.map +1 -0
- package/package.json +10 -2
- package/resources/ios.exe +0 -0
- package/resources/wintun-LICENSE.txt +84 -0
- package/resources/wintun.dll +0 -0
- 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
|