@mcesystems/apple-kit 1.0.44 → 1.0.46

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 (37) hide show
  1. package/README.md +13 -3
  2. package/dist/index.js +32759 -86
  3. package/dist/index.js.map +4 -4
  4. package/dist/index.mjs +32754 -85
  5. package/dist/index.mjs.map +4 -4
  6. package/dist/plist/certificate-trust.xml +41 -0
  7. package/dist/plist/wifi-enterprise.xml +59 -0
  8. package/dist/plist/wifi-standard.xml +50 -0
  9. package/dist/types/graphql/queries.d.ts +9 -0
  10. package/dist/types/graphql/queries.d.ts.map +1 -0
  11. package/dist/types/index.d.ts +4 -1
  12. package/dist/types/index.d.ts.map +1 -1
  13. package/dist/types/logic/actions/install.d.ts +2 -2
  14. package/dist/types/logic/actions/install.d.ts.map +1 -1
  15. package/dist/types/logic/activationFlow.d.ts +17 -0
  16. package/dist/types/logic/activationFlow.d.ts.map +1 -0
  17. package/dist/types/logic/appleDeviceKit.d.ts +8 -9
  18. package/dist/types/logic/appleDeviceKit.d.ts.map +1 -1
  19. package/dist/types/logic/iosCli.d.ts +3 -0
  20. package/dist/types/logic/iosCli.d.ts.map +1 -0
  21. package/dist/types/types.d.ts +96 -0
  22. package/dist/types/types.d.ts.map +1 -1
  23. package/dist/types/utils/authClient.d.ts +7 -0
  24. package/dist/types/utils/authClient.d.ts.map +1 -0
  25. package/dist/types/utils/mdmClient.d.ts +7 -0
  26. package/dist/types/utils/mdmClient.d.ts.map +1 -0
  27. package/dist/types/utils/templateLoader.d.ts +8 -0
  28. package/dist/types/utils/templateLoader.d.ts.map +1 -0
  29. package/dist/types/utils/trustProfile.d.ts +8 -0
  30. package/dist/types/utils/trustProfile.d.ts.map +1 -0
  31. package/dist/types/utils/wifiProfile.d.ts +10 -0
  32. package/dist/types/utils/wifiProfile.d.ts.map +1 -0
  33. package/package.json +10 -2
  34. package/resources/ios.exe +0 -0
  35. package/resources/wintun-LICENSE.txt +84 -0
  36. package/resources/wintun.dll +0 -0
  37. package/scripts/prepare-ios.ts +222 -0
@@ -0,0 +1,41 @@
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>{{certificateBase64}}</data>
12
+ <key>PayloadDescription</key>
13
+ <string>{{certificateDescription}}</string>
14
+ <key>PayloadDisplayName</key>
15
+ <string>{{certificateDisplayName}}</string>
16
+ <key>PayloadIdentifier</key>
17
+ <string>{{payloadId}}</string>
18
+ <key>PayloadType</key>
19
+ <string>com.apple.security.root</string>
20
+ <key>PayloadUUID</key>
21
+ <string>{{certificateUuid}}</string>
22
+ <key>PayloadVersion</key>
23
+ <integer>1</integer>
24
+ </dict>
25
+ </array>
26
+ <key>PayloadDisplayName</key>
27
+ <string>{{profileDisplayName}}</string>
28
+ <key>PayloadIdentifier</key>
29
+ <string>{{profileId}}</string>
30
+ <key>PayloadOrganization</key>
31
+ <string>{{organizationName}}</string>
32
+ <key>PayloadRemovalDisallowed</key>
33
+ <{{removalDisallowed}}/>
34
+ <key>PayloadType</key>
35
+ <string>Configuration</string>
36
+ <key>PayloadUUID</key>
37
+ <string>{{profileUuid}}</string>
38
+ <key>PayloadVersion</key>
39
+ <integer>1</integer>
40
+ </dict>
41
+ </plist>
@@ -0,0 +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>
@@ -0,0 +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>
@@ -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"}
@@ -8,6 +8,9 @@
8
8
  * NOTE: On Windows, iTunes must be running for device communication to work.
9
9
  */
10
10
  export { AppleDeviceKit } from "./logic/appleDeviceKit";
11
+ export { ActivationFlow } from "./logic/activationFlow";
12
+ export { createIosCli } from "./logic/iosCli";
11
13
  export { ActivationState } from "./types";
12
- export type { AppInfo, AppleListenerConfig, DeviceListEntry, iOSDeviceInfo, PortForwardResult, } from "./types";
14
+ export type { AppInfo, ActivationFlowConfig, AppleListenerConfig, AuthCredentials, DeviceListEntry, GenerateEnrollmentProfileResponse, iOSDeviceInfo, InstallAppMdmOptions, InstallAppOptions, InstallAppResponse, MdmApiCallStatus, MdmClient, MdmClientConfig, PortForwardResult, TokenResponse, TrustProfileConfig, WifiEapType, WifiEncryptionType, WifiProfileConfig, } from "./types";
15
+ export type { IosCli, IosCommandResult, IosListResult } from "./types/ios";
13
16
  //# 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,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EACX,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,iBAAiB,GACjB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EACX,OAAO,EACP,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,iCAAiC,EACjC,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,iBAAiB,GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { AppInfo } from "@/types";
2
- export declare function installApp(ipaPath: string, udid: string): Promise<void>;
1
+ import type { AppInfo, InstallAppOptions } from "@/types";
2
+ export declare function installApp(ipaPath: string, udid: string, options?: InstallAppOptions): Promise<void>;
3
3
  export declare function uninstallApp(bundleId: string, udid: string): Promise<void>;
4
4
  export declare function listApps(udid: string): Promise<AppInfo[]>;
5
5
  export declare function isAppInstalled(bundleId: string, udid: string): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAMvC,wBAAsB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,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,GAAG,OAAO,CAAC,OAAO,CAAC,CAKrF;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgC5D;AAED,wBAAsB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA6D7F;AAwCD,wBAAsB,4BAA4B,CACjD,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CAgKf"}
@@ -0,0 +1,17 @@
1
+ import type { ActivationFlowConfig } from "@/types";
2
+ export declare class ActivationFlow {
3
+ private readonly iosCli;
4
+ private readonly mdmClientPromise;
5
+ private readonly organizationName?;
6
+ constructor(config: ActivationFlowConfig);
7
+ run(udid: string): Promise<"activated" | "wiped">;
8
+ private installWifiProfile;
9
+ private getActivationState;
10
+ private installMdmProfile;
11
+ private installTrustProfile;
12
+ private requireMdmClient;
13
+ private retryIosCommand;
14
+ private retryActivateCommand;
15
+ private retry;
16
+ }
17
+ //# sourceMappingURL=activationFlow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activationFlow.d.ts","sourceRoot":"","sources":["../../../src/logic/activationFlow.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAa,MAAM,SAAS,CAAC;AAW/D,qBAAa,cAAc;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAS;gBAE/B,MAAM,EAAE,oBAAoB;IAM3B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC;YAmBhD,kBAAkB;YAalB,kBAAkB;YAWlB,iBAAiB;YAqBjB,mBAAmB;YA6BnB,gBAAgB;YAQhB,eAAe;YAOf,oBAAoB;YAOpB,KAAK;CAwBnB"}
@@ -1,4 +1,4 @@
1
- import type { ActivationState, AppInfo, PortForwardResult, iOSDeviceInfo } from "../types";
1
+ import type { ActivationFlowConfig, ActivationState, AppInfo, InstallAppOptions, PortForwardResult, iOSDeviceInfo } from "../types";
2
2
  /**
3
3
  * AppleDeviceKit - iOS device operations wrapper
4
4
  *
@@ -66,7 +66,7 @@ export declare class AppleDeviceKit {
66
66
  *
67
67
  * @param ipaPath Path to the IPA file
68
68
  */
69
- installApp(ipaPath: string): Promise<void>;
69
+ installApp(ipaPath: string, options?: InstallAppOptions): Promise<void>;
70
70
  /**
71
71
  * Uninstall an app by bundle ID (uninstall agent)
72
72
  *
@@ -118,16 +118,15 @@ export declare class AppleDeviceKit {
118
118
  */
119
119
  getActivationState(): Promise<ActivationState>;
120
120
  /**
121
- * Activate the device (register in apple servers), an activated device belongs to someone (a user/company).
122
- * A device that is on hello screen cannot pass the wifi step unless it is activated.
123
- * the activate save us the need of the device to be connected to the internet to do the activation
124
- * and register in apple servers.
121
+ * Activate the device using the activation flow.
125
122
  *
126
- * Note: This requires a valid activation record or Apple server access
123
+ * This flow can install WiFi/MDM/trust profiles and skip setup steps.
127
124
  *
128
- * precondition: the device must be paired and trusted
125
+ * Note: This requires a valid activation record or Apple server access.
126
+ *
127
+ * Precondition: the device must be paired and trusted.
129
128
  */
130
- activate(): Promise<boolean>;
129
+ activate(config: ActivationFlowConfig): Promise<"activated" | "wiped">;
131
130
  /**
132
131
  * Get the device UDID
133
132
  */
@@ -1 +1 @@
1
- {"version":3,"file":"appleDeviceKit.d.ts","sourceRoot":"","sources":["../../../src/logic/appleDeviceKit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAQ3F;;;;;;;;;;;GAWG;AACH,qBAAa,cAAc;IA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,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,3 @@
1
+ import type { IosCli } from "../types/ios";
2
+ export declare function createIosCli(iosBinaryPath: string): IosCli;
3
+ //# sourceMappingURL=iosCli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iosCli.d.ts","sourceRoot":"","sources":["../../../src/logic/iosCli.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,MAAM,EAAmC,MAAM,cAAc,CAAC;AAmE9F,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAqC1D"}
@@ -137,4 +137,100 @@ export interface ActivationState {
137
137
  activationState: string;
138
138
  }
139
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
+ /**
141
+ * Activation flow config
142
+ */
143
+ export interface ActivationFlowConfig {
144
+ /**
145
+ * Path to the ios CLI binary (go-ios wrapper).
146
+ */
147
+ iosBinaryPath: string;
148
+ /**
149
+ * Organization name used for trust profile display (optional).
150
+ * If not set, uses ORGANIZATION_NAME from env.
151
+ */
152
+ organizationName?: string;
153
+ }
154
+ /**
155
+ * WiFi profile types
156
+ */
157
+ export type WifiEncryptionType = "WEP" | "WPA" | "WPA2" | "WPA3" | "Any" | "None";
158
+ export type WifiEapType = "TLS" | "TTLS" | "LEAP" | "PEAP" | "EAP-FAST" | "EAP-SIM" | "EAP-AKA";
159
+ export interface WifiProfileConfig {
160
+ ssid: string;
161
+ password?: string;
162
+ encryptionType?: WifiEncryptionType;
163
+ autoJoin?: boolean;
164
+ hiddenNetwork?: boolean;
165
+ organizationName?: string;
166
+ displayName?: string;
167
+ enterprise?: boolean;
168
+ username?: string;
169
+ eapType?: WifiEapType;
170
+ acceptAnyCertificate?: boolean;
171
+ }
172
+ /**
173
+ * Trust profile types
174
+ */
175
+ export interface TrustProfileConfig {
176
+ organizationName: string;
177
+ certificateBase64: string;
178
+ certificateDisplayName?: string;
179
+ profileDisplayName?: string;
180
+ }
181
+ /**
182
+ * MDM types
183
+ */
184
+ export type DeviceType = "IOS" | "ANDROID";
185
+ export type MdmApiCallStatus = "OK" | "SERVER_ERROR" | "TIMEOUT" | "UNENROLLED_DEVICE_ID";
186
+ export interface GenerateEnrollmentProfileResponse {
187
+ status: MdmApiCallStatus;
188
+ profile?: string | null;
189
+ }
190
+ export interface WaitForDeviceToEnrollResponse {
191
+ status: MdmApiCallStatus;
192
+ isEnrolled?: boolean | null;
193
+ opRef?: string | null;
194
+ }
195
+ export interface InstallAppResponse {
196
+ status: MdmApiCallStatus;
197
+ opRef?: string | null;
198
+ }
199
+ export interface MdmClientConfig {
200
+ endpoint: string;
201
+ authToken?: string;
202
+ timeout?: number;
203
+ }
204
+ export interface MdmClient {
205
+ generateEnrollmentProfile(deviceId: string): Promise<GenerateEnrollmentProfileResponse>;
206
+ waitForDeviceToEnroll(deviceId: string, previousOpRef?: string): Promise<WaitForDeviceToEnrollResponse>;
207
+ installApp(deviceId: string, options: {
208
+ appId?: string;
209
+ url?: string;
210
+ waitForInstalled?: boolean;
211
+ }): Promise<InstallAppResponse>;
212
+ }
213
+ export interface InstallAppMdmOptions {
214
+ appId?: string;
215
+ url?: string;
216
+ waitForInstalled?: boolean;
217
+ client?: MdmClient;
218
+ clientConfig?: MdmClientConfig;
219
+ }
220
+ export interface InstallAppOptions {
221
+ installViaMdm?: boolean;
222
+ mdm?: InstallAppMdmOptions;
223
+ }
224
+ /**
225
+ * Auth types
226
+ */
227
+ export interface AuthCredentials {
228
+ clientDecorator: string;
229
+ variantConfigurationKey: string;
230
+ frameworkId?: string;
231
+ }
232
+ export interface TokenResponse {
233
+ accessToken: string;
234
+ expiresIn: number;
235
+ }
140
236
  //# sourceMappingURL=types.d.ts.map
@@ -1 +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,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;CAClB;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;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;;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B,GAChB,qBAAqB,GACrB,eAAe,GACf,iBAAiB,GACjB,eAAe,GACf,aAAa,GACb,mBAAmB,GACnB,eAAe,GACf,iBAAiB,GACjB,eAAe,GACf,YAAY,GACZ,UAAU,GACV,aAAa,GACb,WAAW,GACX,cAAc,GACd,WAAW,GACX,cAAc,GACd,WAAW,GACX,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,cAAc,GACd,iBAAiB,GACjB,cAAc,GACd,qBAAqB,GACrB,aAAa,GACb,aAAa,GACb,oBAAoB,GACpB,OAAO,GACP,cAAc,GACd,cAAc,GACd,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,QAAQ,GACR,cAAc,GACd,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,yBAAyB,GACzB,aAAa,GACb,uBAAuB,GACvB,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,eAAe,GACf,WAAW,GACX,aAAa,GACb,cAAc,GACd,aAAa,GACb,6BAA6B,GAC7B,SAAS,GACT,cAAc,GACd,gBAAgB,GAChB,mBAAmB,CAAC"}
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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W,iBAAiB;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,GAAG,CAAC,EAAE,oBAAoB,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Auth client for fetching MCE API tokens
3
+ */
4
+ import type { AuthCredentials, TokenResponse } from "@/types";
5
+ export declare function getAuthToken(credentials: AuthCredentials, apiUrl?: string): Promise<TokenResponse>;
6
+ export declare function readCredentialsFromFile(filePath?: string): Promise<AuthCredentials>;
7
+ //# sourceMappingURL=authClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authClient.d.ts","sourceRoot":"","sources":["../../../src/utils/authClient.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI9D,wBAAsB,YAAY,CACjC,WAAW,EAAE,eAAe,EAC5B,MAAM,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,aAAa,CAAC,CAyGxB;AAED,wBAAsB,uBAAuB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAoBzF"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * MDM API Client
3
+ */
4
+ import type { MdmClient, MdmClientConfig } from "@/types";
5
+ export declare function createMdmClient(config: MdmClientConfig): MdmClient;
6
+ export declare function createMdmClientFromEnv(): Promise<MdmClient | undefined>;
7
+ //# sourceMappingURL=mdmClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mdmClient.d.ts","sourceRoot":"","sources":["../../../src/utils/mdmClient.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,KAAK,EAGX,SAAS,EACT,eAAe,EAEf,MAAM,SAAS,CAAC;AAKjB,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAsFlE;AAED,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAgB7E"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Template Loader Utility
3
+ *
4
+ * Loads and processes plist templates with variable substitution
5
+ */
6
+ export declare function loadTemplate(templateName: string): Promise<string>;
7
+ export declare function processTemplate(template: string, variables: Record<string, unknown>): string;
8
+ //# sourceMappingURL=templateLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateLoader.d.ts","sourceRoot":"","sources":["../../../src/utils/templateLoader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAmDH,wBAAsB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAIxE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAuB5F"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Trust Profile Generation Utility
3
+ */
4
+ import type { TrustProfileConfig } from "@/types";
5
+ export declare function generateTrustProfile(config: TrustProfileConfig): Promise<string>;
6
+ export declare function generateTrustProfileFromEnv(organizationName: string): Promise<string | undefined>;
7
+ export declare function saveTrustProfileToTemp(profileXml: string): Promise<string>;
8
+ //# sourceMappingURL=trustProfile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trustProfile.d.ts","sourceRoot":"","sources":["../../../src/utils/trustProfile.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAyCtF;AAED,wBAAsB,2BAA2B,CAChD,gBAAgB,EAAE,MAAM,GACtB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAW7B;AAED,wBAAsB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAKhF"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * WiFi Profile Generator
3
+ *
4
+ * Generates iOS-compatible WiFi configuration profiles (.mobileconfig)
5
+ */
6
+ import type { WifiProfileConfig } from "@/types";
7
+ export declare function generateWifiProfile(config: WifiProfileConfig): Promise<string>;
8
+ export declare function generateWifiProfileFromEnv(): Promise<string | null>;
9
+ export declare function saveWifiProfileToTemp(profile: string): Promise<string>;
10
+ //# sourceMappingURL=wifiProfile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wifiProfile.d.ts","sourceRoot":"","sources":["../../../src/utils/wifiProfile.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAmC,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGlF,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA4DpF;AAED,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAqBzE;AAED,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAa5E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcesystems/apple-kit",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "iOS device management toolkit using libimobiledevice command-line tools",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,6 +34,9 @@
34
34
  "dependencies": {
35
35
  "debug": "^4.4.3",
36
36
  "get-port": "^7.1.0",
37
+ "go-ios": "^1.0.188",
38
+ "graphql": "^14.5.8",
39
+ "graphql-request": "^5.2.0",
37
40
  "tsx": "^4.21.0"
38
41
  },
39
42
  "devDependencies": {
@@ -50,7 +53,10 @@
50
53
  "dist",
51
54
  "scripts",
52
55
  "prebuilt",
53
- "README.md"
56
+ "README.md",
57
+ "resources/wintun.dll",
58
+ "resources/wintun-LICENSE.txt",
59
+ "resources/ios.exe"
54
60
  ],
55
61
  "bin": {
56
62
  "export-apple-resources": "./scripts/export-resources.ts"
@@ -59,6 +65,8 @@
59
65
  "build": "tsx esbuild.config.mts && tsc --emitDeclarationOnly",
60
66
  "clean": "rimraf dist",
61
67
  "check:types": "tsc --noEmit",
68
+ "activate:example": "tsx src/examples/activationExample.ts",
69
+ "ios:example": "tsx src/examples/iosExample.ts",
62
70
  "pack": "npm pack",
63
71
  "test": "vitest run",
64
72
  "test:watch": "vitest"
Binary file
@@ -0,0 +1,84 @@
1
+ Prebuilt Binaries License
2
+ -------------------------
3
+
4
+ 1. DEFINITIONS. "Software" means the precise contents of the "wintun.dll"
5
+ files that are included in the .zip file that contains this document as
6
+ downloaded from wintun.net/builds.
7
+
8
+ 2. LICENSE GRANT. WireGuard LLC grants to you a non-exclusive and
9
+ non-transferable right to use Software for lawful purposes under certain
10
+ obligations and limited rights as set forth in this agreement.
11
+
12
+ 3. RESTRICTIONS. Software is owned and copyrighted by WireGuard LLC. It is
13
+ licensed, not sold. Title to Software and all associated intellectual
14
+ property rights are retained by WireGuard. You must not:
15
+ a. reverse engineer, decompile, disassemble, extract from, or otherwise
16
+ modify the Software;
17
+ b. modify or create derivative work based upon Software in whole or in
18
+ parts, except insofar as only the API interfaces of the "wintun.h" file
19
+ distributed alongside the Software (the "Permitted API") are used;
20
+ c. remove any proprietary notices, labels, or copyrights from the Software;
21
+ d. resell, redistribute, lease, rent, transfer, sublicense, or otherwise
22
+ transfer rights of the Software without the prior written consent of
23
+ WireGuard LLC, except insofar as the Software is distributed alongside
24
+ other software that uses the Software only via the Permitted API;
25
+ e. use the name of WireGuard LLC, the WireGuard project, the Wintun
26
+ project, or the names of its contributors to endorse or promote products
27
+ derived from the Software without specific prior written consent.
28
+
29
+ 4. LIMITED WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF
30
+ ANY KIND. WIREGUARD LLC HEREBY EXCLUDES AND DISCLAIMS ALL IMPLIED OR
31
+ STATUTORY WARRANTIES, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS
32
+ FOR A PARTICULAR PURPOSE, QUALITY, NON-INFRINGEMENT, TITLE, RESULTS,
33
+ EFFORTS, OR QUIET ENJOYMENT. THERE IS NO WARRANTY THAT THE PRODUCT WILL BE
34
+ ERROR-FREE OR WILL FUNCTION WITHOUT INTERRUPTION. YOU ASSUME THE ENTIRE
35
+ RISK FOR THE RESULTS OBTAINED USING THE PRODUCT. TO THE EXTENT THAT
36
+ WIREGUARD LLC MAY NOT DISCLAIM ANY WARRANTY AS A MATTER OF APPLICABLE LAW,
37
+ THE SCOPE AND DURATION OF SUCH WARRANTY WILL BE THE MINIMUM PERMITTED UNDER
38
+ SUCH LAW. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
39
+ WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR
40
+ A PARTICULAR PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
41
+ EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
42
+
43
+ 5. LIMITATION OF LIABILITY. To the extent not prohibited by law, in no event
44
+ WireGuard LLC or any third-party-developer will be liable for any lost
45
+ revenue, profit or data or for special, indirect, consequential, incidental
46
+ or punitive damages, however caused regardless of the theory of liability,
47
+ arising out of or related to the use of or inability to use Software, even
48
+ if WireGuard LLC has been advised of the possibility of such damages.
49
+ Solely you are responsible for determining the appropriateness of using
50
+ Software and accept full responsibility for all risks associated with its
51
+ exercise of rights under this agreement, including but not limited to the
52
+ risks and costs of program errors, compliance with applicable laws, damage
53
+ to or loss of data, programs or equipment, and unavailability or
54
+ interruption of operations. The foregoing limitations will apply even if
55
+ the above stated warranty fails of its essential purpose. You acknowledge,
56
+ that it is in the nature of software that software is complex and not
57
+ completely free of errors. In no event shall WireGuard LLC or any
58
+ third-party-developer be liable to you under any theory for any damages
59
+ suffered by you or any user of Software or for any special, incidental,
60
+ indirect, consequential or similar damages (including without limitation
61
+ damages for loss of business profits, business interruption, loss of
62
+ business information or any other pecuniary loss) arising out of the use or
63
+ inability to use Software, even if WireGuard LLC has been advised of the
64
+ possibility of such damages and regardless of the legal or quitable theory
65
+ (contract, tort, or otherwise) upon which the claim is based.
66
+
67
+ 6. TERMINATION. This agreement is affected until terminated. You may
68
+ terminate this agreement at any time. This agreement will terminate
69
+ immediately without notice from WireGuard LLC if you fail to comply with
70
+ the terms and conditions of this agreement. Upon termination, you must
71
+ delete Software and all copies of Software and cease all forms of
72
+ distribution of Software.
73
+
74
+ 7. SEVERABILITY. If any provision of this agreement is held to be
75
+ unenforceable, this agreement will remain in effect with the provision
76
+ omitted, unless omission would frustrate the intent of the parties, in
77
+ which case this agreement will immediately terminate.
78
+
79
+ 8. RESERVATION OF RIGHTS. All rights not expressly granted in this agreement
80
+ are reserved by WireGuard LLC. For example, WireGuard LLC reserves the
81
+ right at any time to cease development of Software, to alter distribution
82
+ details, features, specifications, capabilities, functions, licensing
83
+ terms, release dates, APIs, ABIs, general availability, or other
84
+ characteristics of the Software.
Binary file