Skip to content

CoreSpotlight macOS xcode14.0 beta1

Manuel de la Pena edited this page Jul 18, 2022 · 3 revisions

#CoreSpotlight.framework https://github.com/xamarin/xamarin-macios/pull/15532

diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h	2022-02-23 10:56:52.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h	2022-05-31 15:03:09.000000000 -0400
@@ -9,7 +9,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-CORESPOTLIGHT_EXPORT NSString * const CSSearchQueryErrorDomain API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE;
+CORESPOTLIGHT_EXPORT NSErrorDomain const CSSearchQueryErrorDomain API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE;
 
 typedef NS_ENUM(NSInteger, CSSearchQueryErrorCode) {
     CSSearchQueryErrorCodeUnknown = -2000,
@@ -18,14 +18,41 @@
     CSSearchQueryErrorCodeCancelled = -2003,
 } API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE;
 
+
+typedef NS_ENUM(NSInteger, CSSearchQuerySourceOptions) {
+    CSSearchQuerySourceOptionDefault = 0,
+    CSSearchQuerySourceOptionAllowMail = 1 << 0,  // com.apple.corespotlight.search.allow.mail entitlement
+} API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE;
+
 @class CSSearchableItem;
 
 API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE
+@interface CSSearchQueryContext : NSObject<NSSecureCoding, NSCopying>
+
+#ifdef USE_SUGGESTIONS_API
+@property (nonatomic, strong) NSArray<NSFileProtectionType> *protectionClasses;
+@property (nonatomic, strong) NSArray<NSString *> *fetchAttributes;
+@property (nonatomic, copy) NSArray<NSString *> *filterQueries;
+#else
+@property (nullable, nonatomic, strong) NSArray<NSString *> *fetchAttributes;
+@property (nullable, nonatomic, strong) NSArray<NSString *> *protectionClasses;
+@property (nullable, nonatomic, copy) NSArray<NSString*>* filterQueries;
+#endif
+
+@property (nullable, nonatomic, strong) NSString *keyboardLanguage;
+
+@property (nonatomic, assign) CSSearchQuerySourceOptions sourceOptions;
+@end
+
+API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE
 @interface CSSearchQuery : NSObject
 
 - (instancetype)init NS_UNAVAILABLE;
 
 // queryString: The query string (e.g., 'contentType == "public.email-message" && subject != "Re:*"')
+- (instancetype)initWithQueryString:(NSString * _Nonnull)queryString queryContext:(CSSearchQueryContext *)queryContext NS_DESIGNATED_INITIALIZER API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE;
+
+// queryString: The query string (e.g., 'contentType == "public.email-message" && subject != "Re:*"')
 // attributes: The attributes to be fetched for the searchable items
 - (instancetype)initWithQueryString:(NSString *)queryString attributes:(NSArray<NSString *> * _Nullable)attributes;
 
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h	2022-02-23 10:56:51.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h	2022-05-31 14:49:37.000000000 -0400
@@ -85,9 +85,20 @@
 
 @end
 
+CS_AVAILABLE(13_0, 16_0)
+CS_TVOS_UNAVAILABLE
+@interface CSSearchableIndex (CSExternalProvider)
+
+- (void)provideDataForBundle:(NSString *)bundle
+                  identifier:(NSString *)identifier
+                        type:(NSString *)type
+           completionHandler:(void (^)(NSData * _Nullable, NSError * _Nullable))completionHandler;
+
+
+@end
+
 //An application that is long running should provide a CSSearchableIndexDelegate conforming object to handle communication from the index.
 //Alternatively, an app can provide an extension whose request handler conforms to this protocol and the extension will be called if the app isn't running.
-
 CS_AVAILABLE(10_13, 9_0)
 CS_TVOS_UNAVAILABLE
 @protocol CSSearchableIndexDelegate <NSObject>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h	2022-02-16 00:34:22.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h	2022-05-31 15:03:09.000000000 -0400
@@ -7,6 +7,7 @@
 
 #import <CoreSpotlight/CSSearchableItemAttributeSet.h>
 
+CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE
 @interface CSSearchableItemAttributeSet (CSDocuments)
 
 ///Subject of the this item.
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Events.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Events.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Events.h	2022-02-16 00:34:22.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Events.h	2022-05-31 15:03:09.000000000 -0400
@@ -7,6 +7,7 @@
 
 #import <CoreSpotlight/CSSearchableItemAttributeSet.h>
 
+CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE
 @interface CSSearchableItemAttributeSet (CSEvents)
 
 //Date this item is due.
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_General.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_General.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_General.h	2022-02-23 07:12:56.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_General.h	2022-05-31 14:52:08.000000000 -0400
@@ -7,6 +7,7 @@
 
 #import <CoreSpotlight/CSSearchableItemAttributeSet.h>
 
+CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE
 @interface CSSearchableItemAttributeSet (CSGeneral)
 
 //A localized string to be displayed in the UI for this item.
@@ -87,6 +88,7 @@
 
 @end
 
+CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE
 @interface CSSearchableItemAttributeSet (CSActionExtras)
 // If supportsPhoneCall is 1 and the item has the phoneNumbers property, then the phone number may be used to initiate phone calls. This should be used to indicate that using the phone number is appropriate, and a primary action for the user. For example, supportsPhoneCall would be set on a business, but not an academic paper that happens to have phone numbers for the authors or the institution.
 @property(nullable, strong) NSNumber *supportsPhoneCall;
@@ -102,6 +104,7 @@
 
 @end
 
+CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE
 @interface CSSearchableItemAttributeSet(CSContainment)
 @property(nullable, copy) NSString *containerTitle;
 @property(nullable, copy) NSString *containerDisplayName;
@@ -109,6 +112,7 @@
 @property(nullable, strong) NSNumber *containerOrder;
 @end
 
+CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE
 @interface CSSearchableItemAttributeSet (CSItemProvider)
 // The string value of type identifier can only be used by one providerTypeIdentifier array.
 
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Images.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Images.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Images.h	2022-02-10 03:31:42.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Images.h	2022-05-31 14:52:08.000000000 -0400
@@ -9,6 +9,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
+CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE
 @interface CSSearchableItemAttributeSet (CSImages)
 
 //The height of the item in pixels (ie Image height or Video frame height)
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Media.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Media.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Media.h	2022-02-10 03:31:42.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Media.h	2022-05-31 15:03:09.000000000 -0400
@@ -10,6 +10,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
+CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE
 @interface CSSearchableItemAttributeSet (CSMedia)
 
 //The list of editor/editors that have worked on this item.
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h	2022-02-23 10:56:51.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h	2022-05-31 14:49:37.000000000 -0400
@@ -17,6 +17,7 @@
 CORESPOTLIGHT_EXPORT NSString * const CSMailboxTrash NS_AVAILABLE(10_11, 9_0);
 CORESPOTLIGHT_EXPORT NSString * const CSMailboxArchive NS_AVAILABLE(10_11, 9_0);
 
+CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE
 @interface CSSearchableItemAttributeSet (CSMessaging)
 
 //Unique identifier for the account the item is associated with, if any
@@ -87,6 +88,9 @@
 //This attribute indicates if the document is likely to be considered junk.  Should be 1 if true, 0 otherwise
 @property (nonatomic, strong, getter=isLikelyJunk) NSNumber *likelyJunk;
 
+//This attribute will be set by Messages for use by Suggestions(suggestd)
+@property (nonatomic, strong, getter=isPotentialEventMessage) NSNumber *potentialEventMessage;
+
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Places.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Places.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Places.h	2022-02-16 00:34:22.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Places.h	2022-05-31 15:03:09.000000000 -0400
@@ -7,6 +7,7 @@
 
 #import <CoreSpotlight/CSSearchableItemAttributeSet.h>
 
+CS_AVAILABLE(10_13, 9_0) CS_TVOS_UNAVAILABLE
 @interface CSSearchableItemAttributeSet (CSPlaces)
 
 //A publishable entry providing a synopsis of the contents of the item.
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h	2022-05-31 15:03:09.000000000 -0400
@@ -0,0 +1,30 @@
+//
+//  CSSuggestion.h
+//  CoreSpotlight
+//
+//  Copyright © 2021 Apple. All rights reserved.
+//
+
+#import <CoreSpotlight/CSBase.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+NS_SWIFT_NAME(suggestionHighlight)
+CORESPOTLIGHT_EXPORT NSAttributedStringKey const CSSuggestionHighlightAttributeName API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE;
+
+typedef NS_ENUM(NSInteger, CSSuggestionKind) {
+    CSSuggestionKindNone,
+    CSSuggestionKindCustom,
+    CSSuggestionKindDefault,
+} NS_SWIFT_NAME(CSSuggestion.SuggestionKind);
+
+API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE
+@interface CSSuggestion : NSObject <NSSecureCoding, NSCopying>
+
+@property (nonnull, nonatomic, readonly) NSAttributedString *localizedAttributedSuggestion NS_REFINED_FOR_SWIFT;
+@property (nonatomic, readonly) CSSuggestionKind suggestionKind;
+
+- (NSComparisonResult)compare:(CSSuggestion *)other;
+
+@end
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h	2022-05-31 15:03:09.000000000 -0400
@@ -0,0 +1,61 @@
+//
+//  CSUserQuery.h
+//  CoreSpotlight
+//
+//  Copyright © 2021 Apple. All rights reserved.
+//
+
+#import <CoreSpotlight/CSBase.h>
+#import <CoreSpotlight/CoreSpotlight.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/****************    User Query    ****************/
+
+API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE
+@interface CSUserQueryContext : CSSearchQueryContext
+
++ (CSUserQueryContext *)userQueryContext;
++ (CSUserQueryContext *)userQueryContextWithCurrentSuggestion:(CSSuggestion * _Nullable)currentSuggestion;
+
+@property (nonatomic, assign) NSInteger maxSuggestionCount;
+
+@end
+
+API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE
+@interface CSUserQuery : CSSearchQuery
+
+- (instancetype)initWithUserQueryString:(NSString * _Nullable)userQueryString queryContext:(CSUserQueryContext *)queryContext NS_DESIGNATED_INITIALIZER;
+
+// The query will update the count before each foundSuggestionsHandler invocation to reflect
+// the number of suggestions found so far; if foundSuggestionsHandler is nil then the count will be zero.
+@property (readonly) NSInteger foundSuggestionCount;
+
+// The foundSuggestionsHandler may be invoked additional times as new suggestions are generated,
+// but the value will always be a complete, ordered list. The query serializes all the foundSuggestionsHandler invocations. If no handler is set, suggestions will not be generated.
+@property (nullable, copy) void (^foundSuggestionsHandler)(NSArray<CSSuggestion *> *suggestions);
+
+- (void)start;
+- (void)cancel;
+
+@end
+
+/****************    Top Hit Query    ****************/
+
+API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE
+@interface CSTopHitQueryContext : CSUserQueryContext
+
++ (CSTopHitQueryContext *)topHitQueryContext;
++ (CSTopHitQueryContext *)topHitQueryContextWithCurrentSuggestion:(CSSuggestion * _Nullable)currentSuggestion;
+
+@property (nonatomic, assign) NSInteger maxItemCount;
+
+@end
+
+API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE
+@interface CSTopHitQuery : CSUserQuery
+
+- (instancetype)initWithUserQueryString:(NSString * _Nullable)userQueryString queryContext:(CSTopHitQueryContext *)queryContext NS_DESIGNATED_INITIALIZER;
+
+@end
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CoreSpotlight.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CoreSpotlight.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CoreSpotlight.h	2022-02-16 00:34:22.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CoreSpotlight.h	2022-05-28 21:44:48.000000000 -0400
@@ -9,12 +9,14 @@
 
 #import <CoreSpotlight/CSBase.h>
 #import <CoreSpotlight/CSSearchableItem.h>
+#import <CoreSpotlight/CSSuggestion.h>
 #import <CoreSpotlight/CSPerson.h>
 #import <CoreSpotlight/CSSearchableIndex.h>
 #import <CoreSpotlight/CSSearchableItemAttributeSet.h>
 #import <CoreSpotlight/CSSearchableItemAttributeSet_Categories.h>
 #import <CoreSpotlight/CSIndexExtensionRequestHandler.h>
 #import <CoreSpotlight/CSSearchQuery.h>
+#import <CoreSpotlight/CSUserQuery.h>
 #import <CoreSpotlight/CSImportExtension.h>
 
 //! Project version number for CoreSpotlight.
Clone this wiki locally