@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,548 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const TKErrorDomain: string
|
|
5
|
+
|
|
6
|
+
declare const TKTokenOperation: {
|
|
7
|
+
None: 0
|
|
8
|
+
ReadData: 1
|
|
9
|
+
SignData: 2
|
|
10
|
+
DecryptData: 3
|
|
11
|
+
PerformKeyExchange: 4
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare const TKSmartCardPINConfirmation: {
|
|
15
|
+
None: 0
|
|
16
|
+
New: 1
|
|
17
|
+
Current: 2
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const TKSmartCardPINCompletion: {
|
|
21
|
+
MaxLength: 1
|
|
22
|
+
Key: 2
|
|
23
|
+
Timeout: 4
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare const TKSmartCardPINJustification: {
|
|
27
|
+
Left: 0
|
|
28
|
+
Right: 1
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare const TKErrorCode: {
|
|
32
|
+
CodeNotImplemented: -1
|
|
33
|
+
CodeCommunicationError: -2
|
|
34
|
+
CodeCorruptedData: -3
|
|
35
|
+
CodeCanceledByUser: -4
|
|
36
|
+
CodeAuthenticationFailed: -5
|
|
37
|
+
CodeObjectNotFound: -6
|
|
38
|
+
CodeTokenNotFound: -7
|
|
39
|
+
CodeBadParameter: -8
|
|
40
|
+
CodeAuthenticationNeeded: -9
|
|
41
|
+
AuthenticationFailed: -5
|
|
42
|
+
ObjectNotFound: -6
|
|
43
|
+
TokenNotFound: -7
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare const TKSmartCardPINEncoding: {
|
|
47
|
+
Binary: 0
|
|
48
|
+
ASCII: 1
|
|
49
|
+
BCD: 2
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare const TKSmartCardPINCharset: {
|
|
53
|
+
Numeric: 0
|
|
54
|
+
Alphanumeric: 1
|
|
55
|
+
UpperAlphanumeric: 2
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare const TKSmartCardProtocol: {
|
|
59
|
+
None: 0
|
|
60
|
+
T0: 1
|
|
61
|
+
T1: 2
|
|
62
|
+
T15: 32768
|
|
63
|
+
Any: 65535
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare const TKSmartCardSlotState: {
|
|
67
|
+
Missing: 0
|
|
68
|
+
Empty: 1
|
|
69
|
+
Probing: 2
|
|
70
|
+
MuteCard: 3
|
|
71
|
+
ValidCard: 4
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare interface TKSmartCardTokenDriverDelegate extends TKTokenDriverDelegate {
|
|
75
|
+
tokenDriverCreateTokenForSmartCardAIDError(
|
|
76
|
+
driver: TKSmartCardTokenDriver,
|
|
77
|
+
smartCard: TKSmartCard,
|
|
78
|
+
AID: NSData | null,
|
|
79
|
+
error: interop.PointerConvertible,
|
|
80
|
+
): TKSmartCardToken
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class TKSmartCardTokenDriverDelegate
|
|
84
|
+
extends NativeObject
|
|
85
|
+
implements TKSmartCardTokenDriverDelegate {}
|
|
86
|
+
|
|
87
|
+
declare interface TKTokenSessionDelegate extends NSObjectProtocol {
|
|
88
|
+
tokenSessionBeginAuthForOperationConstraintError?(
|
|
89
|
+
session: TKTokenSession,
|
|
90
|
+
operation: interop.Enum<typeof TKTokenOperation>,
|
|
91
|
+
constraint: interop.Object,
|
|
92
|
+
error: interop.PointerConvertible,
|
|
93
|
+
): TKTokenAuthOperation
|
|
94
|
+
|
|
95
|
+
tokenSessionSupportsOperationUsingKeyAlgorithm?(
|
|
96
|
+
session: TKTokenSession,
|
|
97
|
+
operation: interop.Enum<typeof TKTokenOperation>,
|
|
98
|
+
keyObjectID: interop.Object,
|
|
99
|
+
algorithm: TKTokenKeyAlgorithm,
|
|
100
|
+
): boolean
|
|
101
|
+
|
|
102
|
+
tokenSessionSignDataUsingKeyAlgorithmError?(
|
|
103
|
+
session: TKTokenSession,
|
|
104
|
+
dataToSign: NSData,
|
|
105
|
+
keyObjectID: interop.Object,
|
|
106
|
+
algorithm: TKTokenKeyAlgorithm,
|
|
107
|
+
error: interop.PointerConvertible,
|
|
108
|
+
): NSData
|
|
109
|
+
|
|
110
|
+
tokenSessionDecryptDataUsingKeyAlgorithmError?(
|
|
111
|
+
session: TKTokenSession,
|
|
112
|
+
ciphertext: NSData,
|
|
113
|
+
keyObjectID: interop.Object,
|
|
114
|
+
algorithm: TKTokenKeyAlgorithm,
|
|
115
|
+
error: interop.PointerConvertible,
|
|
116
|
+
): NSData
|
|
117
|
+
|
|
118
|
+
tokenSessionPerformKeyExchangeWithPublicKeyUsingKeyAlgorithmParametersError?(
|
|
119
|
+
session: TKTokenSession,
|
|
120
|
+
otherPartyPublicKeyData: NSData,
|
|
121
|
+
objectID: interop.Object,
|
|
122
|
+
algorithm: TKTokenKeyAlgorithm,
|
|
123
|
+
parameters: TKTokenKeyExchangeParameters,
|
|
124
|
+
error: interop.PointerConvertible,
|
|
125
|
+
): NSData
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare class TKTokenSessionDelegate extends NativeObject implements TKTokenSessionDelegate {}
|
|
129
|
+
|
|
130
|
+
declare interface TKSmartCardUserInteractionDelegate {
|
|
131
|
+
characterEnteredInUserInteraction?(interaction: TKSmartCardUserInteraction): void
|
|
132
|
+
|
|
133
|
+
correctionKeyPressedInUserInteraction?(interaction: TKSmartCardUserInteraction): void
|
|
134
|
+
|
|
135
|
+
validationKeyPressedInUserInteraction?(interaction: TKSmartCardUserInteraction): void
|
|
136
|
+
|
|
137
|
+
invalidCharacterEnteredInUserInteraction?(interaction: TKSmartCardUserInteraction): void
|
|
138
|
+
|
|
139
|
+
oldPINRequestedInUserInteraction?(interaction: TKSmartCardUserInteraction): void
|
|
140
|
+
|
|
141
|
+
newPINRequestedInUserInteraction?(interaction: TKSmartCardUserInteraction): void
|
|
142
|
+
|
|
143
|
+
newPINConfirmationRequestedInUserInteraction?(interaction: TKSmartCardUserInteraction): void
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare class TKSmartCardUserInteractionDelegate
|
|
147
|
+
extends NativeObject
|
|
148
|
+
implements TKSmartCardUserInteractionDelegate {}
|
|
149
|
+
|
|
150
|
+
declare interface TKTokenDelegate extends NSObjectProtocol {
|
|
151
|
+
tokenCreateSessionWithError(token: TKToken, error: interop.PointerConvertible): TKTokenSession
|
|
152
|
+
|
|
153
|
+
tokenTerminateSession?(token: TKToken, session: TKTokenSession): void
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class TKTokenDelegate extends NativeObject implements TKTokenDelegate {}
|
|
157
|
+
|
|
158
|
+
declare interface TKTokenDriverDelegate extends NSObjectProtocol {
|
|
159
|
+
tokenDriverTokenForConfigurationError?(
|
|
160
|
+
driver: TKTokenDriver,
|
|
161
|
+
configuration: TKTokenConfiguration,
|
|
162
|
+
error: interop.PointerConvertible,
|
|
163
|
+
): TKToken
|
|
164
|
+
|
|
165
|
+
tokenDriverTerminateToken?(driver: TKTokenDriver, token: TKToken): void
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
declare class TKTokenDriverDelegate extends NativeObject implements TKTokenDriverDelegate {}
|
|
169
|
+
|
|
170
|
+
declare class TKSmartCardTokenDriver extends TKTokenDriver {}
|
|
171
|
+
|
|
172
|
+
declare class TKTokenConfiguration extends NSObject {
|
|
173
|
+
readonly instanceID: string
|
|
174
|
+
|
|
175
|
+
configurationData: NSData
|
|
176
|
+
|
|
177
|
+
get keychainItems(): NSArray
|
|
178
|
+
set keychainItems(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
179
|
+
|
|
180
|
+
keyForObjectIDError(
|
|
181
|
+
objectID: interop.Object,
|
|
182
|
+
error: interop.PointerConvertible,
|
|
183
|
+
): TKTokenKeychainKey
|
|
184
|
+
|
|
185
|
+
certificateForObjectIDError(
|
|
186
|
+
objectID: interop.Object,
|
|
187
|
+
error: interop.PointerConvertible,
|
|
188
|
+
): TKTokenKeychainCertificate
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare class TKTokenKeychainContents extends NSObject {
|
|
192
|
+
fillWithItems(items: NSArray<interop.Object> | Array<interop.Object>): void
|
|
193
|
+
|
|
194
|
+
readonly items: NSArray
|
|
195
|
+
|
|
196
|
+
keyForObjectIDError(
|
|
197
|
+
objectID: interop.Object,
|
|
198
|
+
error: interop.PointerConvertible,
|
|
199
|
+
): TKTokenKeychainKey
|
|
200
|
+
|
|
201
|
+
certificateForObjectIDError(
|
|
202
|
+
objectID: interop.Object,
|
|
203
|
+
error: interop.PointerConvertible,
|
|
204
|
+
): TKTokenKeychainCertificate
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare class TKTokenKeychainCertificate extends TKTokenKeychainItem {
|
|
208
|
+
initWithCertificateObjectID(certificateRef: interop.Object, objectID: interop.Object): this
|
|
209
|
+
|
|
210
|
+
readonly data: NSData
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare class TKTokenKeychainItem extends NSObject {
|
|
214
|
+
initWithObjectID(objectID: interop.Object): this
|
|
215
|
+
|
|
216
|
+
readonly objectID: interop.Object
|
|
217
|
+
|
|
218
|
+
label: string
|
|
219
|
+
|
|
220
|
+
get constraints(): NSDictionary
|
|
221
|
+
set constraints(
|
|
222
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
223
|
+
)
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
declare class TKTokenPasswordAuthOperation extends TKTokenAuthOperation {
|
|
227
|
+
password: string
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
declare class TKTokenAuthOperation extends NSObject implements NSSecureCoding {
|
|
231
|
+
finishWithError(error: interop.PointerConvertible): boolean
|
|
232
|
+
|
|
233
|
+
static readonly supportsSecureCoding: boolean
|
|
234
|
+
|
|
235
|
+
encodeWithCoder(coder: NSCoder): void
|
|
236
|
+
|
|
237
|
+
initWithCoder(coder: NSCoder): this
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare class TKTokenDriver extends NSObject {
|
|
241
|
+
delegate: TKTokenDriverDelegate
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
declare class TKTokenKeyExchangeParameters extends NSObject {
|
|
245
|
+
readonly requestedSize: number
|
|
246
|
+
|
|
247
|
+
readonly sharedInfo: NSData
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
declare class TKSmartCard extends NSObject {
|
|
251
|
+
readonly slot: TKSmartCardSlot
|
|
252
|
+
|
|
253
|
+
readonly valid: boolean
|
|
254
|
+
|
|
255
|
+
allowedProtocols: interop.Enum<typeof TKSmartCardProtocol>
|
|
256
|
+
|
|
257
|
+
readonly currentProtocol: interop.Enum<typeof TKSmartCardProtocol>
|
|
258
|
+
|
|
259
|
+
sensitive: boolean
|
|
260
|
+
|
|
261
|
+
context: interop.Object
|
|
262
|
+
|
|
263
|
+
beginSessionWithReply(reply: (p1: boolean, p2: NSError) => void | null): void
|
|
264
|
+
|
|
265
|
+
transmitRequestReply(request: NSData, reply: (p1: NSData, p2: NSError) => void | null): void
|
|
266
|
+
|
|
267
|
+
endSession(): void
|
|
268
|
+
|
|
269
|
+
userInteractionForSecurePINVerificationWithPINFormatAPDUPINByteOffset(
|
|
270
|
+
PINFormat: TKSmartCardPINFormat,
|
|
271
|
+
APDU: NSData,
|
|
272
|
+
PINByteOffset: number,
|
|
273
|
+
): TKSmartCardUserInteractionForSecurePINVerification
|
|
274
|
+
|
|
275
|
+
userInteractionForSecurePINChangeWithPINFormatAPDUCurrentPINByteOffsetNewPINByteOffset(
|
|
276
|
+
PINFormat: TKSmartCardPINFormat,
|
|
277
|
+
APDU: NSData,
|
|
278
|
+
currentPINByteOffset: number,
|
|
279
|
+
newPINByteOffset: number,
|
|
280
|
+
): TKSmartCardUserInteractionForSecurePINChange
|
|
281
|
+
|
|
282
|
+
cla: number
|
|
283
|
+
|
|
284
|
+
useExtendedLength: boolean
|
|
285
|
+
|
|
286
|
+
useCommandChaining: boolean
|
|
287
|
+
|
|
288
|
+
sendInsP1P2DataLeReply(
|
|
289
|
+
ins: number,
|
|
290
|
+
p1: number,
|
|
291
|
+
p2: number,
|
|
292
|
+
requestData: NSData | null,
|
|
293
|
+
le: NSNumber | null,
|
|
294
|
+
reply: (p1: NSData, p2: number, p3: NSError) => void | null,
|
|
295
|
+
): void
|
|
296
|
+
|
|
297
|
+
inSessionWithErrorExecuteBlock(
|
|
298
|
+
error: interop.PointerConvertible,
|
|
299
|
+
block: (p1: interop.PointerConvertible) => boolean | null,
|
|
300
|
+
): boolean
|
|
301
|
+
|
|
302
|
+
sendInsP1P2DataLeSwError(
|
|
303
|
+
ins: number,
|
|
304
|
+
p1: number,
|
|
305
|
+
p2: number,
|
|
306
|
+
requestData: NSData | null,
|
|
307
|
+
le: NSNumber | null,
|
|
308
|
+
sw: interop.PointerConvertible,
|
|
309
|
+
error: interop.PointerConvertible,
|
|
310
|
+
): NSData
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare class TKSmartCardSlot extends NSObject {
|
|
314
|
+
readonly state: interop.Enum<typeof TKSmartCardSlotState>
|
|
315
|
+
|
|
316
|
+
readonly ATR: TKSmartCardATR
|
|
317
|
+
|
|
318
|
+
readonly name: string
|
|
319
|
+
|
|
320
|
+
readonly maxInputLength: number
|
|
321
|
+
|
|
322
|
+
readonly maxOutputLength: number
|
|
323
|
+
|
|
324
|
+
makeSmartCard(): TKSmartCard
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare class TKSmartCardUserInteractionForSecurePINVerification extends TKSmartCardUserInteractionForPINOperation {}
|
|
328
|
+
|
|
329
|
+
declare class TKSmartCardUserInteraction extends NSObject {
|
|
330
|
+
delegate: TKSmartCardUserInteractionDelegate
|
|
331
|
+
|
|
332
|
+
initialTimeout: number
|
|
333
|
+
|
|
334
|
+
interactionTimeout: number
|
|
335
|
+
|
|
336
|
+
runWithReply(reply: (p1: boolean, p2: NSError) => void | null): void
|
|
337
|
+
|
|
338
|
+
cancel(): boolean
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
declare class TKSmartCardATR extends NSObject {
|
|
342
|
+
initWithBytes(bytes: NSData): this
|
|
343
|
+
|
|
344
|
+
initWithSource(source: () => number): this
|
|
345
|
+
|
|
346
|
+
readonly bytes: NSData
|
|
347
|
+
|
|
348
|
+
readonly protocols: NSArray
|
|
349
|
+
|
|
350
|
+
interfaceGroupAtIndex(index: number): TKSmartCardATRInterfaceGroup
|
|
351
|
+
|
|
352
|
+
interfaceGroupForProtocol(
|
|
353
|
+
protocol: interop.Enum<typeof TKSmartCardProtocol>,
|
|
354
|
+
): TKSmartCardATRInterfaceGroup
|
|
355
|
+
|
|
356
|
+
readonly historicalBytes: NSData
|
|
357
|
+
|
|
358
|
+
readonly historicalRecords: NSArray
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
declare class TKSmartCardATRInterfaceGroup extends NSObject {
|
|
362
|
+
readonly TA: NSNumber
|
|
363
|
+
|
|
364
|
+
readonly TB: NSNumber
|
|
365
|
+
|
|
366
|
+
readonly TC: NSNumber
|
|
367
|
+
|
|
368
|
+
readonly protocol: NSNumber
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
declare class TKSimpleTLVRecord extends TKTLVRecord {
|
|
372
|
+
initWithTagValue(tag: number, value: NSData): this
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
declare class TKTLVRecord extends NSObject {
|
|
376
|
+
readonly tag: number
|
|
377
|
+
|
|
378
|
+
readonly value: NSData
|
|
379
|
+
|
|
380
|
+
readonly data: NSData
|
|
381
|
+
|
|
382
|
+
static recordFromData<This extends abstract new (...args: any) => any>(
|
|
383
|
+
this: This,
|
|
384
|
+
data: NSData,
|
|
385
|
+
): InstanceType<This>
|
|
386
|
+
|
|
387
|
+
static sequenceOfRecordsFromData(data: NSData): NSArray
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
declare class TKCompactTLVRecord extends TKTLVRecord {
|
|
391
|
+
initWithTagValue(tag: number, value: NSData): this
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
declare class TKTokenSession extends NSObject {
|
|
395
|
+
initWithToken(token: TKToken): this
|
|
396
|
+
|
|
397
|
+
readonly token: TKToken
|
|
398
|
+
|
|
399
|
+
delegate: TKTokenSessionDelegate
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare class TKTokenKeyAlgorithm extends NSObject {
|
|
403
|
+
isAlgorithm(algorithm: interop.PointerConvertible): boolean
|
|
404
|
+
|
|
405
|
+
supportsAlgorithm(algorithm: interop.PointerConvertible): boolean
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
declare class TKBERTLVRecord extends TKTLVRecord {
|
|
409
|
+
static dataForTag(tag: number): NSData
|
|
410
|
+
|
|
411
|
+
initWithTagValue(tag: number, value: NSData): this
|
|
412
|
+
|
|
413
|
+
initWithTagRecords(tag: number, records: NSArray<interop.Object> | Array<interop.Object>): this
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
declare class TKToken extends NSObject {
|
|
417
|
+
initWithTokenDriverInstanceID(tokenDriver: TKTokenDriver, instanceID: string): this
|
|
418
|
+
|
|
419
|
+
readonly tokenDriver: TKTokenDriver
|
|
420
|
+
|
|
421
|
+
delegate: TKTokenDelegate
|
|
422
|
+
|
|
423
|
+
readonly configuration: TKTokenConfiguration
|
|
424
|
+
|
|
425
|
+
readonly keychainContents: TKTokenKeychainContents
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
declare class TKSmartCardUserInteractionForSecurePINChange extends TKSmartCardUserInteractionForPINOperation {
|
|
429
|
+
PINConfirmation: interop.Enum<typeof TKSmartCardPINConfirmation>
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
declare class TKTokenWatcher extends NSObject {
|
|
433
|
+
readonly tokenIDs: NSArray
|
|
434
|
+
|
|
435
|
+
init(): this
|
|
436
|
+
|
|
437
|
+
initWithInsertionHandler(insertionHandler: (p1: string) => void): this
|
|
438
|
+
|
|
439
|
+
setInsertionHandler(insertionHandler: (p1: string) => void): void
|
|
440
|
+
|
|
441
|
+
addRemovalHandlerForTokenID(removalHandler: (p1: string) => void, tokenID: string): void
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
declare class TKSmartCardPINFormat extends NSObject {
|
|
445
|
+
charset: interop.Enum<typeof TKSmartCardPINCharset>
|
|
446
|
+
|
|
447
|
+
encoding: interop.Enum<typeof TKSmartCardPINEncoding>
|
|
448
|
+
|
|
449
|
+
minPINLength: number
|
|
450
|
+
|
|
451
|
+
maxPINLength: number
|
|
452
|
+
|
|
453
|
+
PINBlockByteLength: number
|
|
454
|
+
|
|
455
|
+
PINJustification: interop.Enum<typeof TKSmartCardPINJustification>
|
|
456
|
+
|
|
457
|
+
PINBitOffset: number
|
|
458
|
+
|
|
459
|
+
PINLengthBitOffset: number
|
|
460
|
+
|
|
461
|
+
PINLengthBitSize: number
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
declare class TKSmartCardTokenSession extends TKTokenSession {
|
|
465
|
+
readonly smartCard: TKSmartCard
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
declare class TKTokenSmartCardPINAuthOperation extends TKTokenAuthOperation {
|
|
469
|
+
PINFormat: TKSmartCardPINFormat
|
|
470
|
+
|
|
471
|
+
APDUTemplate: NSData
|
|
472
|
+
|
|
473
|
+
PINByteOffset: number
|
|
474
|
+
|
|
475
|
+
smartCard: TKSmartCard
|
|
476
|
+
|
|
477
|
+
PIN: string
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
declare class TKSmartCardSlotManager extends NSObject {
|
|
481
|
+
static readonly defaultManager: TKSmartCardSlotManager
|
|
482
|
+
|
|
483
|
+
readonly slotNames: NSArray
|
|
484
|
+
|
|
485
|
+
getSlotWithNameReply(name: string, reply: (p1: TKSmartCardSlot) => void | null): void
|
|
486
|
+
|
|
487
|
+
slotNamed(name: string): TKSmartCardSlot
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
declare class TKSmartCardUserInteractionForPINOperation extends TKSmartCardUserInteraction {
|
|
491
|
+
PINCompletion: interop.Enum<typeof TKSmartCardPINCompletion>
|
|
492
|
+
|
|
493
|
+
get PINMessageIndices(): NSArray
|
|
494
|
+
set PINMessageIndices(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
495
|
+
|
|
496
|
+
locale: NSLocale
|
|
497
|
+
|
|
498
|
+
resultSW: number
|
|
499
|
+
|
|
500
|
+
resultData: NSData
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
declare class TKTokenDriverConfiguration extends NSObject {
|
|
504
|
+
static readonly driverConfigurations: NSDictionary
|
|
505
|
+
|
|
506
|
+
readonly classID: string
|
|
507
|
+
|
|
508
|
+
readonly tokenConfigurations: NSDictionary
|
|
509
|
+
|
|
510
|
+
addTokenConfigurationForTokenInstanceID(instanceID: string): TKTokenConfiguration
|
|
511
|
+
|
|
512
|
+
removeTokenConfigurationForTokenInstanceID(instanceID: string): void
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
declare class TKTokenKeychainKey extends TKTokenKeychainItem {
|
|
516
|
+
initWithCertificateObjectID(certificateRef: interop.Object | null, objectID: interop.Object): this
|
|
517
|
+
|
|
518
|
+
keyType: string
|
|
519
|
+
|
|
520
|
+
applicationTag: NSData
|
|
521
|
+
|
|
522
|
+
keySizeInBits: number
|
|
523
|
+
|
|
524
|
+
publicKeyData: NSData
|
|
525
|
+
|
|
526
|
+
publicKeyHash: NSData
|
|
527
|
+
|
|
528
|
+
canDecrypt: boolean
|
|
529
|
+
|
|
530
|
+
canSign: boolean
|
|
531
|
+
|
|
532
|
+
canPerformKeyExchange: boolean
|
|
533
|
+
|
|
534
|
+
suitableForLogin: boolean
|
|
535
|
+
|
|
536
|
+
isSuitableForLogin(): boolean
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
declare class TKSmartCardToken extends TKToken {
|
|
540
|
+
initWithSmartCardAIDInstanceIDTokenDriver(
|
|
541
|
+
smartCard: TKSmartCard,
|
|
542
|
+
AID: NSData | null,
|
|
543
|
+
instanceID: string,
|
|
544
|
+
tokenDriver: TKSmartCardTokenDriver,
|
|
545
|
+
): this
|
|
546
|
+
|
|
547
|
+
readonly AID: NSData
|
|
548
|
+
}
|