@mcesystems/apple-kit 1.0.56 → 1.0.58
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/dist/index.js +220 -441
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +223 -438
- package/dist/index.mjs.map +4 -4
- package/dist/types/index.d.ts +0 -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/actions/restore.d.ts.map +1 -1
- package/dist/types/logic/activationFlow.d.ts +2 -2
- package/dist/types/logic/activationFlow.d.ts.map +1 -1
- package/dist/types/logic/appleDeviceKit.d.ts +4 -9
- package/dist/types/logic/appleDeviceKit.d.ts.map +1 -1
- package/dist/types/logic/utils/resolvePath.d.ts +3 -3
- package/dist/types/logic/utils/resolvePath.d.ts.map +1 -1
- package/dist/types/utils/authClient.d.ts +1 -1
- package/dist/types/utils/authClient.d.ts.map +1 -1
- package/dist/types/utils/mdmClient.d.ts +1 -4
- package/dist/types/utils/mdmClient.d.ts.map +1 -1
- package/dist/types/utils/templateLoader.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
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";
|
|
14
13
|
export { ActivationState } from "./types";
|
|
15
14
|
export type { AppInfo, ActivationFlowConfig, AppleListenerConfig, AuthCredentials, DeviceListEntry, GenerateEnrollmentProfileResponse, iOSDeviceInfo, InstallAppMdmOptions, InstallAppOptions, InstallAppResponse, MdmApiCallStatus, MdmClient, MdmClientConfig, PortForwardResult, TokenResponse, TrustProfileConfig, WifiEapType, WifiEncryptionType, WifiProfileConfig, } from "./types";
|
|
16
15
|
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,
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import type { AppInfo, InstallAppOptions } from "@/types";
|
|
1
|
+
import type { AppInfo, InstallAppMdmOptions, InstallAppOptions } from "@/types";
|
|
2
2
|
export declare function installApp(ipaPath: string, udid: string, options?: InstallAppOptions): Promise<void>;
|
|
3
3
|
export declare function installLocalApp(ipaPath: string, udid: string): Promise<void>;
|
|
4
|
-
export declare function installManagedApp(ipaPath: string, udid: string, timeBetweenInstalls: number): Promise<void>;
|
|
4
|
+
export declare function installManagedApp(ipaPath: string, udid: string, timeBetweenInstalls: number, options: InstallAppMdmOptions): Promise<void>;
|
|
5
5
|
export declare function uninstallApp(bundleId: string, udid: string): Promise<void>;
|
|
6
6
|
export declare function listApps(udid: string): Promise<AppInfo[]>;
|
|
7
7
|
export declare function isAppInstalled(bundleId: string, udid: string): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAa,MAAM,SAAS,CAAC;AAO3F,wBAAsB,UAAU,CAC/B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,iBAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CASf;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIlF;AAED,wBAAsB,iBAAiB,CACtC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,mBAAmB,EAAE,MAAM,EAC3B,OAAO,EAAE,oBAAoB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAQhF;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAkB/D;AAED,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAKrF;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgC5D;AAED,wBAAsB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA6D7F;AAwCD,wBAAsB,4BAA4B,CACjD,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CAgKf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/restore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"restore.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/restore.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,cAAc;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,aAAa,CAClC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,cAAmB,GAC1B,OAAO,CAAC,aAAa,CAAC,CA0ExB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { ActivationFlowConfig } from "@/types";
|
|
2
1
|
export declare class ActivationFlow {
|
|
3
2
|
private readonly iosCli;
|
|
4
3
|
private readonly mdmClientPromise;
|
|
5
|
-
constructor(
|
|
4
|
+
constructor();
|
|
6
5
|
run(udid: string): Promise<(() => Promise<void>) | undefined>;
|
|
7
6
|
private isEnrolledToMceMdm;
|
|
8
7
|
private listProfiles;
|
|
@@ -15,4 +14,5 @@ export declare class ActivationFlow {
|
|
|
15
14
|
private retryActivateCommand;
|
|
16
15
|
private retry;
|
|
17
16
|
}
|
|
17
|
+
export declare function resolveIosBinaryPath(): string | undefined;
|
|
18
18
|
//# sourceMappingURL=activationFlow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activationFlow.d.ts","sourceRoot":"","sources":["../../../src/logic/activationFlow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activationFlow.d.ts","sourceRoot":"","sources":["../../../src/logic/activationFlow.ts"],"names":[],"mappings":"AAoBA,qBAAa,cAAc;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;;IAWrD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC;YAwB5D,kBAAkB;YAKlB,YAAY;YASZ,kBAAkB;YAelB,kBAAkB;YAWlB,iBAAiB;YAqBjB,iBAAiB;YAajB,gBAAgB;YAQhB,eAAe;YAOf,oBAAoB;YAOpB,KAAK;CAwBnB;AAiCD,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,SAAS,CAIzD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActivationState, AppInfo, InstallAppMdmOptions, PortForwardResult, iOSDeviceInfo } from "../types";
|
|
2
2
|
/**
|
|
3
3
|
* AppleDeviceKit - iOS device operations wrapper
|
|
4
4
|
*
|
|
@@ -18,6 +18,7 @@ export declare class AppleDeviceKit {
|
|
|
18
18
|
private localDevicePort;
|
|
19
19
|
private isDisposed;
|
|
20
20
|
constructor(udid: string, logicalPort: number);
|
|
21
|
+
static setResourcesDir(dir: string): void;
|
|
21
22
|
/**
|
|
22
23
|
* Throws if the kit has been disposed
|
|
23
24
|
*/
|
|
@@ -66,7 +67,7 @@ export declare class AppleDeviceKit {
|
|
|
66
67
|
*
|
|
67
68
|
* @param ipaPath Path to the IPA file
|
|
68
69
|
*/
|
|
69
|
-
installApp(ipaPath: string, timeBetweenInstalls?: number): Promise<void>;
|
|
70
|
+
installApp(ipaPath: string, options: InstallAppMdmOptions, timeBetweenInstalls?: number): Promise<void>;
|
|
70
71
|
/**
|
|
71
72
|
* Uninstall an app by bundle ID (uninstall agent)
|
|
72
73
|
*
|
|
@@ -79,12 +80,6 @@ export declare class AppleDeviceKit {
|
|
|
79
80
|
* @param bundleId Application bundle identifier
|
|
80
81
|
*/
|
|
81
82
|
isAppInstalled(bundleId: string): Promise<boolean>;
|
|
82
|
-
/**
|
|
83
|
-
* Check if an app is currently opened on the device
|
|
84
|
-
*
|
|
85
|
-
* @param bundleId Application bundle identifier
|
|
86
|
-
*/
|
|
87
|
-
isAppOpened(bundleId: string): Promise<boolean>;
|
|
88
83
|
/**
|
|
89
84
|
* List all installed user applications
|
|
90
85
|
*/
|
|
@@ -132,7 +127,7 @@ export declare class AppleDeviceKit {
|
|
|
132
127
|
*
|
|
133
128
|
* Precondition: the device must be paired and trusted.
|
|
134
129
|
*/
|
|
135
|
-
activate(
|
|
130
|
+
activate(): Promise<(() => Promise<void>) | undefined>;
|
|
136
131
|
/**
|
|
137
132
|
* Get the device UDID
|
|
138
133
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appleDeviceKit.d.ts","sourceRoot":"","sources":["../../../src/logic/appleDeviceKit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,
|
|
1
|
+
{"version":3,"file":"appleDeviceKit.d.ts","sourceRoot":"","sources":["../../../src/logic/appleDeviceKit.ts"],"names":[],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AAO,CAAC,OAAO,EAAE,CAAC;IAK3C;;;;;OAKG;IACU,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAK5E;;;;;;;;;;;;;OAaG;IACU,qBAAqB,CACjC,UAAU,EAAE,MAAM,EAClB,cAAc,SAAM,GAClB,OAAO,CAAC,iBAAiB,CAAC;IAsB7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAOxB;;OAEG;IACI,gBAAgB,IAAI,IAAI;IAS/B;;OAEG;IACU,kBAAkB,IAAI,OAAO,CAAC,eAAe,CAAC;IAK3D;;;;;;;;OAQG;IACU,QAAQ,IAAI,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC;IAMnE;;OAEG;IACI,WAAW,IAAI,MAAM;IAI5B;;OAEG;IACI,cAAc,IAAI,MAAM;IAI/B;;;OAGG;IACI,aAAa,IAAI,MAAM,GAAG,IAAI;IAIrC;;OAEG;IACH,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED;;OAEG;IACH,IAAW,oBAAoB,IAAI,OAAO,CAEzC;IAED;;;;;OAKG;IACI,OAAO,IAAI,IAAI;IAatB;;OAEG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;CAGxB"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare function setResourcesDir(dir: string): void;
|
|
2
|
+
export declare function getResourcesPath(): string;
|
|
1
3
|
/**
|
|
2
4
|
* Get the path to idevice binaries
|
|
3
5
|
*
|
|
@@ -7,7 +9,5 @@
|
|
|
7
9
|
* 3. Homebrew on macOS (/opt/homebrew/bin or /usr/local/bin)
|
|
8
10
|
* 4. System PATH (assumes tools are globally installed)
|
|
9
11
|
*/
|
|
10
|
-
export declare function getResourcesBinPath(
|
|
11
|
-
resourcesDir?: string;
|
|
12
|
-
}): string;
|
|
12
|
+
export declare function getResourcesBinPath(): string;
|
|
13
13
|
//# sourceMappingURL=resolvePath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvePath.d.ts","sourceRoot":"","sources":["../../../../src/logic/utils/resolvePath.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolvePath.d.ts","sourceRoot":"","sources":["../../../../src/logic/utils/resolvePath.ts"],"names":[],"mappings":"AAOA,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEjD;AAgBD,wBAAgB,gBAAgB,IAAI,MAAM,CAKzC;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAsC5C"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { AuthCredentials, TokenResponse } from "@/types";
|
|
5
5
|
export declare function getAuthToken(credentials: AuthCredentials, apiUrl?: string): Promise<TokenResponse>;
|
|
6
|
-
export declare function readCredentialsFromFile(filePath
|
|
6
|
+
export declare function readCredentialsFromFile(filePath: string): Promise<AuthCredentials>;
|
|
7
7
|
//# sourceMappingURL=authClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authClient.d.ts","sourceRoot":"","sources":["../../../src/utils/authClient.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"authClient.d.ts","sourceRoot":"","sources":["../../../src/utils/authClient.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAK9D,wBAAsB,YAAY,CACjC,WAAW,EAAE,eAAe,EAC5B,MAAM,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,aAAa,CAAC,CAyGxB;AAED,wBAAsB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAaxF"}
|
|
@@ -3,8 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { MdmClient, MdmClientConfig } from "@/types";
|
|
5
5
|
export declare function createMdmClient(config: MdmClientConfig): MdmClient;
|
|
6
|
-
export declare function
|
|
7
|
-
resourcesDir?: string;
|
|
8
|
-
credentialsPath?: string;
|
|
9
|
-
}): Promise<MdmClient | undefined>;
|
|
6
|
+
export declare function createMDMClient(): Promise<MdmClient | undefined>;
|
|
10
7
|
//# sourceMappingURL=mdmClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdmClient.d.ts","sourceRoot":"","sources":["../../../src/utils/mdmClient.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"mdmClient.d.ts","sourceRoot":"","sources":["../../../src/utils/mdmClient.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH,OAAO,KAAK,EAGX,SAAS,EACT,eAAe,EAEf,MAAM,SAAS,CAAC;AAKjB,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAsFlE;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAgBtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateLoader.d.ts","sourceRoot":"","sources":["../../../src/utils/templateLoader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"templateLoader.d.ts","sourceRoot":"","sources":["../../../src/utils/templateLoader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAwEH,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"}
|