@mcesystems/apple-kit 1.0.74 → 1.0.76

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.
Files changed (61) hide show
  1. package/README.md +258 -258
  2. package/dist/index.js +850 -896
  3. package/dist/index.js.map +4 -4
  4. package/dist/index.mjs +847 -892
  5. package/dist/index.mjs.map +4 -4
  6. package/dist/resources/plist/certificate-trust.xml +43 -43
  7. package/dist/resources/plist/ddm-managed-app.xml +55 -0
  8. package/dist/resources/plist/wifi-enterprise.xml +59 -59
  9. package/dist/resources/plist/wifi-standard.xml +50 -50
  10. package/dist/types/graphql/queries.d.ts +9 -0
  11. package/dist/types/graphql/queries.d.ts.map +1 -0
  12. package/dist/types/index.d.ts +1 -1
  13. package/dist/types/index.d.ts.map +1 -1
  14. package/dist/types/logic/actions/activation.d.ts +12 -0
  15. package/dist/types/logic/actions/activation.d.ts.map +1 -0
  16. package/dist/types/logic/actions/appState.d.ts +2 -0
  17. package/dist/types/logic/actions/appState.d.ts.map +1 -0
  18. package/dist/types/logic/actions/device.d.ts +22 -13
  19. package/dist/types/logic/actions/device.d.ts.map +1 -1
  20. package/dist/types/logic/actions/install.d.ts +12 -7
  21. package/dist/types/logic/actions/install.d.ts.map +1 -1
  22. package/dist/types/logic/actions/proxy.d.ts +9 -21
  23. package/dist/types/logic/actions/proxy.d.ts.map +1 -1
  24. package/dist/types/logic/actions/usbmuxd.d.ts +10 -0
  25. package/dist/types/logic/actions/usbmuxd.d.ts.map +1 -0
  26. package/dist/types/logic/activationFlow.d.ts +5 -4
  27. package/dist/types/logic/activationFlow.d.ts.map +1 -1
  28. package/dist/types/logic/appleDeviceKit.d.ts +11 -10
  29. package/dist/types/logic/appleDeviceKit.d.ts.map +1 -1
  30. package/dist/types/logic/iosClient.d.ts +50 -0
  31. package/dist/types/logic/iosClient.d.ts.map +1 -0
  32. package/dist/types/logic/profileParser.d.ts +13 -0
  33. package/dist/types/logic/profileParser.d.ts.map +1 -0
  34. package/dist/types/types/auth.d.ts +13 -0
  35. package/dist/types/types/auth.d.ts.map +1 -0
  36. package/dist/types/types/install.d.ts +13 -0
  37. package/dist/types/types/install.d.ts.map +1 -0
  38. package/dist/types/types/ios.d.ts +4 -0
  39. package/dist/types/types/ios.d.ts.map +1 -1
  40. package/dist/types/types/mdm.d.ts +33 -0
  41. package/dist/types/types/mdm.d.ts.map +1 -0
  42. package/dist/types/types.d.ts +173 -0
  43. package/dist/types/types.d.ts.map +1 -0
  44. package/dist/types/utils/authClient.d.ts +7 -0
  45. package/dist/types/utils/authClient.d.ts.map +1 -0
  46. package/dist/types/utils/ddmDeclaration.d.ts +8 -0
  47. package/dist/types/utils/ddmDeclaration.d.ts.map +1 -0
  48. package/dist/types/utils/debug.d.ts +17 -0
  49. package/dist/types/utils/debug.d.ts.map +1 -0
  50. package/dist/types/utils/installRawProfileRetry.d.ts +7 -0
  51. package/dist/types/utils/installRawProfileRetry.d.ts.map +1 -0
  52. package/dist/types/utils/mdmClient.d.ts +7 -0
  53. package/dist/types/utils/mdmClient.d.ts.map +1 -0
  54. package/dist/types/utils/trustProfile.d.ts +12 -0
  55. package/dist/types/utils/trustProfile.d.ts.map +1 -0
  56. package/package.json +7 -5
  57. package/resources/ios.exe +0 -0
  58. package/resources/wintun-LICENSE.txt +84 -0
  59. package/resources/wintun.dll +0 -0
  60. package/scripts/README.md +209 -209
  61. package/scripts/build-windows.sh.template +222 -222
@@ -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>
@@ -0,0 +1,55 @@
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>PayloadType</key>
9
+ <string>com.apple.declarative-device-management</string>
10
+ <key>PayloadVersion</key>
11
+ <integer>1</integer>
12
+ <key>PayloadIdentifier</key>
13
+ <string>{{profileId}}.declarations</string>
14
+ <key>PayloadUUID</key>
15
+ <string>{{payloadUuid}}</string>
16
+ <key>PayloadDisplayName</key>
17
+ <string>DDM Declarations</string>
18
+ <key>Declarations</key>
19
+ <dict>
20
+ <key>Configurations</key>
21
+ <array>
22
+ <dict>
23
+ <key>Identifier</key>
24
+ <string>{{declarationIdentifier}}</string>
25
+ <key>Type</key>
26
+ <string>com.apple.configuration.app.managed</string>
27
+ <key>Payload</key>
28
+ <dict>
29
+ <key>AppComposedIdentifier</key>
30
+ <string>{{bundleId}} ({{teamId}})</string>
31
+ <key>InstallBehavior</key>
32
+ <dict>
33
+ <key>Install</key>
34
+ <string>{{installBehavior}}</string>
35
+ </dict>
36
+ </dict>
37
+ </dict>
38
+ </array>
39
+ </dict>
40
+ </dict>
41
+ </array>
42
+ <key>PayloadType</key>
43
+ <string>Configuration</string>
44
+ <key>PayloadVersion</key>
45
+ <integer>1</integer>
46
+ <key>PayloadIdentifier</key>
47
+ <string>{{profileId}}</string>
48
+ <key>PayloadUUID</key>
49
+ <string>{{profileUuid}}</string>
50
+ <key>PayloadDisplayName</key>
51
+ <string>{{displayName}}</string>
52
+ <key>PayloadOrganization</key>
53
+ <string>{{organizationName}}</string>
54
+ </dict>
55
+ </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>
@@ -0,0 +1,9 @@
1
+ /**
2
+ * GraphQL queries and mutations for MDM API
3
+ */
4
+ export declare const GENERATE_ENROLLMENT_PROFILE: string;
5
+ export declare const INSTALL_APP: string;
6
+ export declare const WAIT_FOR_DEVICE_TO_ENROLL: string;
7
+ export declare const AUTHORIZE_QUERY = "\n query Authorize($input: AuthorizeInput!) {\n authorize(input: $input) {\n status\n authorization_code\n }\n }\n";
8
+ export declare const TOKEN_QUERY = "\n query Token($input: TokenInput!) {\n token(input: $input) {\n status\n access_token\n expires_in\n }\n }\n";
9
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/graphql/queries.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,2BAA2B,QAOvC,CAAC;AAEF,eAAO,MAAM,WAAW,QAOvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAQrC,CAAC;AAEF,eAAO,MAAM,eAAe,yIAO3B,CAAC;AAEF,eAAO,MAAM,WAAW,yIAQvB,CAAC"}
@@ -9,6 +9,6 @@
9
9
  */
10
10
  export { AppleDeviceKit } from "./logic/appleDeviceKit";
11
11
  export { ActivationFlow } from "./logic/activationFlow";
12
- export { createIosCli, iosCli } from "./logic/iosCli";
12
+ export { IosClient } from "./logic/iosClient";
13
13
  export type { IosCli, IosCommandResult, IosListResult, IosFsyncTreeResult } from "./types/ios";
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -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,EAAE,MAAM,gBAAgB,CAAC;AAEtD,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,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,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,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,2 @@
1
+ export declare function isAppOpened(bundleId: string, udid: string): Promise<boolean>;
2
+ //# sourceMappingURL=appState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appState.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/appState.ts"],"names":[],"mappings":"AAiBA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAwBlF"}
@@ -1,15 +1,24 @@
1
- import type { IosCli, IosListResult, IosProfileListResult, LockdownInfo } from "@/types/ios";
2
- export interface ExecResult {
3
- stdout: string;
4
- stderr: string;
1
+ import type { IosListResult, IosProfileListResult, LockdownInfo } from "@/types/ios";
2
+ import type { IosClient } from "../iosClient";
3
+ export declare class DeviceActions {
4
+ private readonly udid;
5
+ private readonly iosClient;
6
+ constructor(udid: string, iosClient: IosClient);
7
+ info(): Promise<LockdownInfo>;
8
+ listDevices(): Promise<IosListResult>;
9
+ wipe(): Promise<void>;
10
+ removeProfile(profileIdentifier: string): Promise<void>;
11
+ listProfiles(): Promise<IosProfileListResult>;
12
+ pair(): Promise<boolean>;
13
+ isPaired(): Promise<boolean>;
14
+ trustDevice({ timeout, onWaitingForTrust, }: {
15
+ timeout?: number;
16
+ onWaitingForTrust?: () => void;
17
+ }): Promise<boolean>;
18
+ waitForPairing({ timeout, pollInterval, }: {
19
+ timeout?: number;
20
+ pollInterval?: number;
21
+ }): Promise<boolean>;
22
+ unpair(): Promise<boolean>;
5
23
  }
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
24
  //# sourceMappingURL=device.d.ts.map
@@ -1 +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;AAK7F,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"}
1
+ {"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/device.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAErF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAqB9C,qBAAa,aAAa;IAExB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADT,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,SAAS;IAKzB,IAAI,IAAI,OAAO,CAAC,YAAY,CAAC;IAS7B,WAAW,IAAI,OAAO,CAAC,aAAa,CAAC;IAKrC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKrB,aAAa,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvD,YAAY,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAK7C,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;IAUxB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAa5B,WAAW,CAAC,EACxB,OAAe,EACf,iBAAiB,GACjB,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAyB7D,cAAc,CAAC,EAC3B,OAAgB,EAChB,YAAmB,GACnB,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAiBpD,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;CAiBvC"}
@@ -1,10 +1,15 @@
1
- import type { IosCli, IosCommandResult } from "@/types/ios";
1
+ import type { IosCommandResult } from "@/types/ios";
2
2
  import type { AppInfo } from "@/types/types";
3
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>;
4
+ import type { IosClient } from "../iosClient";
5
+ export declare class InstallActions {
6
+ private readonly udid;
7
+ private readonly iosClient;
8
+ constructor(udid: string, iosClient: IosClient);
9
+ installLocalApp(ipaPath: string): Promise<IosCommandResult>;
10
+ installManagedApp(ipaPath: string, options: InstallAppMdmOptions): Promise<IosCommandResult>;
11
+ uninstallApp(bundleId: string): Promise<IosCommandResult>;
12
+ listApps(): Promise<AppInfo[]>;
13
+ isAppInstalled(bundleId: string): Promise<boolean>;
14
+ }
10
15
  //# sourceMappingURL=install.d.ts.map
@@ -1 +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;AAQvF,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"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,2BAA2B,CAAC;AAEvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,qBAAa,cAAc;IAEzB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADT,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,SAAS;IAKzB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAK3D,iBAAiB,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,oBAAoB,GAC3B,OAAO,CAAC,gBAAgB,CAAC;IAWf,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKzD,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAW9B,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAQ/D"}
@@ -1,23 +1,11 @@
1
- import { type ChildProcess } from "node:child_process";
2
1
  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;
2
+ import type { IosClient } from "../iosClient";
3
+ export declare class ProxyActions {
4
+ private readonly udid;
5
+ private readonly iosClient;
6
+ private childProcess;
7
+ constructor(udid: string, iosClient: IosClient);
8
+ startPortForward(localPort: number, devicePort: number): Promise<PortForwardResult>;
9
+ killPortForward(): Promise<void>;
10
+ }
23
11
  //# sourceMappingURL=proxy.d.ts.map
@@ -1 +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;AAMvD;;;;;;;;;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"}
1
+ {"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/proxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,qBAAa,YAAY;IAGvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAH3B,OAAO,CAAC,YAAY,CAAwC;gBAE1C,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,SAAS;IAKzB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA0BnF,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ7C"}
@@ -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"}
@@ -1,9 +1,10 @@
1
- import type { IosCli } from "@/types/ios";
1
+ import type { IosClient } from "./iosClient";
2
2
  export declare class ActivationFlow {
3
- private readonly iosCli;
3
+ private readonly udid;
4
+ private readonly iosClient;
4
5
  private mdmClient;
5
- constructor(iosCli: IosCli);
6
- run(udid: string, steps?: string[]): Promise<(() => Promise<void>) | undefined>;
6
+ constructor(udid: string, iosClient: IosClient);
7
+ run(steps?: string[]): Promise<(() => Promise<void>) | undefined>;
7
8
  private installWifiProfile;
8
9
  private installMdmProfile;
9
10
  private removeWifiProfile;
@@ -1 +1 @@
1
- {"version":3,"file":"activationFlow.d.ts","sourceRoot":"","sources":["../../../src/logic/activationFlow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAoB,MAAM,aAAa,CAAC;AAW5D,qBAAa,cAAc;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,SAAS,CAAwB;gBAE7B,MAAM,EAAE,MAAM;IAIb,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC;YAW9E,kBAAkB;YAelB,iBAAiB;YAyBjB,iBAAiB;YAajB,eAAe;YAOf,oBAAoB;YAOpB,KAAK;CAwBnB;AAiCD,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,SAAS,CAIzD"}
1
+ {"version":3,"file":"activationFlow.d.ts","sourceRoot":"","sources":["../../../src/logic/activationFlow.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,qBAAa,cAAc;IAIzB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAJ3B,OAAO,CAAC,SAAS,CAAwB;gBAGvB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,SAAS;IAKzB,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC;YAWhE,kBAAkB;YAelB,iBAAiB;YAyBjB,iBAAiB;YAUjB,eAAe;YAOf,oBAAoB;YAOpB,KAAK;CAwBnB;AAiCD,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,SAAS,CAIzD"}