@d4l/collect-lib 1.51.1 → 1.53.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/dist/index.d.mts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { Buffer } from 'buffer/';
2
+ import { S as SUPPORTED_FHIRPATH_DATE_UNITS } from './enable-when-expression-L1gQM0rv.mjs';
3
+ export { E as ENABLE_WHEN_CONFORMANCE_CASES, a as EnableWhenConformanceCase, F as FhirPathVariables, O as OUT_OF_SUBSET_EXPRESSIONS, b as SUPPORTED_FHIRPATH_FUNCTIONS, c as SUPPORTED_FHIRPATH_OPERATORS, f as findSubsetViolations, r as referencedVariables } from './enable-when-expression-L1gQM0rv.mjs';
2
4
  import * as fhir_r5 from 'fhir/r5';
3
5
  import { DateTimeUnit, Duration } from 'luxon';
4
6
 
@@ -502,7 +504,7 @@ type ResponseContext = {
502
504
  };
503
505
  type QuestionInputType = 'decimal' | 'date' | 'year' | 'single-select' | 'multi-select' | 'scale-ordinal' | 'scale-numeric' | 'scale-likert' | 'string' | 'text' | 'geo-location' | 'list' | 'country' | 'postal-code' | 'group' | 'display' | 'matrix' | 'matrix-item';
504
506
 
505
- type DEVICE_ANNOTATION_DATA_TYPE = 'header' | 'flag' | 'any' | 'timestamp' | 'heartRate' | 'eulerAngles' | 'acceleration' | 'freeAcceleration' | 'angularSpeed' | 'angularVelocity' | 'magneticField' | 'distance' | 'remoteDistance' | 'rssi' | 'beaconId' | 'caloriesTotal' | 'distanceTotal' | 'speed' | 'motionCadence' | 'floorsTotal' | 'absoluteElevation' | 'positiveElevationTotal' | 'negativeElevationTotal' | 'minSpeed' | 'maxSpeed' | 'averageSpeed' | 'minMotionCadence' | 'maxMotionCadence' | 'averageMotionCadence' | 'vo2max' | 'stepsTotal' | 'runningStepsTotal' | 'dailySteps' | 'dailyDistance' | 'dailyCalories' | 'dailyFloors' | 'dailyElevationGain' | 'activityDetection' | 'egvs' | 'ecg' | 'spo2' | 'samsungSdkHeartRate' | 'interbeatInterval' | 'ppgGreen' | 'ppgRed' | 'ppgInfrared' | 'samsungSdkAcceleration' | 'skinTemperature' | 'sleepLevel' | 'duration' | 'respiratoryRate' | 'hrv' | 'calories' | 'steps' | DEVICE_ANNOTATION_DATA_TYPE_APPLE | 'stress' | 'workout' | 'tag' | 'cardiovascularAge' | 'activityLevel' | 'batteryLevel' | 'skinTemperatureDeviation' | 'menstrualCycle' | 'menstrualFlow' | 'bodyBattery' | 'sleepScore' | 'bodyComposition' | 'bloodPressure' | 'sleepStage' | 'dataSource' | 'normalWalkingEnergyExpenditure' | 'normalWalkingEnergyExpenditurePerHour' | 'intensityEnergyExpenditure' | 'intensityEnergyExpenditurePerHour' | 'totalEnergyExpenditurePerHour' | 'fatBurned' | 'fatBurnedPerHour' | 'metabolicEquivalent' | 'minimumMetabolicEquivalent' | 'maximumMetabolicEquivalent' | 'averageMetabolicEquivalent' | 'durationOfNormalWalkingEpisodes' | 'durationOfIntensityWalkingEpisodes';
507
+ type DEVICE_ANNOTATION_DATA_TYPE = 'header' | 'flag' | 'any' | 'timestamp' | 'heartRate' | 'eulerAngles' | 'acceleration' | 'freeAcceleration' | 'angularSpeed' | 'angularVelocity' | 'magneticField' | 'distance' | 'remoteDistance' | 'rssi' | 'beaconId' | 'caloriesTotal' | 'distanceTotal' | 'speed' | 'motionCadence' | 'floorsTotal' | 'absoluteElevation' | 'positiveElevationTotal' | 'negativeElevationTotal' | 'minSpeed' | 'maxSpeed' | 'averageSpeed' | 'minMotionCadence' | 'maxMotionCadence' | 'averageMotionCadence' | 'vo2max' | 'stepsTotal' | 'runningStepsTotal' | 'dailySteps' | 'dailyDistance' | 'dailyCalories' | 'dailyFloors' | 'dailyElevationGain' | 'activityDetection' | 'egvs' | 'ecg' | 'spo2' | 'samsungSdkHeartRate' | 'interbeatInterval' | 'ppgGreen' | 'ppgRed' | 'ppgInfrared' | 'samsungSdkAcceleration' | 'skinTemperature' | 'sleepLevel' | 'duration' | 'respiratoryRate' | 'hrv' | 'calories' | 'steps' | DEVICE_ANNOTATION_DATA_TYPE_APPLE | 'stress' | 'workout' | 'tag' | 'cardiovascularAge' | 'activityLevel' | 'batteryLevel' | 'skinTemperatureDeviation' | 'menstrualCycle' | 'menstrualFlow' | 'bodyBattery' | 'sleepScore' | 'bodyComposition' | 'bloodPressure' | 'sleepStage' | 'cgm' | 'bgm' | 'bgmSubType' | 'bolus' | 'basal' | 'basalState' | 'insulinOrigin' | 'deviceEventType' | 'deviceEventSource' | 'dataSource' | 'normalWalkingEnergyExpenditure' | 'normalWalkingEnergyExpenditurePerHour' | 'intensityEnergyExpenditure' | 'intensityEnergyExpenditurePerHour' | 'totalEnergyExpenditurePerHour' | 'fatBurned' | 'fatBurnedPerHour' | 'metabolicEquivalent' | 'minimumMetabolicEquivalent' | 'maximumMetabolicEquivalent' | 'averageMetabolicEquivalent' | 'durationOfNormalWalkingEpisodes' | 'durationOfIntensityWalkingEpisodes';
506
508
  type DEVICE_ANNOTATION_DATA_TYPE_APPLE = 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'heartRate' | 'restingHeartRate' | 'hrv' | 'respiratoryRate' | 'spo2' | 'skinTemperature' | 'workout' | 'stoodDuringHour' | 'activitySummary' | 'sleepState' | 'duration' | 'menstrualCycle' | 'contraceptiveType' | 'pregnancyState' | 'lactationState';
507
509
  type DEVICE_ANNOTATION_DATA_FORMAT = 'bitmask' | 'boolean' | 'unsignedInt' | 'signedInt' | 'signedBigInt' | 'float32' | 'float64' | 'byte';
508
510
  type DEVICE_ANNOTATION = DEVICE_ANNOTATION_ITEM[];
@@ -577,12 +579,12 @@ interface BleDeviceMetaLabel {
577
579
  }
578
580
  type DEVICE_KEY = DEVICE_KEY_BLE | DEVICE_KEY_API | DEVICE_KEY_SDK | DEVICE_KEY_INTERNAL;
579
581
  type DEVICE_KEY_BLE = 'DOT' | 'OH1' | 'H10' | 'EstimoteUWB' | 'TicWatchE2' | 'PixelWatch1' | 'GalaxyWatch6';
580
- type DEVICE_KEY_API = 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN' | 'DEXCOM' | 'dexcom_g4' | 'dexcom_g5' | 'dexcom_g6' | 'dexcom_g6+' | 'dexcom_g7';
582
+ type DEVICE_KEY_API = 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN' | 'LINE_SYSTEMS' | 'DEXCOM' | 'dexcom_g4' | 'dexcom_g5' | 'dexcom_g6' | 'dexcom_g6+' | 'dexcom_g7';
581
583
  type DEVICE_KEY_SDK = 'AppleHealth' | 'HealthConnect';
582
584
  type DEVICE_KEY_INTERNAL = 'INTERNAL' | 'internal_accelerometer' | 'internal_gyroscope' | 'internal_magnetometer' | 'internal_beacon_sensing';
583
585
  type DEVICE_MOVELLA_PAYLOAD_MODES = 'completeEuler' | 'customMode1' | 'rateQuantities';
584
586
  type DEVICE_SIGNAL_TYPE_APPLE = 'stepCount' | 'sleepAnalysis' | 'walkingAndRunningDistance' | 'activeEnergy' | 'heartRate' | 'restingHeartRate' | 'hrv' | 'respiratoryRate' | 'spo2' | 'skinTemperature' | 'workout' | 'standHours' | 'activitySummary' | 'menstrualCycle' | 'contraceptive' | 'pregnancy' | 'lactation';
585
- type DEVICE_SIGNAL_TYPE = 'heartRate' | 'imu' | 'beacon' | 'beaconUWB' | 'beaconRemoteUWB' | 'rssiScan' | 'physicalActivityMonitoring' | 'customPassiveMonitoring' | 'activeSamsungSDKMonitoring' | 'passiveSamsungSDKMonitoring' | 'accelerometer' | 'gyroscope' | 'magnetometer' | 'egvs' | 'hrv' | 'respiratoryRate' | 'steps' | 'calories' | 'sleep' | 'skinTemperature' | 'spo2' | 'menstrualCycle' | 'dailyFloors' | 'dailyDistance' | 'bodyBattery' | 'sleepScore' | 'vo2max' | 'bodyComposition' | 'bloodPressure' | DEVICE_SIGNAL_TYPE_APPLE | 'stress' | 'workout' | 'tag' | 'cardiovascularAge' | 'activity' | 'batteryLevel';
587
+ type DEVICE_SIGNAL_TYPE = 'heartRate' | 'imu' | 'beacon' | 'beaconUWB' | 'beaconRemoteUWB' | 'rssiScan' | 'physicalActivityMonitoring' | 'customPassiveMonitoring' | 'activeSamsungSDKMonitoring' | 'passiveSamsungSDKMonitoring' | 'accelerometer' | 'gyroscope' | 'magnetometer' | 'egvs' | 'hrv' | 'respiratoryRate' | 'steps' | 'calories' | 'sleep' | 'skinTemperature' | 'spo2' | 'menstrualCycle' | 'dailyFloors' | 'dailyDistance' | 'bodyBattery' | 'sleepScore' | 'vo2max' | 'bodyComposition' | 'bloodPressure' | DEVICE_SIGNAL_TYPE_APPLE | 'stress' | 'workout' | 'tag' | 'cardiovascularAge' | 'activity' | 'batteryLevel' | 'cgm' | 'bolus' | 'basal' | 'bgm' | 'deviceEvents';
586
588
  type DeviceName = {
587
589
  shortName: string;
588
590
  fullName: string;
@@ -683,8 +685,8 @@ type ProgramDevice = {
683
685
  clientID?: string;
684
686
  clientTarget?: ProgramClientTarget;
685
687
  };
686
- type ProgramDeviceType = 'EstimoteUWB' | 'DEXCOM' | 'DOT' | 'H10' | 'OH1' | 'INTERNAL' | 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN' | 'GalaxyWatch6' | 'PixelWatch1' | 'AppleHealth' | 'HealthConnect';
687
- type ProgramDevicesDataType = 'distance' | 'rssi' | 'eulerAngles' | 'freeAcceleration' | 'angularVelocity' | 'heartRate' | 'restingHeartRate' | 'hrv' | 'internal_gyroscope' | 'internal_accelerometer' | 'internal_magnetometer' | 'internal_beacon_sensing' | 'acceleration' | 'angularSpeed' | 'magneticField' | 'stepsTotal' | 'caloriesTotal' | 'distanceTotal' | 'floorsTotal' | 'absoluteElevation' | 'positiveElevationTotal' | 'negativeElevationTotal' | 'minSpeed' | 'maxSpeed' | 'averageSpeed' | 'speed' | 'vo2max' | 'motionCadence' | 'minMotionCadence' | 'maxMotionCadence' | 'averageMotionCadence' | 'dailySteps' | 'dailyDistance' | 'dailyCalories' | 'dailyFloors' | 'activityDetection' | 'egvs' | 'samsungSdkHeartRate' | 'interbeatInterval' | 'skinTemperature' | 'ppgGreen' | 'ppgRed' | 'ppgInfrared' | 'samsungSdkAcceleration' | 'ecg' | 'spo2' | 'steps' | 'calories' | 'sleep' | 'respiratoryRate' | 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'sleepAnalysis' | 'stress' | 'workout' | 'standHours' | 'activitySummary' | 'contraceptive' | 'pregnancy' | 'lactation' | 'tag' | 'cardiovascularAge' | 'activity' | 'menstrualCycle' | 'bodyBattery' | 'sleepScore' | 'bodyComposition' | 'bloodPressure' | 'batteryLevel';
688
+ type ProgramDeviceType = 'EstimoteUWB' | 'DEXCOM' | 'DOT' | 'H10' | 'OH1' | 'INTERNAL' | 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN' | 'LINE_SYSTEMS' | 'GalaxyWatch6' | 'PixelWatch1' | 'AppleHealth' | 'HealthConnect';
689
+ type ProgramDevicesDataType = 'distance' | 'rssi' | 'eulerAngles' | 'freeAcceleration' | 'angularVelocity' | 'heartRate' | 'restingHeartRate' | 'hrv' | 'internal_gyroscope' | 'internal_accelerometer' | 'internal_magnetometer' | 'internal_beacon_sensing' | 'acceleration' | 'angularSpeed' | 'magneticField' | 'stepsTotal' | 'caloriesTotal' | 'distanceTotal' | 'floorsTotal' | 'absoluteElevation' | 'positiveElevationTotal' | 'negativeElevationTotal' | 'minSpeed' | 'maxSpeed' | 'averageSpeed' | 'speed' | 'vo2max' | 'motionCadence' | 'minMotionCadence' | 'maxMotionCadence' | 'averageMotionCadence' | 'dailySteps' | 'dailyDistance' | 'dailyCalories' | 'dailyFloors' | 'activityDetection' | 'egvs' | 'samsungSdkHeartRate' | 'interbeatInterval' | 'skinTemperature' | 'ppgGreen' | 'ppgRed' | 'ppgInfrared' | 'samsungSdkAcceleration' | 'ecg' | 'spo2' | 'steps' | 'calories' | 'sleep' | 'respiratoryRate' | 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'sleepAnalysis' | 'stress' | 'workout' | 'standHours' | 'activitySummary' | 'contraceptive' | 'pregnancy' | 'lactation' | 'tag' | 'cardiovascularAge' | 'activity' | 'menstrualCycle' | 'bodyBattery' | 'sleepScore' | 'bodyComposition' | 'bloodPressure' | 'batteryLevel' | 'cgm' | 'bolus' | 'basal' | 'bgm' | 'deviceEvents';
688
690
  type ProgramDevicesLabel = {
689
691
  name: string;
690
692
  } & TranslatedString;
@@ -822,6 +824,30 @@ declare const GARMIN_SIGNAL_TYPE_ANNOTATIONS: {
822
824
  [key in DEVICE_SIGNAL_TYPE]?: DEVICE_ANNOTATION;
823
825
  };
824
826
 
827
+ declare const LINE_SYSTEMS_GLUCOSE_DEFAULT_UNIT = "mg/dL";
828
+ declare const LINE_SYSTEMS_ANNOTATION_ITEM_CGM: DEVICE_ANNOTATION_ITEM;
829
+ declare const LINE_SYSTEMS_ANNOTATION_ITEM_BGM: DEVICE_ANNOTATION_ITEM;
830
+ declare const LINE_SYSTEMS_ANNOTATION_ITEM_BGM_SUB_TYPE: DEVICE_ANNOTATION_ITEM;
831
+ declare const LINE_SYSTEMS_CGM_ANNOTATION: DEVICE_ANNOTATION;
832
+ declare const LINE_SYSTEMS_BGM_ANNOTATION: DEVICE_ANNOTATION;
833
+ /**
834
+ * Glucose annotation with the unit reported by Line Portal for the stored samples.
835
+ * Falls back to the default unit when the response carries none.
836
+ */
837
+ declare const lineSystemsGlucoseAnnotation: (type: "cgm" | "bgm", unit?: string) => DEVICE_ANNOTATION;
838
+ declare const LINE_SYSTEMS_ANNOTATION_ITEM_INSULIN_ORIGIN: DEVICE_ANNOTATION_ITEM;
839
+ declare const LINE_SYSTEMS_ANNOTATION_ITEM_BOLUS: DEVICE_ANNOTATION_ITEM;
840
+ declare const LINE_SYSTEMS_BOLUS_ANNOTATION: DEVICE_ANNOTATION;
841
+ declare const LINE_SYSTEMS_ANNOTATION_ITEM_BASAL: DEVICE_ANNOTATION_ITEM;
842
+ declare const LINE_SYSTEMS_ANNOTATION_ITEM_BASAL_STATE: DEVICE_ANNOTATION_ITEM;
843
+ declare const LINE_SYSTEMS_BASAL_ANNOTATION: DEVICE_ANNOTATION;
844
+ declare const LINE_SYSTEMS_ANNOTATION_ITEM_DEVICE_EVENT_TYPE: DEVICE_ANNOTATION_ITEM;
845
+ declare const LINE_SYSTEMS_ANNOTATION_ITEM_DEVICE_EVENT_SOURCE: DEVICE_ANNOTATION_ITEM;
846
+ declare const LINE_SYSTEMS_DEVICE_EVENTS_ANNOTATION: DEVICE_ANNOTATION;
847
+ declare const LINE_SYSTEMS_SIGNAL_TYPE_ANNOTATIONS: {
848
+ [key in DEVICE_SIGNAL_TYPE]?: DEVICE_ANNOTATION;
849
+ };
850
+
825
851
  /** Canonical cycle phase. Garmin `currentPhaseType` / Oura phases map onto this. */
826
852
  declare const MENSTRUAL_CYCLE_PHASE: {
827
853
  readonly unknown: -1;
@@ -1012,6 +1038,13 @@ declare const QuestionnaireItemInputExtension = "http://fhir.data4life.care/Stru
1012
1038
  declare const TopicInputTopicUrl = "topic";
1013
1039
  declare const TopicInputScopeUrl = "scope";
1014
1040
  declare const TopicSystem = "http://fhir.data4life.care/topic";
1041
+ declare const QuestionnaireItemVariableExtension = "http://fhir.data4life.care/StructureDefinition/questionnaire-item-variable";
1042
+ declare const ItemVariableNameUrl = "name";
1043
+ declare const ItemVariableTopicUrl = "topic";
1044
+ declare const ItemVariableQuestionUrl = "question";
1045
+ declare const ItemVariableScopeUrl = "scope";
1046
+ declare const EnableWhenExpressionExtension = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression";
1047
+ declare const FhirPathLanguage = "text/fhirpath";
1015
1048
  declare const SignalIDSystem = "http://fhir.data4life.care/r5/NamingSystem/app-signal-ids";
1016
1049
  declare const AppIDNamingSystem = "http://fhir.data4life.care/r5/NamingSystem/app-db-ids";
1017
1050
  declare const SensorTypeSystem = "http://fhir.data4life.care/r5/NamingSystem/sensor-device-type";
@@ -1083,6 +1116,130 @@ type TopicScopeCode = (typeof TOPIC_SCOPE_CODES)[number];
1083
1116
  /** True if `code` is a recognized topic scope valueCode. */
1084
1117
  declare const isValidTopicScope: (code: string) => code is TopicScopeCode;
1085
1118
 
1119
+ /**
1120
+ * Structured enableWhen conditions and their compilation to (and from) an `enableWhenExpression`.
1121
+ *
1122
+ * Research Studio authors a dependency as a flat list of {@link EnableWhenCondition} conditions combined with one
1123
+ * {@link EnableWhenBehavior} (all / any), the same mental model as native `enableWhen` +
1124
+ * `enableBehavior`. `compileEnableWhen` turns those conditions into the two proto/FHIR artifacts (variable
1125
+ * bindings and one FHIRPath expression in the subset declared in `enable-when-expression.ts`);
1126
+ * `decompileEnableWhen` reads them back so the editor can reopen a saved dependency as conditions. The compiler is
1127
+ * the only producer of FHIRPath in the system, so its output shapes are the canonical forms the
1128
+ * decompiler and the conformance fixture are written against.
1129
+ *
1130
+ * Engine-free on purpose: studio imports this from the barrel; evaluation lives behind the
1131
+ * `./fhirpath` subpath.
1132
+ */
1133
+
1134
+ /** Calendar unit for elapsed-time predicates; the subset's date units. */
1135
+ type EnableWhenDateUnit = (typeof SUPPORTED_FHIRPATH_DATE_UNITS)[number];
1136
+ /**
1137
+ * How a source's values are typed, derived by studio from the producing question's input type
1138
+ * (coding: single/multi select, likert, country; integer: integer, ordinal scale; decimal: decimal,
1139
+ * numeric scale; date; year; string: everything else). It selects the allowed predicates and the
1140
+ * conversion the compiled expression applies.
1141
+ */
1142
+ type EnableWhenValueType = 'coding' | 'string' | 'integer' | 'decimal' | 'date' | 'year';
1143
+ /** Where a condition reads its value from: a question in the same questionnaire, or a topic. */
1144
+ type EnableWhenSource = {
1145
+ kind: 'question';
1146
+ linkId: string;
1147
+ } | {
1148
+ kind: 'topic';
1149
+ topic: string;
1150
+ scope: TopicScopeCode;
1151
+ };
1152
+ type EnableWhenComparisonOp = 'eq' | 'neq' | 'gt' | 'lt' | 'gteq' | 'lteq';
1153
+ type EnableWhenPredicate = {
1154
+ op: 'exists';
1155
+ } | {
1156
+ op: 'empty';
1157
+ }
1158
+ /** `value` is a code/text for coding/string sources, a number for integer/decimal, an ISO date (`YYYY-MM-DD`) or year (`YYYY`) for date/year. */
1159
+ | {
1160
+ op: EnableWhenComparisonOp;
1161
+ value: string | number;
1162
+ } | {
1163
+ op: 'oneOf';
1164
+ values: string[];
1165
+ }
1166
+ /**
1167
+ * Elapsed time since the date, measured against today. `elapsedAtLeast` is inclusive ("age >= 18"
1168
+ * is `{ amount: 18, unit: 'years' }`, shown on the 18th birthday); `elapsedLessThan` is exclusive
1169
+ * ("age <= 17" is `{ amount: 18, unit: 'years' }`; "within the last 30 days" is `{ amount: 31,
1170
+ * unit: 'days' }`). The two are exact complements, so one boundary day never belongs to both or
1171
+ * to neither. What the date *means* (a birth date, an enrollment) is a UI concern, not a model one.
1172
+ */
1173
+ | {
1174
+ op: 'elapsedAtLeast';
1175
+ amount: number;
1176
+ unit: EnableWhenDateUnit;
1177
+ } | {
1178
+ op: 'elapsedLessThan';
1179
+ amount: number;
1180
+ unit: EnableWhenDateUnit;
1181
+ }
1182
+ /** `min` inclusive, `max` exclusive: "age 18 to 65" is `{ min: 18, max: 66, unit: 'years' }`. */
1183
+ | {
1184
+ op: 'elapsedBetween';
1185
+ min: number;
1186
+ max: number;
1187
+ unit: EnableWhenDateUnit;
1188
+ };
1189
+ type EnableWhenPredicateOp = EnableWhenPredicate['op'];
1190
+ type EnableWhenCondition = {
1191
+ source: EnableWhenSource;
1192
+ valueType: EnableWhenValueType;
1193
+ predicate: EnableWhenPredicate;
1194
+ };
1195
+ /** Mirrors `enableBehavior`: `all` = every condition must hold (and), `any` = at least one (or). */
1196
+ type EnableWhenBehavior = 'all' | 'any';
1197
+ /** Predicates that compare against the clock; they can never be expressed as native `enableWhen`. */
1198
+ declare const TEMPORAL_PREDICATES: readonly ["elapsedAtLeast", "elapsedLessThan", "elapsedBetween"];
1199
+ /** Units an elapsed-time predicate may use per source type: a year-only date has no finer resolution. */
1200
+ declare const ELAPSED_UNITS_BY_VALUE_TYPE: Partial<Record<EnableWhenValueType, readonly EnableWhenDateUnit[]>>;
1201
+ /** Which predicates a source of a given value type supports; studio derives its operator options from this. */
1202
+ declare const ENABLE_WHEN_PREDICATES_BY_VALUE_TYPE: Record<EnableWhenValueType, readonly EnableWhenPredicateOp[]>;
1203
+ /**
1204
+ * True if the conditions cannot be carried as native `enableWhen` and must be compiled to an expression:
1205
+ * any topic source, any clock-relative predicate, or a predicate native `enableWhen` has no
1206
+ * operator for (`empty`, `oneOf`).
1207
+ */
1208
+ declare const requiresExpression: (conditions: EnableWhenCondition[]) => boolean;
1209
+ /** One variable binding; mirrors proto `ItemVariable` / the `questionnaire-item-variable` extension. `topic` is the bare topic id. */
1210
+ type EnableWhenItemVariable = {
1211
+ name: string;
1212
+ question?: string;
1213
+ topic?: string;
1214
+ scope?: TopicScopeCode;
1215
+ };
1216
+ type CompiledEnableWhen = {
1217
+ itemVariables: EnableWhenItemVariable[];
1218
+ expression: string;
1219
+ };
1220
+ declare class EnableWhenCompileError extends Error {
1221
+ readonly conditionIndex?: number | undefined;
1222
+ constructor(message: string, conditionIndex?: number | undefined);
1223
+ }
1224
+ /**
1225
+ * Compile conditions + behavior into variable bindings and one FHIRPath expression. Sources used by
1226
+ * several conditions share one variable. Throws {@link EnableWhenCompileError} on an invalid condition; studio only
1227
+ * compiles conditions that passed its own validation, so a throw is a programming error there.
1228
+ */
1229
+ declare const compileEnableWhen: (conditions: EnableWhenCondition[], behavior: EnableWhenBehavior) => CompiledEnableWhen;
1230
+ type DecompiledEnableWhen = {
1231
+ conditions: EnableWhenCondition[];
1232
+ behavior: EnableWhenBehavior;
1233
+ };
1234
+ /**
1235
+ * Read compiled artifacts back into conditions. Returns null when the expression is not in the compiler's
1236
+ * canonical shapes (hand-written or imported FHIRPath), which the editor shows as a read-only
1237
+ * custom expression. The value type of a condition is inferred from the expression where the shape
1238
+ * reveals it; pass `resolveValueType` (looked up from the actual source) to make it authoritative,
1239
+ * since e.g. an age condition cannot tell a `date` from a `year` source and `exists` conditions carry no type.
1240
+ */
1241
+ declare const decompileEnableWhen: (itemVariables: EnableWhenItemVariable[], expression: string, resolveValueType?: (source: EnableWhenSource) => EnableWhenValueType | undefined) => DecompiledEnableWhen | null;
1242
+
1086
1243
  /**
1087
1244
  * Replaces {{program-name}} and {{fhir-base-host}} templates in the given string
1088
1245
  */
@@ -1216,11 +1373,6 @@ declare const overwriteTime: (date: Date | null | undefined, timeComponent: stri
1216
1373
  */
1217
1374
  declare const timezonelessDate: (input: string) => Date;
1218
1375
 
1219
- interface CryptoModule {
1220
- deriveEncryptionKey(recoveryKey: Uint8Array, salt: string): Promise<Uint8Array>;
1221
- generateKey(size: number): Uint8Array;
1222
- }
1223
-
1224
1376
  /**
1225
1377
  * Converter inferface with functions that require some platform specific functions to implement
1226
1378
  * Generally functions requiring either Buffer or Base64 methods provided by polyfills/replacement libs
@@ -1275,68 +1427,9 @@ declare class WebConverter implements Converter {
1275
1427
  hexToBase64: (hexString: string) => string;
1276
1428
  }
1277
1429
 
1278
- declare class KeyHandler {
1279
- private converter;
1280
- private crypto;
1281
- constructor(converter: Converter, crypto: CryptoModule);
1282
- generateRecoveryKey(): Uint8Array;
1283
- validateRecoveryKey: (recoveryKey: Uint8Array) => boolean;
1284
- mnemonicToEntropy: (mnemonic: string, lng: string) => Uint8Array;
1285
- entropyToMnemonic: (entropy: Uint8Array | null, lng: string) => string;
1286
- /**
1287
- * Derive all necessary program keys from the recovery phrase and the program name
1288
- * @param recoveryKey The 16byte long recovery key (from the recovery phrase)
1289
- * @param programName The name of the program for which the keys should be generated
1290
- * @returns All necessary program keys
1291
- */
1292
- deriveProgramKeys(recoveryKey: Uint8Array, programName: string): Promise<{
1293
- public: string;
1294
- private: string;
1295
- recovery: string;
1296
- }>;
1297
- /**
1298
- * Derive the dedicated encryption keypair (secp256k1) as a hierarchical child of the
1299
- * donor identity, reusing the same one-way KDF as the program key. The public key is
1300
- * shared with the data-collector (SPKI), which ECIES-encrypts buffered payloads to it;
1301
- * the private key feeds HybridEncrypter.decryptV4. Deterministic, so it survives reinstall.
1302
- * @param programPrivateKey The donor identity's base64-encoded program private key (keys.priv)
1303
- * @returns publicKey (SPKI, base64) and privateKey (secp256k1 scalar, base64 — the same
1304
- * encoding as the program private key)
1305
- */
1306
- deriveEncryptionKeypair(programPrivateKey: string): Promise<{
1307
- publicKey: string;
1308
- privateKey: string;
1309
- }>;
1310
- extendPublicKey: (publicKey: Uint8Array) => string;
1311
- /**
1312
- * Hash a message with SHA-256
1313
- * @param message The message to hash
1314
- * @returns The hashed message
1315
- */
1316
- hash: (message: string) => string;
1317
- /**
1318
- * Sign a message
1319
- * @param message The message to sign
1320
- * @param priv The private key used to sign the message
1321
- * @returns The signed message
1322
- */
1323
- sign: (message: string, priv: string) => Promise<Uint8Array>;
1324
- /**
1325
- * Fetch the encoded signed buffer and verify it against the signature
1326
- * @param message The signed message
1327
- * @param signature The signature of the message
1328
- * @param pub The public key used to verify the signature
1329
- * @returns True, if the signature is valid. Otherwise, false.
1330
- */
1331
- verify: (message: string, signature: Uint8Array, pub: string) => Promise<boolean>;
1332
- /**
1333
- * Reduce a donor public key to the raw uncompressed point noble expects — the inverse
1334
- * of extendPublicKey. The SPKI wrapper ends with the 0x04 point prefix, so the raw key
1335
- * is simply its last 65 bytes. Already-raw keys are passed through.
1336
- * @param publicKey SPKI-wrapped (as produced by extendPublicKey) or raw uncompressed key
1337
- * @returns The 65-byte uncompressed point (0x04 || X || Y)
1338
- */
1339
- private rawPublicKey;
1430
+ interface CryptoModule {
1431
+ deriveEncryptionKey(recoveryKey: Uint8Array, salt: string): Promise<Uint8Array>;
1432
+ generateKey(size: number): Uint8Array;
1340
1433
  }
1341
1434
 
1342
1435
  type DonorIdentity = {
@@ -1473,6 +1566,129 @@ declare enum ERROR_CODES {
1473
1566
  UPLOAD_FAILED = "upload_failed"
1474
1567
  }
1475
1568
 
1569
+ /**
1570
+ * Supplies a currently valid donor access token (see DonationSDK.getAccessToken) to a
1571
+ * client of a downstream service (data-collector, research-pillars proxy) that
1572
+ * authenticates donors with `Authorization: Bearer <accessToken>`.
1573
+ */
1574
+ type AccessTokenProvider = () => Promise<string>;
1575
+ /** Donor access token as issued by the data-dispatcher's `POST /access-token`. */
1576
+ type AccessToken = {
1577
+ /** Signed JWT (`sub` = donorID, `studyID`); opaque to the app */
1578
+ accessToken: string;
1579
+ /** Lifetime in seconds, counted from receipt */
1580
+ expiresIn: number;
1581
+ };
1582
+ declare class DonationSDK implements SDKInterface {
1583
+ /**
1584
+ * Flag indicating if the SDK has been initialized
1585
+ */
1586
+ private selfSignSecret;
1587
+ /**
1588
+ * Requester targeting the Donation API
1589
+ */
1590
+ private donationAPI;
1591
+ private keyHandler;
1592
+ private converter;
1593
+ private hybridEncrypter;
1594
+ /** Access tokens per donor (public key), valid until `refreshAt` */
1595
+ private accessTokens;
1596
+ /** In-flight access token requests per donor, shared by concurrent callers */
1597
+ private accessTokenRequests;
1598
+ constructor(selfSignSecret: string, donationAPIurl: string, converter: Converter, crypto: CryptoModule);
1599
+ /**
1600
+ * Get the public key for the specified target
1601
+ * @param target The target to get the public key for
1602
+ * @returns The public key of the donation target
1603
+ */
1604
+ private getKeyFor;
1605
+ /**
1606
+ * Get an authenticated requester for the donation API
1607
+ * @param donorIdentity The donor identity
1608
+ * @returns An authenticated requester for the donation API
1609
+ */
1610
+ private getAuthenticatedDonationAPI;
1611
+ /**
1612
+ * Create an authentication token which can be used to authenticate with the Donation API
1613
+ * @param pub A public base64 encoded key - the donorId
1614
+ * @param priv The corresponding base64 encoded private key
1615
+ * @param token A unique token issued by the Donation API
1616
+ * @param secret SELF_SIGN_SECRET configured for both UA and Donation Service
1617
+ * @returns The authentication token that can be used to authenticate with the Donation API
1618
+ */
1619
+ private createAuthToken;
1620
+ /**
1621
+ * Validate an authentication token which can be used to authenticated with the Donation API
1622
+ * @param authToken The authentication token that can be used to authenticate with the Donation API
1623
+ * @param token A unique token issued by the Donation API
1624
+ * @param pub A public base64 encoded key - the donorId
1625
+ * @returns True if the authentication token is valid. Otherwise, false.
1626
+ */
1627
+ private validateAuthToken;
1628
+ /**
1629
+ * Request a fresh donor access token from the data-dispatcher. The request itself is
1630
+ * authenticated with the self-signed donor scheme; the returned token is a short-lived
1631
+ * JWT for the other donor-facing services (data-collector, research-pillars proxy),
1632
+ * which only verify the token instead of sharing the self-sign secret.
1633
+ * @param donorIdentity The donor identity
1634
+ * @returns The access token and its lifetime in seconds
1635
+ * @throws Error(INTERNAL_SERVER_ERROR) if the token could not be obtained
1636
+ */
1637
+ requestAccessToken(donorIdentity: DonorIdentity): Promise<AccessToken>;
1638
+ /**
1639
+ * Get a donor access token, reusing the last one until shortly before it expires.
1640
+ * Concurrent callers share a single request; a failed request leaves no token behind,
1641
+ * so the next call retries.
1642
+ * @param donorIdentity The donor identity
1643
+ * @returns A currently valid access token
1644
+ * @throws Error(INTERNAL_SERVER_ERROR) if no token could be obtained
1645
+ */
1646
+ getAccessToken(donorIdentity: DonorIdentity): Promise<string>;
1647
+ donationServiceAvailable(): Promise<boolean>;
1648
+ createDonorIdentity(recoveryKey: Uint8Array, programName: string): Promise<DonorIdentity>;
1649
+ register(recoveryKey: Uint8Array, program: Program, participationCode?: string): Promise<{
1650
+ donorIdentity: DonorIdentity;
1651
+ subjectId: string;
1652
+ }>;
1653
+ donate(donorIdentity: DonorIdentity, program: Program, records: DonationRecord[]): Promise<boolean>;
1654
+ /**
1655
+ * Upload one batch of tracking events (BI events) to the dedicated tracking
1656
+ * endpoint. Tracking donations are stored under the `tracking` type on the
1657
+ * backend and are excluded from restoration.
1658
+ * @param donorIdentity The donor identity
1659
+ * @param program The program the events belong to
1660
+ * @param document The tracking events batch document
1661
+ * @param batchId The UUID identifying this batch (idempotent across retries)
1662
+ * @returns True if the upload succeeded
1663
+ */
1664
+ donateTrackingEvents(donorIdentity: DonorIdentity, program: Program, document: TrackingEventsDocument, batchId: string): Promise<boolean>;
1665
+ /**
1666
+ * Encrypt donations to be donated to a specific target
1667
+ * @param donatableRecords The donations to encrypt
1668
+ * @param donorIdentity The identity of the donor to use
1669
+ * @param target The donation target
1670
+ * @returns The list of encrypted donations
1671
+ */
1672
+ private encryptDonations;
1673
+ /**
1674
+ * Get the total size of donations which can be restored for a specific program
1675
+ * @param donorIdentity The identity of the donor to use
1676
+ * @param programName The name of the program to get the size for
1677
+ * @returns The total size of the donations and the size of each individual donation that can be restored
1678
+ * @throws Error if the donation service is not available or if there is an internal server error
1679
+ */
1680
+ getRestorationSize(donorIdentity: DonorIdentity, programName: string): Promise<RestorationSize>;
1681
+ restore(donorIdentity: DonorIdentity, programName: string): Promise<{
1682
+ document: fhir5.Resource;
1683
+ id: string;
1684
+ status: RecordState;
1685
+ }[]>;
1686
+ revoke(donorIdentity: DonorIdentity, program: Program, records: DonationRecord[]): Promise<boolean>;
1687
+ getResponses(donorIdentity: DonorIdentity, programName: string, updatedAfter?: string): Promise<ResponseMinimal[]>;
1688
+ registerDevice(donorIdentity: DonorIdentity, program: Program, deviceToken: string): Promise<boolean>;
1689
+ unregisterDevice(donorIdentity: DonorIdentity, program: Program): Promise<boolean>;
1690
+ }
1691
+
1476
1692
  type CollectorConnectParams = {
1477
1693
  /**
1478
1694
  * OAuth authorization code captured by the app at the HTTPS redirect
@@ -1507,27 +1723,24 @@ type CollectorSyncResponse = {
1507
1723
  /** Short human-readable cause, for logs and support. */
1508
1724
  reconnectReason?: string;
1509
1725
  };
1510
- /**
1511
- * Build the self-signed donor bearer token used to authenticate with the collector
1512
- * (identical scheme to the data-dispatcher / DonationSDK): sign `message + secret` with
1513
- * the program private key, where `message` embeds the collector-issued token + the donorID.
1514
- */
1515
- declare const buildSelfSignedAuthToken: (keyHandler: KeyHandler, converter: Converter, pub: string, priv: string, token: string, selfSignSecret: string) => Promise<string>;
1516
1726
  /**
1517
1727
  * Client for the data-collector service. Turns Garmin's webhook-delivered data into a
1518
1728
  * pull feed: the phone connects (handing over its Garmin token + encryption public key),
1519
1729
  * then periodically syncs ECIES-encrypted items it alone can decrypt, and acks them.
1730
+ *
1731
+ * Every donor endpoint is authenticated with a data-dispatcher-issued donor access token
1732
+ * (`Authorization: Bearer <accessToken>`, see DonationSDK.getAccessToken); the collector
1733
+ * only verifies the token and never sees the donor's key or the self-sign secret.
1520
1734
  */
1521
1735
  declare class CollectorClient {
1522
- private selfSignSecret;
1523
- private api;
1524
- private keyHandler;
1525
- private converter;
1736
+ private accessToken;
1737
+ private baseUrl;
1526
1738
  /**
1527
- * @param selfSignSecret SELF_SIGN_SECRET shared with the collector (and the dispatcher)
1739
+ * @param accessToken Supplies a valid donor access token for each request (typically
1740
+ * `() => donationSDK.getAccessToken(donorIdentity)`, which caches and refreshes it)
1528
1741
  * @param collectorURL Base URL including the API prefix, e.g. https://collect.dev.d4l-dev.de/api/collector/v1
1529
1742
  */
1530
- constructor(selfSignSecret: string, collectorURL: string, converter: Converter, crypto: CryptoModule);
1743
+ constructor(accessToken: AccessTokenProvider, collectorURL: string);
1531
1744
  private authenticatedApi;
1532
1745
  /**
1533
1746
  * The collector's donor endpoints are study-scoped in the URL (mirroring the
@@ -1758,91 +1971,68 @@ declare class HybridEncrypter {
1758
1971
  private decryptDonation;
1759
1972
  }
1760
1973
 
1761
- declare class DonationSDK implements SDKInterface {
1762
- /**
1763
- * Flag indicating if the SDK has been initialized
1764
- */
1765
- private selfSignSecret;
1766
- /**
1767
- * Requester targeting the Donation API
1768
- */
1769
- private donationAPI;
1770
- private keyHandler;
1974
+ declare class KeyHandler {
1771
1975
  private converter;
1772
- private hybridEncrypter;
1773
- constructor(selfSignSecret: string, donationAPIurl: string, converter: Converter, crypto: CryptoModule);
1774
- /**
1775
- * Get the public key for the specified target
1776
- * @param target The target to get the public key for
1777
- * @returns The public key of the donation target
1778
- */
1779
- private getKeyFor;
1976
+ private crypto;
1977
+ constructor(converter: Converter, crypto: CryptoModule);
1978
+ generateRecoveryKey(): Uint8Array;
1979
+ validateRecoveryKey: (recoveryKey: Uint8Array) => boolean;
1980
+ mnemonicToEntropy: (mnemonic: string, lng: string) => Uint8Array;
1981
+ entropyToMnemonic: (entropy: Uint8Array | null, lng: string) => string;
1780
1982
  /**
1781
- * Get an authenticated requester for the donation API
1782
- * @param donorIdentity The donor identity
1783
- * @returns An authenticated requester for the donation API
1983
+ * Derive all necessary program keys from the recovery phrase and the program name
1984
+ * @param recoveryKey The 16byte long recovery key (from the recovery phrase)
1985
+ * @param programName The name of the program for which the keys should be generated
1986
+ * @returns All necessary program keys
1784
1987
  */
1785
- private getAuthenticatedDonationAPI;
1988
+ deriveProgramKeys(recoveryKey: Uint8Array, programName: string): Promise<{
1989
+ public: string;
1990
+ private: string;
1991
+ recovery: string;
1992
+ }>;
1786
1993
  /**
1787
- * Create an authentication token which can be used to authenticate with the Donation API
1788
- * @param pub A public base64 encoded key - the donorId
1789
- * @param priv The corresponding base64 encoded private key
1790
- * @param token A unique token issued by the Donation API
1791
- * @param secret SELF_SIGN_SECRET configured for both UA and Donation Service
1792
- * @returns The authentication token that can be used to authenticate with the Donation API
1994
+ * Derive the dedicated encryption keypair (secp256k1) as a hierarchical child of the
1995
+ * donor identity, reusing the same one-way KDF as the program key. The public key is
1996
+ * shared with the data-collector (SPKI), which ECIES-encrypts buffered payloads to it;
1997
+ * the private key feeds HybridEncrypter.decryptV4. Deterministic, so it survives reinstall.
1998
+ * @param programPrivateKey The donor identity's base64-encoded program private key (keys.priv)
1999
+ * @returns publicKey (SPKI, base64) and privateKey (secp256k1 scalar, base64 — the same
2000
+ * encoding as the program private key)
1793
2001
  */
1794
- private createAuthToken;
2002
+ deriveEncryptionKeypair(programPrivateKey: string): Promise<{
2003
+ publicKey: string;
2004
+ privateKey: string;
2005
+ }>;
2006
+ extendPublicKey: (publicKey: Uint8Array) => string;
1795
2007
  /**
1796
- * Validate an authentication token which can be used to authenticated with the Donation API
1797
- * @param authToken The authentication token that can be used to authenticate with the Donation API
1798
- * @param token A unique token issued by the Donation API
1799
- * @param pub A public base64 encoded key - the donorId
1800
- * @returns True if the authentication token is valid. Otherwise, false.
2008
+ * Hash a message with SHA-256
2009
+ * @param message The message to hash
2010
+ * @returns The hashed message
1801
2011
  */
1802
- private validateAuthToken;
1803
- donationServiceAvailable(): Promise<boolean>;
1804
- createDonorIdentity(recoveryKey: Uint8Array, programName: string): Promise<DonorIdentity>;
1805
- register(recoveryKey: Uint8Array, program: Program, participationCode?: string): Promise<{
1806
- donorIdentity: DonorIdentity;
1807
- subjectId: string;
1808
- }>;
1809
- donate(donorIdentity: DonorIdentity, program: Program, records: DonationRecord[]): Promise<boolean>;
2012
+ hash: (message: string) => string;
1810
2013
  /**
1811
- * Upload one batch of tracking events (BI events) to the dedicated tracking
1812
- * endpoint. Tracking donations are stored under the `tracking` type on the
1813
- * backend and are excluded from restoration.
1814
- * @param donorIdentity The donor identity
1815
- * @param program The program the events belong to
1816
- * @param document The tracking events batch document
1817
- * @param batchId The UUID identifying this batch (idempotent across retries)
1818
- * @returns True if the upload succeeded
2014
+ * Sign a message
2015
+ * @param message The message to sign
2016
+ * @param priv The private key used to sign the message
2017
+ * @returns The signed message
1819
2018
  */
1820
- donateTrackingEvents(donorIdentity: DonorIdentity, program: Program, document: TrackingEventsDocument, batchId: string): Promise<boolean>;
2019
+ sign: (message: string, priv: string) => Promise<Uint8Array>;
1821
2020
  /**
1822
- * Encrypt donations to be donated to a specific target
1823
- * @param donatableRecords The donations to encrypt
1824
- * @param donorIdentity The identity of the donor to use
1825
- * @param target The donation target
1826
- * @returns The list of encrypted donations
2021
+ * Fetch the encoded signed buffer and verify it against the signature
2022
+ * @param message The signed message
2023
+ * @param signature The signature of the message
2024
+ * @param pub The public key used to verify the signature
2025
+ * @returns True, if the signature is valid. Otherwise, false.
1827
2026
  */
1828
- private encryptDonations;
2027
+ verify: (message: string, signature: Uint8Array, pub: string) => Promise<boolean>;
1829
2028
  /**
1830
- * Get the total size of donations which can be restored for a specific program
1831
- * @param donorIdentity The identity of the donor to use
1832
- * @param programName The name of the program to get the size for
1833
- * @returns The total size of the donations and the size of each individual donation that can be restored
1834
- * @throws Error if the donation service is not available or if there is an internal server error
2029
+ * Reduce a donor public key to the raw uncompressed point noble expects — the inverse
2030
+ * of extendPublicKey. The SPKI wrapper ends with the 0x04 point prefix, so the raw key
2031
+ * is simply its last 65 bytes. Already-raw keys are passed through.
2032
+ * @param publicKey SPKI-wrapped (as produced by extendPublicKey) or raw uncompressed key
2033
+ * @returns The 65-byte uncompressed point (0x04 || X || Y)
1835
2034
  */
1836
- getRestorationSize(donorIdentity: DonorIdentity, programName: string): Promise<RestorationSize>;
1837
- restore(donorIdentity: DonorIdentity, programName: string): Promise<{
1838
- document: fhir5.Resource;
1839
- id: string;
1840
- status: RecordState;
1841
- }[]>;
1842
- revoke(donorIdentity: DonorIdentity, program: Program, records: DonationRecord[]): Promise<boolean>;
1843
- getResponses(donorIdentity: DonorIdentity, programName: string, updatedAfter?: string): Promise<ResponseMinimal[]>;
1844
- registerDevice(donorIdentity: DonorIdentity, program: Program, deviceToken: string): Promise<boolean>;
1845
- unregisterDevice(donorIdentity: DonorIdentity, program: Program): Promise<boolean>;
2035
+ private rawPublicKey;
1846
2036
  }
1847
2037
 
1848
2038
  /**
@@ -2062,7 +2252,7 @@ declare const wordlists: {
2062
2252
  declare const OTHER_ANSWER_CODE = "#other";
2063
2253
  declare const getFollowUpQuestionLinkId: (linkId: string) => string;
2064
2254
 
2065
- type API = 'DEXCOM' | 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN';
2255
+ type API = 'DEXCOM' | 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN' | 'LINE_SYSTEMS';
2066
2256
  type APIConfig = {
2067
2257
  loginEndpoint: string;
2068
2258
  tokenEndpoint: string;
@@ -2074,4 +2264,4 @@ declare const API_TARGET_MAP: {
2074
2264
  };
2075
2265
  };
2076
2266
 
2077
- export { AES_BLOCKSIZE, ANDROID_SENSORS_CONSTANT_NAMES, type API, type APIConfig, type APIDeviceConfig, API_TARGET_MAP, APPLE_HEALTH_ANNOTATION_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ACTIVITY_SUMMARY, APPLE_HEALTH_ANNOTATION_CONTRACEPTIVE, APPLE_HEALTH_ANNOTATION_HEART_RATE, APPLE_HEALTH_ANNOTATION_HRV, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVITY_SUMMARY, APPLE_HEALTH_ANNOTATION_ITEM_CONTRACEPTIVE_TYPE, APPLE_HEALTH_ANNOTATION_ITEM_HEART_RATE, APPLE_HEALTH_ANNOTATION_ITEM_HRV, APPLE_HEALTH_ANNOTATION_ITEM_LACTATION_STATE, APPLE_HEALTH_ANNOTATION_ITEM_MENSTRUAL_CYCLE, APPLE_HEALTH_ANNOTATION_ITEM_PREGNANCY_STATE, APPLE_HEALTH_ANNOTATION_ITEM_RESPIRATORY_RATE, APPLE_HEALTH_ANNOTATION_ITEM_RESTING_HEART_RATE, APPLE_HEALTH_ANNOTATION_ITEM_SKIN_TEMPERATURE, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE, APPLE_HEALTH_ANNOTATION_ITEM_SPO2, APPLE_HEALTH_ANNOTATION_ITEM_STAND_HOUR_STATE, APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT, APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_ANNOTATION_ITEM_WORKOUT, APPLE_HEALTH_ANNOTATION_LACTATION, APPLE_HEALTH_ANNOTATION_MENSTRUAL_CYCLE, APPLE_HEALTH_ANNOTATION_PREGNANCY, APPLE_HEALTH_ANNOTATION_RESPIRATORY_RATE, APPLE_HEALTH_ANNOTATION_RESTING_HEART_RATE, APPLE_HEALTH_ANNOTATION_SKIN_TEMPERATURE, APPLE_HEALTH_ANNOTATION_SLEEP_ANALYSIS, APPLE_HEALTH_ANNOTATION_SPO2, APPLE_HEALTH_ANNOTATION_STAND_HOURS, APPLE_HEALTH_ANNOTATION_STEP_COUNT, APPLE_HEALTH_ANNOTATION_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_ANNOTATION_WORKOUT, APPLE_HEALTH_DATA_SOURCES, APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, APPLE_HEALTH_SLEEP_STATE_MAP, ASMSECGMeasurementAnnotation, ASMSSpO2MeasurementAnnotation, type AndCondition, type Answer, AnswerCodeGuard, AnswerDateGuard, type AnswerItem, type Answers, AppIDNamingSystem, type AppleHealthDataSource, type AppleHealthSleepStates, type ArrayAnswer, type ArrayAnswerItem, type BLEDeviceConfig, BLE_ASMS_ANNOTATION_ITEM_ECG, BLE_ASMS_ANNOTATION_ITEM_SPO2, BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE, BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES, BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE, BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN, BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS, BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS, BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED, BLE_PAMS_ANNOTATION_ITEM_BYTE, BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL, BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FLAGS_16, BLE_PAMS_ANNOTATION_ITEM_FLAGS_24, BLE_PAMS_ANNOTATION_ITEM_FLAGS_32, BLE_PAMS_ANNOTATION_ITEM_FLAGS_8, BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES, BLE_PAMS_ANNOTATION_ITEM_HEADER, BLE_PAMS_ANNOTATION_ITEM_HEART_RATE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_SPEED, BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES, BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES, BLE_PAMS_ANNOTATION_ITEM_VO2_MAX, BLE_PSMS_ANNOTATION_ITEM_ACCELERATION, BLE_PSMS_ANNOTATION_ITEM_HEART_RATE, BLE_PSMS_ANNOTATION_ITEM_IBI, BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN, BLE_PSMS_ANNOTATION_ITEM_PPG_IR, BLE_PSMS_ANNOTATION_ITEM_PPG_RED, BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE, type BaseDeviceConfig, type BleDeviceMetaLabel, BoolGuard, CPMSHealthServicesActivityDetectionAnnotation, CPMSHealthServicesPassiveDataAnnotation, type CodeQuestionCondition, CollectorClient, type CollectorConnectParams, type CollectorSyncItem, type CollectorSyncResponse, CommunicationTypeSystem, type ComparisonOperator, type ConditionOperatorType, type ConditionQuestionType, type ConditionSorting, type ConditionType, Conjunction, type Consent, type ConsentCondition, ConsentGuard, ConsentNameSystem, type ConsentPath, type ConsentTimes, ConsentVersionSystem, type ContentBlock, type Converter, type CopyrightLabel, CountryValueSet, type CryptoModule, CustomExtensionContextValue, CustomExtensionDate, CustomExtensionStudyName, CustomQuestionSystem, type DEVICE_ANNOTATION, type DEVICE_ANNOTATION_DATA_FORMAT, type DEVICE_ANNOTATION_DATA_TYPE, type DEVICE_ANNOTATION_DATA_TYPE_APPLE, DEVICE_ANNOTATION_HEARTRATE, DEVICE_ANNOTATION_HRV_RMSSD, type DEVICE_ANNOTATION_ITEM, DEVICE_ANNOTATION_ITEM_ACCELERATION, DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED, DEVICE_ANNOTATION_ITEM_BEACON_ID, DEVICE_ANNOTATION_ITEM_DATA_SOURCE, DEVICE_ANNOTATION_ITEM_DISTANCE, DEVICE_ANNOTATION_ITEM_EGVS, DEVICE_ANNOTATION_ITEM_HEARTRATE, DEVICE_ANNOTATION_ITEM_HRV_RMSSD, DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD, DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE, DEVICE_ANNOTATION_ITEM_RESTING_HEART_RATE, DEVICE_ANNOTATION_ITEM_RSSI, DEVICE_ANNOTATION_ITEM_SKIN_TEMPERATURE_DEVIATION, DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP, DEVICE_ANNOTATION_SKIN_TEMPERATURE_DEVIATION, DEVICE_ANNOTATION_TIMESTAMP_NOTE, DEVICE_ANNOTATION_TIMESTAMP_SIZE, DEVICE_ANNOTATION_TIMESTAMP_UNIT, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP, DEVICE_DISPLAY_LABEL_CODING, type DEVICE_KEY, type DEVICE_KEY_API, type DEVICE_KEY_BLE, type DEVICE_KEY_INTERNAL, type DEVICE_KEY_SDK, DEVICE_KEY_TO_NAME, DEVICE_LABEL_CODING, type DEVICE_MOVELLA_PAYLOAD_MODES, DEVICE_OUTPUT_RATE_CODING, DEVICE_SENSOR_DELAY_CODING, type DEVICE_SIGNAL_TYPE, type DEVICE_SIGNAL_TYPE_APPLE, type DateBlurringFunction, type DateCondition, DateGuard, type DateQuestionCondition, DecimalGuard, type DeviceConfig, type DeviceName, Disjunction, type Display, type DisplayContent, type DisplayContentPath, type DisplayPath, type DisplayType, type DonationRecord, DonationSDK, type DonorIdentity, ERROR_CODES, ExistsGuard, type ExtendedProgramDevicesDataType, FITBIT_ANNOTATION_ITEM_BREATHING_RATE, FITBIT_ANNOTATION_ITEM_CALORIES, FITBIT_ANNOTATION_ITEM_HEART_RATE, FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY, FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION, FITBIT_ANNOTATION_ITEM_SPO2, FITBIT_ANNOTATION_ITEM_STEPS, FITBIT_BREATHING_RATE_ANNOTATION, FITBIT_CALORIES_ANNOTATION, FITBIT_HEART_RATE_ANNOTATION, FITBIT_HEART_RATE_VARIABILITY_ANNOTATION, FITBIT_SIGNAL_TYPE_ANNOTATIONS, FITBIT_SKIN_TEMPERATURE_ANNOTATION, FITBIT_SLEEP_ANNOTATION, FITBIT_SLEEP_LEVEL_MAP, FITBIT_SPO2_ANNOTATION, FITBIT_STEPS_ANNOTATION, type FitbitSleepLevelTypes, type FlatAnswer, type FrequencySubset, type FrequencyType, GARMIN_ACTIVITY_ANNOTATION, GARMIN_ANNOTATION_ITEM_ACTIVITY_ACTIVE_TIME, GARMIN_ANNOTATION_ITEM_ACTIVITY_LEVEL, GARMIN_ANNOTATION_ITEM_ACTIVITY_METS, GARMIN_ANNOTATION_ITEM_BLOOD_PRESSURE, GARMIN_ANNOTATION_ITEM_BODY_BATTERY, GARMIN_ANNOTATION_ITEM_BODY_COMPOSITION, GARMIN_ANNOTATION_ITEM_SLEEP_SCORE, GARMIN_ANNOTATION_ITEM_VO2MAX, GARMIN_BLOOD_PRESSURE_ANNOTATION, GARMIN_BODY_BATTERY_ANNOTATION, GARMIN_BODY_COMPOSITION_ANNOTATION, GARMIN_SIGNAL_TYPE_ANNOTATIONS, GARMIN_SLEEP_SCORE_ANNOTATION, GARMIN_VO2MAX_ANNOTATION, GOOGLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, type GeoLocationAnswer, type Guard, type GuardContext, type GuardParameters, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE, HEALTH_CONNECT_ANNOTATION_ITEM_STEPS, HEALTH_CONNECT_DATA_SOURCES, HEALTH_CONNECT_ITEM_SPO2, HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS, HEALTH_CONNECT_SLEEP_ANNOTATION, HEALTH_CONNECT_SLEEP_STAGE_MAP, HEALTH_CONNECT_SPO2_ANNOTATION, HEALTH_CONNECT_STEPS_ANNOTATION, HYBRID_ENCRYPTION_VERSION_RECOVERY, HYBRID_ENCRYPTION_VERSION_V4, type HealthConnectDataSource, type HealthConnectSleepStages, HybridEncrypter, IMUAnnotation, ImageExtension, type InternalDeviceConfig, InternalSensorAnnotationTypes, Iso3166CodeSystem, KEY_LENGTH, KeyHandler, MENSTRUAL_CYCLE_ANNOTATION, MENSTRUAL_CYCLE_ANNOTATION_ITEM, MENSTRUAL_CYCLE_PHASE, MENSTRUAL_FLOW, MENSTRUAL_FLOW_ANNOTATION, MENSTRUAL_FLOW_ANNOTATION_ITEM, type MatrixAnswer, type MatrixAnswerItem, MaxValueExtension, MeasurementTypeSystem, type Message, type MessagePath, type MessageRecipient, MinLengthExtension, MinValueExtension, type MultiAnswers, type Notification, type NotificationRecipient, OTHER_ANSWER_CODE, OURA_ACTIVITY_ANNOTATION, OURA_ANNOTATION_ITEM_ACTIVITY_LEVEL, OURA_ANNOTATION_ITEM_BATTERY_LEVEL, OURA_ANNOTATION_ITEM_CARDIOVASCULAR_AGE, OURA_ANNOTATION_ITEM_STRESS, OURA_ANNOTATION_ITEM_TAG, OURA_ANNOTATION_ITEM_WORKOUT, OURA_BATTERY_LEVEL_ANNOTATION, OURA_CARDIOVASCULAR_AGE_ANNOTATION, OURA_SIGNAL_TYPE_ANNOTATIONS, OURA_STRESS_ANNOTATION, OURA_TAG_ANNOTATION, OURA_WORKOUT_ANNOTATION, ObservationTypeSystem, Offset, type OffsetCondition, type OrCondition, PAMSCardioVascularActivityAnnotation, PAMSGeneralActivityInstantaneousAnnotation, PAMSGeneralActivitySummaryAnnotation, PAMSStepCounterActivitySummaryAnnotation, PSMSAccelerationAnnotation, PSMSHeartRateAnnotation, PSMSPPGGreenAnnotation, PSMSPPGIRAnnotation, PSMSPPGRedAnnotation, PSMSSkinTemperatureAnnotation, PostalCodeCountrySourceExtension, PostalCodeFixedCountryUrl, PostalCodeFromItemUrl, PrepopulateExtension, type PreviewTimeSeriesItem, type Program, type ProgramAnonymization, type ProgramAppVersion, type ProgramClientTarget, type ProgramConsentStep, type ProgramContact, type ProgramContent, type ProgramContentPath, type ProgramDevice, type ProgramDeviceType, type ProgramDevicesDataType, type ProgramDevicesLabel, type ProgramDisplayStep, type ProgramDonation, type ProgramEligibilityStep, type ProgramFeatured, type ProgramRoutineStep, type ProgramSensorStep, type ProgramStep, type ProgramStepBase, type ProgramStepType, type ProgramSurveyStep, type ProgramTag, type ProgramTokenStep, type ProgramTracking, type ProgramType, QItemControlDefinition, type QuestionInputType, QuestionnaireItemInputExtension, QuestionnaireItemOutputExtension, type QuestionnaireResponse, type QuestionnaireScore, RECORDING_MODEL_CURRENT_VERSION, RECORDING_SIGNAL_MODEL_CURRENT_VERSION, type RecordState, type Recording, type RecordingSignal, type RecordingSignalItem, type RecordingSignalPreview, type RecordingSignalWithId, type RecordingTag, type RecursiveKeyOf, RelativeMaxValueExtension, RelativeMinValueExtension, type ResearchSubject, type ResearchSubjectProgress, type ResearchSubjectProgressState, type ResponseCondition, type ResponseContext, ResponseGuard, type ResponseMinimal, type ResponseTimes, type ResponseValue, type RestorationSize, type Routine, type RoutineCondition, type RoutineContent, type RoutineContentPath, type RoutineContentStep, RoutineGuard, RoutineIsPassiveExtension, type RoutineTimes, type SDKDeviceConfig, type SDKInterface, SIGNAL_DURATION_CODING, type ScalarAnswer, type ScalarAnswerItem, type ScoreThreshold, type SeenDisplay, type SeenMessage, SensorIdentifierSystem, SensorSettingsSystem, SensorTypeSystem, SignalIDSystem, type SkippedStep, SliderInputLabel, SliderMaxLabelExtension, SliderMinLabelExtension, SliderOrientationExtension, SliderStepSizeExtension, type StepCondition, type StepConditionBase, type StringTemplater, StudyNameSystem, type Survey, type SurveyCondition, type SurveyContent, type SurveyContentPath, SurveyGuard, type SurveyMultiplex, type SurveyScoring, TAG_LENGTH, TOPIC_ID_PATTERN, TOPIC_SCOPE_CODES, TRACKING_RESOURCE_TYPE, type Tag, type TagEffectiveType, type TaskFrequency, type Threshold, TimeFuncs, type TimeWindow, TokenNamingSystem, TopicInputScopeUrl, TopicInputTopicUrl, type TopicScopeCode, TopicSystem, type TrackingCategory, type TrackingEvent, type TrackingEventsDocument, type TranslatedString, ULID_REGEX, ULIDtoUUID, UUID_REGEX, UUIDtoULID, type V4KeySpec, type V4SlotSpec, V4_DECRYPTER_DATA_RECEIVER, V4_DECRYPTER_MOBILE_APP, WORDLIST_LANGUAGES, WearOS3AnnotationMap, WebConverter, type WordListLanguage, YearGuard, binaryStringToUint8Array, buildSelfSignedAuthToken, calculateQuestionnaireScoreRange, calculateScoreRangeForItem, capitalizeFirstLetter, dayFormat, encodeDataSource, extractWordsFromRecoveryPhrase, generateFHIRConsent, generateFHIRQuestionnaireScore, generateFHIRRecordingBundle, generateFHIRResearchSubject, generateFHIRResponse, generateFHIRSeenDisplay, generateFHIRSeenMessage, generateFHIRTag, generateQuestionGuard, generateStepGuard, generateUrn, get, getFollowUpQuestionLinkId, getLanguageOfPassPhrase, getMovellaAnnotation, getText, getTimeFuncs, indexArrayBy, isArrayAnswer, isBeforeStartDate, isFlatAnswer, isGeoLocationAnswer, isMatrixAnswer, isNotAfterEndDate, isNotBeforeStartDate, isScalarAnswer, isScoreEligible, isValidTopicCanonical, isValidTopicId, isValidTopicScope, isYearString, newStepDateGuard, overwriteTime, stringToDate, stringToYear, timezonelessDate, toDeviceConfig, toQuestionnaireResponseItem, topicIdFromCanonical, uint8ArrayToBinaryString, utf8ToUint8Array, v4AesKey, v4AesSlot, v4EcKey, v4EcSlot, v4RsaKey, v4RsaSlot, wordlists };
2267
+ export { AES_BLOCKSIZE, ANDROID_SENSORS_CONSTANT_NAMES, type API, type APIConfig, type APIDeviceConfig, API_TARGET_MAP, APPLE_HEALTH_ANNOTATION_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ACTIVITY_SUMMARY, APPLE_HEALTH_ANNOTATION_CONTRACEPTIVE, APPLE_HEALTH_ANNOTATION_HEART_RATE, APPLE_HEALTH_ANNOTATION_HRV, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVITY_SUMMARY, APPLE_HEALTH_ANNOTATION_ITEM_CONTRACEPTIVE_TYPE, APPLE_HEALTH_ANNOTATION_ITEM_HEART_RATE, APPLE_HEALTH_ANNOTATION_ITEM_HRV, APPLE_HEALTH_ANNOTATION_ITEM_LACTATION_STATE, APPLE_HEALTH_ANNOTATION_ITEM_MENSTRUAL_CYCLE, APPLE_HEALTH_ANNOTATION_ITEM_PREGNANCY_STATE, APPLE_HEALTH_ANNOTATION_ITEM_RESPIRATORY_RATE, APPLE_HEALTH_ANNOTATION_ITEM_RESTING_HEART_RATE, APPLE_HEALTH_ANNOTATION_ITEM_SKIN_TEMPERATURE, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE, APPLE_HEALTH_ANNOTATION_ITEM_SPO2, APPLE_HEALTH_ANNOTATION_ITEM_STAND_HOUR_STATE, APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT, APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_ANNOTATION_ITEM_WORKOUT, APPLE_HEALTH_ANNOTATION_LACTATION, APPLE_HEALTH_ANNOTATION_MENSTRUAL_CYCLE, APPLE_HEALTH_ANNOTATION_PREGNANCY, APPLE_HEALTH_ANNOTATION_RESPIRATORY_RATE, APPLE_HEALTH_ANNOTATION_RESTING_HEART_RATE, APPLE_HEALTH_ANNOTATION_SKIN_TEMPERATURE, APPLE_HEALTH_ANNOTATION_SLEEP_ANALYSIS, APPLE_HEALTH_ANNOTATION_SPO2, APPLE_HEALTH_ANNOTATION_STAND_HOURS, APPLE_HEALTH_ANNOTATION_STEP_COUNT, APPLE_HEALTH_ANNOTATION_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_ANNOTATION_WORKOUT, APPLE_HEALTH_DATA_SOURCES, APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, APPLE_HEALTH_SLEEP_STATE_MAP, ASMSECGMeasurementAnnotation, ASMSSpO2MeasurementAnnotation, type AccessToken, type AccessTokenProvider, type AndCondition, type Answer, AnswerCodeGuard, AnswerDateGuard, type AnswerItem, type Answers, AppIDNamingSystem, type AppleHealthDataSource, type AppleHealthSleepStates, type ArrayAnswer, type ArrayAnswerItem, type BLEDeviceConfig, BLE_ASMS_ANNOTATION_ITEM_ECG, BLE_ASMS_ANNOTATION_ITEM_SPO2, BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE, BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES, BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE, BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN, BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS, BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS, BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED, BLE_PAMS_ANNOTATION_ITEM_BYTE, BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL, BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FLAGS_16, BLE_PAMS_ANNOTATION_ITEM_FLAGS_24, BLE_PAMS_ANNOTATION_ITEM_FLAGS_32, BLE_PAMS_ANNOTATION_ITEM_FLAGS_8, BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES, BLE_PAMS_ANNOTATION_ITEM_HEADER, BLE_PAMS_ANNOTATION_ITEM_HEART_RATE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_SPEED, BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES, BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES, BLE_PAMS_ANNOTATION_ITEM_VO2_MAX, BLE_PSMS_ANNOTATION_ITEM_ACCELERATION, BLE_PSMS_ANNOTATION_ITEM_HEART_RATE, BLE_PSMS_ANNOTATION_ITEM_IBI, BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN, BLE_PSMS_ANNOTATION_ITEM_PPG_IR, BLE_PSMS_ANNOTATION_ITEM_PPG_RED, BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE, type BaseDeviceConfig, type BleDeviceMetaLabel, BoolGuard, CPMSHealthServicesActivityDetectionAnnotation, CPMSHealthServicesPassiveDataAnnotation, type CodeQuestionCondition, CollectorClient, type CollectorConnectParams, type CollectorSyncItem, type CollectorSyncResponse, CommunicationTypeSystem, type ComparisonOperator, type CompiledEnableWhen, type ConditionOperatorType, type ConditionQuestionType, type ConditionSorting, type ConditionType, Conjunction, type Consent, type ConsentCondition, ConsentGuard, ConsentNameSystem, type ConsentPath, type ConsentTimes, ConsentVersionSystem, type ContentBlock, type Converter, type CopyrightLabel, CountryValueSet, type CryptoModule, CustomExtensionContextValue, CustomExtensionDate, CustomExtensionStudyName, CustomQuestionSystem, type DEVICE_ANNOTATION, type DEVICE_ANNOTATION_DATA_FORMAT, type DEVICE_ANNOTATION_DATA_TYPE, type DEVICE_ANNOTATION_DATA_TYPE_APPLE, DEVICE_ANNOTATION_HEARTRATE, DEVICE_ANNOTATION_HRV_RMSSD, type DEVICE_ANNOTATION_ITEM, DEVICE_ANNOTATION_ITEM_ACCELERATION, DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED, DEVICE_ANNOTATION_ITEM_BEACON_ID, DEVICE_ANNOTATION_ITEM_DATA_SOURCE, DEVICE_ANNOTATION_ITEM_DISTANCE, DEVICE_ANNOTATION_ITEM_EGVS, DEVICE_ANNOTATION_ITEM_HEARTRATE, DEVICE_ANNOTATION_ITEM_HRV_RMSSD, DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD, DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE, DEVICE_ANNOTATION_ITEM_RESTING_HEART_RATE, DEVICE_ANNOTATION_ITEM_RSSI, DEVICE_ANNOTATION_ITEM_SKIN_TEMPERATURE_DEVIATION, DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP, DEVICE_ANNOTATION_SKIN_TEMPERATURE_DEVIATION, DEVICE_ANNOTATION_TIMESTAMP_NOTE, DEVICE_ANNOTATION_TIMESTAMP_SIZE, DEVICE_ANNOTATION_TIMESTAMP_UNIT, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP, DEVICE_DISPLAY_LABEL_CODING, type DEVICE_KEY, type DEVICE_KEY_API, type DEVICE_KEY_BLE, type DEVICE_KEY_INTERNAL, type DEVICE_KEY_SDK, DEVICE_KEY_TO_NAME, DEVICE_LABEL_CODING, type DEVICE_MOVELLA_PAYLOAD_MODES, DEVICE_OUTPUT_RATE_CODING, DEVICE_SENSOR_DELAY_CODING, type DEVICE_SIGNAL_TYPE, type DEVICE_SIGNAL_TYPE_APPLE, type DateBlurringFunction, type DateCondition, DateGuard, type DateQuestionCondition, DecimalGuard, type DecompiledEnableWhen, type DeviceConfig, type DeviceName, Disjunction, type Display, type DisplayContent, type DisplayContentPath, type DisplayPath, type DisplayType, type DonationRecord, DonationSDK, type DonorIdentity, ELAPSED_UNITS_BY_VALUE_TYPE, ENABLE_WHEN_PREDICATES_BY_VALUE_TYPE, ERROR_CODES, type EnableWhenBehavior, type EnableWhenComparisonOp, EnableWhenCompileError, type EnableWhenCondition, type EnableWhenDateUnit, EnableWhenExpressionExtension, type EnableWhenItemVariable, type EnableWhenPredicate, type EnableWhenPredicateOp, type EnableWhenSource, type EnableWhenValueType, ExistsGuard, type ExtendedProgramDevicesDataType, FITBIT_ANNOTATION_ITEM_BREATHING_RATE, FITBIT_ANNOTATION_ITEM_CALORIES, FITBIT_ANNOTATION_ITEM_HEART_RATE, FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY, FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION, FITBIT_ANNOTATION_ITEM_SPO2, FITBIT_ANNOTATION_ITEM_STEPS, FITBIT_BREATHING_RATE_ANNOTATION, FITBIT_CALORIES_ANNOTATION, FITBIT_HEART_RATE_ANNOTATION, FITBIT_HEART_RATE_VARIABILITY_ANNOTATION, FITBIT_SIGNAL_TYPE_ANNOTATIONS, FITBIT_SKIN_TEMPERATURE_ANNOTATION, FITBIT_SLEEP_ANNOTATION, FITBIT_SLEEP_LEVEL_MAP, FITBIT_SPO2_ANNOTATION, FITBIT_STEPS_ANNOTATION, FhirPathLanguage, type FitbitSleepLevelTypes, type FlatAnswer, type FrequencySubset, type FrequencyType, GARMIN_ACTIVITY_ANNOTATION, GARMIN_ANNOTATION_ITEM_ACTIVITY_ACTIVE_TIME, GARMIN_ANNOTATION_ITEM_ACTIVITY_LEVEL, GARMIN_ANNOTATION_ITEM_ACTIVITY_METS, GARMIN_ANNOTATION_ITEM_BLOOD_PRESSURE, GARMIN_ANNOTATION_ITEM_BODY_BATTERY, GARMIN_ANNOTATION_ITEM_BODY_COMPOSITION, GARMIN_ANNOTATION_ITEM_SLEEP_SCORE, GARMIN_ANNOTATION_ITEM_VO2MAX, GARMIN_BLOOD_PRESSURE_ANNOTATION, GARMIN_BODY_BATTERY_ANNOTATION, GARMIN_BODY_COMPOSITION_ANNOTATION, GARMIN_SIGNAL_TYPE_ANNOTATIONS, GARMIN_SLEEP_SCORE_ANNOTATION, GARMIN_VO2MAX_ANNOTATION, GOOGLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, type GeoLocationAnswer, type Guard, type GuardContext, type GuardParameters, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE, HEALTH_CONNECT_ANNOTATION_ITEM_STEPS, HEALTH_CONNECT_DATA_SOURCES, HEALTH_CONNECT_ITEM_SPO2, HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS, HEALTH_CONNECT_SLEEP_ANNOTATION, HEALTH_CONNECT_SLEEP_STAGE_MAP, HEALTH_CONNECT_SPO2_ANNOTATION, HEALTH_CONNECT_STEPS_ANNOTATION, HYBRID_ENCRYPTION_VERSION_RECOVERY, HYBRID_ENCRYPTION_VERSION_V4, type HealthConnectDataSource, type HealthConnectSleepStages, HybridEncrypter, IMUAnnotation, ImageExtension, type InternalDeviceConfig, InternalSensorAnnotationTypes, Iso3166CodeSystem, ItemVariableNameUrl, ItemVariableQuestionUrl, ItemVariableScopeUrl, ItemVariableTopicUrl, KEY_LENGTH, KeyHandler, LINE_SYSTEMS_ANNOTATION_ITEM_BASAL, LINE_SYSTEMS_ANNOTATION_ITEM_BASAL_STATE, LINE_SYSTEMS_ANNOTATION_ITEM_BGM, LINE_SYSTEMS_ANNOTATION_ITEM_BGM_SUB_TYPE, LINE_SYSTEMS_ANNOTATION_ITEM_BOLUS, LINE_SYSTEMS_ANNOTATION_ITEM_CGM, LINE_SYSTEMS_ANNOTATION_ITEM_DEVICE_EVENT_SOURCE, LINE_SYSTEMS_ANNOTATION_ITEM_DEVICE_EVENT_TYPE, LINE_SYSTEMS_ANNOTATION_ITEM_INSULIN_ORIGIN, LINE_SYSTEMS_BASAL_ANNOTATION, LINE_SYSTEMS_BGM_ANNOTATION, LINE_SYSTEMS_BOLUS_ANNOTATION, LINE_SYSTEMS_CGM_ANNOTATION, LINE_SYSTEMS_DEVICE_EVENTS_ANNOTATION, LINE_SYSTEMS_GLUCOSE_DEFAULT_UNIT, LINE_SYSTEMS_SIGNAL_TYPE_ANNOTATIONS, MENSTRUAL_CYCLE_ANNOTATION, MENSTRUAL_CYCLE_ANNOTATION_ITEM, MENSTRUAL_CYCLE_PHASE, MENSTRUAL_FLOW, MENSTRUAL_FLOW_ANNOTATION, MENSTRUAL_FLOW_ANNOTATION_ITEM, type MatrixAnswer, type MatrixAnswerItem, MaxValueExtension, MeasurementTypeSystem, type Message, type MessagePath, type MessageRecipient, MinLengthExtension, MinValueExtension, type MultiAnswers, type Notification, type NotificationRecipient, OTHER_ANSWER_CODE, OURA_ACTIVITY_ANNOTATION, OURA_ANNOTATION_ITEM_ACTIVITY_LEVEL, OURA_ANNOTATION_ITEM_BATTERY_LEVEL, OURA_ANNOTATION_ITEM_CARDIOVASCULAR_AGE, OURA_ANNOTATION_ITEM_STRESS, OURA_ANNOTATION_ITEM_TAG, OURA_ANNOTATION_ITEM_WORKOUT, OURA_BATTERY_LEVEL_ANNOTATION, OURA_CARDIOVASCULAR_AGE_ANNOTATION, OURA_SIGNAL_TYPE_ANNOTATIONS, OURA_STRESS_ANNOTATION, OURA_TAG_ANNOTATION, OURA_WORKOUT_ANNOTATION, ObservationTypeSystem, Offset, type OffsetCondition, type OrCondition, PAMSCardioVascularActivityAnnotation, PAMSGeneralActivityInstantaneousAnnotation, PAMSGeneralActivitySummaryAnnotation, PAMSStepCounterActivitySummaryAnnotation, PSMSAccelerationAnnotation, PSMSHeartRateAnnotation, PSMSPPGGreenAnnotation, PSMSPPGIRAnnotation, PSMSPPGRedAnnotation, PSMSSkinTemperatureAnnotation, PostalCodeCountrySourceExtension, PostalCodeFixedCountryUrl, PostalCodeFromItemUrl, PrepopulateExtension, type PreviewTimeSeriesItem, type Program, type ProgramAnonymization, type ProgramAppVersion, type ProgramClientTarget, type ProgramConsentStep, type ProgramContact, type ProgramContent, type ProgramContentPath, type ProgramDevice, type ProgramDeviceType, type ProgramDevicesDataType, type ProgramDevicesLabel, type ProgramDisplayStep, type ProgramDonation, type ProgramEligibilityStep, type ProgramFeatured, type ProgramRoutineStep, type ProgramSensorStep, type ProgramStep, type ProgramStepBase, type ProgramStepType, type ProgramSurveyStep, type ProgramTag, type ProgramTokenStep, type ProgramTracking, type ProgramType, QItemControlDefinition, type QuestionInputType, QuestionnaireItemInputExtension, QuestionnaireItemOutputExtension, QuestionnaireItemVariableExtension, type QuestionnaireResponse, type QuestionnaireScore, RECORDING_MODEL_CURRENT_VERSION, RECORDING_SIGNAL_MODEL_CURRENT_VERSION, type RecordState, type Recording, type RecordingSignal, type RecordingSignalItem, type RecordingSignalPreview, type RecordingSignalWithId, type RecordingTag, type RecursiveKeyOf, RelativeMaxValueExtension, RelativeMinValueExtension, type ResearchSubject, type ResearchSubjectProgress, type ResearchSubjectProgressState, type ResponseCondition, type ResponseContext, ResponseGuard, type ResponseMinimal, type ResponseTimes, type ResponseValue, type RestorationSize, type Routine, type RoutineCondition, type RoutineContent, type RoutineContentPath, type RoutineContentStep, RoutineGuard, RoutineIsPassiveExtension, type RoutineTimes, type SDKDeviceConfig, type SDKInterface, SIGNAL_DURATION_CODING, SUPPORTED_FHIRPATH_DATE_UNITS, type ScalarAnswer, type ScalarAnswerItem, type ScoreThreshold, type SeenDisplay, type SeenMessage, SensorIdentifierSystem, SensorSettingsSystem, SensorTypeSystem, SignalIDSystem, type SkippedStep, SliderInputLabel, SliderMaxLabelExtension, SliderMinLabelExtension, SliderOrientationExtension, SliderStepSizeExtension, type StepCondition, type StepConditionBase, type StringTemplater, StudyNameSystem, type Survey, type SurveyCondition, type SurveyContent, type SurveyContentPath, SurveyGuard, type SurveyMultiplex, type SurveyScoring, TAG_LENGTH, TEMPORAL_PREDICATES, TOPIC_ID_PATTERN, TOPIC_SCOPE_CODES, TRACKING_RESOURCE_TYPE, type Tag, type TagEffectiveType, type TaskFrequency, type Threshold, TimeFuncs, type TimeWindow, TokenNamingSystem, TopicInputScopeUrl, TopicInputTopicUrl, type TopicScopeCode, TopicSystem, type TrackingCategory, type TrackingEvent, type TrackingEventsDocument, type TranslatedString, ULID_REGEX, ULIDtoUUID, UUID_REGEX, UUIDtoULID, type V4KeySpec, type V4SlotSpec, V4_DECRYPTER_DATA_RECEIVER, V4_DECRYPTER_MOBILE_APP, WORDLIST_LANGUAGES, WearOS3AnnotationMap, WebConverter, type WordListLanguage, YearGuard, binaryStringToUint8Array, calculateQuestionnaireScoreRange, calculateScoreRangeForItem, capitalizeFirstLetter, compileEnableWhen, dayFormat, decompileEnableWhen, encodeDataSource, extractWordsFromRecoveryPhrase, generateFHIRConsent, generateFHIRQuestionnaireScore, generateFHIRRecordingBundle, generateFHIRResearchSubject, generateFHIRResponse, generateFHIRSeenDisplay, generateFHIRSeenMessage, generateFHIRTag, generateQuestionGuard, generateStepGuard, generateUrn, get, getFollowUpQuestionLinkId, getLanguageOfPassPhrase, getMovellaAnnotation, getText, getTimeFuncs, indexArrayBy, isArrayAnswer, isBeforeStartDate, isFlatAnswer, isGeoLocationAnswer, isMatrixAnswer, isNotAfterEndDate, isNotBeforeStartDate, isScalarAnswer, isScoreEligible, isValidTopicCanonical, isValidTopicId, isValidTopicScope, isYearString, lineSystemsGlucoseAnnotation, newStepDateGuard, overwriteTime, requiresExpression, stringToDate, stringToYear, timezonelessDate, toDeviceConfig, toQuestionnaireResponseItem, topicIdFromCanonical, uint8ArrayToBinaryString, utf8ToUint8Array, v4AesKey, v4AesSlot, v4EcKey, v4EcSlot, v4RsaKey, v4RsaSlot, wordlists };