@mcesystems/apple-kit 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -124,15 +124,7 @@ async function execIDevice(command, options = {}) {
124
124
  };
125
125
  }
126
126
  function getResourcesBinPath() {
127
- const binPath = path.resolve(
128
- process.env.IDeviceBinPath,
129
- "bin",
130
- process.platform === "win32" ?
131
- "windows" :
132
- process.platform === "darwin" ?
133
- "darwin" :
134
- "linux",
135
- );
127
+ const binPath = process.env.IDeviceBinPath;
136
128
  if (!binPath) {
137
129
  throw new Error("IDeviceBinPath is not set");
138
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcesystems/apple-kit",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "iOS device management toolkit using libimobiledevice command-line tools",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "debug": "^4.4.3",
35
- "@mcesystems/usb-device-listener": "1.0.5"
35
+ "@mcesystems/usb-device-listener": "1.0.11"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/debug": "^4.1.12",
@@ -1,56 +0,0 @@
1
- /**
2
- * Configuration profile metadata
3
- */
4
- export interface ProfileMetadata {
5
- PayloadIdentifier: string;
6
- PayloadDisplayName?: string;
7
- PayloadDescription?: string;
8
- PayloadType?: string;
9
- PayloadUUID?: string;
10
- PayloadVersion?: number;
11
- }
12
- /**
13
- * Install a configuration profile on the device
14
- *
15
- * Profiles can be:
16
- * - MDM enrollment profiles (.mobileconfig)
17
- * - WiFi configuration profiles
18
- * - VPN profiles
19
- * - Certificate profiles
20
- * - Any other configuration profile
21
- *
22
- * @param udid Device UDID (leave empty for first connected device)
23
- * @param profile Profile data (Buffer or base64 string)
24
- * @param maxRetries Maximum number of retry attempts (default: 3)
25
- * @returns Promise that resolves when profile is installed
26
- */
27
- export declare function installProfile(udid: string | undefined, profile: Buffer | string, maxRetries?: number): Promise<void>;
28
- /**
29
- * Get list of installed configuration profiles on device
30
- *
31
- * @param udid Device UDID (leave empty for first connected device)
32
- * @returns Dictionary of installed profiles keyed by PayloadIdentifier
33
- */
34
- export declare function getProfileList(udid?: string): Promise<Record<string, ProfileMetadata>>;
35
- /**
36
- * Wait for a profile to be installed on the device
37
- *
38
- * @param udid Device UDID
39
- * @param expectedProfileCount Expected number of profiles after installation
40
- * @param timeoutMs Timeout in milliseconds (default: 60000)
41
- * @param pollIntervalMs Poll interval in milliseconds (default: 1000)
42
- * @returns Promise that resolves when profile count increases
43
- */
44
- export declare function waitForProfileInstallation(udid: string, expectedProfileCount: number, timeoutMs?: number, pollIntervalMs?: number): Promise<void>;
45
- /**
46
- * Install enrollment profile and wait for it to be installed
47
- *
48
- * This combines installProfile and waitForProfileInstallation for convenience.
49
- *
50
- * @param udid Device UDID (leave empty for first connected device)
51
- * @param enrollmentProfile Enrollment profile data (Buffer or base64 string)
52
- * @param waitForInstallation Whether to wait for installation to be confirmed (default: true)
53
- * @returns Promise that resolves when profile is installed
54
- */
55
- export declare function installEnrollmentProfile(udid: string | undefined, enrollmentProfile: Buffer | string, waitForInstallation?: boolean): Promise<void>;
56
- //# sourceMappingURL=enrollment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enrollment.d.ts","sourceRoot":"","sources":["../../../src/logic/enrollment.ts"],"names":[],"mappings":"AAkCA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,cAAc,CACnC,IAAI,EAAE,MAAM,YAAK,EACjB,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,UAAU,SAAI,GACZ,OAAO,CAAC,IAAI,CAAC,CAoCf;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CACnC,IAAI,GAAE,MAAW,GACf,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAqB1C;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAC/C,IAAI,EAAE,MAAM,EACZ,oBAAoB,EAAE,MAAM,EAC5B,SAAS,SAAQ,EACjB,cAAc,SAAO,GACnB,OAAO,CAAC,IAAI,CAAC,CAoBf;AAED;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAC7C,IAAI,EAAE,MAAM,YAAK,EACjB,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAClC,mBAAmB,UAAO,GACxB,OAAO,CAAC,IAAI,CAAC,CAgBf"}
@@ -1,81 +0,0 @@
1
- import { type iOSSkipStep } from "../types/skipSteps";
2
- /**
3
- * Configuration for skipping iPhone setup steps
4
- */
5
- export interface SkipSetupConfig {
6
- /**
7
- * Device UDID (leave empty for first connected device)
8
- */
9
- udid?: string;
10
- /**
11
- * Steps to skip during setup
12
- * Use the iOS_SKIP_STEPS constants or provide custom step names
13
- * Default: GEN2_SKIP_STEPS (matches mce-2nd-gen configuration)
14
- */
15
- skipSteps?: iOSSkipStep[] | string[];
16
- /**
17
- * Device language
18
- * Default: "en"
19
- */
20
- language?: string;
21
- /**
22
- * Device locale
23
- * Default: "en_US"
24
- */
25
- locale?: string;
26
- /**
27
- * Allow pairing with computer
28
- * Default: true
29
- */
30
- allowPairing?: boolean;
31
- /**
32
- * Whether device is supervised
33
- * Default: false
34
- */
35
- isSupervised?: boolean;
36
- /**
37
- * Organization name (if supervised)
38
- * Default: ""
39
- */
40
- organizationName?: string;
41
- }
42
- /**
43
- * CloudConfiguration plist structure
44
- */
45
- interface CloudConfigurationPlist {
46
- AllowPairing: boolean;
47
- AnchorCertificates: never[];
48
- IsSupervised: boolean;
49
- OrganizationName: string;
50
- SkipSetup: string[];
51
- [key: string]: unknown;
52
- }
53
- /**
54
- * Create CloudConfiguration plist for skipping setup steps
55
- */
56
- export declare function createCloudConfiguration(config: SkipSetupConfig): CloudConfigurationPlist;
57
- /**
58
- * Skip iPhone setup steps by sending CloudConfiguration
59
- *
60
- * This will configure the device to skip specified setup steps like:
61
- * - Passcode setup
62
- * - Face ID/Touch ID setup
63
- * - Apple ID sign-in
64
- * - Restore from backup
65
- * - Apple Pay setup
66
- * - Diagnostics
67
- * - Siri setup
68
- *
69
- * @param config Skip setup configuration
70
- * @returns Promise that resolves when configuration is sent
71
- */
72
- export declare function skipSetup(config?: SkipSetupConfig): Promise<void>;
73
- /**
74
- * Get current CloudConfiguration from device
75
- *
76
- * @param udid Device UDID (leave empty for first connected device)
77
- * @returns CloudConfiguration plist or null if not set
78
- */
79
- export declare function getCloudConfiguration(udid?: string): Promise<CloudConfigurationPlist | null>;
80
- export {};
81
- //# sourceMappingURL=skipSetup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skipSetup.d.ts","sourceRoot":"","sources":["../../../src/logic/skipSetup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAkCvE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,WAAW,EAAE,GAAG,MAAM,EAAE,CAAC;IAErC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,UAAU,uBAAuB;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,KAAK,EAAE,CAAC;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,eAAe,GAAG,uBAAuB,CAQzF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,SAAS,CAAC,MAAM,GAAE,eAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyB3E;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAC1C,IAAI,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAsBzC"}
@@ -1,136 +0,0 @@
1
- /**
2
- * iOS Setup Skip Steps
3
- *
4
- * These are the setup steps that can be skipped via CloudConfiguration.
5
- * Note: Not all steps can be skipped on all iOS versions, and some steps
6
- * are mandatory regardless of configuration (e.g., Language, Region on some versions).
7
- */
8
- /**
9
- * All available iOS setup skip steps
10
- */
11
- export declare const iOS_SKIP_STEPS: {
12
- /** Skip passcode setup */
13
- readonly PASSCODE: "Passcode";
14
- /** Skip Touch ID / Face ID setup */
15
- readonly BIOMETRIC: "Biometric";
16
- /** Skip Apple ID sign-in */
17
- readonly APPLE_ID: "AppleID";
18
- /** Skip restore from backup */
19
- readonly RESTORE: "Restore";
20
- /** Skip Apple Pay setup */
21
- readonly PAYMENT: "Payment";
22
- /** Skip Analytics & Diagnostics */
23
- readonly DIAGNOSTICS: "Diagnostics";
24
- /** Skip Siri setup */
25
- readonly SIRI: "Siri";
26
- /** Skip Location Services */
27
- readonly LOCATION: "Location";
28
- /** Skip Privacy information */
29
- readonly PRIVACY: "Privacy";
30
- /** Skip Android migration */
31
- readonly ANDROID: "Android";
32
- /** Skip Screen Time setup */
33
- readonly SCREEN_TIME: "ScreenTime";
34
- /** Skip Home button setup (older devices) */
35
- readonly HOME_BUTTON: "HomeButton";
36
- /** Skip tap-to-setup with another device */
37
- readonly TAP_TO_SETUP: "TapToSetup";
38
- /** Skip display zoom selection */
39
- readonly ZOOM: "Zoom";
40
- /** Skip appearance (Light/Dark mode) - may not work on all iOS versions */
41
- readonly APPEARANCE: "Appearance";
42
- /** Skip True Tone display setup */
43
- readonly DISPLAY_TONE: "DisplayTone";
44
- /** Skip iMessage and FaceTime setup */
45
- readonly IMESSAGE_FACETIME: "iMessageAndFaceTime";
46
- /** Skip SIM setup */
47
- readonly SIM_SETUP: "SIMSetup";
48
- /** Skip home button sensitivity setup (older devices) */
49
- readonly HOME_BUTTON_SENSITIVITY: "HomeButtonSensitivity";
50
- /** Skip setup assistant (general) */
51
- readonly SETUP: "Setup";
52
- /** Alternative setup step name */
53
- readonly SETUP_ALT: "SetUp";
54
- /** Language selection (Note: typically mandatory) */
55
- readonly LANGUAGE: "Language";
56
- /** Region/Country selection (Note: typically mandatory) */
57
- readonly REGION: "Region";
58
- /** Skip software update screen */
59
- readonly SOFTWARE_UPDATE: "SoftwareUpdate";
60
- /** Skip Terms of Service */
61
- readonly TOS: "TOS";
62
- /** Skip "Update Completed" screen */
63
- readonly UPDATE_COMPLETED: "UpdateCompleted";
64
- /** Skip Apple Watch migration */
65
- readonly WATCH_MIGRATION: "WatchMigration";
66
- /** Skip welcome screen */
67
- readonly WELCOME: "Welcome";
68
- /** Skip iCloud Keychain setup */
69
- readonly ICLOUD_KEYCHAIN: "iCloudKeychain";
70
- /** Skip iCloud storage setup */
71
- readonly ICLOUD_STORAGE: "iCloudStorage";
72
- /** Skip FileVault (macOS) */
73
- readonly FILE_VAULT: "FileVault";
74
- /** Skip iCloud Analytics */
75
- readonly ICLOUD_DIAGNOSTICS: "iCloudDiagnostics";
76
- /** Skip registration (older iOS) */
77
- readonly REGISTRATION: "Registration";
78
- /** Skip Find My iPhone setup */
79
- readonly FIND_MY: "FindMy";
80
- /** Skip Move from Android */
81
- readonly MOVE_FROM_ANDROID: "MoveFromAndroid";
82
- /** Skip TV Provider sign-in */
83
- readonly TV_PROVIDER: "TVProvider";
84
- /** Skip TV Home Screen Sync */
85
- readonly TV_HOME_SCREEN_SYNC: "TVHomeScreenSync";
86
- /** Skip Auto Unlock setup with Apple Watch */
87
- readonly AUTO_UNLOCK: "AutoUnlock";
88
- /** Skip Wallet setup */
89
- readonly WALLET: "Wallet";
90
- /** Skip on-boarding screens (general) */
91
- readonly ONBOARDING: "OnBoarding";
92
- };
93
- /**
94
- * Type for iOS setup skip step values
95
- */
96
- export type iOSSkipStep = typeof iOS_SKIP_STEPS[keyof typeof iOS_SKIP_STEPS];
97
- /**
98
- * Array of all skip step values
99
- */
100
- export declare const ALL_SKIP_STEPS: iOSSkipStep[];
101
- /**
102
- * Common/recommended skip steps for device provisioning
103
- */
104
- export declare const COMMON_SKIP_STEPS: iOSSkipStep[];
105
- /**
106
- * Minimal skip steps (most essential to skip)
107
- */
108
- export declare const MINIMAL_SKIP_STEPS: iOSSkipStep[];
109
- /**
110
- * Gen2 skip steps configuration (matches mce-2nd-gen iOSSkipSetup.ini)
111
- * This is the exact order and list used in the legacy system
112
- */
113
- export declare const GEN2_SKIP_STEPS: iOSSkipStep[];
114
- /**
115
- * Steps that are typically mandatory and cannot be skipped
116
- * (These may still be included in SkipSetup array but won't be skipped by iOS)
117
- */
118
- export declare const MANDATORY_STEPS: {
119
- /** Language selection - mandatory on first boot */
120
- readonly LANGUAGE: "Language";
121
- /** Country/Region selection - mandatory */
122
- readonly REGION: "Region";
123
- /** WiFi setup - mandatory if device needs activation */
124
- readonly WIFI: "WiFi";
125
- /** Appearance may be mandatory on some iOS versions */
126
- readonly APPEARANCE_MANDATORY: "Appearance (may be mandatory)";
127
- };
128
- /**
129
- * Helper function to validate skip step names
130
- */
131
- export declare function isValidSkipStep(step: string): step is iOSSkipStep;
132
- /**
133
- * Helper function to get all skip steps except specified ones
134
- */
135
- export declare function getAllSkipStepsExcept(...exclude: iOSSkipStep[]): iOSSkipStep[];
136
- //# sourceMappingURL=skipSteps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skipSteps.d.ts","sourceRoot":"","sources":["../../../src/types/skipSteps.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;IAC1B,0BAA0B;;IAG1B,oCAAoC;;IAGpC,4BAA4B;;IAG5B,+BAA+B;;IAG/B,2BAA2B;;IAG3B,mCAAmC;;IAGnC,sBAAsB;;IAGtB,6BAA6B;;IAG7B,+BAA+B;;IAG/B,6BAA6B;;IAG7B,6BAA6B;;IAG7B,6CAA6C;;IAG7C,4CAA4C;;IAG5C,kCAAkC;;IAGlC,2EAA2E;;IAG3E,mCAAmC;;IAGnC,uCAAuC;;IAGvC,qBAAqB;;IAGrB,yDAAyD;;IAGzD,qCAAqC;;IAGrC,kCAAkC;;IAGlC,qDAAqD;;IAGrD,2DAA2D;;IAG3D,kCAAkC;;IAGlC,4BAA4B;;IAG5B,qCAAqC;;IAGrC,iCAAiC;;IAGjC,0BAA0B;;IAG1B,iCAAiC;;IAGjC,gCAAgC;;IAGhC,6BAA6B;;IAG7B,4BAA4B;;IAG5B,oCAAoC;;IAGpC,gCAAgC;;IAGhC,6BAA6B;;IAG7B,+BAA+B;;IAG/B,+BAA+B;;IAG/B,8CAA8C;;IAG9C,wBAAwB;;IAGxB,yCAAyC;;CAEhC,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,WAAW,EAAkC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,WAAW,EAW1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,EAI3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,WAAW,EA4BxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC3B,mDAAmD;;IAGnD,2CAA2C;;IAG3C,wDAAwD;;IAGxD,uDAAuD;;CAE9C,CAAC;AAEX;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,WAAW,CAEjE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,OAAO,EAAE,WAAW,EAAE,GAAG,WAAW,EAAE,CAE9E"}
@@ -1,14 +0,0 @@
1
- import { type ExecOptions } from "node:child_process";
2
- export interface ExecResult {
3
- stdout: string;
4
- stderr: string;
5
- }
6
- /**
7
- * Execute a command with idevice tools in PATH
8
- */
9
- export declare function execIDevice(command: string, options?: ExecOptions): Promise<ExecResult>;
10
- /**
11
- * Execute an idevice tool command
12
- */
13
- export declare function runIDeviceTool(toolPath: string, args?: string[], options?: ExecOptions): Promise<ExecResult>;
14
- //# sourceMappingURL=exec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../../src/utils/exec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAM5E,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,CAoBjG;AAED;;GAEG;AACH,wBAAsB,cAAc,CACnC,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,GAAE,WAAgB,GACvB,OAAO,CAAC,UAAU,CAAC,CAGrB"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Get the path to a specific idevice tool
3
- */
4
- export declare function getIDeviceToolPath(toolName: string): string | null;
5
- /**
6
- * Get paths to all required idevice tools
7
- */
8
- export declare function getIDeviceTools(): {
9
- idevice_id: string | null;
10
- ideviceinfo: string | null;
11
- ideviceinstaller: string | null;
12
- idevicepair: string | null;
13
- idevicename: string | null;
14
- idevicedebug: string | null;
15
- iproxy: string | null;
16
- ideviceactivation: string | null;
17
- };
18
- /**
19
- * Get the bin path for PATH environment variable
20
- */
21
- export declare function getIDeviceBinPath(): string;
22
- //# sourceMappingURL=idevicePath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"idevicePath.d.ts","sourceRoot":"","sources":["../../../src/utils/idevicePath.ts"],"names":[],"mappings":"AAgDA;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAUlE;AAED;;GAEG;AACH,wBAAgB,eAAe;;;;;;;;;EAW9B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C"}
@@ -1,19 +0,0 @@
1
- /**
2
- * Check if iOS device communication is available
3
- * (iTunes Apple Mobile Device Service is running)
4
- *
5
- * On Windows, iTunes must be running for device communication to work.
6
- */
7
- export declare function isDeviceCommunicationAvailable(): Promise<boolean>;
8
- /**
9
- * Ensure device communication is available
10
- *
11
- * Checks if iTunes is running and device communication works.
12
- * Throws an error with instructions if not available.
13
- */
14
- export declare function ensureDeviceCommunication(): Promise<void>;
15
- export declare const ensureUsbmuxd: typeof ensureDeviceCommunication;
16
- export declare const startUsbmuxd: () => never;
17
- export declare const stopUsbmuxd: () => void;
18
- export declare const isUsbmuxdRunning: () => boolean;
19
- //# sourceMappingURL=usbmuxd.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usbmuxd.d.ts","sourceRoot":"","sources":["../../../src/utils/usbmuxd.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAsB,8BAA8B,IAAI,OAAO,CAAC,OAAO,CAAC,CAiBvE;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC,CAW/D;AAGD,eAAO,MAAM,aAAa,kCAA4B,CAAC;AACvD,eAAO,MAAM,YAAY,aAA4D,CAAC;AACtF,eAAO,MAAM,WAAW,YAAY,CAAC;AACrC,eAAO,MAAM,gBAAgB,eAAc,CAAC"}
@@ -1,72 +0,0 @@
1
- /**
2
- * WiFi Security Types
3
- */
4
- export declare enum WiFiSecurityType {
5
- /** No security (open network) */
6
- None = "None",
7
- /** WEP security */
8
- WEP = "WEP",
9
- /** WPA/WPA2 Personal */
10
- WPA = "WPA",
11
- /** WPA2/WPA3 Personal */
12
- WPA2 = "WPA2",
13
- /** WPA Enterprise */
14
- WPAEnterprise = "WPA/WPA2 Enterprise",
15
- /** Any security (device will auto-detect) */
16
- Any = "Any"
17
- }
18
- /**
19
- * WiFi configuration options
20
- */
21
- export interface WiFiProfileConfig {
22
- /** WiFi network SSID (network name) */
23
- ssid: string;
24
- /** WiFi password (not required for open networks) */
25
- password?: string;
26
- /** Security type (default: WPA2 if password provided, None otherwise) */
27
- securityType?: WiFiSecurityType;
28
- /** Whether network is hidden (default: false) */
29
- isHidden?: boolean;
30
- /** Auto-join this network (default: true) */
31
- autoJoin?: boolean;
32
- /** Profile display name (default: "WiFi Configuration") */
33
- displayName?: string;
34
- /** Profile description */
35
- description?: string;
36
- /** Organization name */
37
- organizationName?: string;
38
- /** Payload identifier (default: auto-generated) */
39
- payloadIdentifier?: string;
40
- }
41
- /**
42
- * Generate a WiFi configuration profile (.mobileconfig)
43
- *
44
- * This creates an iOS configuration profile that can be installed
45
- * on a device to automatically connect to a WiFi network.
46
- *
47
- * @param config WiFi configuration options
48
- * @returns Profile data as Buffer (XML plist format)
49
- */
50
- export declare function generateWiFiProfile(config: WiFiProfileConfig): Buffer;
51
- /**
52
- * Generate MCE-specific WiFi profile with custom settings
53
- *
54
- * This creates a WiFi profile with MCE-specific identifiers and settings.
55
- *
56
- * @param ssid WiFi network name
57
- * @param password WiFi password
58
- * @param deviceIdentifier Optional device identifier for tracking
59
- * @returns Profile data as Buffer
60
- */
61
- export declare function generateMCEWiFiProfile(ssid: string, password: string, deviceIdentifier?: string): Buffer;
62
- /**
63
- * Generate WiFi profile from simple parameters
64
- *
65
- * Quick helper for common use case.
66
- *
67
- * @param ssid WiFi network name
68
- * @param password WiFi password (optional for open networks)
69
- * @returns Profile data as Buffer
70
- */
71
- export declare function createSimpleWiFiProfile(ssid: string, password?: string): Buffer;
72
- //# sourceMappingURL=wifiProfile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wifiProfile.d.ts","sourceRoot":"","sources":["../../../src/utils/wifiProfile.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,gBAAgB;IAC3B,iCAAiC;IACjC,IAAI,SAAS;IACb,mBAAmB;IACnB,GAAG,QAAQ;IACX,wBAAwB;IACxB,GAAG,QAAQ;IACX,yBAAyB;IACzB,IAAI,SAAS;IACb,qBAAqB;IACrB,aAAa,wBAAwB;IACrC,6CAA6C;IAC7C,GAAG,QAAQ;CACX;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IAEb,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yEAAyE;IACzE,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAEhC,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,wBAAwB;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAqDrE;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,gBAAgB,CAAC,EAAE,MAAM,GACvB,MAAM,CAoBR;AAmED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/E"}