@octane-xplat/macos-renderer 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -20
- package/package.json +15 -2
- package/src/appearance.ts +2 -0
- package/src/fonts.ts +2 -0
- package/src/formatted-text.ts +147 -0
- package/src/gestures.ts +196 -0
- package/src/host-globals.d.ts +55 -0
- package/src/html-text.ts +88 -0
- package/src/image.ts +91 -16
- package/src/index.d.ts +9 -0
- package/src/index.ts +5030 -678
- package/src/layer.ts +11 -9
- package/src/list-template.ts +266 -0
- package/src/list-view.ts +445 -0
- package/src/portal-components.macos.tsx +86 -0
- package/src/presentation.ts +48 -15
- package/src/scroll-view.ts +124 -0
- package/src/tab-view.ts +512 -0
- package/src/template-props.ts +402 -0
- package/src/vendor/listview/LICENSE +19 -0
- package/src/vendor/listview/README.md +1 -0
- package/src/vendor/listview/binding-options.ts +189 -0
- package/src/vendor/listview/expressions.ts +285 -0
- package/src/webview.ts +36 -7
- package/types/ARKitCore.d.ts +199 -0
- package/types/AVFAudio.d.ts +2304 -0
- package/types/AVFoundation.d.ts +6974 -0
- package/types/AVKit.d.ts +215 -0
- package/types/AVRouting.d.ts +7 -0
- package/types/Accelerate.d.ts +4776 -0
- package/types/Accessibility.d.ts +69 -0
- package/types/Accounts.d.ts +134 -0
- package/types/AdSupport.d.ts +12 -0
- package/types/AddressBook.d.ts +1012 -0
- package/types/AppKit.d.ts +34247 -0
- package/types/AppTrackingTransparency.d.ts +23 -0
- package/types/AppleScriptKit.d.ts +6 -0
- package/types/ApplicationServices.d.ts +6346 -0
- package/types/AudioToolbox.d.ts +7129 -0
- package/types/AudioVideoBridging.d.ts +613 -0
- package/types/AuthenticationServices.d.ts +982 -0
- package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
- package/types/Automator.d.ts +248 -0
- package/types/BackgroundAssets.d.ts +9 -0
- package/types/BrowserEngineKit.d.ts +166 -0
- package/types/BusinessChat.d.ts +29 -0
- package/types/CFNetwork.d.ts +931 -0
- package/types/CalendarStore.d.ts +354 -0
- package/types/CallKit.d.ts +30 -0
- package/types/Carbon.d.ts +16207 -0
- package/types/ClassKit.d.ts +281 -0
- package/types/CloudKit.d.ts +1565 -0
- package/types/Collaboration.d.ts +123 -0
- package/types/ColorSync.d.ts +562 -0
- package/types/CompositorServices.d.ts +60 -0
- package/types/ComputeGraph.d.ts +16 -0
- package/types/Contacts.d.ts +1558 -0
- package/types/ContactsUI.d.ts +39 -0
- package/types/CoreAudio.d.ts +1376 -0
- package/types/CoreAudioKit.d.ts +122 -0
- package/types/CoreAudioTypes.d.ts +1003 -0
- package/types/CoreBluetooth.d.ts +657 -0
- package/types/CoreData.d.ts +2479 -0
- package/types/CoreFoundation.d.ts +5546 -0
- package/types/CoreGraphics.d.ts +3676 -0
- package/types/CoreHaptics.d.ts +361 -0
- package/types/CoreImage.d.ts +4781 -0
- package/types/CoreLocation.d.ts +564 -0
- package/types/CoreMIDI.d.ts +1538 -0
- package/types/CoreML.d.ts +905 -0
- package/types/CoreMedia.d.ts +2615 -0
- package/types/CoreMediaIO.d.ts +1046 -0
- package/types/CoreMotion.d.ts +316 -0
- package/types/CoreServices.d.ts +24810 -0
- package/types/CoreSpotlight.d.ts +789 -0
- package/types/CoreTelephony.d.ts +31 -0
- package/types/CoreText.d.ts +3973 -0
- package/types/CoreTransferable.d.ts +3 -0
- package/types/CoreVideo.d.ts +1162 -0
- package/types/CoreWLAN.d.ts +556 -0
- package/types/CryptoTokenKit.d.ts +548 -0
- package/types/DVDPlayback.d.ts +931 -0
- package/types/DataDetection.d.ts +66 -0
- package/types/DeviceCheck.d.ts +46 -0
- package/types/DeviceDiscoveryExtension.d.ts +142 -0
- package/types/DirectoryService.d.ts +966 -0
- package/types/DiscRecording.d.ts +2345 -0
- package/types/DiscRecordingUI.d.ts +288 -0
- package/types/DiskArbitration.d.ts +366 -0
- package/types/DriverKit.d.ts +639 -0
- package/types/EventKit.d.ts +640 -0
- package/types/ExceptionHandling.d.ts +56 -0
- package/types/ExecutionPolicy.d.ts +30 -0
- package/types/ExternalAccessory.d.ts +98 -0
- package/types/FSKit.d.ts +237 -0
- package/types/FileProvider.d.ts +495 -0
- package/types/FileProviderUI.d.ts +31 -0
- package/types/FinderSync.d.ts +165 -0
- package/types/FocusEngine.d.ts +133 -0
- package/types/ForceFeedback.d.ts +399 -0
- package/types/Foundation.d.ts +18216 -0
- package/types/GLKit.d.ts +937 -0
- package/types/GLUT.d.ts +1018 -0
- package/types/GSS.d.ts +855 -0
- package/types/GameController.d.ts +1394 -0
- package/types/GameKit.d.ts +1958 -0
- package/types/GameSave.d.ts +54 -0
- package/types/GameplayKit.d.ts +1645 -0
- package/types/HealthKit.d.ts +278 -0
- package/types/Hypervisor.d.ts +2079 -0
- package/types/ICADevices.d.ts +1400 -0
- package/types/IOBluetooth.d.ts +6094 -0
- package/types/IOBluetoothUI.d.ts +250 -0
- package/types/IOKit.d.ts +25804 -0
- package/types/IOSurface.d.ts +435 -0
- package/types/IOUSBHost.d.ts +809 -0
- package/types/ImageCaptureCore.d.ts +1104 -0
- package/types/ImageIO.d.ts +1697 -0
- package/types/InputMethodKit.d.ts +264 -0
- package/types/InstallerPlugins.d.ts +102 -0
- package/types/InstantMessage.d.ts +229 -0
- package/types/Intents.d.ts +1833 -0
- package/types/IntentsUI.d.ts +5 -0
- package/types/JavaRuntimeSupport.d.ts +520 -0
- package/types/JavaScriptCore.d.ts +934 -0
- package/types/Kerberos.d.ts +3754 -0
- package/types/Kernel.d.ts +33698 -0
- package/types/KernelManagement.d.ts +5 -0
- package/types/LatentSemanticMapping.d.ts +152 -0
- package/types/LinkPresentation.d.ts +57 -0
- package/types/LocalAuthentication.d.ts +94 -0
- package/types/MLCompute.d.ts +2343 -0
- package/types/MapKit.d.ts +2125 -0
- package/types/Matter.d.ts +151 -0
- package/types/MediaAccessibility.d.ts +137 -0
- package/types/MediaLibrary.d.ts +394 -0
- package/types/MediaPlayer.d.ts +475 -0
- package/types/MediaToolbox.d.ts +70 -0
- package/types/Metal.d.ts +4542 -0
- package/types/MetalFX.d.ts +107 -0
- package/types/MetalKit.d.ts +524 -0
- package/types/MetalPerformanceShaders.d.ts +9306 -0
- package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
- package/types/MetricKit.d.ts +231 -0
- package/types/ModelIO.d.ts +2908 -0
- package/types/MultipeerConnectivity.d.ts +348 -0
- package/types/NaturalLanguage.d.ts +556 -0
- package/types/NearbyInteraction.d.ts +51 -0
- package/types/NetFS.d.ts +99 -0
- package/types/Network.d.ts +1622 -0
- package/types/NetworkExtension.d.ts +1574 -0
- package/types/NotificationCenter.d.ts +103 -0
- package/types/OSAKit.d.ts +260 -0
- package/types/OSLog.d.ts +208 -0
- package/types/OpenAL.d.ts +314 -0
- package/types/OpenCL.d.ts +2489 -0
- package/types/OpenDirectory.d.ts +1919 -0
- package/types/OpenGL.d.ts +11322 -0
- package/types/PCSC.d.ts +534 -0
- package/types/PDFKit.d.ts +1575 -0
- package/types/PHASE.d.ts +166 -0
- package/types/ParavirtualizedGraphics.d.ts +153 -0
- package/types/PassKit.d.ts +1287 -0
- package/types/PencilKit.d.ts +201 -0
- package/types/Photos.d.ts +1125 -0
- package/types/PhotosUI.d.ts +397 -0
- package/types/PreferencePanes.d.ts +68 -0
- package/types/ProximityReaderStub.d.ts +5 -0
- package/types/PushKit.d.ts +45 -0
- package/types/Quartz.d.ts +1642 -0
- package/types/QuartzCore.d.ts +1398 -0
- package/types/QuickLook.d.ts +212 -0
- package/types/QuickLookThumbnailing.d.ts +131 -0
- package/types/QuickLookUI.d.ts +117 -0
- package/types/REVISION.json +5 -0
- package/types/ReplayKit.d.ts +294 -0
- package/types/Runtime.d.ts +51605 -0
- package/types/SafariServices.d.ts +430 -0
- package/types/SafetyKit.d.ts +7 -0
- package/types/SceneKit.d.ts +4996 -0
- package/types/ScreenCaptureKit.d.ts +16 -0
- package/types/ScreenSaver.d.ts +41 -0
- package/types/ScreenTime.d.ts +41 -0
- package/types/ScriptingBridge.d.ts +96 -0
- package/types/Security.d.ts +14336 -0
- package/types/SecurityFoundation.d.ts +53 -0
- package/types/SecurityInterface.d.ts +297 -0
- package/types/SensorKit.d.ts +7 -0
- package/types/ServiceManagement.d.ts +71 -0
- package/types/SharedWithYou.d.ts +9 -0
- package/types/SharedWithYouCore.d.ts +5 -0
- package/types/ShazamKit.d.ts +12 -0
- package/types/Social.d.ts +306 -0
- package/types/SoundAnalysis.d.ts +177 -0
- package/types/Speech.d.ts +246 -0
- package/types/SpriteKit.d.ts +2766 -0
- package/types/StoreKit.d.ts +509 -0
- package/types/SyncServices.d.ts +551 -0
- package/types/SystemConfiguration.d.ts +1415 -0
- package/types/SystemExtensions.d.ts +89 -0
- package/types/TWAIN.d.ts +380 -0
- package/types/Tcl.d.ts +4013 -0
- package/types/ThreadNetwork.d.ts +77 -0
- package/types/Tk.d.ts +3750 -0
- package/types/UIUtilities.d.ts +31 -0
- package/types/UniformTypeIdentifiers.d.ts +358 -0
- package/types/UserNotifications.d.ts +538 -0
- package/types/UserNotificationsUI.d.ts +38 -0
- package/types/VideoDecodeAcceleration.d.ts +50 -0
- package/types/VideoSubscriberAccount.d.ts +139 -0
- package/types/VideoToolbox.d.ts +907 -0
- package/types/Virtualization.d.ts +302 -0
- package/types/Vision.d.ts +1723 -0
- package/types/WebKit.d.ts +5195 -0
- package/types/WidgetKit.d.ts +9 -0
- package/types/_LocationEssentials.d.ts +159 -0
- package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
- package/types/iTunesLibrary.d.ts +528 -0
- package/types/index.d.ts +9 -0
- package/types/vecLib.d.ts +33586 -0
- package/types/vmnet.d.ts +178 -0
- package/src/appkit.d.ts +0 -472
|
@@ -0,0 +1,1574 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const NEVPNStatusDidChangeNotification: string
|
|
5
|
+
|
|
6
|
+
declare const NEDNSProxyErrorDomain: string
|
|
7
|
+
|
|
8
|
+
declare const NEVPNConfigurationChangeNotification: string
|
|
9
|
+
|
|
10
|
+
declare const NETunnelProviderErrorDomain: string
|
|
11
|
+
|
|
12
|
+
declare const NEVPNErrorDomain: string
|
|
13
|
+
|
|
14
|
+
declare const NEVPNConnectionStartOptionUsername: string
|
|
15
|
+
|
|
16
|
+
declare const NEFilterErrorDomain: string
|
|
17
|
+
|
|
18
|
+
declare const NEVPNConnectionStartOptionPassword: string
|
|
19
|
+
|
|
20
|
+
declare const NEAppProxyErrorDomain: string
|
|
21
|
+
|
|
22
|
+
declare const NEDNSProxyConfigurationDidChangeNotification: string
|
|
23
|
+
|
|
24
|
+
declare const NEDNSSettingsConfigurationDidChangeNotification: string
|
|
25
|
+
|
|
26
|
+
declare const NEDNSSettingsErrorDomain: string
|
|
27
|
+
|
|
28
|
+
declare const NEFilterConfigurationDidChangeNotification: string
|
|
29
|
+
|
|
30
|
+
declare const NWUDPSessionState: {
|
|
31
|
+
Invalid: 0
|
|
32
|
+
Waiting: 1
|
|
33
|
+
Preparing: 2
|
|
34
|
+
Ready: 3
|
|
35
|
+
Failed: 4
|
|
36
|
+
Cancelled: 5
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare const NWPathStatus: {
|
|
40
|
+
Invalid: 0
|
|
41
|
+
Satisfied: 1
|
|
42
|
+
Unsatisfied: 2
|
|
43
|
+
Satisfiable: 3
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare const NEVPNIKEv2DeadPeerDetectionRate: {
|
|
47
|
+
None: 0
|
|
48
|
+
Low: 1
|
|
49
|
+
Medium: 2
|
|
50
|
+
High: 3
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare const NEVPNIKEAuthenticationMethod: {
|
|
54
|
+
None: 0
|
|
55
|
+
Certificate: 1
|
|
56
|
+
SharedSecret: 2
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare const NEVPNStatus: {
|
|
60
|
+
Invalid: 0
|
|
61
|
+
Disconnected: 1
|
|
62
|
+
Connecting: 2
|
|
63
|
+
Connected: 3
|
|
64
|
+
Reasserting: 4
|
|
65
|
+
Disconnecting: 5
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare const NEFilterPacketProviderVerdict: {
|
|
69
|
+
Allow: 0
|
|
70
|
+
Drop: 1
|
|
71
|
+
Delay: 2
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare const NEFilterDataAttribute: {
|
|
75
|
+
NEFilterDataAttributeHasIPHeader: 1
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare const NEFilterReportEvent: {
|
|
79
|
+
NewFlow: 1
|
|
80
|
+
DataDecision: 2
|
|
81
|
+
FlowClosed: 3
|
|
82
|
+
Statistics: 4
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare const NEFilterAction: {
|
|
86
|
+
Invalid: 0
|
|
87
|
+
Allow: 1
|
|
88
|
+
Drop: 2
|
|
89
|
+
Remediate: 3
|
|
90
|
+
FilterData: 4
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare const NEDNSProxyManagerError: {
|
|
94
|
+
Invalid: 1
|
|
95
|
+
Disabled: 2
|
|
96
|
+
Stale: 3
|
|
97
|
+
CannotBeRemoved: 4
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare const NEVPNError: {
|
|
101
|
+
ConfigurationInvalid: 1
|
|
102
|
+
ConfigurationDisabled: 2
|
|
103
|
+
ConnectionFailed: 3
|
|
104
|
+
ConfigurationStale: 4
|
|
105
|
+
ConfigurationReadWriteFailed: 5
|
|
106
|
+
ConfigurationUnknown: 6
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare const NETunnelProviderError: {
|
|
110
|
+
Invalid: 1
|
|
111
|
+
Canceled: 2
|
|
112
|
+
Failed: 3
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare const NEAppProxyFlowError: {
|
|
116
|
+
NotConnected: 1
|
|
117
|
+
PeerReset: 2
|
|
118
|
+
HostUnreachable: 3
|
|
119
|
+
InvalidArgument: 4
|
|
120
|
+
Aborted: 5
|
|
121
|
+
Refused: 6
|
|
122
|
+
TimedOut: 7
|
|
123
|
+
Internal: 8
|
|
124
|
+
DatagramTooLarge: 9
|
|
125
|
+
ReadAlreadyPending: 10
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare const NEEvaluateConnectionRuleAction: {
|
|
129
|
+
ConnectIfNeeded: 1
|
|
130
|
+
NeverConnect: 2
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
declare const NENetworkRuleProtocol: {
|
|
134
|
+
Any: 0
|
|
135
|
+
TCP: 1
|
|
136
|
+
UDP: 2
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
declare const NETunnelProviderRoutingMethod: {
|
|
140
|
+
DestinationIP: 1
|
|
141
|
+
SourceApplication: 2
|
|
142
|
+
NetworkRule: 3
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
declare const NEVPNIKEv2EncryptionAlgorithm: {
|
|
146
|
+
AlgorithmDES: 1
|
|
147
|
+
Algorithm3DES: 2
|
|
148
|
+
AlgorithmAES128: 3
|
|
149
|
+
AlgorithmAES256: 4
|
|
150
|
+
AlgorithmAES128GCM: 5
|
|
151
|
+
AlgorithmAES256GCM: 6
|
|
152
|
+
AlgorithmChaCha20Poly1305: 7
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
declare const NEFilterManagerError: {
|
|
156
|
+
Invalid: 1
|
|
157
|
+
Disabled: 2
|
|
158
|
+
Stale: 3
|
|
159
|
+
CannotBeRemoved: 4
|
|
160
|
+
PermissionDenied: 5
|
|
161
|
+
InternalError: 6
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare const NEVPNIKEv2DiffieHellmanGroup: {
|
|
165
|
+
GroupInvalid: 0
|
|
166
|
+
Group1: 1
|
|
167
|
+
Group2: 2
|
|
168
|
+
Group5: 5
|
|
169
|
+
Group14: 14
|
|
170
|
+
Group15: 15
|
|
171
|
+
Group16: 16
|
|
172
|
+
Group17: 17
|
|
173
|
+
Group18: 18
|
|
174
|
+
Group19: 19
|
|
175
|
+
Group20: 20
|
|
176
|
+
Group21: 21
|
|
177
|
+
Group31: 31
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
declare const NEOnDemandRuleInterfaceType: {
|
|
181
|
+
Any: 0
|
|
182
|
+
Ethernet: 1
|
|
183
|
+
WiFi: 2
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare const NEOnDemandRuleAction: {
|
|
187
|
+
Connect: 1
|
|
188
|
+
Disconnect: 2
|
|
189
|
+
EvaluateConnection: 3
|
|
190
|
+
Ignore: 4
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare const NEProviderStopReason: {
|
|
194
|
+
None: 0
|
|
195
|
+
UserInitiated: 1
|
|
196
|
+
ProviderFailed: 2
|
|
197
|
+
NoNetworkAvailable: 3
|
|
198
|
+
UnrecoverableNetworkChange: 4
|
|
199
|
+
ProviderDisabled: 5
|
|
200
|
+
AuthenticationCanceled: 6
|
|
201
|
+
ConfigurationFailed: 7
|
|
202
|
+
IdleTimeout: 8
|
|
203
|
+
ConfigurationDisabled: 9
|
|
204
|
+
ConfigurationRemoved: 10
|
|
205
|
+
Superceded: 11
|
|
206
|
+
UserLogout: 12
|
|
207
|
+
UserSwitch: 13
|
|
208
|
+
ConnectionFailed: 14
|
|
209
|
+
Sleep: 15
|
|
210
|
+
AppUpdate: 16
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare const NEVPNIKEv2TLSVersion: {
|
|
214
|
+
VersionDefault: 0
|
|
215
|
+
Version1_0: 1
|
|
216
|
+
Version1_1: 2
|
|
217
|
+
Version1_2: 3
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
declare const NEVPNIKEv2CertificateType: {
|
|
221
|
+
RSA: 1
|
|
222
|
+
ECDSA256: 2
|
|
223
|
+
ECDSA384: 3
|
|
224
|
+
ECDSA521: 4
|
|
225
|
+
Ed25519: 5
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
declare const NEFilterManagerGrade: {
|
|
229
|
+
Firewall: 1
|
|
230
|
+
Inspector: 2
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
declare const NETrafficDirection: {
|
|
234
|
+
Any: 0
|
|
235
|
+
Inbound: 1
|
|
236
|
+
Outbound: 2
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare const NEFilterReportFrequency: {
|
|
240
|
+
None: 0
|
|
241
|
+
Low: 1
|
|
242
|
+
Medium: 2
|
|
243
|
+
High: 3
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
declare const NEVPNIKEv2IntegrityAlgorithm: {
|
|
247
|
+
A96: 1
|
|
248
|
+
A160: 2
|
|
249
|
+
A256: 3
|
|
250
|
+
A384: 4
|
|
251
|
+
A512: 5
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
declare const NEDNSProtocol: {
|
|
255
|
+
Cleartext: 1
|
|
256
|
+
TLS: 2
|
|
257
|
+
HTTPS: 3
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
declare const NEDNSSettingsManagerError: {
|
|
261
|
+
Invalid: 1
|
|
262
|
+
Disabled: 2
|
|
263
|
+
Stale: 3
|
|
264
|
+
CannotBeRemoved: 4
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
declare const NWTCPConnectionState: {
|
|
268
|
+
Invalid: 0
|
|
269
|
+
Connecting: 1
|
|
270
|
+
Waiting: 2
|
|
271
|
+
Connected: 3
|
|
272
|
+
Disconnected: 4
|
|
273
|
+
Cancelled: 5
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
declare interface NWTCPConnectionAuthenticationDelegate extends NSObjectProtocol {
|
|
277
|
+
shouldProvideIdentityForConnection?(connection: NWTCPConnection): boolean
|
|
278
|
+
|
|
279
|
+
provideIdentityForConnectionCompletionHandler?(
|
|
280
|
+
connection: NWTCPConnection,
|
|
281
|
+
completion: (
|
|
282
|
+
p1: interop.PointerConvertible,
|
|
283
|
+
p2: NSArray<interop.Object> | Array<interop.Object>,
|
|
284
|
+
) => void,
|
|
285
|
+
): void
|
|
286
|
+
|
|
287
|
+
shouldEvaluateTrustForConnection?(connection: NWTCPConnection): boolean
|
|
288
|
+
|
|
289
|
+
evaluateTrustForConnectionPeerCertificateChainCompletionHandler?(
|
|
290
|
+
connection: NWTCPConnection,
|
|
291
|
+
peerCertificateChain: NSArray<interop.Object> | Array<interop.Object>,
|
|
292
|
+
completion: (p1: interop.PointerConvertible) => void,
|
|
293
|
+
): void
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
declare class NWTCPConnectionAuthenticationDelegate
|
|
297
|
+
extends NativeObject
|
|
298
|
+
implements NWTCPConnectionAuthenticationDelegate {}
|
|
299
|
+
|
|
300
|
+
declare class NWUDPSession extends NSObject {
|
|
301
|
+
initWithUpgradeForSession(session: NWUDPSession): this
|
|
302
|
+
|
|
303
|
+
readonly state: interop.Enum<typeof NWUDPSessionState>
|
|
304
|
+
|
|
305
|
+
readonly endpoint: NWEndpoint
|
|
306
|
+
|
|
307
|
+
readonly resolvedEndpoint: NWEndpoint
|
|
308
|
+
|
|
309
|
+
readonly viable: boolean
|
|
310
|
+
|
|
311
|
+
readonly hasBetterPath: boolean
|
|
312
|
+
|
|
313
|
+
readonly currentPath: NWPath
|
|
314
|
+
|
|
315
|
+
tryNextResolvedEndpoint(): void
|
|
316
|
+
|
|
317
|
+
readonly maximumDatagramLength: number
|
|
318
|
+
|
|
319
|
+
setReadHandlerMaxDatagrams(
|
|
320
|
+
handler: (p1: NSArray<interop.Object> | Array<interop.Object>, p2: NSError) => void | null,
|
|
321
|
+
maxDatagrams: number,
|
|
322
|
+
): void
|
|
323
|
+
|
|
324
|
+
writeMultipleDatagramsCompletionHandler(
|
|
325
|
+
datagramArray: NSArray<interop.Object> | Array<interop.Object>,
|
|
326
|
+
completionHandler: (p1: NSError) => void | null,
|
|
327
|
+
): void
|
|
328
|
+
|
|
329
|
+
writeDatagramCompletionHandler(
|
|
330
|
+
datagram: NSData,
|
|
331
|
+
completionHandler: (p1: NSError) => void | null,
|
|
332
|
+
): void
|
|
333
|
+
|
|
334
|
+
cancel(): void
|
|
335
|
+
|
|
336
|
+
isViable(): boolean
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
declare class NWTCPConnection extends NSObject {
|
|
340
|
+
initWithUpgradeForConnection(connection: NWTCPConnection): this
|
|
341
|
+
|
|
342
|
+
readonly state: interop.Enum<typeof NWTCPConnectionState>
|
|
343
|
+
|
|
344
|
+
readonly viable: boolean
|
|
345
|
+
|
|
346
|
+
readonly hasBetterPath: boolean
|
|
347
|
+
|
|
348
|
+
readonly endpoint: NWEndpoint
|
|
349
|
+
|
|
350
|
+
readonly connectedPath: NWPath
|
|
351
|
+
|
|
352
|
+
readonly localAddress: NWEndpoint
|
|
353
|
+
|
|
354
|
+
readonly remoteAddress: NWEndpoint
|
|
355
|
+
|
|
356
|
+
readonly txtRecord: NSData
|
|
357
|
+
|
|
358
|
+
readonly error: NSError
|
|
359
|
+
|
|
360
|
+
cancel(): void
|
|
361
|
+
|
|
362
|
+
readLengthCompletionHandler(
|
|
363
|
+
length: number,
|
|
364
|
+
completion: (p1: NSData, p2: NSError) => void | null,
|
|
365
|
+
): void
|
|
366
|
+
|
|
367
|
+
readMinimumLengthMaximumLengthCompletionHandler(
|
|
368
|
+
minimum: number,
|
|
369
|
+
maximum: number,
|
|
370
|
+
completion: (p1: NSData, p2: NSError) => void | null,
|
|
371
|
+
): void
|
|
372
|
+
|
|
373
|
+
writeCompletionHandler(data: NSData, completion: (p1: NSError) => void | null): void
|
|
374
|
+
|
|
375
|
+
writeClose(): void
|
|
376
|
+
|
|
377
|
+
isViable(): boolean
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
declare class NEVPNIKEv2SecurityAssociationParameters
|
|
381
|
+
extends NSObject
|
|
382
|
+
implements NSSecureCoding, NSCopying
|
|
383
|
+
{
|
|
384
|
+
encryptionAlgorithm: interop.Enum<typeof NEVPNIKEv2EncryptionAlgorithm>
|
|
385
|
+
|
|
386
|
+
integrityAlgorithm: interop.Enum<typeof NEVPNIKEv2IntegrityAlgorithm>
|
|
387
|
+
|
|
388
|
+
diffieHellmanGroup: interop.Enum<typeof NEVPNIKEv2DiffieHellmanGroup>
|
|
389
|
+
|
|
390
|
+
lifetimeMinutes: number
|
|
391
|
+
|
|
392
|
+
static readonly supportsSecureCoding: boolean
|
|
393
|
+
|
|
394
|
+
encodeWithCoder(coder: NSCoder): void
|
|
395
|
+
|
|
396
|
+
initWithCoder(coder: NSCoder): this
|
|
397
|
+
|
|
398
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
declare class NEVPNProtocolIPSec extends NEVPNProtocol {
|
|
402
|
+
authenticationMethod: interop.Enum<typeof NEVPNIKEAuthenticationMethod>
|
|
403
|
+
|
|
404
|
+
useExtendedAuthentication: boolean
|
|
405
|
+
|
|
406
|
+
sharedSecretReference: NSData
|
|
407
|
+
|
|
408
|
+
localIdentifier: string
|
|
409
|
+
|
|
410
|
+
remoteIdentifier: string
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
declare class NETransparentProxyProvider extends NEAppProxyProvider {}
|
|
414
|
+
|
|
415
|
+
declare class NETransparentProxyNetworkSettings extends NETunnelNetworkSettings {
|
|
416
|
+
get includedNetworkRules(): NSArray
|
|
417
|
+
set includedNetworkRules(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
418
|
+
|
|
419
|
+
get excludedNetworkRules(): NSArray
|
|
420
|
+
set excludedNetworkRules(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
declare class NEEvaluateConnectionRule extends NSObject implements NSSecureCoding, NSCopying {
|
|
424
|
+
initWithMatchDomainsAndAction(
|
|
425
|
+
domains: NSArray<interop.Object> | Array<interop.Object>,
|
|
426
|
+
action: interop.Enum<typeof NEEvaluateConnectionRuleAction>,
|
|
427
|
+
): this
|
|
428
|
+
|
|
429
|
+
readonly action: interop.Enum<typeof NEEvaluateConnectionRuleAction>
|
|
430
|
+
|
|
431
|
+
readonly matchDomains: NSArray
|
|
432
|
+
|
|
433
|
+
get useDNSServers(): NSArray
|
|
434
|
+
set useDNSServers(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
435
|
+
|
|
436
|
+
probeURL: NSURL
|
|
437
|
+
|
|
438
|
+
static readonly supportsSecureCoding: boolean
|
|
439
|
+
|
|
440
|
+
encodeWithCoder(coder: NSCoder): void
|
|
441
|
+
|
|
442
|
+
initWithCoder(coder: NSCoder): this
|
|
443
|
+
|
|
444
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
declare class NEOnDemandRuleEvaluateConnection extends NEOnDemandRule {
|
|
448
|
+
get connectionRules(): NSArray
|
|
449
|
+
set connectionRules(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare class NEOnDemandRuleIgnore extends NEOnDemandRule {}
|
|
453
|
+
|
|
454
|
+
declare class NEOnDemandRuleDisconnect extends NEOnDemandRule {}
|
|
455
|
+
|
|
456
|
+
declare class NEPacketTunnelProvider extends NETunnelProvider {
|
|
457
|
+
startTunnelWithOptionsCompletionHandler(
|
|
458
|
+
options:
|
|
459
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
460
|
+
| Record<interop.Object, interop.Object>
|
|
461
|
+
| null,
|
|
462
|
+
completionHandler: (p1: NSError) => void | null,
|
|
463
|
+
): void
|
|
464
|
+
|
|
465
|
+
stopTunnelWithReasonCompletionHandler(
|
|
466
|
+
reason: interop.Enum<typeof NEProviderStopReason>,
|
|
467
|
+
completionHandler: () => void,
|
|
468
|
+
): void
|
|
469
|
+
|
|
470
|
+
cancelTunnelWithError(error: NSError | null): void
|
|
471
|
+
|
|
472
|
+
readonly packetFlow: NEPacketTunnelFlow
|
|
473
|
+
|
|
474
|
+
createTCPConnectionThroughTunnelToEndpointEnableTLSTLSParametersDelegate(
|
|
475
|
+
remoteEndpoint: NWEndpoint,
|
|
476
|
+
enableTLS: boolean,
|
|
477
|
+
TLSParameters: NWTLSParameters | null,
|
|
478
|
+
delegate: interop.Object | null,
|
|
479
|
+
): NWTCPConnection
|
|
480
|
+
|
|
481
|
+
createUDPSessionThroughTunnelToEndpointFromEndpoint(
|
|
482
|
+
remoteEndpoint: NWEndpoint,
|
|
483
|
+
localEndpoint: NWHostEndpoint | null,
|
|
484
|
+
): NWUDPSession
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
declare class NEIPv6Route extends NSObject implements NSSecureCoding, NSCopying {
|
|
488
|
+
initWithDestinationAddressNetworkPrefixLength(
|
|
489
|
+
address: string,
|
|
490
|
+
networkPrefixLength: NSNumber,
|
|
491
|
+
): this
|
|
492
|
+
|
|
493
|
+
readonly destinationAddress: string
|
|
494
|
+
|
|
495
|
+
readonly destinationNetworkPrefixLength: NSNumber
|
|
496
|
+
|
|
497
|
+
gatewayAddress: string
|
|
498
|
+
|
|
499
|
+
static defaultRoute(): NEIPv6Route
|
|
500
|
+
|
|
501
|
+
static readonly supportsSecureCoding: boolean
|
|
502
|
+
|
|
503
|
+
encodeWithCoder(coder: NSCoder): void
|
|
504
|
+
|
|
505
|
+
initWithCoder(coder: NSCoder): this
|
|
506
|
+
|
|
507
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
declare class NEIPv4Route extends NSObject implements NSSecureCoding, NSCopying {
|
|
511
|
+
initWithDestinationAddressSubnetMask(address: string, subnetMask: string): this
|
|
512
|
+
|
|
513
|
+
readonly destinationAddress: string
|
|
514
|
+
|
|
515
|
+
readonly destinationSubnetMask: string
|
|
516
|
+
|
|
517
|
+
gatewayAddress: string
|
|
518
|
+
|
|
519
|
+
static defaultRoute(): NEIPv4Route
|
|
520
|
+
|
|
521
|
+
static readonly supportsSecureCoding: boolean
|
|
522
|
+
|
|
523
|
+
encodeWithCoder(coder: NSCoder): void
|
|
524
|
+
|
|
525
|
+
initWithCoder(coder: NSCoder): this
|
|
526
|
+
|
|
527
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
declare class NEFilterRule extends NSObject implements NSSecureCoding, NSCopying {
|
|
531
|
+
initWithNetworkRuleAction(
|
|
532
|
+
networkRule: NENetworkRule,
|
|
533
|
+
action: interop.Enum<typeof NEFilterAction>,
|
|
534
|
+
): this
|
|
535
|
+
|
|
536
|
+
readonly networkRule: NENetworkRule
|
|
537
|
+
|
|
538
|
+
readonly action: interop.Enum<typeof NEFilterAction>
|
|
539
|
+
|
|
540
|
+
static readonly supportsSecureCoding: boolean
|
|
541
|
+
|
|
542
|
+
encodeWithCoder(coder: NSCoder): void
|
|
543
|
+
|
|
544
|
+
initWithCoder(coder: NSCoder): this
|
|
545
|
+
|
|
546
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
declare class NEFilterDataProvider extends NEFilterProvider {
|
|
550
|
+
handleNewFlow(flow: NEFilterFlow): NEFilterNewFlowVerdict
|
|
551
|
+
|
|
552
|
+
handleInboundDataFromFlowReadBytesStartOffsetReadBytes(
|
|
553
|
+
flow: NEFilterFlow,
|
|
554
|
+
offset: number,
|
|
555
|
+
readBytes: NSData,
|
|
556
|
+
): NEFilterDataVerdict
|
|
557
|
+
|
|
558
|
+
handleOutboundDataFromFlowReadBytesStartOffsetReadBytes(
|
|
559
|
+
flow: NEFilterFlow,
|
|
560
|
+
offset: number,
|
|
561
|
+
readBytes: NSData,
|
|
562
|
+
): NEFilterDataVerdict
|
|
563
|
+
|
|
564
|
+
handleInboundDataCompleteForFlow(flow: NEFilterFlow): NEFilterDataVerdict
|
|
565
|
+
|
|
566
|
+
handleOutboundDataCompleteForFlow(flow: NEFilterFlow): NEFilterDataVerdict
|
|
567
|
+
|
|
568
|
+
applySettingsCompletionHandler(
|
|
569
|
+
settings: NEFilterSettings | null,
|
|
570
|
+
completionHandler: (p1: NSError) => void | null,
|
|
571
|
+
): void
|
|
572
|
+
|
|
573
|
+
resumeFlowWithVerdict(flow: NEFilterFlow, verdict: NEFilterVerdict): void
|
|
574
|
+
|
|
575
|
+
updateFlowUsingVerdictForDirection(
|
|
576
|
+
flow: NEFilterSocketFlow,
|
|
577
|
+
verdict: NEFilterDataVerdict,
|
|
578
|
+
direction: interop.Enum<typeof NETrafficDirection>,
|
|
579
|
+
): void
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
declare class NEFilterVerdict extends NSObject implements NSSecureCoding, NSCopying {
|
|
583
|
+
shouldReport: boolean
|
|
584
|
+
|
|
585
|
+
static readonly supportsSecureCoding: boolean
|
|
586
|
+
|
|
587
|
+
encodeWithCoder(coder: NSCoder): void
|
|
588
|
+
|
|
589
|
+
initWithCoder(coder: NSCoder): this
|
|
590
|
+
|
|
591
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
declare class NEFilterProvider extends NEProvider {
|
|
595
|
+
startFilterWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
596
|
+
|
|
597
|
+
stopFilterWithReasonCompletionHandler(
|
|
598
|
+
reason: interop.Enum<typeof NEProviderStopReason>,
|
|
599
|
+
completionHandler: () => void,
|
|
600
|
+
): void
|
|
601
|
+
|
|
602
|
+
readonly filterConfiguration: NEFilterProviderConfiguration
|
|
603
|
+
|
|
604
|
+
handleReport(report: NEFilterReport): void
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
declare class NEFilterSocketFlow extends NEFilterFlow implements NSSecureCoding, NSCopying {
|
|
608
|
+
readonly remoteEndpoint: NWEndpoint
|
|
609
|
+
|
|
610
|
+
readonly remoteHostname: string
|
|
611
|
+
|
|
612
|
+
readonly localEndpoint: NWEndpoint
|
|
613
|
+
|
|
614
|
+
readonly socketFamily: number
|
|
615
|
+
|
|
616
|
+
readonly socketType: number
|
|
617
|
+
|
|
618
|
+
readonly socketProtocol: number
|
|
619
|
+
|
|
620
|
+
static readonly supportsSecureCoding: boolean
|
|
621
|
+
|
|
622
|
+
encodeWithCoder(coder: NSCoder): void
|
|
623
|
+
|
|
624
|
+
initWithCoder(coder: NSCoder): this
|
|
625
|
+
|
|
626
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
declare class NEFilterFlow extends NSObject implements NSSecureCoding, NSCopying {
|
|
630
|
+
readonly URL: NSURL
|
|
631
|
+
|
|
632
|
+
readonly direction: interop.Enum<typeof NETrafficDirection>
|
|
633
|
+
|
|
634
|
+
readonly sourceAppAuditToken: NSData
|
|
635
|
+
|
|
636
|
+
readonly identifier: NSUUID
|
|
637
|
+
|
|
638
|
+
static readonly supportsSecureCoding: boolean
|
|
639
|
+
|
|
640
|
+
encodeWithCoder(coder: NSCoder): void
|
|
641
|
+
|
|
642
|
+
initWithCoder(coder: NSCoder): this
|
|
643
|
+
|
|
644
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
declare class NENetworkRule extends NSObject implements NSSecureCoding, NSCopying {
|
|
648
|
+
initWithDestinationNetworkPrefixProtocol(
|
|
649
|
+
networkEndpoint: NWHostEndpoint,
|
|
650
|
+
destinationPrefix: number,
|
|
651
|
+
protocol: interop.Enum<typeof NENetworkRuleProtocol>,
|
|
652
|
+
): this
|
|
653
|
+
|
|
654
|
+
initWithDestinationHostProtocol(
|
|
655
|
+
hostEndpoint: NWHostEndpoint,
|
|
656
|
+
protocol: interop.Enum<typeof NENetworkRuleProtocol>,
|
|
657
|
+
): this
|
|
658
|
+
|
|
659
|
+
initWithRemoteNetworkRemotePrefixLocalNetworkLocalPrefixProtocolDirection(
|
|
660
|
+
remoteNetwork: NWHostEndpoint | null,
|
|
661
|
+
remotePrefix: number,
|
|
662
|
+
localNetwork: NWHostEndpoint | null,
|
|
663
|
+
localPrefix: number,
|
|
664
|
+
protocol: interop.Enum<typeof NENetworkRuleProtocol>,
|
|
665
|
+
direction: interop.Enum<typeof NETrafficDirection>,
|
|
666
|
+
): this
|
|
667
|
+
|
|
668
|
+
readonly matchRemoteEndpoint: NWHostEndpoint
|
|
669
|
+
|
|
670
|
+
readonly matchRemotePrefix: number
|
|
671
|
+
|
|
672
|
+
readonly matchLocalNetwork: NWHostEndpoint
|
|
673
|
+
|
|
674
|
+
readonly matchLocalPrefix: number
|
|
675
|
+
|
|
676
|
+
readonly matchProtocol: interop.Enum<typeof NENetworkRuleProtocol>
|
|
677
|
+
|
|
678
|
+
readonly matchDirection: interop.Enum<typeof NETrafficDirection>
|
|
679
|
+
|
|
680
|
+
static readonly supportsSecureCoding: boolean
|
|
681
|
+
|
|
682
|
+
encodeWithCoder(coder: NSCoder): void
|
|
683
|
+
|
|
684
|
+
initWithCoder(coder: NSCoder): this
|
|
685
|
+
|
|
686
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
declare class NEDNSOverHTTPSSettings extends NEDNSSettings {
|
|
690
|
+
serverURL: NSURL
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
declare class NEProxySettings extends NSObject implements NSSecureCoding, NSCopying {
|
|
694
|
+
autoProxyConfigurationEnabled: boolean
|
|
695
|
+
|
|
696
|
+
proxyAutoConfigurationURL: NSURL
|
|
697
|
+
|
|
698
|
+
proxyAutoConfigurationJavaScript: string
|
|
699
|
+
|
|
700
|
+
HTTPEnabled: boolean
|
|
701
|
+
|
|
702
|
+
HTTPServer: NEProxyServer
|
|
703
|
+
|
|
704
|
+
HTTPSEnabled: boolean
|
|
705
|
+
|
|
706
|
+
HTTPSServer: NEProxyServer
|
|
707
|
+
|
|
708
|
+
excludeSimpleHostnames: boolean
|
|
709
|
+
|
|
710
|
+
get exceptionList(): NSArray
|
|
711
|
+
set exceptionList(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
712
|
+
|
|
713
|
+
get matchDomains(): NSArray
|
|
714
|
+
set matchDomains(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
715
|
+
|
|
716
|
+
static readonly supportsSecureCoding: boolean
|
|
717
|
+
|
|
718
|
+
encodeWithCoder(coder: NSCoder): void
|
|
719
|
+
|
|
720
|
+
initWithCoder(coder: NSCoder): this
|
|
721
|
+
|
|
722
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
declare class NEProxyServer extends NSObject implements NSSecureCoding, NSCopying {
|
|
726
|
+
initWithAddressPort(address: string, port: number): this
|
|
727
|
+
|
|
728
|
+
readonly address: string
|
|
729
|
+
|
|
730
|
+
readonly port: number
|
|
731
|
+
|
|
732
|
+
authenticationRequired: boolean
|
|
733
|
+
|
|
734
|
+
username: string
|
|
735
|
+
|
|
736
|
+
password: string
|
|
737
|
+
|
|
738
|
+
static readonly supportsSecureCoding: boolean
|
|
739
|
+
|
|
740
|
+
encodeWithCoder(coder: NSCoder): void
|
|
741
|
+
|
|
742
|
+
initWithCoder(coder: NSCoder): this
|
|
743
|
+
|
|
744
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
declare class NEDNSProxyProvider extends NEProvider {
|
|
748
|
+
startProxyWithOptionsCompletionHandler(
|
|
749
|
+
options:
|
|
750
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
751
|
+
| Record<interop.Object, interop.Object>
|
|
752
|
+
| null,
|
|
753
|
+
completionHandler: (p1: NSError) => void | null,
|
|
754
|
+
): void
|
|
755
|
+
|
|
756
|
+
stopProxyWithReasonCompletionHandler(
|
|
757
|
+
reason: interop.Enum<typeof NEProviderStopReason>,
|
|
758
|
+
completionHandler: () => void,
|
|
759
|
+
): void
|
|
760
|
+
|
|
761
|
+
cancelProxyWithError(error: NSError | null): void
|
|
762
|
+
|
|
763
|
+
handleNewFlow(flow: NEAppProxyFlow): boolean
|
|
764
|
+
|
|
765
|
+
handleNewUDPFlowInitialRemoteEndpoint(
|
|
766
|
+
flow: NEAppProxyUDPFlow,
|
|
767
|
+
remoteEndpoint: NWEndpoint,
|
|
768
|
+
): boolean
|
|
769
|
+
|
|
770
|
+
readonly systemDNSSettings: NSArray
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
declare class NEAppRule extends NSObject implements NSSecureCoding, NSCopying {
|
|
774
|
+
initWithSigningIdentifierDesignatedRequirement(
|
|
775
|
+
signingIdentifier: string,
|
|
776
|
+
designatedRequirement: string,
|
|
777
|
+
): this
|
|
778
|
+
|
|
779
|
+
readonly matchSigningIdentifier: string
|
|
780
|
+
|
|
781
|
+
readonly matchDesignatedRequirement: string
|
|
782
|
+
|
|
783
|
+
matchPath: string
|
|
784
|
+
|
|
785
|
+
get matchDomains(): NSArray
|
|
786
|
+
set matchDomains(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
787
|
+
|
|
788
|
+
get matchTools(): NSArray
|
|
789
|
+
set matchTools(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
790
|
+
|
|
791
|
+
static readonly supportsSecureCoding: boolean
|
|
792
|
+
|
|
793
|
+
encodeWithCoder(coder: NSCoder): void
|
|
794
|
+
|
|
795
|
+
initWithCoder(coder: NSCoder): this
|
|
796
|
+
|
|
797
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
declare class NEAppProxyUDPFlow extends NEAppProxyFlow {
|
|
801
|
+
readDatagramsWithCompletionHandler(
|
|
802
|
+
completionHandler: (
|
|
803
|
+
p1: NSArray<interop.Object> | Array<interop.Object>,
|
|
804
|
+
p2: NSArray<interop.Object> | Array<interop.Object>,
|
|
805
|
+
p3: NSError,
|
|
806
|
+
) => void | null,
|
|
807
|
+
): void
|
|
808
|
+
|
|
809
|
+
writeDatagramsSentByEndpointsCompletionHandler(
|
|
810
|
+
datagrams: NSArray<interop.Object> | Array<interop.Object>,
|
|
811
|
+
remoteEndpoints: NSArray<interop.Object> | Array<interop.Object>,
|
|
812
|
+
completionHandler: (p1: NSError) => void | null,
|
|
813
|
+
): void
|
|
814
|
+
|
|
815
|
+
readonly localEndpoint: NWEndpoint
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
declare class NEAppProxyProviderManager extends NETunnelProviderManager {
|
|
819
|
+
static loadAllFromPreferencesWithCompletionHandler(
|
|
820
|
+
completionHandler: (
|
|
821
|
+
p1: NSArray<interop.Object> | Array<interop.Object>,
|
|
822
|
+
p2: NSError,
|
|
823
|
+
) => void | null,
|
|
824
|
+
): void
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
declare class NETunnelProviderManager extends NEVPNManager {
|
|
828
|
+
static loadAllFromPreferencesWithCompletionHandler(
|
|
829
|
+
completionHandler: (
|
|
830
|
+
p1: NSArray<interop.Object> | Array<interop.Object>,
|
|
831
|
+
p2: NSError,
|
|
832
|
+
) => void | null,
|
|
833
|
+
): void
|
|
834
|
+
|
|
835
|
+
static forPerAppVPN<This extends abstract new (...args: any) => any>(
|
|
836
|
+
this: This,
|
|
837
|
+
): InstanceType<This>
|
|
838
|
+
|
|
839
|
+
copyAppRules(): NSArray
|
|
840
|
+
|
|
841
|
+
readonly routingMethod: interop.Enum<typeof NETunnelProviderRoutingMethod>
|
|
842
|
+
|
|
843
|
+
get safariDomains(): NSArray
|
|
844
|
+
set safariDomains(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
845
|
+
|
|
846
|
+
get mailDomains(): NSArray
|
|
847
|
+
set mailDomains(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
848
|
+
|
|
849
|
+
get calendarDomains(): NSArray
|
|
850
|
+
set calendarDomains(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
851
|
+
|
|
852
|
+
get contactsDomains(): NSArray
|
|
853
|
+
set contactsDomains(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
854
|
+
|
|
855
|
+
get appRules(): NSArray
|
|
856
|
+
set appRules(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
857
|
+
|
|
858
|
+
get excludedDomains(): NSArray
|
|
859
|
+
set excludedDomains(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
860
|
+
|
|
861
|
+
get associatedDomains(): NSArray
|
|
862
|
+
set associatedDomains(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
declare class NEAppProxyProvider extends NETunnelProvider {
|
|
866
|
+
startProxyWithOptionsCompletionHandler(
|
|
867
|
+
options:
|
|
868
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
869
|
+
| Record<interop.Object, interop.Object>
|
|
870
|
+
| null,
|
|
871
|
+
completionHandler: (p1: NSError) => void | null,
|
|
872
|
+
): void
|
|
873
|
+
|
|
874
|
+
stopProxyWithReasonCompletionHandler(
|
|
875
|
+
reason: interop.Enum<typeof NEProviderStopReason>,
|
|
876
|
+
completionHandler: () => void,
|
|
877
|
+
): void
|
|
878
|
+
|
|
879
|
+
cancelProxyWithError(error: NSError | null): void
|
|
880
|
+
|
|
881
|
+
handleNewFlow(flow: NEAppProxyFlow): boolean
|
|
882
|
+
|
|
883
|
+
handleNewUDPFlowInitialRemoteEndpoint(
|
|
884
|
+
flow: NEAppProxyUDPFlow,
|
|
885
|
+
remoteEndpoint: NWEndpoint,
|
|
886
|
+
): boolean
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
declare class NETunnelProvider extends NEProvider {
|
|
890
|
+
handleAppMessageCompletionHandler(
|
|
891
|
+
messageData: NSData,
|
|
892
|
+
completionHandler: (p1: NSData) => void | null,
|
|
893
|
+
): void
|
|
894
|
+
|
|
895
|
+
setTunnelNetworkSettingsCompletionHandler(
|
|
896
|
+
tunnelNetworkSettings: NETunnelNetworkSettings | null,
|
|
897
|
+
completionHandler: (p1: NSError) => void | null,
|
|
898
|
+
): void
|
|
899
|
+
|
|
900
|
+
readonly protocolConfiguration: NEVPNProtocol
|
|
901
|
+
|
|
902
|
+
readonly appRules: NSArray
|
|
903
|
+
|
|
904
|
+
readonly routingMethod: interop.Enum<typeof NETunnelProviderRoutingMethod>
|
|
905
|
+
|
|
906
|
+
reasserting: boolean
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
declare class NEAppProxyFlow extends NSObject {
|
|
910
|
+
openWithLocalEndpointCompletionHandler(
|
|
911
|
+
localEndpoint: NWHostEndpoint | null,
|
|
912
|
+
completionHandler: (p1: NSError) => void | null,
|
|
913
|
+
): void
|
|
914
|
+
|
|
915
|
+
closeReadWithError(error: NSError | null): void
|
|
916
|
+
|
|
917
|
+
closeWriteWithError(error: NSError | null): void
|
|
918
|
+
|
|
919
|
+
setMetadata(parameters: NSObject): void
|
|
920
|
+
|
|
921
|
+
readonly metaData: NEFlowMetaData
|
|
922
|
+
|
|
923
|
+
networkInterface: NSObject
|
|
924
|
+
|
|
925
|
+
readonly remoteHostname: string
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
declare class NEVPNProtocolIKEv2 extends NEVPNProtocolIPSec {
|
|
929
|
+
deadPeerDetectionRate: interop.Enum<typeof NEVPNIKEv2DeadPeerDetectionRate>
|
|
930
|
+
|
|
931
|
+
serverCertificateIssuerCommonName: string
|
|
932
|
+
|
|
933
|
+
serverCertificateCommonName: string
|
|
934
|
+
|
|
935
|
+
certificateType: interop.Enum<typeof NEVPNIKEv2CertificateType>
|
|
936
|
+
|
|
937
|
+
useConfigurationAttributeInternalIPSubnet: boolean
|
|
938
|
+
|
|
939
|
+
readonly IKESecurityAssociationParameters: NEVPNIKEv2SecurityAssociationParameters
|
|
940
|
+
|
|
941
|
+
readonly childSecurityAssociationParameters: NEVPNIKEv2SecurityAssociationParameters
|
|
942
|
+
|
|
943
|
+
disableMOBIKE: boolean
|
|
944
|
+
|
|
945
|
+
disableRedirect: boolean
|
|
946
|
+
|
|
947
|
+
enablePFS: boolean
|
|
948
|
+
|
|
949
|
+
enableRevocationCheck: boolean
|
|
950
|
+
|
|
951
|
+
strictRevocationCheck: boolean
|
|
952
|
+
|
|
953
|
+
minimumTLSVersion: interop.Enum<typeof NEVPNIKEv2TLSVersion>
|
|
954
|
+
|
|
955
|
+
maximumTLSVersion: interop.Enum<typeof NEVPNIKEv2TLSVersion>
|
|
956
|
+
|
|
957
|
+
mtu: number
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
declare class NEPacketTunnelFlow extends NSObject {
|
|
961
|
+
readPacketsWithCompletionHandler(
|
|
962
|
+
completionHandler: (
|
|
963
|
+
p1: NSArray<interop.Object> | Array<interop.Object>,
|
|
964
|
+
p2: NSArray<interop.Object> | Array<interop.Object>,
|
|
965
|
+
) => void,
|
|
966
|
+
): void
|
|
967
|
+
|
|
968
|
+
writePacketsWithProtocols(
|
|
969
|
+
packets: NSArray<interop.Object> | Array<interop.Object>,
|
|
970
|
+
protocols: NSArray<interop.Object> | Array<interop.Object>,
|
|
971
|
+
): boolean
|
|
972
|
+
|
|
973
|
+
readPacketObjectsWithCompletionHandler(
|
|
974
|
+
completionHandler: (p1: NSArray<interop.Object> | Array<interop.Object>) => void,
|
|
975
|
+
): void
|
|
976
|
+
|
|
977
|
+
writePacketObjects(packets: NSArray<interop.Object> | Array<interop.Object>): boolean
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
declare class NEFlowMetaData extends NSObject implements NSCopying, NSSecureCoding {
|
|
981
|
+
readonly sourceAppUniqueIdentifier: NSData
|
|
982
|
+
|
|
983
|
+
readonly sourceAppSigningIdentifier: string
|
|
984
|
+
|
|
985
|
+
readonly sourceAppAuditToken: NSData
|
|
986
|
+
|
|
987
|
+
readonly filterFlowIdentifier: NSUUID
|
|
988
|
+
|
|
989
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
990
|
+
|
|
991
|
+
static readonly supportsSecureCoding: boolean
|
|
992
|
+
|
|
993
|
+
encodeWithCoder(coder: NSCoder): void
|
|
994
|
+
|
|
995
|
+
initWithCoder(coder: NSCoder): this
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
declare class NEPacketTunnelNetworkSettings extends NETunnelNetworkSettings {
|
|
999
|
+
IPv4Settings: NEIPv4Settings
|
|
1000
|
+
|
|
1001
|
+
IPv6Settings: NEIPv6Settings
|
|
1002
|
+
|
|
1003
|
+
tunnelOverheadBytes: NSNumber
|
|
1004
|
+
|
|
1005
|
+
MTU: NSNumber
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
declare class NEFilterDataVerdict extends NEFilterVerdict implements NSSecureCoding, NSCopying {
|
|
1009
|
+
statisticsReportFrequency: interop.Enum<typeof NEFilterReportFrequency>
|
|
1010
|
+
|
|
1011
|
+
static allowVerdict(): NEFilterDataVerdict
|
|
1012
|
+
|
|
1013
|
+
static dropVerdict(): NEFilterDataVerdict
|
|
1014
|
+
|
|
1015
|
+
static dataVerdictWithPassBytesPeekBytes(
|
|
1016
|
+
passBytes: number,
|
|
1017
|
+
peekBytes: number,
|
|
1018
|
+
): NEFilterDataVerdict
|
|
1019
|
+
|
|
1020
|
+
static pauseVerdict(): NEFilterDataVerdict
|
|
1021
|
+
|
|
1022
|
+
static readonly supportsSecureCoding: boolean
|
|
1023
|
+
|
|
1024
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1025
|
+
|
|
1026
|
+
initWithCoder(coder: NSCoder): this
|
|
1027
|
+
|
|
1028
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
declare class NEFilterPacketProvider extends NEFilterProvider {
|
|
1032
|
+
packetHandler: (
|
|
1033
|
+
p1: NEFilterPacketContext,
|
|
1034
|
+
p2: NSObject,
|
|
1035
|
+
p3: interop.Enum<typeof NETrafficDirection>,
|
|
1036
|
+
p4: interop.PointerConvertible,
|
|
1037
|
+
p5: number,
|
|
1038
|
+
) => interop.Enum<typeof NEFilterPacketProviderVerdict>
|
|
1039
|
+
|
|
1040
|
+
delayCurrentPacket(context: NEFilterPacketContext): NEPacket
|
|
1041
|
+
|
|
1042
|
+
allowPacket(packet: NEPacket): void
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
declare class NEFilterNewFlowVerdict extends NEFilterVerdict implements NSSecureCoding, NSCopying {
|
|
1046
|
+
statisticsReportFrequency: interop.Enum<typeof NEFilterReportFrequency>
|
|
1047
|
+
|
|
1048
|
+
static allowVerdict(): NEFilterNewFlowVerdict
|
|
1049
|
+
|
|
1050
|
+
static dropVerdict(): NEFilterNewFlowVerdict
|
|
1051
|
+
|
|
1052
|
+
static filterDataVerdictWithFilterInboundPeekInboundBytesFilterOutboundPeekOutboundBytes(
|
|
1053
|
+
filterInbound: boolean,
|
|
1054
|
+
peekInboundBytes: number,
|
|
1055
|
+
filterOutbound: boolean,
|
|
1056
|
+
peekOutboundBytes: number,
|
|
1057
|
+
): NEFilterNewFlowVerdict
|
|
1058
|
+
|
|
1059
|
+
static pauseVerdict(): NEFilterNewFlowVerdict
|
|
1060
|
+
|
|
1061
|
+
static readonly supportsSecureCoding: boolean
|
|
1062
|
+
|
|
1063
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1064
|
+
|
|
1065
|
+
initWithCoder(coder: NSCoder): this
|
|
1066
|
+
|
|
1067
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
declare class NEFilterManager extends NSObject {
|
|
1071
|
+
static sharedManager(): NEFilterManager
|
|
1072
|
+
|
|
1073
|
+
loadFromPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1074
|
+
|
|
1075
|
+
removeFromPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1076
|
+
|
|
1077
|
+
saveToPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1078
|
+
|
|
1079
|
+
localizedDescription: string
|
|
1080
|
+
|
|
1081
|
+
providerConfiguration: NEFilterProviderConfiguration
|
|
1082
|
+
|
|
1083
|
+
enabled: boolean
|
|
1084
|
+
|
|
1085
|
+
grade: interop.Enum<typeof NEFilterManagerGrade>
|
|
1086
|
+
|
|
1087
|
+
isEnabled(): boolean
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
declare class NETunnelNetworkSettings extends NSObject implements NSSecureCoding, NSCopying {
|
|
1091
|
+
initWithTunnelRemoteAddress(address: string): this
|
|
1092
|
+
|
|
1093
|
+
readonly tunnelRemoteAddress: string
|
|
1094
|
+
|
|
1095
|
+
DNSSettings: NEDNSSettings
|
|
1096
|
+
|
|
1097
|
+
proxySettings: NEProxySettings
|
|
1098
|
+
|
|
1099
|
+
static readonly supportsSecureCoding: boolean
|
|
1100
|
+
|
|
1101
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1102
|
+
|
|
1103
|
+
initWithCoder(coder: NSCoder): this
|
|
1104
|
+
|
|
1105
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
declare class NEURLFilter extends NSObject {}
|
|
1109
|
+
|
|
1110
|
+
declare class NEAppProxyTCPFlow extends NEAppProxyFlow {
|
|
1111
|
+
readDataWithCompletionHandler(completionHandler: (p1: NSData, p2: NSError) => void | null): void
|
|
1112
|
+
|
|
1113
|
+
writeDataWithCompletionHandler(
|
|
1114
|
+
data: NSData,
|
|
1115
|
+
completionHandler: (p1: NSError) => void | null,
|
|
1116
|
+
): void
|
|
1117
|
+
|
|
1118
|
+
readonly remoteEndpoint: NWEndpoint
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
declare class NEFilterProviderConfiguration extends NSObject implements NSSecureCoding, NSCopying {
|
|
1122
|
+
filterBrowsers: boolean
|
|
1123
|
+
|
|
1124
|
+
filterSockets: boolean
|
|
1125
|
+
|
|
1126
|
+
filterPackets: boolean
|
|
1127
|
+
|
|
1128
|
+
get vendorConfiguration(): NSDictionary
|
|
1129
|
+
set vendorConfiguration(
|
|
1130
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1131
|
+
)
|
|
1132
|
+
|
|
1133
|
+
serverAddress: string
|
|
1134
|
+
|
|
1135
|
+
username: string
|
|
1136
|
+
|
|
1137
|
+
organization: string
|
|
1138
|
+
|
|
1139
|
+
passwordReference: NSData
|
|
1140
|
+
|
|
1141
|
+
identityReference: NSData
|
|
1142
|
+
|
|
1143
|
+
filterDataProviderBundleIdentifier: string
|
|
1144
|
+
|
|
1145
|
+
filterPacketProviderBundleIdentifier: string
|
|
1146
|
+
|
|
1147
|
+
static readonly supportsSecureCoding: boolean
|
|
1148
|
+
|
|
1149
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1150
|
+
|
|
1151
|
+
initWithCoder(coder: NSCoder): this
|
|
1152
|
+
|
|
1153
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
declare class NEVPNProtocol extends NSObject implements NSCopying, NSSecureCoding {
|
|
1157
|
+
serverAddress: string
|
|
1158
|
+
|
|
1159
|
+
username: string
|
|
1160
|
+
|
|
1161
|
+
passwordReference: NSData
|
|
1162
|
+
|
|
1163
|
+
identityReference: NSData
|
|
1164
|
+
|
|
1165
|
+
identityData: NSData
|
|
1166
|
+
|
|
1167
|
+
identityDataPassword: string
|
|
1168
|
+
|
|
1169
|
+
disconnectOnSleep: boolean
|
|
1170
|
+
|
|
1171
|
+
proxySettings: NEProxySettings
|
|
1172
|
+
|
|
1173
|
+
includeAllNetworks: boolean
|
|
1174
|
+
|
|
1175
|
+
excludeLocalNetworks: boolean
|
|
1176
|
+
|
|
1177
|
+
enforceRoutes: boolean
|
|
1178
|
+
|
|
1179
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1180
|
+
|
|
1181
|
+
static readonly supportsSecureCoding: boolean
|
|
1182
|
+
|
|
1183
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1184
|
+
|
|
1185
|
+
initWithCoder(coder: NSCoder): this
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
declare class NETransparentProxyManager extends NEVPNManager {
|
|
1189
|
+
static loadAllFromPreferencesWithCompletionHandler(
|
|
1190
|
+
completionHandler: (
|
|
1191
|
+
p1: NSArray<interop.Object> | Array<interop.Object>,
|
|
1192
|
+
p2: NSError,
|
|
1193
|
+
) => void | null,
|
|
1194
|
+
): void
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
declare class NEVPNManager extends NSObject {
|
|
1198
|
+
static sharedManager(): NEVPNManager
|
|
1199
|
+
|
|
1200
|
+
loadFromPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1201
|
+
|
|
1202
|
+
removeFromPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1203
|
+
|
|
1204
|
+
saveToPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1205
|
+
|
|
1206
|
+
setAuthorization(authorization: interop.PointerConvertible): void
|
|
1207
|
+
|
|
1208
|
+
get onDemandRules(): NSArray
|
|
1209
|
+
set onDemandRules(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1210
|
+
|
|
1211
|
+
onDemandEnabled: boolean
|
|
1212
|
+
|
|
1213
|
+
localizedDescription: string
|
|
1214
|
+
|
|
1215
|
+
protocol: NEVPNProtocol
|
|
1216
|
+
|
|
1217
|
+
protocolConfiguration: NEVPNProtocol
|
|
1218
|
+
|
|
1219
|
+
readonly connection: NEVPNConnection
|
|
1220
|
+
|
|
1221
|
+
enabled: boolean
|
|
1222
|
+
|
|
1223
|
+
isOnDemandEnabled(): boolean
|
|
1224
|
+
|
|
1225
|
+
isEnabled(): boolean
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
declare class NEFilterPacketContext extends NSObject {}
|
|
1229
|
+
|
|
1230
|
+
declare class NWBonjourServiceEndpoint extends NWEndpoint {
|
|
1231
|
+
static endpointWithNameTypeDomain<This extends abstract new (...args: any) => any>(
|
|
1232
|
+
this: This,
|
|
1233
|
+
name: string,
|
|
1234
|
+
type: string,
|
|
1235
|
+
domain: string,
|
|
1236
|
+
): InstanceType<This>
|
|
1237
|
+
|
|
1238
|
+
readonly name: string
|
|
1239
|
+
|
|
1240
|
+
readonly type: string
|
|
1241
|
+
|
|
1242
|
+
readonly domain: string
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
declare class NEFilterReport extends NSObject implements NSSecureCoding, NSCopying {
|
|
1246
|
+
readonly flow: NEFilterFlow
|
|
1247
|
+
|
|
1248
|
+
readonly action: interop.Enum<typeof NEFilterAction>
|
|
1249
|
+
|
|
1250
|
+
readonly event: interop.Enum<typeof NEFilterReportEvent>
|
|
1251
|
+
|
|
1252
|
+
readonly bytesInboundCount: number
|
|
1253
|
+
|
|
1254
|
+
readonly bytesOutboundCount: number
|
|
1255
|
+
|
|
1256
|
+
static readonly supportsSecureCoding: boolean
|
|
1257
|
+
|
|
1258
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1259
|
+
|
|
1260
|
+
initWithCoder(coder: NSCoder): this
|
|
1261
|
+
|
|
1262
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
declare class NEProvider extends NSObject {
|
|
1266
|
+
sleepWithCompletionHandler(completionHandler: () => void): void
|
|
1267
|
+
|
|
1268
|
+
wake(): void
|
|
1269
|
+
|
|
1270
|
+
createTCPConnectionToEndpointEnableTLSTLSParametersDelegate(
|
|
1271
|
+
remoteEndpoint: NWEndpoint,
|
|
1272
|
+
enableTLS: boolean,
|
|
1273
|
+
TLSParameters: NWTLSParameters | null,
|
|
1274
|
+
delegate: interop.Object | null,
|
|
1275
|
+
): NWTCPConnection
|
|
1276
|
+
|
|
1277
|
+
createUDPSessionToEndpointFromEndpoint(
|
|
1278
|
+
remoteEndpoint: NWEndpoint,
|
|
1279
|
+
localEndpoint: NWHostEndpoint | null,
|
|
1280
|
+
): NWUDPSession
|
|
1281
|
+
|
|
1282
|
+
displayMessageCompletionHandler(message: string, completionHandler: (p1: boolean) => void): void
|
|
1283
|
+
|
|
1284
|
+
static startSystemExtensionMode(): void
|
|
1285
|
+
|
|
1286
|
+
readonly defaultPath: NWPath
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
declare class NEDNSSettingsManager extends NSObject {
|
|
1290
|
+
static sharedManager(): NEDNSSettingsManager
|
|
1291
|
+
|
|
1292
|
+
loadFromPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1293
|
+
|
|
1294
|
+
removeFromPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1295
|
+
|
|
1296
|
+
saveToPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1297
|
+
|
|
1298
|
+
localizedDescription: string
|
|
1299
|
+
|
|
1300
|
+
dnsSettings: NEDNSSettings
|
|
1301
|
+
|
|
1302
|
+
get onDemandRules(): NSArray
|
|
1303
|
+
set onDemandRules(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1304
|
+
|
|
1305
|
+
readonly enabled: boolean
|
|
1306
|
+
|
|
1307
|
+
isEnabled(): boolean
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
declare class NEDNSSettings extends NSObject implements NSSecureCoding, NSCopying {
|
|
1311
|
+
readonly dnsProtocol: interop.Enum<typeof NEDNSProtocol>
|
|
1312
|
+
|
|
1313
|
+
initWithServers(servers: NSArray<interop.Object> | Array<interop.Object>): this
|
|
1314
|
+
|
|
1315
|
+
readonly servers: NSArray
|
|
1316
|
+
|
|
1317
|
+
get searchDomains(): NSArray
|
|
1318
|
+
set searchDomains(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1319
|
+
|
|
1320
|
+
domainName: string
|
|
1321
|
+
|
|
1322
|
+
get matchDomains(): NSArray
|
|
1323
|
+
set matchDomains(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1324
|
+
|
|
1325
|
+
matchDomainsNoSearch: boolean
|
|
1326
|
+
|
|
1327
|
+
static readonly supportsSecureCoding: boolean
|
|
1328
|
+
|
|
1329
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1330
|
+
|
|
1331
|
+
initWithCoder(coder: NSCoder): this
|
|
1332
|
+
|
|
1333
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
declare class NWPath extends NSObject {
|
|
1337
|
+
readonly status: interop.Enum<typeof NWPathStatus>
|
|
1338
|
+
|
|
1339
|
+
readonly expensive: boolean
|
|
1340
|
+
|
|
1341
|
+
readonly constrained: boolean
|
|
1342
|
+
|
|
1343
|
+
isEqualToPath(path: NWPath): boolean
|
|
1344
|
+
|
|
1345
|
+
isExpensive(): boolean
|
|
1346
|
+
|
|
1347
|
+
isConstrained(): boolean
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
declare class NETunnelProviderProtocol extends NEVPNProtocol {
|
|
1351
|
+
get providerConfiguration(): NSDictionary
|
|
1352
|
+
set providerConfiguration(
|
|
1353
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1354
|
+
)
|
|
1355
|
+
|
|
1356
|
+
providerBundleIdentifier: string
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
declare class NWTLSParameters extends NSObject {
|
|
1360
|
+
TLSSessionID: NSData
|
|
1361
|
+
|
|
1362
|
+
SSLCipherSuites: NSSet
|
|
1363
|
+
|
|
1364
|
+
minimumSSLProtocolVersion: number
|
|
1365
|
+
|
|
1366
|
+
maximumSSLProtocolVersion: number
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
declare class NEDNSProxyManager extends NSObject {
|
|
1370
|
+
static sharedManager(): NEDNSProxyManager
|
|
1371
|
+
|
|
1372
|
+
loadFromPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1373
|
+
|
|
1374
|
+
removeFromPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1375
|
+
|
|
1376
|
+
saveToPreferencesWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1377
|
+
|
|
1378
|
+
localizedDescription: string
|
|
1379
|
+
|
|
1380
|
+
providerProtocol: NEDNSProxyProviderProtocol
|
|
1381
|
+
|
|
1382
|
+
enabled: boolean
|
|
1383
|
+
|
|
1384
|
+
isEnabled(): boolean
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
declare class NEPacket extends NSObject implements NSCopying, NSSecureCoding {
|
|
1388
|
+
initWithDataProtocolFamily(data: NSData, protocolFamily: number): this
|
|
1389
|
+
|
|
1390
|
+
readonly data: NSData
|
|
1391
|
+
|
|
1392
|
+
readonly protocolFamily: number
|
|
1393
|
+
|
|
1394
|
+
readonly direction: interop.Enum<typeof NETrafficDirection>
|
|
1395
|
+
|
|
1396
|
+
readonly metadata: NEFlowMetaData
|
|
1397
|
+
|
|
1398
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1399
|
+
|
|
1400
|
+
static readonly supportsSecureCoding: boolean
|
|
1401
|
+
|
|
1402
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1403
|
+
|
|
1404
|
+
initWithCoder(coder: NSCoder): this
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
declare class NETunnelProviderSession extends NEVPNConnection {
|
|
1408
|
+
startTunnelWithOptionsAndReturnError(
|
|
1409
|
+
options:
|
|
1410
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1411
|
+
| Record<interop.Object, interop.Object>
|
|
1412
|
+
| null,
|
|
1413
|
+
error: interop.PointerConvertible,
|
|
1414
|
+
): boolean
|
|
1415
|
+
|
|
1416
|
+
stopTunnel(): void
|
|
1417
|
+
|
|
1418
|
+
sendProviderMessageReturnErrorResponseHandler(
|
|
1419
|
+
messageData: NSData,
|
|
1420
|
+
error: interop.PointerConvertible,
|
|
1421
|
+
responseHandler: (p1: NSData) => void | null,
|
|
1422
|
+
): boolean
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
declare class NEFilterSettings extends NSObject implements NSSecureCoding, NSCopying {
|
|
1426
|
+
initWithRulesDefaultAction(
|
|
1427
|
+
rules: NSArray<interop.Object> | Array<interop.Object>,
|
|
1428
|
+
defaultAction: interop.Enum<typeof NEFilterAction>,
|
|
1429
|
+
): this
|
|
1430
|
+
|
|
1431
|
+
readonly rules: NSArray
|
|
1432
|
+
|
|
1433
|
+
readonly defaultAction: interop.Enum<typeof NEFilterAction>
|
|
1434
|
+
|
|
1435
|
+
static readonly supportsSecureCoding: boolean
|
|
1436
|
+
|
|
1437
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1438
|
+
|
|
1439
|
+
initWithCoder(coder: NSCoder): this
|
|
1440
|
+
|
|
1441
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
declare class NEOnDemandRuleConnect extends NEOnDemandRule {}
|
|
1445
|
+
|
|
1446
|
+
declare class NEDNSProxyProviderProtocol extends NEVPNProtocol {
|
|
1447
|
+
get providerConfiguration(): NSDictionary
|
|
1448
|
+
set providerConfiguration(
|
|
1449
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1450
|
+
)
|
|
1451
|
+
|
|
1452
|
+
providerBundleIdentifier: string
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
declare class NWEndpoint extends NSObject implements NSSecureCoding, NSCopying {
|
|
1456
|
+
static readonly supportsSecureCoding: boolean
|
|
1457
|
+
|
|
1458
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1459
|
+
|
|
1460
|
+
initWithCoder(coder: NSCoder): this
|
|
1461
|
+
|
|
1462
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
declare class NEOnDemandRule extends NSObject implements NSSecureCoding, NSCopying {
|
|
1466
|
+
readonly action: interop.Enum<typeof NEOnDemandRuleAction>
|
|
1467
|
+
|
|
1468
|
+
get DNSSearchDomainMatch(): NSArray
|
|
1469
|
+
set DNSSearchDomainMatch(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1470
|
+
|
|
1471
|
+
get DNSServerAddressMatch(): NSArray
|
|
1472
|
+
set DNSServerAddressMatch(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1473
|
+
|
|
1474
|
+
interfaceTypeMatch: interop.Enum<typeof NEOnDemandRuleInterfaceType>
|
|
1475
|
+
|
|
1476
|
+
get SSIDMatch(): NSArray
|
|
1477
|
+
set SSIDMatch(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1478
|
+
|
|
1479
|
+
probeURL: NSURL
|
|
1480
|
+
|
|
1481
|
+
static readonly supportsSecureCoding: boolean
|
|
1482
|
+
|
|
1483
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1484
|
+
|
|
1485
|
+
initWithCoder(coder: NSCoder): this
|
|
1486
|
+
|
|
1487
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
declare class NEIPv6Settings extends NSObject implements NSSecureCoding, NSCopying {
|
|
1491
|
+
initWithAddressesNetworkPrefixLengths(
|
|
1492
|
+
addresses: NSArray<interop.Object> | Array<interop.Object>,
|
|
1493
|
+
networkPrefixLengths: NSArray<interop.Object> | Array<interop.Object>,
|
|
1494
|
+
): this
|
|
1495
|
+
|
|
1496
|
+
readonly addresses: NSArray
|
|
1497
|
+
|
|
1498
|
+
readonly networkPrefixLengths: NSArray
|
|
1499
|
+
|
|
1500
|
+
get includedRoutes(): NSArray
|
|
1501
|
+
set includedRoutes(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1502
|
+
|
|
1503
|
+
get excludedRoutes(): NSArray
|
|
1504
|
+
set excludedRoutes(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1505
|
+
|
|
1506
|
+
static readonly supportsSecureCoding: boolean
|
|
1507
|
+
|
|
1508
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1509
|
+
|
|
1510
|
+
initWithCoder(coder: NSCoder): this
|
|
1511
|
+
|
|
1512
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
declare class NEDNSOverTLSSettings extends NEDNSSettings {
|
|
1516
|
+
serverName: string
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
declare class NEIPv4Settings extends NSObject implements NSSecureCoding, NSCopying {
|
|
1520
|
+
initWithAddressesSubnetMasks(
|
|
1521
|
+
addresses: NSArray<interop.Object> | Array<interop.Object>,
|
|
1522
|
+
subnetMasks: NSArray<interop.Object> | Array<interop.Object>,
|
|
1523
|
+
): this
|
|
1524
|
+
|
|
1525
|
+
readonly addresses: NSArray
|
|
1526
|
+
|
|
1527
|
+
readonly subnetMasks: NSArray
|
|
1528
|
+
|
|
1529
|
+
get includedRoutes(): NSArray
|
|
1530
|
+
set includedRoutes(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1531
|
+
|
|
1532
|
+
get excludedRoutes(): NSArray
|
|
1533
|
+
set excludedRoutes(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1534
|
+
|
|
1535
|
+
static readonly supportsSecureCoding: boolean
|
|
1536
|
+
|
|
1537
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1538
|
+
|
|
1539
|
+
initWithCoder(coder: NSCoder): this
|
|
1540
|
+
|
|
1541
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
declare class NEVPNConnection extends NSObject {
|
|
1545
|
+
startVPNTunnelAndReturnError(error: interop.PointerConvertible): boolean
|
|
1546
|
+
|
|
1547
|
+
startVPNTunnelWithOptionsAndReturnError(
|
|
1548
|
+
options:
|
|
1549
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1550
|
+
| Record<interop.Object, interop.Object>
|
|
1551
|
+
| null,
|
|
1552
|
+
error: interop.PointerConvertible,
|
|
1553
|
+
): boolean
|
|
1554
|
+
|
|
1555
|
+
stopVPNTunnel(): void
|
|
1556
|
+
|
|
1557
|
+
readonly status: interop.Enum<typeof NEVPNStatus>
|
|
1558
|
+
|
|
1559
|
+
readonly connectedDate: NSDate
|
|
1560
|
+
|
|
1561
|
+
readonly manager: NEVPNManager
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
declare class NWHostEndpoint extends NWEndpoint {
|
|
1565
|
+
static endpointWithHostnamePort<This extends abstract new (...args: any) => any>(
|
|
1566
|
+
this: This,
|
|
1567
|
+
hostname: string,
|
|
1568
|
+
port: string,
|
|
1569
|
+
): InstanceType<This>
|
|
1570
|
+
|
|
1571
|
+
readonly hostname: string
|
|
1572
|
+
|
|
1573
|
+
readonly port: string
|
|
1574
|
+
}
|