SwiftclassFindMyLocate

class FindMyLocate.Session

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 157

  1. funcstatic sharedSession(origin: FindMyLocate.ClientOrigin) -> FindMyLocate.Session
  2. funcstatic sharedSession(FindMyLocate.RequestOrigin) -> FindMyLocate.Session
  3. funcstatic trustedNow() -> Foundation.Date
  4. varstatic var fmfIsAllowedInRegion: Bool { get }
  5. varstatic var fmfIsRestrictedInScreenTime: Bool { get }
  6. varstatic var fmfIsRestrictedOnDevice: Bool { get }
  7. varstatic var hasCorrectPermissionsForLocationSharing: Bool { get }
  8. varstatic var isiCloudProvisionedForLocationSharing: Bool { get }
  9. deinitdeinit
  10. fieldlet _daemonReadyTaskMutex: Synchronization.Mutex<Task<(), Error>?>
  11. fieldlet _fenceConnection: FindMyLocate.Session.FenceConnection
  12. fieldlet _friendshipConnection: FindMyLocate.Session.FriendshipConnection
  13. fieldlet _locationConnection: FindMyLocate.Session.LocationConnection
  14. fieldlet _settingsConnection: FindMyLocate.Session.SettingsConnection
  15. fieldlet origin: FindMyLocate.RequestOrigin
  16. fieldlet startupTaskMutex: Synchronization.Mutex<Task<(), Never>?>
  17. funcacceptFence(id: FindMyLocate.Fence.ID) async throws -> FindMyLocate.Fence
  18. funcactiveLocationSharingDevice(cached: Bool) async throws -> FindMyLocate.Device
  19. funcaddFence(FindMyLocate.Fence) async throws -> FindMyLocate.Fence
  20. funcaddHandlesToLocationStream(_: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, reverseGeocode: Bool, clientID: FindMyLocate.ClientID) async throws -> ()
  21. funcaddHandlesToLocationStream(_: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, reverseGeocode: Bool) async throws -> ()
  22. funcaddHandlesToLocationStream(_: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority) async throws -> ()
  23. funcallFriends() async throws -> FindMyLocate.FriendContainer
  24. funcallPeople() async throws -> [FindMyLocate.UnifiedPerson]
  25. funcallPeopleWithUpdateStream() async throws -> ([FindMyLocate.UnifiedPerson], AsyncStream<[FindMyLocate.FindMyID : FindMyLocate.PersonChangeEvent]>)
  26. funcallowFriendshipRequests(allowed: Bool) async throws -> ()
  27. funcapproveFriendship(handles: [FindMyLocate.Handle], from: FindMyLocate.Handle?, isFromGroup: Bool) async throws -> FindMyLocate.FriendshipRequestResult
  28. funcareFriendshipRequestsAllowed(cached: Bool) async throws -> Bool
  29. funccachedFriendsFollowingMyLocation() async -> [FindMyLocate.Friend]
  30. funccachedFriendsRequestedMyLocation() async -> [FindMyLocate.Friend]
  31. funccachedFriendsRequestedToShareLocationWithMe() async -> [FindMyLocate.Friend]
  32. funccachedFriendsSharingLocationsWithMe() async -> [FindMyLocate.Friend]
  33. funccachedFriendsWithPendingOffers() async -> [FindMyLocate.Friend]
  34. funccachedLocation(for: [FindMyLocate.Handle], includeAddress: Bool) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
  35. funccachedLocation(for: [FindMyLocate.Handle]) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
  36. funccachedOfferExpiration(for: FindMyLocate.Handle, groupId: String?) async -> Foundation.Date?
  37. funcclearCachedConfig() async throws -> ()
  38. funcclientConfiguration() async throws -> FindMyLocate.ClientConfiguration
  39. funccurrentStewieState() async throws -> FindMyLocate.SecureLocationsStewie.ServiceState
  40. funcdeclineFriendship(handles: [FindMyLocate.Handle], from: FindMyLocate.Handle?, isFromGroup: Bool) async throws -> FindMyLocate.FriendshipRequestResult
  41. funcdecryptNotification(encryptedPayload: String) async throws -> FindMyLocate.DecodedLocationNotification
  42. funcdeleteFence(id: FindMyLocate.Fence.ID) async throws -> ()
  43. funcdeleteFences(ids: [FindMyLocate.Fence.ID]) async throws -> ()
  44. funcdismissStewieNotifications() async throws -> ()
  45. funcemulateShowSaveMeAlertCommand() async throws -> ()
  46. funcensureEntitlement(FindMyLocate.ServiceEntitlements) -> ()
  47. funcfavorite(findMyID: FindMyLocate.FindMyID) async throws -> ()
  48. funcfenceUpdateStream() async -> FindMyLocate.Fence.UpdateStream
  49. funcfences() async throws -> [FindMyLocate.Fence]
  50. funcfetchConfig() async throws -> Foundation.Data
  51. funcforceRefreshClient() async throws -> ()
  52. funcforceRefreshLocation(for: [FindMyLocate.Handle], clientID: FindMyLocate.ClientID) async throws -> ()
  53. funcfriendsFollowingMyLocation() async throws -> [FindMyLocate.Friend]
  54. funcfriendsRequestedMyLocation() async throws -> [FindMyLocate.Friend]
  55. funcfriendsRequestedToShareLocationWithMe() async throws -> [FindMyLocate.Friend]
  56. funcfriendsSharingLocationsWithMe(filter: @Sendable (FindMyLocate.Friend) -> Bool) async throws -> [FindMyLocate.Friend]
  57. funcfriendsSharingLocationsWithMe() async throws -> [FindMyLocate.Friend]
  58. funcfriendsWithPendingOffers() async throws -> [FindMyLocate.Friend]
  59. funcfriendshipState(for: FindMyLocate.Handle, isFromGroup: Bool?) async throws -> FindMyLocate.FriendshipState
  60. funcfriendshipState(with: FindMyLocate.Handle, isFromGroup: Bool?) async throws -> FindMyLocate.FriendshipState
  61. funcgetAllDevices(cached: Bool) async throws -> [FindMyLocate.Device]
  62. funcgetCachedLocations() async throws -> Foundation.Data
  63. funcgetPublishSettings() async throws -> Foundation.Data
  64. funcgetSharedKeys() async throws -> Foundation.Data
  65. funcgetSharingKey() async throws -> Foundation.Data
  66. funchandlesRecentlyStartedSharing(recency: Duration) async throws -> [FindMyLocate.Friend]
  67. funchandlesRecentlyViewed(recency: Duration) async throws -> [FindMyLocate.Friend]
  68. funchideMyLocation(hidden: Bool) async throws -> ()
  69. funciCloudAccountName() async -> String?
  70. funcincludeDeviceInHomeKitAutomations() async throws -> Bool
  71. funcisMyLocationEnabled(cached: Bool) async throws -> Bool
  72. funclabelStream(receiveInitialSnapshot: Bool) async throws -> some Swift.AsyncSequence<[FindMyLocate.LocationLabel], Never>
  73. funclabels() async throws -> [FindMyLocate.LocationLabel]
  74. funclatestLocations(for: [FindMyLocate.Handle], includeAddress: Bool, clientID: FindMyLocate.ClientID) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
  75. funclatestLocations(for: [FindMyLocate.Handle], includeAddress: Bool) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
  76. funclocationSharingCapableDevices() async throws -> FindMyLocate.LocationSharingCapableDevices
  77. funclocationSharingCapableDevicesStream() async throws -> some Swift.AsyncSequence<FindMyLocate.LocationSharingCapableDevices, Never>
  78. funclocationStream(handles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, reverseGeocode: Bool) async -> AsyncStream<FindMyLocate.LocationStreamChange>
  79. funclocations(for: [FindMyLocate.Handle], reverseGeocode: Bool) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
  80. funclocations(for: [FindMyLocate.Handle]) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
  81. funclocationsForHandles([FindMyLocate.Handle : FindMyLocate.Location]) async throws -> ()
  82. funclocationsUnavailable(for: [FindMyLocate.Handle]) async throws -> ()
  83. funcmuteFences(for: FindMyLocate.PersonHandle, untilDate: Foundation.Date) async throws -> ()
  84. funcofferExpiration(for: FindMyLocate.Handle, fromHandle: FindMyLocate.Handle) async throws -> Foundation.Date?
  85. funcofferExpiration(for: FindMyLocate.Handle, groupId: String?) async throws -> Foundation.Date?
  86. funcownerToken() async throws -> NIDiscoveryToken?
  87. funcpauseSharingLocation(for: FindMyLocate.FindMyID, duration: FindMyLocate.PauseDuration) async throws -> ()
  88. funcpeerToken(peer: FindMyLocate.Handle) async throws -> NIDiscoveryToken?
  89. funcpeopleUpdateStream() async throws -> AsyncStream<[FindMyLocate.FindMyID : FindMyLocate.PersonChangeEvent]>
  90. funcperformKeyRoll() async throws -> ()
  91. funcprettyName(for: FindMyLocate.Handle) async throws -> String?
  92. funcprocessIDSServiceMessage(Foundation.Data) async throws -> Foundation.Data
  93. funcprocessLocationCommandPayload(Foundation.Data) async throws -> ()
  94. funcprocessLocationPayload(Foundation.Data) async throws -> ()
  95. funcpublishCurrentLocationToStewie() async throws -> FindMyLocate.SecureLocationsStewie.PublishResult
  96. funcpublishLocation(Foundation.Data) async throws -> ()
  97. funcrecordId(for: FindMyLocate.Handle) async throws -> String?
  98. funcredonatePersonEntities() async throws -> ()
  99. funcrefreshLocation(for: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, clientID: FindMyLocate.ClientID) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
  100. funcremoveFriend(findMyID: FindMyLocate.FindMyID) async throws -> ()
  101. funcremovePeerToken(for: FindMyLocate.Handle) async throws -> ()
  102. funcrenewSubscription(priority: FindMyLocate.LocatePriority, handles: [FindMyLocate.PersonHandle]) async throws -> ()
  103. funcrequestOwnerToken(force: Bool) async throws -> ()
  104. funcresetTokenDatabase() async throws -> ()
  105. funcresolveLocation(_: FindMyLocate.Location, for: FindMyLocate.RequestSubject) async throws -> FindMyLocate.Location
  106. funcrespondToInviteRequest(FindMyLocate.FriendshipRequest) async throws -> FindMyLocate.FriendshipRequestResult
  107. funcresumeSharingLocation(for: FindMyLocate.FindMyID) async throws -> ()
  108. funcsaveFence(FindMyLocate.Fence) async throws -> FindMyLocate.Fence
  109. funcsendFriendshipInvite(to: FindMyLocate.Handle, from: FindMyLocate.Handle?, isFromGroup: Bool) async throws -> FindMyLocate.FriendshipRequestResult
  110. funcsendFriendshipInvite(FindMyLocate.FriendshipRequest) async throws -> FindMyLocate.FriendshipRequestResult
  111. funcsendFriendshipOffer(to: [FindMyLocate.Handle], from: FindMyLocate.Handle?, end: FindMyLocate.FriendshipExpiration, isFromGroup: Bool) async throws -> FindMyLocate.FriendshipRequestResult
  112. funcsendFriendshipOffer(to: [FindMyLocate.Handle], from: FindMyLocate.Handle?, with: Duration, isFromGroup: Bool) async throws -> FindMyLocate.FriendshipRequestResult
  113. funcsendFriendshipOffer(FindMyLocate.FriendshipRequest) async throws -> FindMyLocate.FriendshipRequestResult
  114. funcsendNotNow(to: [FindMyLocate.Handle], from: FindMyLocate.Handle?, isFromGroup: Bool) async throws -> FindMyLocate.FriendshipRequestResult
  115. funcsetActiveLocationSharingDevice(String) async throws -> ()
  116. funcsetShareMyLocationState(FindMyLocate.LocationSharingState) async throws -> ()
  117. funcshareMyLocationState() async throws -> FindMyLocate.LocationSharingState
  118. funcshareMyLocationStateStream() async throws -> some Swift.AsyncSequence<FindMyLocate.LocationSharingState, Never>
  119. funcshowMeDeviceAlert() throws -> ()
  120. funcshowShareMyLocationRestrictedAlert() throws -> ()
  121. funcshowShareMyLocationiCloudSettingsOffAlert() throws -> ()
  122. funcstartMonitoringActiveLocationSharingDeviceChange() async throws -> AsyncStream<FindMyLocate.DeviceStreamChange>
  123. funcstartMonitoringPreferencesChange() async throws -> AsyncStream<FindMyLocate.PreferenceStreamChange>
  124. funcstartMonitoringStewieState() async throws -> AsyncStream<FindMyLocate.SecureLocationsStewie.ServiceState>
  125. funcstartOwnerRanging() async throws -> AsyncStream<FindMyLocate.RangingStreamChange>
  126. funcstartRanging(to: FindMyLocate.Handle) async throws -> AsyncStream<FindMyLocate.RangingStreamChange>
  127. funcstartRefreshingLocation(forHandles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, reverseGeocode: Bool, clientID: FindMyLocate.ClientID) async throws -> ()
  128. funcstartRefreshingLocation(forHandles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, reverseGeocode: Bool) async throws -> AsyncStream<FindMyLocate.LocationStreamChange>
  129. funcstartRefreshingLocation(forHandles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority) async throws -> AsyncStream<FindMyLocate.LocationStreamChange>
  130. funcstartRefreshingLocation(_: FindMyLocate.LocationRequest, clientID: FindMyLocate.ClientID) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
  131. funcstartRefreshingLocation(FindMyLocate.LocationRequest) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
  132. funcstartUpdatingFriends(receiveInitialUpdates: Bool) async throws -> AsyncStream<FindMyLocate.FriendStreamChange>
  133. funcstewiePublishResult() async throws -> FindMyLocate.SecureLocationsStewie.PublishResult
  134. funcstewieServiceStateChanged(FindMyLocate.SecureLocationsStewie.ServiceState) async -> ()
  135. funcstopConfigRangingSession() async throws -> ()
  136. funcstopMonitoringStewieState() async throws -> ()
  137. funcstopRanging() async throws -> ()
  138. funcstopRefreshingLocation(forHandles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, clientID: FindMyLocate.ClientID) async throws -> ()
  139. funcstopRefreshingLocation(forHandles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority) async throws -> ()
  140. funcstopRefreshingLocation(for: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, clientID: FindMyLocate.ClientID) async throws -> ()
  141. funcstopRefreshingLocation(for: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority) async throws -> ()
  142. funcstopRefreshingLocation(clientID: FindMyLocate.ClientID) async throws -> ()
  143. funcstopRefreshingLocation() async throws -> ()
  144. funcstopSharingMyLocation(with: [FindMyLocate.Handle], from: FindMyLocate.Handle?, isFromGroup: Bool) async throws -> FindMyLocate.FriendshipRequestResult
  145. funcstopSharingMyLocation(FindMyLocate.FriendshipRequest) async throws -> FindMyLocate.FriendshipRequestResult
  146. funcstopUpdatingFriends() async throws -> ()
  147. funcsubscribeToBackgroundProactiveLocations(clientID: FindMyLocate.ClientID) async throws -> ()
  148. funcsubscribeToBackgroundProactiveLocations() async throws -> ()
  149. functhisDeviceWithCompanion() async throws -> FindMyLocate.DeviceWithCompanion
  150. functriggerFence(id: FindMyLocate.Fence.ID, position: FindMyLocate.Fence.TriggerPosition) async throws -> FindMyLocate.Fence.TriggerID?
  151. functriggerStewieProactiveNotification() async throws -> ()
  152. funcunfavorite(findMyID: FindMyLocate.FindMyID) async throws -> ()
  153. funcunmuteFences(for: FindMyLocate.PersonHandle) async throws -> ()
  154. funcupdate(labels: [FindMyLocate.LocationLabel]) async throws -> ()
  155. funcupdateFence(FindMyLocate.Fence) async throws -> FindMyLocate.Fence
  156. initFindMyLocate.Session.__allocating_init(FindMyLocate.RequestOrigin) async -> FindMyLocate.Session
  157. initFindMyLocate.Session.__allocating_init(FindMyLocate.RequestOrigin) -> FindMyLocate.Session
class Session {
    actor FenceConnection {
        class Trampoline: __C.NSObject, FindMyLocate.FenceServiceClientXPC {
            weak let target: FindMyLocate.Session.FenceConnection?
        }
        enum Failure {
            case unrecognizedResponse(FindMyLocate.FenceResponse)
            case trampolineDeallocated
        }
        var serviceDescription: FindMyBase.XPCServiceDescription?
        var disconnectionHandler: (@Sendable () async -> ())?
        weak var owningSession: FindMyLocate.Session?
        var session: FindMyBase.FM.XPCSession<any FindMyLocate.FenceServiceDaemonXPC>?
        let fenceStreamManager: FindMyLocate.FenceStreamManager
    }
    actor FriendshipConnection {
        struct PeopleState {
            var index: FindMyLocate.PeopleIndex?
            var loadTask: Swift.Task<(), any Swift.Error>?
            let broadcaster: FindMyLocate.StreamBroadcaster<[FindMyLocate.FindMyID : FindMyLocate.PersonChangeEvent]>
            var queuedUpdates: [[FindMyLocate.Friend : FindMyLocate.FriendshipAction]]
        }
        actor Trampoline<A>: __C.SwiftNativeNSObject, FindMyLocate.FriendshipServiceClientXPC where A: FindMyLocate.FriendshipServiceClientProtocol {
            weak var target: A?
        }
        var serviceDescription: FindMyBase.XPCServiceDescription?
        var session: FindMyBase.FM.XPCSession<any FindMyLocate.FriendshipXPCService>?
        var disconnectionHandler: (@Sendable () async -> ())?
        var friendshipContinuation: Swift.AsyncStream<FindMyLocate.FriendStreamChange>.Continuation?
        var rangingContinuation: Swift.AsyncStream<FindMyLocate.RangingStreamChange>.Continuation?
        var isSyncingContact: Swift.Bool
        var syncContinuations: [Swift.CheckedContinuation<(), Swift.Never>]
        lazy var sharedContactStore: __C.CNContactStore?
        weak var owningSession: FindMyLocate.Session?
        var _friendsWithPrettyName: [FindMyLocate.Friend]?
        var internalFollowingContinuation: Swift.AsyncStream<FindMyLocate.FriendStreamChange>.Continuation?
        var followers: [FindMyLocate.Friend]
        var followings: [FindMyLocate.Friend]
        var futureFollowers: [FindMyLocate.Friend]
        var futureFollowings: [FindMyLocate.Friend]
        var pendingOffers: [FindMyLocate.Friend]
        var peopleState: FindMyLocate.Session.FriendshipConnection.PeopleState
    }
    actor LocationConnection {
        actor Trampoline<A>: __C.SwiftNativeNSObject, FindMyLocate.LocationServiceClientXPC where A: FindMyLocate.LocationServiceClientProtocol {
            weak var target: A?
        }
        var serviceDescription: FindMyBase.XPCServiceDescription?
        var session: FindMyBase.FM.XPCSession<any FindMyLocate.LocationXPCService>?
        var disconnectionHandler: (@Sendable () async -> ())?
        var locationContinuation: Swift.AsyncStream<FindMyLocate.LocationStreamChange>.Continuation?
        let labelBroadcaster: FindMyLocate.StreamBroadcaster<[FindMyLocate.LocationLabel]>
        var handlesNeedingReverseGeocoding: Swift.Set<FindMyLocate.Handle>
        lazy var locationShifter: FindMyLocate.LocationShifter?
        let reverseGeocoder: FindMyLocate.ReverseGeocoder
        var handlesForLocationRefreshing: [FindMyLocate.LocatePriority : Swift.Set<FindMyLocate.Handle>]
        var locationForHandles: [FindMyLocate.Handle : FindMyLocate.Location]
        let locationRefreshWorkQueue: FindMyBase.WorkItemQueue
        let internalLocationSerializationQueue: FindMyBase.WorkItemQueue
        let origin: FindMyLocate.RequestOrigin
        weak var owningSession: FindMyLocate.Session?
        var stewieStateUpdateContinuation: Swift.AsyncStream<FindMyLocate.SecureLocationsStewie.ServiceState>.Continuation?
    }
    actor SettingsConnection {
        actor Trampoline<A>: __C.SwiftNativeNSObject, FindMyLocate.SettingsServiceClientXPC where A: FindMyLocate.SettingsServiceClientProtocol {
            weak var target: A?
            let workItemQueue: FindMyBase.WorkItemQueue
        }
        weak var target: (any FindMyLocate.SettingsServiceClientProtocol)?
        var serviceDescription: FindMyBase.XPCServiceDescription?
        var session: FindMyBase.FM.XPCSession<any FindMyLocate.SettingsXPCService>?
        var disconnectionHandler: (@Sendable () async -> ())?
        var meDevice: FindMyLocate.Device?
        var meDeviceContinuation: Swift.AsyncStream<FindMyLocate.DeviceStreamChange>.Continuation?
        var preferenceContinuation: Swift.AsyncStream<FindMyLocate.PreferenceStreamChange>.Continuation?
        weak var owningSession: FindMyLocate.Session?
    }
    struct WeakSessionBox {
        weak var value: FindMyLocate.Session?
    }
    enum FenceError {
        case unrecognizedAcceptanceStatus(FindMyLocate.Fence.AcceptanceStatus)
        case unrecognizedParticipant(FindMyLocate.Fence.Participant)
        case unrecognizedTriggerPosition(FindMyLocate.Fence.TriggerPosition)
        case unrecognizedVariant(FindMyLocate.Fence.Variant)
        case missing
        case muted
        case awaitingApproval
        case triggeringPendingHiddenOneTimeFence
    }
    let startupTaskMutex: Synchronization.Mutex<Swift.Task<(), Swift.Never>?>
    let _fenceConnection: FindMyLocate.Session.FenceConnection
    let _friendshipConnection: FindMyLocate.Session.FriendshipConnection
    let _settingsConnection: FindMyLocate.Session.SettingsConnection
    let _locationConnection: FindMyLocate.Session.LocationConnection
    let _daemonReadyTaskMutex: Synchronization.Mutex<Swift.Task<(), any Swift.Error>?>
    let origin: FindMyLocate.RequestOrigin

    init(_: FindMyLocate.RequestOrigin)
    init(_: FindMyLocate.RequestOrigin) async

    final func stopSharingMyLocation(with: [FindMyLocate.Handle], from: FindMyLocate.Handle?, isFromGroup: Swift.Bool) async throws -> FindMyLocate.FriendshipRequestResult
    final func stopSharingMyLocation(_: FindMyLocate.FriendshipRequest) async throws -> FindMyLocate.FriendshipRequestResult
    final func friendsFollowingMyLocation() async throws -> [FindMyLocate.Friend]
    final func friendsRequestedMyLocation() async throws -> [FindMyLocate.Friend]
    final func stopConfigRangingSession() async throws
    final func cachedFriendsFollowingMyLocation() async -> [FindMyLocate.Friend]
    final func cachedFriendsRequestedMyLocation() async -> [FindMyLocate.Friend]
    final func isMyLocationEnabled(cached: Swift.Bool) async throws -> Swift.Bool
    final func hideMyLocation(hidden: Swift.Bool) async throws
    final func shareMyLocationState() async throws -> FindMyLocate.LocationSharingState
    final func shareMyLocationStateStream() async throws -> some Swift.AsyncSequence<FindMyLocate.LocationSharingState, Swift.Never>
    final func setShareMyLocationState(_: FindMyLocate.LocationSharingState) async throws
    final func showShareMyLocationRestrictedAlert() throws
    final func showShareMyLocationiCloudSettingsOffAlert() throws
    final func allFriends() async throws -> FindMyLocate.FriendContainer
    final func muteFences(for: FindMyLocate.PersonHandle, untilDate: Foundation.Date) async throws
    final func ownerToken() async throws -> __C.NIDiscoveryToken?
    final func prettyName(for: FindMyLocate.Handle) async throws -> Swift.String?
    final func sendNotNow(to: [FindMyLocate.Handle], from: FindMyLocate.Handle?, isFromGroup: Swift.Bool) async throws -> FindMyLocate.FriendshipRequestResult
    final func unfavorite(findMyID: FindMyLocate.FindMyID) async throws
    final func acceptFence(id: FindMyLocate.Fence.ID) async throws -> FindMyLocate.Fence
    final func deleteFence(id: FindMyLocate.Fence.ID) async throws
    final func fetchConfig() async throws -> Foundation.Data
    final func labelStream(receiveInitialSnapshot: Swift.Bool) async throws -> some Swift.AsyncSequence<[FindMyLocate.LocationLabel], Swift.Never>
    final func stopRanging() async throws
    final func updateFence(_: FindMyLocate.Fence) async throws -> FindMyLocate.Fence
    final func deleteFences(ids: [FindMyLocate.Fence.ID]) async throws
    final func removeFriend(findMyID: FindMyLocate.FindMyID) async throws
    final func startRanging(to: FindMyLocate.Handle) async throws -> Swift.AsyncStream<FindMyLocate.RangingStreamChange>
    final func triggerFence(id: FindMyLocate.Fence.ID, position: FindMyLocate.Fence.TriggerPosition) async throws -> FindMyLocate.Fence.TriggerID?
    final func unmuteFences(for: FindMyLocate.PersonHandle) async throws
    final func getAllDevices(cached: Swift.Bool) async throws -> [FindMyLocate.Device]
    final func getSharedKeys() async throws -> Foundation.Data
    final func getSharingKey() async throws -> Foundation.Data
    final func cachedLocation(for: [FindMyLocate.Handle], includeAddress: Swift.Bool) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
    final func cachedLocation(for: [FindMyLocate.Handle]) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
    final func locationStream(handles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, reverseGeocode: Swift.Bool) async -> Swift.AsyncStream<FindMyLocate.LocationStreamChange>
    final func performKeyRoll() async throws
    final func friendshipState(for: FindMyLocate.Handle, isFromGroup: Swift.Bool?) async throws -> FindMyLocate.FriendshipState
    final func friendshipState(with: FindMyLocate.Handle, isFromGroup: Swift.Bool?) async throws -> FindMyLocate.FriendshipState
    final func latestLocations(for: [FindMyLocate.Handle], includeAddress: Swift.Bool, clientID: FindMyLocate.ClientID) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
    final func latestLocations(for: [FindMyLocate.Handle], includeAddress: Swift.Bool) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
    final func offerExpiration(for: FindMyLocate.Handle, fromHandle: FindMyLocate.Handle) async throws -> Foundation.Date?
    final func offerExpiration(for: FindMyLocate.Handle, groupId: Swift.String?) async throws -> Foundation.Date?
    final func publishLocation(_: Foundation.Data) async throws
    final func refreshLocation(for: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, clientID: FindMyLocate.ClientID) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
    final func removePeerToken(for: FindMyLocate.Handle) async throws
    final func resolveLocation(_: FindMyLocate.Location, for: FindMyLocate.RequestSubject) async throws -> FindMyLocate.Location
    final func approveFriendship(handles: [FindMyLocate.Handle], from: FindMyLocate.Handle?, isFromGroup: Swift.Bool) async throws -> FindMyLocate.FriendshipRequestResult
    final func clearCachedConfig() async throws
    final func declineFriendship(handles: [FindMyLocate.Handle], from: FindMyLocate.Handle?, isFromGroup: Swift.Bool) async throws -> FindMyLocate.FriendshipRequestResult
    final func ensureEntitlement(_: FindMyLocate.ServiceEntitlements)
    final func fenceUpdateStream() async -> FindMyLocate.Fence.UpdateStream
    final func iCloudAccountName() async -> Swift.String?
    final func renewSubscription(priority: FindMyLocate.LocatePriority, handles: [FindMyLocate.PersonHandle]) async throws
    final func requestOwnerToken(force: Swift.Bool) async throws
    final func showMeDeviceAlert() throws
    final func startOwnerRanging() async throws -> Swift.AsyncStream<FindMyLocate.RangingStreamChange>
    final func currentStewieState() async throws -> FindMyLocate.SecureLocationsStewie.ServiceState
    final func forceRefreshClient() async throws
    final func getCachedLocations() async throws -> Foundation.Data
    final func getPublishSettings() async throws -> Foundation.Data
    final func peopleUpdateStream() async throws -> Swift.AsyncStream<[FindMyLocate.FindMyID : FindMyLocate.PersonChangeEvent]>
    final func resetTokenDatabase() async throws
    final func clientConfiguration() async throws -> FindMyLocate.ClientConfiguration
    final func decryptNotification(encryptedPayload: Swift.String) async throws -> FindMyLocate.DecodedLocationNotification
    final func locationsForHandles(_: [FindMyLocate.Handle : FindMyLocate.Location]) async throws
    final func sendFriendshipOffer(to: [FindMyLocate.Handle], from: FindMyLocate.Handle?, end: FindMyLocate.FriendshipExpiration, isFromGroup: Swift.Bool) async throws -> FindMyLocate.FriendshipRequestResult
    final func sendFriendshipOffer(to: [FindMyLocate.Handle], from: FindMyLocate.Handle?, with: Swift.Duration, isFromGroup: Swift.Bool) async throws -> FindMyLocate.FriendshipRequestResult
    final func sendFriendshipOffer(_: FindMyLocate.FriendshipRequest) async throws -> FindMyLocate.FriendshipRequestResult
    final func stewiePublishResult() async throws -> FindMyLocate.SecureLocationsStewie.PublishResult
    final func stopUpdatingFriends() async throws
    final func forceRefreshLocation(for: [FindMyLocate.Handle], clientID: FindMyLocate.ClientID) async throws
    final func locationsUnavailable(for: [FindMyLocate.Handle]) async throws
    final func pauseSharingLocation(for: FindMyLocate.FindMyID, duration: FindMyLocate.PauseDuration) async throws
    final func sendFriendshipInvite(to: FindMyLocate.Handle, from: FindMyLocate.Handle?, isFromGroup: Swift.Bool) async throws -> FindMyLocate.FriendshipRequestResult
    final func sendFriendshipInvite(_: FindMyLocate.FriendshipRequest) async throws -> FindMyLocate.FriendshipRequestResult
    final func startUpdatingFriends(receiveInitialUpdates: Swift.Bool) async throws -> Swift.AsyncStream<FindMyLocate.FriendStreamChange>
    final func cachedOfferExpiration(for: FindMyLocate.Handle, groupId: Swift.String?) async -> Foundation.Date?
    final func handlesRecentlyViewed(recency: Swift.Duration) async throws -> [FindMyLocate.Friend]
    final func resumeSharingLocation(for: FindMyLocate.FindMyID) async throws
    final func processLocationPayload(_: Foundation.Data) async throws
    final func redonatePersonEntities() async throws
    final func respondToInviteRequest(_: FindMyLocate.FriendshipRequest) async throws -> FindMyLocate.FriendshipRequestResult
    final func stopRefreshingLocation(forHandles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, clientID: FindMyLocate.ClientID) async throws
    final func stopRefreshingLocation(forHandles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority) async throws
    final func stopRefreshingLocation(for: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, clientID: FindMyLocate.ClientID) async throws
    final func stopRefreshingLocation(for: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority) async throws
    final func stopRefreshingLocation(clientID: FindMyLocate.ClientID) async throws
    final func stopRefreshingLocation() async throws
    final func allowFriendshipRequests(allowed: Swift.Bool) async throws
    final func startRefreshingLocation(forHandles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, reverseGeocode: Swift.Bool, clientID: FindMyLocate.ClientID) async throws
    final func startRefreshingLocation(forHandles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, reverseGeocode: Swift.Bool) async throws -> Swift.AsyncStream<FindMyLocate.LocationStreamChange>
    final func startRefreshingLocation(forHandles: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority) async throws -> Swift.AsyncStream<FindMyLocate.LocationStreamChange>
    final func startRefreshingLocation(_: FindMyLocate.LocationRequest, clientID: FindMyLocate.ClientID) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
    final func startRefreshingLocation(_: FindMyLocate.LocationRequest) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
    final func thisDeviceWithCompanion() async throws -> FindMyLocate.DeviceWithCompanion
    final func friendsWithPendingOffers() async throws -> [FindMyLocate.Friend]
    final func processIDSServiceMessage(_: Foundation.Data) async throws -> Foundation.Data
    final func allPeopleWithUpdateStream() async throws -> ([FindMyLocate.UnifiedPerson], Swift.AsyncStream<[FindMyLocate.FindMyID : FindMyLocate.PersonChangeEvent]>)
    final func stewieServiceStateChanged(_: FindMyLocate.SecureLocationsStewie.ServiceState) async
    final func stopMonitoringStewieState() async throws
    final func addHandlesToLocationStream(_: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, reverseGeocode: Swift.Bool, clientID: FindMyLocate.ClientID) async throws
    final func addHandlesToLocationStream(_: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority, reverseGeocode: Swift.Bool) async throws
    final func addHandlesToLocationStream(_: [FindMyLocate.Handle], priority: FindMyLocate.LocatePriority) async throws
    final func dismissStewieNotifications() async throws
    final func startMonitoringStewieState() async throws -> Swift.AsyncStream<FindMyLocate.SecureLocationsStewie.ServiceState>
    final func activeLocationSharingDevice(cached: Swift.Bool) async throws -> FindMyLocate.Device
    final func areFriendshipRequestsAllowed(cached: Swift.Bool) async throws -> Swift.Bool
    final func emulateShowSaveMeAlertCommand() async throws
    final func friendsSharingLocationsWithMe(filter: @Sendable (_: FindMyLocate.Friend) -> Swift.Bool) async throws -> [FindMyLocate.Friend]
    final func friendsSharingLocationsWithMe() async throws -> [FindMyLocate.Friend]
    final func handlesRecentlyStartedSharing(recency: Swift.Duration) async throws -> [FindMyLocate.Friend]
    final func locationSharingCapableDevices() async throws -> FindMyLocate.LocationSharingCapableDevices
    final func processLocationCommandPayload(_: Foundation.Data) async throws
    final func cachedFriendsWithPendingOffers() async -> [FindMyLocate.Friend]
    final func publishCurrentLocationToStewie() async throws -> FindMyLocate.SecureLocationsStewie.PublishResult
    final func setActiveLocationSharingDevice(_: Swift.String) async throws
    final func startMonitoringPreferencesChange() async throws -> Swift.AsyncStream<FindMyLocate.PreferenceStreamChange>
    final func includeDeviceInHomeKitAutomations() async throws -> Swift.Bool
    final func triggerStewieProactiveNotification() async throws
    final func cachedFriendsSharingLocationsWithMe() async -> [FindMyLocate.Friend]
    final func locationSharingCapableDevicesStream() async throws -> some Swift.AsyncSequence<FindMyLocate.LocationSharingCapableDevices, Swift.Never>
    final func friendsRequestedToShareLocationWithMe() async throws -> [FindMyLocate.Friend]
    final func subscribeToBackgroundProactiveLocations(clientID: FindMyLocate.ClientID) async throws
    final func subscribeToBackgroundProactiveLocations() async throws
    final func cachedFriendsRequestedToShareLocationWithMe() async -> [FindMyLocate.Friend]
    final func startMonitoringActiveLocationSharingDeviceChange() async throws -> Swift.AsyncStream<FindMyLocate.DeviceStreamChange>
    final func fences() async throws -> [FindMyLocate.Fence]
    final func labels() async throws -> [FindMyLocate.LocationLabel]
    final func update(labels: [FindMyLocate.LocationLabel]) async throws
    final func addFence(_: FindMyLocate.Fence) async throws -> FindMyLocate.Fence
    final func favorite(findMyID: FindMyLocate.FindMyID) async throws
    final func recordId(for: FindMyLocate.Handle) async throws -> Swift.String?
    final func allPeople() async throws -> [FindMyLocate.UnifiedPerson]
    final func locations(for: [FindMyLocate.Handle], reverseGeocode: Swift.Bool) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
    final func locations(for: [FindMyLocate.Handle]) async throws -> [FindMyLocate.Handle : FindMyLocate.Location]
    final func peerToken(peer: FindMyLocate.Handle) async throws -> __C.NIDiscoveryToken?
    final func saveFence(_: FindMyLocate.Fence) async throws -> FindMyLocate.Fence

    static var fmfIsAllowedInRegion: Swift.Bool {
        get
    }
    static var fmfIsRestrictedInScreenTime: Swift.Bool {
        get
    }
    static var fmfIsRestrictedOnDevice: Swift.Bool {
        get
    }
    static var hasCorrectPermissionsForLocationSharing: Swift.Bool {
        get
    }
    static var isiCloudProvisionedForLocationSharing: Swift.Bool {
        get
    }

    static func sharedSession(origin: FindMyLocate.ClientOrigin) -> FindMyLocate.Session
    static func sharedSession(_: FindMyLocate.RequestOrigin) -> FindMyLocate.Session
    static func trustedNow() -> Foundation.Date

    deinit
}