@mcesystems/apple-kit 1.0.91 → 1.0.92
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 +258 -258
- package/dist/index.js.map +2 -2
- package/dist/index.mjs.map +2 -2
- package/dist/resources/bin/darwin/idevice_id +0 -0
- package/dist/resources/bin/darwin/idevicedebug +0 -0
- package/dist/resources/bin/darwin/idevicediagnostics +0 -0
- package/dist/resources/bin/darwin/ideviceinfo +0 -0
- package/dist/resources/bin/darwin/ideviceinstaller +0 -0
- package/dist/resources/bin/darwin/idevicename +0 -0
- package/dist/resources/bin/darwin/idevicepair +0 -0
- package/dist/resources/bin/darwin/idevicescreenshot +0 -0
- package/dist/resources/bin/darwin/idevicesyslog +0 -0
- package/dist/resources/bin/darwin/iproxy +0 -0
- package/dist/resources/bin/darwin/libcrypto.3.dylib +0 -0
- package/dist/resources/bin/darwin/libimobiledevice-1.0.6.dylib +0 -0
- package/dist/resources/bin/darwin/libimobiledevice-glue-1.0.0.dylib +0 -0
- package/dist/resources/bin/darwin/liblzma.5.dylib +0 -0
- package/dist/resources/bin/darwin/libplist-2.0.4.dylib +0 -0
- package/dist/resources/bin/darwin/libssl.3.dylib +0 -0
- package/dist/resources/bin/darwin/libusbmuxd-2.0.7.dylib +0 -0
- package/dist/resources/bin/darwin/libzip.5.dylib +0 -0
- package/dist/resources/bin/darwin/libzstd.1.dylib +0 -0
- package/dist/resources/licenses/LGPL-2.1.txt +33 -0
- package/dist/resources/plist/certificate-trust.xml +43 -43
- package/dist/resources/plist/wifi-enterprise.xml +59 -59
- package/dist/resources/plist/wifi-standard.xml +50 -50
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/logic/actions/activation.d.ts +12 -0
- package/dist/types/logic/actions/activation.d.ts.map +1 -0
- package/dist/types/logic/actions/device.d.ts +15 -0
- package/dist/types/logic/actions/device.d.ts.map +1 -0
- package/dist/types/logic/actions/install.d.ts +10 -0
- package/dist/types/logic/actions/install.d.ts.map +1 -0
- package/dist/types/logic/actions/pair.d.ts +6 -0
- package/dist/types/logic/actions/pair.d.ts.map +1 -0
- package/dist/types/logic/actions/proxy.d.ts +23 -0
- package/dist/types/logic/actions/proxy.d.ts.map +1 -0
- package/dist/types/logic/actions/restore.d.ts +36 -0
- package/dist/types/logic/actions/restore.d.ts.map +1 -0
- package/dist/types/logic/actions/tool.d.ts +8 -0
- package/dist/types/logic/actions/tool.d.ts.map +1 -0
- package/dist/types/logic/activationFlow.d.ts +15 -0
- package/dist/types/logic/activationFlow.d.ts.map +1 -0
- package/dist/types/logic/appleDeviceKit.d.ts +164 -0
- package/dist/types/logic/appleDeviceKit.d.ts.map +1 -0
- package/dist/types/logic/dataParser.d.ts +23 -0
- package/dist/types/logic/dataParser.d.ts.map +1 -0
- package/dist/types/logic/iosCli.d.ts +6 -0
- package/dist/types/logic/iosCli.d.ts.map +1 -0
- package/dist/types/logic/utils/resolvePath.d.ts +13 -0
- package/dist/types/logic/utils/resolvePath.d.ts.map +1 -0
- package/dist/types/types/activation.d.ts +28 -0
- package/dist/types/types/activation.d.ts.map +1 -0
- package/dist/types/types/ios.d.ts +152 -0
- package/dist/types/types/ios.d.ts.map +1 -0
- package/dist/types/types/trust.d.ts +10 -0
- package/dist/types/types/trust.d.ts.map +1 -0
- package/dist/types/types/types.d.ts +47 -0
- package/dist/types/types/types.d.ts.map +1 -0
- package/dist/types/types/wifi.d.ts +19 -0
- package/dist/types/types/wifi.d.ts.map +1 -0
- package/dist/types/types.d.ts +140 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/utils/debug.d.ts +17 -0
- package/dist/types/utils/debug.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/wifiProfile.d.ts +14 -0
- package/dist/types/utils/wifiProfile.d.ts.map +1 -0
- package/package.json +3 -3
- package/scripts/README.md +209 -209
- package/scripts/build-windows.sh.template +222 -222
- package/resources/ios.exe +0 -0
- package/resources/wintun-LICENSE.txt +0 -84
- package/resources/wintun.dll +0 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { ActivationState } from "@/types/activation";
|
|
2
|
+
import type { IosCommandResult, IosProfileListResult, LockdownInfo } from "@/types/ios";
|
|
3
|
+
import type { AppInfo, PortForwardResult } from "@/types/types";
|
|
4
|
+
import type { InstallAppMdmOptions } from "@mcesystems/mdm-client-g4";
|
|
5
|
+
/**
|
|
6
|
+
* AppleDeviceKit - iOS device operations wrapper
|
|
7
|
+
*
|
|
8
|
+
* Uses idevice command-line tools for iOS device operations.
|
|
9
|
+
* Each instance is associated with a specific device by UDID.
|
|
10
|
+
*
|
|
11
|
+
* Port forwarding is managed automatically - each logical port (USB hub position)
|
|
12
|
+
* gets a dynamically allocated local port that is tracked and cleaned up on dispose.
|
|
13
|
+
*
|
|
14
|
+
* IMPORTANT: Call dispose() when the kit is no longer needed to clean up
|
|
15
|
+
* any running proxy processes and release port allocations.
|
|
16
|
+
*/
|
|
17
|
+
export declare class AppleDeviceKit {
|
|
18
|
+
private readonly logicalPort;
|
|
19
|
+
private deviceId;
|
|
20
|
+
private proxyProcess;
|
|
21
|
+
private localDevicePort;
|
|
22
|
+
private isDisposed;
|
|
23
|
+
private readonly iosCli;
|
|
24
|
+
constructor(udid: string, logicalPort: number);
|
|
25
|
+
static setResourcesDir(dir: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Throws if the kit has been disposed
|
|
28
|
+
*/
|
|
29
|
+
private ensureNotDisposed;
|
|
30
|
+
info(): Promise<LockdownInfo>;
|
|
31
|
+
/**
|
|
32
|
+
* Check if device is paired/trusted with this computer
|
|
33
|
+
*/
|
|
34
|
+
isPaired(): Promise<boolean>;
|
|
35
|
+
/**
|
|
36
|
+
* Wait for device to be paired
|
|
37
|
+
* Polls the pairing status until successful or timeout
|
|
38
|
+
*
|
|
39
|
+
* @param timeout Timeout in milliseconds (default: 120000)
|
|
40
|
+
* @param pollInterval Poll interval in milliseconds (default: 1000)
|
|
41
|
+
*/
|
|
42
|
+
waitForPairing(timeout?: number, pollInterval?: number): Promise<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* Attempt to pair/trust the device
|
|
45
|
+
* User must accept the trust dialog on the device
|
|
46
|
+
*/
|
|
47
|
+
pair(): Promise<boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Trust/pair the device - initiates pairing and waits for user to accept
|
|
50
|
+
*
|
|
51
|
+
* This is the recommended method for establishing trust with a device.
|
|
52
|
+
* It will:
|
|
53
|
+
* 1. Check if already paired
|
|
54
|
+
* 2. If not, initiate pairing (shows "Trust This Computer?" on device)
|
|
55
|
+
* 3. Wait for user to accept the trust dialog
|
|
56
|
+
*
|
|
57
|
+
* @param timeout Timeout in milliseconds to wait for user acceptance (default: 60000)
|
|
58
|
+
* @param onWaitingForTrust Callback when waiting for user to accept trust dialog
|
|
59
|
+
* @returns true if device is now trusted
|
|
60
|
+
*/
|
|
61
|
+
trustDevice(timeout?: number, onWaitingForTrust?: () => void): Promise<boolean>;
|
|
62
|
+
/**
|
|
63
|
+
* Unpair/untrust the device
|
|
64
|
+
*/
|
|
65
|
+
unpair(): Promise<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* Install an IPA file on the device (install agent)
|
|
68
|
+
*
|
|
69
|
+
* @param ipaPath Path to the IPA file
|
|
70
|
+
*/
|
|
71
|
+
installApp(ipaPath: string, options: InstallAppMdmOptions): Promise<IosCommandResult>;
|
|
72
|
+
/**
|
|
73
|
+
* Uninstall an app by bundle ID (uninstall agent)
|
|
74
|
+
*
|
|
75
|
+
* @param bundleId Application bundle identifier
|
|
76
|
+
*/
|
|
77
|
+
uninstallApp(bundleId: string): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Check if an app is installed on the device
|
|
80
|
+
*
|
|
81
|
+
* @param bundleId Application bundle identifier
|
|
82
|
+
*/
|
|
83
|
+
isAppInstalled(bundleId: string): Promise<boolean>;
|
|
84
|
+
/**
|
|
85
|
+
* List all installed user applications
|
|
86
|
+
*/
|
|
87
|
+
listApps(): Promise<AppInfo[]>;
|
|
88
|
+
/**
|
|
89
|
+
* Start port forwarding and wait for it to be ready.
|
|
90
|
+
* The local port is automatically allocated based on the logical port.
|
|
91
|
+
*
|
|
92
|
+
* We need port forwarding to be able to connect to the device from the computer
|
|
93
|
+
* and communicate with it using the local port.
|
|
94
|
+
*
|
|
95
|
+
* Note: Only one port forward can be active at a time per kit instance.
|
|
96
|
+
* Starting a new port forward will kill any existing one.
|
|
97
|
+
*
|
|
98
|
+
* @param devicePort Device port to forward to
|
|
99
|
+
* @param startupTimeout Time to wait for proxy to start (ms)
|
|
100
|
+
* @returns The port forward result with the allocated local port
|
|
101
|
+
*/
|
|
102
|
+
startPortForwardAsync(devicePort: number, startupTimeout?: number): Promise<PortForwardResult>;
|
|
103
|
+
/**
|
|
104
|
+
* Kill the current port forwarding process if running
|
|
105
|
+
*/
|
|
106
|
+
private killProxyProcess;
|
|
107
|
+
/**
|
|
108
|
+
* Close the current port forwarding session and release the port
|
|
109
|
+
*/
|
|
110
|
+
closePortForward(): void;
|
|
111
|
+
/**
|
|
112
|
+
* Get the activation state of the device
|
|
113
|
+
*/
|
|
114
|
+
getActivationState(): Promise<ActivationState>;
|
|
115
|
+
/**
|
|
116
|
+
* Wipe the device
|
|
117
|
+
*/
|
|
118
|
+
wipe(): Promise<void>;
|
|
119
|
+
removeProfile(profileIdentifier: string): Promise<void>;
|
|
120
|
+
listProfiles(): Promise<IosProfileListResult>;
|
|
121
|
+
/**
|
|
122
|
+
* Activate the device using the activation flow.
|
|
123
|
+
*
|
|
124
|
+
* This flow can install WiFi/MDM/trust profiles and skip setup steps.
|
|
125
|
+
*
|
|
126
|
+
* Note: This requires a valid activation record or Apple server access.
|
|
127
|
+
*
|
|
128
|
+
* Precondition: the device must be paired and trusted.
|
|
129
|
+
*/
|
|
130
|
+
activate(): Promise<(() => Promise<void>) | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* Get the device UDID
|
|
133
|
+
*/
|
|
134
|
+
getDeviceId(): string;
|
|
135
|
+
/**
|
|
136
|
+
* Get the logical port number (USB hub position)
|
|
137
|
+
*/
|
|
138
|
+
getLogicalPort(): number;
|
|
139
|
+
/**
|
|
140
|
+
* Get the currently allocated local port for forwarding
|
|
141
|
+
* Returns undefined if no port forward is active
|
|
142
|
+
*/
|
|
143
|
+
getDevicePort(): number | null;
|
|
144
|
+
/**
|
|
145
|
+
* Check if this kit has been disposed
|
|
146
|
+
*/
|
|
147
|
+
get disposed(): boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Check if a port forward is currently active
|
|
150
|
+
*/
|
|
151
|
+
get hasActivePortForward(): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Dispose of the kit and clean up all resources.
|
|
154
|
+
* This will kill any running proxy processes and release port allocations.
|
|
155
|
+
*
|
|
156
|
+
* After calling dispose(), the kit instance should not be used.
|
|
157
|
+
*/
|
|
158
|
+
dispose(): void;
|
|
159
|
+
/**
|
|
160
|
+
* Symbol.dispose implementation for using with `using` keyword (TypeScript 5.2+)
|
|
161
|
+
*/
|
|
162
|
+
[Symbol.dispose](): void;
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=appleDeviceKit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleDeviceKit.d.ts","sourceRoot":"","sources":["../../../src/logic/appleDeviceKit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAU,gBAAgB,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChG,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAiBtE;;;;;;;;;;;GAWG;AACH,qBAAa,cAAc;IASz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sB7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAOxB;;OAEG;IACI,gBAAgB,IAAI,IAAI;IAS/B;;OAEG;IACU,kBAAkB,IAAI,OAAO,CAAC,eAAe,CAAC;IAK3D;;OAEG;IACU,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,aAAa,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvD,YAAY,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAI1D;;;;;;;;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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AppInfo, DeviceListEntry } from "../types/types";
|
|
2
|
+
/**
|
|
3
|
+
* Parse plist-style output from ideviceinfo
|
|
4
|
+
*
|
|
5
|
+
* @param output ideviceinfo output
|
|
6
|
+
* @returns Plist output
|
|
7
|
+
*/
|
|
8
|
+
export declare function parsePlistOutput(output: string): Record<string, string>;
|
|
9
|
+
/**
|
|
10
|
+
* Parse idevice_id output
|
|
11
|
+
*
|
|
12
|
+
* @param output idevice_id output
|
|
13
|
+
* @returns Device list
|
|
14
|
+
*/
|
|
15
|
+
export declare function parseDeviceList(output: string): DeviceListEntry[];
|
|
16
|
+
/**
|
|
17
|
+
* Parse ideviceinstaller list output
|
|
18
|
+
*
|
|
19
|
+
* @param output ideviceinstaller list output
|
|
20
|
+
* @returns App list
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseAppList(output: string): AppInfo[];
|
|
23
|
+
//# sourceMappingURL=dataParser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataParser.d.ts","sourceRoot":"","sources":["../../../src/logic/dataParser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE/D;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcvE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,EAAE,CAmBjE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,EAAE,CAkBtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iosCli.d.ts","sourceRoot":"","sources":["../../../src/logic/iosCli.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEX,MAAM,EAON,MAAM,cAAc,CAAC;AAItB,QAAA,IAAI,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;AAE5B,wBAAgB,MAAM,IAAI,MAAM,CAM/B;AAoLD,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAiE1D;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function setResourcesDir(dir: string): void;
|
|
2
|
+
export declare function getResourcesPath(): string;
|
|
3
|
+
/**
|
|
4
|
+
* Get the path to idevice binaries
|
|
5
|
+
*
|
|
6
|
+
* Priority:
|
|
7
|
+
* 1. IDeviceBinPath environment variable (for custom paths)
|
|
8
|
+
* 2. Bundled resources in the package (resources/bin/{platform}/)
|
|
9
|
+
* 3. Homebrew on macOS (/opt/homebrew/bin or /usr/local/bin)
|
|
10
|
+
* 4. System PATH (assumes tools are globally installed)
|
|
11
|
+
*/
|
|
12
|
+
export declare function getResourcesBinPath(): string;
|
|
13
|
+
//# sourceMappingURL=resolvePath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,CAqC5C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Activation Flow Types
|
|
3
|
+
*/
|
|
4
|
+
export interface ActivationFlowConfig {
|
|
5
|
+
/**
|
|
6
|
+
* Path to the ios CLI binary (go-ios wrapper).
|
|
7
|
+
* If not set, defaults to resourcesDir/ios/bin/{platform}/ios(.exe).
|
|
8
|
+
*/
|
|
9
|
+
iosBinaryPath?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Organization name used for trust profile display (optional).
|
|
12
|
+
* If not set, uses ORGANIZATION_NAME from env.
|
|
13
|
+
*/
|
|
14
|
+
organizationName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Folder to read/write trust_profile.mobileconfig (optional).
|
|
17
|
+
* If not set, defaults to the package resources folder.
|
|
18
|
+
*/
|
|
19
|
+
resourcesDir?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Activation state
|
|
23
|
+
*/
|
|
24
|
+
export interface ActivationState {
|
|
25
|
+
isActivated: boolean;
|
|
26
|
+
activationState: string;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=activation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activation.d.ts","sourceRoot":"","sources":["../../../src/types/activation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,oBAAoB;IACpC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export interface DeviceListOutput {
|
|
2
|
+
deviceList: string[];
|
|
3
|
+
}
|
|
4
|
+
export interface IosCommandResult {
|
|
5
|
+
command: string;
|
|
6
|
+
args: string[];
|
|
7
|
+
output: CommandOutput;
|
|
8
|
+
logMessages: LogMessage[];
|
|
9
|
+
exitCode: number;
|
|
10
|
+
}
|
|
11
|
+
export interface LogMessage {
|
|
12
|
+
level: "info" | "error" | "warn" | "debug";
|
|
13
|
+
msg: string;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
}
|
|
16
|
+
export type CommandOutput = Record<string, unknown>[] | DeviceListOutput[] | [LockdownInfo];
|
|
17
|
+
export interface IosListResult {
|
|
18
|
+
udids: string[];
|
|
19
|
+
raw: IosCommandResult;
|
|
20
|
+
}
|
|
21
|
+
export interface IosProfileManifest {
|
|
22
|
+
Description?: string;
|
|
23
|
+
IsActive?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface IosProfileMetadata {
|
|
26
|
+
PayloadDescription?: string;
|
|
27
|
+
PayloadDisplayName?: string;
|
|
28
|
+
PayloadRemovalDisallowed?: boolean;
|
|
29
|
+
PayloadUUID?: string;
|
|
30
|
+
PayloadVersion?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface IosProfileListEntry {
|
|
33
|
+
Identifier?: string;
|
|
34
|
+
Manifest?: IosProfileManifest;
|
|
35
|
+
Metadata?: IosProfileMetadata;
|
|
36
|
+
Status?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IosProfileListResult {
|
|
39
|
+
profiles: IosProfileListEntry[];
|
|
40
|
+
raw: IosCommandResult;
|
|
41
|
+
}
|
|
42
|
+
export interface BasebandKeyHashInformation {
|
|
43
|
+
AKeyStatus: number;
|
|
44
|
+
SKeyHash: string;
|
|
45
|
+
SKeyStatus: number;
|
|
46
|
+
}
|
|
47
|
+
export interface NonVolatileRAM {
|
|
48
|
+
StartupMute?: string;
|
|
49
|
+
SystemAudioVolumeSaved?: string;
|
|
50
|
+
"auto-boot"?: string;
|
|
51
|
+
"backlight-level"?: string;
|
|
52
|
+
"backlight-nits"?: string;
|
|
53
|
+
"boot-args"?: string;
|
|
54
|
+
bootdelay?: string;
|
|
55
|
+
"fm-account-masked"?: string;
|
|
56
|
+
"fm-activation-locked"?: string;
|
|
57
|
+
"fm-spkeys"?: string;
|
|
58
|
+
"fm-spstatus"?: string;
|
|
59
|
+
obliteration?: string;
|
|
60
|
+
"panicmedic-telemetry"?: string;
|
|
61
|
+
usbcfwflasherResult?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface LockdownInfo {
|
|
64
|
+
ActivationState: string;
|
|
65
|
+
ActivationStateAcknowledged: boolean;
|
|
66
|
+
BasebandActivationTicketVersion: string;
|
|
67
|
+
BasebandCertId: number;
|
|
68
|
+
BasebandChipID: number;
|
|
69
|
+
BasebandKeyHashInformation: BasebandKeyHashInformation;
|
|
70
|
+
BasebandMasterKeyHash: string;
|
|
71
|
+
BasebandRegionSKU: string;
|
|
72
|
+
BasebandSerialNumber: string;
|
|
73
|
+
BasebandStatus: string;
|
|
74
|
+
BasebandVersion: string;
|
|
75
|
+
BluetoothAddress: string;
|
|
76
|
+
BoardId: number;
|
|
77
|
+
BootSessionID: string;
|
|
78
|
+
BrickState: boolean;
|
|
79
|
+
BuildVersion: string;
|
|
80
|
+
CPUArchitecture: string;
|
|
81
|
+
CarrierBundleInfoArray: unknown[];
|
|
82
|
+
CertID: number;
|
|
83
|
+
ChipID: number;
|
|
84
|
+
ChipSerialNo: string;
|
|
85
|
+
DeviceClass: string;
|
|
86
|
+
DeviceColor: string;
|
|
87
|
+
DeviceName: string;
|
|
88
|
+
DieID: number;
|
|
89
|
+
EthernetAddress: string;
|
|
90
|
+
FirmwareVersion: string;
|
|
91
|
+
FusingStatus: number;
|
|
92
|
+
HardwareModel: string;
|
|
93
|
+
HardwarePlatform: string;
|
|
94
|
+
HasSiDP: boolean;
|
|
95
|
+
HostAttached: boolean;
|
|
96
|
+
HumanReadableProductVersionString: string;
|
|
97
|
+
InternationalMobileEquipmentIdentity: string;
|
|
98
|
+
InternationalMobileEquipmentIdentity2: string;
|
|
99
|
+
MLBSerialNumber: string;
|
|
100
|
+
MobileEquipmentIdentifier: string;
|
|
101
|
+
MobileSubscriberCountryCode: string;
|
|
102
|
+
MobileSubscriberNetworkCode: string;
|
|
103
|
+
ModelNumber: string;
|
|
104
|
+
NonVolatileRAM: NonVolatileRAM;
|
|
105
|
+
PairRecordProtectionClass: number;
|
|
106
|
+
PartitionType: string;
|
|
107
|
+
PasswordProtected: boolean;
|
|
108
|
+
PkHash: string;
|
|
109
|
+
ProductName: string;
|
|
110
|
+
ProductType: string;
|
|
111
|
+
ProductVersion: string;
|
|
112
|
+
ProductionSOC: boolean;
|
|
113
|
+
ProtocolVersion: string;
|
|
114
|
+
ProximitySensorCalibration: string;
|
|
115
|
+
RegionInfo: string;
|
|
116
|
+
ReleaseType: string;
|
|
117
|
+
SIMStatus: string;
|
|
118
|
+
SIMTrayStatus: string;
|
|
119
|
+
SerialNumber: string;
|
|
120
|
+
SoftwareBehavior: string;
|
|
121
|
+
SoftwareBundleVersion: string;
|
|
122
|
+
SupportedDeviceFamilies: number[];
|
|
123
|
+
TelephonyCapability: boolean;
|
|
124
|
+
TimeIntervalSince1970: number;
|
|
125
|
+
TimeZone: string;
|
|
126
|
+
TimeZoneOffsetFromUTC: number;
|
|
127
|
+
TrustedHostAttached: boolean;
|
|
128
|
+
UniqueChipID: number;
|
|
129
|
+
UniqueDeviceID: string;
|
|
130
|
+
UntrustedHostBUID: string;
|
|
131
|
+
UseRaptorCerts: boolean;
|
|
132
|
+
Uses24HourClock: boolean;
|
|
133
|
+
WiFiAddress: string;
|
|
134
|
+
WirelessBoardSerialNumber: string;
|
|
135
|
+
kCTPostponementInfoServiceProvisioningState: boolean;
|
|
136
|
+
kCTPostponementStatus: string;
|
|
137
|
+
}
|
|
138
|
+
export interface IosCli {
|
|
139
|
+
listDevices(): Promise<IosListResult>;
|
|
140
|
+
wipe(deviceId: string): Promise<IosCommandResult>;
|
|
141
|
+
installProfile(deviceId: string, profilePath: string): Promise<IosCommandResult>;
|
|
142
|
+
removeProfile(deviceId: string, profileName: string): Promise<IosCommandResult>;
|
|
143
|
+
skipSteps(deviceId: string, steps?: string[]): Promise<IosCommandResult>;
|
|
144
|
+
printSteps(): Promise<IosCommandResult>;
|
|
145
|
+
activate(deviceId: string): Promise<IosCommandResult>;
|
|
146
|
+
pair(deviceId: string): Promise<IosCommandResult>;
|
|
147
|
+
forward(deviceId: string, fromPort: number, toPort: number): Promise<IosCommandResult>;
|
|
148
|
+
info(deviceId: string): Promise<IosCommandResult>;
|
|
149
|
+
listProfiles(deviceId: string): Promise<IosProfileListResult>;
|
|
150
|
+
installApp(deviceId: string, ipaPath: string): Promise<IosCommandResult>;
|
|
151
|
+
}
|
|
152
|
+
//# sourceMappingURL=ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../src/types/ios.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAChC,UAAU,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,Q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M,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC9D,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust.d.ts","sourceRoot":"","sources":["../../../src/types/trust.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,kBAAkB;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Device list entry returned by native listDevices
|
|
3
|
+
*/
|
|
4
|
+
export interface DeviceListEntry {
|
|
5
|
+
/**
|
|
6
|
+
* Device UDID (Unique Device Identifier)
|
|
7
|
+
*/
|
|
8
|
+
udid: string;
|
|
9
|
+
/**
|
|
10
|
+
* Connection type
|
|
11
|
+
* 1 = USB
|
|
12
|
+
* 2 = Network/WiFi
|
|
13
|
+
*/
|
|
14
|
+
connectionType: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Installed application info
|
|
18
|
+
*/
|
|
19
|
+
export interface AppInfo {
|
|
20
|
+
/**
|
|
21
|
+
* Bundle identifier (e.g., "com.example.app")
|
|
22
|
+
*/
|
|
23
|
+
bundleId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Display name shown to user
|
|
26
|
+
*/
|
|
27
|
+
displayName: string;
|
|
28
|
+
/**
|
|
29
|
+
* App version (CFBundleShortVersionString)
|
|
30
|
+
*/
|
|
31
|
+
version: string;
|
|
32
|
+
/**
|
|
33
|
+
* Bundle version (CFBundleVersion)
|
|
34
|
+
*/
|
|
35
|
+
bundleVersion: string;
|
|
36
|
+
}
|
|
37
|
+
export type AppleToolType = "ideviceinfo" | "idevice_id" | "ideviceinstaller" | "idevicepair" | "idevicename" | "idevicedebug" | "iproxy" | "ideviceactivation";
|
|
38
|
+
/**
|
|
39
|
+
* Port forwarding result
|
|
40
|
+
*/
|
|
41
|
+
export interface PortForwardResult {
|
|
42
|
+
/** The local port being forwarded */
|
|
43
|
+
localPort: number;
|
|
44
|
+
/** The device port being forwarded to */
|
|
45
|
+
devicePort: number;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,aAAa,GACtB,aAAa,GACb,YAAY,GACZ,kBAAkB,GAClB,aAAa,GACb,aAAa,GACb,cAAc,GACd,QAAQ,GACR,mBAAmB,CAAC;AAEvB;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WiFi Profile Types
|
|
3
|
+
*/
|
|
4
|
+
export type WifiEncryptionType = "WEP" | "WPA" | "WPA2" | "WPA3" | "Any" | "None";
|
|
5
|
+
export type WifiEapType = "TLS" | "TTLS" | "LEAP" | "PEAP" | "EAP-FAST" | "EAP-SIM" | "EAP-AKA";
|
|
6
|
+
export interface WifiProfileConfig {
|
|
7
|
+
ssid: string;
|
|
8
|
+
password?: string;
|
|
9
|
+
encryptionType?: WifiEncryptionType;
|
|
10
|
+
autoJoin?: boolean;
|
|
11
|
+
hiddenNetwork?: boolean;
|
|
12
|
+
organizationName?: string;
|
|
13
|
+
displayName?: string;
|
|
14
|
+
enterprise?: boolean;
|
|
15
|
+
username?: string;
|
|
16
|
+
eapType?: WifiEapType;
|
|
17
|
+
acceptAnyCertificate?: boolean;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=wifi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wifi.d.ts","sourceRoot":"","sources":["../../../src/types/wifi.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAElF,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAEhG,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC/B"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Device list entry returned by native listDevices
|
|
3
|
+
*/
|
|
4
|
+
export interface DeviceListEntry {
|
|
5
|
+
/**
|
|
6
|
+
* Device UDID (Unique Device Identifier)
|
|
7
|
+
*/
|
|
8
|
+
udid: string;
|
|
9
|
+
/**
|
|
10
|
+
* Connection type
|
|
11
|
+
* 1 = USB
|
|
12
|
+
* 2 = Network/WiFi
|
|
13
|
+
*/
|
|
14
|
+
connectionType: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* iOS device information
|
|
18
|
+
*/
|
|
19
|
+
export interface iOSDeviceInfo {
|
|
20
|
+
/**
|
|
21
|
+
* Device display name (e.g., "John's iPhone")
|
|
22
|
+
*/
|
|
23
|
+
deviceName: string;
|
|
24
|
+
/**
|
|
25
|
+
* Product type identifier (e.g., "iPhone14,2")
|
|
26
|
+
*/
|
|
27
|
+
productType: string;
|
|
28
|
+
/**
|
|
29
|
+
* iOS version (e.g., "17.0.1")
|
|
30
|
+
*/
|
|
31
|
+
productVersion: string;
|
|
32
|
+
/**
|
|
33
|
+
* Build version (e.g., "21A340")
|
|
34
|
+
*/
|
|
35
|
+
buildVersion: string;
|
|
36
|
+
/**
|
|
37
|
+
* Device serial number
|
|
38
|
+
*/
|
|
39
|
+
serialNumber: string;
|
|
40
|
+
/**
|
|
41
|
+
* Device UDID
|
|
42
|
+
*/
|
|
43
|
+
udid: string;
|
|
44
|
+
/**
|
|
45
|
+
* WiFi MAC address
|
|
46
|
+
*/
|
|
47
|
+
wifiAddress: string;
|
|
48
|
+
/**
|
|
49
|
+
* Bluetooth MAC address
|
|
50
|
+
*/
|
|
51
|
+
bluetoothAddress: string;
|
|
52
|
+
/**
|
|
53
|
+
* Phone number (if available)
|
|
54
|
+
*/
|
|
55
|
+
phoneNumber: string;
|
|
56
|
+
/**
|
|
57
|
+
* CPU architecture (e.g., "arm64")
|
|
58
|
+
*/
|
|
59
|
+
cpuArchitecture: string;
|
|
60
|
+
/**
|
|
61
|
+
* Hardware model identifier
|
|
62
|
+
*/
|
|
63
|
+
hardwareModel: string;
|
|
64
|
+
/**
|
|
65
|
+
* Model number
|
|
66
|
+
*/
|
|
67
|
+
modelNumber: string;
|
|
68
|
+
/**
|
|
69
|
+
* Region info
|
|
70
|
+
*/
|
|
71
|
+
regionInfo: string;
|
|
72
|
+
/**
|
|
73
|
+
* Device time zone
|
|
74
|
+
*/
|
|
75
|
+
timeZone: string;
|
|
76
|
+
/**
|
|
77
|
+
* Unique chip ID (ECID) as string
|
|
78
|
+
*/
|
|
79
|
+
uniqueChipID: string;
|
|
80
|
+
/**
|
|
81
|
+
* Whether the device is paired/trusted with this computer
|
|
82
|
+
*/
|
|
83
|
+
isPaired: boolean;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Installed application info
|
|
87
|
+
*/
|
|
88
|
+
export interface AppInfo {
|
|
89
|
+
/**
|
|
90
|
+
* Bundle identifier (e.g., "com.example.app")
|
|
91
|
+
*/
|
|
92
|
+
bundleId: string;
|
|
93
|
+
/**
|
|
94
|
+
* Display name shown to user
|
|
95
|
+
*/
|
|
96
|
+
displayName: string;
|
|
97
|
+
/**
|
|
98
|
+
* App version (CFBundleShortVersionString)
|
|
99
|
+
*/
|
|
100
|
+
version: string;
|
|
101
|
+
/**
|
|
102
|
+
* Bundle version (CFBundleVersion)
|
|
103
|
+
*/
|
|
104
|
+
bundleVersion: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Configuration for the devices monitor
|
|
108
|
+
*/
|
|
109
|
+
export interface AppleListenerConfig {
|
|
110
|
+
/**
|
|
111
|
+
* Map physical port locations to logical port numbers
|
|
112
|
+
*
|
|
113
|
+
* Key: Location info string (e.g., "Port_#0005.Hub_#0002")
|
|
114
|
+
* Value: Logical port number (e.g., 1, 2, 3)
|
|
115
|
+
*/
|
|
116
|
+
logicalPortMap?: Record<string, number>;
|
|
117
|
+
/**
|
|
118
|
+
* Whether to identify already connected devices on start
|
|
119
|
+
*/
|
|
120
|
+
identifyAlreadyConnected?: boolean;
|
|
121
|
+
}
|
|
122
|
+
export type AppleToolType = "ideviceinfo" | "idevice_id" | "ideviceinstaller" | "idevicepair" | "idevicename" | "idevicedebug" | "iproxy" | "ideviceactivation";
|
|
123
|
+
/**
|
|
124
|
+
* Port forwarding result
|
|
125
|
+
*/
|
|
126
|
+
export interface PortForwardResult {
|
|
127
|
+
/** The local port being forwarded */
|
|
128
|
+
localPort: number;
|
|
129
|
+
/** The device port being forwarded to */
|
|
130
|
+
devicePort: number;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Activation state
|
|
134
|
+
*/
|
|
135
|
+
export interface ActivationState {
|
|
136
|
+
isActivated: boolean;
|
|
137
|
+
activationState: string;
|
|
138
|
+
}
|
|
139
|
+
export type SkipStep = "Language" | "Region" | "Setup" | "SetUp" | "DisplayTone" | "Privacy" | "Android" | "HomeButtonSensitivity" | "OnBoarding" | "Passcode" | "Registration" | "Restore" | "AppleID" | "Safety" | "ScreenSaver" | "TOS" | "RestoreCompleted" | "Biometric" | "Payment" | "Zoom" | "Siri" | "Diagnostics" | "FileVault" | "iCloudDiagnostics" | "trackingCurrent" | "AppStore" | "AccessibilityAppearance" | "Appearance" | "iMessageAndFaceTime" | "Accessibility" | "ScreenTime" | "ActionButton" | "Keyboard" | "EnableLockdownMode" | "TermsOfAddress" | "TapToSetup" | "SpokenLanguage" | "MessagingActivationUsingPhoneNumber" | "iCloudStorage" | "TVProviderSignIn" | "TVHomeScreenSync" | "TVRoom" | "UpdateCompleted" | "WatchMigration" | "WebContentFiltering" | "Wallpaper" | "SoftwareUpdate" | "Intelligence" | "CameraButton" | "Welcome" | "SIMSetup" | "Location" | "SetupAssistant" | "HomeKit" | "CarrierActivation" | "Cellular" | "Cellular-Setup" | "SIMSetup" | "skip-sim-setup" | "skip-cellular-setup" | "CellularSetup" | "AppStoreRestore" | "AppStoreSetup" | "DefaultApps" | "DefaultAppInstall" | "AppStoreTerms" | "SystemMigration" | "SystemUpgrade" | "OTAUpgrade" | "OSUpdate" | "OSUpdateNew" | "OSInstall" | "OSInstallNew" | "OSUpgrade" | "OSUpgradeNew" | "AppUpdate" | "AppInstall" | "AppMigration" | "PhoneSetup" | "PhoneService" | "CarrierSettings" | "CellularData" | "CellularSetupPrompt" | "DataRoaming" | "DataPrivacy" | "CellularActivation" | "NoSIM" | "IntendedUser" | "CloudStorage" | "PreferredLanguage" | "TVProviderSignIn" | "TVHomeScreenSync" | "TVRoom" | "Multitasking" | "ActionButton" | "UpdateCompleted" | "RestoreCompleted" | "iMessageAndFaceTIme" | "AccessibilityAppearance" | "DisplayTone" | "HomeButtonSensitivity" | "ScreenSaver" | "TapToSetup" | "WatchMigration" | "OnBoarding" | "SetupCompleted" | "SetupFinished" | "SetupDone" | "FinishSetup" | "PartialSetup" | "DeviceSetup" | "DeviceConfigurationComplete" | "StandBy" | "StandBySetup" | "StandByWelcome" | "StandByOnboarding";
|
|
140
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAA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