@mcesystems/apple-kit 1.0.49 → 1.0.51

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.
@@ -10,6 +10,7 @@
10
10
  export { AppleDeviceKit } from "./logic/appleDeviceKit";
11
11
  export { ActivationFlow } from "./logic/activationFlow";
12
12
  export { createIosCli } from "./logic/iosCli";
13
+ export { ensureUsbmuxd, isUsbmuxdRunning, startUsbmuxd, stopUsbmuxd, } from "./logic/actions/usbmuxd";
13
14
  export { ActivationState } from "./types";
14
15
  export type { AppInfo, ActivationFlowConfig, AppleListenerConfig, AuthCredentials, DeviceListEntry, GenerateEnrollmentProfileResponse, iOSDeviceInfo, InstallAppMdmOptions, InstallAppOptions, InstallAppResponse, MdmApiCallStatus, MdmClient, MdmClientConfig, PortForwardResult, TokenResponse, TrustProfileConfig, WifiEapType, WifiEncryptionType, WifiProfileConfig, } from "./types";
15
16
  export type { IosCli, IosCommandResult, IosListResult } from "./types/ios";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EACX,OAAO,EACP,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,iCAAiC,EACjC,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,iBAAiB,GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACN,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,WAAW,GACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EACX,OAAO,EACP,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,iCAAiC,EACjC,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,iBAAiB,GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type ChildProcess } from "node:child_process";
2
+ type UsbmuxdOptions = {
3
+ resourcesDir?: string;
4
+ };
5
+ export declare function startUsbmuxd(foreground?: boolean, options?: UsbmuxdOptions): ChildProcess;
6
+ export declare function stopUsbmuxd(): void;
7
+ export declare function isUsbmuxdRunning(): boolean;
8
+ export declare function ensureUsbmuxd(foreground?: boolean, options?: UsbmuxdOptions): ChildProcess;
9
+ export {};
10
+ //# sourceMappingURL=usbmuxd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usbmuxd.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/usbmuxd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,oBAAoB,CAAC;AAK9D,KAAK,cAAc,GAAG;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAIF,wBAAgB,YAAY,CAAC,UAAU,UAAQ,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,YAAY,CAqDvF;AAED,wBAAgB,WAAW,IAAI,IAAI,CAUlC;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAG1C;AAED,wBAAgB,aAAa,CAAC,UAAU,UAAQ,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,YAAY,CAMxF"}
@@ -10,6 +10,7 @@ export declare class ActivationFlow {
10
10
  private getActivationState;
11
11
  private installMdmProfile;
12
12
  private installTrustProfile;
13
+ private installResourcesIpa;
13
14
  private requireMdmClient;
14
15
  private retryIosCommand;
15
16
  private retryActivateCommand;
@@ -1 +1 @@
1
- {"version":3,"file":"activationFlow.d.ts","sourceRoot":"","sources":["../../../src/logic/activationFlow.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAa,MAAM,SAAS,CAAC;AAW/D,qBAAa,cAAc;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAS;IAC3C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAE3B,MAAM,EAAE,oBAAoB;IAW3B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC;YAmBhD,kBAAkB;YAalB,kBAAkB;YAWlB,iBAAiB;YAqBjB,mBAAmB;YA6BnB,gBAAgB;YAQhB,eAAe;YAOf,oBAAoB;YAOpB,KAAK;CAwBnB"}
1
+ {"version":3,"file":"activationFlow.d.ts","sourceRoot":"","sources":["../../../src/logic/activationFlow.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAa,MAAM,SAAS,CAAC;AAY/D,qBAAa,cAAc;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAS;IAC3C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAE3B,MAAM,EAAE,oBAAoB;IAW3B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC;YAoBhD,kBAAkB;YAclB,kBAAkB;YAWlB,iBAAiB;YA8BjB,mBAAmB;YA8BnB,mBAAmB;YAiBnB,gBAAgB;YAQhB,eAAe;YAOf,oBAAoB;YAOpB,KAAK;CAwBnB"}
@@ -7,5 +7,7 @@
7
7
  * 3. Homebrew on macOS (/opt/homebrew/bin or /usr/local/bin)
8
8
  * 4. System PATH (assumes tools are globally installed)
9
9
  */
10
- export declare function getResourcesBinPath(): string;
10
+ export declare function getResourcesBinPath(options?: {
11
+ resourcesDir?: string;
12
+ }): string;
11
13
  //# sourceMappingURL=resolvePath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolvePath.d.ts","sourceRoot":"","sources":["../../../../src/logic/utils/resolvePath.ts"],"names":[],"mappings":"AA+BA;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAmD5C"}
1
+ {"version":3,"file":"resolvePath.d.ts","sourceRoot":"","sources":["../../../../src/logic/utils/resolvePath.ts"],"names":[],"mappings":"AA+BA;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CA2D/E"}
@@ -3,6 +3,6 @@
3
3
  *
4
4
  * Loads and processes plist templates with variable substitution
5
5
  */
6
- export declare function loadTemplate(templateName: string): Promise<string>;
6
+ export declare function loadTemplate(templateName: string, plistDir?: string): Promise<string>;
7
7
  export declare function processTemplate(template: string, variables: Record<string, unknown>): string;
8
8
  //# sourceMappingURL=templateLoader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"templateLoader.d.ts","sourceRoot":"","sources":["../../../src/utils/templateLoader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAsEH,wBAAsB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAIxE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAuB5F"}
1
+ {"version":3,"file":"templateLoader.d.ts","sourceRoot":"","sources":["../../../src/utils/templateLoader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAuEH,wBAAsB,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAI3F;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAuB5F"}
@@ -2,7 +2,11 @@
2
2
  * Trust Profile Generation Utility
3
3
  */
4
4
  import type { TrustProfileConfig } from "@/types";
5
- export declare function generateTrustProfile(config: TrustProfileConfig): Promise<string>;
6
- export declare function generateTrustProfileFromEnv(organizationName: string): Promise<string | undefined>;
5
+ export declare function generateTrustProfile(config: TrustProfileConfig, options?: {
6
+ plistDir?: string;
7
+ }): Promise<string>;
8
+ export declare function generateTrustProfileFromEnv(organizationName: string, options?: {
9
+ plistDir?: string;
10
+ }): Promise<string | undefined>;
7
11
  export declare function saveTrustProfileToTemp(profileXml: string): Promise<string>;
8
12
  //# sourceMappingURL=trustProfile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trustProfile.d.ts","sourceRoot":"","sources":["../../../src/utils/trustProfile.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAyCtF;AAED,wBAAsB,2BAA2B,CAChD,gBAAgB,EAAE,MAAM,GACtB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAW7B;AAED,wBAAsB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAKhF"}
1
+ {"version":3,"file":"trustProfile.d.ts","sourceRoot":"","sources":["../../../src/utils/trustProfile.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAIlD,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7B,OAAO,CAAC,MAAM,CAAC,CAyCjB;AAED,wBAAsB,2BAA2B,CAChD,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7B,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAc7B;AAED,wBAAsB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAKhF"}
@@ -4,7 +4,11 @@
4
4
  * Generates iOS-compatible WiFi configuration profiles (.mobileconfig)
5
5
  */
6
6
  import type { WifiProfileConfig } from "@/types";
7
- export declare function generateWifiProfile(config: WifiProfileConfig): Promise<string>;
8
- export declare function generateWifiProfileFromEnv(): Promise<string | null>;
7
+ export declare function generateWifiProfile(config: WifiProfileConfig, options?: {
8
+ plistDir?: string;
9
+ }): Promise<string>;
10
+ export declare function generateWifiProfileFromEnv(options?: {
11
+ plistDir?: string;
12
+ }): Promise<string | null>;
9
13
  export declare function saveWifiProfileToTemp(profile: string): Promise<string>;
10
14
  //# sourceMappingURL=wifiProfile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wifiProfile.d.ts","sourceRoot":"","sources":["../../../src/utils/wifiProfile.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAmC,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGlF,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA4DpF;AAED,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAqBzE;AAED,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAa5E"}
1
+ {"version":3,"file":"wifiProfile.d.ts","sourceRoot":"","sources":["../../../src/utils/wifiProfile.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAmC,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAIlF,wBAAsB,mBAAmB,CACxC,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7B,OAAO,CAAC,MAAM,CAAC,CA4DjB;AAED,wBAAsB,0BAA0B,CAAC,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CACzF,MAAM,GAAG,IAAI,CACb,CAqBA;AAED,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAa5E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcesystems/apple-kit",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "iOS device management toolkit using libimobiledevice command-line tools",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",