@mcesystems/apple-kit 1.0.97 → 1.0.98
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 +50 -0
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +50 -0
- 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 +98 -0
- 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/scripts/prepare-ios.ts +9 -1
- package/resources/ios.exe +0 -0
- package/resources/wintun-LICENSE.txt +0 -84
- package/resources/wintun.dll +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 2.1, February 1999
|
|
3
|
+
|
|
4
|
+
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
|
5
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
6
|
+
|
|
7
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
8
|
+
of this license document, but changing it is not allowed.
|
|
9
|
+
|
|
10
|
+
[This is the first released version of the Lesser GPL. It also counts
|
|
11
|
+
as the successor of the GNU Library Public License, version 2, hence
|
|
12
|
+
the version number 2.1.]
|
|
13
|
+
|
|
14
|
+
Preamble
|
|
15
|
+
|
|
16
|
+
The licenses for most software are designed to take away your
|
|
17
|
+
freedom to share and change it. By contrast, the GNU General Public
|
|
18
|
+
Licenses are intended to guarantee your freedom to share and change
|
|
19
|
+
free software--to make sure the software is free for all its users.
|
|
20
|
+
|
|
21
|
+
This license, the Lesser General Public License, applies to some
|
|
22
|
+
specially designated software packages--typically libraries--of the
|
|
23
|
+
Free Software Foundation and other authors who decide to use it. You
|
|
24
|
+
can use it too, but we suggest you first think carefully about whether
|
|
25
|
+
this license or the ordinary General Public License is the better
|
|
26
|
+
strategy to use in any particular case, based on the explanations below.
|
|
27
|
+
|
|
28
|
+
libimobiledevice is licensed under the GNU Lesser General Public License
|
|
29
|
+
version 2.1 or later (LGPL-2.1+).
|
|
30
|
+
|
|
31
|
+
For the full text of the LGPL-2.1 license, see:
|
|
32
|
+
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
|
|
33
|
+
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>PayloadContent</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>PayloadCertificateFileName</key>
|
|
9
|
-
<string>{{certificateFileName}}</string>
|
|
10
|
-
<key>PayloadContent</key>
|
|
11
|
-
<data>
|
|
12
|
-
{{certificateBase64}}
|
|
13
|
-
</data>
|
|
14
|
-
<key>PayloadDescription</key>
|
|
15
|
-
<string>{{certificateDescription}}</string>
|
|
16
|
-
<key>PayloadDisplayName</key>
|
|
17
|
-
<string>{{certificateDisplayName}}</string>
|
|
18
|
-
<key>PayloadIdentifier</key>
|
|
19
|
-
<string>{{payloadId}}</string>
|
|
20
|
-
<key>PayloadType</key>
|
|
21
|
-
<string>com.apple.security.root</string>
|
|
22
|
-
<key>PayloadUUID</key>
|
|
23
|
-
<string>{{certificateUuid}}</string>
|
|
24
|
-
<key>PayloadVersion</key>
|
|
25
|
-
<integer>1</integer>
|
|
26
|
-
</dict>
|
|
27
|
-
</array>
|
|
28
|
-
<key>PayloadDisplayName</key>
|
|
29
|
-
<string>{{profileDisplayName}}</string>
|
|
30
|
-
<key>PayloadIdentifier</key>
|
|
31
|
-
<string>{{profileId}}</string>
|
|
32
|
-
<key>PayloadOrganization</key>
|
|
33
|
-
<string>{{organizationName}}</string>
|
|
34
|
-
<key>PayloadRemovalDisallowed</key>
|
|
35
|
-
<{{removalDisallowed}}/>
|
|
36
|
-
<key>PayloadType</key>
|
|
37
|
-
<string>Configuration</string>
|
|
38
|
-
<key>PayloadUUID</key>
|
|
39
|
-
<string>{{profileUuid}}</string>
|
|
40
|
-
<key>PayloadVersion</key>
|
|
41
|
-
<integer>1</integer>
|
|
42
|
-
</dict>
|
|
43
|
-
</plist>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>PayloadContent</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>PayloadCertificateFileName</key>
|
|
9
|
+
<string>{{certificateFileName}}</string>
|
|
10
|
+
<key>PayloadContent</key>
|
|
11
|
+
<data>
|
|
12
|
+
{{certificateBase64}}
|
|
13
|
+
</data>
|
|
14
|
+
<key>PayloadDescription</key>
|
|
15
|
+
<string>{{certificateDescription}}</string>
|
|
16
|
+
<key>PayloadDisplayName</key>
|
|
17
|
+
<string>{{certificateDisplayName}}</string>
|
|
18
|
+
<key>PayloadIdentifier</key>
|
|
19
|
+
<string>{{payloadId}}</string>
|
|
20
|
+
<key>PayloadType</key>
|
|
21
|
+
<string>com.apple.security.root</string>
|
|
22
|
+
<key>PayloadUUID</key>
|
|
23
|
+
<string>{{certificateUuid}}</string>
|
|
24
|
+
<key>PayloadVersion</key>
|
|
25
|
+
<integer>1</integer>
|
|
26
|
+
</dict>
|
|
27
|
+
</array>
|
|
28
|
+
<key>PayloadDisplayName</key>
|
|
29
|
+
<string>{{profileDisplayName}}</string>
|
|
30
|
+
<key>PayloadIdentifier</key>
|
|
31
|
+
<string>{{profileId}}</string>
|
|
32
|
+
<key>PayloadOrganization</key>
|
|
33
|
+
<string>{{organizationName}}</string>
|
|
34
|
+
<key>PayloadRemovalDisallowed</key>
|
|
35
|
+
<{{removalDisallowed}}/>
|
|
36
|
+
<key>PayloadType</key>
|
|
37
|
+
<string>Configuration</string>
|
|
38
|
+
<key>PayloadUUID</key>
|
|
39
|
+
<string>{{profileUuid}}</string>
|
|
40
|
+
<key>PayloadVersion</key>
|
|
41
|
+
<integer>1</integer>
|
|
42
|
+
</dict>
|
|
43
|
+
</plist>
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>PayloadContent</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>AutoJoin</key>
|
|
9
|
-
<{{autoJoin}}/>
|
|
10
|
-
<key>EncryptionType</key>
|
|
11
|
-
<string>WPA2</string>
|
|
12
|
-
<key>HIDDEN_NETWORK</key>
|
|
13
|
-
<{{hiddenNetwork}}/>
|
|
14
|
-
<key>IsHotspot</key>
|
|
15
|
-
<false/>
|
|
16
|
-
<key>PayloadDescription</key>
|
|
17
|
-
<string>Configures WiFi settings for {{ssid}}</string>
|
|
18
|
-
<key>PayloadDisplayName</key>
|
|
19
|
-
<string>WiFi ({{ssid}})</string>
|
|
20
|
-
<key>PayloadIdentifier</key>
|
|
21
|
-
<string>{{payloadId}}</string>
|
|
22
|
-
<key>PayloadType</key>
|
|
23
|
-
<string>com.apple.wifi.managed</string>
|
|
24
|
-
<key>PayloadUUID</key>
|
|
25
|
-
<string>{{payloadUuid}}</string>
|
|
26
|
-
<key>PayloadVersion</key>
|
|
27
|
-
<integer>1</integer>
|
|
28
|
-
<key>ProxyType</key>
|
|
29
|
-
<string>None</string>
|
|
30
|
-
<key>SSID_STR</key>
|
|
31
|
-
<string>{{ssid}}</string>
|
|
32
|
-
<key>EAPClientConfiguration</key>
|
|
33
|
-
<dict>
|
|
34
|
-
<key>AcceptEAPTypes</key>
|
|
35
|
-
<array>
|
|
36
|
-
<integer>{{eapTypeNumber}}</integer>
|
|
37
|
-
</array>
|
|
38
|
-
{{#if username}}<key>UserName</key><string>{{username}}</string>{{/if}}
|
|
39
|
-
{{#if password}}<key>UserPassword</key><string>{{password}}</string>{{/if}}
|
|
40
|
-
{{#if acceptAnyCertificate}}<key>TLSAllowTrustExceptions</key><true/>{{/if}}
|
|
41
|
-
</dict>
|
|
42
|
-
</dict>
|
|
43
|
-
</array>
|
|
44
|
-
<key>PayloadDisplayName</key>
|
|
45
|
-
<string>{{displayName}}</string>
|
|
46
|
-
<key>PayloadIdentifier</key>
|
|
47
|
-
<string>{{profileId}}</string>
|
|
48
|
-
<key>PayloadOrganization</key>
|
|
49
|
-
<string>{{organizationName}}</string>
|
|
50
|
-
<key>PayloadRemovalDisallowed</key>
|
|
51
|
-
<false/>
|
|
52
|
-
<key>PayloadType</key>
|
|
53
|
-
<string>Configuration</string>
|
|
54
|
-
<key>PayloadUUID</key>
|
|
55
|
-
<string>{{profileUuid}}</string>
|
|
56
|
-
<key>PayloadVersion</key>
|
|
57
|
-
<integer>1</integer>
|
|
58
|
-
</dict>
|
|
59
|
-
</plist>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>PayloadContent</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>AutoJoin</key>
|
|
9
|
+
<{{autoJoin}}/>
|
|
10
|
+
<key>EncryptionType</key>
|
|
11
|
+
<string>WPA2</string>
|
|
12
|
+
<key>HIDDEN_NETWORK</key>
|
|
13
|
+
<{{hiddenNetwork}}/>
|
|
14
|
+
<key>IsHotspot</key>
|
|
15
|
+
<false/>
|
|
16
|
+
<key>PayloadDescription</key>
|
|
17
|
+
<string>Configures WiFi settings for {{ssid}}</string>
|
|
18
|
+
<key>PayloadDisplayName</key>
|
|
19
|
+
<string>WiFi ({{ssid}})</string>
|
|
20
|
+
<key>PayloadIdentifier</key>
|
|
21
|
+
<string>{{payloadId}}</string>
|
|
22
|
+
<key>PayloadType</key>
|
|
23
|
+
<string>com.apple.wifi.managed</string>
|
|
24
|
+
<key>PayloadUUID</key>
|
|
25
|
+
<string>{{payloadUuid}}</string>
|
|
26
|
+
<key>PayloadVersion</key>
|
|
27
|
+
<integer>1</integer>
|
|
28
|
+
<key>ProxyType</key>
|
|
29
|
+
<string>None</string>
|
|
30
|
+
<key>SSID_STR</key>
|
|
31
|
+
<string>{{ssid}}</string>
|
|
32
|
+
<key>EAPClientConfiguration</key>
|
|
33
|
+
<dict>
|
|
34
|
+
<key>AcceptEAPTypes</key>
|
|
35
|
+
<array>
|
|
36
|
+
<integer>{{eapTypeNumber}}</integer>
|
|
37
|
+
</array>
|
|
38
|
+
{{#if username}}<key>UserName</key><string>{{username}}</string>{{/if}}
|
|
39
|
+
{{#if password}}<key>UserPassword</key><string>{{password}}</string>{{/if}}
|
|
40
|
+
{{#if acceptAnyCertificate}}<key>TLSAllowTrustExceptions</key><true/>{{/if}}
|
|
41
|
+
</dict>
|
|
42
|
+
</dict>
|
|
43
|
+
</array>
|
|
44
|
+
<key>PayloadDisplayName</key>
|
|
45
|
+
<string>{{displayName}}</string>
|
|
46
|
+
<key>PayloadIdentifier</key>
|
|
47
|
+
<string>{{profileId}}</string>
|
|
48
|
+
<key>PayloadOrganization</key>
|
|
49
|
+
<string>{{organizationName}}</string>
|
|
50
|
+
<key>PayloadRemovalDisallowed</key>
|
|
51
|
+
<false/>
|
|
52
|
+
<key>PayloadType</key>
|
|
53
|
+
<string>Configuration</string>
|
|
54
|
+
<key>PayloadUUID</key>
|
|
55
|
+
<string>{{profileUuid}}</string>
|
|
56
|
+
<key>PayloadVersion</key>
|
|
57
|
+
<integer>1</integer>
|
|
58
|
+
</dict>
|
|
59
|
+
</plist>
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>PayloadContent</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>AutoJoin</key>
|
|
9
|
-
<{{autoJoin}}/>
|
|
10
|
-
<key>EncryptionType</key>
|
|
11
|
-
<string>{{encryptionType}}</string>
|
|
12
|
-
<key>HIDDEN_NETWORK</key>
|
|
13
|
-
<{{hiddenNetwork}}/>
|
|
14
|
-
<key>IsHotspot</key>
|
|
15
|
-
<false/>
|
|
16
|
-
{{#if password}}<key>Password</key><string>{{password}}</string>{{/if}}
|
|
17
|
-
<key>PayloadDescription</key>
|
|
18
|
-
<string>Configures WiFi settings for {{ssid}}</string>
|
|
19
|
-
<key>PayloadDisplayName</key>
|
|
20
|
-
<string>WiFi ({{ssid}})</string>
|
|
21
|
-
<key>PayloadIdentifier</key>
|
|
22
|
-
<string>{{payloadId}}</string>
|
|
23
|
-
<key>PayloadType</key>
|
|
24
|
-
<string>com.apple.wifi.managed</string>
|
|
25
|
-
<key>PayloadUUID</key>
|
|
26
|
-
<string>{{payloadUuid}}</string>
|
|
27
|
-
<key>PayloadVersion</key>
|
|
28
|
-
<integer>1</integer>
|
|
29
|
-
<key>ProxyType</key>
|
|
30
|
-
<string>None</string>
|
|
31
|
-
<key>SSID_STR</key>
|
|
32
|
-
<string>{{ssid}}</string>
|
|
33
|
-
</dict>
|
|
34
|
-
</array>
|
|
35
|
-
<key>PayloadDisplayName</key>
|
|
36
|
-
<string>{{displayName}}</string>
|
|
37
|
-
<key>PayloadIdentifier</key>
|
|
38
|
-
<string>{{profileId}}</string>
|
|
39
|
-
<key>PayloadOrganization</key>
|
|
40
|
-
<string>{{organizationName}}</string>
|
|
41
|
-
<key>PayloadRemovalDisallowed</key>
|
|
42
|
-
<false/>
|
|
43
|
-
<key>PayloadType</key>
|
|
44
|
-
<string>Configuration</string>
|
|
45
|
-
<key>PayloadUUID</key>
|
|
46
|
-
<string>{{profileUuid}}</string>
|
|
47
|
-
<key>PayloadVersion</key>
|
|
48
|
-
<integer>1</integer>
|
|
49
|
-
</dict>
|
|
50
|
-
</plist>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>PayloadContent</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>AutoJoin</key>
|
|
9
|
+
<{{autoJoin}}/>
|
|
10
|
+
<key>EncryptionType</key>
|
|
11
|
+
<string>{{encryptionType}}</string>
|
|
12
|
+
<key>HIDDEN_NETWORK</key>
|
|
13
|
+
<{{hiddenNetwork}}/>
|
|
14
|
+
<key>IsHotspot</key>
|
|
15
|
+
<false/>
|
|
16
|
+
{{#if password}}<key>Password</key><string>{{password}}</string>{{/if}}
|
|
17
|
+
<key>PayloadDescription</key>
|
|
18
|
+
<string>Configures WiFi settings for {{ssid}}</string>
|
|
19
|
+
<key>PayloadDisplayName</key>
|
|
20
|
+
<string>WiFi ({{ssid}})</string>
|
|
21
|
+
<key>PayloadIdentifier</key>
|
|
22
|
+
<string>{{payloadId}}</string>
|
|
23
|
+
<key>PayloadType</key>
|
|
24
|
+
<string>com.apple.wifi.managed</string>
|
|
25
|
+
<key>PayloadUUID</key>
|
|
26
|
+
<string>{{payloadUuid}}</string>
|
|
27
|
+
<key>PayloadVersion</key>
|
|
28
|
+
<integer>1</integer>
|
|
29
|
+
<key>ProxyType</key>
|
|
30
|
+
<string>None</string>
|
|
31
|
+
<key>SSID_STR</key>
|
|
32
|
+
<string>{{ssid}}</string>
|
|
33
|
+
</dict>
|
|
34
|
+
</array>
|
|
35
|
+
<key>PayloadDisplayName</key>
|
|
36
|
+
<string>{{displayName}}</string>
|
|
37
|
+
<key>PayloadIdentifier</key>
|
|
38
|
+
<string>{{profileId}}</string>
|
|
39
|
+
<key>PayloadOrganization</key>
|
|
40
|
+
<string>{{organizationName}}</string>
|
|
41
|
+
<key>PayloadRemovalDisallowed</key>
|
|
42
|
+
<false/>
|
|
43
|
+
<key>PayloadType</key>
|
|
44
|
+
<string>Configuration</string>
|
|
45
|
+
<key>PayloadUUID</key>
|
|
46
|
+
<string>{{profileUuid}}</string>
|
|
47
|
+
<key>PayloadVersion</key>
|
|
48
|
+
<integer>1</integer>
|
|
49
|
+
</dict>
|
|
50
|
+
</plist>
|
package/dist/types/index.d.ts
CHANGED
|
@@ -114,6 +114,14 @@ export interface LogMessage {
|
|
|
114
114
|
}
|
|
115
115
|
export type CommandOutput = Record<string, unknown>[] | DeviceListOutput[] | [
|
|
116
116
|
LockdownInfo
|
|
117
|
+
] | [
|
|
118
|
+
BatteryInfo
|
|
119
|
+
] | [
|
|
120
|
+
CapacityInfo
|
|
121
|
+
] | [
|
|
122
|
+
CloudConfigurationInfo
|
|
123
|
+
] | [
|
|
124
|
+
string
|
|
117
125
|
];
|
|
118
126
|
export interface IosListResult {
|
|
119
127
|
udids: string[];
|
|
@@ -241,6 +249,45 @@ export interface LockdownInfo {
|
|
|
241
249
|
kCTPostponementInfoServiceProvisioningState: boolean;
|
|
242
250
|
kCTPostponementStatus: string;
|
|
243
251
|
}
|
|
252
|
+
export interface BatteryInfo {
|
|
253
|
+
InstantAmperage: number;
|
|
254
|
+
Temperature: number;
|
|
255
|
+
Voltage: number;
|
|
256
|
+
IsCharging: boolean;
|
|
257
|
+
CurrentCapacity: number;
|
|
258
|
+
DesignCapacity: number;
|
|
259
|
+
NominalChargeCapacity: number;
|
|
260
|
+
CycleCount: number;
|
|
261
|
+
AtCriticalLevel: boolean;
|
|
262
|
+
AtWarnLevel: boolean;
|
|
263
|
+
}
|
|
264
|
+
export interface CapacityInfo {
|
|
265
|
+
AmountDataAvailable: number;
|
|
266
|
+
AmountDataReserved: number;
|
|
267
|
+
AmountRestoreAvailable: number;
|
|
268
|
+
CalculateDiskUsage: string;
|
|
269
|
+
NANDInfo: string;
|
|
270
|
+
TotalDataAvailable: number;
|
|
271
|
+
TotalDataCapacity: number;
|
|
272
|
+
TotalDiskCapacity: number;
|
|
273
|
+
TotalSystemAvailable: number;
|
|
274
|
+
TotalSystemCapacity: number;
|
|
275
|
+
}
|
|
276
|
+
export interface CloudConfigurationInfo {
|
|
277
|
+
AllowPairing: boolean;
|
|
278
|
+
CloudConfigurationUIComplete: boolean;
|
|
279
|
+
ConfigurationSource: number;
|
|
280
|
+
ConfigurationWasApplied: boolean;
|
|
281
|
+
IsMDMUnremovable: boolean;
|
|
282
|
+
IsMandatory: boolean;
|
|
283
|
+
IsMultiUser: boolean;
|
|
284
|
+
IsSupervised: boolean;
|
|
285
|
+
OrganizationMagic: string;
|
|
286
|
+
OrganizationName: string;
|
|
287
|
+
PostSetupProfileWasInstalled: boolean;
|
|
288
|
+
SkipSetup: string[];
|
|
289
|
+
SupervisorHostCertificates: string;
|
|
290
|
+
}
|
|
244
291
|
/**
|
|
245
292
|
* Installed application info
|
|
246
293
|
*/
|
|
@@ -498,6 +545,10 @@ export declare class IosClient {
|
|
|
498
545
|
toPort: number;
|
|
499
546
|
}): import("child_process").ChildProcessByStdio<null, import("stream").Readable, import("stream").Readable>;
|
|
500
547
|
info(): Promise<IosCommandResult>;
|
|
548
|
+
batteryInfo(): Promise<IosCommandResult>;
|
|
549
|
+
capacityInfo(): Promise<IosCommandResult>;
|
|
550
|
+
cloudConfigInfo(): Promise<IosCommandResult>;
|
|
551
|
+
regularModelNumber(): Promise<IosCommandResult>;
|
|
501
552
|
installApp(ipaPath: string): Promise<IosCommandResult>;
|
|
502
553
|
uninstallApp(bundleId: string): Promise<IosCommandResult>;
|
|
503
554
|
listApps(): Promise<{
|
|
@@ -607,6 +658,14 @@ interface LogMessage$1 {
|
|
|
607
658
|
}
|
|
608
659
|
type CommandOutput$1 = Record<string, unknown>[] | DeviceListOutput$1[] | [
|
|
609
660
|
LockdownInfo$1
|
|
661
|
+
] | [
|
|
662
|
+
BatteryInfo$1
|
|
663
|
+
] | [
|
|
664
|
+
CapacityInfo$1
|
|
665
|
+
] | [
|
|
666
|
+
CloudConfigurationInfo$1
|
|
667
|
+
] | [
|
|
668
|
+
string
|
|
610
669
|
];
|
|
611
670
|
interface IosListResult$1 {
|
|
612
671
|
udids: string[];
|
|
@@ -734,6 +793,45 @@ interface LockdownInfo$1 {
|
|
|
734
793
|
kCTPostponementInfoServiceProvisioningState: boolean;
|
|
735
794
|
kCTPostponementStatus: string;
|
|
736
795
|
}
|
|
796
|
+
interface BatteryInfo$1 {
|
|
797
|
+
InstantAmperage: number;
|
|
798
|
+
Temperature: number;
|
|
799
|
+
Voltage: number;
|
|
800
|
+
IsCharging: boolean;
|
|
801
|
+
CurrentCapacity: number;
|
|
802
|
+
DesignCapacity: number;
|
|
803
|
+
NominalChargeCapacity: number;
|
|
804
|
+
CycleCount: number;
|
|
805
|
+
AtCriticalLevel: boolean;
|
|
806
|
+
AtWarnLevel: boolean;
|
|
807
|
+
}
|
|
808
|
+
interface CapacityInfo$1 {
|
|
809
|
+
AmountDataAvailable: number;
|
|
810
|
+
AmountDataReserved: number;
|
|
811
|
+
AmountRestoreAvailable: number;
|
|
812
|
+
CalculateDiskUsage: string;
|
|
813
|
+
NANDInfo: string;
|
|
814
|
+
TotalDataAvailable: number;
|
|
815
|
+
TotalDataCapacity: number;
|
|
816
|
+
TotalDiskCapacity: number;
|
|
817
|
+
TotalSystemAvailable: number;
|
|
818
|
+
TotalSystemCapacity: number;
|
|
819
|
+
}
|
|
820
|
+
interface CloudConfigurationInfo$1 {
|
|
821
|
+
AllowPairing: boolean;
|
|
822
|
+
CloudConfigurationUIComplete: boolean;
|
|
823
|
+
ConfigurationSource: number;
|
|
824
|
+
ConfigurationWasApplied: boolean;
|
|
825
|
+
IsMDMUnremovable: boolean;
|
|
826
|
+
IsMandatory: boolean;
|
|
827
|
+
IsMultiUser: boolean;
|
|
828
|
+
IsSupervised: boolean;
|
|
829
|
+
OrganizationMagic: string;
|
|
830
|
+
OrganizationName: string;
|
|
831
|
+
PostSetupProfileWasInstalled: boolean;
|
|
832
|
+
SkipSetup: string[];
|
|
833
|
+
SupervisorHostCertificates: string;
|
|
834
|
+
}
|
|
737
835
|
export interface IosCli {
|
|
738
836
|
listDevices(): Promise<IosListResult$1>;
|
|
739
837
|
wipe(deviceId: string): Promise<IosCommandResult$1>;
|
|
@@ -0,0 +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;AAE9C,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ActivationState } from "@/types";
|
|
2
|
+
export declare function getActivationState(udid: string): Promise<ActivationState>;
|
|
3
|
+
export declare function activate(udid: string): Promise<boolean>;
|
|
4
|
+
export interface ApplicationConfig {
|
|
5
|
+
name: string;
|
|
6
|
+
bundleId: string;
|
|
7
|
+
version: string;
|
|
8
|
+
build: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
iconData: Buffer;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=activation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activation.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/activation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI/C,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAyB/E;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAiB7D;AAED,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IosCli, IosListResult, IosProfileListResult, LockdownInfo } from "@/types/ios";
|
|
2
|
+
export interface ExecResult {
|
|
3
|
+
stdout: string;
|
|
4
|
+
stderr: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function info(udid: string, iosCli: IosCli): Promise<LockdownInfo>;
|
|
7
|
+
export declare function getActivationState(udid: string, iosCli: IosCli): Promise<{
|
|
8
|
+
isActivated: boolean;
|
|
9
|
+
activationState: string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function listDevices(iosCli: IosCli): Promise<IosListResult>;
|
|
12
|
+
export declare function wipeDevice(udid: string, iosCli: IosCli): Promise<void>;
|
|
13
|
+
export declare function removeProfile(profileIdentifier: string, udid: string, iosCli: IosCli): Promise<void>;
|
|
14
|
+
export declare function listProfiles(udid: string, iosCli: IosCli): Promise<IosProfileListResult>;
|
|
15
|
+
//# sourceMappingURL=device.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/device.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG7F,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAQ9E;AAED,wBAAsB,kBAAkB,CACvC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC;IAAE,WAAW,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CAAC,CAO5D;AAED,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAMxE;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAG5E;AAED,wBAAsB,aAAa,CAClC,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAG9F"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IosCli, IosCommandResult } from "@/types/ios";
|
|
2
|
+
import type { AppInfo } from "@/types/types";
|
|
3
|
+
import { type InstallAppMdmOptions } from "@mcesystems/mdm-client-g4";
|
|
4
|
+
export declare function installLocalApp(ipaPath: string, udid: string, iosCli: IosCli): Promise<IosCommandResult>;
|
|
5
|
+
export declare function installManagedApp(ipaPath: string, udid: string, iosCli: IosCli, options: InstallAppMdmOptions): Promise<IosCommandResult>;
|
|
6
|
+
export declare function uninstallApp(bundleId: string, udid: string): Promise<void>;
|
|
7
|
+
export declare function listApps(udid: string): Promise<AppInfo[]>;
|
|
8
|
+
export declare function isAppInstalled(bundleId: string, udid: string): Promise<boolean>;
|
|
9
|
+
export declare function wakeDevice(udid: string): Promise<void>;
|
|
10
|
+
//# sourceMappingURL=install.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,2BAA2B,CAAC;AAMvF,wBAAsB,eAAe,CACpC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC,gBAAgB,CAAC,CAG3B;AAED,wBAAsB,iBAAiB,CACtC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oBAAoB,GAC3B,OAAO,CAAC,gBAAgB,CAAC,CAQ3B;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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function isPaired(udid: string): Promise<boolean>;
|
|
2
|
+
export declare function trustDevice(udid: string, timeout?: number, onWaitingForTrust?: () => void): Promise<boolean>;
|
|
3
|
+
export declare function waitForPairing(udid: string, timeout?: number, pollInterval?: number): Promise<boolean>;
|
|
4
|
+
export declare function pair(udid: string): Promise<boolean>;
|
|
5
|
+
export declare function unpair(udid: string): Promise<boolean>;
|
|
6
|
+
//# sourceMappingURL=pair.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pair.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/pair.ts"],"names":[],"mappings":"AAGA,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAa7D;AAED,wBAAsB,WAAW,CAChC,IAAI,EAAE,MAAM,EACZ,OAAO,SAAQ,EACf,iBAAiB,CAAC,EAAE,MAAM,IAAI,GAC5B,OAAO,CAAC,OAAO,CAAC,CAmClB;AAED,wBAAsB,cAAc,CACnC,IAAI,EAAE,MAAM,EACZ,OAAO,SAAS,EAChB,YAAY,SAAO,GACjB,OAAO,CAAC,OAAO,CAAC,CAelB;AAED,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAkBzD;AAED,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAa3D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ChildProcess } from "node:child_process";
|
|
2
|
+
import type { PortForwardResult } from "@/types/types";
|
|
3
|
+
/**
|
|
4
|
+
* Start port forwarding using iproxy.
|
|
5
|
+
* This spawns a long-running process that must be killed when no longer needed.
|
|
6
|
+
*
|
|
7
|
+
* @param localPort Local port to listen on
|
|
8
|
+
* @param devicePort Device port to forward to
|
|
9
|
+
* @param udid Device UDID
|
|
10
|
+
* @param startupTimeout Time to wait for iproxy to start (ms)
|
|
11
|
+
* @returns Object containing the result and the child process
|
|
12
|
+
*/
|
|
13
|
+
export declare function startPortForward(localPort: number, devicePort: number, udid: string, startupTimeout?: number): Promise<{
|
|
14
|
+
result: PortForwardResult;
|
|
15
|
+
process: ChildProcess;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Kill a port forwarding process
|
|
19
|
+
*
|
|
20
|
+
* @param process The child process to kill
|
|
21
|
+
*/
|
|
22
|
+
export declare function killPortForwardProcess(process: ChildProcess): void;
|
|
23
|
+
//# sourceMappingURL=proxy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,oBAAoB,CAAC;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIvD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,cAAc,SAAM,GAClB,OAAO,CAAC;IAAE,MAAM,EAAE,iBAAiB,CAAC;IAAC,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC,CA+E/D;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAKlE"}
|