objcjs-types 0.3.0 → 0.5.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.
Files changed (1317) hide show
  1. package/dist/AVFAudio/AVAudioApplication.d.ts +3 -3
  2. package/dist/AVFAudio/AVAudioConverter.d.ts +1 -1
  3. package/dist/AVFAudio/AVAudioEngine.d.ts +5 -5
  4. package/dist/AVFAudio/AVAudioInputNode.d.ts +3 -2
  5. package/dist/AVFAudio/AVAudioNode.d.ts +2 -2
  6. package/dist/AVFAudio/AVAudioPCMBuffer.d.ts +1 -1
  7. package/dist/AVFAudio/AVAudioPlayerNode.d.ts +8 -9
  8. package/dist/AVFAudio/AVAudioRoutingArbiter.d.ts +2 -2
  9. package/dist/AVFAudio/AVAudioSequencer.d.ts +1 -1
  10. package/dist/AVFAudio/AVAudioSession.d.ts +3 -2
  11. package/dist/AVFAudio/AVAudioSinkNode.d.ts +1 -1
  12. package/dist/AVFAudio/AVAudioSourceNode.d.ts +2 -2
  13. package/dist/AVFAudio/AVAudioUnit.d.ts +2 -1
  14. package/dist/AVFAudio/AVAudioUnitComponentManager.d.ts +2 -1
  15. package/dist/AVFAudio/AVMIDIPlayer.d.ts +1 -1
  16. package/dist/AVFAudio/AVMusicTrack.d.ts +1 -1
  17. package/dist/AVFAudio/AVSpeechSynthesisProviderAudioUnit.d.ts +2 -3
  18. package/dist/AVFAudio/AVSpeechSynthesizer.d.ts +4 -4
  19. package/dist/AVFoundation/AVAsset.d.ts +9 -8
  20. package/dist/AVFoundation/AVAssetExportSession.d.ts +5 -6
  21. package/dist/AVFoundation/AVAssetImageGenerator.d.ts +4 -2
  22. package/dist/AVFoundation/AVAssetPlaybackAssistant.d.ts +2 -2
  23. package/dist/AVFoundation/AVAssetTrack.d.ts +5 -5
  24. package/dist/AVFoundation/AVAssetWriter.d.ts +1 -1
  25. package/dist/AVFoundation/AVAssetWriterInput.d.ts +2 -2
  26. package/dist/AVFoundation/AVAsynchronousKeyValueLoading.d.ts +1 -1
  27. package/dist/AVFoundation/AVCaptionConversionValidator.d.ts +2 -2
  28. package/dist/AVFoundation/AVCaptureDeskViewApplication.d.ts +3 -3
  29. package/dist/AVFoundation/AVCaptureDevice.d.ts +8 -7
  30. package/dist/AVFoundation/AVCaptureIndexPicker.d.ts +2 -3
  31. package/dist/AVFoundation/AVCapturePhotoOutput.d.ts +2 -1
  32. package/dist/AVFoundation/AVCaptureSlider.d.ts +1 -2
  33. package/dist/AVFoundation/AVCaptureStillImageOutput.d.ts +5 -3
  34. package/dist/AVFoundation/AVCaptureSystemExposureBiasSlider.d.ts +1 -2
  35. package/dist/AVFoundation/AVCaptureSystemZoomSlider.d.ts +1 -2
  36. package/dist/AVFoundation/AVComposition.d.ts +3 -7
  37. package/dist/AVFoundation/AVContentKeyRequest.d.ts +1 -1
  38. package/dist/AVFoundation/AVContentKeySession.d.ts +4 -3
  39. package/dist/AVFoundation/AVError.d.ts +88 -0
  40. package/dist/AVFoundation/AVError.js +88 -0
  41. package/dist/AVFoundation/AVExternalStorageDevice.d.ts +1 -1
  42. package/dist/AVFoundation/AVFragmentedAsset.d.ts +3 -7
  43. package/dist/AVFoundation/AVFragmentedMovie.d.ts +3 -7
  44. package/dist/AVFoundation/AVMetadataItem.d.ts +3 -2
  45. package/dist/AVFoundation/AVMovie.d.ts +3 -6
  46. package/dist/AVFoundation/AVMutableComposition.d.ts +4 -7
  47. package/dist/AVFoundation/AVMutableMovie.d.ts +3 -6
  48. package/dist/AVFoundation/AVMutableVideoComposition.d.ts +4 -10
  49. package/dist/AVFoundation/AVPlaybackCoordinatorPlaybackControlDelegate.d.ts +4 -5
  50. package/dist/AVFoundation/AVPlayer.d.ts +6 -6
  51. package/dist/AVFoundation/AVPlayerItem.d.ts +4 -4
  52. package/dist/AVFoundation/AVPlayerItemIntegratedTimeline.d.ts +4 -5
  53. package/dist/AVFoundation/AVQueuedSampleBufferRendering.d.ts +1 -1
  54. package/dist/AVFoundation/AVSampleBufferAudioRenderer.d.ts +1 -2
  55. package/dist/AVFoundation/AVSampleBufferDisplayLayer.d.ts +1 -1
  56. package/dist/AVFoundation/AVSampleBufferGenerator.d.ts +2 -1
  57. package/dist/AVFoundation/AVSampleBufferGeneratorBatch.d.ts +2 -2
  58. package/dist/AVFoundation/AVSampleBufferRenderSynchronizer.d.ts +3 -3
  59. package/dist/AVFoundation/AVSampleBufferVideoRenderer.d.ts +3 -2
  60. package/dist/AVFoundation/AVURLAsset.d.ts +2 -2
  61. package/dist/AVFoundation/AVVideoComposition.d.ts +6 -4
  62. package/dist/AVFoundation/index.d.ts +1 -1
  63. package/dist/AVFoundation/index.js +1 -1
  64. package/dist/AVKit/AVPictureInPictureControllerDelegate.d.ts +1 -2
  65. package/dist/AVKit/AVPictureInPictureSampleBufferPlaybackDelegate.d.ts +1 -2
  66. package/dist/AVKit/AVPlayerView.d.ts +2 -2
  67. package/dist/AVKit/AVPlayerViewDelegate.d.ts +1 -2
  68. package/dist/AVKit/AVPlayerViewPictureInPictureDelegate.d.ts +1 -2
  69. package/dist/AVRouting/AVCustomRoutingControllerDelegate.d.ts +1 -2
  70. package/dist/Accessibility/AXBrailleMapRenderer.d.ts +3 -3
  71. package/dist/Accessibility/AXCustomContentProvider.d.ts +2 -3
  72. package/dist/Accessibility/AXNumericDataAxisDescriptor.d.ts +4 -5
  73. package/dist/Accessibility/functions.d.ts +2 -2
  74. package/dist/Accessibility/functions.js +1 -1
  75. package/dist/Accessibility/index.d.ts +0 -1
  76. package/dist/Accessibility/index.js +0 -1
  77. package/dist/AccessorySetupKit/ASAccessorySession.d.ts +12 -10
  78. package/dist/AccessorySetupKit/ASErrorCode.d.ts +15 -0
  79. package/dist/AccessorySetupKit/ASErrorCode.js +15 -0
  80. package/dist/AccessorySetupKit/index.d.ts +1 -0
  81. package/dist/AccessorySetupKit/index.js +1 -0
  82. package/dist/Accounts/ACAccountStore.d.ts +7 -6
  83. package/dist/AdServices/AAAttributionErrorCode.d.ts +6 -0
  84. package/dist/AdServices/AAAttributionErrorCode.js +6 -0
  85. package/dist/AdServices/index.d.ts +1 -0
  86. package/dist/AdServices/index.js +1 -0
  87. package/dist/AddressBook/index.d.ts +0 -1
  88. package/dist/AddressBook/index.js +0 -1
  89. package/dist/AppKit/NSAccessibilityCustomAction.d.ts +3 -4
  90. package/dist/AppKit/NSAlert.d.ts +1 -1
  91. package/dist/AppKit/NSAnimationContext.d.ts +4 -5
  92. package/dist/AppKit/NSAppearance.d.ts +1 -2
  93. package/dist/AppKit/NSApplication.d.ts +3 -2
  94. package/dist/AppKit/NSApplicationDelegate.d.ts +1 -1
  95. package/dist/AppKit/NSButton.d.ts +3 -2
  96. package/dist/AppKit/NSCandidateListTouchBarItem.d.ts +3 -2
  97. package/dist/AppKit/NSCell.d.ts +3 -2
  98. package/dist/AppKit/NSCollectionLayoutGroup.d.ts +2 -2
  99. package/dist/AppKit/NSCollectionLayoutSection.d.ts +4 -3
  100. package/dist/AppKit/NSCollectionView.d.ts +1 -1
  101. package/dist/AppKit/NSCollectionViewCompositionalLayout.d.ts +3 -3
  102. package/dist/AppKit/NSCollectionViewDiffableDataSource.d.ts +6 -3
  103. package/dist/AppKit/NSColor.d.ts +2 -1
  104. package/dist/AppKit/NSColorSampler.d.ts +2 -2
  105. package/dist/AppKit/NSControlStateValue.d.ts +6 -0
  106. package/dist/AppKit/NSControlStateValue.js +6 -0
  107. package/dist/AppKit/NSCursor.d.ts +2 -2
  108. package/dist/AppKit/NSCursorFrameResizePosition.d.ts +11 -0
  109. package/dist/AppKit/NSCursorFrameResizePosition.js +11 -0
  110. package/dist/AppKit/NSCustomImageRep.d.ts +3 -2
  111. package/dist/AppKit/NSDocument.d.ts +20 -20
  112. package/dist/AppKit/NSDocumentController.d.ts +4 -4
  113. package/dist/AppKit/NSDraggingInfo.d.ts +2 -1
  114. package/dist/AppKit/NSDraggingItem.d.ts +2 -2
  115. package/dist/AppKit/NSDraggingSession.d.ts +2 -1
  116. package/dist/AppKit/NSEvent.d.ts +3 -3
  117. package/dist/AppKit/NSFilePromiseProviderDelegate.d.ts +2 -2
  118. package/dist/AppKit/NSFilePromiseReceiver.d.ts +2 -2
  119. package/dist/AppKit/NSFontAssetRequest.d.ts +2 -2
  120. package/dist/AppKit/NSImage.d.ts +1 -1
  121. package/dist/AppKit/NSLayoutManager.d.ts +2 -2
  122. package/dist/AppKit/NSMenu.d.ts +2 -2
  123. package/dist/AppKit/NSMenuItem.d.ts +3 -2
  124. package/dist/AppKit/NSModalResponse.d.ts +11 -0
  125. package/dist/AppKit/NSModalResponse.js +11 -0
  126. package/dist/AppKit/NSPDFPanel.d.ts +1 -2
  127. package/dist/AppKit/NSPageLayout.d.ts +2 -1
  128. package/dist/AppKit/NSPasteboard.d.ts +4 -3
  129. package/dist/AppKit/NSPasteboardItem.d.ts +5 -3
  130. package/dist/AppKit/NSPrintPanel.d.ts +2 -1
  131. package/dist/AppKit/NSSavePanel.d.ts +2 -2
  132. package/dist/AppKit/NSScrubber.d.ts +1 -1
  133. package/dist/AppKit/NSSharingService.d.ts +1 -2
  134. package/dist/AppKit/NSSliderAccessoryBehavior.d.ts +1 -1
  135. package/dist/AppKit/NSSpellChecker.d.ts +3 -3
  136. package/dist/AppKit/NSStepperTouchBarItem.d.ts +2 -1
  137. package/dist/AppKit/NSStoryboard.d.ts +3 -2
  138. package/dist/AppKit/NSStoryboardSegue.d.ts +1 -1
  139. package/dist/AppKit/NSSwitch.d.ts +3 -2
  140. package/dist/AppKit/NSTableView.d.ts +1 -1
  141. package/dist/AppKit/NSTableViewDiffableDataSource.d.ts +9 -6
  142. package/dist/AppKit/NSTableViewRowAction.d.ts +1 -2
  143. package/dist/AppKit/NSTextContentManager.d.ts +3 -3
  144. package/dist/AppKit/NSTextElementProvider.d.ts +4 -3
  145. package/dist/AppKit/NSTextInsertionIndicator.d.ts +2 -3
  146. package/dist/AppKit/NSTextLayoutManager.d.ts +5 -5
  147. package/dist/AppKit/NSTextSelectionDataSource.d.ts +4 -3
  148. package/dist/AppKit/NSTextStorageObserving.d.ts +1 -2
  149. package/dist/AppKit/NSToolbarItem.d.ts +3 -2
  150. package/dist/AppKit/NSToolbarItemVisibilityPriority.d.ts +7 -0
  151. package/dist/AppKit/NSToolbarItemVisibilityPriority.js +7 -0
  152. package/dist/AppKit/NSUserInterfaceItemSearching.d.ts +1 -1
  153. package/dist/AppKit/NSView.d.ts +1 -1
  154. package/dist/AppKit/NSViewController.d.ts +1 -1
  155. package/dist/AppKit/NSWindow.d.ts +7 -6
  156. package/dist/AppKit/NSWindowLevel.d.ts +13 -0
  157. package/dist/AppKit/NSWindowLevel.js +13 -0
  158. package/dist/AppKit/NSWorkspace.d.ts +12 -10
  159. package/dist/AppKit/NSWritingToolsCoordinatorAnimationParameters.d.ts +4 -5
  160. package/dist/AppKit/NSWritingToolsCoordinatorDelegate.d.ts +16 -14
  161. package/dist/AppKit/index.d.ts +5 -1
  162. package/dist/AppKit/index.js +5 -1
  163. package/dist/AppTrackingTransparency/ATTrackingManager.d.ts +1 -2
  164. package/dist/AudioToolbox/AUAudioUnit.d.ts +20 -19
  165. package/dist/AudioToolbox/AUMessageChannel.d.ts +2 -3
  166. package/dist/AudioToolbox/AUParameterNode.d.ts +14 -13
  167. package/dist/AudioToolbox/functions.d.ts +11 -11
  168. package/dist/AudioToolbox/functions.js +11 -11
  169. package/dist/AudioToolbox/index.d.ts +0 -1
  170. package/dist/AudioToolbox/index.js +0 -1
  171. package/dist/AudioVideoBridging/AVB17221ACMPInterface.d.ts +2 -1
  172. package/dist/AudioVideoBridging/AVB17221AECPInterface.d.ts +3 -2
  173. package/dist/AuthenticationServices/ASAccountAuthenticationModificationExtensionContext.d.ts +2 -2
  174. package/dist/AuthenticationServices/ASAuthorizationAppleIDProvider.d.ts +3 -2
  175. package/dist/AuthenticationServices/ASAuthorizationError.d.ts +14 -0
  176. package/dist/AuthenticationServices/ASAuthorizationError.js +14 -0
  177. package/dist/AuthenticationServices/ASAuthorizationProviderExtensionAuthorizationRequest.d.ts +1 -2
  178. package/dist/AuthenticationServices/ASAuthorizationProviderExtensionLoginConfiguration.d.ts +2 -1
  179. package/dist/AuthenticationServices/ASAuthorizationProviderExtensionLoginManager.d.ts +6 -4
  180. package/dist/AuthenticationServices/ASAuthorizationProviderExtensionRegistrationHandler.d.ts +8 -5
  181. package/dist/AuthenticationServices/ASAuthorizationPublicKeyCredentialParameters.d.ts +3 -2
  182. package/dist/AuthenticationServices/ASAuthorizationWebBrowserPublicKeyCredentialManager.d.ts +3 -3
  183. package/dist/AuthenticationServices/ASCOSEAlgorithmIdentifier.d.ts +4 -0
  184. package/dist/AuthenticationServices/ASCOSEAlgorithmIdentifier.js +4 -0
  185. package/dist/AuthenticationServices/ASCOSEEllipticCurveIdentifier.d.ts +4 -0
  186. package/dist/AuthenticationServices/ASCOSEEllipticCurveIdentifier.js +4 -0
  187. package/dist/AuthenticationServices/ASCredentialIdentityStore.d.ts +11 -10
  188. package/dist/AuthenticationServices/ASCredentialIdentityStoreErrorCode.d.ts +6 -0
  189. package/dist/AuthenticationServices/ASCredentialIdentityStoreErrorCode.js +6 -0
  190. package/dist/AuthenticationServices/ASCredentialProviderExtensionContext.d.ts +6 -7
  191. package/dist/AuthenticationServices/ASExtensionErrorCode.d.ts +8 -0
  192. package/dist/AuthenticationServices/ASExtensionErrorCode.js +8 -0
  193. package/dist/AuthenticationServices/ASSettingsHelper.d.ts +4 -4
  194. package/dist/AuthenticationServices/ASWebAuthenticationSession.d.ts +3 -3
  195. package/dist/AuthenticationServices/ASWebAuthenticationSessionErrorCode.d.ts +6 -0
  196. package/dist/AuthenticationServices/ASWebAuthenticationSessionErrorCode.js +6 -0
  197. package/dist/AuthenticationServices/index.d.ts +6 -1
  198. package/dist/AuthenticationServices/index.js +6 -1
  199. package/dist/AutomaticAssessmentConfiguration/AEAssessmentErrorCode.d.ts +8 -0
  200. package/dist/AutomaticAssessmentConfiguration/AEAssessmentErrorCode.js +8 -0
  201. package/dist/AutomaticAssessmentConfiguration/index.d.ts +1 -0
  202. package/dist/AutomaticAssessmentConfiguration/index.js +1 -0
  203. package/dist/BackgroundAssets/BAAssetPackManager.d.ts +9 -6
  204. package/dist/BackgroundAssets/BADownload.d.ts +2 -1
  205. package/dist/BackgroundAssets/BADownloadManager.d.ts +4 -3
  206. package/dist/BackgroundAssets/BADownloadManagerDelegate.d.ts +3 -2
  207. package/dist/BackgroundAssets/BADownloaderExtension.d.ts +3 -2
  208. package/dist/BackgroundAssets/BADownloaderPriority.d.ts +2 -0
  209. package/dist/BackgroundAssets/BADownloaderPriority.js +2 -0
  210. package/dist/BackgroundAssets/BAURLDownload.d.ts +3 -2
  211. package/dist/BackgroundAssets/index.d.ts +1 -0
  212. package/dist/BackgroundAssets/index.js +1 -0
  213. package/dist/BackgroundTasks/BGTask.d.ts +2 -3
  214. package/dist/BackgroundTasks/BGTaskScheduler.d.ts +4 -2
  215. package/dist/BackgroundTasks/BGTaskSchedulerErrorCode.d.ts +7 -0
  216. package/dist/BackgroundTasks/BGTaskSchedulerErrorCode.js +7 -0
  217. package/dist/BackgroundTasks/index.d.ts +1 -0
  218. package/dist/BackgroundTasks/index.js +1 -0
  219. package/dist/BrowserEngineCore/index.d.ts +0 -1
  220. package/dist/BrowserEngineCore/index.js +0 -1
  221. package/dist/BrowserEngineKit/BEDownloadMonitor.d.ts +5 -4
  222. package/dist/BrowserEngineKit/BELayerHierarchyHandle.d.ts +1 -1
  223. package/dist/BrowserEngineKit/BELayerHierarchyHostingTransactionCoordinator.d.ts +1 -1
  224. package/dist/BrowserEngineKit/BENetworkingProcess.d.ts +4 -3
  225. package/dist/BrowserEngineKit/BERenderingProcess.d.ts +4 -3
  226. package/dist/BrowserEngineKit/BEWebContentFilter.d.ts +4 -3
  227. package/dist/BrowserEngineKit/BEWebContentProcess.d.ts +4 -3
  228. package/dist/CallKit/CXCallController.d.ts +4 -4
  229. package/dist/CallKit/CXCallDirectoryExtensionContext.d.ts +1 -2
  230. package/dist/CallKit/CXCallDirectoryManager.d.ts +5 -4
  231. package/dist/CallKit/CXErrorCode.d.ts +7 -0
  232. package/dist/CallKit/CXErrorCode.js +7 -0
  233. package/dist/CallKit/CXErrorCodeCallDirectoryManagerError.d.ts +12 -0
  234. package/dist/CallKit/CXErrorCodeCallDirectoryManagerError.js +12 -0
  235. package/dist/CallKit/CXErrorCodeIncomingCallError.d.ts +11 -0
  236. package/dist/CallKit/CXErrorCodeIncomingCallError.js +11 -0
  237. package/dist/CallKit/CXErrorCodeNotificationServiceExtensionError.d.ts +6 -0
  238. package/dist/CallKit/CXErrorCodeNotificationServiceExtensionError.js +6 -0
  239. package/dist/CallKit/CXErrorCodeRequestTransactionError.d.ts +12 -0
  240. package/dist/CallKit/CXErrorCodeRequestTransactionError.js +12 -0
  241. package/dist/CallKit/CXProvider.d.ts +3 -2
  242. package/dist/CallKit/index.d.ts +5 -0
  243. package/dist/CallKit/index.js +5 -0
  244. package/dist/Cinematic/CNAssetInfo.d.ts +3 -3
  245. package/dist/Cinematic/CNAssetSpatialAudioInfo.d.ts +3 -3
  246. package/dist/Cinematic/CNCinematicErrorCode.d.ts +10 -0
  247. package/dist/Cinematic/CNCinematicErrorCode.js +10 -0
  248. package/dist/Cinematic/CNRenderingSessionAttributes.d.ts +2 -2
  249. package/dist/Cinematic/CNScript.d.ts +2 -2
  250. package/dist/Cinematic/index.d.ts +1 -0
  251. package/dist/Cinematic/index.js +1 -0
  252. package/dist/ClassKit/CLSContext.d.ts +2 -1
  253. package/dist/ClassKit/CLSContextProvider.d.ts +2 -2
  254. package/dist/ClassKit/CLSDataStore.d.ts +5 -5
  255. package/dist/ClassKit/CLSErrorCode.d.ts +14 -0
  256. package/dist/ClassKit/CLSErrorCode.js +14 -0
  257. package/dist/ClassKit/index.d.ts +1 -0
  258. package/dist/ClassKit/index.js +1 -0
  259. package/dist/CloudKit/CKAcceptSharesOperation.d.ts +7 -5
  260. package/dist/CloudKit/CKContainer.d.ts +22 -16
  261. package/dist/CloudKit/CKDatabase.d.ts +14 -13
  262. package/dist/CloudKit/CKDiscoverAllUserIdentitiesOperation.d.ts +6 -5
  263. package/dist/CloudKit/CKDiscoverUserIdentitiesOperation.d.ts +7 -5
  264. package/dist/CloudKit/CKFetchDatabaseChangesOperation.d.ts +14 -13
  265. package/dist/CloudKit/CKFetchRecordChangesOperation.d.ts +10 -7
  266. package/dist/CloudKit/CKFetchRecordZoneChangesOperation.d.ts +19 -13
  267. package/dist/CloudKit/CKFetchRecordZonesOperation.d.ts +8 -5
  268. package/dist/CloudKit/CKFetchRecordsOperation.d.ts +10 -7
  269. package/dist/CloudKit/CKFetchShareMetadataOperation.d.ts +7 -5
  270. package/dist/CloudKit/CKFetchShareParticipantsOperation.d.ts +9 -7
  271. package/dist/CloudKit/CKFetchSubscriptionsOperation.d.ts +8 -5
  272. package/dist/CloudKit/CKFetchWebAuthTokenOperation.d.ts +3 -3
  273. package/dist/CloudKit/CKModifyRecordZonesOperation.d.ts +9 -7
  274. package/dist/CloudKit/CKModifyRecordsOperation.d.ts +13 -11
  275. package/dist/CloudKit/CKModifySubscriptionsOperation.d.ts +9 -7
  276. package/dist/CloudKit/CKOperation.d.ts +2 -3
  277. package/dist/CloudKit/CKQueryOperation.d.ts +9 -7
  278. package/dist/CloudKit/CKShareRequestAccessOperation.d.ts +6 -5
  279. package/dist/CloudKit/CKSyncEngine.d.ts +6 -6
  280. package/dist/CloudKit/CKSyncEngineRecordZoneChangeBatch.d.ts +3 -2
  281. package/dist/CloudKit/CKSystemSharingUIObserver.d.ts +7 -5
  282. package/dist/Collaboration/CBIdentityPicker.d.ts +1 -1
  283. package/dist/Contacts/CNContact.d.ts +1 -1
  284. package/dist/Contacts/CNContactStore.d.ts +3 -2
  285. package/dist/CoreAudio/functions.d.ts +3 -3
  286. package/dist/CoreAudio/functions.js +3 -3
  287. package/dist/CoreAudio/index.d.ts +0 -1
  288. package/dist/CoreAudio/index.js +0 -1
  289. package/dist/CoreData/NSAsynchronousFetchRequest.d.ts +3 -3
  290. package/dist/CoreData/NSBatchInsertRequest.d.ts +12 -11
  291. package/dist/CoreData/NSCoreDataCoreSpotlightDelegate.d.ts +4 -4
  292. package/dist/CoreData/NSCustomMigrationStage.d.ts +5 -4
  293. package/dist/CoreData/NSManagedObjectContext.d.ts +2 -2
  294. package/dist/CoreData/NSPersistentCloudKitContainer.d.ts +8 -5
  295. package/dist/CoreData/NSPersistentContainer.d.ts +4 -3
  296. package/dist/CoreData/NSPersistentStoreCoordinator.d.ts +4 -3
  297. package/dist/CoreHaptics/CHHapticAdvancedPatternPlayer.d.ts +3 -2
  298. package/dist/CoreHaptics/CHHapticEngine.d.ts +10 -7
  299. package/dist/CoreHaptics/CHHapticErrorCode.d.ts +27 -0
  300. package/dist/CoreHaptics/CHHapticErrorCode.js +27 -0
  301. package/dist/CoreHaptics/index.d.ts +1 -0
  302. package/dist/CoreHaptics/index.js +1 -0
  303. package/dist/CoreImage/CIKernel.d.ts +1 -1
  304. package/dist/CoreImage/CIRenderDestination.d.ts +1 -1
  305. package/dist/CoreImage/CIWarpKernel.d.ts +1 -2
  306. package/dist/CoreLocation/CLBackgroundActivitySession.d.ts +2 -2
  307. package/dist/CoreLocation/CLGeocoder.d.ts +11 -9
  308. package/dist/CoreLocation/CLLocationManager.d.ts +6 -3
  309. package/dist/CoreLocation/CLLocationManagerDelegate.d.ts +2 -1
  310. package/dist/CoreLocation/CLLocationPushServiceError.d.ts +8 -0
  311. package/dist/CoreLocation/CLLocationPushServiceError.js +8 -0
  312. package/dist/CoreLocation/CLLocationPushServiceExtension.d.ts +1 -2
  313. package/dist/CoreLocation/CLLocationUpdater.d.ts +3 -3
  314. package/dist/CoreLocation/CLMonitor.d.ts +1 -2
  315. package/dist/CoreLocation/CLMonitorConfiguration.d.ts +4 -3
  316. package/dist/CoreLocation/CLRegionState.d.ts +6 -0
  317. package/dist/CoreLocation/CLRegionState.js +6 -0
  318. package/dist/CoreLocation/CLServiceSession.d.ts +3 -3
  319. package/dist/CoreLocation/index.d.ts +2 -0
  320. package/dist/CoreLocation/index.js +2 -0
  321. package/dist/CoreMIDI/MIDICIDiscoveryManager.d.ts +2 -2
  322. package/dist/CoreMIDI/MIDICISession.d.ts +6 -5
  323. package/dist/CoreMIDI/MIDIUMPMutableEndpoint.d.ts +1 -1
  324. package/dist/CoreMIDI/functions.d.ts +5 -5
  325. package/dist/CoreMIDI/functions.js +5 -5
  326. package/dist/CoreMIDI/index.d.ts +0 -1
  327. package/dist/CoreMIDI/index.js +0 -1
  328. package/dist/CoreML/MLComputePlan.d.ts +3 -3
  329. package/dist/CoreML/MLModel.d.ts +7 -6
  330. package/dist/CoreML/MLModelAsset.d.ts +6 -3
  331. package/dist/CoreML/MLModelCollection.d.ts +3 -2
  332. package/dist/CoreML/MLModelStructure.d.ts +3 -3
  333. package/dist/CoreML/MLMultiArray.d.ts +3 -3
  334. package/dist/CoreML/MLState.d.ts +2 -2
  335. package/dist/CoreML/MLUpdateProgressHandlers.d.ts +2 -2
  336. package/dist/CoreML/MLUpdateTask.d.ts +3 -2
  337. package/dist/CoreML/index.d.ts +0 -1
  338. package/dist/CoreML/index.js +0 -1
  339. package/dist/CoreMediaIO/CMIOExtensionStream.d.ts +2 -1
  340. package/dist/CoreMediaIO/functions.d.ts +2 -2
  341. package/dist/CoreMediaIO/functions.js +2 -2
  342. package/dist/CoreMediaIO/index.d.ts +0 -1
  343. package/dist/CoreMediaIO/index.js +0 -1
  344. package/dist/CoreMotion/CMAltimeter.d.ts +5 -3
  345. package/dist/CoreMotion/CMBatchedSensorManager.d.ts +3 -3
  346. package/dist/CoreMotion/CMFallDetectionDelegate.d.ts +1 -2
  347. package/dist/CoreMotion/CMFallDetectionManager.d.ts +1 -2
  348. package/dist/CoreMotion/CMHeadphoneActivityManager.d.ts +5 -3
  349. package/dist/CoreMotion/CMHeadphoneMotionManager.d.ts +2 -2
  350. package/dist/CoreMotion/CMMotionActivityManager.d.ts +5 -3
  351. package/dist/CoreMotion/CMMotionManager.d.ts +7 -5
  352. package/dist/CoreMotion/CMMovementDisorderManager.d.ts +4 -3
  353. package/dist/CoreMotion/CMPedometer.d.ts +6 -4
  354. package/dist/CoreMotion/CMStepCounter.d.ts +3 -3
  355. package/dist/CoreSpotlight/CSSearchQuery.d.ts +5 -5
  356. package/dist/CoreSpotlight/CSSearchableIndex.d.ts +9 -9
  357. package/dist/CoreSpotlight/CSSearchableIndexDelegate.d.ts +3 -3
  358. package/dist/CoreSpotlight/CSUserQuery.d.ts +2 -3
  359. package/dist/CoreTelephony/CTCallCenter.d.ts +3 -2
  360. package/dist/CoreTelephony/CTCellularData.d.ts +2 -3
  361. package/dist/CoreTelephony/CTCellularPlanProvisioning.d.ts +5 -4
  362. package/dist/CoreTelephony/CTCellularPlanStatus.d.ts +3 -3
  363. package/dist/CoreTelephony/CTTelephonyNetworkInfo.d.ts +4 -5
  364. package/dist/CoreText/functions.d.ts +9 -9
  365. package/dist/CoreText/functions.js +9 -9
  366. package/dist/CoreText/index.d.ts +0 -1
  367. package/dist/CoreText/index.js +0 -1
  368. package/dist/CoreWLAN/index.d.ts +0 -1
  369. package/dist/CoreWLAN/index.js +0 -1
  370. package/dist/CryptoTokenKit/TKErrorCode.d.ts +15 -0
  371. package/dist/CryptoTokenKit/TKErrorCode.js +15 -0
  372. package/dist/CryptoTokenKit/TKSmartCard.d.ts +5 -4
  373. package/dist/CryptoTokenKit/TKSmartCardATR.d.ts +1 -2
  374. package/dist/CryptoTokenKit/TKSmartCardSlotManager.d.ts +4 -3
  375. package/dist/CryptoTokenKit/TKSmartCardUserInteraction.d.ts +2 -2
  376. package/dist/CryptoTokenKit/TKTokenWatcher.d.ts +3 -4
  377. package/dist/CryptoTokenKit/index.d.ts +1 -0
  378. package/dist/CryptoTokenKit/index.js +1 -0
  379. package/dist/DeviceCheck/DCAppAttestService.d.ts +4 -4
  380. package/dist/DeviceCheck/DCDevice.d.ts +3 -2
  381. package/dist/DeviceCheck/DCError.d.ts +8 -0
  382. package/dist/DeviceCheck/DCError.js +8 -0
  383. package/dist/DeviceCheck/index.d.ts +1 -0
  384. package/dist/DeviceCheck/index.js +1 -0
  385. package/dist/DeviceDiscoveryExtension/DDErrorCode.d.ts +12 -0
  386. package/dist/DeviceDiscoveryExtension/DDErrorCode.js +12 -0
  387. package/dist/DeviceDiscoveryExtension/index.d.ts +1 -1
  388. package/dist/DeviceDiscoveryExtension/index.js +1 -1
  389. package/dist/DiscRecording/index.d.ts +0 -1
  390. package/dist/DiscRecording/index.js +0 -1
  391. package/dist/DiscRecordingUI/index.d.ts +0 -1
  392. package/dist/DiscRecordingUI/index.js +0 -1
  393. package/dist/EventKit/EKEventStore.d.ts +7 -6
  394. package/dist/EventKit/EKVirtualConferenceProvider.d.ts +5 -3
  395. package/dist/ExceptionHandling/index.d.ts +0 -1
  396. package/dist/ExceptionHandling/index.js +0 -1
  397. package/dist/ExecutionPolicy/EPDeveloperTool.d.ts +1 -2
  398. package/dist/ExecutionPolicy/EPError.d.ts +5 -0
  399. package/dist/ExecutionPolicy/EPError.js +5 -0
  400. package/dist/ExecutionPolicy/index.d.ts +1 -0
  401. package/dist/ExecutionPolicy/index.js +1 -0
  402. package/dist/ExternalAccessory/EAAccessoryManager.d.ts +2 -1
  403. package/dist/FSKit/FSBlockDeviceResource.d.ts +3 -2
  404. package/dist/FSKit/FSClient.d.ts +3 -2
  405. package/dist/FSKit/FSErrorCode.d.ts +10 -0
  406. package/dist/FSKit/FSErrorCode.js +10 -0
  407. package/dist/FSKit/FSFileSystemBase.d.ts +2 -2
  408. package/dist/FSKit/FSOperationID.d.ts +2 -0
  409. package/dist/FSKit/FSOperationID.js +2 -0
  410. package/dist/FSKit/FSTask.d.ts +2 -3
  411. package/dist/FSKit/FSUnaryFileSystemOperations.d.ts +6 -4
  412. package/dist/FSKit/FSVolumeAccessCheckOperations.d.ts +2 -2
  413. package/dist/FSKit/FSVolumeItemDeactivation.d.ts +2 -2
  414. package/dist/FSKit/FSVolumeKernelOffloadedIOOperations.d.ts +6 -5
  415. package/dist/FSKit/FSVolumeOpenCloseOperations.d.ts +3 -3
  416. package/dist/FSKit/FSVolumeOperations.d.ts +18 -17
  417. package/dist/FSKit/FSVolumePreallocateOperations.d.ts +2 -1
  418. package/dist/FSKit/FSVolumeReadWriteOperations.d.ts +3 -2
  419. package/dist/FSKit/FSVolumeRenameOperations.d.ts +2 -2
  420. package/dist/FSKit/FSVolumeXattrOperations.d.ts +4 -4
  421. package/dist/FSKit/index.d.ts +2 -1
  422. package/dist/FSKit/index.js +2 -1
  423. package/dist/FileProvider/NSFileProviderCustomAction.d.ts +2 -2
  424. package/dist/FileProvider/NSFileProviderEnumerator.d.ts +1 -2
  425. package/dist/FileProvider/NSFileProviderErrorCode.d.ts +27 -0
  426. package/dist/FileProvider/NSFileProviderErrorCode.js +27 -0
  427. package/dist/FileProvider/NSFileProviderExtension.d.ts +14 -13
  428. package/dist/FileProvider/NSFileProviderExternalVolumeHandling.d.ts +2 -2
  429. package/dist/FileProvider/NSFileProviderIncrementalContentFetching.d.ts +3 -2
  430. package/dist/FileProvider/NSFileProviderKnownFolderSupporting.d.ts +3 -2
  431. package/dist/FileProvider/NSFileProviderManager.d.ts +25 -23
  432. package/dist/FileProvider/NSFileProviderPartialContentFetching.d.ts +5 -2
  433. package/dist/FileProvider/NSFileProviderReplicatedExtension.d.ts +9 -9
  434. package/dist/FileProvider/NSFileProviderServicing.d.ts +3 -2
  435. package/dist/FileProvider/NSFileProviderThumbnailing.d.ts +4 -2
  436. package/dist/FileProvider/index.d.ts +1 -0
  437. package/dist/FileProvider/index.js +1 -0
  438. package/dist/FinderSync/FIFinderSync.d.ts +3 -1
  439. package/dist/FinderSync/FIFinderSyncController.d.ts +3 -3
  440. package/dist/Foundation/NSArray.d.ts +13 -13
  441. package/dist/Foundation/NSAttributedString.d.ts +2 -2
  442. package/dist/Foundation/NSBackgroundActivityScheduler.d.ts +2 -2
  443. package/dist/Foundation/NSBlockOperation.d.ts +3 -3
  444. package/dist/Foundation/NSBundleResourceRequest.d.ts +3 -3
  445. package/dist/Foundation/NSCalendar.d.ts +1 -1
  446. package/dist/Foundation/NSData.d.ts +2 -2
  447. package/dist/Foundation/NSDictionary.d.ts +6 -6
  448. package/dist/Foundation/NSError.d.ts +2 -2
  449. package/dist/Foundation/NSExpression.d.ts +2 -2
  450. package/dist/Foundation/NSExtensionContext.d.ts +2 -3
  451. package/dist/Foundation/NSFileCoordinator.d.ts +7 -6
  452. package/dist/Foundation/NSFileHandle.d.ts +4 -4
  453. package/dist/Foundation/NSFileManager.d.ts +9 -7
  454. package/dist/Foundation/NSFilePresenter.d.ts +7 -7
  455. package/dist/Foundation/NSFileProviderService.d.ts +3 -2
  456. package/dist/Foundation/NSFileVersion.d.ts +2 -1
  457. package/dist/Foundation/NSHTTPCookieStorage.d.ts +1 -2
  458. package/dist/Foundation/NSIndexSet.d.ts +12 -12
  459. package/dist/Foundation/NSItemProvider.d.ts +15 -12
  460. package/dist/Foundation/NSItemProviderWriting.d.ts +3 -2
  461. package/dist/Foundation/NSLinguisticTagger.d.ts +3 -3
  462. package/dist/Foundation/NSMetadataQuery.d.ts +2 -2
  463. package/dist/Foundation/NSMutableArray.d.ts +2 -2
  464. package/dist/Foundation/NSMutableOrderedSet.d.ts +3 -3
  465. package/dist/Foundation/NSNotificationCenter.d.ts +1 -1
  466. package/dist/Foundation/NSOperation.d.ts +2 -3
  467. package/dist/Foundation/NSOperationQueue.d.ts +2 -3
  468. package/dist/Foundation/NSOrderedCollectionDifference.d.ts +2 -2
  469. package/dist/Foundation/NSOrderedSet.d.ts +13 -13
  470. package/dist/Foundation/NSPredicate.d.ts +1 -1
  471. package/dist/Foundation/NSProcessInfo.d.ts +2 -3
  472. package/dist/Foundation/NSProgress.d.ts +8 -8
  473. package/dist/Foundation/NSRegularExpression.d.ts +2 -1
  474. package/dist/Foundation/NSRunLoop.d.ts +2 -2
  475. package/dist/Foundation/NSSet.d.ts +4 -4
  476. package/dist/Foundation/NSSortDescriptor.d.ts +3 -3
  477. package/dist/Foundation/NSString.d.ts +6 -5
  478. package/dist/Foundation/NSTask.d.ts +3 -3
  479. package/dist/Foundation/NSThread.d.ts +2 -2
  480. package/dist/Foundation/NSTimer.d.ts +3 -3
  481. package/dist/Foundation/NSURLCache.d.ts +1 -2
  482. package/dist/Foundation/NSURLConnection.d.ts +3 -1
  483. package/dist/Foundation/NSURLCredentialStorage.d.ts +2 -3
  484. package/dist/Foundation/NSURLSession.d.ts +14 -13
  485. package/dist/Foundation/NSURLSessionDataDelegate.d.ts +3 -3
  486. package/dist/Foundation/NSURLSessionDelegate.d.ts +3 -2
  487. package/dist/Foundation/NSURLSessionDownloadTask.d.ts +2 -2
  488. package/dist/Foundation/NSURLSessionStreamTask.d.ts +3 -3
  489. package/dist/Foundation/NSURLSessionTaskDelegate.d.ts +9 -6
  490. package/dist/Foundation/NSURLSessionUploadTask.d.ts +2 -2
  491. package/dist/Foundation/NSURLSessionWebSocketTask.d.ts +4 -4
  492. package/dist/Foundation/NSUndoManager.d.ts +1 -1
  493. package/dist/Foundation/NSUserActivity.d.ts +6 -4
  494. package/dist/Foundation/NSUserAppleScriptTask.d.ts +2 -2
  495. package/dist/Foundation/NSUserAutomatorTask.d.ts +2 -1
  496. package/dist/Foundation/NSUserScriptTask.d.ts +2 -1
  497. package/dist/Foundation/NSUserUnixTask.d.ts +2 -2
  498. package/dist/Foundation/NSXPCConnection.d.ts +8 -7
  499. package/dist/Foundation/NSXPCProxyCreating.d.ts +3 -2
  500. package/dist/Foundation/index.d.ts +0 -1
  501. package/dist/Foundation/index.js +0 -1
  502. package/dist/GLKit/GLKTextureLoader.d.ts +9 -8
  503. package/dist/GLKit/index.d.ts +0 -1
  504. package/dist/GLKit/index.js +0 -1
  505. package/dist/GameController/GCAxis2DInput.d.ts +3 -3
  506. package/dist/GameController/GCAxisInput.d.ts +3 -3
  507. package/dist/GameController/GCController.d.ts +3 -3
  508. package/dist/GameController/GCControllerAxisInput.d.ts +2 -3
  509. package/dist/GameController/GCControllerButtonInput.d.ts +6 -7
  510. package/dist/GameController/GCControllerDirectionPad.d.ts +2 -3
  511. package/dist/GameController/GCControllerTouchpad.d.ts +6 -7
  512. package/dist/GameController/GCDevicePhysicalInput.d.ts +5 -5
  513. package/dist/GameController/GCExtendedGamepad.d.ts +3 -3
  514. package/dist/GameController/GCGamepad.d.ts +3 -3
  515. package/dist/GameController/GCKeyboardInput.d.ts +2 -2
  516. package/dist/GameController/GCLinearInput.d.ts +3 -3
  517. package/dist/GameController/GCMicroGamepad.d.ts +3 -3
  518. package/dist/GameController/GCMotion.d.ts +2 -3
  519. package/dist/GameController/GCMouseInput.d.ts +2 -3
  520. package/dist/GameController/GCPhysicalInputProfile.d.ts +2 -3
  521. package/dist/GameController/GCPressedStateInput.d.ts +3 -3
  522. package/dist/GameController/GCRelativeInput.d.ts +3 -3
  523. package/dist/GameController/GCSwitchPositionInput.d.ts +3 -3
  524. package/dist/GameController/GCTouchedStateInput.d.ts +3 -3
  525. package/dist/GameController/index.d.ts +0 -1
  526. package/dist/GameController/index.js +0 -1
  527. package/dist/GameKit/GKAccessPoint.d.ts +13 -14
  528. package/dist/GameKit/GKAchievement.d.ts +11 -11
  529. package/dist/GameKit/GKAchievementDescription.d.ts +4 -3
  530. package/dist/GameKit/GKChallenge.d.ts +3 -2
  531. package/dist/GameKit/GKChallengeDefinition.d.ts +5 -4
  532. package/dist/GameKit/GKCloudPlayer.d.ts +2 -2
  533. package/dist/GameKit/GKGameActivity.d.ts +5 -3
  534. package/dist/GameKit/GKGameActivityDefinition.d.ts +7 -6
  535. package/dist/GameKit/GKGameActivityListener.d.ts +1 -2
  536. package/dist/GameKit/GKGameSession.d.ts +13 -12
  537. package/dist/GameKit/GKLeaderboard.d.ts +14 -12
  538. package/dist/GameKit/GKLeaderboardEntry.d.ts +2 -3
  539. package/dist/GameKit/GKLeaderboardSet.d.ts +7 -5
  540. package/dist/GameKit/GKLocalPlayer.d.ts +24 -20
  541. package/dist/GameKit/GKMatch.d.ts +5 -3
  542. package/dist/GameKit/GKMatchRequest.d.ts +6 -4
  543. package/dist/GameKit/GKMatchmaker.d.ts +17 -15
  544. package/dist/GameKit/GKMatchmakerViewControllerDelegate.d.ts +1 -1
  545. package/dist/GameKit/GKNotificationBanner.d.ts +2 -3
  546. package/dist/GameKit/GKPlayer.d.ts +4 -3
  547. package/dist/GameKit/GKSavedGame.d.ts +3 -2
  548. package/dist/GameKit/GKScore.d.ts +8 -8
  549. package/dist/GameKit/GKTurnBasedExchange.d.ts +3 -3
  550. package/dist/GameKit/GKTurnBasedMatch.d.ts +22 -21
  551. package/dist/GameKit/GKVoiceChat.d.ts +5 -5
  552. package/dist/GameSave/GSSyncedDirectory.d.ts +3 -4
  553. package/dist/GameplayKit/GKRule.d.ts +1 -2
  554. package/dist/HealthKit/HKActivitySummaryQuery.d.ts +5 -4
  555. package/dist/HealthKit/HKAnchoredObjectQuery.d.ts +6 -6
  556. package/dist/HealthKit/HKAttachmentStore.d.ts +8 -6
  557. package/dist/HealthKit/HKCorrelationQuery.d.ts +3 -2
  558. package/dist/HealthKit/HKDocumentQuery.d.ts +2 -2
  559. package/dist/HealthKit/HKElectrocardiogramQuery.d.ts +3 -2
  560. package/dist/HealthKit/HKHealthStore.d.ts +25 -22
  561. package/dist/HealthKit/HKHeartbeatSeriesBuilder.d.ts +5 -4
  562. package/dist/HealthKit/HKHeartbeatSeriesQuery.d.ts +2 -2
  563. package/dist/HealthKit/HKObserverQuery.d.ts +4 -3
  564. package/dist/HealthKit/HKQuantitySeriesSampleBuilder.d.ts +4 -2
  565. package/dist/HealthKit/HKQuantitySeriesSampleQuery.d.ts +6 -3
  566. package/dist/HealthKit/HKSampleQuery.d.ts +4 -4
  567. package/dist/HealthKit/HKSourceQuery.d.ts +3 -2
  568. package/dist/HealthKit/HKStatisticsCollection.d.ts +1 -1
  569. package/dist/HealthKit/HKStatisticsCollectionQuery.d.ts +7 -5
  570. package/dist/HealthKit/HKStatisticsQuery.d.ts +3 -2
  571. package/dist/HealthKit/HKUserAnnotatedMedicationQuery.d.ts +3 -2
  572. package/dist/HealthKit/HKVerifiableClinicalRecordQuery.d.ts +3 -3
  573. package/dist/HealthKit/HKWorkoutBuilder.d.ts +11 -10
  574. package/dist/HealthKit/HKWorkoutEffortRelationshipQuery.d.ts +3 -2
  575. package/dist/HealthKit/HKWorkoutRouteBuilder.d.ts +5 -4
  576. package/dist/HealthKit/HKWorkoutRouteQuery.d.ts +4 -3
  577. package/dist/HealthKit/HKWorkoutSession.d.ts +4 -3
  578. package/dist/HealthKit/index.d.ts +0 -1
  579. package/dist/HealthKit/index.js +0 -1
  580. package/dist/IOSurface/index.d.ts +0 -1
  581. package/dist/IOSurface/index.js +0 -1
  582. package/dist/IOUSBHost/IOUSBHostControllerInterface.d.ts +1 -1
  583. package/dist/IOUSBHost/IOUSBHostInterface.d.ts +1 -1
  584. package/dist/IOUSBHost/IOUSBHostObject.d.ts +5 -5
  585. package/dist/IOUSBHost/IOUSBHostPipe.d.ts +6 -6
  586. package/dist/IOUSBHost/IOUSBHostStream.d.ts +1 -1
  587. package/dist/IOUSBHost/index.d.ts +0 -1
  588. package/dist/IOUSBHost/index.js +0 -1
  589. package/dist/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.d.ts +2 -2
  590. package/dist/IdentityLookup/ILMessageFilterError.d.ts +8 -0
  591. package/dist/IdentityLookup/ILMessageFilterError.js +8 -0
  592. package/dist/IdentityLookup/ILMessageFilterExtensionContext.d.ts +3 -2
  593. package/dist/IdentityLookup/ILMessageFilterQueryHandling.d.ts +2 -2
  594. package/dist/IdentityLookup/index.d.ts +1 -0
  595. package/dist/IdentityLookup/index.js +1 -0
  596. package/dist/ImageCaptureCore/ICCameraDevice.d.ts +5 -4
  597. package/dist/ImageCaptureCore/ICCameraFile.d.ts +8 -6
  598. package/dist/ImageCaptureCore/ICDevice.d.ts +4 -3
  599. package/dist/ImageCaptureCore/ICDeviceBrowser.d.ts +5 -4
  600. package/dist/ImageCaptureCore/ICLegacyReturnCode.d.ts +25 -0
  601. package/dist/ImageCaptureCore/ICLegacyReturnCode.js +25 -0
  602. package/dist/ImageCaptureCore/ICReturnCode.d.ts +43 -0
  603. package/dist/ImageCaptureCore/ICReturnCode.js +43 -0
  604. package/dist/ImageCaptureCore/ICReturnConnectionErrorCode.d.ts +11 -0
  605. package/dist/ImageCaptureCore/ICReturnConnectionErrorCode.js +11 -0
  606. package/dist/ImageCaptureCore/ICReturnDownloadErrorCode.d.ts +5 -0
  607. package/dist/ImageCaptureCore/ICReturnDownloadErrorCode.js +5 -0
  608. package/dist/ImageCaptureCore/ICReturnMetadataErrorCode.d.ts +7 -0
  609. package/dist/ImageCaptureCore/ICReturnMetadataErrorCode.js +7 -0
  610. package/dist/ImageCaptureCore/ICReturnObjectErrorCode.d.ts +8 -0
  611. package/dist/ImageCaptureCore/ICReturnObjectErrorCode.js +8 -0
  612. package/dist/ImageCaptureCore/ICReturnPTPDeviceErrorCode.d.ts +5 -0
  613. package/dist/ImageCaptureCore/ICReturnPTPDeviceErrorCode.js +5 -0
  614. package/dist/ImageCaptureCore/ICReturnThumbnailErrorCode.d.ts +7 -0
  615. package/dist/ImageCaptureCore/ICReturnThumbnailErrorCode.js +7 -0
  616. package/dist/ImageCaptureCore/index.d.ts +8 -0
  617. package/dist/ImageCaptureCore/index.js +8 -0
  618. package/dist/InstantMessage/index.d.ts +0 -1
  619. package/dist/InstantMessage/index.js +0 -1
  620. package/dist/Intents/INActivateCarSignalIntentHandling.d.ts +7 -5
  621. package/dist/Intents/INAddMediaIntentHandling.d.ts +7 -5
  622. package/dist/Intents/INAddTasksIntentHandling.d.ts +17 -10
  623. package/dist/Intents/INAnswerCallIntentHandling.d.ts +3 -3
  624. package/dist/Intents/INAppendToNoteIntentHandling.d.ts +7 -5
  625. package/dist/Intents/INBookRestaurantReservationIntentHandling.d.ts +13 -8
  626. package/dist/Intents/INCancelRideIntentHandling.d.ts +3 -3
  627. package/dist/Intents/INCancelWorkoutIntentHandling.d.ts +5 -4
  628. package/dist/Intents/INCreateNoteIntentHandling.d.ts +8 -6
  629. package/dist/Intents/INCreateTaskListIntentHandling.d.ts +8 -6
  630. package/dist/Intents/INDeleteTasksIntentHandling.d.ts +7 -5
  631. package/dist/Intents/INEditMessageIntentHandling.d.ts +5 -4
  632. package/dist/Intents/INEndWorkoutIntentHandling.d.ts +5 -4
  633. package/dist/Intents/INFocusStatusCenter.d.ts +1 -2
  634. package/dist/Intents/INGetAvailableRestaurantReservationBookingDefaultsIntentHandling.d.ts +5 -4
  635. package/dist/Intents/INGetAvailableRestaurantReservationBookingsIntentHandling.d.ts +9 -6
  636. package/dist/Intents/INGetCarLockStatusIntentHandling.d.ts +5 -4
  637. package/dist/Intents/INGetCarPowerLevelStatusIntentHandling.d.ts +5 -4
  638. package/dist/Intents/INGetRestaurantGuestIntentHandling.d.ts +3 -3
  639. package/dist/Intents/INGetRideStatusIntentHandling.d.ts +3 -3
  640. package/dist/Intents/INGetUserCurrentRestaurantReservationBookingsIntentHandling.d.ts +5 -4
  641. package/dist/Intents/INGetVisualCodeIntentHandling.d.ts +5 -4
  642. package/dist/Intents/INHangUpCallIntentHandling.d.ts +3 -3
  643. package/dist/Intents/INInteraction.d.ts +5 -4
  644. package/dist/Intents/INListCarsIntentHandling.d.ts +3 -3
  645. package/dist/Intents/INListRideOptionsIntentHandling.d.ts +6 -5
  646. package/dist/Intents/INPauseWorkoutIntentHandling.d.ts +5 -4
  647. package/dist/Intents/INPayBillIntentHandling.d.ts +16 -10
  648. package/dist/Intents/INPlayMediaIntentHandling.d.ts +14 -9
  649. package/dist/Intents/INPreferences.d.ts +1 -2
  650. package/dist/Intents/INRelevantShortcutStore.d.ts +2 -2
  651. package/dist/Intents/INRequestPaymentIntentHandling.d.ts +13 -8
  652. package/dist/Intents/INRequestRideIntentHandling.d.ts +12 -8
  653. package/dist/Intents/INResumeWorkoutIntentHandling.d.ts +5 -4
  654. package/dist/Intents/INSaveProfileInCarIntentHandling.d.ts +7 -5
  655. package/dist/Intents/INSearchCallHistoryIntentHandling.d.ts +13 -8
  656. package/dist/Intents/INSearchForAccountsIntentHandling.d.ts +10 -7
  657. package/dist/Intents/INSearchForBillsIntentHandling.d.ts +12 -8
  658. package/dist/Intents/INSearchForMediaIntentHandling.d.ts +5 -4
  659. package/dist/Intents/INSearchForMessagesIntentHandling.d.ts +12 -9
  660. package/dist/Intents/INSearchForNotebookItemsIntentHandling.d.ts +23 -13
  661. package/dist/Intents/INSearchForPhotosIntentHandling.d.ts +12 -8
  662. package/dist/Intents/INSendMessageIntentHandling.d.ts +13 -9
  663. package/dist/Intents/INSendPaymentIntentHandling.d.ts +13 -8
  664. package/dist/Intents/INSendRideFeedbackIntentHandling.d.ts +3 -3
  665. package/dist/Intents/INSetAudioSourceInCarIntentHandling.d.ts +7 -5
  666. package/dist/Intents/INSetCarLockStatusIntentHandling.d.ts +7 -5
  667. package/dist/Intents/INSetClimateSettingsInCarIntentHandling.d.ts +23 -15
  668. package/dist/Intents/INSetDefrosterSettingsInCarIntentHandling.d.ts +9 -6
  669. package/dist/Intents/INSetMessageAttributeIntentHandling.d.ts +5 -4
  670. package/dist/Intents/INSetProfileInCarIntentHandling.d.ts +11 -7
  671. package/dist/Intents/INSetRadioStationIntentHandling.d.ts +12 -8
  672. package/dist/Intents/INSetSeatSettingsInCarIntentHandling.d.ts +15 -10
  673. package/dist/Intents/INSetTaskAttributeIntentHandling.d.ts +17 -10
  674. package/dist/Intents/INShareFocusStatusIntentHandling.d.ts +3 -3
  675. package/dist/Intents/INSnoozeTasksIntentHandling.d.ts +7 -5
  676. package/dist/Intents/INStartAudioCallIntentHandling.d.ts +7 -5
  677. package/dist/Intents/INStartCallIntentHandling.d.ts +11 -7
  678. package/dist/Intents/INStartPhotoPlaybackIntentHandling.d.ts +11 -7
  679. package/dist/Intents/INStartVideoCallIntentHandling.d.ts +5 -4
  680. package/dist/Intents/INStartWorkoutIntentHandling.d.ts +13 -8
  681. package/dist/Intents/INTransferMoneyIntentHandling.d.ts +12 -8
  682. package/dist/Intents/INUnsendMessagesIntentHandling.d.ts +3 -3
  683. package/dist/Intents/INUpdateMediaAffinityIntentHandling.d.ts +7 -5
  684. package/dist/Intents/INVoiceShortcutCenter.d.ts +4 -3
  685. package/dist/JavaRuntimeSupport/index.d.ts +0 -1
  686. package/dist/JavaRuntimeSupport/index.js +0 -1
  687. package/dist/JavaScriptCore/JSContext.d.ts +2 -2
  688. package/dist/JavaScriptCore/JSValue.d.ts +1 -1
  689. package/dist/JavaScriptCore/index.d.ts +0 -1
  690. package/dist/JavaScriptCore/index.js +0 -1
  691. package/dist/LinkPresentation/LPErrorCode.d.ts +8 -0
  692. package/dist/LinkPresentation/LPErrorCode.js +8 -0
  693. package/dist/LinkPresentation/LPMetadataProvider.d.ts +4 -3
  694. package/dist/LinkPresentation/index.d.ts +1 -0
  695. package/dist/LinkPresentation/index.js +1 -0
  696. package/dist/LocalAuthentication/LAContext.d.ts +3 -2
  697. package/dist/LocalAuthentication/LAPrivateKey.d.ts +4 -3
  698. package/dist/LocalAuthentication/LAPublicKey.d.ts +4 -3
  699. package/dist/LocalAuthentication/LARight.d.ts +4 -4
  700. package/dist/LocalAuthentication/LARightStore.d.ts +7 -7
  701. package/dist/LocalAuthentication/LASecret.d.ts +3 -2
  702. package/dist/MLCompute/MLCInferenceGraph.d.ts +6 -5
  703. package/dist/MLCompute/MLCTensorData.d.ts +1 -1
  704. package/dist/MLCompute/MLCTrainingGraph.d.ts +8 -8
  705. package/dist/MLCompute/index.d.ts +0 -1
  706. package/dist/MLCompute/index.js +0 -1
  707. package/dist/MailKit/MEComposeSessionErrorCode.d.ts +6 -0
  708. package/dist/MailKit/MEComposeSessionErrorCode.js +6 -0
  709. package/dist/MailKit/MEComposeSessionHandler.d.ts +3 -3
  710. package/dist/MailKit/MEExtensionManager.d.ts +3 -3
  711. package/dist/MailKit/MEMessageActionHandler.d.ts +2 -2
  712. package/dist/MailKit/MEMessageEncoder.d.ts +4 -3
  713. package/dist/MailKit/MEMessageSecurityErrorCode.d.ts +5 -0
  714. package/dist/MailKit/MEMessageSecurityErrorCode.js +5 -0
  715. package/dist/MailKit/MEMessageSecurityHandler.d.ts +1 -2
  716. package/dist/MailKit/index.d.ts +2 -0
  717. package/dist/MailKit/index.js +2 -0
  718. package/dist/MapKit/MKDirections.d.ts +5 -3
  719. package/dist/MapKit/MKGeocodingRequest.d.ts +3 -2
  720. package/dist/MapKit/MKLocalSearch.d.ts +3 -2
  721. package/dist/MapKit/MKLookAroundSceneRequest.d.ts +3 -2
  722. package/dist/MapKit/MKLookAroundSnapshotter.d.ts +3 -2
  723. package/dist/MapKit/MKMapItem.d.ts +2 -2
  724. package/dist/MapKit/MKMapItemRequest.d.ts +3 -1
  725. package/dist/MapKit/MKMapSnapshotter.d.ts +4 -3
  726. package/dist/MapKit/MKReverseGeocodingRequest.d.ts +3 -1
  727. package/dist/MapKit/MKTileOverlay.d.ts +3 -2
  728. package/dist/MapKit/index.d.ts +0 -1
  729. package/dist/MapKit/index.js +0 -1
  730. package/dist/Matter/MTRAsyncCallbackQueueWorkItem.d.ts +4 -4
  731. package/dist/Matter/MTRAttributeCacheContainer.d.ts +3 -2
  732. package/dist/Matter/MTRBaseClusterAccessControl.d.ts +77 -76
  733. package/dist/Matter/MTRBaseClusterAccountLogin.d.ts +41 -39
  734. package/dist/Matter/MTRBaseClusterActions.d.ts +75 -73
  735. package/dist/Matter/MTRBaseClusterActivatedCarbonFilterMonitoring.d.ts +39 -38
  736. package/dist/Matter/MTRBaseClusterAdministratorCommissioning.d.ts +58 -57
  737. package/dist/Matter/MTRBaseClusterAirQuality.d.ts +20 -19
  738. package/dist/Matter/MTRBaseClusterApplicationBasic.d.ts +83 -79
  739. package/dist/Matter/MTRBaseClusterApplicationLauncher.d.ts +58 -56
  740. package/dist/Matter/MTRBaseClusterAudioOutput.d.ts +48 -47
  741. package/dist/Matter/MTRBaseClusterBallastConfiguration.d.ts +156 -155
  742. package/dist/Matter/MTRBaseClusterBarrierControl.d.ts +122 -121
  743. package/dist/Matter/MTRBaseClusterBasic.d.ts +86 -84
  744. package/dist/Matter/MTRBaseClusterBasicInformation.d.ts +94 -91
  745. package/dist/Matter/MTRBaseClusterBinaryInputBasic.d.ts +110 -109
  746. package/dist/Matter/MTRBaseClusterBinding.d.ts +41 -41
  747. package/dist/Matter/MTRBaseClusterBooleanState.d.ts +38 -37
  748. package/dist/Matter/MTRBaseClusterBooleanStateConfiguration.d.ts +45 -44
  749. package/dist/Matter/MTRBaseClusterBridgedDeviceBasic.d.ts +64 -63
  750. package/dist/Matter/MTRBaseClusterBridgedDeviceBasicInformation.d.ts +72 -70
  751. package/dist/Matter/MTRBaseClusterCarbonDioxideConcentrationMeasurement.d.ts +50 -49
  752. package/dist/Matter/MTRBaseClusterCarbonMonoxideConcentrationMeasurement.d.ts +50 -49
  753. package/dist/Matter/MTRBaseClusterChannel.d.ts +66 -59
  754. package/dist/Matter/MTRBaseClusterColorControl.d.ts +435 -433
  755. package/dist/Matter/MTRBaseClusterCommissionerControl.d.ts +23 -21
  756. package/dist/Matter/MTRBaseClusterContentAppObserver.d.ts +19 -17
  757. package/dist/Matter/MTRBaseClusterContentLauncher.d.ts +54 -51
  758. package/dist/Matter/MTRBaseClusterDescriptor.d.ts +56 -55
  759. package/dist/Matter/MTRBaseClusterDeviceEnergyManagement.d.ts +54 -51
  760. package/dist/Matter/MTRBaseClusterDeviceEnergyManagementMode.d.ts +25 -23
  761. package/dist/Matter/MTRBaseClusterDiagnosticLogs.d.ts +35 -33
  762. package/dist/Matter/MTRBaseClusterDishwasherAlarm.d.ts +31 -30
  763. package/dist/Matter/MTRBaseClusterDishwasherMode.d.ts +25 -23
  764. package/dist/Matter/MTRBaseClusterDoorLock.d.ts +397 -389
  765. package/dist/Matter/MTRBaseClusterElectricalEnergyMeasurement.d.ts +38 -34
  766. package/dist/Matter/MTRBaseClusterElectricalMeasurement.d.ts +838 -837
  767. package/dist/Matter/MTRBaseClusterElectricalPowerMeasurement.d.ts +74 -73
  768. package/dist/Matter/MTRBaseClusterEnergyEVSE.d.ts +85 -83
  769. package/dist/Matter/MTRBaseClusterEnergyEVSEMode.d.ts +25 -23
  770. package/dist/Matter/MTRBaseClusterEthernetNetworkDiagnostics.d.ts +90 -89
  771. package/dist/Matter/MTRBaseClusterFanControl.d.ts +128 -127
  772. package/dist/Matter/MTRBaseClusterFixedLabel.d.ts +38 -37
  773. package/dist/Matter/MTRBaseClusterFlowMeasurement.d.ts +56 -55
  774. package/dist/Matter/MTRBaseClusterFormaldehydeConcentrationMeasurement.d.ts +50 -49
  775. package/dist/Matter/MTRBaseClusterGeneralCommissioning.d.ts +78 -73
  776. package/dist/Matter/MTRBaseClusterGeneralDiagnostics.d.ts +93 -90
  777. package/dist/Matter/MTRBaseClusterGroupKeyManagement.d.ts +70 -68
  778. package/dist/Matter/MTRBaseClusterGroups.d.ts +56 -51
  779. package/dist/Matter/MTRBaseClusterHEPAFilterMonitoring.d.ts +39 -38
  780. package/dist/Matter/MTRBaseClusterICDManagement.d.ts +53 -49
  781. package/dist/Matter/MTRBaseClusterIdentify.d.ts +52 -51
  782. package/dist/Matter/MTRBaseClusterIlluminanceMeasurement.d.ts +62 -61
  783. package/dist/Matter/MTRBaseClusterKeypadInput.d.ts +35 -33
  784. package/dist/Matter/MTRBaseClusterLaundryDryerControls.d.ts +25 -24
  785. package/dist/Matter/MTRBaseClusterLaundryWasherControls.d.ts +33 -32
  786. package/dist/Matter/MTRBaseClusterLaundryWasherMode.d.ts +25 -23
  787. package/dist/Matter/MTRBaseClusterLevelControl.d.ts +162 -161
  788. package/dist/Matter/MTRBaseClusterLocalizationConfiguration.d.ts +48 -47
  789. package/dist/Matter/MTRBaseClusterLowPower.d.ts +36 -35
  790. package/dist/Matter/MTRBaseClusterMediaInput.d.ts +56 -55
  791. package/dist/Matter/MTRBaseClusterMediaPlayback.d.ts +119 -115
  792. package/dist/Matter/MTRBaseClusterMessages.d.ts +25 -24
  793. package/dist/Matter/MTRBaseClusterMicrowaveOvenControl.d.ts +41 -40
  794. package/dist/Matter/MTRBaseClusterMicrowaveOvenMode.d.ts +23 -22
  795. package/dist/Matter/MTRBaseClusterModeSelect.d.ts +79 -77
  796. package/dist/Matter/MTRBaseClusterNetworkCommissioning.d.ts +110 -105
  797. package/dist/Matter/MTRBaseClusterNitrogenDioxideConcentrationMeasurement.d.ts +50 -49
  798. package/dist/Matter/MTRBaseClusterOccupancySensing.d.ts +149 -147
  799. package/dist/Matter/MTRBaseClusterOnOff.d.ts +94 -93
  800. package/dist/Matter/MTRBaseClusterOnOffSwitchConfiguration.d.ts +48 -47
  801. package/dist/Matter/MTRBaseClusterOperationalCredentials.d.ts +88 -83
  802. package/dist/Matter/MTRBaseClusterOperationalState.d.ts +45 -42
  803. package/dist/Matter/MTRBaseClusterOtaSoftwareUpdateProvider.d.ts +40 -37
  804. package/dist/Matter/MTRBaseClusterOtaSoftwareUpdateRequestor.d.ts +61 -61
  805. package/dist/Matter/MTRBaseClusterOvenCavityOperationalState.d.ts +41 -38
  806. package/dist/Matter/MTRBaseClusterOvenMode.d.ts +25 -23
  807. package/dist/Matter/MTRBaseClusterOzoneConcentrationMeasurement.d.ts +50 -49
  808. package/dist/Matter/MTRBaseClusterPM10ConcentrationMeasurement.d.ts +50 -49
  809. package/dist/Matter/MTRBaseClusterPM1ConcentrationMeasurement.d.ts +50 -49
  810. package/dist/Matter/MTRBaseClusterPM25ConcentrationMeasurement.d.ts +50 -49
  811. package/dist/Matter/MTRBaseClusterPowerSource.d.ts +222 -220
  812. package/dist/Matter/MTRBaseClusterPowerSourceConfiguration.d.ts +38 -37
  813. package/dist/Matter/MTRBaseClusterPowerTopology.d.ts +23 -22
  814. package/dist/Matter/MTRBaseClusterPressureMeasurement.d.ts +86 -85
  815. package/dist/Matter/MTRBaseClusterPumpConfigurationAndControl.d.ts +186 -185
  816. package/dist/Matter/MTRBaseClusterRVCCleanMode.d.ts +25 -23
  817. package/dist/Matter/MTRBaseClusterRVCOperationalState.d.ts +43 -40
  818. package/dist/Matter/MTRBaseClusterRVCRunMode.d.ts +25 -23
  819. package/dist/Matter/MTRBaseClusterRadonConcentrationMeasurement.d.ts +50 -49
  820. package/dist/Matter/MTRBaseClusterRefrigeratorAlarm.d.ts +26 -25
  821. package/dist/Matter/MTRBaseClusterRefrigeratorAndTemperatureControlledCabinetMode.d.ts +25 -23
  822. package/dist/Matter/MTRBaseClusterRelativeHumidityMeasurement.d.ts +56 -55
  823. package/dist/Matter/MTRBaseClusterServiceArea.d.ts +39 -36
  824. package/dist/Matter/MTRBaseClusterSmokeCOAlarm.d.ts +60 -59
  825. package/dist/Matter/MTRBaseClusterSoftwareDiagnostics.d.ts +60 -59
  826. package/dist/Matter/MTRBaseClusterSwitch.d.ts +50 -49
  827. package/dist/Matter/MTRBaseClusterTargetNavigator.d.ts +47 -45
  828. package/dist/Matter/MTRBaseClusterTemperatureControl.d.ts +37 -36
  829. package/dist/Matter/MTRBaseClusterTemperatureMeasurement.d.ts +56 -55
  830. package/dist/Matter/MTRBaseClusterTestCluster.d.ts +467 -455
  831. package/dist/Matter/MTRBaseClusterThermostat.d.ts +486 -483
  832. package/dist/Matter/MTRBaseClusterThermostatUserInterfaceConfiguration.d.ts +62 -61
  833. package/dist/Matter/MTRBaseClusterThreadBorderRouterManagement.d.ts +44 -40
  834. package/dist/Matter/MTRBaseClusterThreadNetworkDiagnostics.d.ts +418 -413
  835. package/dist/Matter/MTRBaseClusterThreadNetworkDirectory.d.ts +32 -30
  836. package/dist/Matter/MTRBaseClusterTimeFormatLocalization.d.ts +58 -57
  837. package/dist/Matter/MTRBaseClusterTimeSynchronization.d.ts +64 -60
  838. package/dist/Matter/MTRBaseClusterTotalVolatileOrganicCompoundsConcentrationMeasurement.d.ts +50 -49
  839. package/dist/Matter/MTRBaseClusterUnitLocalization.d.ts +42 -41
  840. package/dist/Matter/MTRBaseClusterUnitTesting.d.ts +467 -455
  841. package/dist/Matter/MTRBaseClusterUserLabel.d.ts +41 -41
  842. package/dist/Matter/MTRBaseClusterValveConfigurationAndControl.d.ts +58 -57
  843. package/dist/Matter/MTRBaseClusterWakeOnLan.d.ts +43 -40
  844. package/dist/Matter/MTRBaseClusterWaterHeaterManagement.d.ts +38 -37
  845. package/dist/Matter/MTRBaseClusterWaterHeaterMode.d.ts +25 -23
  846. package/dist/Matter/MTRBaseClusterWiFiNetworkDiagnostics.d.ts +115 -113
  847. package/dist/Matter/MTRBaseClusterWiFiNetworkManagement.d.ts +27 -24
  848. package/dist/Matter/MTRBaseClusterWindowCovering.d.ts +188 -187
  849. package/dist/Matter/MTRBaseDevice.d.ts +22 -19
  850. package/dist/Matter/MTRClusterAccessControl.d.ts +3 -2
  851. package/dist/Matter/MTRClusterAccountLogin.d.ts +10 -9
  852. package/dist/Matter/MTRClusterActions.d.ts +25 -25
  853. package/dist/Matter/MTRClusterActivatedCarbonFilterMonitoring.d.ts +3 -3
  854. package/dist/Matter/MTRClusterAdministratorCommissioning.d.ts +9 -9
  855. package/dist/Matter/MTRClusterApplicationLauncher.d.ts +11 -10
  856. package/dist/Matter/MTRClusterAudioOutput.d.ts +5 -5
  857. package/dist/Matter/MTRClusterBarrierControl.d.ts +7 -7
  858. package/dist/Matter/MTRClusterBasic.d.ts +3 -3
  859. package/dist/Matter/MTRClusterBooleanStateConfiguration.d.ts +3 -3
  860. package/dist/Matter/MTRClusterBridgedDeviceBasicInformation.d.ts +2 -2
  861. package/dist/Matter/MTRClusterChannel.d.ts +13 -11
  862. package/dist/Matter/MTRClusterColorControl.d.ts +39 -39
  863. package/dist/Matter/MTRClusterCommissionerControl.d.ts +4 -3
  864. package/dist/Matter/MTRClusterContentAppObserver.d.ts +3 -2
  865. package/dist/Matter/MTRClusterContentLauncher.d.ts +7 -5
  866. package/dist/Matter/MTRClusterDeviceEnergyManagement.d.ts +12 -12
  867. package/dist/Matter/MTRClusterDeviceEnergyManagementMode.d.ts +3 -2
  868. package/dist/Matter/MTRClusterDiagnosticLogs.d.ts +4 -3
  869. package/dist/Matter/MTRClusterDishwasherAlarm.d.ts +3 -3
  870. package/dist/Matter/MTRClusterDishwasherMode.d.ts +3 -2
  871. package/dist/Matter/MTRClusterDoorLock.d.ts +50 -44
  872. package/dist/Matter/MTRClusterElectricalMeasurement.d.ts +7 -7
  873. package/dist/Matter/MTRClusterEnergyEVSE.d.ts +12 -11
  874. package/dist/Matter/MTRClusterEnergyEVSEMode.d.ts +3 -2
  875. package/dist/Matter/MTRClusterEthernetNetworkDiagnostics.d.ts +5 -5
  876. package/dist/Matter/MTRClusterFanControl.d.ts +2 -2
  877. package/dist/Matter/MTRClusterGeneralCommissioning.d.ts +12 -9
  878. package/dist/Matter/MTRClusterGeneralDiagnostics.d.ts +8 -6
  879. package/dist/Matter/MTRClusterGroupKeyManagement.d.ts +12 -10
  880. package/dist/Matter/MTRClusterGroups.d.ts +19 -15
  881. package/dist/Matter/MTRClusterHEPAFilterMonitoring.d.ts +3 -3
  882. package/dist/Matter/MTRClusterICDManagement.d.ts +6 -4
  883. package/dist/Matter/MTRClusterIdentify.d.ts +5 -5
  884. package/dist/Matter/MTRClusterKeypadInput.d.ts +4 -3
  885. package/dist/Matter/MTRClusterLaundryWasherMode.d.ts +3 -2
  886. package/dist/Matter/MTRClusterLevelControl.d.ts +19 -19
  887. package/dist/Matter/MTRClusterLowPower.d.ts +5 -5
  888. package/dist/Matter/MTRClusterMediaInput.d.ts +13 -13
  889. package/dist/Matter/MTRClusterMediaPlayback.d.ts +44 -43
  890. package/dist/Matter/MTRClusterMessages.d.ts +3 -3
  891. package/dist/Matter/MTRClusterMicrowaveOvenControl.d.ts +4 -4
  892. package/dist/Matter/MTRClusterModeSelect.d.ts +3 -3
  893. package/dist/Matter/MTRClusterNetworkCommissioning.d.ts +17 -14
  894. package/dist/Matter/MTRClusterOnOff.d.ts +21 -21
  895. package/dist/Matter/MTRClusterOperationalCredentials.d.ts +21 -17
  896. package/dist/Matter/MTRClusterOperationalState.d.ts +10 -9
  897. package/dist/Matter/MTRClusterOtaSoftwareUpdateProvider.d.ts +9 -7
  898. package/dist/Matter/MTRClusterOtaSoftwareUpdateRequestor.d.ts +3 -3
  899. package/dist/Matter/MTRClusterOvenCavityOperationalState.d.ts +6 -5
  900. package/dist/Matter/MTRClusterOvenMode.d.ts +3 -2
  901. package/dist/Matter/MTRClusterRVCCleanMode.d.ts +3 -2
  902. package/dist/Matter/MTRClusterRVCOperationalState.d.ts +8 -7
  903. package/dist/Matter/MTRClusterRVCRunMode.d.ts +3 -2
  904. package/dist/Matter/MTRClusterRefrigeratorAndTemperatureControlledCabinetMode.d.ts +3 -2
  905. package/dist/Matter/MTRClusterServiceArea.d.ts +5 -3
  906. package/dist/Matter/MTRClusterSmokeCOAlarm.d.ts +3 -3
  907. package/dist/Matter/MTRClusterSoftwareDiagnostics.d.ts +5 -5
  908. package/dist/Matter/MTRClusterStateCacheContainer.d.ts +3 -2
  909. package/dist/Matter/MTRClusterTargetNavigator.d.ts +4 -3
  910. package/dist/Matter/MTRClusterTemperatureControl.d.ts +3 -3
  911. package/dist/Matter/MTRClusterTestCluster.d.ts +42 -30
  912. package/dist/Matter/MTRClusterThermostat.d.ts +16 -14
  913. package/dist/Matter/MTRClusterThreadBorderRouterManagement.d.ts +8 -7
  914. package/dist/Matter/MTRClusterThreadNetworkDiagnostics.d.ts +5 -5
  915. package/dist/Matter/MTRClusterThreadNetworkDirectory.d.ts +5 -4
  916. package/dist/Matter/MTRClusterTimeSynchronization.d.ts +7 -6
  917. package/dist/Matter/MTRClusterUnitTesting.d.ts +42 -30
  918. package/dist/Matter/MTRClusterValveConfigurationAndControl.d.ts +5 -5
  919. package/dist/Matter/MTRClusterWaterHeaterManagement.d.ts +4 -4
  920. package/dist/Matter/MTRClusterWaterHeaterMode.d.ts +3 -2
  921. package/dist/Matter/MTRClusterWiFiNetworkDiagnostics.d.ts +5 -5
  922. package/dist/Matter/MTRClusterWiFiNetworkManagement.d.ts +4 -3
  923. package/dist/Matter/MTRClusterWindowCovering.d.ts +21 -21
  924. package/dist/Matter/MTRCommissioningDelegate.d.ts +4 -4
  925. package/dist/Matter/MTRDevice.d.ts +11 -8
  926. package/dist/Matter/MTRDeviceController.d.ts +6 -4
  927. package/dist/Matter/MTRDeviceControllerServerProtocol.d.ts +12 -10
  928. package/dist/Matter/MTRErrorCode.d.ts +22 -0
  929. package/dist/Matter/MTRErrorCode.js +22 -0
  930. package/dist/Matter/MTRInteractionErrorCode.d.ts +33 -0
  931. package/dist/Matter/MTRInteractionErrorCode.js +33 -0
  932. package/dist/Matter/MTRNOCChainIssuer.d.ts +3 -1
  933. package/dist/Matter/MTROTAProviderDelegate.d.ts +13 -11
  934. package/dist/Matter/MTROperationalCertificateIssuer.d.ts +3 -2
  935. package/dist/Matter/MTRXPCDeviceControllerParameters.d.ts +4 -4
  936. package/dist/Matter/MTRXPCServerProtocol_MTRDevice.d.ts +17 -11
  937. package/dist/Matter/MTRXPCServerProtocol_MTRDeviceController.d.ts +2 -2
  938. package/dist/Matter/functions.d.ts +1 -2
  939. package/dist/Matter/functions.js +1 -1
  940. package/dist/Matter/index.d.ts +2 -1
  941. package/dist/Matter/index.js +2 -1
  942. package/dist/MediaAccessibility/MAMusicHapticsManager.d.ts +2 -3
  943. package/dist/MediaAccessibility/functions.d.ts +1 -1
  944. package/dist/MediaAccessibility/functions.js +1 -1
  945. package/dist/MediaAccessibility/index.d.ts +0 -1
  946. package/dist/MediaAccessibility/index.js +0 -1
  947. package/dist/MediaExtension/MEByteSource.d.ts +4 -2
  948. package/dist/MediaExtension/MEError.d.ts +15 -0
  949. package/dist/MediaExtension/MEError.js +15 -0
  950. package/dist/MediaExtension/MEFormatReader.d.ts +8 -5
  951. package/dist/MediaExtension/MERAWProcessor.d.ts +2 -1
  952. package/dist/MediaExtension/MESampleCursor.d.ts +9 -7
  953. package/dist/MediaExtension/METrackReader.d.ts +12 -9
  954. package/dist/MediaExtension/MEVideoDecoder.d.ts +3 -1
  955. package/dist/MediaExtension/index.d.ts +1 -0
  956. package/dist/MediaExtension/index.js +1 -0
  957. package/dist/MediaPlayer/MPMediaEntity.d.ts +1 -1
  958. package/dist/MediaPlayer/MPMediaItemAnimatedArtwork.d.ts +4 -2
  959. package/dist/MediaPlayer/MPMediaItemArtwork.d.ts +1 -2
  960. package/dist/MediaPlayer/MPMediaLibrary.d.ts +6 -4
  961. package/dist/MediaPlayer/MPMediaPlaylist.d.ts +3 -3
  962. package/dist/MediaPlayer/MPMusicPlayerApplicationController.d.ts +4 -2
  963. package/dist/MediaPlayer/MPMusicPlayerController.d.ts +2 -1
  964. package/dist/MediaPlayer/MPNowPlayingSession.d.ts +1 -2
  965. package/dist/MediaPlayer/MPPlayableContentDataSource.d.ts +3 -3
  966. package/dist/MediaPlayer/MPPlayableContentDelegate.d.ts +4 -4
  967. package/dist/MediaPlayer/MPRemoteCommand.d.ts +3 -1
  968. package/dist/MediaPlayer/index.d.ts +0 -1
  969. package/dist/MediaPlayer/index.js +0 -1
  970. package/dist/Metal/MTL4CommitOptions.d.ts +2 -2
  971. package/dist/Metal/MTL4Compiler.d.ts +11 -10
  972. package/dist/Metal/MTLCommandBuffer.d.ts +2 -2
  973. package/dist/Metal/MTLDevice.d.ts +13 -10
  974. package/dist/Metal/MTLDrawable.d.ts +1 -2
  975. package/dist/Metal/MTLIOCommandBuffer.d.ts +1 -2
  976. package/dist/Metal/MTLIOError.d.ts +5 -0
  977. package/dist/Metal/MTLIOError.js +5 -0
  978. package/dist/Metal/MTLLibrary.d.ts +4 -3
  979. package/dist/Metal/MTLLogState.d.ts +3 -2
  980. package/dist/Metal/MTLSharedEvent.d.ts +1 -2
  981. package/dist/Metal/NSDeviceCertification.d.ts +2 -0
  982. package/dist/Metal/NSDeviceCertification.js +2 -0
  983. package/dist/Metal/NSProcessPerformanceProfile.d.ts +2 -0
  984. package/dist/Metal/NSProcessPerformanceProfile.js +2 -0
  985. package/dist/Metal/functions.d.ts +2 -1
  986. package/dist/Metal/functions.js +1 -1
  987. package/dist/Metal/index.d.ts +3 -1
  988. package/dist/Metal/index.js +3 -1
  989. package/dist/MetalKit/MTKTextureLoader.d.ts +10 -9
  990. package/dist/MetalKit/index.d.ts +0 -1
  991. package/dist/MetalKit/index.js +0 -1
  992. package/dist/MetalPerformanceShaders/index.d.ts +0 -1
  993. package/dist/MetalPerformanceShaders/index.js +0 -1
  994. package/dist/MetalPerformanceShadersGraph/MPSGraph.d.ts +6 -5
  995. package/dist/MetalPerformanceShadersGraph/MPSGraphCompilationDescriptor.d.ts +4 -2
  996. package/dist/MetalPerformanceShadersGraph/MPSGraphExecutableExecutionDescriptor.d.ts +6 -5
  997. package/dist/MetalPerformanceShadersGraph/MPSGraphExecutionDescriptor.d.ts +5 -4
  998. package/dist/MetricKit/MXErrorCode.d.ts +9 -0
  999. package/dist/MetricKit/MXErrorCode.js +9 -0
  1000. package/dist/MetricKit/index.d.ts +1 -0
  1001. package/dist/MetricKit/index.js +1 -0
  1002. package/dist/ModelIO/MDLMaterialPropertyNode.d.ts +3 -4
  1003. package/dist/ModelIO/MDLMeshBufferMap.d.ts +1 -1
  1004. package/dist/ModelIO/MDLObject.d.ts +1 -1
  1005. package/dist/MultipeerConnectivity/MCNearbyServiceAdvertiserDelegate.d.ts +2 -2
  1006. package/dist/MultipeerConnectivity/MCSession.d.ts +3 -2
  1007. package/dist/MultipeerConnectivity/MCSessionDelegate.d.ts +1 -2
  1008. package/dist/NaturalLanguage/NLContextualEmbedding.d.ts +3 -1
  1009. package/dist/NaturalLanguage/NLContextualEmbeddingResult.d.ts +1 -1
  1010. package/dist/NaturalLanguage/NLEmbedding.d.ts +4 -4
  1011. package/dist/NaturalLanguage/NLTagger.d.ts +4 -2
  1012. package/dist/NaturalLanguage/NLTokenizer.d.ts +2 -1
  1013. package/dist/NearbyInteraction/NIErrorCode.d.ts +13 -0
  1014. package/dist/NearbyInteraction/NIErrorCode.js +13 -0
  1015. package/dist/NearbyInteraction/index.d.ts +1 -1
  1016. package/dist/NearbyInteraction/index.js +1 -1
  1017. package/dist/NetworkExtension/NEAppProxyFlow.d.ts +2 -3
  1018. package/dist/NetworkExtension/NEAppProxyProvider.d.ts +2 -3
  1019. package/dist/NetworkExtension/NEAppProxyProviderManager.d.ts +3 -2
  1020. package/dist/NetworkExtension/NEAppProxyTCPFlow.d.ts +3 -3
  1021. package/dist/NetworkExtension/NEAppProxyUDPFlow.d.ts +5 -4
  1022. package/dist/NetworkExtension/NEAppPushManager.d.ts +5 -5
  1023. package/dist/NetworkExtension/NEAppPushManagerError.d.ts +7 -0
  1024. package/dist/NetworkExtension/NEAppPushManagerError.js +7 -0
  1025. package/dist/NetworkExtension/NEAppPushProvider.d.ts +3 -3
  1026. package/dist/NetworkExtension/NEDNSProxyManager.d.ts +4 -4
  1027. package/dist/NetworkExtension/NEDNSProxyProvider.d.ts +2 -2
  1028. package/dist/NetworkExtension/NEDNSSettingsManager.d.ts +4 -4
  1029. package/dist/NetworkExtension/NEFilterControlProvider.d.ts +3 -3
  1030. package/dist/NetworkExtension/NEFilterDataProvider.d.ts +2 -2
  1031. package/dist/NetworkExtension/NEFilterManager.d.ts +4 -4
  1032. package/dist/NetworkExtension/NEFilterPacketProvider.d.ts +5 -2
  1033. package/dist/NetworkExtension/NEFilterProvider.d.ts +3 -3
  1034. package/dist/NetworkExtension/NEHotspotConfigurationManager.d.ts +6 -5
  1035. package/dist/NetworkExtension/NEHotspotHelper.d.ts +2 -2
  1036. package/dist/NetworkExtension/NEHotspotNetwork.d.ts +1 -2
  1037. package/dist/NetworkExtension/NEPacketTunnelFlow.d.ts +2 -3
  1038. package/dist/NetworkExtension/NEPacketTunnelProvider.d.ts +2 -2
  1039. package/dist/NetworkExtension/NEProvider.d.ts +2 -2
  1040. package/dist/NetworkExtension/NERelayManager.d.ts +6 -6
  1041. package/dist/NetworkExtension/NETransparentProxyManager.d.ts +3 -2
  1042. package/dist/NetworkExtension/NETunnelProvider.d.ts +3 -3
  1043. package/dist/NetworkExtension/NETunnelProviderManager.d.ts +2 -2
  1044. package/dist/NetworkExtension/NETunnelProviderSession.d.ts +1 -1
  1045. package/dist/NetworkExtension/NEURLFilter.d.ts +2 -2
  1046. package/dist/NetworkExtension/NEVPNConnection.d.ts +2 -1
  1047. package/dist/NetworkExtension/NEVPNManager.d.ts +4 -3
  1048. package/dist/NetworkExtension/NWTCPConnection.d.ts +3 -4
  1049. package/dist/NetworkExtension/NWTCPConnectionAuthenticationDelegate.d.ts +2 -2
  1050. package/dist/NetworkExtension/NWUDPSession.d.ts +4 -4
  1051. package/dist/NetworkExtension/index.d.ts +1 -0
  1052. package/dist/NetworkExtension/index.js +1 -0
  1053. package/dist/NotificationCenter/NCWidgetProviding.d.ts +2 -2
  1054. package/dist/PHASE/PHASEAssetError.d.ts +9 -0
  1055. package/dist/PHASE/PHASEAssetError.js +9 -0
  1056. package/dist/PHASE/PHASEAssetRegistry.d.ts +1 -1
  1057. package/dist/PHASE/PHASEError.d.ts +5 -0
  1058. package/dist/PHASE/PHASEError.js +5 -0
  1059. package/dist/PHASE/PHASEPullStreamNode.d.ts +2 -2
  1060. package/dist/PHASE/PHASEPushStreamNode.d.ts +2 -3
  1061. package/dist/PHASE/PHASESoundEvent.d.ts +8 -5
  1062. package/dist/PHASE/PHASESoundEventError.d.ts +9 -0
  1063. package/dist/PHASE/PHASESoundEventError.js +9 -0
  1064. package/dist/PHASE/index.d.ts +3 -0
  1065. package/dist/PHASE/index.js +3 -0
  1066. package/dist/ParavirtualizedGraphics/PGDeviceDescriptor.d.ts +16 -16
  1067. package/dist/ParavirtualizedGraphics/PGDisplay.d.ts +6 -6
  1068. package/dist/ParavirtualizedGraphics/PGDisplayDescriptor.d.ts +12 -11
  1069. package/dist/ParavirtualizedGraphics/index.d.ts +0 -1
  1070. package/dist/ParavirtualizedGraphics/index.js +0 -1
  1071. package/dist/PassKit/PKAddIdentityDocumentConfiguration.d.ts +2 -2
  1072. package/dist/PassKit/PKAddSecureElementPassErrorCode.d.ts +11 -0
  1073. package/dist/PassKit/PKAddSecureElementPassErrorCode.js +11 -0
  1074. package/dist/PassKit/PKAddShareablePassConfiguration.d.ts +3 -3
  1075. package/dist/PassKit/PKDisbursementErrorCode.d.ts +6 -0
  1076. package/dist/PassKit/PKDisbursementErrorCode.js +6 -0
  1077. package/dist/PassKit/PKIdentityAuthorizationController.d.ts +4 -3
  1078. package/dist/PassKit/PKIdentityError.d.ts +12 -0
  1079. package/dist/PassKit/PKIdentityError.js +12 -0
  1080. package/dist/PassKit/PKIssuerProvisioningExtensionAuthorizationProviding.d.ts +3 -3
  1081. package/dist/PassKit/PKIssuerProvisioningExtensionHandler.d.ts +6 -5
  1082. package/dist/PassKit/PKPassKitErrorCode.d.ts +8 -0
  1083. package/dist/PassKit/PKPassKitErrorCode.js +8 -0
  1084. package/dist/PassKit/PKPassLibrary.d.ts +13 -10
  1085. package/dist/PassKit/PKPaymentAuthorizationController.d.ts +2 -3
  1086. package/dist/PassKit/PKPaymentAuthorizationControllerDelegate.d.ts +18 -11
  1087. package/dist/PassKit/PKPaymentAuthorizationViewControllerDelegate.d.ts +18 -11
  1088. package/dist/PassKit/PKPaymentErrorCode.d.ts +9 -0
  1089. package/dist/PassKit/PKPaymentErrorCode.js +9 -0
  1090. package/dist/PassKit/PKPaymentInformationRequestHandling.d.ts +5 -4
  1091. package/dist/PassKit/PKShareSecureElementPassErrorCode.d.ts +5 -0
  1092. package/dist/PassKit/PKShareSecureElementPassErrorCode.js +5 -0
  1093. package/dist/PassKit/PKVehicleConnectionSession.d.ts +2 -1
  1094. package/dist/PassKit/index.d.ts +6 -0
  1095. package/dist/PassKit/index.js +6 -0
  1096. package/dist/PencilKit/PKStrokePath.d.ts +3 -3
  1097. package/dist/Photos/PHAsset.d.ts +3 -1
  1098. package/dist/Photos/PHAssetResourceManager.d.ts +4 -3
  1099. package/dist/Photos/PHAssetResourceRequestOptions.d.ts +2 -3
  1100. package/dist/Photos/PHContentEditingInputRequestOptions.d.ts +5 -4
  1101. package/dist/Photos/PHFetchResult.d.ts +3 -3
  1102. package/dist/Photos/PHFetchResultChangeDetails.d.ts +1 -2
  1103. package/dist/Photos/PHImageManager.d.ts +16 -7
  1104. package/dist/Photos/PHImageRequestOptions.d.ts +4 -2
  1105. package/dist/Photos/PHLivePhoto.d.ts +2 -2
  1106. package/dist/Photos/PHLivePhotoEditingContext.d.ts +7 -4
  1107. package/dist/Photos/PHLivePhotoRequestOptions.d.ts +4 -2
  1108. package/dist/Photos/PHPersistentChangeFetchResult.d.ts +2 -1
  1109. package/dist/Photos/PHPhotoLibrary.d.ts +4 -4
  1110. package/dist/Photos/PHPhotosError.d.ts +25 -0
  1111. package/dist/Photos/PHPhotosError.js +25 -0
  1112. package/dist/Photos/PHVideoRequestOptions.d.ts +4 -2
  1113. package/dist/Photos/index.d.ts +1 -0
  1114. package/dist/Photos/index.js +1 -0
  1115. package/dist/PhotosUI/PHContentEditingController.d.ts +2 -2
  1116. package/dist/PhotosUI/PHProjectExtensionContext.d.ts +1 -2
  1117. package/dist/PhotosUI/PHProjectExtensionController.d.ts +4 -4
  1118. package/dist/PushKit/PKPushRegistryDelegate.d.ts +1 -2
  1119. package/dist/QuartzCore/CATransaction.d.ts +2 -2
  1120. package/dist/QuartzCore/index.d.ts +0 -1
  1121. package/dist/QuartzCore/index.js +0 -1
  1122. package/dist/QuickLookThumbnailing/QLThumbnailError.d.ts +9 -0
  1123. package/dist/QuickLookThumbnailing/QLThumbnailError.js +9 -0
  1124. package/dist/QuickLookThumbnailing/QLThumbnailGenerator.d.ts +7 -5
  1125. package/dist/QuickLookThumbnailing/QLThumbnailProvider.d.ts +3 -2
  1126. package/dist/QuickLookThumbnailing/QLThumbnailReply.d.ts +2 -2
  1127. package/dist/QuickLookThumbnailing/index.d.ts +1 -0
  1128. package/dist/QuickLookThumbnailing/index.js +1 -0
  1129. package/dist/QuickLookUI/QLPreviewReply.d.ts +5 -3
  1130. package/dist/QuickLookUI/QLPreviewingController.d.ts +5 -4
  1131. package/dist/ReplayKit/RPBroadcastActivityController.d.ts +2 -2
  1132. package/dist/ReplayKit/RPBroadcastController.d.ts +3 -3
  1133. package/dist/ReplayKit/RPScreenRecorder.d.ts +13 -10
  1134. package/dist/SafariServices/SFContentBlockerManager.d.ts +4 -3
  1135. package/dist/SafariServices/SFSafariApplication.d.ts +10 -7
  1136. package/dist/SafariServices/SFSafariExtension.d.ts +2 -2
  1137. package/dist/SafariServices/SFSafariExtensionHandling.d.ts +3 -4
  1138. package/dist/SafariServices/SFSafariExtensionManager.d.ts +3 -2
  1139. package/dist/SafariServices/SFSafariPage.d.ts +6 -4
  1140. package/dist/SafariServices/SFSafariTab.d.ts +7 -5
  1141. package/dist/SafariServices/SFSafariWindow.d.ts +7 -5
  1142. package/dist/SafetyKit/SACrashDetectionManager.d.ts +2 -2
  1143. package/dist/SafetyKit/SAEmergencyResponseManager.d.ts +2 -2
  1144. package/dist/SafetyKit/SAErrorCode.d.ts +7 -0
  1145. package/dist/SafetyKit/SAErrorCode.js +7 -0
  1146. package/dist/SafetyKit/index.d.ts +1 -0
  1147. package/dist/SafetyKit/index.js +1 -0
  1148. package/dist/SceneKit/SCNAction.d.ts +6 -6
  1149. package/dist/SceneKit/SCNActionable.d.ts +2 -3
  1150. package/dist/SceneKit/SCNAnimation.d.ts +5 -5
  1151. package/dist/SceneKit/SCNAnimationEvent.d.ts +2 -1
  1152. package/dist/SceneKit/SCNAudioPlayer.d.ts +4 -5
  1153. package/dist/SceneKit/SCNNode.d.ts +3 -3
  1154. package/dist/SceneKit/SCNParticleSystem.d.ts +2 -2
  1155. package/dist/SceneKit/SCNPhysicsField.d.ts +1 -2
  1156. package/dist/SceneKit/SCNProgram.d.ts +5 -2
  1157. package/dist/SceneKit/SCNScene.d.ts +2 -1
  1158. package/dist/SceneKit/SCNSceneRenderer.d.ts +3 -3
  1159. package/dist/SceneKit/SCNSceneSource.d.ts +4 -2
  1160. package/dist/SceneKit/SCNShadable.d.ts +4 -3
  1161. package/dist/SceneKit/SCNTechnique.d.ts +3 -1
  1162. package/dist/SceneKit/SCNTransaction.d.ts +2 -2
  1163. package/dist/SceneKit/SCNTransformConstraint.d.ts +7 -4
  1164. package/dist/SceneKit/index.d.ts +0 -1
  1165. package/dist/SceneKit/index.js +0 -1
  1166. package/dist/ScreenCaptureKit/SCScreenshotManager.d.ts +7 -5
  1167. package/dist/ScreenCaptureKit/SCShareableContent.d.ts +6 -6
  1168. package/dist/ScreenCaptureKit/SCStream.d.ts +5 -4
  1169. package/dist/ScreenCaptureKit/SCStreamErrorCode.d.ts +24 -0
  1170. package/dist/ScreenCaptureKit/SCStreamErrorCode.js +24 -0
  1171. package/dist/ScreenCaptureKit/index.d.ts +1 -0
  1172. package/dist/ScreenCaptureKit/index.js +1 -0
  1173. package/dist/ScreenTime/STWebHistory.d.ts +4 -2
  1174. package/dist/SecurityUI/SFCertificatePresentation.d.ts +1 -1
  1175. package/dist/SensitiveContentAnalysis/SCSensitivityAnalyzer.d.ts +5 -4
  1176. package/dist/SensitiveContentAnalysis/SCVideoStreamAnalyzer.d.ts +3 -2
  1177. package/dist/SensorKit/SRErrorCode.d.ts +8 -0
  1178. package/dist/SensorKit/SRErrorCode.js +8 -0
  1179. package/dist/SensorKit/SRSensorReader.d.ts +2 -2
  1180. package/dist/SensorKit/index.d.ts +1 -1
  1181. package/dist/SensorKit/index.js +1 -1
  1182. package/dist/ServiceManagement/SMAppService.d.ts +2 -1
  1183. package/dist/ServiceManagement/index.d.ts +0 -1
  1184. package/dist/ServiceManagement/index.js +0 -1
  1185. package/dist/SharedWithYou/SWCollaborationView.d.ts +1 -2
  1186. package/dist/SharedWithYou/SWHighlightCenter.d.ts +6 -3
  1187. package/dist/ShazamKit/SHErrorCode.d.ts +13 -0
  1188. package/dist/ShazamKit/SHErrorCode.js +13 -0
  1189. package/dist/ShazamKit/SHMediaItem.d.ts +2 -1
  1190. package/dist/ShazamKit/SHMediaLibrary.d.ts +2 -2
  1191. package/dist/ShazamKit/SHSignatureGenerator.d.ts +2 -1
  1192. package/dist/ShazamKit/index.d.ts +1 -0
  1193. package/dist/ShazamKit/index.js +1 -0
  1194. package/dist/Social/SLRequest.d.ts +3 -2
  1195. package/dist/SoundAnalysis/SNAudioFileAnalyzer.d.ts +1 -1
  1196. package/dist/SoundAnalysis/SNErrorCode.d.ts +8 -0
  1197. package/dist/SoundAnalysis/SNErrorCode.js +8 -0
  1198. package/dist/SoundAnalysis/index.d.ts +1 -0
  1199. package/dist/SoundAnalysis/index.js +1 -0
  1200. package/dist/Speech/SFSpeechErrorCode.d.ts +9 -0
  1201. package/dist/Speech/SFSpeechErrorCode.js +9 -0
  1202. package/dist/Speech/SFSpeechLanguageModel.d.ts +5 -5
  1203. package/dist/Speech/SFSpeechRecognizer.d.ts +4 -3
  1204. package/dist/Speech/index.d.ts +1 -0
  1205. package/dist/Speech/index.js +1 -0
  1206. package/dist/SpriteKit/SKAction.d.ts +5 -5
  1207. package/dist/SpriteKit/SKFieldNode.d.ts +1 -1
  1208. package/dist/SpriteKit/SKMutableTexture.d.ts +1 -1
  1209. package/dist/SpriteKit/SKNode.d.ts +2 -2
  1210. package/dist/SpriteKit/SKPhysicsWorld.d.ts +3 -3
  1211. package/dist/SpriteKit/SKTexture.d.ts +2 -2
  1212. package/dist/SpriteKit/SKTextureAtlas.d.ts +4 -4
  1213. package/dist/StoreKit/SKANError.d.ts +15 -0
  1214. package/dist/StoreKit/SKANError.js +15 -0
  1215. package/dist/StoreKit/SKAdNetwork.d.ts +6 -6
  1216. package/dist/StoreKit/SKArcadeService.d.ts +3 -3
  1217. package/dist/StoreKit/SKCloudServiceController.d.ts +8 -7
  1218. package/dist/StoreKit/SKCloudServiceSetupViewController.d.ts +2 -2
  1219. package/dist/StoreKit/SKDownload.d.ts +3 -3
  1220. package/dist/StoreKit/SKDownloadState.d.ts +9 -0
  1221. package/dist/StoreKit/SKDownloadState.js +9 -0
  1222. package/dist/StoreKit/SKOverlayTransitionContext.d.ts +1 -2
  1223. package/dist/StoreKit/SKProductStorePromotionController.d.ts +6 -5
  1224. package/dist/StoreKit/SKProductStorePromotionVisibility.d.ts +6 -0
  1225. package/dist/StoreKit/SKProductStorePromotionVisibility.js +6 -0
  1226. package/dist/StoreKit/SKStoreProductViewController.d.ts +3 -3
  1227. package/dist/StoreKit/index.d.ts +3 -1
  1228. package/dist/StoreKit/index.js +3 -1
  1229. package/dist/SystemExtensions/OSSystemExtensionErrorCode.d.ts +16 -0
  1230. package/dist/SystemExtensions/OSSystemExtensionErrorCode.js +16 -0
  1231. package/dist/SystemExtensions/index.d.ts +1 -0
  1232. package/dist/SystemExtensions/index.js +1 -0
  1233. package/dist/ThreadNetwork/THClient.d.ts +12 -10
  1234. package/dist/UserNotifications/UNNotificationServiceExtension.d.ts +2 -2
  1235. package/dist/UserNotifications/UNUserNotificationCenter.d.ts +9 -8
  1236. package/dist/UserNotifications/UNUserNotificationCenterDelegate.d.ts +3 -3
  1237. package/dist/UserNotificationsUI/UNNotificationContentExtension.d.ts +2 -2
  1238. package/dist/VideoSubscriberAccount/VSAccountManager.d.ts +5 -3
  1239. package/dist/VideoSubscriberAccount/VSUserAccountManager.d.ts +7 -5
  1240. package/dist/VideoToolbox/VTFrameProcessor.d.ts +4 -2
  1241. package/dist/VideoToolbox/VTFrameProcessorError.d.ts +17 -0
  1242. package/dist/VideoToolbox/VTFrameProcessorError.js +17 -0
  1243. package/dist/VideoToolbox/VTSuperResolutionScalerConfiguration.d.ts +2 -2
  1244. package/dist/VideoToolbox/functions.d.ts +10 -10
  1245. package/dist/VideoToolbox/functions.js +10 -10
  1246. package/dist/VideoToolbox/index.d.ts +1 -1
  1247. package/dist/VideoToolbox/index.js +1 -1
  1248. package/dist/Virtualization/VZErrorCode.d.ts +28 -0
  1249. package/dist/Virtualization/VZErrorCode.js +28 -0
  1250. package/dist/Virtualization/VZLinuxRosettaDirectoryShare.d.ts +2 -1
  1251. package/dist/Virtualization/VZMacOSInstaller.d.ts +2 -2
  1252. package/dist/Virtualization/VZMacOSRestoreImage.d.ts +3 -3
  1253. package/dist/Virtualization/VZUSBController.d.ts +3 -3
  1254. package/dist/Virtualization/VZVirtioSocketDevice.d.ts +3 -2
  1255. package/dist/Virtualization/VZVirtualMachine.d.ts +8 -7
  1256. package/dist/Virtualization/index.d.ts +1 -0
  1257. package/dist/Virtualization/index.js +1 -0
  1258. package/dist/Vision/VNBarcodeCompositeType.d.ts +8 -0
  1259. package/dist/Vision/VNBarcodeCompositeType.js +8 -0
  1260. package/dist/Vision/VNBarcodeObservation.d.ts +2 -2
  1261. package/dist/Vision/VNChirality.d.ts +6 -0
  1262. package/dist/Vision/VNChirality.js +6 -0
  1263. package/dist/Vision/VNCoreMLRequest.d.ts +3 -2
  1264. package/dist/Vision/VNDetectHumanBodyPose3DRequest.d.ts +3 -1
  1265. package/dist/Vision/VNDetectTrajectoriesRequest.d.ts +3 -2
  1266. package/dist/Vision/VNFaceLandmarkRegion2D.d.ts +2 -1
  1267. package/dist/Vision/VNGeneratePersonSegmentationRequest.d.ts +3 -1
  1268. package/dist/Vision/VNHumanHandPoseObservation.d.ts +2 -1
  1269. package/dist/Vision/VNPointsClassification.d.ts +6 -0
  1270. package/dist/Vision/VNPointsClassification.js +6 -0
  1271. package/dist/Vision/VNRequest.d.ts +3 -2
  1272. package/dist/Vision/VNRequestProgressProviding.d.ts +4 -3
  1273. package/dist/Vision/VNStatefulRequest.d.ts +3 -2
  1274. package/dist/Vision/VNTargetedImageRequest.d.ts +14 -12
  1275. package/dist/Vision/VNTrackHomographicImageRegistrationRequest.d.ts +3 -2
  1276. package/dist/Vision/VNTrackObjectRequest.d.ts +3 -2
  1277. package/dist/Vision/VNTrackOpticalFlowRequest.d.ts +3 -2
  1278. package/dist/Vision/VNTrackRectangleRequest.d.ts +3 -2
  1279. package/dist/Vision/VNTrackTranslationalImageRegistrationRequest.d.ts +3 -2
  1280. package/dist/Vision/index.d.ts +3 -1
  1281. package/dist/Vision/index.js +3 -1
  1282. package/dist/WebKit/WKContentRuleListStore.d.ts +7 -5
  1283. package/dist/WebKit/WKDownload.d.ts +2 -1
  1284. package/dist/WebKit/WKDownloadDelegate.d.ts +9 -5
  1285. package/dist/WebKit/WKHTTPCookieStore.d.ts +6 -6
  1286. package/dist/WebKit/WKNavigationDelegate.d.ts +10 -6
  1287. package/dist/WebKit/WKScriptMessageHandlerWithReply.d.ts +2 -1
  1288. package/dist/WebKit/WKUIDelegate.d.ts +8 -6
  1289. package/dist/WebKit/WKWebExtension.d.ts +3 -3
  1290. package/dist/WebKit/WKWebExtensionContext.d.ts +2 -2
  1291. package/dist/WebKit/WKWebExtensionContextError.d.ts +9 -0
  1292. package/dist/WebKit/WKWebExtensionContextError.js +9 -0
  1293. package/dist/WebKit/WKWebExtensionController.d.ts +4 -3
  1294. package/dist/WebKit/WKWebExtensionControllerDelegate.d.ts +11 -9
  1295. package/dist/WebKit/WKWebExtensionDataRecordError.d.ts +7 -0
  1296. package/dist/WebKit/WKWebExtensionDataRecordError.js +7 -0
  1297. package/dist/WebKit/WKWebExtensionError.d.ts +12 -0
  1298. package/dist/WebKit/WKWebExtensionError.js +12 -0
  1299. package/dist/WebKit/WKWebExtensionMatchPatternError.d.ts +7 -0
  1300. package/dist/WebKit/WKWebExtensionMatchPatternError.js +7 -0
  1301. package/dist/WebKit/WKWebExtensionMessagePort.d.ts +5 -5
  1302. package/dist/WebKit/WKWebExtensionMessagePortError.d.ts +6 -0
  1303. package/dist/WebKit/WKWebExtensionMessagePortError.js +6 -0
  1304. package/dist/WebKit/WKWebExtensionTab.d.ts +18 -16
  1305. package/dist/WebKit/WKWebExtensionWindow.d.ts +5 -5
  1306. package/dist/WebKit/WKWebView.d.ts +26 -21
  1307. package/dist/WebKit/WKWebsiteDataStore.d.ts +8 -7
  1308. package/dist/WebKit/index.d.ts +5 -0
  1309. package/dist/WebKit/index.js +5 -0
  1310. package/dist/iTunesLibrary/ITLibMediaEntity.d.ts +2 -2
  1311. package/generator/ast-parser.ts +371 -5
  1312. package/generator/custom.ts +6 -0
  1313. package/generator/discover.ts +39 -2
  1314. package/generator/emitter.ts +41 -39
  1315. package/generator/parse-worker.ts +28 -0
  1316. package/generator/type-mapper.ts +276 -15
  1317. package/package.json +6 -2
@@ -1,6 +1,7 @@
1
1
  import type { NobjcObject } from "objc-js";
2
2
  import type { _NSArray } from "../Foundation/NSArray.js";
3
3
  import type { _NSDate } from "../Foundation/NSDate.js";
4
+ import type { _NSError } from "../Foundation/NSError.js";
4
5
  import type { _NSObject } from "../Foundation/NSObject.js";
5
6
  import type { _NSPredicate } from "../Foundation/NSPredicate.js";
6
7
  import type { _NSString } from "../Foundation/NSString.js";
@@ -29,19 +30,19 @@ export declare class _EKEventStore extends _NSObject {
29
30
  * @method initWithSources: @abstract Creates a new event store that only includes items and calendars for a subset of sources. @param sources The sources you want this event store to recognize. This may include delegate sources.
30
31
  */
31
32
  initWithSources$(sources: _NSArray): _EKEventStore;
32
- requestFullAccessToEventsWithCompletion$(completion: NobjcObject): void;
33
+ requestFullAccessToEventsWithCompletion$(completion: (arg0: boolean, arg1: _NSError) => void): void;
33
34
  /**
34
35
  * @deprecated Use -requestFullAccessToEventsWithCompletion:, -requestWriteOnlyAccessToEventsWithCompletion:, or -requestFullAccessToRemindersWithCompletion:
35
36
  */
36
- requestWriteOnlyAccessToEventsWithCompletion$(completion: NobjcObject): void;
37
+ requestWriteOnlyAccessToEventsWithCompletion$(completion: (arg0: boolean, arg1: _NSError) => void): void;
37
38
  /**
38
39
  * @deprecated Use -requestFullAccessToEventsWithCompletion:, -requestWriteOnlyAccessToEventsWithCompletion:, or -requestFullAccessToRemindersWithCompletion:
39
40
  */
40
- requestFullAccessToRemindersWithCompletion$(completion: NobjcObject): void;
41
+ requestFullAccessToRemindersWithCompletion$(completion: (arg0: boolean, arg1: _NSError) => void): void;
41
42
  /**
42
43
  * @deprecated Use -requestFullAccessToEventsWithCompletion:, -requestWriteOnlyAccessToEventsWithCompletion:, or -requestFullAccessToRemindersWithCompletion:
43
44
  */
44
- requestAccessToEntityType$completion$(entityType: EKEntityType, completion: NobjcObject): void;
45
+ requestAccessToEntityType$completion$(entityType: EKEntityType, completion: (arg0: boolean, arg1: _NSError) => void): void;
45
46
  /**
46
47
  * @method sourceWithIdentifier: @abstract Returns a source with a specified identifier.
47
48
  */
@@ -98,7 +99,7 @@ export declare class _EKEventStore extends _NSObject {
98
99
  /**
99
100
  * @method enumerateEventsMatchingPredicate:usingBlock: @abstract Searches for events that match the given predicate. @discussion This call executes a search for the events indicated by the predicate passed to it, calling the block specified in the callback parameter for each event. This method is synchronous. If you want async behavior, you should either use dispatch_async or NSOperation to run the query someplace other than the main thread. @param predicate The predicate to invoke. If this predicate was not created with the predicate creation functions in this class, an exception is raised. @param block The block to call for each event. Your block should return YES in the stop parameter to stop iterating.
100
101
  */
101
- enumerateEventsMatchingPredicate$usingBlock$(predicate: _NSPredicate, block: NobjcObject): void;
102
+ enumerateEventsMatchingPredicate$usingBlock$(predicate: _NSPredicate, block: (arg0: _EKEvent, arg1: NobjcObject) => void): void;
102
103
  /**
103
104
  * @method predicateForEventsWithStartDate:endDate:calendars: @abstract Creates a predicate for use with eventsMatchingPredicate or enumerateEventsMatchingPredicate:usingBlock:. @discussion Creates a simple query predicate to search for events within a certain date range. At present, this will return events in the default time zone ([NSTimeZone defaultTimeZone]). For performance reasons, this method will only return events within a four year timespan. If the date range between the startDate and endDate is greater than four years, then it will be shortened to the first four years. @param startDate The start date. @param endDate The end date. @param calendars The calendars to search for events in, or nil to search all calendars.
104
105
  */
@@ -114,7 +115,7 @@ export declare class _EKEventStore extends _NSObject {
114
115
  /**
115
116
  * @method fetchRemindersMatchingPredicate:completion: @abstract Fetches reminders asynchronously. @discussion This method fetches reminders asynchronously and returns a value which can be used in cancelFetchRequest: to cancel the request later if desired. The completion block is called with an array of reminders that match the given predicate (or potentially nil).
116
117
  */
117
- fetchRemindersMatchingPredicate$completion$(predicate: _NSPredicate, completion: NobjcObject | null): NobjcObject;
118
+ fetchRemindersMatchingPredicate$completion$(predicate: _NSPredicate, completion: ((reminders: _NSArray) => void) | null): NobjcObject;
118
119
  /**
119
120
  * @method cancelFetchRequest: @discussion Given a value returned from fetchRemindersMatchingPredicate, this method can be used to cancel the request. Once called, the completion block specified in fetchReminders... will not be called.
120
121
  */
@@ -1,7 +1,9 @@
1
- import type { NobjcObject } from "objc-js";
1
+ import type { _NSArray } from "../Foundation/NSArray.js";
2
+ import type { _NSError } from "../Foundation/NSError.js";
2
3
  import type { _NSExtensionRequestHandling } from "../Foundation/NSExtensionRequestHandling.js";
3
4
  import type { _NSObject } from "../Foundation/NSObject.js";
4
5
  import type { _NSString } from "../Foundation/NSString.js";
6
+ import type { _EKVirtualConferenceDescriptor } from "./EKVirtualConferenceDescriptor.js";
5
7
  export declare class _EKVirtualConferenceProvider extends _NSObject {
6
8
  static alloc(): _EKVirtualConferenceProvider;
7
9
  static new(): _EKVirtualConferenceProvider;
@@ -9,11 +11,11 @@ export declare class _EKVirtualConferenceProvider extends _NSObject {
9
11
  /**
10
12
  * @method fetchAvailableRoomTypesWithCompletionHandler: @abstract Called to determine the available virtual conference room types that the user can add to a calendar event. @discussion Your extension must override this method in order to present virtual conference options in Calendar's UI. When your extension has finished determining what room types are available, call the completion handler with an array of EKVirtualConferenceRoomTypeDescriptors. Most extensions will only need to provide one room type. @param completionHandler A block to call when your extension has finished retrieving available room types. If your extension is unable to provide any room types at this time, call this block with nil for the first argument and an appropriate NSError object for the second argument. Do not call this block with nil for both arguments. Similarly, do not call this block with both a non-nil array and a non-nil NSError. This block must be called when your extension has finished its work.
11
13
  */
12
- fetchAvailableRoomTypesWithCompletionHandler$(completionHandler: NobjcObject | null): void;
14
+ fetchAvailableRoomTypesWithCompletionHandler$(completionHandler: ((arg0: _NSArray, arg1: _NSError) => void) | null): void;
13
15
  /**
14
16
  * @method fetchVirtualConferenceForIdentifier:completionHandler: @abstract Called to fetch the specific virtual conference details to add to an event. @discussion Your extension must override this method in order to add virtual conferences to calendar events. When your extension has finished retrieving the requested virtual conference details, create an EKVirtualConferenceDescriptor object containing the virtual conference details and call the completion handler with the EKVirtualConferenceDescriptor object as the first argument. @param identifier Represents the room type that the user chose. This is the same identifier that your extension chose for this EKVirtualConferenceRoomTypeDescriptor in an earlier call to fetchAvailableRoomTypesWithCompletionHandler:. @param completionHandler A block to call when your extension has finished retrieving the virtual conference details. If your extension is unable to retrieve virtual conference details at this time (for example, because network access is not available), call this block with nil for the first argument and an appropriate NSError object for the second argument. Do not call this block with nil for both arguments. Similarly, do not call this block with both a non-nil EKVirtualConferenceDescriptor and a non-nil NSError. This block must be called when your extension has finished its work.
15
17
  */
16
- fetchVirtualConferenceForIdentifier$completionHandler$(identifier: _NSString, completionHandler: NobjcObject | null): void;
18
+ fetchVirtualConferenceForIdentifier$completionHandler$(identifier: _NSString, completionHandler: ((arg0: _EKVirtualConferenceDescriptor, arg1: _NSError) => void) | null): void;
17
19
  }
18
20
  export interface _EKVirtualConferenceProvider extends _NSExtensionRequestHandling {
19
21
  }
@@ -3,4 +3,3 @@ export declare const ExceptionHandling: NobjcLibrary;
3
3
  import type { _NSExceptionHandler } from "./NSExceptionHandler.js";
4
4
  export declare const NSExceptionHandler: typeof _NSExceptionHandler;
5
5
  export type { _NSExceptionHandler };
6
- export * from "./functions.js";
@@ -3,4 +3,3 @@ import { NobjcLibrary } from "objc-js";
3
3
  import { _bindClass } from "../bind.js";
4
4
  export const ExceptionHandling = new NobjcLibrary("/System/Library/Frameworks/ExceptionHandling.framework/ExceptionHandling");
5
5
  export const NSExceptionHandler = _bindClass(ExceptionHandling, "NSExceptionHandler");
6
- export * from "./functions.js";
@@ -1,4 +1,3 @@
1
- import type { NobjcObject } from "objc-js";
2
1
  import type { _NSObject } from "../Foundation/NSObject.js";
3
2
  import type { EPDeveloperToolStatus } from "./EPDeveloperToolStatus.js";
4
3
  export declare class _EPDeveloperTool extends _NSObject {
@@ -11,7 +10,7 @@ export declare class _EPDeveloperTool extends _NSObject {
11
10
  /**
12
11
  * Checks whether developer tool privileges are already available and if not populates an entry in Settings for user approval. This method does not show any UI to the user or guide them towards Settings for approval, if necessary. - Parameter handler: A block called asynchronously with whether the privilege is available. > New info > Concurrency Note: You can call this method from synchronous code using a completion handler, > as shown on this page, or you can call it as an asynchronous method that has the > following declaration: > > ```swift > func requestAccess() async -> Bool > ``` > > For information about concurrency and asynchronous code in Swift, see <doc ://com.apple.documentation/documentation/swift/calling-objective-c-apis-asynchronously>.
13
12
  */
14
- requestDeveloperToolAccessWithCompletionHandler$(handler: NobjcObject): void;
13
+ requestDeveloperToolAccessWithCompletionHandler$(handler: (granted: boolean) => void): void;
15
14
  /**
16
15
  * The current authorization status of the current process. - Returns: An EPDeveloperToolStatus indicating whether the current process has developer tool privileges.
17
16
  */
@@ -0,0 +1,5 @@
1
+ export declare const EPError: {
2
+ readonly Generic: 1;
3
+ readonly NotADeveloperTool: 2;
4
+ };
5
+ export type EPError = typeof EPError[keyof typeof EPError];
@@ -0,0 +1,5 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ export const EPError = {
3
+ Generic: 1,
4
+ NotADeveloperTool: 2,
5
+ };
@@ -7,3 +7,4 @@ import type { _EPExecutionPolicy } from "./EPExecutionPolicy.js";
7
7
  export declare const EPExecutionPolicy: typeof _EPExecutionPolicy;
8
8
  export type { _EPExecutionPolicy };
9
9
  export { EPDeveloperToolStatus } from "./EPDeveloperToolStatus.js";
10
+ export { EPError } from "./EPError.js";
@@ -5,3 +5,4 @@ export const ExecutionPolicy = new NobjcLibrary("/System/Library/Frameworks/Exec
5
5
  export const EPDeveloperTool = _bindClass(ExecutionPolicy, "EPDeveloperTool");
6
6
  export const EPExecutionPolicy = _bindClass(ExecutionPolicy, "EPExecutionPolicy");
7
7
  export { EPDeveloperToolStatus } from "./EPDeveloperToolStatus.js";
8
+ export { EPError } from "./EPError.js";
@@ -1,4 +1,5 @@
1
1
  import type { NobjcObject } from "objc-js";
2
+ import type { _NSError } from "../Foundation/NSError.js";
2
3
  import type { _NSObject } from "../Foundation/NSObject.js";
3
4
  import type { _NSPredicate } from "../Foundation/NSPredicate.js";
4
5
  export declare class _EAAccessoryManager extends _NSObject {
@@ -6,7 +7,7 @@ export declare class _EAAccessoryManager extends _NSObject {
6
7
  static new(): _EAAccessoryManager;
7
8
  init(): _EAAccessoryManager;
8
9
  static sharedAccessoryManager(): _EAAccessoryManager;
9
- showBluetoothAccessoryPickerWithNameFilter$completion$(predicate: _NSPredicate | null, completion: NobjcObject | null): void;
10
+ showBluetoothAccessoryPickerWithNameFilter$completion$(predicate: _NSPredicate | null, completion: ((arg0: _NSError) => void) | null): void;
10
11
  registerForLocalNotifications(): void;
11
12
  unregisterForLocalNotifications(): void;
12
13
  connectedAccessories(): NobjcObject;
@@ -1,6 +1,7 @@
1
1
  import type { NobjcObject } from "objc-js";
2
2
  import type { _FSResource } from "./FSResource.js";
3
3
  import type { _NSArray } from "../Foundation/NSArray.js";
4
+ import type { _NSError } from "../Foundation/NSError.js";
4
5
  import type { _NSString } from "../Foundation/NSString.js";
5
6
  export declare class _FSBlockDeviceResource extends _FSResource {
6
7
  static alloc(): _FSBlockDeviceResource;
@@ -9,7 +10,7 @@ export declare class _FSBlockDeviceResource extends _FSResource {
9
10
  /**
10
11
  * Reads data from the resource into a buffer and executes a block afterwards. For the read to succeed, requests must conform to any transfer requirements of the underlying resource. Disk drives typically require sector (`physicalBlockSize`) addressed operations of one or more sector-aligned offsets. - Parameters: - buffer: A buffer to receive the data. - offset: The offset into the resource from which to start reading. - length: A maximum number of bytes to read. The completion handler receives a parameter with the actual number of bytes read. - completionHandler: A block that executes after the read operation completes. If successful, the first parameter contains the number of bytes actually read. In the case of an error, the second parameter contains a non-`nil` error. This value is `EFAULT` if `buffer` is `NULL`, or `errno` if reading from the resource failed.
11
12
  */
12
- readInto$startingAt$length$completionHandler$(buffer: Uint8Array, offset: NobjcObject, length: number, completionHandler: NobjcObject | null): void;
13
+ readInto$startingAt$length$completionHandler$(buffer: Uint8Array, offset: NobjcObject, length: number, completionHandler: ((actuallyRead: number, error: _NSError) => void) | null): void;
13
14
  /**
14
15
  * Synchronously reads data from the resource into a buffer. This is a synchronous version of ``readInto:startingAt:length:completionHandler:``. > Note: In some cases, this method performs a partial read. In this case, the return value is shorter than the requested length, and the `error` is set to `nil`. - Parameters: - buffer: A buffer to receive the data. - offset: The offset into the resource from which to start reading. - length: A maximum number of bytes to read. The method's return value contains the actual number of bytes read. - error: On return, any error encountered while reading data, or `nil` if no error occurred. - Returns: The actual number of bytes read.
15
16
  */
@@ -17,7 +18,7 @@ export declare class _FSBlockDeviceResource extends _FSResource {
17
18
  /**
18
19
  * Writes data from from a buffer to the resource and executes a block afterwards. For the write to succeed, requests must conform to any transfer requirements of the underlying resource. Disk drives typically require sector (`physicalBlockSize`) addressed operations of one or more sector-aligned offsets. - Parameters: - buffer: A buffer to provide the data. - offset: The offset into the resource from which to start writing. - length: A maximum number of bytes to write. The completion handler receives a parameter with the actual number of bytes write. - completionHandler: A block that executes after the write operation completes. If successful, the first parameter contains the number of bytes actually written. In the case of an error, the second parameter contains a non-`nil` error. This value is `EFAULT` if `buffer` is `NULL`, or `errno` if writing to the resource failed.
19
20
  */
20
- writeFrom$startingAt$length$completionHandler$(buffer: Uint8Array, offset: NobjcObject, length: number, completionHandler: NobjcObject | null): void;
21
+ writeFrom$startingAt$length$completionHandler$(buffer: Uint8Array, offset: NobjcObject, length: number, completionHandler: ((actuallyWritten: number, error: _NSError) => void) | null): void;
21
22
  /**
22
23
  * Synchronously writes data from from a buffer to the resource and executes a block afterwards. This is a synchronous version of ``writeFrom:startingAt:length:completionHandler:``. > Note: In some cases, this method performs a partial write. In this case, the return value is shorter than the requested length, and the `error` is set to `nil`. - Parameters: - buffer: A buffer to provide the data. - offset: The offset into the resource from which to start writing. - length: A maximum number of bytes to write. The completion handler receives a parameter with the actual number of bytes write. - error: On return, any error encountered while writing data, or `nil` if no error occurred. - Returns: The actual number of bytes written.
23
24
  */
@@ -1,4 +1,5 @@
1
- import type { NobjcObject } from "objc-js";
1
+ import type { _NSArray } from "../Foundation/NSArray.js";
2
+ import type { _NSError } from "../Foundation/NSError.js";
2
3
  import type { _NSObject } from "../Foundation/NSObject.js";
3
4
  export declare class _FSClient extends _NSObject {
4
5
  static alloc(): _FSClient;
@@ -9,5 +10,5 @@ export declare class _FSClient extends _NSObject {
9
10
  /**
10
11
  * Asynchronously retrieves an list of installed file system modules. In Swift, you can either call this method and pass a completion handler closure, or get the value of the `installedExtensions` property with the `async` keyword. - Parameter completionHandler: A block or closure that executes when FSKit finishes its fetch process. If the fetch succeeds, the first parameter contains an array of ``FSModuleIdentity`` instances that identify installed modules. If the fetch fails, the second parameter contains an error detailing the failure.
11
12
  */
12
- fetchInstalledExtensionsWithCompletionHandler$(completionHandler: NobjcObject | null): void;
13
+ fetchInstalledExtensionsWithCompletionHandler$(completionHandler: ((arg0: _NSArray, arg1: _NSError) => void) | null): void;
13
14
  }
@@ -0,0 +1,10 @@
1
+ export declare const FSErrorCode: {
2
+ readonly FSErrorModuleLoadFailed: 4500;
3
+ readonly FSErrorResourceUnrecognized: 4501;
4
+ readonly FSErrorResourceDamaged: 4502;
5
+ readonly FSErrorResourceUnusable: 4503;
6
+ readonly FSErrorStatusOperationInProgress: 4504;
7
+ readonly FSErrorStatusOperationPaused: 4505;
8
+ readonly FSErrorInvalidDirectoryCookie: 4506;
9
+ };
10
+ export type FSErrorCode = typeof FSErrorCode[keyof typeof FSErrorCode];
@@ -0,0 +1,10 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ export const FSErrorCode = {
3
+ FSErrorModuleLoadFailed: 4500,
4
+ FSErrorResourceUnrecognized: 4501,
5
+ FSErrorResourceDamaged: 4502,
6
+ FSErrorResourceUnusable: 4503,
7
+ FSErrorStatusOperationInProgress: 4504,
8
+ FSErrorStatusOperationPaused: 4505,
9
+ FSErrorInvalidDirectoryCookie: 4506,
10
+ };
@@ -1,11 +1,11 @@
1
- import type { NobjcObject } from "objc-js";
2
1
  import type { _FSBlockDeviceResource } from "./FSBlockDeviceResource.js";
3
2
  import type { _FSContainerStatus } from "./FSContainerStatus.js";
3
+ import type { _NSError } from "../Foundation/NSError.js";
4
4
  export interface _FSFileSystemBase {
5
5
  /**
6
6
  * Wipes existing file systems on the specified resource. This method wraps the `wipefs` functionality from `libutil`. For more information, see the `man` page for `wipefs`. - Parameters: - resource: The ``FSBlockDeviceResource`` to wipe. - completion: A block or closure that executes after the wipe operation completes. The completion handler receives a single parameter indicating any error that occurs during the operation. If the value is `nil`, the wipe operation succeeded.
7
7
  */
8
- wipeResource$completionHandler$?(resource: _FSBlockDeviceResource, completion: NobjcObject | null): void;
8
+ wipeResource$completionHandler$?(resource: _FSBlockDeviceResource, completion: ((error: _NSError) => void) | null): void;
9
9
  /**
10
10
  * The status of the file system container, indicating its readiness and activity. A file system container starts in the ``FSContainerState/notReady`` state, and then transitions to the other values of the ``FSContainerState`` enumeration. The following diagram illustrates the possible state transitions. ![A flow diagram of four possible container states. The initial state, notReady, can transition to ready or blocked. The ready state can transition back to not ready, or to blocked or active. The blocked state can transition to ready or not ready. The active state can transition back to ready or to not ready.](fs-file-system-base) Your file system implementation updates this property as it changes state. Many events and operations may trigger a state transition, and some transitions depend on a specific file system's design. When using ``FSBlockDeviceResource``, implement the following common state transitions: * Calling `loadResource` transitions the state out of ``FSContainerState/notReady``. For all block device file systems, this operation changes the state to either ``FSContainerState/ready`` or ``FSContainerState/blocked``. * Calling `unloadResource` transitions to the ``FSContainerState/notReady`` state, as does device termination. * Transitioning from ``FSContainerState/blocked`` to ``FSContainerState/ready`` occurs as a result of resolving the underlying block favorably. * Transitioning from ``FSContainerState/ready`` to ``FSContainerState/blocked`` is unusal, but valid. * Transitioning between ``FSContainerState/ready`` and ``FSContainerState/active`` can result from maintenance operations such as ``FSManageableResourceMaintenanceOperations/startCheckWithTask:options:error:``. For a ``FSUnaryFileSystem``, this transition can also occur when activating or deactivating the container's single volume.
11
11
  */
@@ -0,0 +1,2 @@
1
+ export declare const FSOperationID: {};
2
+ export type FSOperationID = typeof FSOperationID[keyof typeof FSOperationID];
@@ -0,0 +1,2 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ export const FSOperationID = {};
@@ -1,4 +1,3 @@
1
- import type { NobjcObject } from "objc-js";
2
1
  import type { _NSError } from "../Foundation/NSError.js";
3
2
  import type { _NSObject } from "../Foundation/NSObject.js";
4
3
  import type { _NSString } from "../Foundation/NSString.js";
@@ -17,6 +16,6 @@ export declare class _FSTask extends _NSObject {
17
16
  /**
18
17
  * A handler called by FSKit upon canceling the task. FSKit calls the cancellation handler within an independent execution context. If the handler can't complete its work successfully, it can return an error from the block or closure. FSKit logs any returned error and then terminates all activity in the container. The task object clears its `cancellationHandler` property after the task's cancellation or completion. This helps accelerate the cleanup of retained state. The exact structuring of the completion handler depends on the structuring of the code imlementing the task. As a concrete example, consider a check operation with the following class: @TabNavigator { @Tab("Objective-C") { ```obj-c @‎‌interface YourFileSystem : NSObject @property (retain) dispatch_group_t work_group; @property (nonatomic,getter=interrupted) BOOL interrupted; @end ``` } @Tab("Swift") { ```swift class YourFileSystem { let work_group: dispatch_group_t = DispatchGroup() var interrupted: Bool = false private lazy var leaveWorkGroupOnce = leaveWorkGroup() } ``` } } and a `startCheckWithTask` method with a helper method `performCheck` like the following: @TabNavigator { @Tab("Objective-C") { ```obj-c - (void)performCheck:(nonnull FSTask *)task progress:(nonnull NSProgress *)progress context:(YourFileSystemCancelationContext *)context { // See discussion for notes on implementing this method. } - (NSProgress * _Nullable)startCheckWithTask:(nonnull FSTask *)task options:(nonnull FSTaskOptions *)options error:(NSError *__autoreleasing _Nullable * _Nullable)error { dispatch_queue_t someQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); NSProgress *progress = [[NSProgress alloc] init]; YourFileSystemCancelationContext *checker= [[YourFileSystemCancelationContext alloc] init]; dispatch_group_enter(checker.work_group); [task setCancellationHandler:^NSError * _Nullable{ checker.interrupted = YES; dispatch_group_wait(checker.work_group, DISPATCH_TIME_FOREVER); return nil; }]; dispatch_async(someQueue, ^{[self performCheck:task progress:progress context:checker];}); return progress; } ``` } @Tab("Swift") { ```swift func performCheck(task: FSTask, progress: Progress, context: YourFileSystemCancelationContext) { // See discussion for notes on implementing this method. } func startCheck(task: FSTask, options: FSTaskOptions) throws -> Progress { let someQueue = DispatchQueue.global() let progress = Progress() let checkContext = YourFileSystemCancelationContext() checkContext.work_group.enter() task.cancellationHandler = { checkContext.interrupted = true checkContext.work_group.wait() return nil } someQueue.async { self.performCheck(task: task, progress: progress, context:checkContext) } return progress } ``` } } When canceled, the handler block in this example sets the checker's `interrupted` property, and then calls the <doc://com.apple.documentation/documentation/dispatch/dispatchgroup> method <doc://com.apple.documentation/documentation/dispatch/dispatchgroup/wait()> (Swift) or the function <doc://com.apple.documentation/documentation/dispatch/1452794-dispatch_group_wait> (Objective-C) on the checker's work group. Because neither of these operations can fail, the handler returns `nil` to indicate it didn't encounter an error. For simplicity, this example doesn't account for errors, whereas production code must do so. Furthermore, when fully implemented, the `performCheck` method should perform a check operation. Specifically, it should periodically update the progress object and check its `interrupted` variable. The check can either complete successfully, complete with an error, or enter the interrupted state. It should then call ``FSTask/didComplete(error:)`` wtih the appropriate error value or `nil`. Finally it should call `context.work_group.leave()` (Swift) or `dispatch_group_leave(context.work_group)` (Objective-C) to remove itself from its dispatch group.
19
18
  */
20
- cancellationHandler(): NobjcObject | null;
21
- setCancellationHandler$(value: NobjcObject | null): void;
19
+ cancellationHandler(): (() => _NSError) | null;
20
+ setCancellationHandler$(value: (() => _NSError) | null): void;
22
21
  }
@@ -1,19 +1,21 @@
1
- import type { NobjcObject } from "objc-js";
1
+ import type { _FSProbeResult } from "./FSProbeResult.js";
2
2
  import type { _FSResource } from "./FSResource.js";
3
3
  import type { _FSTaskOptions } from "./FSTaskOptions.js";
4
+ import type { _FSVolume } from "./FSVolume.js";
5
+ import type { _NSError } from "../Foundation/NSError.js";
4
6
  export interface _FSUnaryFileSystemOperations {
5
7
  /**
6
8
  * Requests that the file system probe the specified resource. Implement this method to indicate whether the resource is recognizable and usable. - Parameters: - resource: The ``FSResource`` to probe. - reply: A block or closure that your implementation invokes when it finishes the probe or encounters an error. Pass an instance of ``FSProbeResult`` with probe results as the first parameter if your probe operation succeeds. If probing fails, pass an error as the second parameter.
7
9
  */
8
- probeResource$replyHandler$?(resource: _FSResource, reply: NobjcObject | null): void;
10
+ probeResource$replyHandler$?(resource: _FSResource, reply: ((result: _FSProbeResult, error: _NSError) => void) | null): void;
9
11
  /**
10
12
  * Requests that the file system load a resource and present it as a volume. Implement this method by inspecting the provided resource and verifying it uses a supported format. If the resource does use a supported format, create a subclass of `FSVolume`, clear the container error state, and invoke the `reply` callback, passing your volume as a parameter. If loading can't proceed, invoke `reply` and send an appropriate error as the second parameter. - Parameters: - resource: An ``FSResource`` to load. - options: An ``FSTaskOptions`` object specifying options to apply when loading the resource. An ``FSUnaryFileSystem`` supports two options: `-f` for "force" and `--rdonly` for read-only. The file system must remember if the read-only option is present. - reply: A block or closure that your implementation invokes when it finishes setting up or encounters an error. Pass a subclass of `FSVolume` as the first parameter if loading succeeds. If loading fails, pass an error as the second parameter.
11
13
  */
12
- loadResource$options$replyHandler$?(resource: _FSResource, options: _FSTaskOptions, reply: NobjcObject | null): void;
14
+ loadResource$options$replyHandler$?(resource: _FSResource, options: _FSTaskOptions, reply: ((volume: _FSVolume, err: _NSError) => void) | null): void;
13
15
  /**
14
16
  * Requests that the file system unload the specified resource. - Parameters: - resource: An ``FSResource`` to unload. - options: An ``FSTaskOptions`` object specifying options to apply when unloading the resource. - reply: A block or closure that your implementation invokes when it finishes unloading or encounters an error. If unloading fails, pass an error as the parameter to describe the problem. Otherwise, pass `nil`.
15
17
  */
16
- unloadResource$options$replyHandler$?(resource: _FSResource, options: _FSTaskOptions, reply: NobjcObject | null): void;
18
+ unloadResource$options$replyHandler$?(resource: _FSResource, options: _FSTaskOptions, reply: ((err: _NSError) => void) | null): void;
17
19
  /**
18
20
  * Notifies you that the system finished loading your file system extension. The system performs this callback after the main run loop starts and before receiving the first message from the FSKit daemon. Implement this method if you want to perform any setup prior to receiving FSKit callbacks.
19
21
  */
@@ -1,11 +1,11 @@
1
- import type { NobjcObject } from "objc-js";
2
1
  import type { _FSItem } from "./FSItem.js";
2
+ import type { _NSError } from "../Foundation/NSError.js";
3
3
  import type { FSAccessMask } from "./FSAccessMask.js";
4
4
  export interface _FSVolumeAccessCheckOperations {
5
5
  /**
6
6
  * Checks whether the file system allows access to the given item. - Parameters: - theItem: The item for which to check access. - access: A mask indicating a set of access types for which to check. - reply: A block or closure to indicate success or failure. If the access check succeeds, pass a Boolean value to indicate whether the file system grants access, followed by a `nil` error. If the access check fails, pass the relevant error as the second parameter; FSKit ignores the Boolean parameter in this case. For an `async` Swift implementation, there's no reply handler; simply return the `Bool` or throw an error.
7
7
  */
8
- checkAccessToItem$requestedAccess$replyHandler$?(theItem: _FSItem, access: FSAccessMask, reply: NobjcObject | null): void;
8
+ checkAccessToItem$requestedAccess$replyHandler$?(theItem: _FSItem, access: FSAccessMask, reply: ((shouldAllowAccess: boolean, error: _NSError) => void) | null): void;
9
9
  /**
10
10
  * A Boolean value that instructs FSKit not to call this protocol's methods, even if the volume conforms to it. FSKit reads this value after the file system replies to the `loadResource` message. Changing the returned value during the runtime of the volume has no effect.
11
11
  */
@@ -1,11 +1,11 @@
1
- import type { NobjcObject } from "objc-js";
2
1
  import type { _FSItem } from "./FSItem.js";
2
+ import type { _NSError } from "../Foundation/NSError.js";
3
3
  import type { FSItemDeactivationOptions } from "./FSItemDeactivationOptions.js";
4
4
  export interface _FSVolumeItemDeactivation {
5
5
  /**
6
6
  * Notifies the file system that the kernel is no longer making immediate use of the given item. This method gives a file system a chance to release resources associated wtih an item. However, this method prescribes no specific action; it's acceptable to defer all reclamation until ``FSVolume/Operations/reclaimItem(_:replyHandler:)``. This method is the equivalent of VFS's `VNOP_INACTIVE`. FSKit restricts calls to this method based on the current value of ``FSVolume/ItemDeactivation/itemDeactivationPolicy``. - Parameters: - item: The item to deactivate. - reply: A block or closure to indicate success or failure. If deactivation fails, pass an error as the one parameter to the reply handler. If deactivation succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply throw an error or return normally.
7
7
  */
8
- deactivateItem$replyHandler$?(item: _FSItem, reply: NobjcObject | null): void;
8
+ deactivateItem$replyHandler$?(item: _FSItem, reply: ((error: _NSError) => void) | null): void;
9
9
  /**
10
10
  * A property that tells FSKit to which types of items the deactivation applies, if any. FSKit reads this value after the file system replies to the `loadResource` message. Changing the returned value during the runtime of the volume has no effect.
11
11
  */
@@ -6,26 +6,27 @@ import type { _FSItemSetAttributesRequest } from "./FSItemSetAttributesRequest.j
6
6
  import type { _NSError } from "../Foundation/NSError.js";
7
7
  import type { FSBlockmapFlags } from "./FSBlockmapFlags.js";
8
8
  import type { FSCompleteIOFlags } from "./FSCompleteIOFlags.js";
9
+ import type { FSOperationID } from "./FSOperationID.js";
9
10
  import type { FSPreallocateFlags } from "./FSPreallocateFlags.js";
10
11
  export interface _FSVolumeKernelOffloadedIOOperations {
11
12
  /**
12
13
  * Maps a file's disk space into extents, allowing the kernel to perform I/O with that space. FSKit calls this method when the kernel needs to get a mapping of logical-to-physical offsets of the file's data. This call may occur as part of an I/O operation on the file, or just to get the mapping as part of a `fcntl(F_LOG2PHYS)` system call. In the case of an I/O operation on the file, `operationID` has a nonzero value; a future call to ``completeIO(for:offset:length:status:flags:operationID:replyHandler:)`` uses the same `operationID` to indicate which operation it completes. In the case of a `fcntl(F_LOG2PHYS)` system call, the `operationID` parameter is `0` (Objective-C) or ``FSOperationID/unspecified`` (Swift). In both cases the kernel retains the mapping, and it may perform I/O to this range (or a part of it) at any time. If satisfying a blockmap request requires more extents than `packer` can handle, FSKit makes additional calls to this method with the same operation ID to collect the remainder. - Parameters: - file: The file for which to map disk space. - offset: The starting logical offset of the range to be mapped (in bytes). - length: The length of the range to be mapped (in bytes). - flags: Flags that affect the behavior of the blockmap operation. - operationID: A unique identifier of the blockmap call. Any value other than `0` (Objective-C) or ``FSOperationID/unspecified`` (Swift) indicates the beginning of an I/O operation. A value of `0` or ``FSOperationID/unspecified`` indicates the kernel maps the file without performing I/O. In this case, FSKit doesn't perform a corresponding call to ``completeIO(for:offset:length:status:flags:operationID:replyHandler:)``. - packer: An extent packer you use to pack the requested range of the file's allocated disk space. FSKit sends all of the packed extents to the kernel when it invokes `reply`. - reply: A block or closure to indicate success or failure. If mapping fails, pass an error as the one parameter to the reply handler. If mapping succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply throw an error or return normally.
13
14
  */
14
- blockmapFile$offset$length$flags$operationID$packer$replyHandler$?(file: _FSItem, offset: NobjcObject, length: number, flags: FSBlockmapFlags, operationID: number, packer: _FSExtentPacker, reply: NobjcObject | null): void;
15
+ blockmapFile$offset$length$flags$operationID$packer$replyHandler$?(file: _FSItem, offset: NobjcObject, length: number, flags: FSBlockmapFlags, operationID: FSOperationID, packer: _FSExtentPacker, reply: ((error: _NSError) => void) | null): void;
15
16
  /**
16
17
  * Completes an I/O operation for a given file. Implement this method by updating a file's metadata, such as its size and modification time. FSKit may call this method without an earlier call to ``blockmapFile(_:offset:length:flags:operationID:packer:replyHandler:)``. In this case, the `operationID` is `0` (Objective-C) or ``FSOperationID/unspecified`` (Swift). - Parameters: - file: The file for which the I/O operation completed. - offset: The starting logical offset at which I/O started. - length: The length of the I/O range (in bytes). - status: Any error that occurred during the operation. If no error occurred, this parameter is `nil`. - flags: Flags that affect the behavior of the complete I/O operation. - operationID: A unique identifier of the blockmap call. Any value other than `0` (Objective-C) or ``FSOperationID/unspecified`` (Swift) corresponds to a previous call to ``blockmapFile(_:offset:length:flags:operationID:packer:replyHandler:)`` with the same `operationID`. - reply: A block or closure to indicate success or failure. If completing I/O fails, pass an error as the one parameter to the reply handler. If completing I/O succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply throw an error or return normally.
17
18
  */
18
- completeIOForFile$offset$length$status$flags$operationID$replyHandler$?(file: _FSItem, offset: NobjcObject, length: number, status: _NSError, flags: FSCompleteIOFlags, operationID: number, reply: NobjcObject | null): void;
19
+ completeIOForFile$offset$length$status$flags$operationID$replyHandler$?(file: _FSItem, offset: NobjcObject, length: number, status: _NSError, flags: FSCompleteIOFlags, operationID: FSOperationID, reply: ((error: _NSError) => void) | null): void;
19
20
  /**
20
21
  * Creates a new file item and map its disk space. This method allows the module to opportunistically supply extents, avoiding future calls to ``blockmapFile(_:offset:length:flags:operationID:packer:replyHandler:)``. Only perform this technique opportunistically. In particular, don't perform additional I/O to fetch extent data. Packing extents in this method requires that `attributes` defines a size greater than 0. An implementation that doesn't supply the extents can ignore the packer and call the corresponding method in the ``FSVolume/Operations`` protocol, ``FSVolume/Operations/createItem(named:type:inDirectory:attributes:replyHandler:)``. - Parameters: - name: The new file's name. - directory: The directory in which to create the file. - attributes: Attributes to apply to the new file. - packer: An extent packer you use to pack the file's allocated disk space. - reply: A block or closure to indicate success or failure. If creation succeeds, pass the newly created ``FSItem`` and its ``FSFileName``, along with a `nil` error. If creation fails, pass the relevant error as the third parameter; FSKit ignores any ``FSItem`` or ``FSFileName`` in this case. For an `async` Swift implementation, there's no reply handler; instead, return a tuple of the ``FSItem`` and its ``FSFileName`` or throw an error.
21
22
  */
22
- createFileNamed$inDirectory$attributes$packer$replyHandler$?(name: _FSFileName, directory: _FSItem, attributes: _FSItemSetAttributesRequest, packer: _FSExtentPacker, reply: NobjcObject | null): void;
23
+ createFileNamed$inDirectory$attributes$packer$replyHandler$?(name: _FSFileName, directory: _FSItem, attributes: _FSItemSetAttributesRequest, packer: _FSExtentPacker, reply: ((newFile: _FSItem, newFileName: _FSFileName, error: _NSError) => void) | null): void;
23
24
  /**
24
25
  * Looks up an item within a directory and maps its disk space. This method allows the module to opportunistically supply extents, avoiding future calls to ``blockmapFile(_:offset:length:flags:operationID:packer:replyHandler:)``. Only perform this technique opportunistically. In particular, don't perform additional I/O to fetch extent data. - Parameters: - name: The name of the file to look up. - directory: The directory in which to look up the file. - packer: An extent packer you use to pack the file's allocated disk space. - reply: A block or closure to indicate success or failure. If lookup succeeds, pass the found ``FSItem`` and its ``FSFileName``, along with a `nil` error. If lookup fails, pass the relevant error as the third parameter; FSKit ignores any ``FSItem`` or ``FSFileName`` in this case. For an `async` Swift implementation, there's no reply handler; instead, return a tuple of the ``FSItem`` and its ``FSFileName`` or throw an error.
25
26
  */
26
- lookupItemNamed$inDirectory$packer$replyHandler$?(name: _FSFileName, directory: _FSItem, packer: _FSExtentPacker, reply: NobjcObject | null): void;
27
+ lookupItemNamed$inDirectory$packer$replyHandler$?(name: _FSFileName, directory: _FSItem, packer: _FSExtentPacker, reply: ((theItem: _FSItem, itemName: _FSFileName, error: _NSError) => void) | null): void;
27
28
  /**
28
29
  * Preallocates and maps disk space for the given file. This method allows the module to opportunistically supply extents, avoiding future calls to ``blockmapFile(_:offset:length:flags:operationID:packer:replyHandler:)``. > Important: Only implement this method if your file system conforms to ``FSVolume/PreallocateOperations``. - Parameters: - file: The item for which to preallocate space. - offset: The offset from which to allocate. - length: The length of the space in bytes. - flags: Flags that affect the preallocation behavior. - packer: An extent packer you use to pack the file's preallocated disk space. - reply: A block or closure to indicate success or failure. If preallocation succeeds, pass the amount of bytes allocated and a nil error. If preallocation fails, pass the relevant error as the second parameter; FSKit ignores any byte count in this case. For an `async` Swift implementation, there’s no reply handler; simply return the allocated byte count or throw an error.
29
30
  */
30
- preallocateSpaceForFile$atOffset$length$flags$packer$replyHandler$?(file: _FSItem, offset: NobjcObject, length: number, flags: FSPreallocateFlags, packer: _FSExtentPacker, reply: NobjcObject | null): void;
31
+ preallocateSpaceForFile$atOffset$length$flags$packer$replyHandler$?(file: _FSItem, offset: NobjcObject, length: number, flags: FSPreallocateFlags, packer: _FSExtentPacker, reply: ((bytesAllocated: number, error: _NSError) => void) | null): void;
31
32
  }
@@ -1,15 +1,15 @@
1
- import type { NobjcObject } from "objc-js";
2
1
  import type { _FSItem } from "./FSItem.js";
2
+ import type { _NSError } from "../Foundation/NSError.js";
3
3
  import type { FSVolumeOpenModes } from "./FSVolumeOpenModes.js";
4
4
  export interface _FSVolumeOpenCloseOperations {
5
5
  /**
6
6
  * Opens a file for access. - Parameters: - item: The item to open. - modes: The set of mode flags to open the item with. - reply: A block or closure to indicate success or failure. If opening fails, pass an error as the one parameter to the reply handler. If opening succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply throw an error or return normally.
7
7
  */
8
- openItem$withModes$replyHandler$?(item: _FSItem, modes: FSVolumeOpenModes, reply: NobjcObject | null): void;
8
+ openItem$withModes$replyHandler$?(item: _FSItem, modes: FSVolumeOpenModes, reply: ((error: _NSError) => void) | null): void;
9
9
  /**
10
10
  * Closes a file from further access. - Parameters: - item: The item to close. - modes: The set of mode flags to keep after this close. - reply: A block or closure to indicate success or failure. If closing fails, pass an error as the one parameter to the reply handler. If closing succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply throw an error or return normally.
11
11
  */
12
- closeItem$keepingModes$replyHandler$?(item: _FSItem, modes: FSVolumeOpenModes, reply: NobjcObject | null): void;
12
+ closeItem$keepingModes$replyHandler$?(item: _FSItem, modes: FSVolumeOpenModes, reply: ((error: _NSError) => void) | null): void;
13
13
  /**
14
14
  * A Boolean value that instructs FSKit not to call this protocol's methods, even if the volume conforms to it. FSKit reads this value after the file system replies to the `loadResource` message. Changing the returned value during the runtime of the volume has no effect.
15
15
  */
@@ -1,13 +1,14 @@
1
- import type { NobjcObject } from "objc-js";
2
1
  import type { _FSDirectoryEntryPacker } from "./FSDirectoryEntryPacker.js";
3
2
  import type { _FSFileName } from "./FSFileName.js";
4
3
  import type { _FSItem } from "./FSItem.js";
4
+ import type { _FSItemAttributes } from "./FSItemAttributes.js";
5
5
  import type { _FSItemGetAttributesRequest } from "./FSItemGetAttributesRequest.js";
6
6
  import type { _FSItemSetAttributesRequest } from "./FSItemSetAttributesRequest.js";
7
7
  import type { _FSStatFSResult } from "./FSStatFSResult.js";
8
8
  import type { _FSTaskOptions } from "./FSTaskOptions.js";
9
9
  import type { _FSVolumePathConfOperations } from "./FSVolumePathConfOperations.js";
10
10
  import type { _FSVolumeSupportedCapabilities } from "./FSVolumeSupportedCapabilities.js";
11
+ import type { _NSError } from "../Foundation/NSError.js";
11
12
  import type { FSDeactivateOptions } from "./FSDeactivateOptions.js";
12
13
  import type { FSItemType } from "./FSItemType.js";
13
14
  import type { FSSyncFlags } from "./FSSyncFlags.js";
@@ -15,67 +16,67 @@ export interface _FSVolumeOperations extends _FSVolumePathConfOperations {
15
16
  /**
16
17
  * Mounts this volume, using the specified options. FSKit calls this method as a signal that some process is trying to mount this volume. Your file system receives a call to ``activate(options:replyHandler:)`` prior to receiving any mount calls. - Parameters: - options: Options to apply to the mount. These can include security-scoped file paths. There are no defined options currently. - reply: A block or closure to indicate success or failure. If mounting fails, pass an error as the one parameter to the reply handler. If mounting succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply return normally.
17
18
  */
18
- mountWithOptions$replyHandler$?(options: _FSTaskOptions, reply: NobjcObject | null): void;
19
+ mountWithOptions$replyHandler$?(options: _FSTaskOptions, reply: ((error: _NSError) => void) | null): void;
19
20
  /**
20
21
  * Unmounts this volume. Clear and flush all cached state in your implementation of this method. - Parameters: - reply: A block or closure to indicate success or failure. If unmounting fails, pass an error as the one parameter to the reply handler. If unmounting succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply return normally.
21
22
  */
22
- unmountWithReplyHandler$?(reply: NobjcObject): void;
23
+ unmountWithReplyHandler$?(reply: () => void): void;
23
24
  /**
24
25
  * Synchronizes the volume with its underlying resource. After calling this method, FSKit assumes that the volume has sent all pending I/O or metadata to its resource. - Parameters: - flags: Timing flags, as defined in `mount.h.` These flags let the file system know whether to run the operation in a blocking or nonblocking fashion. - reply: A block or closure to indicate success or failure. If synchronization fails, pass an error as the one parameter to the reply handler. If synchronization succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply throw an error or return normally.
25
26
  */
26
- synchronizeWithFlags$replyHandler$?(flags: FSSyncFlags, reply: NobjcObject | null): void;
27
+ synchronizeWithFlags$replyHandler$?(flags: FSSyncFlags, reply: ((error: _NSError) => void) | null): void;
27
28
  /**
28
29
  * Fetches attributes for the given item. For file systems that don't support hard links, set ``FSItemAttributes/linkCount`` to `1` for regular files and symbolic links. If the item's `bsdFlags` contain the `UF_COMPRESSED` flag, your file system returns the uncompressed size of the file. - Parameters: - desiredAttributes: A requested set of attributes to get. The implementation inspects the request's ``FSItemGetAttributesRequest/wantedAttributes`` to determine which attributes to populate. - item: The item to get attributes for. - reply: A block or closure to indicate success or failure. If getting attributes succeeds, pass an ``FSItemAttributes`` with the requested attributes populated and a `nil` error. If getting attributes fails, pass the relevant error as the second parameter; FSKit ignores any ``FSItemAttributes`` in this case. For an `async` Swift implementation, there's no reply handler; simply return the ``FSItemAttributes`` or throw an error.
29
30
  */
30
- getAttributes$ofItem$replyHandler$?(desiredAttributes: _FSItemGetAttributesRequest, item: _FSItem, reply: NobjcObject | null): void;
31
+ getAttributes$ofItem$replyHandler$?(desiredAttributes: _FSItemGetAttributesRequest, item: _FSItem, reply: ((attributes: _FSItemAttributes, error: _NSError) => void) | null): void;
31
32
  /**
32
33
  * Sets the given attributes on an item. Several attributes are considered "read-only", and an attempt to set these attributes results in an error with the code `EINVAL`. A request may set ``FSItem/Attributes/size`` beyond the end of the file. If the underlying file system doesn't support sparse files, allocate space to fill the new file size. Either fill this space with zeroes, or configure it to read as zeroes. If a request sets the file size below the current end-of-file, truncate the file and return any unused space to the file system as free space. Ignore attempts to set the size of directories or symbolic links; don't produce an error. If the caller attepts to sest an attribute not supported by the on-disk file system format, don't produce an error. The upper layers of the framework will detect this situation. - Parameters: - newAttributes: A request containing the attributes to set. - item: The item on which to set the attributes. - reply: A block or closure to indicate success or failure. If setting attributes succeeds, pass an ``FSItemAttributes`` with the item's updated attributes and a `nil` error. If setting attributes fails, pass the relevant error as the second parameter; FSKit ignores any ``FSItemAttributes`` in this case. For an `async` Swift implementation, there's no reply handler; simply return the ``FSItemAttributes`` or throw an error.
33
34
  */
34
- setAttributes$onItem$replyHandler$?(newAttributes: _FSItemSetAttributesRequest, item: _FSItem, reply: NobjcObject | null): void;
35
+ setAttributes$onItem$replyHandler$?(newAttributes: _FSItemSetAttributesRequest, item: _FSItem, reply: ((attributes: _FSItemAttributes, error: _NSError) => void) | null): void;
35
36
  /**
36
37
  * Looks up an item within a directory. If no item matching `name` exists in the directory indicated by `directory`, complete the request with an error with a domain of <doc://com.apple.documentation/documentation/Foundation/NSPOSIXErrorDomain> and a code of `ENOENT`. > Tip: The ``FSFileName`` sent back to the caller may differ from the `name` parameter. This flexibility allows your implementation to handle case-insensitive and case-sensitive file systems. It might also be the case that `name` uses a composed Unicode string, but the name maintained by the file system and provided to the caller is uncomposed Unicode. - Parameters: - name: The name of the item to look up. - directory: The directory in which to look up the item. - reply: A block or closure to indicate success or failure. If lookup succeeds, pass the found ``FSItem`` and its ``FSFileName`` (as saved within the file system), along with a `nil` error. If lookup fails, pass the relevant error as the third parameter; any ``FSItem`` or ``FSFileName`` are ignored in this case. For an `async` Swift implementation, there's no reply handler; simply return the ``FSItem`` and ``FSFileName`` as a tuple or throw an error.
37
38
  */
38
- lookupItemNamed$inDirectory$replyHandler$?(name: _FSFileName, directory: _FSItem, reply: NobjcObject | null): void;
39
+ lookupItemNamed$inDirectory$replyHandler$?(name: _FSFileName, directory: _FSItem, reply: ((theItem: _FSItem, itemName: _FSFileName, error: _NSError) => void) | null): void;
39
40
  /**
40
41
  * Reclaims an item, releasing any resources allocated for the item. FSKit guarantees that for every ``FSItem`` returned by the volume, a corresponding reclaim operation occurs after the upper layers no longer reference that item. > Note: Block device file systems may assess whether an underyling resource terminates before processing reclaim operations. On unary file systems, for example, the associated volumes unmount when such resources disconnect from the system. The unmount triggers a reclaiming of all items. Some implementations benefit greatly from short-circuiting in such cases. With a terminated resource, all I/O results in an error, making short-circuiting the most efficient response. - Parameters: - item: The item to reclaim. - reply: A block or closure to indicate success or failure. If removal fails, pass an error as the one parameter to the reply handler. If removal succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply throw an error or return normally.
41
42
  */
42
- reclaimItem$replyHandler$?(item: _FSItem, reply: NobjcObject | null): void;
43
+ reclaimItem$replyHandler$?(item: _FSItem, reply: ((error: _NSError) => void) | null): void;
43
44
  /**
44
45
  * Reads a symbolic link. - Parameters: - item: The symbolic link to read from. FSKit guarantees this item is of type ``FSItem/ItemType/symlink``. - reply: A block or closure to indicate success or failure. If reading succeeds, pass the link's contents as an ``FSFileName`` and a `nil` error. If reading fails, pass the relevant error as the second parameter; FSKit ignores any ``FSFileName`` in this case. For an `async` Swift implementation, there's no reply handler; simply return the ``FSFileName`` or throw an error.
45
46
  */
46
- readSymbolicLink$replyHandler$?(item: _FSItem, reply: NobjcObject | null): void;
47
+ readSymbolicLink$replyHandler$?(item: _FSItem, reply: ((contents: _FSFileName, error: _NSError) => void) | null): void;
47
48
  /**
48
49
  * Creates a new file or directory item. If an item named `name` already exists in the directory indicated by `directory`, complete the request with an error with a domain of <doc://com.apple.documentation/documentation/Foundation/NSPOSIXErrorDomain> and a code of `EEXIST`. - Parameters: - name: The new item's name. - type: The new item's type. Valid values are ``FSItem/ItemType/file`` or ``FSItem/ItemType/directory``. - directory: The directory in which to create the item. - newAttributes: Attributes to apply to the new item. - reply: A block or closure to indicate success or failure. If creation succeeds, pass the newly-created ``FSItem`` and its ``FSFileName``, along with a `nil` error. If creation fails, pass the relevant error as the third parameter; FSKit ignores any ``FSItem`` or ``FSFileName`` in this case. For an `async` Swift implementation, there's no reply handler; simply return a tuple of the ``FSItem`` and its ``FSFileName`` or throw an error.
49
50
  */
50
- createItemNamed$type$inDirectory$attributes$replyHandler$?(name: _FSFileName, type: FSItemType, directory: _FSItem, newAttributes: _FSItemSetAttributesRequest, reply: NobjcObject | null): void;
51
+ createItemNamed$type$inDirectory$attributes$replyHandler$?(name: _FSFileName, type: FSItemType, directory: _FSItem, newAttributes: _FSItemSetAttributesRequest, reply: ((newItem: _FSItem, newItemName: _FSFileName, error: _NSError) => void) | null): void;
51
52
  /**
52
53
  * Creates a new symbolic link. If an item named `name` already exists in the directory indicated by `directory`, complete the request with an error with a domain of <doc://com.apple.documentation/documentation/Foundation/NSPOSIXErrorDomain> and a code of `EEXIST`. - Parameters: - name: The new item's name. - directory: The directory in which to create the item. - newAttributes: Attributes to apply to the new item. - contents: The contents of the new symbolic link. - reply: A block or closure to indicate success or failure. If creation succeeds, pass the newly-created ``FSItem`` and a `nil` error. If creation fails, pass the relevant error as the second parameter; FSKit ignores any ``FSItem`` in this case. For an `async` Swift implementation, there's no reply handler; simply return the ``FSItem`` or throw an error.
53
54
  */
54
- createSymbolicLinkNamed$inDirectory$attributes$linkContents$replyHandler$?(name: _FSFileName, directory: _FSItem, newAttributes: _FSItemSetAttributesRequest, contents: _FSFileName, reply: NobjcObject | null): void;
55
+ createSymbolicLinkNamed$inDirectory$attributes$linkContents$replyHandler$?(name: _FSFileName, directory: _FSItem, newAttributes: _FSItemSetAttributesRequest, contents: _FSFileName, reply: ((newItem: _FSItem, newItemName: _FSFileName, error: _NSError) => void) | null): void;
55
56
  /**
56
57
  * Creates a new hard link. If creating the link fails, complete the request with an error with a domain of <doc://com.apple.documentation/documentation/Foundation/NSPOSIXErrorDomain> and the following error codes: * `EEXIST` if there's already an item named `name` in the directory. * `EMLINK` if creating the link would exceed the maximum number of hard links supported on `item`. * `ENOTSUP` if the file system doesn't support creating hard links to the type of file system object that `item` represents. - Parameters: - item: The existing item to which to link. - name: The name for the new link. - directory: The directory in which to create the link. - reply: A block or closure to indicate success or failure. If creation succeeds, pass an ``FSFileName`` of the newly-created link and a `nil` error. If creation fails, pass the relevant error as the second parameter; FSKit ignores any ``FSFileName`` in this case. For an `async` Swift implementation, there's no reply handler; simply return the ``FSFileName`` or throw an error.
57
58
  */
58
- createLinkToItem$named$inDirectory$replyHandler$?(item: _FSItem, name: _FSFileName, directory: _FSItem, reply: NobjcObject | null): void;
59
+ createLinkToItem$named$inDirectory$replyHandler$?(item: _FSItem, name: _FSFileName, directory: _FSItem, reply: ((linkName: _FSFileName, error: _NSError) => void) | null): void;
59
60
  /**
60
61
  * Removes an existing item from a given directory. Don't actually remove the item object itself in your implementation; instead, only remove the given item name from the given directory. Remove and deallocate the item in ``reclaimItem(_:replyHandler:)``. - Parameters: - item: The item to remove. - name: The name of the item to remove. - directory: The directory from which to remove the item. - reply: A block or closure to indicate success or failure. If removal fails, pass an error as the one parameter to the reply handler. If removal succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply throw an error or return normally.
61
62
  */
62
- removeItem$named$fromDirectory$replyHandler$?(item: _FSItem, name: _FSFileName, directory: _FSItem, reply: NobjcObject | null): void;
63
+ removeItem$named$fromDirectory$replyHandler$?(item: _FSItem, name: _FSFileName, directory: _FSItem, reply: ((error: _NSError) => void) | null): void;
63
64
  /**
64
65
  * Renames an item from one path in the file system to another. Implement renaming along the lines of this algorithm: - If `item` is a file: - If the destination file exists: - Remove the destination file. - If the source and destination directories are the same: - Rewrite the name in the existing directory. - Else: - Write the new entry in the destination directory. - Clear the old directory entry. - If `item` is a directory: - If the destination directory exists: - If the destination directory isn't empty: - Fail the operation with an error of <doc://com.apple.documentation/documentation/Foundation/NSPOSIXErrorDomain> and a code of `ENOTEMPTY`. - Else: - Remove the destination directory. - If the source and destination directories are the same: - Rewrite the name in the existing directory. - Else: - If the destination is a child of the source directory: - Fail the operation with an error. - Else: - Write the new entry in the destination directory. - Update `"."` and `".."` in the moved directory. - Clear the old directory entry. - Parameters: - item: The file system object being renamed. - sourceDirectory: The directory that currently contains the item to rename. - sourceName: The name of the item within the source directory. - destinationName: The new name of the item as it appears in `destinationDirectory`. - destinationDirectory: The directory to contain the renamed object, which may be the same as `sourceDirectory`. - overItem: The file system object if the destination exists, as discovered in a prior lookup. If this parameter is non-`nil`, mark `overItem` as deleted, so the file system can free its allocated space on the next call to ``reclaimItem(_:replyHandler:)``. After doing so, ensure the operation finishes without errors. - reply: A block or closure to indicate success or failure. If renaming succeeds, pass the ``FSFileName`` as it exists within `destinationDirectory` and a `nil` error. If renaming fails, pass the relevant error as the second parameter; FSKit ignores any ``FSFileName`` in this case. For an `async` Swift implementation, there's no reply handler; simply return the ``FSFileName`` or throw an error.
65
66
  */
66
- renameItem$inDirectory$named$toNewName$inDirectory$overItem$replyHandler$?(item: _FSItem, sourceDirectory: _FSItem, sourceName: _FSFileName, destinationName: _FSFileName, destinationDirectory: _FSItem, overItem: _FSItem | null, reply: NobjcObject | null): void;
67
+ renameItem$inDirectory$named$toNewName$inDirectory$overItem$replyHandler$?(item: _FSItem, sourceDirectory: _FSItem, sourceName: _FSFileName, destinationName: _FSFileName, destinationDirectory: _FSItem, overItem: _FSItem | null, reply: ((newName: _FSFileName, error: _NSError) => void) | null): void;
67
68
  /**
68
69
  * Enumerates the contents of the given directory. This method uses the ``FSDirectoryEntryPacker/packEntry(name:itemType:itemID:nextCookie:attributes:)`` method of the `packer` parameter to deliver the enumerated items to the caller. The general flow of an enumeration implementation follows these steps: 1. Enumeration starts with a call to `enumerateDirectory` using the initial next-cookie and verifier values ``FSDirectoryCookieInitial`` and ``FSDirectoryVerifierInitial``, respectively. 2. The implementation uses `packer` to pack the initial set of directory entries. Packing also sets a `nextCookie` to use on the next call. 3. The implementation replies with a new verifier value, a nonzero value that reflects the directory's current version. 4. On the next call the implementation packs the next set of entries, starting with the item indicated by `cookie`. If `cookie` doesn't resolve to a valid directory entry, complete the request with an error of domain <doc://com.apple.documentation/documentation/Foundation/NSPOSIXErrorDomain> and code ``FSError/Code/invalidDirectoryCookie``. When packing, make sure to use acceptable directory entry names and unambiguous input to all file operations that take names without additional normalization, such as`lookupName`. > Tip: If the `attributes` parameter is `nil`, include at least two entries in a directory: `"."` and `".."`, which represent the current and parent directories, respectively. Both of these items have type ``FSItem/ItemType/directory``. For the root directory, `"."` and `".."` have identical contents. Don't pack `"."` and `".."` if `attributes` isn't `nil`. - Parameters: - directory: The item to enumerate. FSKit guarantees this item is of type ``FSItem/ItemType/directory``. - cookie: A value that indicates the location within the directory from which to enumerate. Your implementation defines the semantics of the cookie values; they're opaque to FSKit. The first call to the enumerate method passes ``FSDirectoryCookieInitial`` for this parameter. Subsequent calls pass whatever cookie value you previously passed to the packer's `nextCookie` parmeter. - verifier: A tool to detect whether the directory contents changed since the last call to `enumerateDirectory`. Your implementation defines the semantics of the verifier values; they're opaque to FSKit. The first call to the enumerate method passes ``FSDirectoryVerifierInitial`` for this parameter. Subsequent calls pass whatever cookie value you previously passed to the packer's `currentVerifier` parmeter. - attributes: The desired attributes to provide, or `nil` if the caller doesn't require attributes. - packer: An object that your implementation uses to enumerate directory items, packing one item per callback to `enumerateDirectory`. - reply: A block or closure to indicate success or failure. If enumeration succeeds, pass the current verifier and a `nil` error. If enumeration fails, pass the relevant error as the second parameter; FSKit ignores any verifier in this case. For an `async` Swift implementation, there's no reply handler; simply return the current verifier or throw an error.
69
70
  */
70
- enumerateDirectory$startingAtCookie$verifier$providingAttributes$usingPacker$replyHandler$?(directory: _FSItem, cookie: number, verifier: number, attributes: _FSItemGetAttributesRequest | null, packer: _FSDirectoryEntryPacker, reply: NobjcObject | null): void;
71
+ enumerateDirectory$startingAtCookie$verifier$providingAttributes$usingPacker$replyHandler$?(directory: _FSItem, cookie: number, verifier: number, attributes: _FSItemGetAttributesRequest | null, packer: _FSDirectoryEntryPacker, reply: ((currentVerifier: number, error: _NSError) => void) | null): void;
71
72
  /**
72
73
  * Activates the volume using the specified options. When FSKit calls this method, allocate any in-memory state required to represent the file system. Also allocate an ``FSItem`` for the root directory of the file system, and pass it to the reply block. FSKit caches this root item for the lifetime of the volume, and uses it as a starting point for all file look-ups. Volume activation occurs prior to any call to mount the volume. - Parameters: - options: Options to apply to the activation. These can include security-scoped file paths. There are no defined options currently. - reply: A block or closure to indicate success or failure. If activation succeeds, pass the root ``FSItem`` and a `nil` error. If activation fails, pass the relevant error as the second parameter; FSKit ignores any ``FSItem`` in this case. In Swift, `reply` takes only the ``FSItem`` as the parameter; you signal any error with a `throw`. For an `async` Swift implementation, there's no reply handler; simply return the ``FSItem`` or throw an error.
73
74
  */
74
- activateWithOptions$replyHandler$?(options: _FSTaskOptions, reply: NobjcObject | null): void;
75
+ activateWithOptions$replyHandler$?(options: _FSTaskOptions, reply: ((rootItem: _FSItem, err: _NSError) => void) | null): void;
75
76
  /**
76
77
  * Tears down a previously initialized volume instance. Set up your implementation to release any resources allocated for the volume instance. By the time you receive this callback, FSKit has already performed a reclaim call to release all other file nodes associated with this file system instance. Avoid performing any I/O in this method. Prior to calling this method, FSKit has already issued a sync call to perform any cleanup-related I/O. FSKit unmounts any mounted volume with a call to ``unmount(replyHandler:)`` prior to the deactivate callback. - Parameters: - options: Options to apply to the deactivation. - reply: A block or closure to indicate success or failure. If activation fails, pass an error as the one parameter to the reply handler. If activation succeeds, pass `nil`. For an `async` Swift implementation, there's no reply handler; simply throw an error or return normally.
77
78
  */
78
- deactivateWithOptions$replyHandler$?(options: FSDeactivateOptions, reply: NobjcObject | null): void;
79
+ deactivateWithOptions$replyHandler$?(options: FSDeactivateOptions, reply: ((err: _NSError) => void) | null): void;
79
80
  /** A property that provides the supported capabilities of the volume. */
80
81
  supportedVolumeCapabilities?(): _FSVolumeSupportedCapabilities;
81
82
  /** A property that provides up-to-date statistics of the volume. */
@@ -1,11 +1,12 @@
1
1
  import type { NobjcObject } from "objc-js";
2
2
  import type { _FSItem } from "./FSItem.js";
3
+ import type { _NSError } from "../Foundation/NSError.js";
3
4
  import type { FSPreallocateFlags } from "./FSPreallocateFlags.js";
4
5
  export interface _FSVolumePreallocateOperations {
5
6
  /**
6
7
  * Prealocates disk space for the given item. - Parameters: - item: The item for which to preallocate space. - offset: The offset from which to allocate. - length: The length of the space in bytes. - flags: Flags that affect the preallocation behavior. - reply: A block or closure to indicate success or failure. If preallocation succeeds, pass the amount of bytes allocated and a `nil` error. If preallocation fails, pass the relevant error as the second parameter; FSKit ignores any byte count in this case. For an `async` Swift implementation, there's no reply handler; simply return the allocated byte count or throw an error.
7
8
  */
8
- preallocateSpaceForItem$atOffset$length$flags$replyHandler$?(item: _FSItem, offset: NobjcObject, length: number, flags: FSPreallocateFlags, reply: NobjcObject | null): void;
9
+ preallocateSpaceForItem$atOffset$length$flags$replyHandler$?(item: _FSItem, offset: NobjcObject, length: number, flags: FSPreallocateFlags, reply: ((bytesAllocated: number, error: _NSError) => void) | null): void;
9
10
  /**
10
11
  * A Boolean value that instructs FSKit not to call this protocol's methods, even if the volume conforms to it. FSKit reads this value after the file system replies to the `loadResource` message. Changing the returned value during the runtime of the volume has no effect.
11
12
  */
@@ -2,13 +2,14 @@ import type { NobjcObject } from "objc-js";
2
2
  import type { _FSItem } from "./FSItem.js";
3
3
  import type { _FSMutableFileDataBuffer } from "./FSMutableFileDataBuffer.js";
4
4
  import type { _NSData } from "../Foundation/NSData.js";
5
+ import type { _NSError } from "../Foundation/NSError.js";
5
6
  export interface _FSVolumeReadWriteOperations {
6
7
  /**
7
8
  * Reads the contents of the given file item. If the number of bytes requested exceeds the number of bytes available before the end of the file, then the call copies only those bytes to `buffer`. If `offset` points past the last valid byte of the file, don't reply with an error but set `actuallyRead` to `0`. - Parameters: - item: The item from which to read. FSKit guarantees this item will be of type ``FSItem/ItemType/file``. - offset: The offset in the file from which to start reading. - length: The number of bytes to read. - buffer: A buffer to receive the bytes read from the file. - reply: A block or closure to indicate success or failure. If reading succeeds, pass the number of bytes read and a `nil` error. If reading fails, pass the number of bytes read prior to the error along with the relevant error. For an `async` Swift implementation, there's no reply handler; simply return the byte count or throw an error.
8
9
  */
9
- readFromFile$offset$length$intoBuffer$replyHandler$?(item: _FSItem, offset: NobjcObject, length: number, buffer: _FSMutableFileDataBuffer, reply: NobjcObject | null): void;
10
+ readFromFile$offset$length$intoBuffer$replyHandler$?(item: _FSItem, offset: NobjcObject, length: number, buffer: _FSMutableFileDataBuffer, reply: ((actuallyRead: number, error: _NSError) => void) | null): void;
10
11
  /**
11
12
  * Writes contents to the given file item. FSKit expects this routine to allocate space in the file system to extend the file as necessary. If the volume experiences an out-of-space condition, reply with an error of domain <doc://com.apple.documentation/documentation/Foundation/NSPOSIXErrorDomain> and code `ENOSPC`. - Parameters: - contents: A buffer containing the data to write to the file. - item: The item to which to write. FSKit guarantees this item will be of type ``FSItem/ItemType/file``. - offset: The offset in the file from which to start writing. - reply: A block or closure to indicate success or failure. If writing succeeds, pass the number of bytes written and a `nil` error. If writing fails, pass the number of bytes written prior to the error along with the relevant error. For an `async` Swift implementation, there's no reply handler; simply return the byte count or throw an error.
12
13
  */
13
- writeContents$toFile$atOffset$replyHandler$?(contents: _NSData, item: _FSItem, offset: NobjcObject, reply: NobjcObject | null): void;
14
+ writeContents$toFile$atOffset$replyHandler$?(contents: _NSData, item: _FSItem, offset: NobjcObject, reply: ((actuallyWritten: number, error: _NSError) => void) | null): void;
14
15
  }
@@ -1,10 +1,10 @@
1
- import type { NobjcObject } from "objc-js";
2
1
  import type { _FSFileName } from "./FSFileName.js";
2
+ import type { _NSError } from "../Foundation/NSError.js";
3
3
  export interface _FSVolumeRenameOperations {
4
4
  /**
5
5
  * Sets a new name for the volume. - Parameters: - name: The new volume name. - reply: A block or closure to indicate success or failure. If renaming succeeds, pass an ``FSFileName`` of the new volume name and a `nil` error. If renaming fails, pass the relevant error as the second parameter; FSKit ignores any ``FSFileName`` in this case. For an `async` Swift implementation, there's no reply handler; simply return the ``FSFileName`` or throw an error.
6
6
  */
7
- setVolumeName$replyHandler$?(name: _FSFileName, reply: NobjcObject | null): void;
7
+ setVolumeName$replyHandler$?(name: _FSFileName, reply: ((newName: _FSFileName, error: _NSError) => void) | null): void;
8
8
  /**
9
9
  * A Boolean value that instructs FSKit not to call this protocol's methods, even if the volume conforms to it. FSKit reads this value after the file system replies to the `loadResource` message. Changing the returned value during the runtime of the volume has no effect.
10
10
  */