@mcesystems/apple-kit 1.0.90 → 1.0.91

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.
@@ -44,7 +44,7 @@ export interface ActivationFlowConfig {
44
44
  * Whether to install MDM profile.
45
45
  * If not set, defaults to true.
46
46
  */
47
- withMdm: boolean;
47
+ withMdm?: boolean;
48
48
  /**
49
49
  * Path to the ios CLI binary (go-ios wrapper).
50
50
  * If not set, defaults to resourcesDir/ios/bin/{platform}/ios(.exe).
@@ -512,6 +512,12 @@ declare class DeviceActions {
512
512
  pollInterval?: number;
513
513
  signal?: AbortSignal;
514
514
  }): Promise<boolean>;
515
+ /**
516
+ * Returns true if device is paired and trusted.
517
+ * Uses info() which only succeeds when full pairing is established (user has accepted Trust).
518
+ * Prefer this over lockdown file check since file location/timing can vary by platform.
519
+ */
520
+ private isPairedViaInfo;
515
521
  isWifiConnected(timeoutMs?: number): Promise<string | undefined>;
516
522
  unpair(): Promise<boolean>;
517
523
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcesystems/apple-kit",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
4
  "description": "iOS device management toolkit using libimobiledevice command-line tools",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -39,8 +39,8 @@
39
39
  "tsx": "^4.21.0",
40
40
  "plist": "^3.1.0",
41
41
  "ts-retry-promise": "^0.8.1",
42
- "@mcesystems/tool-debug-g4": "1.0.90",
43
- "@mcesystems/mdm-client-g4": "1.0.90"
42
+ "@mcesystems/tool-debug-g4": "1.0.91",
43
+ "@mcesystems/mdm-client-g4": "1.0.91"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^22.10.2",
@@ -54,8 +54,7 @@
54
54
  "rimraf": "^6.0.1",
55
55
  "typescript": "^5.7.2",
56
56
  "vitest": "^2.1.8",
57
- "@types/plist": "^3.0.5",
58
- "@mcesystems/usb-device-listener": "1.0.90"
57
+ "@types/plist": "^3.0.5"
59
58
  },
60
59
  "files": [
61
60
  "dist",
@@ -76,6 +75,7 @@
76
75
  "check:types": "tsc -p tsconfig.build.json --noEmit",
77
76
  "activate:example": "tsx src/examples/activationExample.ts",
78
77
  "ios:example": "tsx src/examples/iosExample.ts",
78
+ "pairing:example": "tsx src/examples/waitForPairingExample.ts",
79
79
  "pack": "npm pack",
80
80
  "test": "vitest run",
81
81
  "test:watch": "vitest"