@tryterra/react-native 2.3.1 → 2.4.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/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/Conversions.kt +2 -0
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/ReadConversions.kt +1 -1
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/generated/BridgeTypes.kt +38 -1
- package/docs/availability.md +11 -1
- package/frameworks/TerraSDK.xcframework/Info.plist +5 -5
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Info.plist +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.abi.json +4400 -682
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.package.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.swiftinterface +94 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/dSYMs/TerraSDK.framework.dSYM/Contents/Info.plist +2 -2
- package/frameworks/TerraSDK.xcframework/ios-arm64/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/DWARF/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/TerraSDK.yml +7725 -7449
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Info.plist +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +4400 -682
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +94 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +4400 -682
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +94 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/_CodeSignature/CodeResources +21 -21
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Info.plist +2 -2
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/DWARF/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/TerraSDK.yml +7726 -7450
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/TerraSDK.yml +7625 -7359
- package/ios/TerraBridgeCore/Generated/BridgeTypes.swift +22 -1
- package/lib/generated/codecs.js +2 -2
- package/lib/generated/types.d.ts +2 -2
- package/lib/generated/types.js +6 -0
- package/package.json +3 -3
- package/src/generated/codecs.ts +2 -2
- package/src/generated/types.ts +14 -2
|
@@ -460,7 +460,11 @@ public struct Electrocardiogram : Swift.Sendable, Swift.Equatable, Swift.Hashabl
|
|
|
460
460
|
public let averageHeartRate: Swift.Double?
|
|
461
461
|
public let samplingFrequencyHz: Swift.Double?
|
|
462
462
|
public let symptomsStatus: TerraSDK.Electrocardiogram.SymptomsStatus?
|
|
463
|
-
public
|
|
463
|
+
public let voltagesMicrovolts: [Swift.Double]?
|
|
464
|
+
public init(classification: TerraSDK.Electrocardiogram.Classification, averageHeartRate: Swift.Double? = nil, samplingFrequencyHz: Swift.Double? = nil, symptomsStatus: TerraSDK.Electrocardiogram.SymptomsStatus? = nil, voltagesMicrovolts: [Swift.Double]? = nil)
|
|
465
|
+
public static let maximumVoltages: Swift.Int
|
|
466
|
+
public static let maximumPerAnchoredPage: Swift.Int
|
|
467
|
+
public func withVoltages(_ voltages: [Swift.Double]?) -> TerraSDK.Electrocardiogram
|
|
464
468
|
public static func == (a: TerraSDK.Electrocardiogram, b: TerraSDK.Electrocardiogram) -> Swift.Bool
|
|
465
469
|
public func hash(into hasher: inout Swift.Hasher)
|
|
466
470
|
public var hashValue: Swift.Int {
|
|
@@ -941,6 +945,7 @@ public enum HealthDataType : Swift.String, Swift.Sendable, Swift.Hashable, Swift
|
|
|
941
945
|
case speed
|
|
942
946
|
case power
|
|
943
947
|
case cyclingCadence
|
|
948
|
+
case mindfulSession
|
|
944
949
|
case weight
|
|
945
950
|
case height
|
|
946
951
|
case bmi
|
|
@@ -1040,6 +1045,7 @@ public enum HealthDataType : Swift.String, Swift.Sendable, Swift.Hashable, Swift
|
|
|
1040
1045
|
extension TerraSDK.HealthDataType {
|
|
1041
1046
|
@_spi(TestRig) public init(_ kind: TerraSDK.IntradaySample.Kind)
|
|
1042
1047
|
@_spi(TestRig) public init(_ kind: TerraSDK.WorkoutIntensitySample.Kind)
|
|
1048
|
+
@_spi(TestRig) public init(_ kind: TerraSDK.WorkoutContextSample.Kind)
|
|
1043
1049
|
@_spi(TestRig) public init(_ kind: TerraSDK.MenstrualEvent.Kind)
|
|
1044
1050
|
@_spi(TestRig) public init(_ kind: TerraSDK.BodyReading.Kind)
|
|
1045
1051
|
}
|
|
@@ -1059,6 +1065,8 @@ extension TerraSDK.HealthKitStore {
|
|
|
1059
1065
|
public func healthObservations(in interval: Foundation.DateInterval) async throws -> [TerraSDK.HealthObservation]
|
|
1060
1066
|
public func athleteProfile() async throws -> TerraSDK.AthleteProfile?
|
|
1061
1067
|
public func workoutIntensity(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutIntensitySample]
|
|
1068
|
+
public func workoutContext(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutContextSample]
|
|
1069
|
+
public func dailyVitals(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1062
1070
|
public func workoutRoutes(of workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutRoute]
|
|
1063
1071
|
}
|
|
1064
1072
|
extension TerraSDK.HealthKitStore {
|
|
@@ -1089,6 +1097,7 @@ extension TerraSDK.HealthKitStore {
|
|
|
1089
1097
|
public func stepSamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.StepCount]
|
|
1090
1098
|
public func intradaySamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.IntradaySample]
|
|
1091
1099
|
public func sleep(in interval: Foundation.DateInterval) async throws -> [TerraSDK.SleepSegment]
|
|
1100
|
+
public func mindfulSessions(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MindfulSession]
|
|
1092
1101
|
public func workouts(in interval: Foundation.DateInterval) async throws -> [TerraSDK.Workout]
|
|
1093
1102
|
nonisolated public func observe(_ category: TerraSDK.DataCategory, source: TerraSDK.Source) -> _Concurrency.AsyncStream<TerraSDK.ObservedWake>
|
|
1094
1103
|
public func enableBackgroundObservation(_ category: TerraSDK.DataCategory, source: TerraSDK.Source) async -> Swift.Bool
|
|
@@ -1167,6 +1176,8 @@ public struct HealthChanges : Swift.Sendable {
|
|
|
1167
1176
|
public var workouts: [TerraSDK.Workout]
|
|
1168
1177
|
public var workoutIntensity: [TerraSDK.WorkoutIntensitySample]
|
|
1169
1178
|
public var workoutRoutes: [TerraSDK.WorkoutRoute]
|
|
1179
|
+
public var mindfulSessions: [TerraSDK.MindfulSession]
|
|
1180
|
+
public var workoutContext: [TerraSDK.WorkoutContextSample]
|
|
1170
1181
|
public var intensityArrivals: [TerraSDK.WorkoutIntensityArrival]
|
|
1171
1182
|
public var routeArrivals: [TerraSDK.WorkoutRouteArrival]
|
|
1172
1183
|
public var body: [TerraSDK.BodyReading]
|
|
@@ -1263,8 +1274,11 @@ public protocol HealthStore : Swift.Sendable {
|
|
|
1263
1274
|
func intradaySamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.IntradaySample]
|
|
1264
1275
|
func sleep(in interval: Foundation.DateInterval) async throws -> [TerraSDK.SleepSegment]
|
|
1265
1276
|
func workouts(in interval: Foundation.DateInterval) async throws -> [TerraSDK.Workout]
|
|
1277
|
+
func mindfulSessions(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MindfulSession]
|
|
1266
1278
|
func workoutIntensity(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutIntensitySample]
|
|
1267
1279
|
func workoutRoutes(of workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutRoute]
|
|
1280
|
+
func workoutContext(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutContextSample]
|
|
1281
|
+
func dailyVitals(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1268
1282
|
func bodyReadings(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1269
1283
|
func bodyReadings(in interval: Foundation.DateInterval, recordTypes: Swift.Set<Swift.String>) async throws -> [TerraSDK.BodyReading]
|
|
1270
1284
|
func dietaryQuantities(in interval: Foundation.DateInterval) async throws -> [TerraSDK.DietaryQuantity]
|
|
@@ -1299,6 +1313,7 @@ extension TerraSDK.HealthStore {
|
|
|
1299
1313
|
public func menstruationFlow(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MenstruationFlowDay]
|
|
1300
1314
|
public func athleteProfile() async throws -> TerraSDK.AthleteProfile?
|
|
1301
1315
|
public func intradaySamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.IntradaySample]
|
|
1316
|
+
public func mindfulSessions(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MindfulSession]
|
|
1302
1317
|
public func menstrualEvents(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MenstrualEvent]
|
|
1303
1318
|
public func healthObservations(in interval: Foundation.DateInterval) async throws -> [TerraSDK.HealthObservation]
|
|
1304
1319
|
public var supportsHealthRecords: Swift.Bool {
|
|
@@ -1307,6 +1322,8 @@ extension TerraSDK.HealthStore {
|
|
|
1307
1322
|
public func requestClinicalAccess() async throws
|
|
1308
1323
|
public func workoutIntensity(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutIntensitySample]
|
|
1309
1324
|
public func workoutRoutes(of workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutRoute]
|
|
1325
|
+
public func workoutContext(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutContextSample]
|
|
1326
|
+
public func dailyVitals(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1310
1327
|
}
|
|
1311
1328
|
public struct KeychainDeviceStore : TerraSDK.DeviceStore {
|
|
1312
1329
|
public var storageDomain: Swift.String {
|
|
@@ -1656,20 +1673,51 @@ public struct Workout : Swift.Sendable, Swift.Equatable, Swift.Identifiable {
|
|
|
1656
1673
|
public let stats: TerraSDK.WorkoutStats?
|
|
1657
1674
|
public let events: [TerraSDK.WorkoutEvent]
|
|
1658
1675
|
public let title: Swift.String?
|
|
1659
|
-
public
|
|
1676
|
+
public let swimmingLocation: TerraSDK.SwimmingLocation?
|
|
1677
|
+
public let lapLengthMeters: Swift.Double?
|
|
1678
|
+
public init(id: Foundation.UUID, interval: Foundation.DateInterval, activity: TerraSDK.WorkoutActivity, activityTypeCode: Swift.Int, indoor: Swift.Bool = false, activeEnergyKilocalories: Swift.Double? = nil, distanceMeters: Swift.Double? = nil, source: TerraSDK.SampleSource, userEntered: Swift.Bool = false, timeZone: Foundation.TimeZone? = nil, stats: TerraSDK.WorkoutStats? = nil, events: [TerraSDK.WorkoutEvent] = [], title: Swift.String? = nil, swimmingLocation: TerraSDK.SwimmingLocation? = nil, lapLengthMeters: Swift.Double? = nil)
|
|
1660
1679
|
public static func == (a: TerraSDK.Workout, b: TerraSDK.Workout) -> Swift.Bool
|
|
1661
1680
|
public typealias ID = Foundation.UUID
|
|
1662
1681
|
}
|
|
1682
|
+
public struct MindfulSession : Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Identifiable {
|
|
1683
|
+
public let id: Foundation.UUID
|
|
1684
|
+
public let interval: Foundation.DateInterval
|
|
1685
|
+
public let source: TerraSDK.SampleSource
|
|
1686
|
+
public let userEntered: Swift.Bool
|
|
1687
|
+
public let timeZone: Foundation.TimeZone?
|
|
1688
|
+
public init(id: Foundation.UUID, interval: Foundation.DateInterval, source: TerraSDK.SampleSource, userEntered: Swift.Bool = false, timeZone: Foundation.TimeZone? = nil)
|
|
1689
|
+
public static func == (a: TerraSDK.MindfulSession, b: TerraSDK.MindfulSession) -> Swift.Bool
|
|
1690
|
+
public typealias ID = Foundation.UUID
|
|
1691
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1692
|
+
public var hashValue: Swift.Int {
|
|
1693
|
+
get
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
public enum SwimmingLocation : Swift.String, Swift.Sendable, Swift.Hashable, Swift.CaseIterable {
|
|
1697
|
+
case pool
|
|
1698
|
+
case openWater
|
|
1699
|
+
case unknown
|
|
1700
|
+
public init?(rawValue: Swift.String)
|
|
1701
|
+
public typealias AllCases = [TerraSDK.SwimmingLocation]
|
|
1702
|
+
public typealias RawValue = Swift.String
|
|
1703
|
+
nonisolated public static var allCases: [TerraSDK.SwimmingLocation] {
|
|
1704
|
+
get
|
|
1705
|
+
}
|
|
1706
|
+
public var rawValue: Swift.String {
|
|
1707
|
+
get
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1663
1710
|
public struct WorkoutStats : Swift.Sendable, Swift.Equatable {
|
|
1664
1711
|
public let steps: Swift.Int?
|
|
1665
1712
|
public let basalEnergyKilocalories: Swift.Double?
|
|
1666
1713
|
public let swimmingStrokes: Swift.Int?
|
|
1667
1714
|
public let swimmingLaps: Swift.Int?
|
|
1668
1715
|
public let elevationGainMeters: Swift.Double?
|
|
1716
|
+
public let flightsClimbed: Swift.Int?
|
|
1669
1717
|
public var isEmpty: Swift.Bool {
|
|
1670
1718
|
get
|
|
1671
1719
|
}
|
|
1672
|
-
public init(steps: Swift.Int? = nil, basalEnergyKilocalories: Swift.Double? = nil, swimmingStrokes: Swift.Int? = nil, swimmingLaps: Swift.Int? = nil, elevationGainMeters: Swift.Double? = nil)
|
|
1720
|
+
public init(steps: Swift.Int? = nil, basalEnergyKilocalories: Swift.Double? = nil, swimmingStrokes: Swift.Int? = nil, swimmingLaps: Swift.Int? = nil, elevationGainMeters: Swift.Double? = nil, flightsClimbed: Swift.Int? = nil)
|
|
1673
1721
|
public static func == (a: TerraSDK.WorkoutStats, b: TerraSDK.WorkoutStats) -> Swift.Bool
|
|
1674
1722
|
}
|
|
1675
1723
|
public struct WorkoutEvent : Swift.Sendable, Swift.Equatable {
|
|
@@ -1724,6 +1772,41 @@ public struct WorkoutIntensitySample : Swift.Sendable, Swift.Equatable, Swift.Id
|
|
|
1724
1772
|
public static func == (a: TerraSDK.WorkoutIntensitySample, b: TerraSDK.WorkoutIntensitySample) -> Swift.Bool
|
|
1725
1773
|
public typealias ID = Foundation.UUID
|
|
1726
1774
|
}
|
|
1775
|
+
public struct WorkoutContextSample : Swift.Sendable, Swift.Equatable, Swift.Identifiable {
|
|
1776
|
+
public enum Kind : Swift.String, Swift.Sendable, Swift.CaseIterable {
|
|
1777
|
+
case heartRate
|
|
1778
|
+
case heartRateVariability
|
|
1779
|
+
case distance
|
|
1780
|
+
case activeEnergy
|
|
1781
|
+
case floorsClimbed
|
|
1782
|
+
public var unit: Swift.String {
|
|
1783
|
+
get
|
|
1784
|
+
}
|
|
1785
|
+
public init?(rawValue: Swift.String)
|
|
1786
|
+
public typealias AllCases = [TerraSDK.WorkoutContextSample.Kind]
|
|
1787
|
+
public typealias RawValue = Swift.String
|
|
1788
|
+
nonisolated public static var allCases: [TerraSDK.WorkoutContextSample.Kind] {
|
|
1789
|
+
get
|
|
1790
|
+
}
|
|
1791
|
+
public var rawValue: Swift.String {
|
|
1792
|
+
get
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
public let id: Foundation.UUID
|
|
1796
|
+
public let kind: TerraSDK.WorkoutContextSample.Kind
|
|
1797
|
+
public let workoutId: Foundation.UUID
|
|
1798
|
+
public let interval: Foundation.DateInterval
|
|
1799
|
+
public let value: Swift.Double
|
|
1800
|
+
public let metric: Swift.String?
|
|
1801
|
+
public let motionContext: TerraSDK.MotionContext?
|
|
1802
|
+
public let source: TerraSDK.SampleSource
|
|
1803
|
+
public let userEntered: Swift.Bool
|
|
1804
|
+
public let timeZone: Foundation.TimeZone?
|
|
1805
|
+
public init(id: Foundation.UUID, kind: TerraSDK.WorkoutContextSample.Kind, workoutId: Foundation.UUID, interval: Foundation.DateInterval, value: Swift.Double, metric: Swift.String? = nil, motionContext: TerraSDK.MotionContext? = nil, source: TerraSDK.SampleSource, userEntered: Swift.Bool = false, timeZone: Foundation.TimeZone? = nil)
|
|
1806
|
+
public static func selected(_ candidates: [TerraSDK.WorkoutContextSample], inside workouts: [TerraSDK.Workout]) -> [TerraSDK.WorkoutContextSample]
|
|
1807
|
+
public static func == (a: TerraSDK.WorkoutContextSample, b: TerraSDK.WorkoutContextSample) -> Swift.Bool
|
|
1808
|
+
public typealias ID = Foundation.UUID
|
|
1809
|
+
}
|
|
1727
1810
|
public enum WorkoutActivity : Swift.Sendable, Swift.Hashable {
|
|
1728
1811
|
case running
|
|
1729
1812
|
case walking
|
|
@@ -1830,7 +1913,11 @@ public struct RoutePoint : Swift.Sendable, Swift.Equatable, Swift.Hashable {
|
|
|
1830
1913
|
public let time: Foundation.Date
|
|
1831
1914
|
public let latitude: Swift.Double
|
|
1832
1915
|
public let longitude: Swift.Double
|
|
1833
|
-
public
|
|
1916
|
+
public let altitudeMeters: Swift.Double?
|
|
1917
|
+
public let speedMetersPerSecond: Swift.Double?
|
|
1918
|
+
public let courseDegrees: Swift.Double?
|
|
1919
|
+
public let horizontalAccuracyMeters: Swift.Double?
|
|
1920
|
+
public init(time: Foundation.Date, latitude: Swift.Double, longitude: Swift.Double, altitudeMeters: Swift.Double? = nil, speedMetersPerSecond: Swift.Double? = nil, courseDegrees: Swift.Double? = nil, horizontalAccuracyMeters: Swift.Double? = nil)
|
|
1834
1921
|
public static func == (a: TerraSDK.RoutePoint, b: TerraSDK.RoutePoint) -> Swift.Bool
|
|
1835
1922
|
public func hash(into hasher: inout Swift.Hasher)
|
|
1836
1923
|
public var hashValue: Swift.Int {
|
|
@@ -2499,12 +2586,16 @@ extension TerraSDK.Nutrient : Swift.RawRepresentable {}
|
|
|
2499
2586
|
extension TerraSDK.DeviceType : Swift.RawRepresentable {}
|
|
2500
2587
|
extension TerraSDK.MotionContext : Swift.Hashable {}
|
|
2501
2588
|
extension TerraSDK.MotionContext : Swift.RawRepresentable {}
|
|
2589
|
+
extension TerraSDK.SwimmingLocation : Swift.RawRepresentable {}
|
|
2502
2590
|
extension TerraSDK.WorkoutEvent.Kind : Swift.Equatable {}
|
|
2503
2591
|
extension TerraSDK.WorkoutEvent.Kind : Swift.Hashable {}
|
|
2504
2592
|
extension TerraSDK.WorkoutEvent.Kind : Swift.RawRepresentable {}
|
|
2505
2593
|
extension TerraSDK.WorkoutIntensitySample.Kind : Swift.Equatable {}
|
|
2506
2594
|
extension TerraSDK.WorkoutIntensitySample.Kind : Swift.Hashable {}
|
|
2507
2595
|
extension TerraSDK.WorkoutIntensitySample.Kind : Swift.RawRepresentable {}
|
|
2596
|
+
extension TerraSDK.WorkoutContextSample.Kind : Swift.Equatable {}
|
|
2597
|
+
extension TerraSDK.WorkoutContextSample.Kind : Swift.Hashable {}
|
|
2598
|
+
extension TerraSDK.WorkoutContextSample.Kind : Swift.RawRepresentable {}
|
|
2508
2599
|
extension TerraSDK.DayTotal.Metric : Swift.Equatable {}
|
|
2509
2600
|
extension TerraSDK.DayTotal.Metric : Swift.Hashable {}
|
|
2510
2601
|
extension TerraSDK.DayTotal.Metric : Swift.RawRepresentable {}
|
|
@@ -460,7 +460,11 @@ public struct Electrocardiogram : Swift.Sendable, Swift.Equatable, Swift.Hashabl
|
|
|
460
460
|
public let averageHeartRate: Swift.Double?
|
|
461
461
|
public let samplingFrequencyHz: Swift.Double?
|
|
462
462
|
public let symptomsStatus: TerraSDK.Electrocardiogram.SymptomsStatus?
|
|
463
|
-
public
|
|
463
|
+
public let voltagesMicrovolts: [Swift.Double]?
|
|
464
|
+
public init(classification: TerraSDK.Electrocardiogram.Classification, averageHeartRate: Swift.Double? = nil, samplingFrequencyHz: Swift.Double? = nil, symptomsStatus: TerraSDK.Electrocardiogram.SymptomsStatus? = nil, voltagesMicrovolts: [Swift.Double]? = nil)
|
|
465
|
+
public static let maximumVoltages: Swift.Int
|
|
466
|
+
public static let maximumPerAnchoredPage: Swift.Int
|
|
467
|
+
public func withVoltages(_ voltages: [Swift.Double]?) -> TerraSDK.Electrocardiogram
|
|
464
468
|
public static func == (a: TerraSDK.Electrocardiogram, b: TerraSDK.Electrocardiogram) -> Swift.Bool
|
|
465
469
|
public func hash(into hasher: inout Swift.Hasher)
|
|
466
470
|
public var hashValue: Swift.Int {
|
|
@@ -941,6 +945,7 @@ public enum HealthDataType : Swift.String, Swift.Sendable, Swift.Hashable, Swift
|
|
|
941
945
|
case speed
|
|
942
946
|
case power
|
|
943
947
|
case cyclingCadence
|
|
948
|
+
case mindfulSession
|
|
944
949
|
case weight
|
|
945
950
|
case height
|
|
946
951
|
case bmi
|
|
@@ -1040,6 +1045,7 @@ public enum HealthDataType : Swift.String, Swift.Sendable, Swift.Hashable, Swift
|
|
|
1040
1045
|
extension TerraSDK.HealthDataType {
|
|
1041
1046
|
@_spi(TestRig) public init(_ kind: TerraSDK.IntradaySample.Kind)
|
|
1042
1047
|
@_spi(TestRig) public init(_ kind: TerraSDK.WorkoutIntensitySample.Kind)
|
|
1048
|
+
@_spi(TestRig) public init(_ kind: TerraSDK.WorkoutContextSample.Kind)
|
|
1043
1049
|
@_spi(TestRig) public init(_ kind: TerraSDK.MenstrualEvent.Kind)
|
|
1044
1050
|
@_spi(TestRig) public init(_ kind: TerraSDK.BodyReading.Kind)
|
|
1045
1051
|
}
|
|
@@ -1059,6 +1065,8 @@ extension TerraSDK.HealthKitStore {
|
|
|
1059
1065
|
public func healthObservations(in interval: Foundation.DateInterval) async throws -> [TerraSDK.HealthObservation]
|
|
1060
1066
|
public func athleteProfile() async throws -> TerraSDK.AthleteProfile?
|
|
1061
1067
|
public func workoutIntensity(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutIntensitySample]
|
|
1068
|
+
public func workoutContext(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutContextSample]
|
|
1069
|
+
public func dailyVitals(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1062
1070
|
public func workoutRoutes(of workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutRoute]
|
|
1063
1071
|
}
|
|
1064
1072
|
extension TerraSDK.HealthKitStore {
|
|
@@ -1089,6 +1097,7 @@ extension TerraSDK.HealthKitStore {
|
|
|
1089
1097
|
public func stepSamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.StepCount]
|
|
1090
1098
|
public func intradaySamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.IntradaySample]
|
|
1091
1099
|
public func sleep(in interval: Foundation.DateInterval) async throws -> [TerraSDK.SleepSegment]
|
|
1100
|
+
public func mindfulSessions(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MindfulSession]
|
|
1092
1101
|
public func workouts(in interval: Foundation.DateInterval) async throws -> [TerraSDK.Workout]
|
|
1093
1102
|
nonisolated public func observe(_ category: TerraSDK.DataCategory, source: TerraSDK.Source) -> _Concurrency.AsyncStream<TerraSDK.ObservedWake>
|
|
1094
1103
|
public func enableBackgroundObservation(_ category: TerraSDK.DataCategory, source: TerraSDK.Source) async -> Swift.Bool
|
|
@@ -1167,6 +1176,8 @@ public struct HealthChanges : Swift.Sendable {
|
|
|
1167
1176
|
public var workouts: [TerraSDK.Workout]
|
|
1168
1177
|
public var workoutIntensity: [TerraSDK.WorkoutIntensitySample]
|
|
1169
1178
|
public var workoutRoutes: [TerraSDK.WorkoutRoute]
|
|
1179
|
+
public var mindfulSessions: [TerraSDK.MindfulSession]
|
|
1180
|
+
public var workoutContext: [TerraSDK.WorkoutContextSample]
|
|
1170
1181
|
public var intensityArrivals: [TerraSDK.WorkoutIntensityArrival]
|
|
1171
1182
|
public var routeArrivals: [TerraSDK.WorkoutRouteArrival]
|
|
1172
1183
|
public var body: [TerraSDK.BodyReading]
|
|
@@ -1263,8 +1274,11 @@ public protocol HealthStore : Swift.Sendable {
|
|
|
1263
1274
|
func intradaySamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.IntradaySample]
|
|
1264
1275
|
func sleep(in interval: Foundation.DateInterval) async throws -> [TerraSDK.SleepSegment]
|
|
1265
1276
|
func workouts(in interval: Foundation.DateInterval) async throws -> [TerraSDK.Workout]
|
|
1277
|
+
func mindfulSessions(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MindfulSession]
|
|
1266
1278
|
func workoutIntensity(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutIntensitySample]
|
|
1267
1279
|
func workoutRoutes(of workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutRoute]
|
|
1280
|
+
func workoutContext(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutContextSample]
|
|
1281
|
+
func dailyVitals(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1268
1282
|
func bodyReadings(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1269
1283
|
func bodyReadings(in interval: Foundation.DateInterval, recordTypes: Swift.Set<Swift.String>) async throws -> [TerraSDK.BodyReading]
|
|
1270
1284
|
func dietaryQuantities(in interval: Foundation.DateInterval) async throws -> [TerraSDK.DietaryQuantity]
|
|
@@ -1299,6 +1313,7 @@ extension TerraSDK.HealthStore {
|
|
|
1299
1313
|
public func menstruationFlow(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MenstruationFlowDay]
|
|
1300
1314
|
public func athleteProfile() async throws -> TerraSDK.AthleteProfile?
|
|
1301
1315
|
public func intradaySamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.IntradaySample]
|
|
1316
|
+
public func mindfulSessions(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MindfulSession]
|
|
1302
1317
|
public func menstrualEvents(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MenstrualEvent]
|
|
1303
1318
|
public func healthObservations(in interval: Foundation.DateInterval) async throws -> [TerraSDK.HealthObservation]
|
|
1304
1319
|
public var supportsHealthRecords: Swift.Bool {
|
|
@@ -1307,6 +1322,8 @@ extension TerraSDK.HealthStore {
|
|
|
1307
1322
|
public func requestClinicalAccess() async throws
|
|
1308
1323
|
public func workoutIntensity(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutIntensitySample]
|
|
1309
1324
|
public func workoutRoutes(of workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutRoute]
|
|
1325
|
+
public func workoutContext(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutContextSample]
|
|
1326
|
+
public func dailyVitals(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1310
1327
|
}
|
|
1311
1328
|
public struct KeychainDeviceStore : TerraSDK.DeviceStore {
|
|
1312
1329
|
public var storageDomain: Swift.String {
|
|
@@ -1656,20 +1673,51 @@ public struct Workout : Swift.Sendable, Swift.Equatable, Swift.Identifiable {
|
|
|
1656
1673
|
public let stats: TerraSDK.WorkoutStats?
|
|
1657
1674
|
public let events: [TerraSDK.WorkoutEvent]
|
|
1658
1675
|
public let title: Swift.String?
|
|
1659
|
-
public
|
|
1676
|
+
public let swimmingLocation: TerraSDK.SwimmingLocation?
|
|
1677
|
+
public let lapLengthMeters: Swift.Double?
|
|
1678
|
+
public init(id: Foundation.UUID, interval: Foundation.DateInterval, activity: TerraSDK.WorkoutActivity, activityTypeCode: Swift.Int, indoor: Swift.Bool = false, activeEnergyKilocalories: Swift.Double? = nil, distanceMeters: Swift.Double? = nil, source: TerraSDK.SampleSource, userEntered: Swift.Bool = false, timeZone: Foundation.TimeZone? = nil, stats: TerraSDK.WorkoutStats? = nil, events: [TerraSDK.WorkoutEvent] = [], title: Swift.String? = nil, swimmingLocation: TerraSDK.SwimmingLocation? = nil, lapLengthMeters: Swift.Double? = nil)
|
|
1660
1679
|
public static func == (a: TerraSDK.Workout, b: TerraSDK.Workout) -> Swift.Bool
|
|
1661
1680
|
public typealias ID = Foundation.UUID
|
|
1662
1681
|
}
|
|
1682
|
+
public struct MindfulSession : Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Identifiable {
|
|
1683
|
+
public let id: Foundation.UUID
|
|
1684
|
+
public let interval: Foundation.DateInterval
|
|
1685
|
+
public let source: TerraSDK.SampleSource
|
|
1686
|
+
public let userEntered: Swift.Bool
|
|
1687
|
+
public let timeZone: Foundation.TimeZone?
|
|
1688
|
+
public init(id: Foundation.UUID, interval: Foundation.DateInterval, source: TerraSDK.SampleSource, userEntered: Swift.Bool = false, timeZone: Foundation.TimeZone? = nil)
|
|
1689
|
+
public static func == (a: TerraSDK.MindfulSession, b: TerraSDK.MindfulSession) -> Swift.Bool
|
|
1690
|
+
public typealias ID = Foundation.UUID
|
|
1691
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1692
|
+
public var hashValue: Swift.Int {
|
|
1693
|
+
get
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
public enum SwimmingLocation : Swift.String, Swift.Sendable, Swift.Hashable, Swift.CaseIterable {
|
|
1697
|
+
case pool
|
|
1698
|
+
case openWater
|
|
1699
|
+
case unknown
|
|
1700
|
+
public init?(rawValue: Swift.String)
|
|
1701
|
+
public typealias AllCases = [TerraSDK.SwimmingLocation]
|
|
1702
|
+
public typealias RawValue = Swift.String
|
|
1703
|
+
nonisolated public static var allCases: [TerraSDK.SwimmingLocation] {
|
|
1704
|
+
get
|
|
1705
|
+
}
|
|
1706
|
+
public var rawValue: Swift.String {
|
|
1707
|
+
get
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1663
1710
|
public struct WorkoutStats : Swift.Sendable, Swift.Equatable {
|
|
1664
1711
|
public let steps: Swift.Int?
|
|
1665
1712
|
public let basalEnergyKilocalories: Swift.Double?
|
|
1666
1713
|
public let swimmingStrokes: Swift.Int?
|
|
1667
1714
|
public let swimmingLaps: Swift.Int?
|
|
1668
1715
|
public let elevationGainMeters: Swift.Double?
|
|
1716
|
+
public let flightsClimbed: Swift.Int?
|
|
1669
1717
|
public var isEmpty: Swift.Bool {
|
|
1670
1718
|
get
|
|
1671
1719
|
}
|
|
1672
|
-
public init(steps: Swift.Int? = nil, basalEnergyKilocalories: Swift.Double? = nil, swimmingStrokes: Swift.Int? = nil, swimmingLaps: Swift.Int? = nil, elevationGainMeters: Swift.Double? = nil)
|
|
1720
|
+
public init(steps: Swift.Int? = nil, basalEnergyKilocalories: Swift.Double? = nil, swimmingStrokes: Swift.Int? = nil, swimmingLaps: Swift.Int? = nil, elevationGainMeters: Swift.Double? = nil, flightsClimbed: Swift.Int? = nil)
|
|
1673
1721
|
public static func == (a: TerraSDK.WorkoutStats, b: TerraSDK.WorkoutStats) -> Swift.Bool
|
|
1674
1722
|
}
|
|
1675
1723
|
public struct WorkoutEvent : Swift.Sendable, Swift.Equatable {
|
|
@@ -1724,6 +1772,41 @@ public struct WorkoutIntensitySample : Swift.Sendable, Swift.Equatable, Swift.Id
|
|
|
1724
1772
|
public static func == (a: TerraSDK.WorkoutIntensitySample, b: TerraSDK.WorkoutIntensitySample) -> Swift.Bool
|
|
1725
1773
|
public typealias ID = Foundation.UUID
|
|
1726
1774
|
}
|
|
1775
|
+
public struct WorkoutContextSample : Swift.Sendable, Swift.Equatable, Swift.Identifiable {
|
|
1776
|
+
public enum Kind : Swift.String, Swift.Sendable, Swift.CaseIterable {
|
|
1777
|
+
case heartRate
|
|
1778
|
+
case heartRateVariability
|
|
1779
|
+
case distance
|
|
1780
|
+
case activeEnergy
|
|
1781
|
+
case floorsClimbed
|
|
1782
|
+
public var unit: Swift.String {
|
|
1783
|
+
get
|
|
1784
|
+
}
|
|
1785
|
+
public init?(rawValue: Swift.String)
|
|
1786
|
+
public typealias AllCases = [TerraSDK.WorkoutContextSample.Kind]
|
|
1787
|
+
public typealias RawValue = Swift.String
|
|
1788
|
+
nonisolated public static var allCases: [TerraSDK.WorkoutContextSample.Kind] {
|
|
1789
|
+
get
|
|
1790
|
+
}
|
|
1791
|
+
public var rawValue: Swift.String {
|
|
1792
|
+
get
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
public let id: Foundation.UUID
|
|
1796
|
+
public let kind: TerraSDK.WorkoutContextSample.Kind
|
|
1797
|
+
public let workoutId: Foundation.UUID
|
|
1798
|
+
public let interval: Foundation.DateInterval
|
|
1799
|
+
public let value: Swift.Double
|
|
1800
|
+
public let metric: Swift.String?
|
|
1801
|
+
public let motionContext: TerraSDK.MotionContext?
|
|
1802
|
+
public let source: TerraSDK.SampleSource
|
|
1803
|
+
public let userEntered: Swift.Bool
|
|
1804
|
+
public let timeZone: Foundation.TimeZone?
|
|
1805
|
+
public init(id: Foundation.UUID, kind: TerraSDK.WorkoutContextSample.Kind, workoutId: Foundation.UUID, interval: Foundation.DateInterval, value: Swift.Double, metric: Swift.String? = nil, motionContext: TerraSDK.MotionContext? = nil, source: TerraSDK.SampleSource, userEntered: Swift.Bool = false, timeZone: Foundation.TimeZone? = nil)
|
|
1806
|
+
public static func selected(_ candidates: [TerraSDK.WorkoutContextSample], inside workouts: [TerraSDK.Workout]) -> [TerraSDK.WorkoutContextSample]
|
|
1807
|
+
public static func == (a: TerraSDK.WorkoutContextSample, b: TerraSDK.WorkoutContextSample) -> Swift.Bool
|
|
1808
|
+
public typealias ID = Foundation.UUID
|
|
1809
|
+
}
|
|
1727
1810
|
public enum WorkoutActivity : Swift.Sendable, Swift.Hashable {
|
|
1728
1811
|
case running
|
|
1729
1812
|
case walking
|
|
@@ -1830,7 +1913,11 @@ public struct RoutePoint : Swift.Sendable, Swift.Equatable, Swift.Hashable {
|
|
|
1830
1913
|
public let time: Foundation.Date
|
|
1831
1914
|
public let latitude: Swift.Double
|
|
1832
1915
|
public let longitude: Swift.Double
|
|
1833
|
-
public
|
|
1916
|
+
public let altitudeMeters: Swift.Double?
|
|
1917
|
+
public let speedMetersPerSecond: Swift.Double?
|
|
1918
|
+
public let courseDegrees: Swift.Double?
|
|
1919
|
+
public let horizontalAccuracyMeters: Swift.Double?
|
|
1920
|
+
public init(time: Foundation.Date, latitude: Swift.Double, longitude: Swift.Double, altitudeMeters: Swift.Double? = nil, speedMetersPerSecond: Swift.Double? = nil, courseDegrees: Swift.Double? = nil, horizontalAccuracyMeters: Swift.Double? = nil)
|
|
1834
1921
|
public static func == (a: TerraSDK.RoutePoint, b: TerraSDK.RoutePoint) -> Swift.Bool
|
|
1835
1922
|
public func hash(into hasher: inout Swift.Hasher)
|
|
1836
1923
|
public var hashValue: Swift.Int {
|
|
@@ -2499,12 +2586,16 @@ extension TerraSDK.Nutrient : Swift.RawRepresentable {}
|
|
|
2499
2586
|
extension TerraSDK.DeviceType : Swift.RawRepresentable {}
|
|
2500
2587
|
extension TerraSDK.MotionContext : Swift.Hashable {}
|
|
2501
2588
|
extension TerraSDK.MotionContext : Swift.RawRepresentable {}
|
|
2589
|
+
extension TerraSDK.SwimmingLocation : Swift.RawRepresentable {}
|
|
2502
2590
|
extension TerraSDK.WorkoutEvent.Kind : Swift.Equatable {}
|
|
2503
2591
|
extension TerraSDK.WorkoutEvent.Kind : Swift.Hashable {}
|
|
2504
2592
|
extension TerraSDK.WorkoutEvent.Kind : Swift.RawRepresentable {}
|
|
2505
2593
|
extension TerraSDK.WorkoutIntensitySample.Kind : Swift.Equatable {}
|
|
2506
2594
|
extension TerraSDK.WorkoutIntensitySample.Kind : Swift.Hashable {}
|
|
2507
2595
|
extension TerraSDK.WorkoutIntensitySample.Kind : Swift.RawRepresentable {}
|
|
2596
|
+
extension TerraSDK.WorkoutContextSample.Kind : Swift.Equatable {}
|
|
2597
|
+
extension TerraSDK.WorkoutContextSample.Kind : Swift.Hashable {}
|
|
2598
|
+
extension TerraSDK.WorkoutContextSample.Kind : Swift.RawRepresentable {}
|
|
2508
2599
|
extension TerraSDK.DayTotal.Metric : Swift.Equatable {}
|
|
2509
2600
|
extension TerraSDK.DayTotal.Metric : Swift.Hashable {}
|
|
2510
2601
|
extension TerraSDK.DayTotal.Metric : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -460,7 +460,11 @@ public struct Electrocardiogram : Swift.Sendable, Swift.Equatable, Swift.Hashabl
|
|
|
460
460
|
public let averageHeartRate: Swift.Double?
|
|
461
461
|
public let samplingFrequencyHz: Swift.Double?
|
|
462
462
|
public let symptomsStatus: TerraSDK.Electrocardiogram.SymptomsStatus?
|
|
463
|
-
public
|
|
463
|
+
public let voltagesMicrovolts: [Swift.Double]?
|
|
464
|
+
public init(classification: TerraSDK.Electrocardiogram.Classification, averageHeartRate: Swift.Double? = nil, samplingFrequencyHz: Swift.Double? = nil, symptomsStatus: TerraSDK.Electrocardiogram.SymptomsStatus? = nil, voltagesMicrovolts: [Swift.Double]? = nil)
|
|
465
|
+
public static let maximumVoltages: Swift.Int
|
|
466
|
+
public static let maximumPerAnchoredPage: Swift.Int
|
|
467
|
+
public func withVoltages(_ voltages: [Swift.Double]?) -> TerraSDK.Electrocardiogram
|
|
464
468
|
public static func == (a: TerraSDK.Electrocardiogram, b: TerraSDK.Electrocardiogram) -> Swift.Bool
|
|
465
469
|
public func hash(into hasher: inout Swift.Hasher)
|
|
466
470
|
public var hashValue: Swift.Int {
|
|
@@ -932,6 +936,7 @@ public enum HealthDataType : Swift.String, Swift.Sendable, Swift.Hashable, Swift
|
|
|
932
936
|
case speed
|
|
933
937
|
case power
|
|
934
938
|
case cyclingCadence
|
|
939
|
+
case mindfulSession
|
|
935
940
|
case weight
|
|
936
941
|
case height
|
|
937
942
|
case bmi
|
|
@@ -1044,6 +1049,8 @@ extension TerraSDK.HealthKitStore {
|
|
|
1044
1049
|
public func healthObservations(in interval: Foundation.DateInterval) async throws -> [TerraSDK.HealthObservation]
|
|
1045
1050
|
public func athleteProfile() async throws -> TerraSDK.AthleteProfile?
|
|
1046
1051
|
public func workoutIntensity(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutIntensitySample]
|
|
1052
|
+
public func workoutContext(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutContextSample]
|
|
1053
|
+
public func dailyVitals(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1047
1054
|
public func workoutRoutes(of workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutRoute]
|
|
1048
1055
|
}
|
|
1049
1056
|
extension TerraSDK.HealthKitStore {
|
|
@@ -1074,6 +1081,7 @@ extension TerraSDK.HealthKitStore {
|
|
|
1074
1081
|
public func stepSamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.StepCount]
|
|
1075
1082
|
public func intradaySamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.IntradaySample]
|
|
1076
1083
|
public func sleep(in interval: Foundation.DateInterval) async throws -> [TerraSDK.SleepSegment]
|
|
1084
|
+
public func mindfulSessions(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MindfulSession]
|
|
1077
1085
|
public func workouts(in interval: Foundation.DateInterval) async throws -> [TerraSDK.Workout]
|
|
1078
1086
|
nonisolated public func observe(_ category: TerraSDK.DataCategory, source: TerraSDK.Source) -> _Concurrency.AsyncStream<TerraSDK.ObservedWake>
|
|
1079
1087
|
public func enableBackgroundObservation(_ category: TerraSDK.DataCategory, source: TerraSDK.Source) async -> Swift.Bool
|
|
@@ -1152,6 +1160,8 @@ public struct HealthChanges : Swift.Sendable {
|
|
|
1152
1160
|
public var workouts: [TerraSDK.Workout]
|
|
1153
1161
|
public var workoutIntensity: [TerraSDK.WorkoutIntensitySample]
|
|
1154
1162
|
public var workoutRoutes: [TerraSDK.WorkoutRoute]
|
|
1163
|
+
public var mindfulSessions: [TerraSDK.MindfulSession]
|
|
1164
|
+
public var workoutContext: [TerraSDK.WorkoutContextSample]
|
|
1155
1165
|
public var intensityArrivals: [TerraSDK.WorkoutIntensityArrival]
|
|
1156
1166
|
public var routeArrivals: [TerraSDK.WorkoutRouteArrival]
|
|
1157
1167
|
public var body: [TerraSDK.BodyReading]
|
|
@@ -1237,8 +1247,11 @@ public protocol HealthStore : Swift.Sendable {
|
|
|
1237
1247
|
func intradaySamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.IntradaySample]
|
|
1238
1248
|
func sleep(in interval: Foundation.DateInterval) async throws -> [TerraSDK.SleepSegment]
|
|
1239
1249
|
func workouts(in interval: Foundation.DateInterval) async throws -> [TerraSDK.Workout]
|
|
1250
|
+
func mindfulSessions(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MindfulSession]
|
|
1240
1251
|
func workoutIntensity(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutIntensitySample]
|
|
1241
1252
|
func workoutRoutes(of workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutRoute]
|
|
1253
|
+
func workoutContext(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutContextSample]
|
|
1254
|
+
func dailyVitals(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1242
1255
|
func bodyReadings(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1243
1256
|
func bodyReadings(in interval: Foundation.DateInterval, recordTypes: Swift.Set<Swift.String>) async throws -> [TerraSDK.BodyReading]
|
|
1244
1257
|
func dietaryQuantities(in interval: Foundation.DateInterval) async throws -> [TerraSDK.DietaryQuantity]
|
|
@@ -1273,6 +1286,7 @@ extension TerraSDK.HealthStore {
|
|
|
1273
1286
|
public func menstruationFlow(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MenstruationFlowDay]
|
|
1274
1287
|
public func athleteProfile() async throws -> TerraSDK.AthleteProfile?
|
|
1275
1288
|
public func intradaySamples(in interval: Foundation.DateInterval) async throws -> [TerraSDK.IntradaySample]
|
|
1289
|
+
public func mindfulSessions(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MindfulSession]
|
|
1276
1290
|
public func menstrualEvents(in interval: Foundation.DateInterval) async throws -> [TerraSDK.MenstrualEvent]
|
|
1277
1291
|
public func healthObservations(in interval: Foundation.DateInterval) async throws -> [TerraSDK.HealthObservation]
|
|
1278
1292
|
public var supportsHealthRecords: Swift.Bool {
|
|
@@ -1281,6 +1295,8 @@ extension TerraSDK.HealthStore {
|
|
|
1281
1295
|
public func requestClinicalAccess() async throws
|
|
1282
1296
|
public func workoutIntensity(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutIntensitySample]
|
|
1283
1297
|
public func workoutRoutes(of workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutRoute]
|
|
1298
|
+
public func workoutContext(inside workouts: [TerraSDK.Workout]) async throws -> [TerraSDK.WorkoutContextSample]
|
|
1299
|
+
public func dailyVitals(in interval: Foundation.DateInterval) async throws -> [TerraSDK.BodyReading]
|
|
1284
1300
|
}
|
|
1285
1301
|
public struct KeychainDeviceStore : TerraSDK.DeviceStore {
|
|
1286
1302
|
public var storageDomain: Swift.String {
|
|
@@ -1628,20 +1644,51 @@ public struct Workout : Swift.Sendable, Swift.Equatable, Swift.Identifiable {
|
|
|
1628
1644
|
public let stats: TerraSDK.WorkoutStats?
|
|
1629
1645
|
public let events: [TerraSDK.WorkoutEvent]
|
|
1630
1646
|
public let title: Swift.String?
|
|
1631
|
-
public
|
|
1647
|
+
public let swimmingLocation: TerraSDK.SwimmingLocation?
|
|
1648
|
+
public let lapLengthMeters: Swift.Double?
|
|
1649
|
+
public init(id: Foundation.UUID, interval: Foundation.DateInterval, activity: TerraSDK.WorkoutActivity, activityTypeCode: Swift.Int, indoor: Swift.Bool = false, activeEnergyKilocalories: Swift.Double? = nil, distanceMeters: Swift.Double? = nil, source: TerraSDK.SampleSource, userEntered: Swift.Bool = false, timeZone: Foundation.TimeZone? = nil, stats: TerraSDK.WorkoutStats? = nil, events: [TerraSDK.WorkoutEvent] = [], title: Swift.String? = nil, swimmingLocation: TerraSDK.SwimmingLocation? = nil, lapLengthMeters: Swift.Double? = nil)
|
|
1632
1650
|
public static func == (a: TerraSDK.Workout, b: TerraSDK.Workout) -> Swift.Bool
|
|
1633
1651
|
public typealias ID = Foundation.UUID
|
|
1634
1652
|
}
|
|
1653
|
+
public struct MindfulSession : Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Identifiable {
|
|
1654
|
+
public let id: Foundation.UUID
|
|
1655
|
+
public let interval: Foundation.DateInterval
|
|
1656
|
+
public let source: TerraSDK.SampleSource
|
|
1657
|
+
public let userEntered: Swift.Bool
|
|
1658
|
+
public let timeZone: Foundation.TimeZone?
|
|
1659
|
+
public init(id: Foundation.UUID, interval: Foundation.DateInterval, source: TerraSDK.SampleSource, userEntered: Swift.Bool = false, timeZone: Foundation.TimeZone? = nil)
|
|
1660
|
+
public static func == (a: TerraSDK.MindfulSession, b: TerraSDK.MindfulSession) -> Swift.Bool
|
|
1661
|
+
public typealias ID = Foundation.UUID
|
|
1662
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1663
|
+
public var hashValue: Swift.Int {
|
|
1664
|
+
get
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
public enum SwimmingLocation : Swift.String, Swift.Sendable, Swift.Hashable, Swift.CaseIterable {
|
|
1668
|
+
case pool
|
|
1669
|
+
case openWater
|
|
1670
|
+
case unknown
|
|
1671
|
+
public init?(rawValue: Swift.String)
|
|
1672
|
+
public typealias AllCases = [TerraSDK.SwimmingLocation]
|
|
1673
|
+
public typealias RawValue = Swift.String
|
|
1674
|
+
nonisolated public static var allCases: [TerraSDK.SwimmingLocation] {
|
|
1675
|
+
get
|
|
1676
|
+
}
|
|
1677
|
+
public var rawValue: Swift.String {
|
|
1678
|
+
get
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1635
1681
|
public struct WorkoutStats : Swift.Sendable, Swift.Equatable {
|
|
1636
1682
|
public let steps: Swift.Int?
|
|
1637
1683
|
public let basalEnergyKilocalories: Swift.Double?
|
|
1638
1684
|
public let swimmingStrokes: Swift.Int?
|
|
1639
1685
|
public let swimmingLaps: Swift.Int?
|
|
1640
1686
|
public let elevationGainMeters: Swift.Double?
|
|
1687
|
+
public let flightsClimbed: Swift.Int?
|
|
1641
1688
|
public var isEmpty: Swift.Bool {
|
|
1642
1689
|
get
|
|
1643
1690
|
}
|
|
1644
|
-
public init(steps: Swift.Int? = nil, basalEnergyKilocalories: Swift.Double? = nil, swimmingStrokes: Swift.Int? = nil, swimmingLaps: Swift.Int? = nil, elevationGainMeters: Swift.Double? = nil)
|
|
1691
|
+
public init(steps: Swift.Int? = nil, basalEnergyKilocalories: Swift.Double? = nil, swimmingStrokes: Swift.Int? = nil, swimmingLaps: Swift.Int? = nil, elevationGainMeters: Swift.Double? = nil, flightsClimbed: Swift.Int? = nil)
|
|
1645
1692
|
public static func == (a: TerraSDK.WorkoutStats, b: TerraSDK.WorkoutStats) -> Swift.Bool
|
|
1646
1693
|
}
|
|
1647
1694
|
public struct WorkoutEvent : Swift.Sendable, Swift.Equatable {
|
|
@@ -1696,6 +1743,41 @@ public struct WorkoutIntensitySample : Swift.Sendable, Swift.Equatable, Swift.Id
|
|
|
1696
1743
|
public static func == (a: TerraSDK.WorkoutIntensitySample, b: TerraSDK.WorkoutIntensitySample) -> Swift.Bool
|
|
1697
1744
|
public typealias ID = Foundation.UUID
|
|
1698
1745
|
}
|
|
1746
|
+
public struct WorkoutContextSample : Swift.Sendable, Swift.Equatable, Swift.Identifiable {
|
|
1747
|
+
public enum Kind : Swift.String, Swift.Sendable, Swift.CaseIterable {
|
|
1748
|
+
case heartRate
|
|
1749
|
+
case heartRateVariability
|
|
1750
|
+
case distance
|
|
1751
|
+
case activeEnergy
|
|
1752
|
+
case floorsClimbed
|
|
1753
|
+
public var unit: Swift.String {
|
|
1754
|
+
get
|
|
1755
|
+
}
|
|
1756
|
+
public init?(rawValue: Swift.String)
|
|
1757
|
+
public typealias AllCases = [TerraSDK.WorkoutContextSample.Kind]
|
|
1758
|
+
public typealias RawValue = Swift.String
|
|
1759
|
+
nonisolated public static var allCases: [TerraSDK.WorkoutContextSample.Kind] {
|
|
1760
|
+
get
|
|
1761
|
+
}
|
|
1762
|
+
public var rawValue: Swift.String {
|
|
1763
|
+
get
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
public let id: Foundation.UUID
|
|
1767
|
+
public let kind: TerraSDK.WorkoutContextSample.Kind
|
|
1768
|
+
public let workoutId: Foundation.UUID
|
|
1769
|
+
public let interval: Foundation.DateInterval
|
|
1770
|
+
public let value: Swift.Double
|
|
1771
|
+
public let metric: Swift.String?
|
|
1772
|
+
public let motionContext: TerraSDK.MotionContext?
|
|
1773
|
+
public let source: TerraSDK.SampleSource
|
|
1774
|
+
public let userEntered: Swift.Bool
|
|
1775
|
+
public let timeZone: Foundation.TimeZone?
|
|
1776
|
+
public init(id: Foundation.UUID, kind: TerraSDK.WorkoutContextSample.Kind, workoutId: Foundation.UUID, interval: Foundation.DateInterval, value: Swift.Double, metric: Swift.String? = nil, motionContext: TerraSDK.MotionContext? = nil, source: TerraSDK.SampleSource, userEntered: Swift.Bool = false, timeZone: Foundation.TimeZone? = nil)
|
|
1777
|
+
public static func selected(_ candidates: [TerraSDK.WorkoutContextSample], inside workouts: [TerraSDK.Workout]) -> [TerraSDK.WorkoutContextSample]
|
|
1778
|
+
public static func == (a: TerraSDK.WorkoutContextSample, b: TerraSDK.WorkoutContextSample) -> Swift.Bool
|
|
1779
|
+
public typealias ID = Foundation.UUID
|
|
1780
|
+
}
|
|
1699
1781
|
public enum WorkoutActivity : Swift.Sendable, Swift.Hashable {
|
|
1700
1782
|
case running
|
|
1701
1783
|
case walking
|
|
@@ -1802,7 +1884,11 @@ public struct RoutePoint : Swift.Sendable, Swift.Equatable, Swift.Hashable {
|
|
|
1802
1884
|
public let time: Foundation.Date
|
|
1803
1885
|
public let latitude: Swift.Double
|
|
1804
1886
|
public let longitude: Swift.Double
|
|
1805
|
-
public
|
|
1887
|
+
public let altitudeMeters: Swift.Double?
|
|
1888
|
+
public let speedMetersPerSecond: Swift.Double?
|
|
1889
|
+
public let courseDegrees: Swift.Double?
|
|
1890
|
+
public let horizontalAccuracyMeters: Swift.Double?
|
|
1891
|
+
public init(time: Foundation.Date, latitude: Swift.Double, longitude: Swift.Double, altitudeMeters: Swift.Double? = nil, speedMetersPerSecond: Swift.Double? = nil, courseDegrees: Swift.Double? = nil, horizontalAccuracyMeters: Swift.Double? = nil)
|
|
1806
1892
|
public static func == (a: TerraSDK.RoutePoint, b: TerraSDK.RoutePoint) -> Swift.Bool
|
|
1807
1893
|
public func hash(into hasher: inout Swift.Hasher)
|
|
1808
1894
|
public var hashValue: Swift.Int {
|
|
@@ -2465,12 +2551,16 @@ extension TerraSDK.Nutrient : Swift.RawRepresentable {}
|
|
|
2465
2551
|
extension TerraSDK.DeviceType : Swift.RawRepresentable {}
|
|
2466
2552
|
extension TerraSDK.MotionContext : Swift.Hashable {}
|
|
2467
2553
|
extension TerraSDK.MotionContext : Swift.RawRepresentable {}
|
|
2554
|
+
extension TerraSDK.SwimmingLocation : Swift.RawRepresentable {}
|
|
2468
2555
|
extension TerraSDK.WorkoutEvent.Kind : Swift.Equatable {}
|
|
2469
2556
|
extension TerraSDK.WorkoutEvent.Kind : Swift.Hashable {}
|
|
2470
2557
|
extension TerraSDK.WorkoutEvent.Kind : Swift.RawRepresentable {}
|
|
2471
2558
|
extension TerraSDK.WorkoutIntensitySample.Kind : Swift.Equatable {}
|
|
2472
2559
|
extension TerraSDK.WorkoutIntensitySample.Kind : Swift.Hashable {}
|
|
2473
2560
|
extension TerraSDK.WorkoutIntensitySample.Kind : Swift.RawRepresentable {}
|
|
2561
|
+
extension TerraSDK.WorkoutContextSample.Kind : Swift.Equatable {}
|
|
2562
|
+
extension TerraSDK.WorkoutContextSample.Kind : Swift.Hashable {}
|
|
2563
|
+
extension TerraSDK.WorkoutContextSample.Kind : Swift.RawRepresentable {}
|
|
2474
2564
|
extension TerraSDK.DayTotal.Metric : Swift.Equatable {}
|
|
2475
2565
|
extension TerraSDK.DayTotal.Metric : Swift.Hashable {}
|
|
2476
2566
|
extension TerraSDK.DayTotal.Metric : Swift.RawRepresentable {}
|