objcjs-types 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -3
- package/bin/objcjs-types.ts +31 -0
- package/dist/AVFAudio/AVAudioBuffer.d.ts +4 -0
- package/dist/AVFAudio/AVSpeechSynthesisMarker.d.ts +2 -1
- package/dist/AVFAudio/AVSpeechSynthesisProviderRequest.d.ts +2 -1
- package/dist/AVFAudio/AVSpeechSynthesisProviderVoice.d.ts +2 -1
- package/dist/AVFAudio/AVSpeechUtterance.d.ts +2 -1
- package/dist/AVFoundation/AVAsset.d.ts +2 -1
- package/dist/AVFoundation/AVAssetDownloadContentConfiguration.d.ts +3 -0
- package/dist/AVFoundation/AVAssetDownloadStorageManagementPolicy.d.ts +4 -0
- package/dist/AVFoundation/AVAssetTrack.d.ts +2 -1
- package/dist/AVFoundation/AVAssetTrackGroup.d.ts +3 -0
- package/dist/AVFoundation/AVAssetVariantQualifier.d.ts +3 -0
- package/dist/AVFoundation/AVAsynchronousCIImageFilteringRequest.d.ts +3 -0
- package/dist/AVFoundation/AVAsynchronousVideoCompositionRequest.d.ts +3 -0
- package/dist/AVFoundation/AVAudioMix.d.ts +4 -0
- package/dist/AVFoundation/AVAudioMixInputParameters.d.ts +4 -0
- package/dist/AVFoundation/AVCaption.d.ts +3 -1
- package/dist/AVFoundation/AVCaptionRegion.d.ts +3 -0
- package/dist/AVFoundation/AVCaptionRendererScene.d.ts +3 -0
- package/dist/AVFoundation/AVCaptionRuby.d.ts +2 -1
- package/dist/AVFoundation/AVCapturePhotoSettings.d.ts +3 -0
- package/dist/AVFoundation/AVCaptureTimecodeSource.d.ts +3 -0
- package/dist/AVFoundation/AVComposition.d.ts +3 -0
- package/dist/AVFoundation/AVCustomMediaSelectionScheme.d.ts +3 -0
- package/dist/AVFoundation/AVDateRangeMetadataGroup.d.ts +4 -0
- package/dist/AVFoundation/AVMediaExtensionProperties.d.ts +3 -0
- package/dist/AVFoundation/AVMediaPresentationSelector.d.ts +3 -0
- package/dist/AVFoundation/AVMediaPresentationSetting.d.ts +3 -0
- package/dist/AVFoundation/AVMediaSelection.d.ts +4 -0
- package/dist/AVFoundation/AVMediaSelectionGroup.d.ts +3 -0
- package/dist/AVFoundation/AVMediaSelectionOption.d.ts +3 -0
- package/dist/AVFoundation/AVMetadataBodyObject.d.ts +3 -0
- package/dist/AVFoundation/AVMetadataCatBodyObject.d.ts +3 -0
- package/dist/AVFoundation/AVMetadataCatHeadObject.d.ts +3 -0
- package/dist/AVFoundation/AVMetadataDogBodyObject.d.ts +3 -0
- package/dist/AVFoundation/AVMetadataDogHeadObject.d.ts +3 -0
- package/dist/AVFoundation/AVMetadataFaceObject.d.ts +3 -0
- package/dist/AVFoundation/AVMetadataHumanBodyObject.d.ts +3 -0
- package/dist/AVFoundation/AVMetadataHumanFullBodyObject.d.ts +3 -0
- package/dist/AVFoundation/AVMetadataItem.d.ts +3 -0
- package/dist/AVFoundation/AVMetadataSalientObject.d.ts +3 -0
- package/dist/AVFoundation/AVMovie.d.ts +4 -0
- package/dist/AVFoundation/AVPlayerInterstitialEvent.d.ts +3 -0
- package/dist/AVFoundation/AVPlayerItemAccessLog.d.ts +3 -0
- package/dist/AVFoundation/AVPlayerItemAccessLogEvent.d.ts +3 -0
- package/dist/AVFoundation/AVPlayerItemErrorLog.d.ts +3 -0
- package/dist/AVFoundation/AVPlayerItemErrorLogEvent.d.ts +3 -0
- package/dist/AVFoundation/AVSampleCursor.d.ts +3 -0
- package/dist/AVFoundation/AVTextStyleRule.d.ts +3 -0
- package/dist/AVFoundation/AVTimedMetadataGroup.d.ts +4 -0
- package/dist/AVFoundation/AVVideoComposition.d.ts +4 -0
- package/dist/AVFoundation/AVVideoCompositionInstruction.d.ts +3 -1
- package/dist/AVFoundation/AVVideoCompositionLayerInstruction.d.ts +3 -1
- package/dist/AVFoundation/AVVideoOutputSpecification.d.ts +3 -0
- package/dist/AVFoundation/functions.d.ts +21 -0
- package/dist/AVFoundation/functions.js +32 -0
- package/dist/AVFoundation/index.d.ts +1 -0
- package/dist/AVFoundation/index.js +1 -0
- package/dist/Accessibility/AXBrailleMap.d.ts +2 -1
- package/dist/Accessibility/AXBrailleTable.d.ts +2 -1
- package/dist/Accessibility/AXBrailleTranslationResult.d.ts +2 -1
- package/dist/Accessibility/AXCategoricalDataAxisDescriptor.d.ts +3 -0
- package/dist/Accessibility/AXChartDescriptor.d.ts +3 -0
- package/dist/Accessibility/AXCustomContent.d.ts +2 -1
- package/dist/Accessibility/AXDataPoint.d.ts +3 -0
- package/dist/Accessibility/AXDataPointValue.d.ts +3 -0
- package/dist/Accessibility/AXDataSeriesDescriptor.d.ts +3 -0
- package/dist/Accessibility/AXNumericDataAxisDescriptor.d.ts +3 -0
- package/dist/Accessibility/AXRequest.d.ts +2 -1
- package/dist/Accessibility/functions.d.ts +16 -0
- package/dist/Accessibility/functions.js +35 -0
- package/dist/Accessibility/index.d.ts +1 -0
- package/dist/Accessibility/index.js +1 -0
- package/dist/AddressBook/ABMultiValue.d.ts +3 -1
- package/dist/AddressBook/functions.d.ts +98 -0
- package/dist/AddressBook/functions.js +290 -0
- package/dist/AddressBook/index.d.ts +1 -0
- package/dist/AddressBook/index.js +1 -0
- package/dist/AppKit/NSAccessibilityCustomAction.d.ts +1 -6
- package/dist/AppKit/NSAccessibilityCustomRotorItemResult.d.ts +13 -1
- package/dist/AppKit/NSAccessibilityElementLoading.d.ts +13 -1
- package/dist/AppKit/NSAdaptiveImageGlyph.d.ts +2 -1
- package/dist/AppKit/NSAnimation.d.ts +3 -0
- package/dist/AppKit/NSBezierPath.d.ts +2 -1
- package/dist/AppKit/NSBindingSelectionMarker.d.ts +3 -0
- package/dist/AppKit/NSCell.d.ts +2 -1
- package/dist/AppKit/NSCollectionLayoutAnchor.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutBoundarySupplementaryItem.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutDecorationItem.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutDimension.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutEdgeSpacing.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutGroup.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutGroupCustomItem.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutItem.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutSection.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutSize.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutSpacing.d.ts +3 -0
- package/dist/AppKit/NSCollectionLayoutSupplementaryItem.d.ts +3 -0
- package/dist/AppKit/NSCollectionViewCompositionalLayoutConfiguration.d.ts +3 -0
- package/dist/AppKit/NSCollectionViewItem.d.ts +2 -1
- package/dist/AppKit/NSCollectionViewLayoutAttributes.d.ts +3 -0
- package/dist/AppKit/NSColor.d.ts +2 -1
- package/dist/AppKit/NSDataAsset.d.ts +3 -0
- package/dist/AppKit/NSDiffableDataSourceSnapshot.d.ts +3 -0
- package/dist/AppKit/NSEvent.d.ts +2 -1
- package/dist/AppKit/NSFont.d.ts +2 -1
- package/dist/AppKit/NSFontCollection.d.ts +3 -1
- package/dist/AppKit/NSFontDescriptor.d.ts +2 -1
- package/dist/AppKit/NSGlyphInfo.d.ts +2 -1
- package/dist/AppKit/NSGradient.d.ts +3 -0
- package/dist/AppKit/NSImage.d.ts +2 -1
- package/dist/AppKit/NSImageCell.d.ts +3 -0
- package/dist/AppKit/NSImageRep.d.ts +3 -0
- package/dist/AppKit/NSImageSymbolConfiguration.d.ts +2 -1
- package/dist/AppKit/NSLayoutAnchor.d.ts +2 -1
- package/dist/AppKit/NSMenu.d.ts +2 -1
- package/dist/AppKit/NSMenuItem.d.ts +2 -1
- package/dist/AppKit/NSMenuItemBadge.d.ts +3 -0
- package/dist/AppKit/NSPDFInfo.d.ts +2 -1
- package/dist/AppKit/NSParagraphStyle.d.ts +3 -1
- package/dist/AppKit/NSPredicateEditorRowTemplate.d.ts +2 -1
- package/dist/AppKit/NSPrintInfo.d.ts +3 -0
- package/dist/AppKit/NSPrinter.d.ts +2 -1
- package/dist/AppKit/NSRulerMarker.d.ts +2 -0
- package/dist/AppKit/NSScrubberLayoutAttributes.d.ts +3 -0
- package/dist/AppKit/NSShadow.d.ts +2 -1
- package/dist/AppKit/NSSharingCollaborationModeRestriction.d.ts +2 -1
- package/dist/AppKit/NSSliderAccessoryBehavior.d.ts +2 -1
- package/dist/AppKit/NSSound.d.ts +2 -1
- package/dist/AppKit/NSTableViewRowAction.d.ts +3 -0
- package/dist/AppKit/NSText.d.ts +3 -1
- package/dist/AppKit/NSTextBlock.d.ts +2 -1
- package/dist/AppKit/NSTextList.d.ts +3 -0
- package/dist/AppKit/NSTextTab.d.ts +2 -1
- package/dist/AppKit/NSTextView.d.ts +4 -0
- package/dist/AppKit/NSTintConfiguration.d.ts +2 -1
- package/dist/AppKit/NSToolbarItem.d.ts +2 -1
- package/dist/AppKit/NSTouch.d.ts +2 -0
- package/dist/AppKit/NSTrackingArea.d.ts +2 -1
- package/dist/AppKit/NSUserInterfaceCompressionOptions.d.ts +3 -0
- package/dist/AppKit/NSWorkspaceOpenConfiguration.d.ts +3 -0
- package/dist/AppKit/functions.d.ts +112 -0
- package/dist/AppKit/functions.js +272 -0
- package/dist/AppKit/index.d.ts +1 -0
- package/dist/AppKit/index.js +1 -0
- package/dist/AudioToolbox/functions.d.ts +377 -0
- package/dist/AudioToolbox/functions.js +1124 -0
- package/dist/AudioToolbox/index.d.ts +1 -0
- package/dist/AudioToolbox/index.js +1 -0
- package/dist/AudioVideoBridging/AVB17221ACMPMessage.d.ts +3 -0
- package/dist/AudioVideoBridging/AVB17221AECPMessage.d.ts +3 -0
- package/dist/AudioVideoBridging/AVBIPAddress.d.ts +3 -0
- package/dist/AudioVideoBridging/AVBMACAddress.d.ts +3 -0
- package/dist/AuthenticationServices/ASAuthorization.d.ts +5 -1
- package/dist/AuthenticationServices/ASAuthorizationAppleIDCredential.d.ts +3 -0
- package/dist/AuthenticationServices/ASAuthorizationPlatformPublicKeyCredentialAssertion.d.ts +3 -0
- package/dist/AuthenticationServices/ASAuthorizationPlatformPublicKeyCredentialDescriptor.d.ts +3 -0
- package/dist/AuthenticationServices/ASAuthorizationPlatformPublicKeyCredentialRegistration.d.ts +3 -0
- package/dist/AuthenticationServices/ASAuthorizationPublicKeyCredentialLargeBlobRegistrationOutput.d.ts +2 -1
- package/dist/AuthenticationServices/ASAuthorizationPublicKeyCredentialParameters.d.ts +2 -1
- package/dist/AuthenticationServices/ASAuthorizationRequest.d.ts +2 -1
- package/dist/AuthenticationServices/ASAuthorizationSecurityKeyPublicKeyCredentialAssertion.d.ts +3 -0
- package/dist/AuthenticationServices/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor.d.ts +3 -0
- package/dist/AuthenticationServices/ASAuthorizationSecurityKeyPublicKeyCredentialRegistration.d.ts +3 -0
- package/dist/AuthenticationServices/ASAuthorizationSingleSignOnCredential.d.ts +3 -0
- package/dist/AuthenticationServices/ASCredentialServiceIdentifier.d.ts +2 -1
- package/dist/AuthenticationServices/ASGeneratePasswordsRequest.d.ts +2 -1
- package/dist/AuthenticationServices/ASGeneratedPassword.d.ts +2 -1
- package/dist/AuthenticationServices/ASOneTimeCodeCredential.d.ts +3 -0
- package/dist/AuthenticationServices/ASOneTimeCodeCredentialIdentity.d.ts +2 -1
- package/dist/AuthenticationServices/ASOneTimeCodeCredentialRequest.d.ts +3 -0
- package/dist/AuthenticationServices/ASPasskeyAssertionCredential.d.ts +3 -0
- package/dist/AuthenticationServices/ASPasskeyAssertionCredentialExtensionInput.d.ts +2 -1
- package/dist/AuthenticationServices/ASPasskeyAssertionCredentialExtensionOutput.d.ts +2 -1
- package/dist/AuthenticationServices/ASPasskeyCredentialIdentity.d.ts +2 -1
- package/dist/AuthenticationServices/ASPasskeyCredentialRequest.d.ts +3 -0
- package/dist/AuthenticationServices/ASPasskeyCredentialRequestParameters.d.ts +2 -1
- package/dist/AuthenticationServices/ASPasskeyRegistrationCredential.d.ts +3 -0
- package/dist/AuthenticationServices/ASPasskeyRegistrationCredentialExtensionInput.d.ts +2 -1
- package/dist/AuthenticationServices/ASPasskeyRegistrationCredentialExtensionOutput.d.ts +2 -1
- package/dist/AuthenticationServices/ASPasswordCredential.d.ts +3 -0
- package/dist/AuthenticationServices/ASPasswordCredentialIdentity.d.ts +2 -1
- package/dist/AuthenticationServices/ASPasswordCredentialRequest.d.ts +3 -0
- package/dist/AuthenticationServices/ASSavePasswordRequest.d.ts +2 -1
- package/dist/AuthenticationServices/ASWebAuthenticationSessionRequest.d.ts +2 -1
- package/dist/AuthenticationServices/functions.d.ts +2 -0
- package/dist/AuthenticationServices/functions.js +5 -0
- package/dist/AuthenticationServices/index.d.ts +1 -0
- package/dist/AuthenticationServices/index.js +1 -0
- package/dist/AutomaticAssessmentConfiguration/AEAssessmentApplication.d.ts +3 -0
- package/dist/AutomaticAssessmentConfiguration/AEAssessmentConfiguration.d.ts +3 -0
- package/dist/AutomaticAssessmentConfiguration/AEAssessmentParticipantConfiguration.d.ts +3 -0
- package/dist/Automator/AMBundleAction.d.ts +2 -1
- package/dist/Automator/AMWorkflow.d.ts +3 -0
- package/dist/BackgroundAssets/BADownload.d.ts +2 -1
- package/dist/BackgroundAssets/BAURLDownload.d.ts +3 -0
- package/dist/BackgroundTasks/BGTaskRequest.d.ts +3 -0
- package/dist/BrowserEngineCore/functions.d.ts +3 -0
- package/dist/BrowserEngineCore/functions.js +11 -0
- package/dist/BrowserEngineCore/index.d.ts +1 -0
- package/dist/BrowserEngineCore/index.js +1 -0
- package/dist/BrowserEngineKit/BEAccessibilityTextMarker.d.ts +2 -1
- package/dist/BrowserEngineKit/BEAccessibilityTextMarkerRange.d.ts +2 -1
- package/dist/CalendarStore/CalAlarm.d.ts +3 -0
- package/dist/CalendarStore/CalAttendee.d.ts +3 -0
- package/dist/CalendarStore/CalCalendar.d.ts +3 -0
- package/dist/CalendarStore/CalCalendarItem.d.ts +3 -0
- package/dist/CalendarStore/CalNthWeekDay.d.ts +3 -0
- package/dist/CalendarStore/CalRecurrenceEnd.d.ts +3 -0
- package/dist/CalendarStore/CalRecurrenceRule.d.ts +3 -0
- package/dist/CallKit/CXAction.d.ts +3 -0
- package/dist/CallKit/CXCallUpdate.d.ts +3 -0
- package/dist/CallKit/CXHandle.d.ts +2 -1
- package/dist/CallKit/CXProviderConfiguration.d.ts +3 -0
- package/dist/CallKit/CXTransaction.d.ts +2 -1
- package/dist/Cinematic/CNBoundsPrediction.d.ts +4 -0
- package/dist/Cinematic/CNDecision.d.ts +3 -0
- package/dist/Cinematic/CNDetection.d.ts +3 -0
- package/dist/Cinematic/CNDetectionTrack.d.ts +3 -0
- package/dist/Cinematic/CNRenderingSessionFrameAttributes.d.ts +4 -0
- package/dist/Cinematic/CNScriptFrame.d.ts +3 -0
- package/dist/CloudKit/CKAllowedSharingOptions.d.ts +2 -1
- package/dist/CloudKit/CKDatabaseSubscription.d.ts +3 -0
- package/dist/CloudKit/CKFetchRecordZoneChangesConfiguration.d.ts +2 -1
- package/dist/CloudKit/CKFetchRecordZoneChangesOptions.d.ts +2 -1
- package/dist/CloudKit/CKNotificationID.d.ts +2 -1
- package/dist/CloudKit/CKNotificationInfo.d.ts +2 -1
- package/dist/CloudKit/CKOperationGroup.d.ts +3 -0
- package/dist/CloudKit/CKQuery.d.ts +3 -0
- package/dist/CloudKit/CKQueryCursor.d.ts +2 -1
- package/dist/CloudKit/CKQuerySubscription.d.ts +3 -0
- package/dist/CloudKit/CKRecord.d.ts +2 -1
- package/dist/CloudKit/CKRecordID.d.ts +2 -1
- package/dist/CloudKit/CKRecordZone.d.ts +2 -1
- package/dist/CloudKit/CKRecordZoneID.d.ts +2 -1
- package/dist/CloudKit/CKRecordZoneSubscription.d.ts +3 -0
- package/dist/CloudKit/CKReference.d.ts +2 -1
- package/dist/CloudKit/CKServerChangeToken.d.ts +2 -1
- package/dist/CloudKit/CKShare.d.ts +3 -0
- package/dist/CloudKit/CKShareAccessRequester.d.ts +2 -1
- package/dist/CloudKit/CKShareBlockedIdentity.d.ts +2 -1
- package/dist/CloudKit/CKShareMetadata.d.ts +2 -1
- package/dist/CloudKit/CKShareParticipant.d.ts +2 -1
- package/dist/CloudKit/CKSubscription.d.ts +2 -1
- package/dist/CloudKit/CKSyncEngineFetchChangesOptions.d.ts +3 -0
- package/dist/CloudKit/CKSyncEngineFetchChangesScope.d.ts +3 -0
- package/dist/CloudKit/CKSyncEngineSendChangesOptions.d.ts +3 -0
- package/dist/CloudKit/CKSyncEngineSendChangesScope.d.ts +3 -0
- package/dist/CloudKit/CKUserIdentity.d.ts +2 -1
- package/dist/CloudKit/CKUserIdentityLookupInfo.d.ts +2 -1
- package/dist/Collaboration/CBIdentity.d.ts +2 -1
- package/dist/Collaboration/CBUserIdentity.d.ts +3 -0
- package/dist/Contacts/CNChangeHistoryEvent.d.ts +2 -1
- package/dist/Contacts/CNContact.d.ts +3 -1
- package/dist/Contacts/CNContactProperty.d.ts +2 -1
- package/dist/Contacts/CNContactRelation.d.ts +2 -1
- package/dist/Contacts/CNContainer.d.ts +2 -1
- package/dist/Contacts/CNGroup.d.ts +3 -1
- package/dist/Contacts/CNInstantMessageAddress.d.ts +2 -1
- package/dist/Contacts/CNLabeledValue.d.ts +2 -1
- package/dist/Contacts/CNPhoneNumber.d.ts +2 -1
- package/dist/Contacts/CNPostalAddress.d.ts +3 -1
- package/dist/Contacts/CNSocialProfile.d.ts +2 -1
- package/dist/CoreAudio/functions.d.ts +60 -0
- package/dist/CoreAudio/functions.js +173 -0
- package/dist/CoreAudio/index.d.ts +1 -0
- package/dist/CoreAudio/index.js +1 -0
- package/dist/CoreBluetooth/CBPeer.d.ts +3 -0
- package/dist/CoreBluetooth/CBUUID.d.ts +3 -0
- package/dist/CoreData/NSEntityDescription.d.ts +2 -1
- package/dist/CoreData/NSFetchIndexDescription.d.ts +2 -1
- package/dist/CoreData/NSFetchIndexElementDescription.d.ts +2 -1
- package/dist/CoreData/NSFetchRequest.d.ts +2 -1
- package/dist/CoreData/NSManagedObjectID.d.ts +2 -1
- package/dist/CoreData/NSManagedObjectModel.d.ts +2 -1
- package/dist/CoreData/NSPersistentCloudKitContainerEvent.d.ts +3 -0
- package/dist/CoreData/NSPersistentHistoryChange.d.ts +3 -0
- package/dist/CoreData/NSPersistentHistoryToken.d.ts +2 -1
- package/dist/CoreData/NSPersistentHistoryTransaction.d.ts +3 -0
- package/dist/CoreData/NSPersistentStoreDescription.d.ts +3 -0
- package/dist/CoreData/NSPersistentStoreRequest.d.ts +3 -0
- package/dist/CoreData/NSPropertyDescription.d.ts +2 -1
- package/dist/CoreData/NSQueryGenerationToken.d.ts +2 -1
- package/dist/CoreImage/CIBarcodeDescriptor.d.ts +2 -1
- package/dist/CoreImage/CIColor.d.ts +2 -1
- package/dist/CoreImage/CIFilter.d.ts +2 -1
- package/dist/CoreImage/CIFilterGenerator.d.ts +2 -1
- package/dist/CoreImage/CIFilterShape.d.ts +3 -0
- package/dist/CoreImage/CIImage.d.ts +2 -1
- package/dist/CoreImage/CIQRCodeFeature.d.ts +2 -1
- package/dist/CoreImage/CISampler.d.ts +3 -0
- package/dist/CoreImage/CIVector.d.ts +2 -1
- package/dist/CoreLocation/CLBeacon.d.ts +2 -1
- package/dist/CoreLocation/CLBeaconIdentityCondition.d.ts +3 -0
- package/dist/CoreLocation/CLBeaconIdentityConstraint.d.ts +3 -0
- package/dist/CoreLocation/CLCondition.d.ts +2 -1
- package/dist/CoreLocation/CLHeading.d.ts +2 -1
- package/dist/CoreLocation/CLPlacemark.d.ts +2 -1
- package/dist/CoreLocation/CLRegion.d.ts +2 -1
- package/dist/CoreLocation/CLVisit.d.ts +2 -1
- package/dist/CoreMIDI/functions.d.ts +96 -0
- package/dist/CoreMIDI/functions.js +287 -0
- package/dist/CoreMIDI/index.d.ts +1 -0
- package/dist/CoreMIDI/index.js +1 -0
- package/dist/CoreML/MLFeatureDescription.d.ts +2 -1
- package/dist/CoreML/MLFeatureValue.d.ts +2 -1
- package/dist/CoreML/MLKey.d.ts +2 -1
- package/dist/CoreML/MLModelConfiguration.d.ts +2 -1
- package/dist/CoreML/MLOptimizationHints.d.ts +2 -1
- package/dist/CoreML/functions.d.ts +2 -0
- package/dist/CoreML/functions.js +5 -0
- package/dist/CoreML/index.d.ts +1 -0
- package/dist/CoreML/index.js +1 -0
- package/dist/CoreMediaIO/CMIOExtensionClient.d.ts +3 -0
- package/dist/CoreMediaIO/CMIOExtensionPropertyAttributes.d.ts +2 -1
- package/dist/CoreMediaIO/CMIOExtensionPropertyState.d.ts +2 -1
- package/dist/CoreMediaIO/CMIOExtensionScheduledOutput.d.ts +2 -1
- package/dist/CoreMediaIO/CMIOExtensionStreamCustomClockConfiguration.d.ts +2 -1
- package/dist/CoreMediaIO/CMIOExtensionStreamFormat.d.ts +2 -1
- package/dist/CoreMediaIO/functions.d.ts +38 -0
- package/dist/CoreMediaIO/functions.js +107 -0
- package/dist/CoreMediaIO/index.d.ts +1 -0
- package/dist/CoreMediaIO/index.js +1 -0
- package/dist/CoreMotion/CMAttitude.d.ts +2 -1
- package/dist/CoreMotion/CMDyskineticSymptomResult.d.ts +2 -1
- package/dist/CoreMotion/CMLogItem.d.ts +2 -1
- package/dist/CoreMotion/CMOdometerData.d.ts +2 -1
- package/dist/CoreMotion/CMPedometerData.d.ts +2 -1
- package/dist/CoreMotion/CMPedometerEvent.d.ts +2 -1
- package/dist/CoreMotion/CMTremorResult.d.ts +2 -1
- package/dist/CoreMotion/CMWaterSubmersionEvent.d.ts +2 -1
- package/dist/CoreMotion/CMWaterSubmersionMeasurement.d.ts +2 -1
- package/dist/CoreMotion/CMWaterTemperature.d.ts +2 -1
- package/dist/CoreSpotlight/CSCustomAttributeKey.d.ts +2 -1
- package/dist/CoreSpotlight/CSPerson.d.ts +2 -1
- package/dist/CoreSpotlight/CSSearchQueryContext.d.ts +2 -1
- package/dist/CoreSpotlight/CSSearchableItem.d.ts +2 -1
- package/dist/CoreSpotlight/CSSearchableItemAttributeSet.d.ts +2 -1
- package/dist/CoreSpotlight/CSSuggestion.d.ts +2 -1
- package/dist/CoreText/functions.d.ts +209 -0
- package/dist/CoreText/functions.js +611 -0
- package/dist/CoreText/index.d.ts +1 -0
- package/dist/CoreText/index.js +1 -0
- package/dist/CoreWLAN/CWChannel.d.ts +2 -1
- package/dist/CoreWLAN/CWConfiguration.d.ts +3 -1
- package/dist/CoreWLAN/CWNetwork.d.ts +2 -1
- package/dist/CoreWLAN/CWNetworkProfile.d.ts +3 -1
- package/dist/CoreWLAN/functions.d.ts +23 -0
- package/dist/CoreWLAN/functions.js +56 -0
- package/dist/CoreWLAN/index.d.ts +1 -0
- package/dist/CoreWLAN/index.js +1 -0
- package/dist/DeviceDiscoveryExtension/functions.d.ts +11 -0
- package/dist/DeviceDiscoveryExtension/functions.js +17 -0
- package/dist/DeviceDiscoveryExtension/index.d.ts +1 -0
- package/dist/DeviceDiscoveryExtension/index.js +1 -0
- package/dist/DiscRecording/functions.d.ts +97 -0
- package/dist/DiscRecording/functions.js +290 -0
- package/dist/DiscRecording/index.d.ts +1 -0
- package/dist/DiscRecording/index.js +1 -0
- package/dist/DiscRecordingUI/functions.d.ts +13 -0
- package/dist/DiscRecordingUI/functions.js +38 -0
- package/dist/DiscRecordingUI/index.d.ts +1 -0
- package/dist/DiscRecordingUI/index.js +1 -0
- package/dist/EventKit/EKAlarm.d.ts +3 -0
- package/dist/EventKit/EKParticipant.d.ts +3 -0
- package/dist/EventKit/EKRecurrenceDayOfWeek.d.ts +2 -1
- package/dist/EventKit/EKRecurrenceEnd.d.ts +2 -1
- package/dist/EventKit/EKRecurrenceRule.d.ts +3 -0
- package/dist/EventKit/EKStructuredLocation.d.ts +3 -0
- package/dist/ExceptionHandling/functions.d.ts +1 -0
- package/dist/ExceptionHandling/functions.js +5 -0
- package/dist/ExceptionHandling/index.d.ts +1 -0
- package/dist/ExceptionHandling/index.js +1 -0
- package/dist/FSKit/FSContainerStatus.d.ts +3 -0
- package/dist/FSKit/FSEntityIdentifier.d.ts +2 -1
- package/dist/FSKit/FSFileName.d.ts +2 -1
- package/dist/FSKit/functions.d.ts +4 -0
- package/dist/FSKit/functions.js +11 -0
- package/dist/FSKit/index.d.ts +1 -0
- package/dist/FSKit/index.js +1 -0
- package/dist/Foundation/NSAffineTransform.d.ts +2 -1
- package/dist/Foundation/NSAppleEventDescriptor.d.ts +2 -1
- package/dist/Foundation/NSAppleScript.d.ts +3 -0
- package/dist/Foundation/NSArray.d.ts +3 -1
- package/dist/Foundation/NSAttributedString.d.ts +3 -1
- package/dist/Foundation/NSAttributedStringMarkdownParsingOptions.d.ts +3 -0
- package/dist/Foundation/NSAttributedStringMarkdownSourcePosition.d.ts +2 -1
- package/dist/Foundation/NSCachedURLResponse.d.ts +2 -1
- package/dist/Foundation/NSCalendar.d.ts +2 -1
- package/dist/Foundation/NSCharacterSet.d.ts +4 -0
- package/dist/Foundation/NSData.d.ts +3 -1
- package/dist/Foundation/NSDate.d.ts +3 -0
- package/dist/Foundation/NSDateComponents.d.ts +2 -1
- package/dist/Foundation/NSDateInterval.d.ts +3 -0
- package/dist/Foundation/NSDictionary.d.ts +3 -0
- package/dist/Foundation/NSError.d.ts +2 -1
- package/dist/Foundation/NSException.d.ts +2 -1
- package/dist/Foundation/NSExpression.d.ts +3 -0
- package/dist/Foundation/NSExtensionItem.d.ts +2 -1
- package/dist/Foundation/NSFileSecurity.d.ts +3 -0
- package/dist/Foundation/NSFormatter.d.ts +2 -1
- package/dist/Foundation/NSHashTable.d.ts +2 -1
- package/dist/Foundation/NSIndexPath.d.ts +2 -1
- package/dist/Foundation/NSIndexSet.d.ts +3 -1
- package/dist/Foundation/NSInflectionRule.d.ts +2 -1
- package/dist/Foundation/NSItemProvider.d.ts +3 -0
- package/dist/Foundation/NSLocale.d.ts +3 -0
- package/dist/Foundation/NSLocalizedNumberFormatRule.d.ts +2 -1
- package/dist/Foundation/NSMapTable.d.ts +2 -1
- package/dist/Foundation/NSMeasurement.d.ts +2 -1
- package/dist/Foundation/NSMorphology.d.ts +2 -1
- package/dist/Foundation/NSMorphologyCustomPronoun.d.ts +2 -1
- package/dist/Foundation/NSMorphologyPronoun.d.ts +2 -1
- package/dist/Foundation/NSMutableCharacterSet.d.ts +4 -0
- package/dist/Foundation/NSNotification.d.ts +3 -0
- package/dist/Foundation/NSNotificationCenter.d.ts +1 -6
- package/dist/Foundation/NSNull.d.ts +2 -1
- package/dist/Foundation/NSOrderedSet.d.ts +3 -1
- package/dist/Foundation/NSOrthography.d.ts +3 -0
- package/dist/Foundation/NSPersonNameComponents.d.ts +2 -1
- package/dist/Foundation/NSPointerArray.d.ts +2 -1
- package/dist/Foundation/NSPointerFunctions.d.ts +3 -0
- package/dist/Foundation/NSPort.d.ts +2 -1
- package/dist/Foundation/NSPredicate.d.ts +2 -1
- package/dist/Foundation/NSPresentationIntent.d.ts +2 -1
- package/dist/Foundation/NSProcessInfo.d.ts +1 -6
- package/dist/Foundation/NSRegularExpression.d.ts +2 -1
- package/dist/Foundation/NSScanner.d.ts +3 -0
- package/dist/Foundation/NSSet.d.ts +3 -1
- package/dist/Foundation/NSSortDescriptor.d.ts +3 -0
- package/dist/Foundation/NSString.d.ts +3 -1
- package/dist/Foundation/NSTermOfAddress.d.ts +2 -1
- package/dist/Foundation/NSTextCheckingResult.d.ts +2 -1
- package/dist/Foundation/NSTimeZone.d.ts +2 -1
- package/dist/Foundation/NSURL.d.ts +2 -1
- package/dist/Foundation/NSURLComponents.d.ts +3 -0
- package/dist/Foundation/NSURLCredential.d.ts +2 -1
- package/dist/Foundation/NSURLProtectionSpace.d.ts +2 -1
- package/dist/Foundation/NSURLQueryItem.d.ts +2 -1
- package/dist/Foundation/NSURLRequest.d.ts +5 -0
- package/dist/Foundation/NSURLResponse.d.ts +2 -1
- package/dist/Foundation/NSURLSessionConfiguration.d.ts +3 -0
- package/dist/Foundation/NSURLSessionTask.d.ts +3 -0
- package/dist/Foundation/NSUUID.d.ts +2 -1
- package/dist/Foundation/NSUnit.d.ts +2 -1
- package/dist/Foundation/NSUserNotification.d.ts +3 -0
- package/dist/Foundation/NSUserNotificationAction.d.ts +3 -0
- package/dist/Foundation/NSValue.d.ts +3 -0
- package/dist/Foundation/NSXMLNode.d.ts +3 -0
- package/dist/Foundation/NSXPCCoder.d.ts +1 -6
- package/dist/Foundation/functions.d.ts +145 -0
- package/dist/Foundation/functions.js +386 -0
- package/dist/Foundation/index.d.ts +1 -0
- package/dist/Foundation/index.js +1 -0
- package/dist/GLKit/GLKTextureInfo.d.ts +3 -0
- package/dist/GLKit/functions.d.ts +51 -0
- package/dist/GLKit/functions.js +146 -0
- package/dist/GLKit/index.d.ts +1 -0
- package/dist/GLKit/index.js +1 -0
- package/dist/GameController/GCColor.d.ts +2 -1
- package/dist/GameController/GCDevicePhysicalInput.d.ts +3 -1
- package/dist/GameController/GCDevicePhysicalInputState.d.ts +2 -1
- package/dist/GameController/functions.d.ts +18 -0
- package/dist/GameController/functions.js +44 -0
- package/dist/GameController/index.d.ts +1 -0
- package/dist/GameController/index.js +1 -0
- package/dist/GameKit/GKBasePlayer.d.ts +3 -0
- package/dist/GameKit/GKSavedGame.d.ts +3 -0
- package/dist/GameplayKit/GKBehavior.d.ts +2 -1
- package/dist/GameplayKit/GKComponent.d.ts +2 -1
- package/dist/GameplayKit/GKDecisionTree.d.ts +1 -6
- package/dist/GameplayKit/GKEntity.d.ts +2 -1
- package/dist/GameplayKit/GKGoal.d.ts +3 -0
- package/dist/GameplayKit/GKGraph.d.ts +2 -1
- package/dist/GameplayKit/GKRandomSource.d.ts +2 -1
- package/dist/GameplayKit/GKScene.d.ts +2 -1
- package/dist/HealthKit/HKActivityMoveModeObject.d.ts +2 -1
- package/dist/HealthKit/HKActivitySummary.d.ts +2 -1
- package/dist/HealthKit/HKAttachment.d.ts +2 -1
- package/dist/HealthKit/HKAudiogramSensitivityPointClampingRange.d.ts +2 -1
- package/dist/HealthKit/HKAudiogramSensitivityTest.d.ts +2 -1
- package/dist/HealthKit/HKBiologicalSexObject.d.ts +2 -1
- package/dist/HealthKit/HKBloodTypeObject.d.ts +2 -1
- package/dist/HealthKit/HKClinicalCoding.d.ts +2 -1
- package/dist/HealthKit/HKClinicalRecord.d.ts +3 -0
- package/dist/HealthKit/HKContactsLensSpecification.d.ts +2 -1
- package/dist/HealthKit/HKContactsPrescription.d.ts +3 -0
- package/dist/HealthKit/HKDevice.d.ts +2 -1
- package/dist/HealthKit/HKElectrocardiogramVoltageMeasurement.d.ts +3 -0
- package/dist/HealthKit/HKFHIRResource.d.ts +2 -1
- package/dist/HealthKit/HKFHIRVersion.d.ts +2 -1
- package/dist/HealthKit/HKFitzpatrickSkinTypeObject.d.ts +2 -1
- package/dist/HealthKit/HKGlassesLensSpecification.d.ts +2 -1
- package/dist/HealthKit/HKGlassesPrescription.d.ts +3 -0
- package/dist/HealthKit/HKHealthConceptIdentifier.d.ts +2 -1
- package/dist/HealthKit/HKMedicationConcept.d.ts +2 -1
- package/dist/HealthKit/HKMedicationDoseEvent.d.ts +3 -0
- package/dist/HealthKit/HKObjectType.d.ts +2 -1
- package/dist/HealthKit/HKQuantity.d.ts +2 -1
- package/dist/HealthKit/HKQueryAnchor.d.ts +2 -1
- package/dist/HealthKit/HKQueryDescriptor.d.ts +2 -1
- package/dist/HealthKit/HKScoredAssessment.d.ts +3 -0
- package/dist/HealthKit/HKSource.d.ts +2 -1
- package/dist/HealthKit/HKSourceRevision.d.ts +2 -1
- package/dist/HealthKit/HKStateOfMind.d.ts +3 -0
- package/dist/HealthKit/HKStatistics.d.ts +2 -1
- package/dist/HealthKit/HKUnit.d.ts +2 -1
- package/dist/HealthKit/HKUserAnnotatedMedication.d.ts +2 -1
- package/dist/HealthKit/HKVerifiableClinicalRecordSubject.d.ts +2 -1
- package/dist/HealthKit/HKVisionPrescription.d.ts +3 -0
- package/dist/HealthKit/HKVisionPrism.d.ts +2 -1
- package/dist/HealthKit/HKWheelchairUseObject.d.ts +2 -1
- package/dist/HealthKit/HKWorkoutActivity.d.ts +2 -1
- package/dist/HealthKit/HKWorkoutConfiguration.d.ts +2 -1
- package/dist/HealthKit/HKWorkoutEffortRelationship.d.ts +2 -1
- package/dist/HealthKit/HKWorkoutEvent.d.ts +2 -1
- package/dist/HealthKit/functions.d.ts +19 -0
- package/dist/HealthKit/functions.js +35 -0
- package/dist/HealthKit/index.d.ts +1 -0
- package/dist/HealthKit/index.js +1 -0
- package/dist/IOSurface/functions.d.ts +53 -0
- package/dist/IOSurface/functions.js +155 -0
- package/dist/IOSurface/index.d.ts +1 -0
- package/dist/IOSurface/index.js +1 -0
- package/dist/IOUSBHost/functions.d.ts +44 -0
- package/dist/IOUSBHost/functions.js +131 -0
- package/dist/IOUSBHost/index.d.ts +1 -0
- package/dist/IOUSBHost/index.js +1 -0
- package/dist/InstantMessage/functions.d.ts +1 -0
- package/dist/InstantMessage/functions.js +5 -0
- package/dist/InstantMessage/index.d.ts +1 -0
- package/dist/InstantMessage/index.js +1 -0
- package/dist/Intents/INAirline.d.ts +2 -1
- package/dist/Intents/INAirport.d.ts +2 -1
- package/dist/Intents/INAirportGate.d.ts +2 -1
- package/dist/Intents/INBalanceAmount.d.ts +2 -1
- package/dist/Intents/INBillDetails.d.ts +2 -1
- package/dist/Intents/INBillPayee.d.ts +2 -1
- package/dist/Intents/INBoatReservation.d.ts +3 -0
- package/dist/Intents/INBoatTrip.d.ts +2 -1
- package/dist/Intents/INBookRestaurantReservationIntent.d.ts +3 -0
- package/dist/Intents/INBusReservation.d.ts +3 -0
- package/dist/Intents/INBusTrip.d.ts +2 -1
- package/dist/Intents/INCallGroup.d.ts +2 -1
- package/dist/Intents/INCallRecord.d.ts +2 -1
- package/dist/Intents/INCallRecordFilter.d.ts +2 -1
- package/dist/Intents/INCar.d.ts +2 -1
- package/dist/Intents/INCarHeadUnit.d.ts +2 -1
- package/dist/Intents/INCurrencyAmount.d.ts +2 -1
- package/dist/Intents/INDateComponentsRange.d.ts +2 -1
- package/dist/Intents/INDefaultCardTemplate.d.ts +2 -1
- package/dist/Intents/INFlight.d.ts +2 -1
- package/dist/Intents/INFlightReservation.d.ts +3 -0
- package/dist/Intents/INFocusStatus.d.ts +2 -1
- package/dist/Intents/INGetAvailableRestaurantReservationBookingsIntent.d.ts +3 -0
- package/dist/Intents/INGetUserCurrentRestaurantReservationBookingsIntent.d.ts +3 -0
- package/dist/Intents/INImage.d.ts +2 -1
- package/dist/Intents/INImageNoteContent.d.ts +3 -0
- package/dist/Intents/INIntent.d.ts +2 -1
- package/dist/Intents/INIntentDonationMetadata.d.ts +2 -1
- package/dist/Intents/INIntentResponse.d.ts +2 -1
- package/dist/Intents/INInteraction.d.ts +2 -1
- package/dist/Intents/INLodgingReservation.d.ts +3 -0
- package/dist/Intents/INMediaDestination.d.ts +2 -1
- package/dist/Intents/INMediaItem.d.ts +2 -1
- package/dist/Intents/INMediaSearch.d.ts +2 -1
- package/dist/Intents/INMessage.d.ts +2 -1
- package/dist/Intents/INMessageLinkMetadata.d.ts +2 -1
- package/dist/Intents/INMessageReaction.d.ts +2 -1
- package/dist/Intents/INNote.d.ts +2 -1
- package/dist/Intents/INNoteContent.d.ts +2 -1
- package/dist/Intents/INObject.d.ts +2 -1
- package/dist/Intents/INObjectCollection.d.ts +2 -1
- package/dist/Intents/INObjectSection.d.ts +2 -1
- package/dist/Intents/INParameter.d.ts +2 -1
- package/dist/Intents/INPaymentAccount.d.ts +2 -1
- package/dist/Intents/INPaymentAmount.d.ts +2 -1
- package/dist/Intents/INPaymentMethod.d.ts +2 -1
- package/dist/Intents/INPaymentRecord.d.ts +2 -1
- package/dist/Intents/INPerson.d.ts +2 -1
- package/dist/Intents/INPersonHandle.d.ts +2 -1
- package/dist/Intents/INPriceRange.d.ts +2 -1
- package/dist/Intents/INRecurrenceRule.d.ts +2 -1
- package/dist/Intents/INRelevanceProvider.d.ts +2 -1
- package/dist/Intents/INRelevantShortcut.d.ts +2 -1
- package/dist/Intents/INRentalCar.d.ts +2 -1
- package/dist/Intents/INRentalCarReservation.d.ts +3 -0
- package/dist/Intents/INReservation.d.ts +2 -1
- package/dist/Intents/INReservationAction.d.ts +2 -1
- package/dist/Intents/INRestaurant.d.ts +2 -1
- package/dist/Intents/INRestaurantGuestDisplayPreferences.d.ts +2 -1
- package/dist/Intents/INRestaurantOffer.d.ts +2 -1
- package/dist/Intents/INRestaurantReservation.d.ts +3 -0
- package/dist/Intents/INRestaurantReservationBooking.d.ts +2 -1
- package/dist/Intents/INRestaurantReservationUserBooking.d.ts +3 -0
- package/dist/Intents/INRideCompletionStatus.d.ts +2 -1
- package/dist/Intents/INRideDriver.d.ts +3 -0
- package/dist/Intents/INRideFareLineItem.d.ts +2 -1
- package/dist/Intents/INRideOption.d.ts +3 -0
- package/dist/Intents/INRidePartySizeOption.d.ts +2 -1
- package/dist/Intents/INRideStatus.d.ts +2 -1
- package/dist/Intents/INRideVehicle.d.ts +2 -1
- package/dist/Intents/INSeat.d.ts +2 -1
- package/dist/Intents/INShortcut.d.ts +2 -1
- package/dist/Intents/INSpatialEventTrigger.d.ts +2 -1
- package/dist/Intents/INSpeakableString.d.ts +2 -1
- package/dist/Intents/INSticker.d.ts +2 -1
- package/dist/Intents/INTask.d.ts +2 -1
- package/dist/Intents/INTaskList.d.ts +2 -1
- package/dist/Intents/INTemporalEventTrigger.d.ts +2 -1
- package/dist/Intents/INTermsAndConditions.d.ts +2 -1
- package/dist/Intents/INTextNoteContent.d.ts +3 -0
- package/dist/Intents/INTicketedEvent.d.ts +2 -1
- package/dist/Intents/INTicketedEventReservation.d.ts +3 -0
- package/dist/Intents/INTrainReservation.d.ts +3 -0
- package/dist/Intents/INTrainTrip.d.ts +2 -1
- package/dist/Intents/INVoiceShortcut.d.ts +2 -1
- package/dist/JavaRuntimeSupport/functions.d.ts +40 -0
- package/dist/JavaRuntimeSupport/functions.js +113 -0
- package/dist/JavaRuntimeSupport/index.d.ts +1 -0
- package/dist/JavaRuntimeSupport/index.js +1 -0
- package/dist/JavaScriptCore/functions.d.ts +120 -0
- package/dist/JavaScriptCore/functions.js +359 -0
- package/dist/JavaScriptCore/index.d.ts +1 -0
- package/dist/JavaScriptCore/index.js +1 -0
- package/dist/LinkPresentation/LPLinkMetadata.d.ts +2 -1
- package/dist/LocalAuthentication/LAEnvironmentState.d.ts +3 -0
- package/dist/MLCompute/MLCActivationDescriptor.d.ts +3 -0
- package/dist/MLCompute/MLCAdamOptimizer.d.ts +3 -0
- package/dist/MLCompute/MLCAdamWOptimizer.d.ts +3 -0
- package/dist/MLCompute/MLCConvolutionDescriptor.d.ts +3 -0
- package/dist/MLCompute/MLCDevice.d.ts +3 -0
- package/dist/MLCompute/MLCEmbeddingDescriptor.d.ts +3 -0
- package/dist/MLCompute/MLCLSTMDescriptor.d.ts +3 -0
- package/dist/MLCompute/MLCLossDescriptor.d.ts +3 -0
- package/dist/MLCompute/MLCMatMulDescriptor.d.ts +3 -0
- package/dist/MLCompute/MLCMultiheadAttentionDescriptor.d.ts +3 -0
- package/dist/MLCompute/MLCOptimizer.d.ts +3 -0
- package/dist/MLCompute/MLCOptimizerDescriptor.d.ts +3 -0
- package/dist/MLCompute/MLCPaddingLayer.d.ts +3 -0
- package/dist/MLCompute/MLCPoolingDescriptor.d.ts +3 -0
- package/dist/MLCompute/MLCRMSPropOptimizer.d.ts +3 -0
- package/dist/MLCompute/MLCSGDOptimizer.d.ts +3 -0
- package/dist/MLCompute/MLCTensor.d.ts +3 -0
- package/dist/MLCompute/MLCTensorDescriptor.d.ts +3 -0
- package/dist/MLCompute/MLCTensorOptimizerDeviceData.d.ts +3 -0
- package/dist/MLCompute/MLCYOLOLossDescriptor.d.ts +3 -0
- package/dist/MLCompute/functions.d.ts +27 -0
- package/dist/MLCompute/functions.js +41 -0
- package/dist/MLCompute/index.d.ts +1 -0
- package/dist/MLCompute/index.js +1 -0
- package/dist/MailKit/MEDecodedMessageBanner.d.ts +2 -1
- package/dist/MailKit/MEEmailAddress.d.ts +2 -1
- package/dist/MapKit/MKAddressFilter.d.ts +2 -1
- package/dist/MapKit/MKAnnotationView.d.ts +7 -1
- package/dist/MapKit/MKLocalPointsOfInterestRequest.d.ts +3 -0
- package/dist/MapKit/MKLocalSearchRequest.d.ts +3 -0
- package/dist/MapKit/MKLookAroundScene.d.ts +3 -0
- package/dist/MapKit/MKMapCamera.d.ts +2 -1
- package/dist/MapKit/MKMapCameraBoundary.d.ts +3 -0
- package/dist/MapKit/MKMapCameraZoomRange.d.ts +2 -1
- package/dist/MapKit/MKMapConfiguration.d.ts +2 -1
- package/dist/MapKit/MKMapItemIdentifier.d.ts +2 -1
- package/dist/MapKit/MKMapSnapshotOptions.d.ts +3 -0
- package/dist/MapKit/MKPointOfInterestFilter.d.ts +2 -1
- package/dist/MapKit/functions.d.ts +23 -0
- package/dist/MapKit/functions.js +56 -0
- package/dist/MapKit/index.d.ts +1 -0
- package/dist/MapKit/index.js +1 -0
- package/dist/Matter/MTRAccessControlClusterAccessControlEntryChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRAccessControlClusterAccessControlEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRAccessControlClusterAccessControlExtensionChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRAccessControlClusterAccessControlExtensionStruct.d.ts +3 -0
- package/dist/Matter/MTRAccessControlClusterAccessControlTargetStruct.d.ts +3 -0
- package/dist/Matter/MTRAccessControlClusterAccessRestrictionEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRAccessControlClusterAccessRestrictionStruct.d.ts +3 -0
- package/dist/Matter/MTRAccessControlClusterCommissioningAccessRestrictionEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRAccessControlClusterFabricRestrictionReviewUpdateEvent.d.ts +3 -0
- package/dist/Matter/MTRAccessControlClusterReviewFabricRestrictionsParams.d.ts +3 -0
- package/dist/Matter/MTRAccessControlClusterReviewFabricRestrictionsResponseParams.d.ts +3 -0
- package/dist/Matter/MTRAccessGrant.d.ts +3 -0
- package/dist/Matter/MTRAccountLoginClusterGetSetupPINParams.d.ts +3 -0
- package/dist/Matter/MTRAccountLoginClusterGetSetupPINResponseParams.d.ts +3 -0
- package/dist/Matter/MTRAccountLoginClusterLoggedOutEvent.d.ts +3 -0
- package/dist/Matter/MTRAccountLoginClusterLoginParams.d.ts +3 -0
- package/dist/Matter/MTRAccountLoginClusterLogoutParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterActionFailedEvent.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterActionStruct.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterDisableActionParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterDisableActionWithDurationParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterEnableActionParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterEnableActionWithDurationParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterEndpointListStruct.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterInstantActionParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterInstantActionWithTransitionParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterPauseActionParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterPauseActionWithDurationParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterResumeActionParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterStartActionParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterStartActionWithDurationParams.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterStateChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRActionsClusterStopActionParams.d.ts +3 -0
- package/dist/Matter/MTRActivatedCarbonFilterMonitoringClusterReplacementProductStruct.d.ts +3 -0
- package/dist/Matter/MTRActivatedCarbonFilterMonitoringClusterResetConditionParams.d.ts +3 -0
- package/dist/Matter/MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams.d.ts +3 -0
- package/dist/Matter/MTRAdministratorCommissioningClusterOpenCommissioningWindowParams.d.ts +3 -0
- package/dist/Matter/MTRAdministratorCommissioningClusterRevokeCommissioningParams.d.ts +3 -0
- package/dist/Matter/MTRApplicationBasicClusterApplicationStruct.d.ts +3 -0
- package/dist/Matter/MTRApplicationLauncherClusterApplicationEPStruct.d.ts +3 -0
- package/dist/Matter/MTRApplicationLauncherClusterApplicationStruct.d.ts +3 -0
- package/dist/Matter/MTRApplicationLauncherClusterHideAppParams.d.ts +3 -0
- package/dist/Matter/MTRApplicationLauncherClusterLaunchAppParams.d.ts +3 -0
- package/dist/Matter/MTRApplicationLauncherClusterLauncherResponseParams.d.ts +3 -0
- package/dist/Matter/MTRApplicationLauncherClusterStopAppParams.d.ts +3 -0
- package/dist/Matter/MTRAttributeRequestPath.d.ts +2 -1
- package/dist/Matter/MTRAudioOutputClusterOutputInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRAudioOutputClusterRenameOutputParams.d.ts +3 -0
- package/dist/Matter/MTRAudioOutputClusterSelectOutputParams.d.ts +3 -0
- package/dist/Matter/MTRBarrierControlClusterBarrierControlGoToPercentParams.d.ts +3 -0
- package/dist/Matter/MTRBarrierControlClusterBarrierControlStopParams.d.ts +3 -0
- package/dist/Matter/MTRBasicClusterMfgSpecificPingParams.d.ts +3 -0
- package/dist/Matter/MTRBasicInformationClusterCapabilityMinimaStruct.d.ts +3 -0
- package/dist/Matter/MTRBasicInformationClusterLeaveEvent.d.ts +3 -0
- package/dist/Matter/MTRBasicInformationClusterProductAppearanceStruct.d.ts +3 -0
- package/dist/Matter/MTRBasicInformationClusterReachableChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRBasicInformationClusterShutDownEvent.d.ts +3 -0
- package/dist/Matter/MTRBasicInformationClusterStartUpEvent.d.ts +3 -0
- package/dist/Matter/MTRBindingClusterTargetStruct.d.ts +3 -0
- package/dist/Matter/MTRBooleanStateClusterStateChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRBooleanStateConfigurationClusterAlarmsStateChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRBooleanStateConfigurationClusterEnableDisableAlarmParams.d.ts +3 -0
- package/dist/Matter/MTRBooleanStateConfigurationClusterSensorFaultEvent.d.ts +3 -0
- package/dist/Matter/MTRBooleanStateConfigurationClusterSuppressAlarmParams.d.ts +3 -0
- package/dist/Matter/MTRBridgedDeviceBasicInformationClusterActiveChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRBridgedDeviceBasicInformationClusterKeepActiveParams.d.ts +3 -0
- package/dist/Matter/MTRBridgedDeviceBasicInformationClusterLeaveEvent.d.ts +3 -0
- package/dist/Matter/MTRBridgedDeviceBasicInformationClusterProductAppearanceStruct.d.ts +3 -0
- package/dist/Matter/MTRBridgedDeviceBasicInformationClusterReachableChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRBridgedDeviceBasicInformationClusterShutDownEvent.d.ts +3 -0
- package/dist/Matter/MTRBridgedDeviceBasicInformationClusterStartUpEvent.d.ts +3 -0
- package/dist/Matter/MTRCameraAVSettingsUserLevelManagementClusterDPTZRelativeMoveParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVSettingsUserLevelManagementClusterDPTZSetViewportParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVSettingsUserLevelManagementClusterDPTZStruct.d.ts +3 -0
- package/dist/Matter/MTRCameraAVSettingsUserLevelManagementClusterMPTZMoveToPresetParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVSettingsUserLevelManagementClusterMPTZPresetStruct.d.ts +3 -0
- package/dist/Matter/MTRCameraAVSettingsUserLevelManagementClusterMPTZRelativeMoveParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVSettingsUserLevelManagementClusterMPTZRemovePresetParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVSettingsUserLevelManagementClusterMPTZSavePresetParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVSettingsUserLevelManagementClusterMPTZSetPositionParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVSettingsUserLevelManagementClusterMPTZStruct.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterAudioCapabilitiesStruct.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterAudioStreamAllocateParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterAudioStreamAllocateResponseParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterAudioStreamDeallocateParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterAudioStreamStruct.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterCaptureSnapshotParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterCaptureSnapshotResponseParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterRateDistortionTradeOffPointsStruct.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterSetStreamPrioritiesParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterSnapshotCapabilitiesStruct.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterSnapshotStreamAllocateParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterSnapshotStreamAllocateResponseParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterSnapshotStreamDeallocateParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterSnapshotStreamModifyParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterSnapshotStreamStruct.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterVideoResolutionStruct.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterVideoSensorParamsStruct.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterVideoStreamAllocateParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterVideoStreamAllocateResponseParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterVideoStreamDeallocateParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterVideoStreamModifyParams.d.ts +3 -0
- package/dist/Matter/MTRCameraAVStreamManagementClusterVideoStreamStruct.d.ts +3 -0
- package/dist/Matter/MTRCertificateInfo.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterAdditionalInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterCancelRecordProgramParams.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterChangeChannelByNumberParams.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterChangeChannelParams.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterChangeChannelResponseParams.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterChannelInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterChannelPagingStruct.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterGetProgramGuideParams.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterLineupInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterPageTokenStruct.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterProgramCastStruct.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterProgramCategoryStruct.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterProgramGuideResponseParams.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterProgramStruct.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterRecordProgramParams.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterSeriesInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRChannelClusterSkipChannelParams.d.ts +3 -0
- package/dist/Matter/MTRChimeClusterChimeSoundStruct.d.ts +3 -0
- package/dist/Matter/MTRChimeClusterPlayChimeSoundParams.d.ts +3 -0
- package/dist/Matter/MTRClosureControlClusterCalibrateParams.d.ts +3 -0
- package/dist/Matter/MTRClosureControlClusterEngageStateChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRClosureControlClusterMoveToParams.d.ts +3 -0
- package/dist/Matter/MTRClosureControlClusterMovementCompletedEvent.d.ts +3 -0
- package/dist/Matter/MTRClosureControlClusterOperationalErrorEvent.d.ts +3 -0
- package/dist/Matter/MTRClosureControlClusterOverallCurrentStateStruct.d.ts +3 -0
- package/dist/Matter/MTRClosureControlClusterOverallTargetStateStruct.d.ts +3 -0
- package/dist/Matter/MTRClosureControlClusterSecureStateChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRClosureControlClusterStopParams.d.ts +3 -0
- package/dist/Matter/MTRClosureDimensionClusterDimensionStateStruct.d.ts +3 -0
- package/dist/Matter/MTRClosureDimensionClusterRangePercent100thsStruct.d.ts +3 -0
- package/dist/Matter/MTRClosureDimensionClusterSetTargetParams.d.ts +3 -0
- package/dist/Matter/MTRClosureDimensionClusterStepParams.d.ts +3 -0
- package/dist/Matter/MTRClosureDimensionClusterUnitRangeStruct.d.ts +3 -0
- package/dist/Matter/MTRClusterPath.d.ts +2 -1
- package/dist/Matter/MTRColorControlClusterColorLoopSetParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterEnhancedMoveHueParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterEnhancedMoveToHueAndSaturationParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterEnhancedMoveToHueParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterEnhancedStepHueParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterMoveColorParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterMoveColorTemperatureParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterMoveHueParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterMoveSaturationParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterMoveToColorParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterMoveToColorTemperatureParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterMoveToHueAndSaturationParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterMoveToHueParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterMoveToSaturationParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterStepColorParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterStepColorTemperatureParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterStepHueParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterStepSaturationParams.d.ts +3 -0
- package/dist/Matter/MTRColorControlClusterStopMoveStepParams.d.ts +3 -0
- package/dist/Matter/MTRCommandWithRequiredResponse.d.ts +2 -1
- package/dist/Matter/MTRCommissioneeInfo.d.ts +2 -1
- package/dist/Matter/MTRCommissionerControlClusterCommissionNodeParams.d.ts +3 -0
- package/dist/Matter/MTRCommissionerControlClusterCommissioningRequestResultEvent.d.ts +3 -0
- package/dist/Matter/MTRCommissionerControlClusterRequestCommissioningApprovalParams.d.ts +3 -0
- package/dist/Matter/MTRCommissionerControlClusterReverseOpenCommissioningWindowParams.d.ts +3 -0
- package/dist/Matter/MTRCommodityMeteringClusterMeteredQuantityStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityPriceClusterCommodityPriceComponentStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityPriceClusterCommodityPriceStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityPriceClusterGetDetailedForecastRequestParams.d.ts +3 -0
- package/dist/Matter/MTRCommodityPriceClusterGetDetailedForecastResponseParams.d.ts +3 -0
- package/dist/Matter/MTRCommodityPriceClusterGetDetailedPriceRequestParams.d.ts +3 -0
- package/dist/Matter/MTRCommodityPriceClusterGetDetailedPriceResponseParams.d.ts +3 -0
- package/dist/Matter/MTRCommodityPriceClusterPriceChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterAuxiliaryLoadSwitchSettingsStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterCalendarPeriodStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterDayEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterDayPatternStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterDayStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterGetDayEntryParams.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterGetDayEntryResponseParams.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterGetTariffComponentParams.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterGetTariffComponentResponseParams.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterPeakPeriodStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterTariffComponentStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterTariffInformationStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterTariffPeriodStruct.d.ts +3 -0
- package/dist/Matter/MTRCommodityTariffClusterTariffPriceStruct.d.ts +3 -0
- package/dist/Matter/MTRContentAppObserverClusterContentAppMessageParams.d.ts +3 -0
- package/dist/Matter/MTRContentAppObserverClusterContentAppMessageResponseParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterAddBonusTimeParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterBlockUnratedContentParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterDisableParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterEnableParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterRatingNameStruct.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterRemainingScreenTimeExpiredEvent.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterResetPINParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterResetPINResponseParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterSetOnDemandRatingThresholdParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterSetScheduledContentRatingThresholdParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterSetScreenDailyTimeParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterUnblockUnratedContentParams.d.ts +3 -0
- package/dist/Matter/MTRContentControlClusterUpdatePINParams.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterAdditionalInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterBrandingInformationStruct.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterContentSearchStruct.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterDimensionStruct.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterLaunchContentParams.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterLaunchURLParams.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterLauncherResponseParams.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterParameterStruct.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterPlaybackPreferencesStruct.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterStyleInformationStruct.d.ts +3 -0
- package/dist/Matter/MTRContentLauncherClusterTrackPreferenceStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeAtomicAttributeStatusStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeCurrencyStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeICECandidateStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeICEServerStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeLocationDescriptorStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeMeasurementAccuracyRangeStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeMeasurementAccuracyStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypePowerThresholdStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypePriceStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeSemanticTagStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeTestGlobalStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeViewportStruct.d.ts +3 -0
- package/dist/Matter/MTRDataTypeWebRTCSessionStruct.d.ts +3 -0
- package/dist/Matter/MTRDescriptorClusterDeviceTypeStruct.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterCancelPowerAdjustRequestParams.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterCancelRequestParams.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterConstraintsStruct.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterCostStruct.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterForecastStruct.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterModifyForecastRequestParams.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterPauseRequestParams.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterPausedEvent.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterPowerAdjustCapabilityStruct.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterPowerAdjustEndEvent.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterPowerAdjustRequestParams.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterPowerAdjustStartEvent.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterPowerAdjustStruct.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterRequestConstraintBasedForecastParams.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterResumeRequestParams.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterResumedEvent.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterSlotAdjustmentStruct.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterSlotStruct.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementClusterStartTimeAdjustRequestParams.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementModeClusterChangeToModeParams.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementModeClusterChangeToModeResponseParams.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementModeClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTRDeviceEnergyManagementModeClusterModeTagStruct.d.ts +3 -0
- package/dist/Matter/MTRDeviceStorageBehaviorConfiguration.d.ts +3 -0
- package/dist/Matter/MTRDeviceType.d.ts +3 -0
- package/dist/Matter/MTRDeviceTypeRevision.d.ts +2 -1
- package/dist/Matter/MTRDiagnosticLogsClusterRetrieveLogsRequestParams.d.ts +3 -0
- package/dist/Matter/MTRDiagnosticLogsClusterRetrieveLogsResponseParams.d.ts +3 -0
- package/dist/Matter/MTRDishwasherAlarmClusterModifyEnabledAlarmsParams.d.ts +3 -0
- package/dist/Matter/MTRDishwasherAlarmClusterNotifyEvent.d.ts +3 -0
- package/dist/Matter/MTRDishwasherAlarmClusterResetParams.d.ts +3 -0
- package/dist/Matter/MTRDishwasherModeClusterChangeToModeParams.d.ts +3 -0
- package/dist/Matter/MTRDishwasherModeClusterChangeToModeResponseParams.d.ts +3 -0
- package/dist/Matter/MTRDishwasherModeClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTRDishwasherModeClusterModeTagStruct.d.ts +3 -0
- package/dist/Matter/MTRDistinguishedNameInfo.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterAppleAliroCredentialStruct.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterAppleAliroLockOperationErrorEvent.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterAppleAliroLockOperationEvent.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterAppleAliroLockUserChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterAppleClearAliroCredentialParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterAppleClearAliroReaderConfigParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterAppleGetAliroCredentialStatusParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterAppleSetAliroCredentialParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterAppleSetAliroReaderConfigParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterClearAliroReaderConfigParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterClearCredentialParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterClearHolidayScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterClearUserParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterClearWeekDayScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterClearYearDayScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterCredentialStruct.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterDoorLockAlarmEvent.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterDoorStateChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterGetCredentialStatusParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterGetCredentialStatusResponseParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterGetHolidayScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterGetHolidayScheduleResponseParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterGetUserParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterGetUserResponseParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterGetWeekDayScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterGetWeekDayScheduleResponseParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterGetYearDayScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterGetYearDayScheduleResponseParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterLockDoorParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterLockOperationErrorEvent.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterLockOperationEvent.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterLockUserChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterSetAliroReaderConfigParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterSetCredentialParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterSetCredentialResponseParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterSetHolidayScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterSetUserParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterSetWeekDayScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterSetYearDayScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterUnboltDoorParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterUnlockDoorParams.d.ts +3 -0
- package/dist/Matter/MTRDoorLockClusterUnlockWithTimeoutParams.d.ts +3 -0
- package/dist/Matter/MTREcosystemInformationClusterDeviceTypeStruct.d.ts +3 -0
- package/dist/Matter/MTREcosystemInformationClusterEcosystemDeviceStruct.d.ts +3 -0
- package/dist/Matter/MTREcosystemInformationClusterEcosystemLocationStruct.d.ts +3 -0
- package/dist/Matter/MTRElectricalEnergyMeasurementClusterCumulativeEnergyMeasuredEvent.d.ts +3 -0
- package/dist/Matter/MTRElectricalEnergyMeasurementClusterCumulativeEnergyResetStruct.d.ts +3 -0
- package/dist/Matter/MTRElectricalEnergyMeasurementClusterEnergyMeasurementStruct.d.ts +3 -0
- package/dist/Matter/MTRElectricalEnergyMeasurementClusterMeasurementAccuracyRangeStruct.d.ts +3 -0
- package/dist/Matter/MTRElectricalEnergyMeasurementClusterMeasurementAccuracyStruct.d.ts +3 -0
- package/dist/Matter/MTRElectricalEnergyMeasurementClusterPeriodicEnergyMeasuredEvent.d.ts +3 -0
- package/dist/Matter/MTRElectricalGridConditionsClusterCurrentConditionsChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRElectricalGridConditionsClusterElectricalGridConditionsStruct.d.ts +3 -0
- package/dist/Matter/MTRElectricalMeasurementClusterGetMeasurementProfileCommandParams.d.ts +3 -0
- package/dist/Matter/MTRElectricalMeasurementClusterGetMeasurementProfileResponseCommandParams.d.ts +3 -0
- package/dist/Matter/MTRElectricalMeasurementClusterGetProfileInfoCommandParams.d.ts +3 -0
- package/dist/Matter/MTRElectricalMeasurementClusterGetProfileInfoResponseCommandParams.d.ts +3 -0
- package/dist/Matter/MTRElectricalPowerMeasurementClusterHarmonicMeasurementStruct.d.ts +3 -0
- package/dist/Matter/MTRElectricalPowerMeasurementClusterMeasurementAccuracyRangeStruct.d.ts +3 -0
- package/dist/Matter/MTRElectricalPowerMeasurementClusterMeasurementAccuracyStruct.d.ts +3 -0
- package/dist/Matter/MTRElectricalPowerMeasurementClusterMeasurementPeriodRangesEvent.d.ts +3 -0
- package/dist/Matter/MTRElectricalPowerMeasurementClusterMeasurementRangeStruct.d.ts +3 -0
- package/dist/Matter/MTREndpointInfo.d.ts +2 -1
- package/dist/Matter/MTREnergyEVSEClusterChargingTargetScheduleStruct.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterChargingTargetStruct.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterClearTargetsParams.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterDisableParams.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterEVConnectedEvent.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterEVNotDetectedEvent.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterEnableChargingParams.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterEnableDischargingParams.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterEnergyTransferStartedEvent.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterEnergyTransferStoppedEvent.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterFaultEvent.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterGetTargetsParams.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterGetTargetsResponseParams.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterRFIDEvent.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterSetTargetsParams.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEClusterStartDiagnosticsParams.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEModeClusterChangeToModeParams.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEModeClusterChangeToModeResponseParams.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEModeClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTREnergyEVSEModeClusterModeTagStruct.d.ts +3 -0
- package/dist/Matter/MTREnergyPreferenceClusterBalanceStruct.d.ts +3 -0
- package/dist/Matter/MTREthernetNetworkDiagnosticsClusterResetCountsParams.d.ts +3 -0
- package/dist/Matter/MTREventRequestPath.d.ts +2 -1
- package/dist/Matter/MTRFanControlClusterStepParams.d.ts +3 -0
- package/dist/Matter/MTRFixedLabelClusterLabelStruct.d.ts +3 -0
- package/dist/Matter/MTRGeneralCommissioningClusterArmFailSafeParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralCommissioningClusterArmFailSafeResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralCommissioningClusterBasicCommissioningInfo.d.ts +3 -0
- package/dist/Matter/MTRGeneralCommissioningClusterCommissioningCompleteParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralCommissioningClusterCommissioningCompleteResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralCommissioningClusterSetRegulatoryConfigParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralCommissioningClusterSetRegulatoryConfigResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralCommissioningClusterSetTCAcknowledgementsParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralCommissioningClusterSetTCAcknowledgementsResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralDiagnosticsClusterBootReasonEvent.d.ts +3 -0
- package/dist/Matter/MTRGeneralDiagnosticsClusterHardwareFaultChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRGeneralDiagnosticsClusterNetworkFaultChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRGeneralDiagnosticsClusterNetworkInterface.d.ts +3 -0
- package/dist/Matter/MTRGeneralDiagnosticsClusterPayloadTestRequestParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralDiagnosticsClusterPayloadTestResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralDiagnosticsClusterRadioFaultChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRGeneralDiagnosticsClusterTestEventTriggerParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralDiagnosticsClusterTimeSnapshotParams.d.ts +3 -0
- package/dist/Matter/MTRGeneralDiagnosticsClusterTimeSnapshotResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGroupKeyManagementClusterGroupInfoMapStruct.d.ts +3 -0
- package/dist/Matter/MTRGroupKeyManagementClusterGroupKeyMapStruct.d.ts +3 -0
- package/dist/Matter/MTRGroupKeyManagementClusterGroupKeySetStruct.d.ts +3 -0
- package/dist/Matter/MTRGroupKeyManagementClusterKeySetReadAllIndicesParams.d.ts +3 -0
- package/dist/Matter/MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGroupKeyManagementClusterKeySetReadParams.d.ts +3 -0
- package/dist/Matter/MTRGroupKeyManagementClusterKeySetReadResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGroupKeyManagementClusterKeySetRemoveParams.d.ts +3 -0
- package/dist/Matter/MTRGroupKeyManagementClusterKeySetWriteParams.d.ts +3 -0
- package/dist/Matter/MTRGroupcastClusterConfigureAuxiliaryACLParams.d.ts +3 -0
- package/dist/Matter/MTRGroupcastClusterExpireGracePeriodParams.d.ts +3 -0
- package/dist/Matter/MTRGroupcastClusterJoinGroupParams.d.ts +3 -0
- package/dist/Matter/MTRGroupcastClusterLeaveGroupParams.d.ts +3 -0
- package/dist/Matter/MTRGroupcastClusterLeaveGroupResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGroupcastClusterMembershipStruct.d.ts +3 -0
- package/dist/Matter/MTRGroupcastClusterUpdateGroupKeyParams.d.ts +3 -0
- package/dist/Matter/MTRGroupsClusterAddGroupIfIdentifyingParams.d.ts +3 -0
- package/dist/Matter/MTRGroupsClusterAddGroupParams.d.ts +3 -0
- package/dist/Matter/MTRGroupsClusterAddGroupResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGroupsClusterGetGroupMembershipParams.d.ts +3 -0
- package/dist/Matter/MTRGroupsClusterGetGroupMembershipResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGroupsClusterRemoveAllGroupsParams.d.ts +3 -0
- package/dist/Matter/MTRGroupsClusterRemoveGroupParams.d.ts +3 -0
- package/dist/Matter/MTRGroupsClusterRemoveGroupResponseParams.d.ts +3 -0
- package/dist/Matter/MTRGroupsClusterViewGroupParams.d.ts +3 -0
- package/dist/Matter/MTRGroupsClusterViewGroupResponseParams.d.ts +3 -0
- package/dist/Matter/MTRHEPAFilterMonitoringClusterReplacementProductStruct.d.ts +3 -0
- package/dist/Matter/MTRHEPAFilterMonitoringClusterResetConditionParams.d.ts +3 -0
- package/dist/Matter/MTRICDManagementClusterMonitoringRegistrationStruct.d.ts +3 -0
- package/dist/Matter/MTRICDManagementClusterRegisterClientParams.d.ts +3 -0
- package/dist/Matter/MTRICDManagementClusterRegisterClientResponseParams.d.ts +3 -0
- package/dist/Matter/MTRICDManagementClusterStayActiveRequestParams.d.ts +3 -0
- package/dist/Matter/MTRICDManagementClusterStayActiveResponseParams.d.ts +3 -0
- package/dist/Matter/MTRICDManagementClusterUnregisterClientParams.d.ts +3 -0
- package/dist/Matter/MTRIdentifyClusterIdentifyParams.d.ts +3 -0
- package/dist/Matter/MTRIdentifyClusterTriggerEffectParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricAdministratorClusterAddICACParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricAdministratorClusterAnnounceJointFabricAdministratorParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricAdministratorClusterICACCSRRequestParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricAdministratorClusterICACCSRResponseParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricAdministratorClusterICACResponseParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricAdministratorClusterOpenJointCommissioningWindowParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricAdministratorClusterTransferAnchorCompleteParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricAdministratorClusterTransferAnchorRequestParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricAdministratorClusterTransferAnchorResponseParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterAddACLToNodeParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterAddAdminParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterAddBindingToEndpointForNodeParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterAddGroupIDToEndpointForNodeParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterAddGroupParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterAddKeySetParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterAddPendingNodeParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreACLEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreAccessControlEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreAccessControlTargetStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreAdministratorInformationEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreBindingTargetStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreEndpointBindingEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreEndpointEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreEndpointGroupIDEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreGroupInformationEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreGroupKeySetStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreNodeInformationEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreNodeKeySetEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterDatastoreStatusEntryStruct.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterRefreshNodeParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterRemoveACLFromNodeParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterRemoveAdminParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterRemoveBindingFromEndpointForNodeParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterRemoveGroupIDFromEndpointForNodeParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterRemoveGroupParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterRemoveKeySetParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterRemoveNodeParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterUpdateAdminParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterUpdateEndpointForNodeParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterUpdateGroupParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterUpdateKeySetParams.d.ts +3 -0
- package/dist/Matter/MTRJointFabricDatastoreClusterUpdateNodeParams.d.ts +3 -0
- package/dist/Matter/MTRKeypadInputClusterSendKeyParams.d.ts +3 -0
- package/dist/Matter/MTRKeypadInputClusterSendKeyResponseParams.d.ts +3 -0
- package/dist/Matter/MTRLaundryWasherModeClusterChangeToModeParams.d.ts +3 -0
- package/dist/Matter/MTRLaundryWasherModeClusterChangeToModeResponseParams.d.ts +3 -0
- package/dist/Matter/MTRLaundryWasherModeClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTRLaundryWasherModeClusterModeTagStruct.d.ts +3 -0
- package/dist/Matter/MTRLevelControlClusterMoveParams.d.ts +3 -0
- package/dist/Matter/MTRLevelControlClusterMoveToClosestFrequencyParams.d.ts +3 -0
- package/dist/Matter/MTRLevelControlClusterMoveToLevelParams.d.ts +3 -0
- package/dist/Matter/MTRLevelControlClusterMoveToLevelWithOnOffParams.d.ts +3 -0
- package/dist/Matter/MTRLevelControlClusterMoveWithOnOffParams.d.ts +3 -0
- package/dist/Matter/MTRLevelControlClusterStepParams.d.ts +3 -0
- package/dist/Matter/MTRLevelControlClusterStepWithOnOffParams.d.ts +3 -0
- package/dist/Matter/MTRLevelControlClusterStopParams.d.ts +3 -0
- package/dist/Matter/MTRLevelControlClusterStopWithOnOffParams.d.ts +3 -0
- package/dist/Matter/MTRLowPowerClusterSleepParams.d.ts +3 -0
- package/dist/Matter/MTRMediaInputClusterHideInputStatusParams.d.ts +3 -0
- package/dist/Matter/MTRMediaInputClusterInputInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRMediaInputClusterRenameInputParams.d.ts +3 -0
- package/dist/Matter/MTRMediaInputClusterSelectInputParams.d.ts +3 -0
- package/dist/Matter/MTRMediaInputClusterShowInputStatusParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterActivateAudioTrackParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterActivateTextTrackParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterDeactivateTextTrackParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterFastForwardParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterNextParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterPauseParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterPlayParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterPlaybackPositionStruct.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterPlaybackResponseParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterPreviousParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterRewindParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterSeekParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterSkipBackwardParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterSkipForwardParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterStartOverParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterStateChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterStopParams.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterTrackAttributesStruct.d.ts +3 -0
- package/dist/Matter/MTRMediaPlaybackClusterTrackStruct.d.ts +3 -0
- package/dist/Matter/MTRMessagesClusterCancelMessagesRequestParams.d.ts +3 -0
- package/dist/Matter/MTRMessagesClusterMessageCompleteEvent.d.ts +3 -0
- package/dist/Matter/MTRMessagesClusterMessagePresentedEvent.d.ts +3 -0
- package/dist/Matter/MTRMessagesClusterMessageQueuedEvent.d.ts +3 -0
- package/dist/Matter/MTRMessagesClusterMessageResponseOptionStruct.d.ts +3 -0
- package/dist/Matter/MTRMessagesClusterMessageStruct.d.ts +3 -0
- package/dist/Matter/MTRMessagesClusterPresentMessagesRequestParams.d.ts +3 -0
- package/dist/Matter/MTRMicrowaveOvenControlClusterAddMoreTimeParams.d.ts +3 -0
- package/dist/Matter/MTRMicrowaveOvenControlClusterSetCookingParametersParams.d.ts +3 -0
- package/dist/Matter/MTRMicrowaveOvenModeClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTRMicrowaveOvenModeClusterModeTagStruct.d.ts +3 -0
- package/dist/Matter/MTRModeSelectClusterChangeToModeParams.d.ts +3 -0
- package/dist/Matter/MTRModeSelectClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTRModeSelectClusterSemanticTagStruct.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterAddOrUpdateThreadNetworkParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterConnectNetworkParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterConnectNetworkResponseParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterNetworkConfigResponseParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterNetworkInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterQueryIdentityParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterQueryIdentityResponseParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterRemoveNetworkParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterReorderNetworkParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterScanNetworksParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterScanNetworksResponseParams.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterThreadInterfaceScanResultStruct.d.ts +3 -0
- package/dist/Matter/MTRNetworkCommissioningClusterWiFiInterfaceScanResultStruct.d.ts +3 -0
- package/dist/Matter/MTRNetworkInterfaceInfo.d.ts +2 -1
- package/dist/Matter/MTROccupancySensingClusterHoldTimeLimitsStruct.d.ts +3 -0
- package/dist/Matter/MTROccupancySensingClusterOccupancyChangedEvent.d.ts +3 -0
- package/dist/Matter/MTROnOffClusterOffParams.d.ts +3 -0
- package/dist/Matter/MTROnOffClusterOffWithEffectParams.d.ts +3 -0
- package/dist/Matter/MTROnOffClusterOnParams.d.ts +3 -0
- package/dist/Matter/MTROnOffClusterOnWithRecallGlobalSceneParams.d.ts +3 -0
- package/dist/Matter/MTROnOffClusterOnWithTimedOffParams.d.ts +3 -0
- package/dist/Matter/MTROnOffClusterToggleParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterAddNOCParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterAddTrustedRootCertificateParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterAttestationRequestParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterAttestationResponseParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterCSRRequestParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterCSRResponseParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterCertificateChainRequestParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterCertificateChainResponseParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterFabricDescriptorStruct.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterNOCResponseParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterNOCStruct.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterRemoveFabricParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterSetVIDVerificationStatementParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterSignVIDVerificationRequestParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterSignVIDVerificationResponseParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterUpdateFabricLabelParams.d.ts +3 -0
- package/dist/Matter/MTROperationalCredentialsClusterUpdateNOCParams.d.ts +3 -0
- package/dist/Matter/MTROperationalStateClusterErrorStateStruct.d.ts +3 -0
- package/dist/Matter/MTROperationalStateClusterOperationCompletionEvent.d.ts +3 -0
- package/dist/Matter/MTROperationalStateClusterOperationalCommandResponseParams.d.ts +3 -0
- package/dist/Matter/MTROperationalStateClusterOperationalErrorEvent.d.ts +3 -0
- package/dist/Matter/MTROperationalStateClusterOperationalStateStruct.d.ts +3 -0
- package/dist/Matter/MTROperationalStateClusterPauseParams.d.ts +3 -0
- package/dist/Matter/MTROperationalStateClusterResumeParams.d.ts +3 -0
- package/dist/Matter/MTROperationalStateClusterStartParams.d.ts +3 -0
- package/dist/Matter/MTROperationalStateClusterStopParams.d.ts +3 -0
- package/dist/Matter/MTROptionalQRCodeInfo.d.ts +3 -0
- package/dist/Matter/MTROtaSoftwareUpdateProviderClusterApplyUpdateRequestParams.d.ts +3 -0
- package/dist/Matter/MTROtaSoftwareUpdateProviderClusterApplyUpdateResponseParams.d.ts +3 -0
- package/dist/Matter/MTROtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams.d.ts +3 -0
- package/dist/Matter/MTROtaSoftwareUpdateProviderClusterQueryImageParams.d.ts +3 -0
- package/dist/Matter/MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams.d.ts +3 -0
- package/dist/Matter/MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams.d.ts +3 -0
- package/dist/Matter/MTROtaSoftwareUpdateRequestorClusterDownloadErrorEvent.d.ts +3 -0
- package/dist/Matter/MTROtaSoftwareUpdateRequestorClusterProviderLocation.d.ts +3 -0
- package/dist/Matter/MTROtaSoftwareUpdateRequestorClusterStateTransitionEvent.d.ts +3 -0
- package/dist/Matter/MTROtaSoftwareUpdateRequestorClusterVersionAppliedEvent.d.ts +3 -0
- package/dist/Matter/MTROvenCavityOperationalStateClusterErrorStateStruct.d.ts +3 -0
- package/dist/Matter/MTROvenCavityOperationalStateClusterOperationCompletionEvent.d.ts +3 -0
- package/dist/Matter/MTROvenCavityOperationalStateClusterOperationalCommandResponseParams.d.ts +3 -0
- package/dist/Matter/MTROvenCavityOperationalStateClusterOperationalErrorEvent.d.ts +3 -0
- package/dist/Matter/MTROvenCavityOperationalStateClusterOperationalStateStruct.d.ts +3 -0
- package/dist/Matter/MTROvenCavityOperationalStateClusterStartParams.d.ts +3 -0
- package/dist/Matter/MTROvenCavityOperationalStateClusterStopParams.d.ts +3 -0
- package/dist/Matter/MTROvenModeClusterChangeToModeParams.d.ts +3 -0
- package/dist/Matter/MTROvenModeClusterChangeToModeResponseParams.d.ts +3 -0
- package/dist/Matter/MTROvenModeClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTROvenModeClusterModeTagStruct.d.ts +3 -0
- package/dist/Matter/MTRPowerSourceClusterBatChargeFaultChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRPowerSourceClusterBatChargeFaultChangeType.d.ts +3 -0
- package/dist/Matter/MTRPowerSourceClusterBatFaultChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRPowerSourceClusterBatFaultChangeType.d.ts +3 -0
- package/dist/Matter/MTRPowerSourceClusterWiredFaultChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRPowerSourceClusterWiredFaultChangeType.d.ts +3 -0
- package/dist/Matter/MTRPowerTopologyClusterCircuitNodeStruct.d.ts +3 -0
- package/dist/Matter/MTRProductIdentity.d.ts +2 -1
- package/dist/Matter/MTRPumpConfigurationAndControlClusterAirDetectionEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterDryRunningEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterElectronicFatalFailureEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterElectronicNonFatalFailureEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterElectronicTemperatureHighEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterGeneralFaultEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterLeakageEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterMotorTemperatureHighEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterPowerMissingPhaseEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterPumpBlockedEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterPumpMotorFatalFailureEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterSensorFailureEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterSupplyVoltageHighEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterSupplyVoltageLowEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterSystemPressureHighEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterSystemPressureLowEvent.d.ts +3 -0
- package/dist/Matter/MTRPumpConfigurationAndControlClusterTurbineOperationEvent.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterAllocatePushTransportParams.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterAllocatePushTransportResponseParams.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterCMAFContainerOptionsStruct.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterContainerOptionsStruct.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterDeallocatePushTransportParams.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterFindTransportParams.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterFindTransportResponseParams.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterManuallyTriggerTransportParams.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterModifyPushTransportParams.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterPushTransportBeginEvent.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterPushTransportEndEvent.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterSetTransportStatusParams.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterSupportedFormatStruct.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterTransportConfigurationStruct.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterTransportMotionTriggerTimeControlStruct.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterTransportOptionsStruct.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterTransportTriggerOptionsStruct.d.ts +3 -0
- package/dist/Matter/MTRPushAVStreamTransportClusterTransportZoneOptionsStruct.d.ts +3 -0
- package/dist/Matter/MTRRVCCleanModeClusterChangeToModeParams.d.ts +3 -0
- package/dist/Matter/MTRRVCCleanModeClusterChangeToModeResponseParams.d.ts +3 -0
- package/dist/Matter/MTRRVCCleanModeClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTRRVCCleanModeClusterModeTagStruct.d.ts +3 -0
- package/dist/Matter/MTRRVCOperationalStateClusterErrorStateStruct.d.ts +3 -0
- package/dist/Matter/MTRRVCOperationalStateClusterGoHomeParams.d.ts +3 -0
- package/dist/Matter/MTRRVCOperationalStateClusterOperationCompletionEvent.d.ts +3 -0
- package/dist/Matter/MTRRVCOperationalStateClusterOperationalCommandResponseParams.d.ts +3 -0
- package/dist/Matter/MTRRVCOperationalStateClusterOperationalErrorEvent.d.ts +3 -0
- package/dist/Matter/MTRRVCOperationalStateClusterOperationalStateStruct.d.ts +3 -0
- package/dist/Matter/MTRRVCOperationalStateClusterPauseParams.d.ts +3 -0
- package/dist/Matter/MTRRVCOperationalStateClusterResumeParams.d.ts +3 -0
- package/dist/Matter/MTRRVCRunModeClusterChangeToModeParams.d.ts +3 -0
- package/dist/Matter/MTRRVCRunModeClusterChangeToModeResponseParams.d.ts +3 -0
- package/dist/Matter/MTRRVCRunModeClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTRRVCRunModeClusterModeTagStruct.d.ts +3 -0
- package/dist/Matter/MTRReadParams.d.ts +2 -1
- package/dist/Matter/MTRRefrigeratorAlarmClusterNotifyEvent.d.ts +3 -0
- package/dist/Matter/MTRRefrigeratorAndTemperatureControlledCabinetModeClusterChangeToModeParams.d.ts +3 -0
- package/dist/Matter/MTRRefrigeratorAndTemperatureControlledCabinetModeClusterChangeToModeResponseParams.d.ts +3 -0
- package/dist/Matter/MTRRefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTRRefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.d.ts +3 -0
- package/dist/Matter/MTRSampleMEIClusterAddArgumentsParams.d.ts +3 -0
- package/dist/Matter/MTRSampleMEIClusterAddArgumentsResponseParams.d.ts +3 -0
- package/dist/Matter/MTRSampleMEIClusterPingCountEventEvent.d.ts +3 -0
- package/dist/Matter/MTRSampleMEIClusterPingParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterAddSceneParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterAddSceneResponseParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterAttributeValuePairStruct.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterCopySceneParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterCopySceneResponseParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterExtensionFieldSetStruct.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterGetSceneMembershipParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterGetSceneMembershipResponseParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterRecallSceneParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterRemoveAllScenesParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterRemoveAllScenesResponseParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterRemoveSceneParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterRemoveSceneResponseParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterSceneInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterStoreSceneParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterStoreSceneResponseParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterViewSceneParams.d.ts +3 -0
- package/dist/Matter/MTRScenesManagementClusterViewSceneResponseParams.d.ts +3 -0
- package/dist/Matter/MTRServiceAreaClusterAreaInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRServiceAreaClusterAreaStruct.d.ts +3 -0
- package/dist/Matter/MTRServiceAreaClusterLandmarkInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRServiceAreaClusterMapStruct.d.ts +3 -0
- package/dist/Matter/MTRServiceAreaClusterProgressStruct.d.ts +3 -0
- package/dist/Matter/MTRServiceAreaClusterSelectAreasParams.d.ts +3 -0
- package/dist/Matter/MTRServiceAreaClusterSelectAreasResponseParams.d.ts +3 -0
- package/dist/Matter/MTRServiceAreaClusterSkipAreaParams.d.ts +3 -0
- package/dist/Matter/MTRServiceAreaClusterSkipAreaResponseParams.d.ts +3 -0
- package/dist/Matter/MTRSetupPayload.d.ts +2 -1
- package/dist/Matter/MTRSmokeCOAlarmClusterAlarmMutedEvent.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterAllClearEvent.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterCOAlarmEvent.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterEndOfServiceEvent.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterHardwareFaultEvent.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterInterconnectCOAlarmEvent.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterInterconnectSmokeAlarmEvent.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterLowBatteryEvent.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterMuteEndedEvent.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterSelfTestCompleteEvent.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterSelfTestRequestParams.d.ts +3 -0
- package/dist/Matter/MTRSmokeCOAlarmClusterSmokeAlarmEvent.d.ts +3 -0
- package/dist/Matter/MTRSoftwareDiagnosticsClusterResetWatermarksParams.d.ts +3 -0
- package/dist/Matter/MTRSoftwareDiagnosticsClusterSoftwareFaultEvent.d.ts +3 -0
- package/dist/Matter/MTRSoftwareDiagnosticsClusterThreadMetricsStruct.d.ts +3 -0
- package/dist/Matter/MTRSubscribeParams.d.ts +3 -0
- package/dist/Matter/MTRSwitchClusterInitialPressEvent.d.ts +3 -0
- package/dist/Matter/MTRSwitchClusterLongPressEvent.d.ts +3 -0
- package/dist/Matter/MTRSwitchClusterLongReleaseEvent.d.ts +3 -0
- package/dist/Matter/MTRSwitchClusterMultiPressCompleteEvent.d.ts +3 -0
- package/dist/Matter/MTRSwitchClusterMultiPressOngoingEvent.d.ts +3 -0
- package/dist/Matter/MTRSwitchClusterShortReleaseEvent.d.ts +3 -0
- package/dist/Matter/MTRSwitchClusterSwitchLatchedEvent.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterClientCSRParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterClientCSRResponseParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterFindClientCertificateParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterFindClientCertificateResponseParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterFindRootCertificateParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterFindRootCertificateResponseParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterLookupClientCertificateParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterLookupClientCertificateResponseParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterLookupRootCertificateParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterLookupRootCertificateResponseParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterProvisionClientCertificateParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterProvisionRootCertificateParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterProvisionRootCertificateResponseParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterRemoveClientCertificateParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterRemoveRootCertificateParams.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterTLSCertStruct.d.ts +3 -0
- package/dist/Matter/MTRTLSCertificateManagementClusterTLSClientCertificateDetailStruct.d.ts +3 -0
- package/dist/Matter/MTRTLSClientManagementClusterFindEndpointParams.d.ts +3 -0
- package/dist/Matter/MTRTLSClientManagementClusterFindEndpointResponseParams.d.ts +3 -0
- package/dist/Matter/MTRTLSClientManagementClusterProvisionEndpointParams.d.ts +3 -0
- package/dist/Matter/MTRTLSClientManagementClusterProvisionEndpointResponseParams.d.ts +3 -0
- package/dist/Matter/MTRTLSClientManagementClusterRemoveEndpointParams.d.ts +3 -0
- package/dist/Matter/MTRTLSClientManagementClusterTLSEndpointStruct.d.ts +3 -0
- package/dist/Matter/MTRTargetNavigatorClusterNavigateTargetParams.d.ts +3 -0
- package/dist/Matter/MTRTargetNavigatorClusterNavigateTargetResponseParams.d.ts +3 -0
- package/dist/Matter/MTRTargetNavigatorClusterTargetInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRTargetNavigatorClusterTargetUpdatedEvent.d.ts +3 -0
- package/dist/Matter/MTRTemperatureControlClusterSetTemperatureParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterActivePresetChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterActiveScheduleChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterAddThermostatSuggestionParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterAddThermostatSuggestionResponseParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterAtomicRequestParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterAtomicResponseParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterClearWeeklyScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterGetWeeklyScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterGetWeeklyScheduleResponseParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterLocalTemperatureChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterOccupancyChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterPresetStruct.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterPresetTypeStruct.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterRemoveThermostatSuggestionParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterRunningModeChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterRunningStateChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterScheduleStruct.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterScheduleTransitionStruct.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterScheduleTypeStruct.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterSetActivePresetRequestParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterSetActiveScheduleRequestParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterSetWeeklyScheduleParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterSetpointChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterSetpointRaiseLowerParams.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterSystemModeChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterThermostatSuggestionStruct.d.ts +3 -0
- package/dist/Matter/MTRThermostatClusterWeeklyScheduleTransitionStruct.d.ts +3 -0
- package/dist/Matter/MTRThreadBorderRouterManagementClusterDatasetResponseParams.d.ts +3 -0
- package/dist/Matter/MTRThreadBorderRouterManagementClusterGetActiveDatasetRequestParams.d.ts +3 -0
- package/dist/Matter/MTRThreadBorderRouterManagementClusterGetPendingDatasetRequestParams.d.ts +3 -0
- package/dist/Matter/MTRThreadBorderRouterManagementClusterSetActiveDatasetRequestParams.d.ts +3 -0
- package/dist/Matter/MTRThreadBorderRouterManagementClusterSetPendingDatasetRequestParams.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDiagnosticsClusterConnectionStatusEvent.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDiagnosticsClusterNeighborTableStruct.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDiagnosticsClusterResetCountsParams.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDiagnosticsClusterRouteTableStruct.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDiagnosticsClusterSecurityPolicy.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDirectoryClusterAddNetworkParams.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDirectoryClusterGetOperationalDatasetParams.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDirectoryClusterOperationalDatasetResponseParams.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDirectoryClusterRemoveNetworkParams.d.ts +3 -0
- package/dist/Matter/MTRThreadNetworkDirectoryClusterThreadNetworkStruct.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterDSTOffsetStruct.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterDSTStatusEvent.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterDSTTableEmptyEvent.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterMissingTrustedTimeSourceEvent.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterSetDSTOffsetParams.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterSetDefaultNTPParams.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterSetTimeZoneParams.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterSetTimeZoneResponseParams.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterSetTrustedTimeSourceParams.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterSetUtcTimeParams.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterTimeFailureEvent.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterTimeZoneStatusEvent.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterTimeZoneStruct.d.ts +3 -0
- package/dist/Matter/MTRTimeSynchronizationClusterTrustedTimeSourceStruct.d.ts +3 -0
- package/dist/Matter/MTRTimerClusterAddTimeParams.d.ts +3 -0
- package/dist/Matter/MTRTimerClusterReduceTimeParams.d.ts +3 -0
- package/dist/Matter/MTRTimerClusterResetTimerParams.d.ts +3 -0
- package/dist/Matter/MTRTimerClusterSetTimerParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterBooleanResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterDoubleNestedStructList.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterGlobalEchoRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterGlobalEchoResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterNestedStruct.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterNestedStructList.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterNullablesAndOptionalsStruct.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterSimpleStruct.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterSimpleStructEchoRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterSimpleStructResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterStringEchoRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterStringEchoResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestAddArgumentsParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestAddArgumentsResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestBatchHelperRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestBatchHelperResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestCheckCommandFlagsParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestComplexNullableOptionalRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestComplexNullableOptionalResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestDifferentVendorMeiEventEvent.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestDifferentVendorMeiRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestDifferentVendorMeiResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestEmitTestEventRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestEmitTestEventResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestEmitTestFabricScopedEventRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestEmitTestFabricScopedEventResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestEnumsRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestEnumsResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestEventEvent.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestFabricScoped.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestFabricScopedEventEvent.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestListInt8UArgumentRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestListInt8UReverseRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestListInt8UReverseResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestListNestedStructListArgumentRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestListStructArgumentRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestListStructOctet.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestNestedStructArgumentRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestNestedStructListArgumentRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestNotHandledParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestNullableOptionalRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestNullableOptionalResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestSecondBatchHelperRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestSimpleArgumentRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestSimpleArgumentResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestSimpleOptionalArgumentRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestSpecificParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestSpecificResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestStructArgumentRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestStructArrayArgumentRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestStructArrayArgumentResponseParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTestUnknownCommandParams.d.ts +3 -0
- package/dist/Matter/MTRUnitTestingClusterTimedInvokeRequestParams.d.ts +3 -0
- package/dist/Matter/MTRUserLabelClusterLabelStruct.d.ts +3 -0
- package/dist/Matter/MTRValveConfigurationAndControlClusterCloseParams.d.ts +3 -0
- package/dist/Matter/MTRValveConfigurationAndControlClusterOpenParams.d.ts +3 -0
- package/dist/Matter/MTRValveConfigurationAndControlClusterValveFaultEvent.d.ts +3 -0
- package/dist/Matter/MTRValveConfigurationAndControlClusterValveStateChangedEvent.d.ts +3 -0
- package/dist/Matter/MTRWaterHeaterManagementClusterBoostEndedEvent.d.ts +3 -0
- package/dist/Matter/MTRWaterHeaterManagementClusterBoostParams.d.ts +3 -0
- package/dist/Matter/MTRWaterHeaterManagementClusterBoostStartedEvent.d.ts +3 -0
- package/dist/Matter/MTRWaterHeaterManagementClusterCancelBoostParams.d.ts +3 -0
- package/dist/Matter/MTRWaterHeaterManagementClusterWaterHeaterBoostInfoStruct.d.ts +3 -0
- package/dist/Matter/MTRWaterHeaterModeClusterChangeToModeParams.d.ts +3 -0
- package/dist/Matter/MTRWaterHeaterModeClusterChangeToModeResponseParams.d.ts +3 -0
- package/dist/Matter/MTRWaterHeaterModeClusterModeOptionStruct.d.ts +3 -0
- package/dist/Matter/MTRWaterHeaterModeClusterModeTagStruct.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportProviderClusterEndSessionParams.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportProviderClusterProvideAnswerParams.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportProviderClusterProvideICECandidatesParams.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportProviderClusterProvideOfferParams.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportProviderClusterProvideOfferResponseParams.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportProviderClusterSFrameStruct.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportProviderClusterSolicitOfferParams.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportProviderClusterSolicitOfferResponseParams.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportRequestorClusterAnswerParams.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportRequestorClusterEndParams.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportRequestorClusterICECandidatesParams.d.ts +3 -0
- package/dist/Matter/MTRWebRTCTransportRequestorClusterOfferParams.d.ts +3 -0
- package/dist/Matter/MTRWiFiNetworkDiagnosticsClusterAssociationFailureEvent.d.ts +3 -0
- package/dist/Matter/MTRWiFiNetworkDiagnosticsClusterConnectionStatusEvent.d.ts +3 -0
- package/dist/Matter/MTRWiFiNetworkDiagnosticsClusterDisconnectionEvent.d.ts +3 -0
- package/dist/Matter/MTRWiFiNetworkDiagnosticsClusterResetCountsParams.d.ts +3 -0
- package/dist/Matter/MTRWiFiNetworkManagementClusterNetworkPassphraseRequestParams.d.ts +3 -0
- package/dist/Matter/MTRWiFiNetworkManagementClusterNetworkPassphraseResponseParams.d.ts +3 -0
- package/dist/Matter/MTRWindowCoveringClusterDownOrCloseParams.d.ts +3 -0
- package/dist/Matter/MTRWindowCoveringClusterGoToLiftPercentageParams.d.ts +3 -0
- package/dist/Matter/MTRWindowCoveringClusterGoToLiftValueParams.d.ts +3 -0
- package/dist/Matter/MTRWindowCoveringClusterGoToTiltPercentageParams.d.ts +3 -0
- package/dist/Matter/MTRWindowCoveringClusterGoToTiltValueParams.d.ts +3 -0
- package/dist/Matter/MTRWindowCoveringClusterStopMotionParams.d.ts +3 -0
- package/dist/Matter/MTRWindowCoveringClusterUpOrOpenParams.d.ts +3 -0
- package/dist/Matter/MTRWriteParams.d.ts +2 -1
- package/dist/Matter/MTRZoneManagementClusterCreateOrUpdateTriggerParams.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterCreateTwoDCartesianZoneParams.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterCreateTwoDCartesianZoneResponseParams.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterRemoveTriggerParams.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterRemoveZoneParams.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterTwoDCartesianVertexStruct.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterTwoDCartesianZoneStruct.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterUpdateTwoDCartesianZoneParams.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterZoneInformationStruct.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterZoneStoppedEvent.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterZoneTriggerControlStruct.d.ts +3 -0
- package/dist/Matter/MTRZoneManagementClusterZoneTriggeredEvent.d.ts +3 -0
- package/dist/Matter/functions.d.ts +17 -0
- package/dist/Matter/functions.js +26 -0
- package/dist/Matter/index.d.ts +1 -0
- package/dist/Matter/index.js +1 -0
- package/dist/MediaAccessibility/functions.d.ts +28 -0
- package/dist/MediaAccessibility/functions.js +83 -0
- package/dist/MediaAccessibility/index.d.ts +1 -0
- package/dist/MediaAccessibility/index.js +1 -0
- package/dist/MediaExtension/MEEstimatedSampleLocation.d.ts +3 -0
- package/dist/MediaExtension/MEFileInfo.d.ts +3 -0
- package/dist/MediaExtension/MEFormatReaderInstantiationOptions.d.ts +3 -0
- package/dist/MediaExtension/MEHEVCDependencyInfo.d.ts +3 -0
- package/dist/MediaExtension/MESampleCursorChunk.d.ts +3 -0
- package/dist/MediaExtension/MESampleLocation.d.ts +3 -0
- package/dist/MediaExtension/METrackInfo.d.ts +3 -0
- package/dist/MediaPlayer/MPAdTimeRange.d.ts +3 -0
- package/dist/MediaPlayer/MPMediaQuery.d.ts +2 -1
- package/dist/MediaPlayer/MPMediaQuerySection.d.ts +2 -1
- package/dist/MediaPlayer/functions.d.ts +3 -0
- package/dist/MediaPlayer/functions.js +11 -0
- package/dist/MediaPlayer/index.d.ts +1 -0
- package/dist/MediaPlayer/index.js +1 -0
- package/dist/Metal/MTL4AccelerationStructureGeometryDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4ArgumentTableDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4BinaryFunctionDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4CommandAllocatorDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4CommandBufferOptions.d.ts +3 -0
- package/dist/Metal/MTL4CommandQueueDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4CompilerDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4CompilerTaskOptions.d.ts +3 -0
- package/dist/Metal/MTL4CounterHeapDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4FunctionDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4LibraryDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4PipelineDataSetSerializerDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4PipelineDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4PipelineOptions.d.ts +3 -0
- package/dist/Metal/MTL4PipelineStageDynamicLinkingDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4RenderPassDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4RenderPipelineBinaryFunctionsDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4RenderPipelineColorAttachmentDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4RenderPipelineColorAttachmentDescriptorArray.d.ts +3 -0
- package/dist/Metal/MTL4RenderPipelineDynamicLinkingDescriptor.d.ts +3 -0
- package/dist/Metal/MTL4StaticLinkingDescriptor.d.ts +3 -0
- package/dist/Metal/MTLAccelerationStructureDescriptor.d.ts +3 -0
- package/dist/Metal/MTLAccelerationStructureGeometryDescriptor.d.ts +3 -0
- package/dist/Metal/MTLAccelerationStructurePassDescriptor.d.ts +3 -0
- package/dist/Metal/MTLAccelerationStructurePassSampleBufferAttachmentDescriptor.d.ts +3 -0
- package/dist/Metal/MTLArchitecture.d.ts +3 -0
- package/dist/Metal/MTLArgumentDescriptor.d.ts +3 -0
- package/dist/Metal/MTLAttributeDescriptor.d.ts +3 -0
- package/dist/Metal/MTLBinaryArchiveDescriptor.d.ts +3 -0
- package/dist/Metal/MTLBlitPassDescriptor.d.ts +3 -0
- package/dist/Metal/MTLBlitPassSampleBufferAttachmentDescriptor.d.ts +3 -0
- package/dist/Metal/MTLBufferLayoutDescriptor.d.ts +3 -0
- package/dist/Metal/MTLCaptureDescriptor.d.ts +3 -0
- package/dist/Metal/MTLCommandBufferDescriptor.d.ts +3 -0
- package/dist/Metal/MTLCommandQueueDescriptor.d.ts +3 -0
- package/dist/Metal/MTLCompileOptions.d.ts +3 -0
- package/dist/Metal/MTLComputePassDescriptor.d.ts +3 -0
- package/dist/Metal/MTLComputePassSampleBufferAttachmentDescriptor.d.ts +3 -0
- package/dist/Metal/MTLComputePipelineDescriptor.d.ts +3 -0
- package/dist/Metal/MTLCounterSampleBufferDescriptor.d.ts +3 -0
- package/dist/Metal/MTLDepthStencilDescriptor.d.ts +3 -0
- package/dist/Metal/MTLFunctionConstantValues.d.ts +3 -0
- package/dist/Metal/MTLFunctionDescriptor.d.ts +3 -0
- package/dist/Metal/MTLFunctionStitchingFunctionNode.d.ts +3 -0
- package/dist/Metal/MTLFunctionStitchingGraph.d.ts +3 -0
- package/dist/Metal/MTLFunctionStitchingInputNode.d.ts +3 -0
- package/dist/Metal/MTLHeapDescriptor.d.ts +3 -0
- package/dist/Metal/MTLIOCommandQueueDescriptor.d.ts +3 -0
- package/dist/Metal/MTLIndirectCommandBufferDescriptor.d.ts +3 -0
- package/dist/Metal/MTLIntersectionFunctionDescriptor.d.ts +3 -0
- package/dist/Metal/MTLIntersectionFunctionTableDescriptor.d.ts +3 -0
- package/dist/Metal/MTLLinkedFunctions.d.ts +3 -0
- package/dist/Metal/MTLLogStateDescriptor.d.ts +3 -0
- package/dist/Metal/MTLLogicalToPhysicalColorAttachmentMap.d.ts +3 -0
- package/dist/Metal/MTLMeshRenderPipelineDescriptor.d.ts +3 -0
- package/dist/Metal/MTLPipelineBufferDescriptor.d.ts +3 -0
- package/dist/Metal/MTLRasterizationRateLayerDescriptor.d.ts +3 -0
- package/dist/Metal/MTLRasterizationRateMapDescriptor.d.ts +3 -0
- package/dist/Metal/MTLRenderPassAttachmentDescriptor.d.ts +3 -0
- package/dist/Metal/MTLRenderPassDescriptor.d.ts +3 -0
- package/dist/Metal/MTLRenderPassSampleBufferAttachmentDescriptor.d.ts +3 -0
- package/dist/Metal/MTLRenderPipelineColorAttachmentDescriptor.d.ts +3 -0
- package/dist/Metal/MTLRenderPipelineDescriptor.d.ts +3 -0
- package/dist/Metal/MTLRenderPipelineFunctionsDescriptor.d.ts +3 -0
- package/dist/Metal/MTLResidencySetDescriptor.d.ts +3 -0
- package/dist/Metal/MTLResourceStatePassDescriptor.d.ts +3 -0
- package/dist/Metal/MTLResourceStatePassSampleBufferAttachmentDescriptor.d.ts +3 -0
- package/dist/Metal/MTLResourceViewPoolDescriptor.d.ts +3 -0
- package/dist/Metal/MTLSamplerDescriptor.d.ts +3 -0
- package/dist/Metal/MTLStageInputOutputDescriptor.d.ts +3 -0
- package/dist/Metal/MTLStencilDescriptor.d.ts +3 -0
- package/dist/Metal/MTLStitchedLibraryDescriptor.d.ts +3 -0
- package/dist/Metal/MTLTensorDescriptor.d.ts +3 -0
- package/dist/Metal/MTLTextureDescriptor.d.ts +3 -0
- package/dist/Metal/MTLTextureViewDescriptor.d.ts +3 -0
- package/dist/Metal/MTLTileRenderPipelineColorAttachmentDescriptor.d.ts +3 -0
- package/dist/Metal/MTLTileRenderPipelineDescriptor.d.ts +3 -0
- package/dist/Metal/MTLVertexAttributeDescriptor.d.ts +3 -0
- package/dist/Metal/MTLVertexBufferLayoutDescriptor.d.ts +3 -0
- package/dist/Metal/MTLVertexDescriptor.d.ts +3 -0
- package/dist/Metal/MTLVisibleFunctionTableDescriptor.d.ts +3 -0
- package/dist/Metal/functions.d.ts +14 -0
- package/dist/Metal/functions.js +26 -0
- package/dist/Metal/index.d.ts +1 -0
- package/dist/Metal/index.js +1 -0
- package/dist/MetalFX/MTLFXFrameInterpolatorDescriptor.d.ts +3 -0
- package/dist/MetalFX/MTLFXSpatialScalerDescriptor.d.ts +3 -0
- package/dist/MetalFX/MTLFXTemporalDenoisedScalerDescriptor.d.ts +3 -0
- package/dist/MetalFX/MTLFXTemporalScalerDescriptor.d.ts +3 -0
- package/dist/MetalKit/functions.d.ts +11 -0
- package/dist/MetalKit/functions.js +20 -0
- package/dist/MetalKit/index.d.ts +1 -0
- package/dist/MetalKit/index.js +1 -0
- package/dist/MetalPerformanceShaders/functions.d.ts +7 -0
- package/dist/MetalPerformanceShaders/functions.js +14 -0
- package/dist/MetalPerformanceShaders/index.d.ts +1 -0
- package/dist/MetalPerformanceShaders/index.js +1 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphCompilationDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphConvolution2DOpDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphConvolution3DOpDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphCreateSparseOpDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphDepthwiseConvolution2DOpDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphDepthwiseConvolution3DOpDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphExecutableExecutionDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphFFTDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphGRUDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphImToColOpDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphLSTMDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphOperation.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphPooling2DOpDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphPooling4DOpDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphRandomOpDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphSingleGateRNNDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphStencilOpDescriptor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphTensor.d.ts +3 -0
- package/dist/MetalPerformanceShadersGraph/MPSGraphType.d.ts +3 -0
- package/dist/ModelIO/MDLAnimatedValue.d.ts +3 -0
- package/dist/ModelIO/MDLAnimationBindComponent.d.ts +2 -1
- package/dist/ModelIO/MDLAsset.d.ts +2 -1
- package/dist/ModelIO/MDLMaterialProperty.d.ts +3 -0
- package/dist/ModelIO/MDLMatrix4x4Array.d.ts +3 -0
- package/dist/ModelIO/MDLObject.d.ts +2 -2
- package/dist/ModelIO/MDLPackedJointAnimation.d.ts +2 -1
- package/dist/ModelIO/MDLSkeleton.d.ts +3 -0
- package/dist/ModelIO/MDLTransform.d.ts +2 -1
- package/dist/ModelIO/MDLTransformStack.d.ts +3 -0
- package/dist/ModelIO/MDLVertexAttribute.d.ts +3 -0
- package/dist/ModelIO/MDLVertexBufferLayout.d.ts +3 -0
- package/dist/ModelIO/MDLVertexDescriptor.d.ts +3 -0
- package/dist/MultipeerConnectivity/MCPeerID.d.ts +2 -1
- package/dist/NaturalLanguage/NLModelConfiguration.d.ts +2 -1
- package/dist/NearbyInteraction/NIAlgorithmConvergence.d.ts +2 -1
- package/dist/NearbyInteraction/NIConfiguration.d.ts +2 -1
- package/dist/NearbyInteraction/NIDLTDOAMeasurement.d.ts +2 -1
- package/dist/NearbyInteraction/NIDiscoveryToken.d.ts +2 -1
- package/dist/NearbyInteraction/NINearbyObject.d.ts +2 -1
- package/dist/NearbyInteraction/functions.d.ts +3 -0
- package/dist/NearbyInteraction/functions.js +5 -0
- package/dist/NearbyInteraction/index.d.ts +1 -0
- package/dist/NearbyInteraction/index.js +1 -0
- package/dist/NetworkExtension/NEAppRule.d.ts +2 -1
- package/dist/NetworkExtension/NEDNSSettings.d.ts +2 -1
- package/dist/NetworkExtension/NEEvaluateConnectionRule.d.ts +2 -1
- package/dist/NetworkExtension/NEFilterBrowserFlow.d.ts +3 -0
- package/dist/NetworkExtension/NEFilterControlVerdict.d.ts +3 -0
- package/dist/NetworkExtension/NEFilterDataVerdict.d.ts +3 -0
- package/dist/NetworkExtension/NEFilterFlow.d.ts +2 -1
- package/dist/NetworkExtension/NEFilterNewFlowVerdict.d.ts +3 -0
- package/dist/NetworkExtension/NEFilterProviderConfiguration.d.ts +2 -1
- package/dist/NetworkExtension/NEFilterRemediationVerdict.d.ts +3 -0
- package/dist/NetworkExtension/NEFilterReport.d.ts +2 -1
- package/dist/NetworkExtension/NEFilterRule.d.ts +2 -1
- package/dist/NetworkExtension/NEFilterSettings.d.ts +2 -1
- package/dist/NetworkExtension/NEFilterSocketFlow.d.ts +3 -0
- package/dist/NetworkExtension/NEFilterVerdict.d.ts +2 -1
- package/dist/NetworkExtension/NEFlowMetaData.d.ts +2 -1
- package/dist/NetworkExtension/NEHotspotConfiguration.d.ts +2 -1
- package/dist/NetworkExtension/NEHotspotEAPSettings.d.ts +2 -1
- package/dist/NetworkExtension/NEHotspotHS20Settings.d.ts +2 -1
- package/dist/NetworkExtension/NEIPv4Route.d.ts +2 -1
- package/dist/NetworkExtension/NEIPv4Settings.d.ts +2 -1
- package/dist/NetworkExtension/NEIPv6Route.d.ts +2 -1
- package/dist/NetworkExtension/NEIPv6Settings.d.ts +2 -1
- package/dist/NetworkExtension/NENetworkRule.d.ts +2 -1
- package/dist/NetworkExtension/NEOnDemandRule.d.ts +2 -1
- package/dist/NetworkExtension/NEPacket.d.ts +2 -1
- package/dist/NetworkExtension/NEPrivateLTENetwork.d.ts +2 -1
- package/dist/NetworkExtension/NEProxyServer.d.ts +2 -1
- package/dist/NetworkExtension/NEProxySettings.d.ts +2 -1
- package/dist/NetworkExtension/NERelay.d.ts +2 -1
- package/dist/NetworkExtension/NETunnelNetworkSettings.d.ts +2 -1
- package/dist/NetworkExtension/NEVPNIKEv2PPKConfiguration.d.ts +3 -0
- package/dist/NetworkExtension/NEVPNIKEv2SecurityAssociationParameters.d.ts +2 -1
- package/dist/NetworkExtension/NEVPNProtocol.d.ts +2 -1
- package/dist/NetworkExtension/NWEndpoint.d.ts +2 -1
- package/dist/OSAKit/OSAScript.d.ts +3 -0
- package/dist/OpenDirectory/ODQuery.d.ts +3 -0
- package/dist/PDFKit/PDFAction.d.ts +3 -0
- package/dist/PDFKit/PDFActionGoTo.d.ts +3 -0
- package/dist/PDFKit/PDFActionNamed.d.ts +3 -0
- package/dist/PDFKit/PDFActionRemoteGoTo.d.ts +3 -0
- package/dist/PDFKit/PDFActionResetForm.d.ts +3 -0
- package/dist/PDFKit/PDFActionURL.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotation.d.ts +2 -1
- package/dist/PDFKit/PDFAnnotationButtonWidget.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationChoiceWidget.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationCircle.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationFreeText.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationInk.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationLine.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationLink.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationMarkup.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationPopup.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationSquare.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationStamp.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationText.d.ts +3 -0
- package/dist/PDFKit/PDFAnnotationTextWidget.d.ts +3 -0
- package/dist/PDFKit/PDFAppearanceCharacteristics.d.ts +3 -0
- package/dist/PDFKit/PDFBorder.d.ts +2 -1
- package/dist/PDFKit/PDFDestination.d.ts +3 -0
- package/dist/PDFKit/PDFDocument.d.ts +3 -0
- package/dist/PDFKit/PDFPage.d.ts +3 -0
- package/dist/PDFKit/PDFSelection.d.ts +3 -0
- package/dist/PHASE/PHASEObject.d.ts +3 -0
- package/dist/PHASE/PHASEShape.d.ts +3 -0
- package/dist/ParavirtualizedGraphics/functions.d.ts +7 -0
- package/dist/ParavirtualizedGraphics/functions.js +14 -0
- package/dist/ParavirtualizedGraphics/index.d.ts +1 -0
- package/dist/ParavirtualizedGraphics/index.js +1 -0
- package/dist/PassKit/PKDateComponentsRange.d.ts +2 -1
- package/dist/PassKit/PKIdentityElement.d.ts +3 -0
- package/dist/PassKit/PKIdentityIntentToStore.d.ts +3 -0
- package/dist/PencilKit/PKDrawing.d.ts +2 -1
- package/dist/PencilKit/PKFloatRange.d.ts +3 -0
- package/dist/PencilKit/PKInk.d.ts +3 -0
- package/dist/PencilKit/PKStroke.d.ts +3 -0
- package/dist/PencilKit/PKStrokePath.d.ts +3 -0
- package/dist/PencilKit/PKStrokePoint.d.ts +3 -0
- package/dist/PencilKit/PKTool.d.ts +3 -0
- package/dist/PencilKit/PKToolPickerItem.d.ts +3 -0
- package/dist/Photos/PHAssetResourceCreationOptions.d.ts +3 -0
- package/dist/Photos/PHAssetResourceRequestOptions.d.ts +3 -0
- package/dist/Photos/PHCloudIdentifier.d.ts +2 -1
- package/dist/Photos/PHFetchOptions.d.ts +3 -0
- package/dist/Photos/PHFetchResult.d.ts +2 -1
- package/dist/Photos/PHImageRequestOptions.d.ts +3 -0
- package/dist/Photos/PHLivePhoto.d.ts +2 -1
- package/dist/Photos/PHLivePhotoRequestOptions.d.ts +3 -0
- package/dist/Photos/PHObject.d.ts +3 -0
- package/dist/Photos/PHPersistentChangeToken.d.ts +2 -1
- package/dist/Photos/PHVideoRequestOptions.d.ts +3 -0
- package/dist/PhotosUI/PHPickerConfiguration.d.ts +3 -0
- package/dist/PhotosUI/PHPickerFilter.d.ts +3 -0
- package/dist/PhotosUI/PHPickerUpdateConfiguration.d.ts +3 -0
- package/dist/QuartzCore/CAAnimation.d.ts +2 -1
- package/dist/QuartzCore/CAEDRMetadata.d.ts +2 -1
- package/dist/QuartzCore/functions.d.ts +19 -0
- package/dist/QuartzCore/functions.js +50 -0
- package/dist/QuartzCore/index.d.ts +1 -0
- package/dist/QuartzCore/index.js +1 -0
- package/dist/QuickLookThumbnailing/QLThumbnailGenerationRequest.d.ts +2 -1
- package/dist/SafariServices/SFSafariPage.d.ts +2 -1
- package/dist/SafariServices/SFSafariTab.d.ts +2 -1
- package/dist/SafariServices/SFSafariToolbarItem.d.ts +2 -1
- package/dist/SafariServices/SFSafariWindow.d.ts +2 -1
- package/dist/SafetyKit/SACrashDetectionEvent.d.ts +2 -1
- package/dist/SceneKit/SCNAction.d.ts +2 -1
- package/dist/SceneKit/SCNAnimation.d.ts +2 -1
- package/dist/SceneKit/SCNAnimationPlayer.d.ts +2 -1
- package/dist/SceneKit/SCNAudioSource.d.ts +2 -1
- package/dist/SceneKit/SCNCamera.d.ts +2 -1
- package/dist/SceneKit/SCNConstraint.d.ts +2 -1
- package/dist/SceneKit/SCNGeometry.d.ts +2 -1
- package/dist/SceneKit/SCNGeometryTessellator.d.ts +2 -1
- package/dist/SceneKit/SCNLevelOfDetail.d.ts +2 -1
- package/dist/SceneKit/SCNLight.d.ts +2 -1
- package/dist/SceneKit/SCNMaterial.d.ts +2 -1
- package/dist/SceneKit/SCNNode.d.ts +2 -1
- package/dist/SceneKit/SCNParticlePropertyController.d.ts +2 -1
- package/dist/SceneKit/SCNParticleSystem.d.ts +2 -1
- package/dist/SceneKit/SCNPhysicsBody.d.ts +2 -1
- package/dist/SceneKit/SCNPhysicsField.d.ts +2 -1
- package/dist/SceneKit/SCNPhysicsShape.d.ts +2 -1
- package/dist/SceneKit/SCNPhysicsVehicleWheel.d.ts +2 -1
- package/dist/SceneKit/SCNProgram.d.ts +2 -1
- package/dist/SceneKit/SCNTechnique.d.ts +1 -1
- package/dist/SceneKit/functions.d.ts +17 -0
- package/dist/SceneKit/functions.js +38 -0
- package/dist/SceneKit/index.d.ts +1 -0
- package/dist/SceneKit/index.js +1 -0
- package/dist/SensorKit/SRAcousticSettings.d.ts +2 -1
- package/dist/SensorKit/SRAcousticSettingsAccessibility.d.ts +2 -1
- package/dist/SensorKit/SRAcousticSettingsAccessibilityBackgroundSounds.d.ts +2 -1
- package/dist/SensorKit/SRAcousticSettingsAccessibilityHeadphoneAccommodations.d.ts +2 -1
- package/dist/SensorKit/SRAcousticSettingsMusicEQ.d.ts +2 -1
- package/dist/SensorKit/SRAudioLevel.d.ts +2 -1
- package/dist/SensorKit/SRDevice.d.ts +2 -1
- package/dist/SensorKit/SRElectrocardiogramData.d.ts +2 -1
- package/dist/SensorKit/SRElectrocardiogramSample.d.ts +2 -1
- package/dist/SensorKit/SRElectrocardiogramSession.d.ts +2 -1
- package/dist/SensorKit/SRFaceMetrics.d.ts +2 -1
- package/dist/SensorKit/SRFaceMetricsExpression.d.ts +2 -1
- package/dist/SensorKit/SRFetchResult.d.ts +3 -0
- package/dist/SensorKit/SRMediaEvent.d.ts +2 -1
- package/dist/SensorKit/SRPhotoplethysmogramAccelerometerSample.d.ts +2 -1
- package/dist/SensorKit/SRPhotoplethysmogramOpticalSample.d.ts +2 -1
- package/dist/SensorKit/SRPhotoplethysmogramSample.d.ts +2 -1
- package/dist/SensorKit/SRSleepSession.d.ts +2 -1
- package/dist/SensorKit/SRSpeechExpression.d.ts +2 -1
- package/dist/SensorKit/SRSpeechMetrics.d.ts +2 -1
- package/dist/SensorKit/SRSupplementalCategory.d.ts +2 -1
- package/dist/SensorKit/SRWristTemperature.d.ts +2 -1
- package/dist/SensorKit/SRWristTemperatureSession.d.ts +2 -1
- package/dist/SensorKit/functions.d.ts +4 -0
- package/dist/SensorKit/functions.js +14 -0
- package/dist/SensorKit/index.d.ts +1 -0
- package/dist/SensorKit/index.js +1 -0
- package/dist/ServiceManagement/functions.d.ts +7 -0
- package/dist/ServiceManagement/functions.js +20 -0
- package/dist/ServiceManagement/index.d.ts +1 -0
- package/dist/ServiceManagement/index.js +1 -0
- package/dist/SharedWithYou/SWCollaborationHighlight.d.ts +3 -0
- package/dist/SharedWithYou/SWHighlight.d.ts +1 -1
- package/dist/SharedWithYou/SWHighlightMembershipEvent.d.ts +3 -0
- package/dist/SharedWithYou/SWHighlightMentionEvent.d.ts +3 -0
- package/dist/SharedWithYou/SWHighlightPersistenceEvent.d.ts +3 -0
- package/dist/SharedWithYouCore/SWAction.d.ts +2 -1
- package/dist/SharedWithYouCore/SWCollaborationMetadata.d.ts +3 -1
- package/dist/SharedWithYouCore/SWCollaborationOption.d.ts +2 -1
- package/dist/SharedWithYouCore/SWCollaborationOptionsGroup.d.ts +2 -1
- package/dist/SharedWithYouCore/SWCollaborationShareOptions.d.ts +3 -0
- package/dist/SharedWithYouCore/SWPersonIdentity.d.ts +2 -1
- package/dist/SharedWithYouCore/SWPersonIdentityProof.d.ts +2 -1
- package/dist/SharedWithYouCore/SWStartCollaborationAction.d.ts +3 -0
- package/dist/SharedWithYouCore/SWUpdateCollaborationParticipantsAction.d.ts +3 -0
- package/dist/ShazamKit/SHMediaItem.d.ts +2 -1
- package/dist/ShazamKit/SHRange.d.ts +2 -1
- package/dist/ShazamKit/SHSignature.d.ts +2 -1
- package/dist/Speech/SFAcousticFeature.d.ts +2 -1
- package/dist/Speech/SFSpeechLanguageModelConfiguration.d.ts +2 -1
- package/dist/Speech/SFSpeechRecognitionMetadata.d.ts +2 -1
- package/dist/Speech/SFSpeechRecognitionResult.d.ts +2 -1
- package/dist/Speech/SFTranscription.d.ts +2 -1
- package/dist/Speech/SFTranscriptionSegment.d.ts +2 -1
- package/dist/Speech/SFVoiceAnalytics.d.ts +2 -1
- package/dist/SpriteKit/SKAction.d.ts +2 -1
- package/dist/SpriteKit/SKConstraint.d.ts +2 -1
- package/dist/SpriteKit/SKKeyframeSequence.d.ts +3 -0
- package/dist/SpriteKit/SKNode.d.ts +3 -0
- package/dist/SpriteKit/SKPhysicsBody.d.ts +2 -1
- package/dist/SpriteKit/SKRange.d.ts +2 -1
- package/dist/SpriteKit/SKRegion.d.ts +2 -1
- package/dist/SpriteKit/SKShader.d.ts +2 -1
- package/dist/SpriteKit/SKTexture.d.ts +2 -1
- package/dist/SpriteKit/SKTileDefinition.d.ts +2 -1
- package/dist/SpriteKit/SKTileGroup.d.ts +2 -1
- package/dist/SpriteKit/SKTileGroupRule.d.ts +2 -1
- package/dist/SpriteKit/SKTileMapNode.d.ts +3 -0
- package/dist/SpriteKit/SKTileSet.d.ts +2 -1
- package/dist/SpriteKit/SKTransition.d.ts +3 -0
- package/dist/SpriteKit/SKUniform.d.ts +2 -1
- package/dist/SpriteKit/SKWarpGeometry.d.ts +2 -1
- package/dist/StoreKit/SKPayment.d.ts +4 -0
- package/dist/StoreKit/functions.d.ts +1 -0
- package/dist/StoreKit/functions.js +5 -0
- package/dist/StoreKit/index.d.ts +1 -0
- package/dist/StoreKit/index.js +1 -0
- package/dist/Symbols/NSSymbolContentTransition.d.ts +2 -1
- package/dist/Symbols/NSSymbolEffect.d.ts +2 -1
- package/dist/Symbols/NSSymbolEffectOptions.d.ts +2 -1
- package/dist/Symbols/NSSymbolEffectOptionsRepeatBehavior.d.ts +2 -1
- package/dist/UniformTypeIdentifiers/UTType.d.ts +2 -1
- package/dist/UserNotifications/UNNotification.d.ts +2 -1
- package/dist/UserNotifications/UNNotificationAction.d.ts +2 -1
- package/dist/UserNotifications/UNNotificationActionIcon.d.ts +2 -1
- package/dist/UserNotifications/UNNotificationAttachment.d.ts +2 -1
- package/dist/UserNotifications/UNNotificationCategory.d.ts +2 -1
- package/dist/UserNotifications/UNNotificationContent.d.ts +3 -1
- package/dist/UserNotifications/UNNotificationRequest.d.ts +2 -1
- package/dist/UserNotifications/UNNotificationResponse.d.ts +2 -1
- package/dist/UserNotifications/UNNotificationSettings.d.ts +2 -1
- package/dist/UserNotifications/UNNotificationSound.d.ts +2 -1
- package/dist/UserNotifications/UNNotificationTrigger.d.ts +2 -1
- package/dist/VideoToolbox/functions.d.ts +81 -0
- package/dist/VideoToolbox/functions.js +236 -0
- package/dist/VideoToolbox/index.d.ts +1 -0
- package/dist/VideoToolbox/index.js +1 -0
- package/dist/Virtualization/VZAudioDeviceConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZBootLoader.d.ts +3 -0
- package/dist/Virtualization/VZConsoleDeviceConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZConsolePortConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZDirectorySharingDeviceConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZEntropyDeviceConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZGenericMachineIdentifier.d.ts +3 -0
- package/dist/Virtualization/VZGraphicsDeviceConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZGraphicsDisplayConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZKeyboardConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZMACAddress.d.ts +3 -0
- package/dist/Virtualization/VZMacHardwareModel.d.ts +3 -0
- package/dist/Virtualization/VZMacMachineIdentifier.d.ts +3 -0
- package/dist/Virtualization/VZMemoryBalloonDeviceConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZNetworkDeviceConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZPlatformConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZPointingDeviceConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZSerialPortConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZSocketDeviceConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZStorageDeviceConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZUSBControllerConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZVirtioConsolePortConfigurationArray.d.ts +3 -0
- package/dist/Virtualization/VZVirtioSoundDeviceStreamConfiguration.d.ts +3 -0
- package/dist/Virtualization/VZVirtualMachineConfiguration.d.ts +3 -0
- package/dist/Vision/VNCircle.d.ts +2 -1
- package/dist/Vision/VNContour.d.ts +2 -1
- package/dist/Vision/VNFaceLandmarkRegion.d.ts +2 -1
- package/dist/Vision/VNFaceLandmarks.d.ts +2 -1
- package/dist/Vision/VNObservation.d.ts +2 -1
- package/dist/Vision/VNPoint.d.ts +2 -1
- package/dist/Vision/VNPoint3D.d.ts +2 -1
- package/dist/Vision/VNRecognizedText.d.ts +2 -1
- package/dist/Vision/VNRequest.d.ts +3 -0
- package/dist/Vision/VNVector.d.ts +2 -1
- package/dist/Vision/VNVideoProcessorCadence.d.ts +3 -0
- package/dist/Vision/VNVideoProcessorRequestProcessingOptions.d.ts +3 -0
- package/dist/Vision/functions.d.ts +16 -0
- package/dist/Vision/functions.js +38 -0
- package/dist/Vision/index.d.ts +1 -0
- package/dist/Vision/index.js +1 -0
- package/dist/WebKit/DOMNode.d.ts +3 -0
- package/dist/WebKit/DOMObject.d.ts +3 -0
- package/dist/WebKit/WKFindConfiguration.d.ts +3 -0
- package/dist/WebKit/WKFindResult.d.ts +3 -0
- package/dist/WebKit/WKFrameInfo.d.ts +3 -0
- package/dist/WebKit/WKPDFConfiguration.d.ts +3 -0
- package/dist/WebKit/WKSnapshotConfiguration.d.ts +3 -0
- package/dist/WebKit/WKUserScript.d.ts +3 -0
- package/dist/WebKit/WKWebExtensionControllerConfiguration.d.ts +2 -1
- package/dist/WebKit/WKWebExtensionMatchPattern.d.ts +2 -1
- package/dist/WebKit/WKWebViewConfiguration.d.ts +2 -1
- package/dist/WebKit/WebArchive.d.ts +2 -1
- package/dist/WebKit/WebHistoryItem.d.ts +3 -0
- package/dist/WebKit/WebResource.d.ts +2 -1
- package/dist/WebKit/WebUndefined.d.ts +2 -1
- package/dist/bind.d.ts +1 -1
- package/dist/helpers.d.ts +4 -1
- package/dist/helpers.js +19 -1
- package/dist/index.d.ts +0 -1
- package/generator/ast-parser.ts +1368 -0
- package/generator/clang.ts +167 -0
- package/generator/custom.ts +936 -0
- package/generator/discover.ts +111 -0
- package/generator/emitter.ts +2026 -0
- package/generator/frameworks.ts +135 -0
- package/generator/index.ts +1334 -0
- package/generator/parse-worker.ts +263 -0
- package/generator/resolve-strings.ts +121 -0
- package/generator/struct-fields.ts +46 -0
- package/generator/templates/bind.ts +100 -0
- package/generator/templates/helpers.ts +70 -0
- package/generator/templates/nsdata.ts +97 -0
- package/generator/templates/osversion.ts +91 -0
- package/generator/type-mapper.ts +615 -0
- package/generator/worker-pool.ts +309 -0
- package/package.json +21 -4
- /package/dist/{data.d.ts → nsdata.d.ts} +0 -0
- /package/dist/{data.js → nsdata.js} +0 -0
|
@@ -0,0 +1,2026 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates TypeScript declaration files from parsed ObjC class data.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import type {
|
|
6
|
+
ObjCClass,
|
|
7
|
+
ObjCMethod,
|
|
8
|
+
ObjCProperty,
|
|
9
|
+
ObjCProtocol,
|
|
10
|
+
ObjCIntegerEnum,
|
|
11
|
+
ObjCStringEnum,
|
|
12
|
+
ObjCStringEnumValue,
|
|
13
|
+
ObjCFunction
|
|
14
|
+
} from "./ast-parser.ts";
|
|
15
|
+
import type { FrameworkConfig } from "./frameworks.ts";
|
|
16
|
+
import {
|
|
17
|
+
selectorToJS,
|
|
18
|
+
mapReturnType,
|
|
19
|
+
mapParamType,
|
|
20
|
+
qualTypeToEncoding,
|
|
21
|
+
STRUCT_TS_TYPES,
|
|
22
|
+
getKnownIntegerEnums,
|
|
23
|
+
getKnownStringEnums
|
|
24
|
+
} from "./type-mapper.ts";
|
|
25
|
+
|
|
26
|
+
const AUTOGEN_HEADER = `// AUTO-GENERATED by objcjs-types generator — DO NOT EDIT`;
|
|
27
|
+
|
|
28
|
+
// --- Cached lookup maps for O(1) entity→framework resolution ---
|
|
29
|
+
// Built lazily on first use, then reused for all subsequent calls.
|
|
30
|
+
let _classFrameworkMap: Map<string, string> | null = null;
|
|
31
|
+
let _protocolFrameworkMap: Map<string, string> | null = null;
|
|
32
|
+
let _enumFrameworkMap: Map<string, string> | null = null;
|
|
33
|
+
|
|
34
|
+
/** Build and cache the class→framework lookup map from the frameworks list. */
|
|
35
|
+
function buildClassFrameworkMap(frameworks: FrameworkConfig[]): Map<string, string> {
|
|
36
|
+
if (_classFrameworkMap) return _classFrameworkMap;
|
|
37
|
+
_classFrameworkMap = new Map();
|
|
38
|
+
for (const fw of frameworks) {
|
|
39
|
+
for (const cls of fw.classes) {
|
|
40
|
+
_classFrameworkMap.set(cls, fw.name);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return _classFrameworkMap;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Build and cache the protocol→framework lookup map from the frameworks list. */
|
|
47
|
+
function buildProtocolFrameworkMap(frameworks: FrameworkConfig[]): Map<string, string> {
|
|
48
|
+
if (_protocolFrameworkMap) return _protocolFrameworkMap;
|
|
49
|
+
_protocolFrameworkMap = new Map();
|
|
50
|
+
for (const fw of frameworks) {
|
|
51
|
+
if (fw.protocols) {
|
|
52
|
+
for (const proto of fw.protocols) {
|
|
53
|
+
_protocolFrameworkMap.set(proto, fw.name);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return _protocolFrameworkMap;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** Build and cache the enum→framework lookup map from the frameworks list. */
|
|
61
|
+
function buildEnumFrameworkMap(frameworks: FrameworkConfig[]): Map<string, string> {
|
|
62
|
+
if (_enumFrameworkMap) return _enumFrameworkMap;
|
|
63
|
+
_enumFrameworkMap = new Map();
|
|
64
|
+
for (const fw of frameworks) {
|
|
65
|
+
for (const name of fw.integerEnums) {
|
|
66
|
+
_enumFrameworkMap.set(name, fw.name);
|
|
67
|
+
}
|
|
68
|
+
for (const name of fw.stringEnums) {
|
|
69
|
+
_enumFrameworkMap.set(name, fw.name);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return _enumFrameworkMap;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Group class names that would collide on a case-insensitive filesystem.
|
|
77
|
+
* Returns a Map from the canonical filename (the name that survives — last in
|
|
78
|
+
* sorted order, since classes are emitted alphabetically and the last write wins)
|
|
79
|
+
* to the list of all class names that share that filename.
|
|
80
|
+
*
|
|
81
|
+
* Only groups with 2+ members represent actual collisions.
|
|
82
|
+
*/
|
|
83
|
+
export function groupCaseCollisions(classNames: string[]): Map<string, string[]> {
|
|
84
|
+
// Group by lowercased name
|
|
85
|
+
const byLower = new Map<string, string[]>();
|
|
86
|
+
for (const name of classNames) {
|
|
87
|
+
const key = name.toLowerCase();
|
|
88
|
+
if (!byLower.has(key)) {
|
|
89
|
+
byLower.set(key, []);
|
|
90
|
+
}
|
|
91
|
+
byLower.get(key)!.push(name);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const result = new Map<string, string[]>();
|
|
95
|
+
for (const group of byLower.values()) {
|
|
96
|
+
if (group.length < 2) continue;
|
|
97
|
+
// Sort so the "canonical" name (last write on disk) is deterministic.
|
|
98
|
+
// Classes are emitted in sorted order, so the last one in sort order is the survivor.
|
|
99
|
+
group.sort();
|
|
100
|
+
const canonical = group[group.length - 1]!;
|
|
101
|
+
result.set(canonical, group);
|
|
102
|
+
}
|
|
103
|
+
return result;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Given an ObjCClass, determine which struct type names it references
|
|
108
|
+
* (for import statements from ../structs/).
|
|
109
|
+
*/
|
|
110
|
+
function collectReferencedStructs(cls: ObjCClass): Set<string> {
|
|
111
|
+
const refs = new Set<string>();
|
|
112
|
+
|
|
113
|
+
function extractStructRefs(typeStr: string): void {
|
|
114
|
+
for (const structName of STRUCT_TS_TYPES) {
|
|
115
|
+
// Match the struct name as a whole word in the mapped type string.
|
|
116
|
+
// Struct types appear as bare names (e.g., "CGRect") or in union (e.g., "CGRect | null").
|
|
117
|
+
if (typeStr === structName || typeStr.startsWith(structName + " ")) {
|
|
118
|
+
refs.add(structName);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const allMethods = [...cls.instanceMethods, ...cls.classMethods];
|
|
124
|
+
for (const method of allMethods) {
|
|
125
|
+
extractStructRefs(mapReturnType(method.returnType, cls.name));
|
|
126
|
+
for (const param of method.parameters) {
|
|
127
|
+
extractStructRefs(mapParamType(param.type, cls.name));
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
for (const prop of cls.properties) {
|
|
131
|
+
extractStructRefs(mapReturnType(prop.type, cls.name));
|
|
132
|
+
// Setter param uses mapParamType, same type
|
|
133
|
+
extractStructRefs(mapParamType(prop.type, cls.name));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return refs;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Given an ObjCClass, determine which other class/protocol names it references
|
|
141
|
+
* (for import statements). Only includes classes/protocols we're generating.
|
|
142
|
+
*/
|
|
143
|
+
function collectReferencedClasses(
|
|
144
|
+
cls: ObjCClass,
|
|
145
|
+
allKnownClasses: Set<string>,
|
|
146
|
+
allKnownProtocols?: Set<string>
|
|
147
|
+
): Set<string> {
|
|
148
|
+
const refs = new Set<string>();
|
|
149
|
+
|
|
150
|
+
// Superclass
|
|
151
|
+
if (cls.superclass && allKnownClasses.has(cls.superclass)) {
|
|
152
|
+
refs.add(cls.superclass);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// Conformed protocols (for the declaration-merging interface line)
|
|
156
|
+
if (allKnownProtocols) {
|
|
157
|
+
for (const protoName of cls.protocols) {
|
|
158
|
+
if (allKnownProtocols.has(protoName)) {
|
|
159
|
+
refs.add(protoName);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function extractClassRefs(typeStr: string): void {
|
|
165
|
+
// Find all _ClassName references that mapType would produce
|
|
166
|
+
const regex = /_(\w+)/g;
|
|
167
|
+
let match;
|
|
168
|
+
while ((match = regex.exec(typeStr)) !== null) {
|
|
169
|
+
const name = match[1]!;
|
|
170
|
+
if (name === cls.name) continue;
|
|
171
|
+
if (allKnownClasses.has(name) || allKnownProtocols?.has(name)) {
|
|
172
|
+
refs.add(name);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Check all method signatures
|
|
178
|
+
const allMethods = [...cls.instanceMethods, ...cls.classMethods];
|
|
179
|
+
for (const method of allMethods) {
|
|
180
|
+
const retType = mapReturnType(method.returnType, cls.name);
|
|
181
|
+
extractClassRefs(retType);
|
|
182
|
+
for (const param of method.parameters) {
|
|
183
|
+
const pType = mapParamType(param.type, cls.name);
|
|
184
|
+
extractClassRefs(pType);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Check properties (both getter return type and setter param type,
|
|
189
|
+
// which may differ due to conformer union expansion)
|
|
190
|
+
for (const prop of cls.properties) {
|
|
191
|
+
extractClassRefs(mapReturnType(prop.type, cls.name));
|
|
192
|
+
extractClassRefs(mapParamType(prop.type, cls.name));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// Remove self-reference
|
|
196
|
+
refs.delete(cls.name);
|
|
197
|
+
|
|
198
|
+
return refs;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Determine which framework a referenced class belongs to.
|
|
203
|
+
*/
|
|
204
|
+
function getClassFramework(className: string, frameworks: FrameworkConfig[]): string | null {
|
|
205
|
+
const map = buildClassFrameworkMap(frameworks);
|
|
206
|
+
return map.get(className) ?? null;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Determine which framework a class or protocol belongs to.
|
|
211
|
+
* Checks classes first, then protocols.
|
|
212
|
+
*/
|
|
213
|
+
function getEntityFramework(name: string, frameworks: FrameworkConfig[]): string | null {
|
|
214
|
+
const classMap = buildClassFrameworkMap(frameworks);
|
|
215
|
+
const classResult = classMap.get(name);
|
|
216
|
+
if (classResult) return classResult;
|
|
217
|
+
const protoMap = buildProtocolFrameworkMap(frameworks);
|
|
218
|
+
return protoMap.get(name) ?? null;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Custom JSDoc annotations for well-known methods that need additional context.
|
|
223
|
+
* Keyed by ObjC selector. These are prepended to any existing description.
|
|
224
|
+
*/
|
|
225
|
+
const METHOD_JSDOC_OVERRIDES: Record<string, string> = {
|
|
226
|
+
retain:
|
|
227
|
+
"**Do not call.** objc-js uses ARC — object lifetimes are managed automatically. Calling `retain()` will leak memory.",
|
|
228
|
+
release:
|
|
229
|
+
"**Do not call.** objc-js uses ARC — object lifetimes are managed automatically. Calling `release()` risks a double-free crash.",
|
|
230
|
+
autorelease:
|
|
231
|
+
"**Do not call.** objc-js uses ARC — object lifetimes are managed automatically. Calling `autorelease()` is unnecessary and unsafe.",
|
|
232
|
+
dealloc:
|
|
233
|
+
"**Do not call.** objc-js uses ARC — objects are deallocated automatically when the JavaScript garbage collector collects the wrapper.",
|
|
234
|
+
retainCount:
|
|
235
|
+
"**Do not use.** objc-js uses ARC — manual reference counting is not applicable. The value returned by this method is meaningless."
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Build a JSDoc comment block from a description and/or deprecation info.
|
|
240
|
+
* Returns an array of lines (without trailing newline) or empty array.
|
|
241
|
+
*/
|
|
242
|
+
function buildJSDoc(opts: {
|
|
243
|
+
description?: string;
|
|
244
|
+
isDeprecated?: boolean;
|
|
245
|
+
deprecationMessage?: string;
|
|
246
|
+
indent?: string;
|
|
247
|
+
selector?: string;
|
|
248
|
+
}): string[] {
|
|
249
|
+
const { description, isDeprecated, deprecationMessage, indent = " ", selector } = opts;
|
|
250
|
+
const override = selector ? METHOD_JSDOC_OVERRIDES[selector] : undefined;
|
|
251
|
+
if (!description && !isDeprecated && !override) return [];
|
|
252
|
+
|
|
253
|
+
const parts: string[] = [];
|
|
254
|
+
if (override) {
|
|
255
|
+
parts.push(override);
|
|
256
|
+
}
|
|
257
|
+
if (description) {
|
|
258
|
+
// Strip any embedded "*/" that would prematurely close the JSDoc comment
|
|
259
|
+
parts.push(description.replace(/\*\//g, "").trim());
|
|
260
|
+
}
|
|
261
|
+
if (isDeprecated) {
|
|
262
|
+
parts.push(deprecationMessage ? `@deprecated ${deprecationMessage}` : "@deprecated");
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// Single-line JSDoc for short content
|
|
266
|
+
if (parts.length === 1 && parts[0]!.length < 80) {
|
|
267
|
+
return [`${indent}/** ${parts[0]} */`];
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// Multi-line JSDoc
|
|
271
|
+
const lines: string[] = [];
|
|
272
|
+
lines.push(`${indent}/**`);
|
|
273
|
+
for (let i = 0; i < parts.length; i++) {
|
|
274
|
+
if (i > 0 && parts[i - 1] !== "" && !parts[i]!.startsWith("@")) {
|
|
275
|
+
lines.push(`${indent} *`);
|
|
276
|
+
}
|
|
277
|
+
lines.push(`${indent} * ${parts[i]}`);
|
|
278
|
+
}
|
|
279
|
+
lines.push(`${indent} */`);
|
|
280
|
+
return lines;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Generate the method signature string for a single method.
|
|
285
|
+
*/
|
|
286
|
+
function emitMethodSignature(method: ObjCMethod, containingClass: string): string | null {
|
|
287
|
+
const jsName = selectorToJS(method.selector);
|
|
288
|
+
const returnType = mapReturnType(method.returnType, containingClass);
|
|
289
|
+
|
|
290
|
+
// Build parameter list (with deduplication for repeated names)
|
|
291
|
+
const params: string[] = [];
|
|
292
|
+
const seenNames = new Map<string, number>();
|
|
293
|
+
for (const param of method.parameters) {
|
|
294
|
+
const tsType = mapParamType(param.type, containingClass);
|
|
295
|
+
// Sanitize param name (avoid TS reserved words)
|
|
296
|
+
let safeName = sanitizeParamName(param.name);
|
|
297
|
+
// Deduplicate: append numeric suffix for repeated parameter names
|
|
298
|
+
const prev = seenNames.get(safeName) ?? 0;
|
|
299
|
+
seenNames.set(safeName, prev + 1);
|
|
300
|
+
if (prev > 0) {
|
|
301
|
+
safeName = `${safeName}${prev + 1}`;
|
|
302
|
+
}
|
|
303
|
+
params.push(`${safeName}: ${tsType}`);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
const prefix = method.isClassMethod ? "static " : "";
|
|
307
|
+
const jsdoc = buildJSDoc({
|
|
308
|
+
description: method.description,
|
|
309
|
+
isDeprecated: method.isDeprecated,
|
|
310
|
+
deprecationMessage: method.deprecationMessage,
|
|
311
|
+
selector: method.selector
|
|
312
|
+
});
|
|
313
|
+
const jsdocStr = jsdoc.length > 0 ? jsdoc.join("\n") + "\n" : "";
|
|
314
|
+
return `${jsdocStr} ${prefix}${jsName}(${params.join(", ")}): ${returnType};`;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
const TS_RESERVED = new Set([
|
|
318
|
+
"break",
|
|
319
|
+
"case",
|
|
320
|
+
"catch",
|
|
321
|
+
"continue",
|
|
322
|
+
"debugger",
|
|
323
|
+
"default",
|
|
324
|
+
"delete",
|
|
325
|
+
"do",
|
|
326
|
+
"else",
|
|
327
|
+
"finally",
|
|
328
|
+
"for",
|
|
329
|
+
"function",
|
|
330
|
+
"if",
|
|
331
|
+
"in",
|
|
332
|
+
"instanceof",
|
|
333
|
+
"new",
|
|
334
|
+
"return",
|
|
335
|
+
"switch",
|
|
336
|
+
"this",
|
|
337
|
+
"throw",
|
|
338
|
+
"try",
|
|
339
|
+
"typeof",
|
|
340
|
+
"var",
|
|
341
|
+
"void",
|
|
342
|
+
"while",
|
|
343
|
+
"with",
|
|
344
|
+
"class",
|
|
345
|
+
"const",
|
|
346
|
+
"enum",
|
|
347
|
+
"export",
|
|
348
|
+
"extends",
|
|
349
|
+
"import",
|
|
350
|
+
"super",
|
|
351
|
+
"implements",
|
|
352
|
+
"interface",
|
|
353
|
+
"let",
|
|
354
|
+
"package",
|
|
355
|
+
"private",
|
|
356
|
+
"protected",
|
|
357
|
+
"public",
|
|
358
|
+
"static",
|
|
359
|
+
"yield",
|
|
360
|
+
"object",
|
|
361
|
+
"string",
|
|
362
|
+
"number",
|
|
363
|
+
"boolean",
|
|
364
|
+
"symbol",
|
|
365
|
+
"any",
|
|
366
|
+
"never",
|
|
367
|
+
"unknown",
|
|
368
|
+
// Not keywords, but cannot be used as parameter names in strict mode (modules)
|
|
369
|
+
"arguments",
|
|
370
|
+
"eval"
|
|
371
|
+
]);
|
|
372
|
+
|
|
373
|
+
export function sanitizeParamName(name: string): string {
|
|
374
|
+
if (TS_RESERVED.has(name)) return `${name}_`;
|
|
375
|
+
if (!name || /^\d/.test(name)) return `arg`;
|
|
376
|
+
return name;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Resolve a class/protocol name to its on-disk filename stem.
|
|
381
|
+
* For case-colliding classes, this returns the canonical name (the file that
|
|
382
|
+
* contains all colliding classes). For everything else, returns the name itself.
|
|
383
|
+
*/
|
|
384
|
+
function resolveFileName(name: string, classToFile?: Map<string, string>): string {
|
|
385
|
+
return classToFile?.get(name) ?? name;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Emit import statements for a set of referenced classes/protocols, grouped by framework.
|
|
390
|
+
*/
|
|
391
|
+
function emitImports(
|
|
392
|
+
refs: Set<string>,
|
|
393
|
+
currentFramework: FrameworkConfig,
|
|
394
|
+
allFrameworks: FrameworkConfig[],
|
|
395
|
+
classToFile?: Map<string, string>
|
|
396
|
+
): string[] {
|
|
397
|
+
const lines: string[] = [];
|
|
398
|
+
|
|
399
|
+
// Group refs by framework
|
|
400
|
+
const importsByFramework = new Map<string, string[]>();
|
|
401
|
+
for (const refClass of refs) {
|
|
402
|
+
const fw = getEntityFramework(refClass, allFrameworks);
|
|
403
|
+
if (!fw) continue;
|
|
404
|
+
if (!importsByFramework.has(fw)) {
|
|
405
|
+
importsByFramework.set(fw, []);
|
|
406
|
+
}
|
|
407
|
+
importsByFramework.get(fw)!.push(refClass);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
// When multiple classes are imported from the same file (because they were merged
|
|
411
|
+
// due to case collisions), combine them into a single import statement.
|
|
412
|
+
for (const [fwName, classes] of importsByFramework) {
|
|
413
|
+
classes.sort();
|
|
414
|
+
|
|
415
|
+
// Group classes by their resolved filename
|
|
416
|
+
const byFile = new Map<string, string[]>();
|
|
417
|
+
for (const refClass of classes) {
|
|
418
|
+
const fileName = resolveFileName(refClass, classToFile);
|
|
419
|
+
if (!byFile.has(fileName)) {
|
|
420
|
+
byFile.set(fileName, []);
|
|
421
|
+
}
|
|
422
|
+
byFile.get(fileName)!.push(refClass);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
for (const [fileName, names] of byFile) {
|
|
426
|
+
const specifiers = names.map((n) => `_${n}`).join(", ");
|
|
427
|
+
if (fwName === currentFramework.name) {
|
|
428
|
+
lines.push(`import type { ${specifiers} } from "./${fileName}.js";`);
|
|
429
|
+
} else {
|
|
430
|
+
lines.push(`import type { ${specifiers} } from "../${fwName}/${fileName}.js";`);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
return lines;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Cache for getMergedProtocols — avoids recomputing the same class's merged
|
|
440
|
+
* protocol set when multiple subclasses reference the same ancestor.
|
|
441
|
+
*/
|
|
442
|
+
const _mergedProtocolsCache = new Map<string, Set<string>>();
|
|
443
|
+
|
|
444
|
+
/** Reset the merged protocols cache (call between generation runs). */
|
|
445
|
+
export function resetMergedProtocolsCache(): void {
|
|
446
|
+
_mergedProtocolsCache.clear();
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Determine which of a class's declared protocols can be safely merged via
|
|
451
|
+
* TypeScript declaration merging without causing type conflicts.
|
|
452
|
+
*
|
|
453
|
+
* A protocol conflicts if any of its methods/properties (including those
|
|
454
|
+
* inherited through extended protocols) have incompatible signatures with
|
|
455
|
+
* what the class inherits from its superclass chain + the protocols
|
|
456
|
+
* already merged onto ancestor classes.
|
|
457
|
+
*
|
|
458
|
+
* Returns the set of protocol names that are conflict-free and can be
|
|
459
|
+
* included in the `export interface _ClassName extends ...` merge line.
|
|
460
|
+
*/
|
|
461
|
+
function getMergedProtocols(
|
|
462
|
+
cls: ObjCClass,
|
|
463
|
+
allParsedClasses: Map<string, ObjCClass>,
|
|
464
|
+
allParsedProtocols: Map<string, ObjCProtocol>,
|
|
465
|
+
allKnownProtocols: Set<string>
|
|
466
|
+
): Set<string> {
|
|
467
|
+
if (_mergedProtocolsCache.has(cls.name)) {
|
|
468
|
+
return _mergedProtocolsCache.get(cls.name)!;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
// Build the inherited signature map: what TypeScript sees as the type of this
|
|
472
|
+
// class based on (a) superclass chain methods/properties, and (b) protocols
|
|
473
|
+
// ACTUALLY merged onto ancestor classes.
|
|
474
|
+
interface Sig {
|
|
475
|
+
returnType: string;
|
|
476
|
+
paramTypes: string[];
|
|
477
|
+
/** Whether this signature came from a protocol (optional in TS) vs a class body (non-optional). */
|
|
478
|
+
isOptional: boolean;
|
|
479
|
+
}
|
|
480
|
+
const inherited = new Map<string, Sig>();
|
|
481
|
+
|
|
482
|
+
// Walk the superclass chain (farthest ancestor first, so nearer ancestors
|
|
483
|
+
// override — but we use "first writer wins" so walk order matters: we want
|
|
484
|
+
// to walk from immediate parent upward)
|
|
485
|
+
let current = cls.superclass;
|
|
486
|
+
while (current) {
|
|
487
|
+
const parentCls = allParsedClasses.get(current);
|
|
488
|
+
if (!parentCls) break;
|
|
489
|
+
|
|
490
|
+
// Class's own instance properties (skip class properties — they're static
|
|
491
|
+
// in TS and don't conflict with protocol instance members in declaration merging)
|
|
492
|
+
for (const prop of parentCls.properties) {
|
|
493
|
+
if (prop.isClassProperty) continue;
|
|
494
|
+
if (!inherited.has(prop.name)) {
|
|
495
|
+
inherited.set(prop.name, {
|
|
496
|
+
returnType: mapReturnType(prop.type, parentCls.name),
|
|
497
|
+
paramTypes: [],
|
|
498
|
+
isOptional: false
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
if (!prop.readonly) {
|
|
502
|
+
const setterName = `set${prop.name[0]!.toUpperCase()}${prop.name.slice(1)}$`;
|
|
503
|
+
if (!inherited.has(setterName)) {
|
|
504
|
+
inherited.set(setterName, {
|
|
505
|
+
returnType: "void",
|
|
506
|
+
paramTypes: [mapParamType(prop.type, parentCls.name)],
|
|
507
|
+
isOptional: false
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
// Class's own instance methods (skip class methods — they're static in TS
|
|
514
|
+
// and live on the constructor type, not the instance type, so they can't
|
|
515
|
+
// conflict with protocol interface members in declaration merging)
|
|
516
|
+
for (const method of parentCls.instanceMethods) {
|
|
517
|
+
const jsName = selectorToJS(method.selector);
|
|
518
|
+
if (!inherited.has(jsName)) {
|
|
519
|
+
inherited.set(jsName, {
|
|
520
|
+
returnType: mapReturnType(method.returnType, parentCls.name),
|
|
521
|
+
paramTypes: method.parameters.map((p) => mapParamType(p.type, parentCls.name)),
|
|
522
|
+
isOptional: false
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
// Only include protocols that were ACTUALLY merged onto this ancestor
|
|
528
|
+
// (i.e., passed conflict detection for that ancestor class)
|
|
529
|
+
const mergedProtos = getMergedProtocols(parentCls, allParsedClasses, allParsedProtocols, allKnownProtocols);
|
|
530
|
+
for (const mergedProtoName of mergedProtos) {
|
|
531
|
+
const mp = allParsedProtocols.get(mergedProtoName);
|
|
532
|
+
if (!mp) continue;
|
|
533
|
+
collectProtocolSignatures(mp, parentCls.name, inherited, allParsedProtocols);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
current = parentCls.superclass ?? "";
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
// Also include this class's own instance method/property signatures
|
|
540
|
+
// (only instance-level — class/static members don't participate in
|
|
541
|
+
// interface declaration merging)
|
|
542
|
+
for (const method of cls.instanceMethods) {
|
|
543
|
+
const jsName = selectorToJS(method.selector);
|
|
544
|
+
if (!inherited.has(jsName)) {
|
|
545
|
+
inherited.set(jsName, {
|
|
546
|
+
returnType: mapReturnType(method.returnType, cls.name),
|
|
547
|
+
paramTypes: method.parameters.map((p) => mapParamType(p.type, cls.name)),
|
|
548
|
+
isOptional: false
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
for (const prop of cls.properties) {
|
|
553
|
+
if (prop.isClassProperty) continue;
|
|
554
|
+
if (!inherited.has(prop.name)) {
|
|
555
|
+
inherited.set(prop.name, {
|
|
556
|
+
returnType: mapReturnType(prop.type, cls.name),
|
|
557
|
+
paramTypes: [],
|
|
558
|
+
isOptional: false
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// Now determine which of this class's declared protocols are conflict-free
|
|
564
|
+
const merged = new Set<string>();
|
|
565
|
+
for (const protoName of cls.protocols) {
|
|
566
|
+
if (!allKnownProtocols.has(protoName)) continue;
|
|
567
|
+
const proto = allParsedProtocols.get(protoName);
|
|
568
|
+
if (!proto) continue;
|
|
569
|
+
if (!checkProtocolConflicts(proto, cls.name, inherited, allParsedProtocols)) {
|
|
570
|
+
merged.add(protoName);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
_mergedProtocolsCache.set(cls.name, merged);
|
|
575
|
+
return merged;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Check whether a protocol would conflict with a class's inherited signatures.
|
|
580
|
+
* Used by `getMergedProtocols` — prefer calling that function directly.
|
|
581
|
+
*/
|
|
582
|
+
function protocolConflictsWithClass(
|
|
583
|
+
cls: ObjCClass,
|
|
584
|
+
protoName: string,
|
|
585
|
+
allParsedClasses: Map<string, ObjCClass>,
|
|
586
|
+
allParsedProtocols: Map<string, ObjCProtocol>,
|
|
587
|
+
allKnownProtocols: Set<string>
|
|
588
|
+
): boolean {
|
|
589
|
+
const merged = getMergedProtocols(cls, allParsedClasses, allParsedProtocols, allKnownProtocols);
|
|
590
|
+
return !merged.has(protoName);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Recursively collect method/property signatures from a protocol and its
|
|
595
|
+
* extended protocols into the given map.
|
|
596
|
+
*/
|
|
597
|
+
function collectProtocolSignatures(
|
|
598
|
+
proto: ObjCProtocol,
|
|
599
|
+
containingClass: string,
|
|
600
|
+
sigs: Map<string, { returnType: string; paramTypes: string[]; isOptional: boolean }>,
|
|
601
|
+
allParsedProtocols: Map<string, ObjCProtocol>
|
|
602
|
+
): void {
|
|
603
|
+
// Only collect instance methods — class methods from protocols are not emitted
|
|
604
|
+
// in the TS interface, so they can't cause declaration merging conflicts.
|
|
605
|
+
for (const method of proto.instanceMethods) {
|
|
606
|
+
const jsName = selectorToJS(method.selector);
|
|
607
|
+
if (!sigs.has(jsName)) {
|
|
608
|
+
sigs.set(jsName, {
|
|
609
|
+
returnType: mapReturnType(method.returnType, containingClass),
|
|
610
|
+
paramTypes: method.parameters.map((p) => mapParamType(p.type, containingClass)),
|
|
611
|
+
isOptional: true
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
// Only collect instance properties (not class properties)
|
|
616
|
+
for (const prop of proto.properties) {
|
|
617
|
+
if (prop.isClassProperty) continue;
|
|
618
|
+
if (!sigs.has(prop.name)) {
|
|
619
|
+
sigs.set(prop.name, {
|
|
620
|
+
returnType: mapReturnType(prop.type, containingClass),
|
|
621
|
+
paramTypes: [],
|
|
622
|
+
isOptional: true
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
if (!prop.readonly) {
|
|
626
|
+
const setterName = `set${prop.name[0]!.toUpperCase()}${prop.name.slice(1)}$`;
|
|
627
|
+
if (!sigs.has(setterName)) {
|
|
628
|
+
sigs.set(setterName, {
|
|
629
|
+
returnType: "void",
|
|
630
|
+
paramTypes: [mapParamType(prop.type, containingClass)],
|
|
631
|
+
isOptional: true
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
// Recurse into extended protocols
|
|
637
|
+
for (const ext of proto.extendedProtocols) {
|
|
638
|
+
const extProto = allParsedProtocols.get(ext);
|
|
639
|
+
if (extProto) {
|
|
640
|
+
collectProtocolSignatures(extProto, containingClass, sigs, allParsedProtocols);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Check if a protocol's methods/properties conflict with inherited signatures.
|
|
647
|
+
* Recursively checks extended protocols too.
|
|
648
|
+
*
|
|
649
|
+
* Only checks instance methods/properties since protocol class methods are not
|
|
650
|
+
* emitted in the TypeScript interface and can't cause declaration merging conflicts.
|
|
651
|
+
*/
|
|
652
|
+
function checkProtocolConflicts(
|
|
653
|
+
proto: ObjCProtocol,
|
|
654
|
+
containingClass: string,
|
|
655
|
+
inherited: Map<string, { returnType: string; paramTypes: string[]; isOptional: boolean }>,
|
|
656
|
+
allParsedProtocols: Map<string, ObjCProtocol>
|
|
657
|
+
): boolean {
|
|
658
|
+
// Check this protocol's own instance methods (class methods are not emitted
|
|
659
|
+
// in the TS interface, so they can't conflict)
|
|
660
|
+
for (const method of proto.instanceMethods) {
|
|
661
|
+
const jsName = selectorToJS(method.selector);
|
|
662
|
+
const parentSig = inherited.get(jsName);
|
|
663
|
+
if (!parentSig) continue;
|
|
664
|
+
|
|
665
|
+
const retType = mapReturnType(method.returnType, containingClass);
|
|
666
|
+
if (retType !== parentSig.returnType) return true;
|
|
667
|
+
|
|
668
|
+
// Protocol methods are emitted as optional (foo?()) but class methods are
|
|
669
|
+
// non-optional (foo()). TypeScript considers these "not identical" in an
|
|
670
|
+
// interface extends clause, producing TS2320.
|
|
671
|
+
if (!parentSig.isOptional) return true;
|
|
672
|
+
|
|
673
|
+
const paramTypes = method.parameters.map((p) => mapParamType(p.type, containingClass));
|
|
674
|
+
if (paramTypes.length === parentSig.paramTypes.length) {
|
|
675
|
+
for (let i = 0; i < paramTypes.length; i++) {
|
|
676
|
+
if (paramTypes[i] !== parentSig.paramTypes[i]) return true;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
// Check instance properties only (class properties are static in TS)
|
|
682
|
+
for (const prop of proto.properties) {
|
|
683
|
+
if (prop.isClassProperty) continue;
|
|
684
|
+
const parentSig = inherited.get(prop.name);
|
|
685
|
+
if (parentSig) {
|
|
686
|
+
const tsType = mapReturnType(prop.type, containingClass);
|
|
687
|
+
if (tsType !== parentSig.returnType) return true;
|
|
688
|
+
if (!parentSig.isOptional) return true;
|
|
689
|
+
}
|
|
690
|
+
if (!prop.readonly) {
|
|
691
|
+
const setterName = `set${prop.name[0]!.toUpperCase()}${prop.name.slice(1)}$`;
|
|
692
|
+
const parentSetterSig = inherited.get(setterName);
|
|
693
|
+
if (parentSetterSig) {
|
|
694
|
+
if (!parentSetterSig.isOptional) return true;
|
|
695
|
+
const paramType = mapParamType(prop.type, containingClass);
|
|
696
|
+
if (parentSetterSig.paramTypes.length > 0 && paramType !== parentSetterSig.paramTypes[0]) {
|
|
697
|
+
return true;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
// Recursively check extended protocols
|
|
704
|
+
for (const ext of proto.extendedProtocols) {
|
|
705
|
+
const extProto = allParsedProtocols.get(ext);
|
|
706
|
+
if (extProto && checkProtocolConflicts(extProto, containingClass, inherited, allParsedProtocols)) {
|
|
707
|
+
return true;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
return false;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Generate a .ts file for a single ObjC class.
|
|
716
|
+
*/
|
|
717
|
+
export function emitClassFile(
|
|
718
|
+
cls: ObjCClass,
|
|
719
|
+
currentFramework: FrameworkConfig,
|
|
720
|
+
allFrameworks: FrameworkConfig[],
|
|
721
|
+
allKnownClasses: Set<string>,
|
|
722
|
+
allParsedClasses?: Map<string, ObjCClass>,
|
|
723
|
+
allKnownProtocols?: Set<string>,
|
|
724
|
+
classToFile?: Map<string, string>,
|
|
725
|
+
allParsedProtocols?: Map<string, ObjCProtocol>
|
|
726
|
+
): string {
|
|
727
|
+
const lines: string[] = [];
|
|
728
|
+
lines.push(AUTOGEN_HEADER);
|
|
729
|
+
lines.push(`import type { NobjcObject } from "objc-js";`);
|
|
730
|
+
|
|
731
|
+
// Collect referenced classes for imports
|
|
732
|
+
const refs = collectReferencedClasses(cls, allKnownClasses, allKnownProtocols);
|
|
733
|
+
lines.push(...emitImports(refs, currentFramework, allFrameworks, classToFile));
|
|
734
|
+
|
|
735
|
+
// Collect and emit struct type imports (one import per struct file)
|
|
736
|
+
const structRefs = collectReferencedStructs(cls);
|
|
737
|
+
if (structRefs.size > 0) {
|
|
738
|
+
for (const name of [...structRefs].sort()) {
|
|
739
|
+
lines.push(`import type { ${name} } from "../structs/${name}.js";`);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
// Collect and emit enum type imports
|
|
744
|
+
const enumRefs = collectReferencedEnums(cls);
|
|
745
|
+
lines.push(...emitEnumImports(enumRefs, currentFramework, allFrameworks));
|
|
746
|
+
|
|
747
|
+
lines.push("");
|
|
748
|
+
lines.push(...emitClassBody(cls, allKnownClasses, allParsedClasses));
|
|
749
|
+
|
|
750
|
+
// Emit protocol conformance via TypeScript declaration merging.
|
|
751
|
+
// This establishes the subtyping relationship: _ClassName is assignable to _ProtocolName.
|
|
752
|
+
// Skip protocols whose methods conflict with the class's inherited signatures
|
|
753
|
+
// (e.g., different return types for the same method name).
|
|
754
|
+
if (allKnownProtocols && cls.protocols.length > 0) {
|
|
755
|
+
let knownProtos = cls.protocols.filter((p) => allKnownProtocols.has(p));
|
|
756
|
+
if (allParsedClasses && allParsedProtocols) {
|
|
757
|
+
knownProtos = knownProtos.filter(
|
|
758
|
+
(p) => !protocolConflictsWithClass(cls, p, allParsedClasses, allParsedProtocols, allKnownProtocols)
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
if (knownProtos.length > 0) {
|
|
762
|
+
const extendsList = knownProtos.map((p) => `_${p}`).join(", ");
|
|
763
|
+
lines.push(`export interface _${cls.name} extends ${extendsList} {}`);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
lines.push("");
|
|
768
|
+
|
|
769
|
+
return lines.join("\n");
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Generate a single .ts file containing multiple classes that share the same
|
|
774
|
+
* filename on a case-insensitive filesystem (e.g., MTROTAFoo and MTROtaFoo).
|
|
775
|
+
*
|
|
776
|
+
* Classes are topologically sorted so that superclasses within the group
|
|
777
|
+
* appear before their subclasses. All sibling classes are excluded from
|
|
778
|
+
* imports since they coexist in the same file.
|
|
779
|
+
*/
|
|
780
|
+
export function emitMergedClassFile(
|
|
781
|
+
classes: ObjCClass[],
|
|
782
|
+
currentFramework: FrameworkConfig,
|
|
783
|
+
allFrameworks: FrameworkConfig[],
|
|
784
|
+
allKnownClasses: Set<string>,
|
|
785
|
+
allParsedClasses?: Map<string, ObjCClass>,
|
|
786
|
+
allKnownProtocols?: Set<string>,
|
|
787
|
+
classToFile?: Map<string, string>,
|
|
788
|
+
allParsedProtocols?: Map<string, ObjCProtocol>
|
|
789
|
+
): string {
|
|
790
|
+
// Set of class names in this merged file — these are "siblings"
|
|
791
|
+
const siblingNames = new Set(classes.map((c) => c.name));
|
|
792
|
+
|
|
793
|
+
// Topological sort: superclasses in the group come first.
|
|
794
|
+
// Build adjacency: if cls.superclass is a sibling, cls depends on it.
|
|
795
|
+
const sorted: ObjCClass[] = [];
|
|
796
|
+
const visited = new Set<string>();
|
|
797
|
+
|
|
798
|
+
function visit(cls: ObjCClass): void {
|
|
799
|
+
if (visited.has(cls.name)) return;
|
|
800
|
+
visited.add(cls.name);
|
|
801
|
+
// If superclass is a sibling, visit it first
|
|
802
|
+
if (cls.superclass && siblingNames.has(cls.superclass)) {
|
|
803
|
+
const parent = classes.find((c) => c.name === cls.superclass);
|
|
804
|
+
if (parent) visit(parent);
|
|
805
|
+
}
|
|
806
|
+
sorted.push(cls);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
for (const cls of classes) {
|
|
810
|
+
visit(cls);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
// Collect all referenced classes/structs/enums across all siblings
|
|
814
|
+
const allRefs = new Set<string>();
|
|
815
|
+
const allStructRefs = new Set<string>();
|
|
816
|
+
const allEnumRefs = new Set<string>();
|
|
817
|
+
|
|
818
|
+
for (const cls of sorted) {
|
|
819
|
+
const refs = collectReferencedClasses(cls, allKnownClasses, allKnownProtocols);
|
|
820
|
+
for (const ref of refs) {
|
|
821
|
+
// Exclude siblings — they're defined in this same file
|
|
822
|
+
if (!siblingNames.has(ref)) {
|
|
823
|
+
allRefs.add(ref);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
const structs = collectReferencedStructs(cls);
|
|
827
|
+
for (const s of structs) {
|
|
828
|
+
allStructRefs.add(s);
|
|
829
|
+
}
|
|
830
|
+
const enums = collectReferencedEnums(cls);
|
|
831
|
+
for (const e of enums) {
|
|
832
|
+
allEnumRefs.add(e);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
// Build the file
|
|
837
|
+
const lines: string[] = [];
|
|
838
|
+
lines.push(AUTOGEN_HEADER);
|
|
839
|
+
lines.push(`import type { NobjcObject } from "objc-js";`);
|
|
840
|
+
|
|
841
|
+
// Emit imports using shared helper (resolves case-collision filenames)
|
|
842
|
+
lines.push(...emitImports(allRefs, currentFramework, allFrameworks, classToFile));
|
|
843
|
+
|
|
844
|
+
// Emit struct imports (one import per struct file)
|
|
845
|
+
if (allStructRefs.size > 0) {
|
|
846
|
+
for (const name of [...allStructRefs].sort()) {
|
|
847
|
+
lines.push(`import type { ${name} } from "../structs/${name}.js";`);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
// Emit enum imports
|
|
852
|
+
lines.push(...emitEnumImports(allEnumRefs, currentFramework, allFrameworks));
|
|
853
|
+
|
|
854
|
+
// Emit each class declaration
|
|
855
|
+
for (const cls of sorted) {
|
|
856
|
+
lines.push("");
|
|
857
|
+
lines.push(...emitClassBody(cls, allKnownClasses, allParsedClasses));
|
|
858
|
+
|
|
859
|
+
// Emit protocol conformance via TypeScript declaration merging.
|
|
860
|
+
// Skip protocols whose methods conflict with the class's inherited signatures.
|
|
861
|
+
if (allKnownProtocols && cls.protocols.length > 0) {
|
|
862
|
+
let knownProtos = cls.protocols.filter((p) => allKnownProtocols.has(p));
|
|
863
|
+
if (allParsedClasses && allParsedProtocols) {
|
|
864
|
+
knownProtos = knownProtos.filter(
|
|
865
|
+
(p) => !protocolConflictsWithClass(cls, p, allParsedClasses, allParsedProtocols, allKnownProtocols)
|
|
866
|
+
);
|
|
867
|
+
}
|
|
868
|
+
if (knownProtos.length > 0) {
|
|
869
|
+
const extendsList = knownProtos.map((p) => `_${p}`).join(", ");
|
|
870
|
+
lines.push(`export interface _${cls.name} extends ${extendsList} {}`);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
lines.push("");
|
|
876
|
+
return lines.join("\n");
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Emit the class declaration body (extends clause, methods, properties)
|
|
881
|
+
* without the file-level header/imports. Used by both emitClassFile and
|
|
882
|
+
* emitMergedClassFile.
|
|
883
|
+
*/
|
|
884
|
+
export function emitClassBody(
|
|
885
|
+
cls: ObjCClass,
|
|
886
|
+
allKnownClasses: Set<string>,
|
|
887
|
+
allParsedClasses?: Map<string, ObjCClass>
|
|
888
|
+
): string[] {
|
|
889
|
+
const lines: string[] = [];
|
|
890
|
+
|
|
891
|
+
// Determine superclass type
|
|
892
|
+
let superType: string;
|
|
893
|
+
if (cls.superclass && allKnownClasses.has(cls.superclass)) {
|
|
894
|
+
superType = `_${cls.superclass}`;
|
|
895
|
+
} else {
|
|
896
|
+
superType = "NobjcObject";
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
lines.push(`export declare class _${cls.name} extends ${superType} {`);
|
|
900
|
+
|
|
901
|
+
// Emit instancetype overrides for alloc/new/init on subclasses.
|
|
902
|
+
const selfType = `_${cls.name}`;
|
|
903
|
+
const ownClassSelectors = new Set(cls.classMethods.map((m) => m.selector));
|
|
904
|
+
const ownInstanceSelectors = new Set(cls.instanceMethods.map((m) => m.selector));
|
|
905
|
+
|
|
906
|
+
if (cls.superclass) {
|
|
907
|
+
const instancetypeOverrides: string[] = [];
|
|
908
|
+
|
|
909
|
+
if (!ownClassSelectors.has("alloc")) {
|
|
910
|
+
instancetypeOverrides.push(` static alloc(): ${selfType};`);
|
|
911
|
+
}
|
|
912
|
+
if (!ownClassSelectors.has("new")) {
|
|
913
|
+
instancetypeOverrides.push(` static new(): ${selfType};`);
|
|
914
|
+
}
|
|
915
|
+
if (!ownInstanceSelectors.has("init")) {
|
|
916
|
+
instancetypeOverrides.push(` init(): ${selfType};`);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
for (const line of instancetypeOverrides) {
|
|
920
|
+
lines.push(line);
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
// Build parent signature map for override conflict detection
|
|
925
|
+
interface ParentSig {
|
|
926
|
+
returnType: string;
|
|
927
|
+
paramTypes: string[];
|
|
928
|
+
}
|
|
929
|
+
const parentSignatures = new Map<string, ParentSig>();
|
|
930
|
+
if (allParsedClasses && cls.superclass) {
|
|
931
|
+
let current = cls.superclass;
|
|
932
|
+
while (current) {
|
|
933
|
+
const parentCls = allParsedClasses.get(current);
|
|
934
|
+
if (!parentCls) break;
|
|
935
|
+
for (const prop of parentCls.properties) {
|
|
936
|
+
const tsType = mapReturnType(prop.type, parentCls.name);
|
|
937
|
+
if (!parentSignatures.has(prop.name)) {
|
|
938
|
+
parentSignatures.set(prop.name, { returnType: tsType, paramTypes: [] });
|
|
939
|
+
}
|
|
940
|
+
if (!prop.readonly) {
|
|
941
|
+
const setterName = `set${prop.name[0]!.toUpperCase()}${prop.name.slice(1)}$`;
|
|
942
|
+
if (!parentSignatures.has(setterName)) {
|
|
943
|
+
const paramType = mapParamType(prop.type, parentCls.name);
|
|
944
|
+
parentSignatures.set(setterName, { returnType: "void", paramTypes: [paramType] });
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
for (const method of [...parentCls.instanceMethods, ...parentCls.classMethods]) {
|
|
949
|
+
const jsName = selectorToJS(method.selector);
|
|
950
|
+
if (!parentSignatures.has(jsName)) {
|
|
951
|
+
const retType = mapReturnType(method.returnType, parentCls.name);
|
|
952
|
+
const paramTypes = method.parameters.map((p) => mapParamType(p.type, parentCls.name));
|
|
953
|
+
parentSignatures.set(jsName, { returnType: retType, paramTypes });
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
current = parentCls.superclass ?? "";
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
function shouldSkipOverride(jsName: string, tsReturnType: string, childParamTypes?: string[]): boolean {
|
|
961
|
+
const parentSig = parentSignatures.get(jsName);
|
|
962
|
+
if (!parentSig) return false;
|
|
963
|
+
|
|
964
|
+
// Rule 1: Child returns NobjcObject but parent is more specific — skip
|
|
965
|
+
if (tsReturnType === "NobjcObject" && parentSig.returnType !== "NobjcObject") {
|
|
966
|
+
return true;
|
|
967
|
+
}
|
|
968
|
+
// Rule 2: Child adds nullability that parent doesn't have — skip
|
|
969
|
+
if (tsReturnType.includes(" | null") && !parentSig.returnType.includes(" | null")) {
|
|
970
|
+
return true;
|
|
971
|
+
}
|
|
972
|
+
// Rule 3: Return types differ — skip unless child is a known subclass of parent
|
|
973
|
+
const childBase = tsReturnType.replace(/ \| null$/, "");
|
|
974
|
+
const parentBase = parentSig.returnType.replace(/ \| null$/, "");
|
|
975
|
+
if (childBase !== parentBase && parentBase !== "NobjcObject") {
|
|
976
|
+
// Extract class names from _ClassName types and walk inheritance
|
|
977
|
+
const childClassName = childBase.startsWith("_") ? childBase.slice(1) : null;
|
|
978
|
+
const parentClassName = parentBase.startsWith("_") ? parentBase.slice(1) : null;
|
|
979
|
+
if (childClassName && parentClassName && allParsedClasses) {
|
|
980
|
+
let current: string | undefined = childClassName;
|
|
981
|
+
let isSubclass = false;
|
|
982
|
+
while (current) {
|
|
983
|
+
if (current === parentClassName) {
|
|
984
|
+
isSubclass = true;
|
|
985
|
+
break;
|
|
986
|
+
}
|
|
987
|
+
const parentCls = allParsedClasses.get(current);
|
|
988
|
+
if (!parentCls) break;
|
|
989
|
+
current = parentCls.superclass ?? undefined;
|
|
990
|
+
}
|
|
991
|
+
if (!isSubclass) return true;
|
|
992
|
+
} else if (childBase !== parentBase) {
|
|
993
|
+
// Can't verify subclass relationship (e.g. protocol types) — skip to be safe
|
|
994
|
+
return true;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
// Rule 4: Parameter types differ — skip
|
|
998
|
+
if (childParamTypes && parentSig.paramTypes.length === childParamTypes.length) {
|
|
999
|
+
for (let i = 0; i < childParamTypes.length; i++) {
|
|
1000
|
+
const childParam = childParamTypes[i]!;
|
|
1001
|
+
const parentParam = parentSig.paramTypes[i]!;
|
|
1002
|
+
if (childParam === parentParam) continue;
|
|
1003
|
+
return true;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
return false;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
// Split properties into class and instance
|
|
1010
|
+
const classProps = cls.properties.filter((p) => p.isClassProperty);
|
|
1011
|
+
const instanceProps = cls.properties.filter((p) => !p.isClassProperty);
|
|
1012
|
+
|
|
1013
|
+
// Emit class methods (static), excluding class property accessors
|
|
1014
|
+
const classPropertyNames = new Set(classProps.map((p) => p.name));
|
|
1015
|
+
const classMethods = cls.classMethods.filter((m) => !classPropertyNames.has(m.selector));
|
|
1016
|
+
|
|
1017
|
+
const hasClassSection = classMethods.length > 0 || classProps.length > 0;
|
|
1018
|
+
if (hasClassSection) {
|
|
1019
|
+
lines.push(" // Class methods");
|
|
1020
|
+
for (const method of classMethods) {
|
|
1021
|
+
const jsName = selectorToJS(method.selector);
|
|
1022
|
+
const retType = mapReturnType(method.returnType, cls.name);
|
|
1023
|
+
const paramTypes = method.parameters.map((p) => mapParamType(p.type, cls.name));
|
|
1024
|
+
if (shouldSkipOverride(jsName, retType, paramTypes)) continue;
|
|
1025
|
+
const sig = emitMethodSignature(method, cls.name);
|
|
1026
|
+
if (sig) lines.push(sig);
|
|
1027
|
+
}
|
|
1028
|
+
for (const prop of classProps) {
|
|
1029
|
+
const tsType = mapReturnType(prop.type, cls.name);
|
|
1030
|
+
if (shouldSkipOverride(prop.name, tsType, [])) continue;
|
|
1031
|
+
const jsdoc = buildJSDoc({
|
|
1032
|
+
description: prop.description,
|
|
1033
|
+
isDeprecated: prop.isDeprecated,
|
|
1034
|
+
deprecationMessage: prop.deprecationMessage
|
|
1035
|
+
});
|
|
1036
|
+
lines.push(...jsdoc);
|
|
1037
|
+
lines.push(` static ${prop.name}(): ${tsType};`);
|
|
1038
|
+
if (!prop.readonly) {
|
|
1039
|
+
const setterName = `set${prop.name[0]!.toUpperCase()}${prop.name.slice(1)}$`;
|
|
1040
|
+
const paramType = mapParamType(prop.type, cls.name);
|
|
1041
|
+
if (!shouldSkipOverride(setterName, "void", [paramType])) {
|
|
1042
|
+
lines.push(` static ${setterName}(value: ${paramType}): void;`);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
// Emit instance methods
|
|
1049
|
+
const instancePropertyNames = new Set(instanceProps.map((p) => p.name));
|
|
1050
|
+
const regularMethods = cls.instanceMethods.filter((m) => !instancePropertyNames.has(m.selector));
|
|
1051
|
+
|
|
1052
|
+
if (regularMethods.length > 0) {
|
|
1053
|
+
if (hasClassSection) lines.push("");
|
|
1054
|
+
lines.push(" // Instance methods");
|
|
1055
|
+
for (const method of regularMethods) {
|
|
1056
|
+
const jsName = selectorToJS(method.selector);
|
|
1057
|
+
const retType = mapReturnType(method.returnType, cls.name);
|
|
1058
|
+
const paramTypes = method.parameters.map((p) => mapParamType(p.type, cls.name));
|
|
1059
|
+
if (shouldSkipOverride(jsName, retType, paramTypes)) continue;
|
|
1060
|
+
const sig = emitMethodSignature(method, cls.name);
|
|
1061
|
+
if (sig) lines.push(sig);
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
// Emit instance properties
|
|
1066
|
+
if (instanceProps.length > 0) {
|
|
1067
|
+
if (regularMethods.length > 0 || hasClassSection) lines.push("");
|
|
1068
|
+
lines.push(" // Properties");
|
|
1069
|
+
for (const prop of instanceProps) {
|
|
1070
|
+
const tsType = mapReturnType(prop.type, cls.name);
|
|
1071
|
+
if (shouldSkipOverride(prop.name, tsType, [])) continue;
|
|
1072
|
+
const jsdoc = buildJSDoc({
|
|
1073
|
+
description: prop.description,
|
|
1074
|
+
isDeprecated: prop.isDeprecated,
|
|
1075
|
+
deprecationMessage: prop.deprecationMessage
|
|
1076
|
+
});
|
|
1077
|
+
lines.push(...jsdoc);
|
|
1078
|
+
lines.push(` ${prop.name}(): ${tsType};`);
|
|
1079
|
+
if (!prop.readonly) {
|
|
1080
|
+
const setterName = `set${prop.name[0]!.toUpperCase()}${prop.name.slice(1)}$`;
|
|
1081
|
+
const paramType = mapParamType(prop.type, cls.name);
|
|
1082
|
+
if (!shouldSkipOverride(setterName, "void", [paramType])) {
|
|
1083
|
+
lines.push(` ${setterName}(value: ${paramType}): void;`);
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
lines.push("}");
|
|
1090
|
+
|
|
1091
|
+
return lines;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* Given an ObjCClass, determine which enum type names it references
|
|
1096
|
+
* (for import statements). Checks mapped types against known integer and string enums.
|
|
1097
|
+
*/
|
|
1098
|
+
function collectReferencedEnums(cls: ObjCClass): Set<string> {
|
|
1099
|
+
const refs = new Set<string>();
|
|
1100
|
+
const intEnums = getKnownIntegerEnums();
|
|
1101
|
+
const strEnums = getKnownStringEnums();
|
|
1102
|
+
|
|
1103
|
+
function extractEnumRefs(typeStr: string): void {
|
|
1104
|
+
// Enum types appear as bare names (e.g., "ASAuthorizationPublicKeyCredentialAttestationKind")
|
|
1105
|
+
// or in union with null (e.g., "ASAuthorizationPublicKeyCredentialAttestationKind | null").
|
|
1106
|
+
// Split on " | " to handle union types.
|
|
1107
|
+
for (const part of typeStr.split(" | ")) {
|
|
1108
|
+
const trimmed = part.trim();
|
|
1109
|
+
if (intEnums.has(trimmed) || strEnums.has(trimmed)) {
|
|
1110
|
+
refs.add(trimmed);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
const allMethods = [...cls.instanceMethods, ...cls.classMethods];
|
|
1116
|
+
for (const method of allMethods) {
|
|
1117
|
+
extractEnumRefs(mapReturnType(method.returnType, cls.name));
|
|
1118
|
+
for (const param of method.parameters) {
|
|
1119
|
+
extractEnumRefs(mapParamType(param.type, cls.name));
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
for (const prop of cls.properties) {
|
|
1123
|
+
extractEnumRefs(mapReturnType(prop.type, cls.name));
|
|
1124
|
+
extractEnumRefs(mapParamType(prop.type, cls.name));
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
return refs;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Given an ObjCProtocol, determine which enum type names it references.
|
|
1132
|
+
*/
|
|
1133
|
+
function collectProtocolReferencedEnums(proto: ObjCProtocol): Set<string> {
|
|
1134
|
+
const refs = new Set<string>();
|
|
1135
|
+
const intEnums = getKnownIntegerEnums();
|
|
1136
|
+
const strEnums = getKnownStringEnums();
|
|
1137
|
+
|
|
1138
|
+
function extractEnumRefs(typeStr: string): void {
|
|
1139
|
+
for (const part of typeStr.split(" | ")) {
|
|
1140
|
+
const trimmed = part.trim();
|
|
1141
|
+
if (intEnums.has(trimmed) || strEnums.has(trimmed)) {
|
|
1142
|
+
refs.add(trimmed);
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
const allMethods = [...proto.instanceMethods, ...proto.classMethods];
|
|
1148
|
+
for (const method of allMethods) {
|
|
1149
|
+
extractEnumRefs(mapReturnType(method.returnType, proto.name));
|
|
1150
|
+
for (const param of method.parameters) {
|
|
1151
|
+
extractEnumRefs(mapParamType(param.type, proto.name));
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
for (const prop of proto.properties) {
|
|
1155
|
+
extractEnumRefs(mapReturnType(prop.type, proto.name));
|
|
1156
|
+
extractEnumRefs(mapParamType(prop.type, proto.name));
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
return refs;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Emit import statements for a set of referenced enum types, grouped by framework.
|
|
1164
|
+
* Enum imports use the bare name (no `_` prefix), unlike class imports.
|
|
1165
|
+
*/
|
|
1166
|
+
function emitEnumImports(
|
|
1167
|
+
refs: Set<string>,
|
|
1168
|
+
currentFramework: FrameworkConfig,
|
|
1169
|
+
allFrameworks: FrameworkConfig[]
|
|
1170
|
+
): string[] {
|
|
1171
|
+
if (refs.size === 0) return [];
|
|
1172
|
+
|
|
1173
|
+
const lines: string[] = [];
|
|
1174
|
+
const enumFwMap = buildEnumFrameworkMap(allFrameworks);
|
|
1175
|
+
|
|
1176
|
+
// Group refs by framework
|
|
1177
|
+
const importsByFramework = new Map<string, string[]>();
|
|
1178
|
+
for (const enumName of refs) {
|
|
1179
|
+
const fw = enumFwMap.get(enumName);
|
|
1180
|
+
if (!fw) continue;
|
|
1181
|
+
if (!importsByFramework.has(fw)) {
|
|
1182
|
+
importsByFramework.set(fw, []);
|
|
1183
|
+
}
|
|
1184
|
+
importsByFramework.get(fw)!.push(enumName);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
for (const [fwName, enums] of importsByFramework) {
|
|
1188
|
+
enums.sort();
|
|
1189
|
+
for (const enumName of enums) {
|
|
1190
|
+
if (fwName === currentFramework.name) {
|
|
1191
|
+
lines.push(`import type { ${enumName} } from "./${enumName}.js";`);
|
|
1192
|
+
} else {
|
|
1193
|
+
lines.push(`import type { ${enumName} } from "../${fwName}/${enumName}.js";`);
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
return lines;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Given an ObjCProtocol, determine which struct type names it references.
|
|
1203
|
+
*/
|
|
1204
|
+
function collectProtocolReferencedStructs(proto: ObjCProtocol): Set<string> {
|
|
1205
|
+
const refs = new Set<string>();
|
|
1206
|
+
|
|
1207
|
+
function extractStructRefs(typeStr: string): void {
|
|
1208
|
+
for (const structName of STRUCT_TS_TYPES) {
|
|
1209
|
+
if (typeStr === structName || typeStr.startsWith(structName + " ")) {
|
|
1210
|
+
refs.add(structName);
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
const allMethods = [...proto.instanceMethods, ...proto.classMethods];
|
|
1216
|
+
for (const method of allMethods) {
|
|
1217
|
+
extractStructRefs(mapReturnType(method.returnType, proto.name));
|
|
1218
|
+
for (const param of method.parameters) {
|
|
1219
|
+
extractStructRefs(mapParamType(param.type, proto.name));
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
for (const prop of proto.properties) {
|
|
1223
|
+
extractStructRefs(mapReturnType(prop.type, proto.name));
|
|
1224
|
+
extractStructRefs(mapParamType(prop.type, proto.name));
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
return refs;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Given an ObjCProtocol, determine which other class/protocol names it references.
|
|
1232
|
+
*/
|
|
1233
|
+
function collectProtocolReferencedClasses(
|
|
1234
|
+
proto: ObjCProtocol,
|
|
1235
|
+
allKnownClasses: Set<string>,
|
|
1236
|
+
allKnownProtocols?: Set<string>
|
|
1237
|
+
): Set<string> {
|
|
1238
|
+
const refs = new Set<string>();
|
|
1239
|
+
|
|
1240
|
+
function extractClassRefs(typeStr: string): void {
|
|
1241
|
+
const regex = /_(\w+)/g;
|
|
1242
|
+
let match;
|
|
1243
|
+
while ((match = regex.exec(typeStr)) !== null) {
|
|
1244
|
+
const name = match[1]!;
|
|
1245
|
+
if (allKnownClasses.has(name) || allKnownProtocols?.has(name)) {
|
|
1246
|
+
refs.add(name);
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
const allMethods = [...proto.instanceMethods, ...proto.classMethods];
|
|
1252
|
+
for (const method of allMethods) {
|
|
1253
|
+
const retType = mapReturnType(method.returnType, proto.name);
|
|
1254
|
+
extractClassRefs(retType);
|
|
1255
|
+
for (const param of method.parameters) {
|
|
1256
|
+
const pType = mapParamType(param.type, proto.name);
|
|
1257
|
+
extractClassRefs(pType);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
for (const prop of proto.properties) {
|
|
1262
|
+
extractClassRefs(mapReturnType(prop.type, proto.name));
|
|
1263
|
+
extractClassRefs(mapParamType(prop.type, proto.name));
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
// Remove self-reference
|
|
1267
|
+
refs.delete(proto.name);
|
|
1268
|
+
|
|
1269
|
+
return refs;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Generate a .ts file for a single ObjC protocol.
|
|
1274
|
+
* Protocols are emitted as TypeScript interfaces with optional methods,
|
|
1275
|
+
* representing the method map shape for NobjcProtocol.implement().
|
|
1276
|
+
*/
|
|
1277
|
+
export function emitProtocolFile(
|
|
1278
|
+
proto: ObjCProtocol,
|
|
1279
|
+
currentFramework: FrameworkConfig,
|
|
1280
|
+
allFrameworks: FrameworkConfig[],
|
|
1281
|
+
allKnownClasses: Set<string>,
|
|
1282
|
+
allKnownProtocols: Set<string>,
|
|
1283
|
+
classToFile?: Map<string, string>
|
|
1284
|
+
): string {
|
|
1285
|
+
const lines: string[] = [];
|
|
1286
|
+
lines.push(AUTOGEN_HEADER);
|
|
1287
|
+
lines.push(`import type { NobjcObject } from "objc-js";`);
|
|
1288
|
+
|
|
1289
|
+
// Collect referenced classes for imports
|
|
1290
|
+
const refs = collectProtocolReferencedClasses(proto, allKnownClasses, allKnownProtocols);
|
|
1291
|
+
|
|
1292
|
+
// Add extended protocols to the refs set so they go through emitImports too
|
|
1293
|
+
// (protocols are entities just like classes in terms of import resolution)
|
|
1294
|
+
for (const extProto of proto.extendedProtocols) {
|
|
1295
|
+
if (allKnownProtocols.has(extProto)) {
|
|
1296
|
+
refs.add(extProto);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
lines.push(...emitImports(refs, currentFramework, allFrameworks, classToFile));
|
|
1301
|
+
|
|
1302
|
+
// Collect and emit struct type imports (one import per struct file)
|
|
1303
|
+
const structRefs = collectProtocolReferencedStructs(proto);
|
|
1304
|
+
if (structRefs.size > 0) {
|
|
1305
|
+
for (const name of [...structRefs].sort()) {
|
|
1306
|
+
lines.push(`import type { ${name} } from "../structs/${name}.js";`);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
// Collect and emit enum type imports
|
|
1311
|
+
const enumRefs = collectProtocolReferencedEnums(proto);
|
|
1312
|
+
lines.push(...emitEnumImports(enumRefs, currentFramework, allFrameworks));
|
|
1313
|
+
|
|
1314
|
+
lines.push("");
|
|
1315
|
+
|
|
1316
|
+
// Build extends clause from extended protocols we have types for
|
|
1317
|
+
const extendsClauses: string[] = [];
|
|
1318
|
+
for (const extProto of proto.extendedProtocols) {
|
|
1319
|
+
if (allKnownProtocols.has(extProto)) {
|
|
1320
|
+
extendsClauses.push(`_${extProto}`);
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
const extendsStr = extendsClauses.length > 0 ? ` extends ${extendsClauses.join(", ")}` : "";
|
|
1324
|
+
|
|
1325
|
+
lines.push(`export interface _${proto.name}${extendsStr} {`);
|
|
1326
|
+
|
|
1327
|
+
// Split properties into class and instance
|
|
1328
|
+
const instanceProps = proto.properties.filter((p) => !p.isClassProperty);
|
|
1329
|
+
|
|
1330
|
+
// Emit instance methods (all optional with ? syntax)
|
|
1331
|
+
const instancePropertyNames = new Set(instanceProps.map((p) => p.name));
|
|
1332
|
+
const regularMethods = proto.instanceMethods.filter((m) => !instancePropertyNames.has(m.selector));
|
|
1333
|
+
|
|
1334
|
+
if (regularMethods.length > 0) {
|
|
1335
|
+
lines.push(" // Instance methods");
|
|
1336
|
+
for (const method of regularMethods) {
|
|
1337
|
+
const jsName = selectorToJS(method.selector);
|
|
1338
|
+
const returnType = mapReturnType(method.returnType, proto.name);
|
|
1339
|
+
const params: string[] = [];
|
|
1340
|
+
const seenNames = new Map<string, number>();
|
|
1341
|
+
for (const param of method.parameters) {
|
|
1342
|
+
const tsType = mapParamType(param.type, proto.name);
|
|
1343
|
+
let safeName = sanitizeParamName(param.name);
|
|
1344
|
+
// Deduplicate: append numeric suffix for repeated parameter names
|
|
1345
|
+
const prev = seenNames.get(safeName) ?? 0;
|
|
1346
|
+
seenNames.set(safeName, prev + 1);
|
|
1347
|
+
if (prev > 0) {
|
|
1348
|
+
safeName = `${safeName}${prev + 1}`;
|
|
1349
|
+
}
|
|
1350
|
+
params.push(`${safeName}: ${tsType}`);
|
|
1351
|
+
}
|
|
1352
|
+
const jsdoc = buildJSDoc({
|
|
1353
|
+
description: method.description,
|
|
1354
|
+
isDeprecated: method.isDeprecated,
|
|
1355
|
+
deprecationMessage: method.deprecationMessage,
|
|
1356
|
+
selector: method.selector
|
|
1357
|
+
});
|
|
1358
|
+
if (jsdoc.length > 0) lines.push(...jsdoc);
|
|
1359
|
+
lines.push(` ${jsName}?(${params.join(", ")}): ${returnType};`);
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
// Emit instance properties (as optional getter methods)
|
|
1364
|
+
if (instanceProps.length > 0) {
|
|
1365
|
+
if (regularMethods.length > 0) lines.push("");
|
|
1366
|
+
lines.push(" // Properties");
|
|
1367
|
+
for (const prop of instanceProps) {
|
|
1368
|
+
const tsType = mapReturnType(prop.type, proto.name);
|
|
1369
|
+
const jsdoc = buildJSDoc({
|
|
1370
|
+
description: prop.description,
|
|
1371
|
+
isDeprecated: prop.isDeprecated,
|
|
1372
|
+
deprecationMessage: prop.deprecationMessage
|
|
1373
|
+
});
|
|
1374
|
+
if (jsdoc.length > 0) lines.push(...jsdoc);
|
|
1375
|
+
lines.push(` ${prop.name}?(): ${tsType};`);
|
|
1376
|
+
if (!prop.readonly) {
|
|
1377
|
+
const setterName = `set${prop.name[0]!.toUpperCase()}${prop.name.slice(1)}$`;
|
|
1378
|
+
const paramType = mapParamType(prop.type, proto.name);
|
|
1379
|
+
lines.push(` ${setterName}?(value: ${paramType}): void;`);
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
lines.push("}");
|
|
1385
|
+
lines.push("");
|
|
1386
|
+
|
|
1387
|
+
return lines.join("\n");
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Determine which framework a protocol belongs to.
|
|
1392
|
+
*/
|
|
1393
|
+
function getProtocolFramework(protocolName: string, frameworks: FrameworkConfig[]): string | null {
|
|
1394
|
+
const map = buildProtocolFrameworkMap(frameworks);
|
|
1395
|
+
return map.get(protocolName) ?? null;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
// --- Enum file generation ---
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* Generate a .ts file for an integer enum (NS_ENUM / NS_OPTIONS).
|
|
1402
|
+
*
|
|
1403
|
+
* Emits a const object with the computed values and a companion type
|
|
1404
|
+
* that resolves to the union of its values. The enum prefix is stripped
|
|
1405
|
+
* from constant names to produce short keys.
|
|
1406
|
+
*
|
|
1407
|
+
* Example output:
|
|
1408
|
+
* ```ts
|
|
1409
|
+
* export const ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirement = {
|
|
1410
|
+
* Required: 0,
|
|
1411
|
+
* Preferred: 1,
|
|
1412
|
+
* } as const;
|
|
1413
|
+
* export type ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirement =
|
|
1414
|
+
* typeof ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirement[
|
|
1415
|
+
* keyof typeof ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirement
|
|
1416
|
+
* ];
|
|
1417
|
+
* ```
|
|
1418
|
+
*/
|
|
1419
|
+
export function emitIntegerEnumFile(enumDef: ObjCIntegerEnum): string {
|
|
1420
|
+
const lines: string[] = [];
|
|
1421
|
+
lines.push(AUTOGEN_HEADER);
|
|
1422
|
+
lines.push("");
|
|
1423
|
+
|
|
1424
|
+
// Strip the enum name prefix from constant names to get short keys.
|
|
1425
|
+
// e.g., "ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirementRequired"
|
|
1426
|
+
// → "Required"
|
|
1427
|
+
const prefix = enumDef.name;
|
|
1428
|
+
const entries: { key: string; value: string }[] = [];
|
|
1429
|
+
|
|
1430
|
+
for (const v of enumDef.values) {
|
|
1431
|
+
let key = v.name;
|
|
1432
|
+
if (key.startsWith(prefix)) {
|
|
1433
|
+
key = key.slice(prefix.length);
|
|
1434
|
+
}
|
|
1435
|
+
// If stripping left an empty key or a key starting with a digit, use the full name
|
|
1436
|
+
if (!key || /^\d/.test(key)) {
|
|
1437
|
+
key = v.name;
|
|
1438
|
+
}
|
|
1439
|
+
entries.push({ key, value: v.value ?? "0" });
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
lines.push(`export const ${enumDef.name} = {`);
|
|
1443
|
+
for (const entry of entries) {
|
|
1444
|
+
lines.push(` ${entry.key}: ${entry.value},`);
|
|
1445
|
+
}
|
|
1446
|
+
lines.push(`} as const;`);
|
|
1447
|
+
|
|
1448
|
+
// NS_OPTIONS bitmask types should accept any numeric combination of flags.
|
|
1449
|
+
// `number & {}` widens the type to accept any number while preserving
|
|
1450
|
+
// autocomplete for the known constant values.
|
|
1451
|
+
const optionsPrefix = enumDef.isOptions ? "number & {} | " : "";
|
|
1452
|
+
|
|
1453
|
+
lines.push(`export type ${enumDef.name} =`);
|
|
1454
|
+
lines.push(` ${optionsPrefix}typeof ${enumDef.name}[keyof typeof ${enumDef.name}];`);
|
|
1455
|
+
|
|
1456
|
+
lines.push("");
|
|
1457
|
+
return lines.join("\n");
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Generate a .ts file for a string enum (NS_TYPED_EXTENSIBLE_ENUM etc.).
|
|
1462
|
+
*
|
|
1463
|
+
* Emits a const object mapping short names to their resolved string values,
|
|
1464
|
+
* plus a companion type. The actual values are read from the framework binary
|
|
1465
|
+
* at generation time via dlopen/dlsym.
|
|
1466
|
+
*
|
|
1467
|
+
* Example output:
|
|
1468
|
+
* ```ts
|
|
1469
|
+
* export const ASAuthorizationPublicKeyCredentialUserVerificationPreference = {
|
|
1470
|
+
* Preferred: "preferred",
|
|
1471
|
+
* Required: "required",
|
|
1472
|
+
* Discouraged: "discouraged",
|
|
1473
|
+
* } as const;
|
|
1474
|
+
* export type ASAuthorizationPublicKeyCredentialUserVerificationPreference =
|
|
1475
|
+
* typeof ASAuthorizationPublicKeyCredentialUserVerificationPreference[
|
|
1476
|
+
* keyof typeof ASAuthorizationPublicKeyCredentialUserVerificationPreference
|
|
1477
|
+
* ];
|
|
1478
|
+
* ```
|
|
1479
|
+
*/
|
|
1480
|
+
export function emitStringEnumFile(enumDef: ObjCStringEnum, _currentFrameworkName: string): string {
|
|
1481
|
+
const lines: string[] = [];
|
|
1482
|
+
lines.push(AUTOGEN_HEADER);
|
|
1483
|
+
lines.push("");
|
|
1484
|
+
|
|
1485
|
+
// Filter to values that were successfully resolved
|
|
1486
|
+
const resolvedValues = enumDef.values.filter((v) => v.value !== null);
|
|
1487
|
+
|
|
1488
|
+
if (resolvedValues.length > 0) {
|
|
1489
|
+
lines.push(`export const ${enumDef.name} = {`);
|
|
1490
|
+
const seenShortNames = new Set<string>();
|
|
1491
|
+
for (const v of resolvedValues) {
|
|
1492
|
+
if (seenShortNames.has(v.shortName)) continue;
|
|
1493
|
+
seenShortNames.add(v.shortName);
|
|
1494
|
+
// JSON.stringify handles escaping of special characters in the value
|
|
1495
|
+
lines.push(` ${v.shortName}: ${JSON.stringify(v.value)},`);
|
|
1496
|
+
}
|
|
1497
|
+
lines.push(`} as const;`);
|
|
1498
|
+
|
|
1499
|
+
lines.push(`export type ${enumDef.name} =`);
|
|
1500
|
+
lines.push(` typeof ${enumDef.name}[keyof typeof ${enumDef.name}];`);
|
|
1501
|
+
} else {
|
|
1502
|
+
// Fallback: if no values could be resolved, emit short names as a JSDoc comment
|
|
1503
|
+
// and a type alias that accepts any string (for forward compatibility)
|
|
1504
|
+
const shortNames = enumDef.values.map((v) => v.shortName);
|
|
1505
|
+
if (shortNames.length > 0) {
|
|
1506
|
+
lines.push(`/**`);
|
|
1507
|
+
lines.push(` * Known values: ${shortNames.join(", ")}`);
|
|
1508
|
+
lines.push(` * Values could not be resolved from the framework binary.`);
|
|
1509
|
+
lines.push(` */`);
|
|
1510
|
+
}
|
|
1511
|
+
lines.push(`export type ${enumDef.name} = string;`);
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
lines.push("");
|
|
1515
|
+
return lines.join("\n");
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
// --- Struct definitions for code generation ---
|
|
1519
|
+
// Each struct defines its TypeScript interface and factory function.
|
|
1520
|
+
// Field info comes from the objc-js native bridge's KNOWN_STRUCT_FIELDS table
|
|
1521
|
+
// (see struct-utils.h). Structs not in that table get positional names (field0, field1, ...).
|
|
1522
|
+
|
|
1523
|
+
export interface StructFieldDef {
|
|
1524
|
+
name: string;
|
|
1525
|
+
type: string; // TypeScript type: "number" or a struct interface name
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
export type StructDef =
|
|
1529
|
+
| {
|
|
1530
|
+
/** The TypeScript interface/function name (e.g., "CGPoint") */
|
|
1531
|
+
tsName: string;
|
|
1532
|
+
/** Fields with their names and types */
|
|
1533
|
+
fields: StructFieldDef[];
|
|
1534
|
+
/** Factory function parameter list — for nested structs, these are flat params */
|
|
1535
|
+
factoryParams?: { name: string; type: string }[];
|
|
1536
|
+
/** Factory function body expression */
|
|
1537
|
+
factoryBody?: string;
|
|
1538
|
+
}
|
|
1539
|
+
| {
|
|
1540
|
+
/** The TypeScript alias name (e.g., "NSPoint") */
|
|
1541
|
+
tsName: string;
|
|
1542
|
+
/** If this is an alias for another struct (e.g., NSPoint = CGPoint) */
|
|
1543
|
+
aliasOf: string;
|
|
1544
|
+
};
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Generate a single struct .ts file (one per struct definition).
|
|
1548
|
+
*
|
|
1549
|
+
* For primary structs: emits an interface + factory function.
|
|
1550
|
+
* For aliases: emits type alias + const re-export, with import of the target.
|
|
1551
|
+
*
|
|
1552
|
+
* @param def - The struct definition to emit.
|
|
1553
|
+
* @param allDefs - All struct definitions (needed to look up nested struct deps).
|
|
1554
|
+
*/
|
|
1555
|
+
export function emitStructFile(def: StructDef, allDefs: StructDef[]): string {
|
|
1556
|
+
const lines: string[] = [];
|
|
1557
|
+
lines.push(AUTOGEN_HEADER);
|
|
1558
|
+
|
|
1559
|
+
if ("aliasOf" in def) {
|
|
1560
|
+
// Alias file: import target struct, re-export as alias
|
|
1561
|
+
lines.push(`import { ${def.aliasOf} } from "./${def.aliasOf}.js";`);
|
|
1562
|
+
lines.push(`import type { ${def.aliasOf} as _${def.aliasOf} } from "./${def.aliasOf}.js";`);
|
|
1563
|
+
lines.push("");
|
|
1564
|
+
lines.push(`export type ${def.tsName} = _${def.aliasOf};`);
|
|
1565
|
+
lines.push(`export const ${def.tsName} = ${def.aliasOf};`);
|
|
1566
|
+
lines.push("");
|
|
1567
|
+
return lines.join("\n");
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
// Collect nested struct dependencies for imports
|
|
1571
|
+
const deps = new Set<string>();
|
|
1572
|
+
for (const field of def.fields) {
|
|
1573
|
+
if (field.type !== "number") {
|
|
1574
|
+
deps.add(field.type);
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
// Import each dependency
|
|
1579
|
+
for (const dep of [...deps].sort()) {
|
|
1580
|
+
lines.push(`import type { ${dep} } from "./${dep}.js";`);
|
|
1581
|
+
}
|
|
1582
|
+
if (deps.size > 0) {
|
|
1583
|
+
lines.push("");
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
// Interface
|
|
1587
|
+
lines.push("");
|
|
1588
|
+
lines.push(`export interface ${def.tsName} {`);
|
|
1589
|
+
for (const field of def.fields) {
|
|
1590
|
+
lines.push(` ${field.name}: ${field.type};`);
|
|
1591
|
+
}
|
|
1592
|
+
lines.push(`}`);
|
|
1593
|
+
|
|
1594
|
+
// Factory function
|
|
1595
|
+
const params = def.factoryParams ?? def.fields.map((f: StructFieldDef) => ({ name: f.name, type: f.type }));
|
|
1596
|
+
const paramStr = params.map((p: { name: string; type: string }) => `${p.name}: ${p.type}`).join(", ");
|
|
1597
|
+
const body = def.factoryBody ?? `{ ${def.fields.map((f: StructFieldDef) => f.name).join(", ")} }`;
|
|
1598
|
+
|
|
1599
|
+
lines.push("");
|
|
1600
|
+
lines.push(`export function ${def.tsName}(${paramStr}): ${def.tsName} {`);
|
|
1601
|
+
lines.push(` return ${body};`);
|
|
1602
|
+
lines.push(`}`);
|
|
1603
|
+
lines.push("");
|
|
1604
|
+
|
|
1605
|
+
return lines.join("\n");
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* Generate the barrel index.ts for src/structs/.
|
|
1610
|
+
* Re-exports all struct types and factory functions.
|
|
1611
|
+
*/
|
|
1612
|
+
export function emitStructIndex(structDefs: StructDef[]): string {
|
|
1613
|
+
const lines: string[] = [];
|
|
1614
|
+
lines.push(AUTOGEN_HEADER);
|
|
1615
|
+
lines.push("");
|
|
1616
|
+
|
|
1617
|
+
for (const def of structDefs) {
|
|
1618
|
+
lines.push(`export * from "./${def.tsName}.js";`);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
lines.push("");
|
|
1622
|
+
return lines.join("\n");
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
// --- C function file generation ---
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Generate a functions.ts file for a framework containing typed wrappers
|
|
1629
|
+
* around `callFunction()` / `callVariadicFunction()` from objc-js.
|
|
1630
|
+
*
|
|
1631
|
+
* Each C function gets a TypeScript wrapper that:
|
|
1632
|
+
* - Has typed parameters and return type
|
|
1633
|
+
* - Passes the function name and type encoding options to the runtime
|
|
1634
|
+
* - For variadic functions, uses `callVariadicFunction()` with the fixed arg count
|
|
1635
|
+
*
|
|
1636
|
+
* Example output:
|
|
1637
|
+
* ```ts
|
|
1638
|
+
* import { callFunction, callVariadicFunction } from "objc-js";
|
|
1639
|
+
* import type { _NSString } from "./NSString.js";
|
|
1640
|
+
*
|
|
1641
|
+
* export function NSHomeDirectory(): _NSString {
|
|
1642
|
+
* return callFunction("NSHomeDirectory", { returns: "@" }) as _NSString;
|
|
1643
|
+
* }
|
|
1644
|
+
* export function NSLog(format: _NSString, ...args: any[]): void {
|
|
1645
|
+
* callVariadicFunction("NSLog", 1, format, ...args);
|
|
1646
|
+
* }
|
|
1647
|
+
* ```
|
|
1648
|
+
*/
|
|
1649
|
+
export function emitFunctionsFile(
|
|
1650
|
+
functions: ObjCFunction[],
|
|
1651
|
+
currentFramework: FrameworkConfig,
|
|
1652
|
+
allFrameworks: FrameworkConfig[],
|
|
1653
|
+
classToFile?: Map<string, string>
|
|
1654
|
+
): string {
|
|
1655
|
+
const lines: string[] = [];
|
|
1656
|
+
lines.push(AUTOGEN_HEADER);
|
|
1657
|
+
|
|
1658
|
+
// Determine which runtime imports we need
|
|
1659
|
+
const hasNonVariadic = functions.some((f) => !f.isVariadic);
|
|
1660
|
+
const hasVariadic = functions.some((f) => f.isVariadic);
|
|
1661
|
+
const runtimeImports: string[] = [];
|
|
1662
|
+
if (hasNonVariadic) runtimeImports.push("callFunction");
|
|
1663
|
+
if (hasVariadic) runtimeImports.push("callVariadicFunction");
|
|
1664
|
+
lines.push(`import { ${runtimeImports.join(", ")} } from "objc-js";`);
|
|
1665
|
+
|
|
1666
|
+
// Collect all referenced types for imports
|
|
1667
|
+
const classRefs = new Set<string>();
|
|
1668
|
+
const structRefs = new Set<string>();
|
|
1669
|
+
const enumRefs = new Set<string>();
|
|
1670
|
+
const intEnums = getKnownIntegerEnums();
|
|
1671
|
+
const strEnums = getKnownStringEnums();
|
|
1672
|
+
let needsNobjcObject = false;
|
|
1673
|
+
|
|
1674
|
+
for (const func of functions) {
|
|
1675
|
+
// Check return type
|
|
1676
|
+
const retType = mapReturnType(func.returnType, "");
|
|
1677
|
+
if (retType.includes("NobjcObject")) needsNobjcObject = true;
|
|
1678
|
+
extractFunctionTypeRefs(retType, classRefs, structRefs, enumRefs, intEnums, strEnums);
|
|
1679
|
+
// Check param types
|
|
1680
|
+
for (const param of func.parameters) {
|
|
1681
|
+
const paramType = mapParamType(param.type, "");
|
|
1682
|
+
if (paramType.includes("NobjcObject")) needsNobjcObject = true;
|
|
1683
|
+
extractFunctionTypeRefs(paramType, classRefs, structRefs, enumRefs, intEnums, strEnums);
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
if (needsNobjcObject) {
|
|
1688
|
+
lines.push(`import type { NobjcObject } from "objc-js";`);
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
// Emit class/protocol imports
|
|
1692
|
+
if (classRefs.size > 0) {
|
|
1693
|
+
lines.push(...emitImports(classRefs, currentFramework, allFrameworks, classToFile));
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
// Emit struct imports
|
|
1697
|
+
for (const name of [...structRefs].sort()) {
|
|
1698
|
+
lines.push(`import type { ${name} } from "../structs/${name}.js";`);
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
// Emit enum imports
|
|
1702
|
+
lines.push(...emitEnumImports(enumRefs, currentFramework, allFrameworks));
|
|
1703
|
+
|
|
1704
|
+
lines.push("");
|
|
1705
|
+
|
|
1706
|
+
// Sort functions alphabetically for deterministic output
|
|
1707
|
+
const sorted = [...functions].sort((a, b) => a.name.localeCompare(b.name));
|
|
1708
|
+
|
|
1709
|
+
for (const func of sorted) {
|
|
1710
|
+
const tsReturnType = mapReturnType(func.returnType, "");
|
|
1711
|
+
const returnEncoding = qualTypeToEncoding(func.returnType);
|
|
1712
|
+
const isVoidReturn = tsReturnType === "void";
|
|
1713
|
+
|
|
1714
|
+
// Build parameter list
|
|
1715
|
+
const params: string[] = [];
|
|
1716
|
+
const paramNames: string[] = [];
|
|
1717
|
+
const seenNames = new Map<string, number>();
|
|
1718
|
+
|
|
1719
|
+
for (const param of func.parameters) {
|
|
1720
|
+
const tsType = mapParamType(param.type, "");
|
|
1721
|
+
let safeName = sanitizeParamName(param.name);
|
|
1722
|
+
const prev = seenNames.get(safeName) ?? 0;
|
|
1723
|
+
seenNames.set(safeName, prev + 1);
|
|
1724
|
+
if (prev > 0) {
|
|
1725
|
+
safeName = `${safeName}${prev + 1}`;
|
|
1726
|
+
}
|
|
1727
|
+
params.push(`${safeName}: ${tsType}`);
|
|
1728
|
+
paramNames.push(safeName);
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
if (func.isVariadic) {
|
|
1732
|
+
params.push("...args: any[]");
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
const paramStr = params.join(", ");
|
|
1736
|
+
const returnTypeStr = tsReturnType;
|
|
1737
|
+
|
|
1738
|
+
if (func.isVariadic) {
|
|
1739
|
+
// Variadic function: callVariadicFunction(name, fixedArgCount, ...allArgs)
|
|
1740
|
+
lines.push(`export function ${func.name}(${paramStr}): ${returnTypeStr} {`);
|
|
1741
|
+
const fixedCount = func.parameters.length;
|
|
1742
|
+
const allArgNames = [...paramNames, "...args"];
|
|
1743
|
+
if (isVoidReturn) {
|
|
1744
|
+
lines.push(` callVariadicFunction("${func.name}", ${fixedCount}, ${allArgNames.join(", ")});`);
|
|
1745
|
+
} else {
|
|
1746
|
+
lines.push(
|
|
1747
|
+
` return callVariadicFunction("${func.name}", ${fixedCount}, ${allArgNames.join(", ")}) as ${tsReturnType};`
|
|
1748
|
+
);
|
|
1749
|
+
}
|
|
1750
|
+
lines.push(`}`);
|
|
1751
|
+
} else {
|
|
1752
|
+
// Non-variadic function: callFunction(name, options, ...args)
|
|
1753
|
+
lines.push(`export function ${func.name}(${paramStr}): ${returnTypeStr} {`);
|
|
1754
|
+
|
|
1755
|
+
// Build options object
|
|
1756
|
+
const optionParts: string[] = [];
|
|
1757
|
+
if (!isVoidReturn && returnEncoding) {
|
|
1758
|
+
optionParts.push(`returns: "${returnEncoding}"`);
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
// Build arg encodings array if any param needs explicit encoding
|
|
1762
|
+
const argEncodings: (string | null)[] = func.parameters.map((p) => qualTypeToEncoding(p.type));
|
|
1763
|
+
const needsArgEncodings = argEncodings.some((e) => e !== null && e !== "@");
|
|
1764
|
+
if (needsArgEncodings && argEncodings.length > 0) {
|
|
1765
|
+
const encodingStrs = argEncodings.map((e) => (e ? `"${e}"` : `"@"`));
|
|
1766
|
+
optionParts.push(`args: [${encodingStrs.join(", ")}]`);
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
const hasOptions = optionParts.length > 0;
|
|
1770
|
+
const optionsStr = hasOptions ? `{ ${optionParts.join(", ")} }` : "";
|
|
1771
|
+
|
|
1772
|
+
if (isVoidReturn) {
|
|
1773
|
+
if (hasOptions) {
|
|
1774
|
+
lines.push(` callFunction("${func.name}", ${optionsStr}, ${paramNames.join(", ")});`);
|
|
1775
|
+
} else if (paramNames.length > 0) {
|
|
1776
|
+
lines.push(` callFunction("${func.name}", undefined, ${paramNames.join(", ")});`);
|
|
1777
|
+
} else {
|
|
1778
|
+
lines.push(` callFunction("${func.name}");`);
|
|
1779
|
+
}
|
|
1780
|
+
} else {
|
|
1781
|
+
if (hasOptions) {
|
|
1782
|
+
if (paramNames.length > 0) {
|
|
1783
|
+
lines.push(
|
|
1784
|
+
` return callFunction("${func.name}", ${optionsStr}, ${paramNames.join(", ")}) as ${tsReturnType};`
|
|
1785
|
+
);
|
|
1786
|
+
} else {
|
|
1787
|
+
lines.push(` return callFunction("${func.name}", ${optionsStr}) as ${tsReturnType};`);
|
|
1788
|
+
}
|
|
1789
|
+
} else if (paramNames.length > 0) {
|
|
1790
|
+
lines.push(` return callFunction("${func.name}", undefined, ${paramNames.join(", ")}) as ${tsReturnType};`);
|
|
1791
|
+
} else {
|
|
1792
|
+
lines.push(` return callFunction("${func.name}") as ${tsReturnType};`);
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
lines.push(`}`);
|
|
1796
|
+
}
|
|
1797
|
+
lines.push("");
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
return lines.join("\n");
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* Extract class, struct, and enum references from a mapped TS type string
|
|
1805
|
+
* (used by emitFunctionsFile for collecting imports).
|
|
1806
|
+
*/
|
|
1807
|
+
function extractFunctionTypeRefs(
|
|
1808
|
+
typeStr: string,
|
|
1809
|
+
classRefs: Set<string>,
|
|
1810
|
+
structRefs: Set<string>,
|
|
1811
|
+
enumRefs: Set<string>,
|
|
1812
|
+
intEnums: Set<string>,
|
|
1813
|
+
strEnums: Set<string>
|
|
1814
|
+
): void {
|
|
1815
|
+
// Class/protocol references: _ClassName
|
|
1816
|
+
const classRegex = /_(\w+)/g;
|
|
1817
|
+
let match;
|
|
1818
|
+
while ((match = classRegex.exec(typeStr)) !== null) {
|
|
1819
|
+
classRefs.add(match[1]!);
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
// Struct references
|
|
1823
|
+
for (const structName of STRUCT_TS_TYPES) {
|
|
1824
|
+
if (typeStr === structName || typeStr.startsWith(structName + " ")) {
|
|
1825
|
+
structRefs.add(structName);
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
// Enum references
|
|
1830
|
+
for (const part of typeStr.split(" | ")) {
|
|
1831
|
+
const trimmed = part.trim();
|
|
1832
|
+
if (intEnums.has(trimmed) || strEnums.has(trimmed)) {
|
|
1833
|
+
enumRefs.add(trimmed);
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Generate the barrel index.ts for a framework.
|
|
1840
|
+
*
|
|
1841
|
+
* @param caseCollisions - Map from canonical filename to all class names in
|
|
1842
|
+
* that file. Colliding classes import from the canonical file rather than
|
|
1843
|
+
* their own name. Pass an empty map when there are no collisions.
|
|
1844
|
+
* @param generatedIntegerEnums - Names of integer enums generated for this framework.
|
|
1845
|
+
* @param generatedStringEnums - Names of string enums with resolved values (value + type export).
|
|
1846
|
+
* @param generatedStringEnumsTypeOnly - Names of string enums without resolved values (type-only export).
|
|
1847
|
+
* @param enumToFile - Map from colliding enum name → canonical filename (for case-insensitive collision handling).
|
|
1848
|
+
* @param hasFunctions - Whether a functions.ts file was generated for this framework.
|
|
1849
|
+
*/
|
|
1850
|
+
export function emitFrameworkIndex(
|
|
1851
|
+
framework: FrameworkConfig,
|
|
1852
|
+
generatedClasses: string[],
|
|
1853
|
+
generatedProtocols?: string[],
|
|
1854
|
+
caseCollisions?: Map<string, string[]>,
|
|
1855
|
+
generatedIntegerEnums?: string[],
|
|
1856
|
+
generatedStringEnums?: string[],
|
|
1857
|
+
generatedStringEnumsTypeOnly?: string[],
|
|
1858
|
+
enumToFile?: Map<string, string>,
|
|
1859
|
+
hasFunctions?: boolean
|
|
1860
|
+
): string {
|
|
1861
|
+
const lines: string[] = [];
|
|
1862
|
+
lines.push(AUTOGEN_HEADER);
|
|
1863
|
+
lines.push(`import { NobjcLibrary } from "objc-js";`);
|
|
1864
|
+
if (generatedClasses.length > 0) {
|
|
1865
|
+
lines.push(`import { _bindClass } from "../bind.js";`);
|
|
1866
|
+
}
|
|
1867
|
+
lines.push("");
|
|
1868
|
+
|
|
1869
|
+
// Use a different variable name for the library if a class has the same name
|
|
1870
|
+
// as the framework (e.g. IOSurface framework has an IOSurface class)
|
|
1871
|
+
const classNames = new Set(generatedClasses);
|
|
1872
|
+
const libVar = classNames.has(framework.name) ? `${framework.name}_lib` : framework.name;
|
|
1873
|
+
lines.push(`export const ${libVar} = new NobjcLibrary("${framework.libraryPath}");`);
|
|
1874
|
+
lines.push("");
|
|
1875
|
+
|
|
1876
|
+
// Build a reverse lookup: className → canonical filename for collision groups
|
|
1877
|
+
const classToFile = new Map<string, string>();
|
|
1878
|
+
if (caseCollisions) {
|
|
1879
|
+
for (const [canonical, group] of caseCollisions) {
|
|
1880
|
+
for (const name of group) {
|
|
1881
|
+
classToFile.set(name, canonical);
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
for (const className of generatedClasses) {
|
|
1887
|
+
const fileName = classToFile.get(className) ?? className;
|
|
1888
|
+
lines.push(`import type { _${className} } from "./${fileName}.js";`);
|
|
1889
|
+
lines.push(`export const ${className} = _bindClass<typeof _${className}>(${libVar}, "${className}");`);
|
|
1890
|
+
lines.push(`export type { _${className} };`);
|
|
1891
|
+
lines.push("");
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
// Export protocol types (type-only, no runtime value)
|
|
1895
|
+
if (generatedProtocols && generatedProtocols.length > 0) {
|
|
1896
|
+
for (const protoName of generatedProtocols) {
|
|
1897
|
+
lines.push(`import type { _${protoName} } from "./${protoName}.js";`);
|
|
1898
|
+
lines.push(`export type { _${protoName} };`);
|
|
1899
|
+
lines.push("");
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
// Export integer enums (re-export value + type)
|
|
1904
|
+
if (generatedIntegerEnums && generatedIntegerEnums.length > 0) {
|
|
1905
|
+
for (const enumName of generatedIntegerEnums) {
|
|
1906
|
+
const fileName = enumToFile?.get(enumName) ?? enumName;
|
|
1907
|
+
lines.push(`export { ${enumName} } from "./${fileName}.js";`);
|
|
1908
|
+
lines.push("");
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
// Export string enums (re-export value + type)
|
|
1913
|
+
if (generatedStringEnums && generatedStringEnums.length > 0) {
|
|
1914
|
+
for (const enumName of generatedStringEnums) {
|
|
1915
|
+
const fileName = enumToFile?.get(enumName) ?? enumName;
|
|
1916
|
+
lines.push(`export { ${enumName} } from "./${fileName}.js";`);
|
|
1917
|
+
lines.push("");
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
// Export unresolved string enums (type-only, no runtime value available)
|
|
1922
|
+
if (generatedStringEnumsTypeOnly && generatedStringEnumsTypeOnly.length > 0) {
|
|
1923
|
+
for (const enumName of generatedStringEnumsTypeOnly) {
|
|
1924
|
+
const fileName = enumToFile?.get(enumName) ?? enumName;
|
|
1925
|
+
lines.push(`export type { ${enumName} } from "./${fileName}.js";`);
|
|
1926
|
+
lines.push("");
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
// Export C functions (re-export everything from functions.ts)
|
|
1931
|
+
if (hasFunctions) {
|
|
1932
|
+
lines.push(`export * from "./functions.js";`);
|
|
1933
|
+
lines.push("");
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
return lines.join("\n");
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
* Generate the top-level src/index.ts barrel.
|
|
1941
|
+
* Only exports structs and delegates — frameworks are imported via
|
|
1942
|
+
* subpath exports (e.g., "objcjs-types/AppKit") to avoid loading
|
|
1943
|
+
* all framework types into the editor at once.
|
|
1944
|
+
*/
|
|
1945
|
+
export function emitTopLevelIndex(frameworkNames: string[]): string {
|
|
1946
|
+
const lines: string[] = [];
|
|
1947
|
+
lines.push(AUTOGEN_HEADER);
|
|
1948
|
+
lines.push("");
|
|
1949
|
+
|
|
1950
|
+
lines.push(`export * from "./structs/index.js";`);
|
|
1951
|
+
lines.push(`export { createDelegate } from "./delegates.js";`);
|
|
1952
|
+
lines.push("");
|
|
1953
|
+
|
|
1954
|
+
return lines.join("\n");
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* Generate src/delegates.ts — a ProtocolMap interface mapping ObjC protocol
|
|
1959
|
+
* name strings to their TypeScript interface types, plus a type-safe
|
|
1960
|
+
* createDelegate() wrapper around NobjcProtocol.implement().
|
|
1961
|
+
*/
|
|
1962
|
+
export function emitDelegatesFile(
|
|
1963
|
+
frameworks: FrameworkConfig[],
|
|
1964
|
+
generatedProtocolsByFramework: Map<string, string[]>
|
|
1965
|
+
): string {
|
|
1966
|
+
const lines: string[] = [];
|
|
1967
|
+
lines.push(AUTOGEN_HEADER);
|
|
1968
|
+
lines.push(`import { NobjcProtocol } from "objc-js";`);
|
|
1969
|
+
lines.push(`import type { NobjcObject } from "objc-js";`);
|
|
1970
|
+
lines.push("");
|
|
1971
|
+
|
|
1972
|
+
// Collect all generated protocols with their framework for imports
|
|
1973
|
+
const allProtocols: { name: string; framework: string }[] = [];
|
|
1974
|
+
for (const fw of frameworks) {
|
|
1975
|
+
const generated = generatedProtocolsByFramework.get(fw.name) ?? [];
|
|
1976
|
+
for (const name of generated) {
|
|
1977
|
+
allProtocols.push({ name, framework: fw.name });
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
// Sort for deterministic output
|
|
1982
|
+
allProtocols.sort((a, b) => a.name.localeCompare(b.name));
|
|
1983
|
+
|
|
1984
|
+
// Emit imports
|
|
1985
|
+
for (const proto of allProtocols) {
|
|
1986
|
+
lines.push(`import type { _${proto.name} } from "./${proto.framework}/${proto.name}.js";`);
|
|
1987
|
+
}
|
|
1988
|
+
lines.push("");
|
|
1989
|
+
|
|
1990
|
+
// Emit ProtocolMap interface
|
|
1991
|
+
lines.push(`/** Maps ObjC protocol name strings to their TypeScript interface types. */`);
|
|
1992
|
+
lines.push(`export interface ProtocolMap {`);
|
|
1993
|
+
for (const proto of allProtocols) {
|
|
1994
|
+
lines.push(` ${proto.name}: _${proto.name};`);
|
|
1995
|
+
}
|
|
1996
|
+
lines.push(`}`);
|
|
1997
|
+
lines.push("");
|
|
1998
|
+
|
|
1999
|
+
// Emit createDelegate function
|
|
2000
|
+
lines.push(`/**`);
|
|
2001
|
+
lines.push(` * Create a type-safe Objective-C delegate object.`);
|
|
2002
|
+
lines.push(` *`);
|
|
2003
|
+
lines.push(` * Wraps NobjcProtocol.implement() with full type inference —`);
|
|
2004
|
+
lines.push(` * method names, parameter types, and return types are all inferred`);
|
|
2005
|
+
lines.push(` * from the protocol name string.`);
|
|
2006
|
+
lines.push(` *`);
|
|
2007
|
+
lines.push(` * @example`);
|
|
2008
|
+
lines.push(` * const delegate = createDelegate("NSWindowDelegate", {`);
|
|
2009
|
+
lines.push(` * windowDidResize$(notification) {`);
|
|
2010
|
+
lines.push(` * console.log("Window resized!");`);
|
|
2011
|
+
lines.push(` * },`);
|
|
2012
|
+
lines.push(` * });`);
|
|
2013
|
+
lines.push(` */`);
|
|
2014
|
+
lines.push(`export function createDelegate<K extends keyof ProtocolMap>(`);
|
|
2015
|
+
lines.push(` protocolName: K,`);
|
|
2016
|
+
lines.push(` methods: Partial<ProtocolMap[K]>,`);
|
|
2017
|
+
lines.push(`): NobjcObject {`);
|
|
2018
|
+
lines.push(` return NobjcProtocol.implement(`);
|
|
2019
|
+
lines.push(` protocolName,`);
|
|
2020
|
+
lines.push(` methods as Record<string, (...args: any[]) => any>,`);
|
|
2021
|
+
lines.push(` );`);
|
|
2022
|
+
lines.push(`}`);
|
|
2023
|
+
lines.push("");
|
|
2024
|
+
|
|
2025
|
+
return lines.join("\n");
|
|
2026
|
+
}
|