@mcesystems/apple-kit 1.0.45 → 1.0.47

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.
@@ -4,7 +4,7 @@ export declare class ActivationFlow {
4
4
  private readonly mdmClientPromise;
5
5
  private readonly organizationName?;
6
6
  constructor(config: ActivationFlowConfig);
7
- run(udid: string): Promise<void>;
7
+ run(udid: string): Promise<"activated" | "wiped">;
8
8
  private installWifiProfile;
9
9
  private getActivationState;
10
10
  private installMdmProfile;
@@ -1 +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,IAAI,CAAC;YAoB/B,kBAAkB;YAalB,kBAAkB;YAWlB,iBAAiB;YAqBjB,mBAAmB;YA6BnB,gBAAgB;YAQhB,eAAe;YAOf,oBAAoB;YAOpB,KAAK;CAwBnB"}
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"}
@@ -126,7 +126,7 @@ export declare class AppleDeviceKit {
126
126
  *
127
127
  * Precondition: the device must be paired and trusted.
128
128
  */
129
- activate(config: ActivationFlowConfig): Promise<boolean>;
129
+ activate(config: ActivationFlowConfig): Promise<"activated" | "wiped">;
130
130
  /**
131
131
  * Get the device UDID
132
132
  */
@@ -1 +1 @@
1
- {"version":3,"file":"appleDeviceKit.d.ts","sourceRoot":"","sources":["../../../src/logic/appleDeviceKit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,oBAAoB,EACpB,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,MAAM,UAAU,CAAC;AASlB;;;;;;;;;;;GAWG;AACH,qBAAa,cAAc;IAQzB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAP7B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,eAAe,CAAuB;IAC9C,OAAO,CAAC,UAAU,CAAS;gBAG1B,IAAI,EAAE,MAAM,EACK,WAAW,EAAE,MAAM;IAQrC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;OAEG;IACU,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC;IAKpD;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAKzC;;;;;;OAMG;IACU,cAAc,CAAC,OAAO,SAAS,EAAE,YAAY,SAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAKpF;;;OAGG;IACU,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;IAKrC;;;;;;;;;;;;OAYG;IACU,WAAW,CAAC,OAAO,SAAQ,EAAE,iBAAiB,CAAC,EAA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AK/D;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAK3C;;;;;OAKG;IACU,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAK5E;;;;;;;;;;;;;OAaG;IACU,qBAAqB,CACjC,UAAU,EAAE,MAAM,EAClB,cAAc,SAAM,GAClB,OAAO,CAAC,iBAAiB,CAAC;IAsB7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAOxB;;OAEG;IACI,gBAAgB,IAAI,IAAI;IAS/B;;OAEG;IACU,kBAAkB,IAAI,OAAO,CAAC,eAAe,CAAC;IAK3D;;;;;;;;OAQG;IACU,QAAQ,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC;IAMnF;;OAEG;IACI,WAAW,IAAI,MAAM;IAI5B;;OAEG;IACI,cAAc,IAAI,MAAM;IAI/B;;;OAGG;IACI,aAAa,IAAI,MAAM,GAAG,IAAI;IAIrC;;OAEG;IACH,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED;;OAEG;IACH,IAAW,oBAAoB,IAAI,OAAO,CAEzC;IAED;;;;;OAKG;IACI,OAAO,IAAI,IAAI;IAatB;;OAEG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;CAGxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcesystems/apple-kit",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
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,12 +34,12 @@
34
34
  "dependencies": {
35
35
  "debug": "^4.4.3",
36
36
  "get-port": "^7.1.0",
37
- "go-ios": "^1.0.188",
38
37
  "graphql": "^14.5.8",
39
38
  "graphql-request": "^5.2.0",
40
39
  "tsx": "^4.21.0"
41
40
  },
42
41
  "devDependencies": {
42
+ "go-ios": "^1.0.188",
43
43
  "@types/debug": "^4.1.12",
44
44
  "@types/node": "^22.10.2",
45
45
  "cross-env": "^10.1.0",
@@ -53,7 +53,10 @@
53
53
  "dist",
54
54
  "scripts",
55
55
  "prebuilt",
56
- "README.md"
56
+ "README.md",
57
+ "resources/wintun.dll",
58
+ "resources/wintun-LICENSE.txt",
59
+ "resources/ios.exe"
57
60
  ],
58
61
  "bin": {
59
62
  "export-apple-resources": "./scripts/export-resources.ts"
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