@d4l/collect-lib 1.52.0 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,6 +45,16 @@ Update the types by running `yarn run readme:update`.
45
45
  | featured | true | [ProgramFeatured](#ProgramFeatured) | Describes the featured state of the program. |
46
46
  | theme | false | 'D4L', 'GREEN', 'PURPLE', 'OLIVE' or 'BLUE' | The theme to be used for the program in the app |
47
47
  | appVersion | false | object | Minimum smartphone app version required to run this program. When the installed app is below `version`, the program update is withheld and the user is asked to update. `version` and `androidVersionCode` must describe the same app release. |
48
+ | tracking | false | [ProgramTracking](#ProgramTracking) | BI event tracking configuration. When absent, tracking is off. |
49
+
50
+ #### ProgramTracking
51
+
52
+ BI event tracking is opt-in per program: no configuration means no tracking.
53
+
54
+ | Properties | Required | Type | Description |
55
+ | ---------- | -------- | ------------------ | ------------------------------------------------------------------------- |
56
+ | enabled | true | boolean | Master switch for BI event tracking in this program |
57
+ | categories | true | TrackingCategory[] | Event categories ('technical', 'task', 'engagement') that may be recorded |
48
58
 
49
59
  #### ProgramAppVersion
50
60
 
@@ -156,7 +166,7 @@ Minimum app version a program requires. `version` (semver / versionName) drives
156
166
  | type | true | `date` | Condition that requires a date to have passed |
157
167
  | date | true | string (YYYY-MM-DD) | Timestamp that needs to be passed for the condition to be true. |
158
168
 
159
- #### QuestionCondition
169
+ #### CodeQuestionCondition
160
170
 
161
171
  | Properties | Required | Type | Description |
162
172
  | ------------ | -------- | ----------------------------------- | ------------------------------------------------------------------------------- |
@@ -167,7 +177,7 @@ Minimum app version a program requires. `version` (semver / versionName) drives
167
177
  | operand | false | string | (unless operator is `exists`). Used as `<answer>` `<operator>` `<operand>`. |
168
178
  | operator | true | `exists`,`=`,`!=`,`>`,`<`,`>=`,`<=` | Used as `<answer>` `<operator>` `<operand>`. |
169
179
 
170
- #### QuestionCondition
180
+ #### DateQuestionCondition
171
181
 
172
182
  | Properties | Required | Type | Description |
173
183
  | ------------ | -------- | ---------- | --------------------------------------------------------------------- |
package/dist/index.d.mts CHANGED
@@ -504,7 +504,7 @@ type ResponseContext = {
504
504
  };
505
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';
506
506
 
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' | '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';
508
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';
509
509
  type DEVICE_ANNOTATION_DATA_FORMAT = 'bitmask' | 'boolean' | 'unsignedInt' | 'signedInt' | 'signedBigInt' | 'float32' | 'float64' | 'byte';
510
510
  type DEVICE_ANNOTATION = DEVICE_ANNOTATION_ITEM[];
@@ -578,13 +578,13 @@ interface BleDeviceMetaLabel {
578
578
  en?: string;
579
579
  }
580
580
  type DEVICE_KEY = DEVICE_KEY_BLE | DEVICE_KEY_API | DEVICE_KEY_SDK | DEVICE_KEY_INTERNAL;
581
- type DEVICE_KEY_BLE = 'DOT' | 'OH1' | 'H10' | 'EstimoteUWB' | 'TicWatchE2' | 'PixelWatch1' | 'GalaxyWatch6';
582
- type DEVICE_KEY_API = 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN' | 'DEXCOM' | 'dexcom_g4' | 'dexcom_g5' | 'dexcom_g6' | 'dexcom_g6+' | 'dexcom_g7';
581
+ type DEVICE_KEY_BLE = 'DOT' | 'OH1' | 'H10' | 'EstimoteUWB' | 'PixelWatch' | 'GalaxyWatch6';
582
+ type DEVICE_KEY_API = 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN' | 'LINE_SYSTEMS' | 'DEXCOM' | 'dexcom_g4' | 'dexcom_g5' | 'dexcom_g6' | 'dexcom_g6+' | 'dexcom_g7';
583
583
  type DEVICE_KEY_SDK = 'AppleHealth' | 'HealthConnect';
584
584
  type DEVICE_KEY_INTERNAL = 'INTERNAL' | 'internal_accelerometer' | 'internal_gyroscope' | 'internal_magnetometer' | 'internal_beacon_sensing';
585
585
  type DEVICE_MOVELLA_PAYLOAD_MODES = 'completeEuler' | 'customMode1' | 'rateQuantities';
586
586
  type DEVICE_SIGNAL_TYPE_APPLE = 'stepCount' | 'sleepAnalysis' | 'walkingAndRunningDistance' | 'activeEnergy' | 'heartRate' | 'restingHeartRate' | 'hrv' | 'respiratoryRate' | 'spo2' | 'skinTemperature' | 'workout' | 'standHours' | 'activitySummary' | 'menstrualCycle' | 'contraceptive' | 'pregnancy' | 'lactation';
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';
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';
588
588
  type DeviceName = {
589
589
  shortName: string;
590
590
  fullName: string;
@@ -685,8 +685,8 @@ type ProgramDevice = {
685
685
  clientID?: string;
686
686
  clientTarget?: ProgramClientTarget;
687
687
  };
688
- type ProgramDeviceType = 'EstimoteUWB' | 'DEXCOM' | 'DOT' | 'H10' | 'OH1' | 'INTERNAL' | 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN' | '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';
688
+ type ProgramDeviceType = 'EstimoteUWB' | 'DEXCOM' | 'DOT' | 'H10' | 'OH1' | 'INTERNAL' | 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN' | 'LINE_SYSTEMS' | 'GalaxyWatch6' | 'PixelWatch' | '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';
690
690
  type ProgramDevicesLabel = {
691
691
  name: string;
692
692
  } & TranslatedString;
@@ -824,6 +824,30 @@ declare const GARMIN_SIGNAL_TYPE_ANNOTATIONS: {
824
824
  [key in DEVICE_SIGNAL_TYPE]?: DEVICE_ANNOTATION;
825
825
  };
826
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
+
827
851
  /** Canonical cycle phase. Garmin `currentPhaseType` / Oura phases map onto this. */
828
852
  declare const MENSTRUAL_CYCLE_PHASE: {
829
853
  readonly unknown: -1;
@@ -1349,11 +1373,6 @@ declare const overwriteTime: (date: Date | null | undefined, timeComponent: stri
1349
1373
  */
1350
1374
  declare const timezonelessDate: (input: string) => Date;
1351
1375
 
1352
- interface CryptoModule {
1353
- deriveEncryptionKey(recoveryKey: Uint8Array, salt: string): Promise<Uint8Array>;
1354
- generateKey(size: number): Uint8Array;
1355
- }
1356
-
1357
1376
  /**
1358
1377
  * Converter inferface with functions that require some platform specific functions to implement
1359
1378
  * Generally functions requiring either Buffer or Base64 methods provided by polyfills/replacement libs
@@ -1408,68 +1427,9 @@ declare class WebConverter implements Converter {
1408
1427
  hexToBase64: (hexString: string) => string;
1409
1428
  }
1410
1429
 
1411
- declare class KeyHandler {
1412
- private converter;
1413
- private crypto;
1414
- constructor(converter: Converter, crypto: CryptoModule);
1415
- generateRecoveryKey(): Uint8Array;
1416
- validateRecoveryKey: (recoveryKey: Uint8Array) => boolean;
1417
- mnemonicToEntropy: (mnemonic: string, lng: string) => Uint8Array;
1418
- entropyToMnemonic: (entropy: Uint8Array | null, lng: string) => string;
1419
- /**
1420
- * Derive all necessary program keys from the recovery phrase and the program name
1421
- * @param recoveryKey The 16byte long recovery key (from the recovery phrase)
1422
- * @param programName The name of the program for which the keys should be generated
1423
- * @returns All necessary program keys
1424
- */
1425
- deriveProgramKeys(recoveryKey: Uint8Array, programName: string): Promise<{
1426
- public: string;
1427
- private: string;
1428
- recovery: string;
1429
- }>;
1430
- /**
1431
- * Derive the dedicated encryption keypair (secp256k1) as a hierarchical child of the
1432
- * donor identity, reusing the same one-way KDF as the program key. The public key is
1433
- * shared with the data-collector (SPKI), which ECIES-encrypts buffered payloads to it;
1434
- * the private key feeds HybridEncrypter.decryptV4. Deterministic, so it survives reinstall.
1435
- * @param programPrivateKey The donor identity's base64-encoded program private key (keys.priv)
1436
- * @returns publicKey (SPKI, base64) and privateKey (secp256k1 scalar, base64 — the same
1437
- * encoding as the program private key)
1438
- */
1439
- deriveEncryptionKeypair(programPrivateKey: string): Promise<{
1440
- publicKey: string;
1441
- privateKey: string;
1442
- }>;
1443
- extendPublicKey: (publicKey: Uint8Array) => string;
1444
- /**
1445
- * Hash a message with SHA-256
1446
- * @param message The message to hash
1447
- * @returns The hashed message
1448
- */
1449
- hash: (message: string) => string;
1450
- /**
1451
- * Sign a message
1452
- * @param message The message to sign
1453
- * @param priv The private key used to sign the message
1454
- * @returns The signed message
1455
- */
1456
- sign: (message: string, priv: string) => Promise<Uint8Array>;
1457
- /**
1458
- * Fetch the encoded signed buffer and verify it against the signature
1459
- * @param message The signed message
1460
- * @param signature The signature of the message
1461
- * @param pub The public key used to verify the signature
1462
- * @returns True, if the signature is valid. Otherwise, false.
1463
- */
1464
- verify: (message: string, signature: Uint8Array, pub: string) => Promise<boolean>;
1465
- /**
1466
- * Reduce a donor public key to the raw uncompressed point noble expects — the inverse
1467
- * of extendPublicKey. The SPKI wrapper ends with the 0x04 point prefix, so the raw key
1468
- * is simply its last 65 bytes. Already-raw keys are passed through.
1469
- * @param publicKey SPKI-wrapped (as produced by extendPublicKey) or raw uncompressed key
1470
- * @returns The 65-byte uncompressed point (0x04 || X || Y)
1471
- */
1472
- private rawPublicKey;
1430
+ interface CryptoModule {
1431
+ deriveEncryptionKey(recoveryKey: Uint8Array, salt: string): Promise<Uint8Array>;
1432
+ generateKey(size: number): Uint8Array;
1473
1433
  }
1474
1434
 
1475
1435
  type DonorIdentity = {
@@ -1606,6 +1566,129 @@ declare enum ERROR_CODES {
1606
1566
  UPLOAD_FAILED = "upload_failed"
1607
1567
  }
1608
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
+
1609
1692
  type CollectorConnectParams = {
1610
1693
  /**
1611
1694
  * OAuth authorization code captured by the app at the HTTPS redirect
@@ -1640,27 +1723,24 @@ type CollectorSyncResponse = {
1640
1723
  /** Short human-readable cause, for logs and support. */
1641
1724
  reconnectReason?: string;
1642
1725
  };
1643
- /**
1644
- * Build the self-signed donor bearer token used to authenticate with the collector
1645
- * (identical scheme to the data-dispatcher / DonationSDK): sign `message + secret` with
1646
- * the program private key, where `message` embeds the collector-issued token + the donorID.
1647
- */
1648
- declare const buildSelfSignedAuthToken: (keyHandler: KeyHandler, converter: Converter, pub: string, priv: string, token: string, selfSignSecret: string) => Promise<string>;
1649
1726
  /**
1650
1727
  * Client for the data-collector service. Turns Garmin's webhook-delivered data into a
1651
1728
  * pull feed: the phone connects (handing over its Garmin token + encryption public key),
1652
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.
1653
1734
  */
1654
1735
  declare class CollectorClient {
1655
- private selfSignSecret;
1656
- private api;
1657
- private keyHandler;
1658
- private converter;
1736
+ private accessToken;
1737
+ private baseUrl;
1659
1738
  /**
1660
- * @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)
1661
1741
  * @param collectorURL Base URL including the API prefix, e.g. https://collect.dev.d4l-dev.de/api/collector/v1
1662
1742
  */
1663
- constructor(selfSignSecret: string, collectorURL: string, converter: Converter, crypto: CryptoModule);
1743
+ constructor(accessToken: AccessTokenProvider, collectorURL: string);
1664
1744
  private authenticatedApi;
1665
1745
  /**
1666
1746
  * The collector's donor endpoints are study-scoped in the URL (mirroring the
@@ -1891,91 +1971,68 @@ declare class HybridEncrypter {
1891
1971
  private decryptDonation;
1892
1972
  }
1893
1973
 
1894
- declare class DonationSDK implements SDKInterface {
1895
- /**
1896
- * Flag indicating if the SDK has been initialized
1897
- */
1898
- private selfSignSecret;
1899
- /**
1900
- * Requester targeting the Donation API
1901
- */
1902
- private donationAPI;
1903
- private keyHandler;
1974
+ declare class KeyHandler {
1904
1975
  private converter;
1905
- private hybridEncrypter;
1906
- constructor(selfSignSecret: string, donationAPIurl: string, converter: Converter, crypto: CryptoModule);
1907
- /**
1908
- * Get the public key for the specified target
1909
- * @param target The target to get the public key for
1910
- * @returns The public key of the donation target
1911
- */
1912
- 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;
1913
1982
  /**
1914
- * Get an authenticated requester for the donation API
1915
- * @param donorIdentity The donor identity
1916
- * @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
1917
1987
  */
1918
- private getAuthenticatedDonationAPI;
1988
+ deriveProgramKeys(recoveryKey: Uint8Array, programName: string): Promise<{
1989
+ public: string;
1990
+ private: string;
1991
+ recovery: string;
1992
+ }>;
1919
1993
  /**
1920
- * Create an authentication token which can be used to authenticate with the Donation API
1921
- * @param pub A public base64 encoded key - the donorId
1922
- * @param priv The corresponding base64 encoded private key
1923
- * @param token A unique token issued by the Donation API
1924
- * @param secret SELF_SIGN_SECRET configured for both UA and Donation Service
1925
- * @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)
1926
2001
  */
1927
- private createAuthToken;
2002
+ deriveEncryptionKeypair(programPrivateKey: string): Promise<{
2003
+ publicKey: string;
2004
+ privateKey: string;
2005
+ }>;
2006
+ extendPublicKey: (publicKey: Uint8Array) => string;
1928
2007
  /**
1929
- * Validate an authentication token which can be used to authenticated with the Donation API
1930
- * @param authToken The authentication token that can be used to authenticate with the Donation API
1931
- * @param token A unique token issued by the Donation API
1932
- * @param pub A public base64 encoded key - the donorId
1933
- * @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
1934
2011
  */
1935
- private validateAuthToken;
1936
- donationServiceAvailable(): Promise<boolean>;
1937
- createDonorIdentity(recoveryKey: Uint8Array, programName: string): Promise<DonorIdentity>;
1938
- register(recoveryKey: Uint8Array, program: Program, participationCode?: string): Promise<{
1939
- donorIdentity: DonorIdentity;
1940
- subjectId: string;
1941
- }>;
1942
- donate(donorIdentity: DonorIdentity, program: Program, records: DonationRecord[]): Promise<boolean>;
2012
+ hash: (message: string) => string;
1943
2013
  /**
1944
- * Upload one batch of tracking events (BI events) to the dedicated tracking
1945
- * endpoint. Tracking donations are stored under the `tracking` type on the
1946
- * backend and are excluded from restoration.
1947
- * @param donorIdentity The donor identity
1948
- * @param program The program the events belong to
1949
- * @param document The tracking events batch document
1950
- * @param batchId The UUID identifying this batch (idempotent across retries)
1951
- * @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
1952
2018
  */
1953
- donateTrackingEvents(donorIdentity: DonorIdentity, program: Program, document: TrackingEventsDocument, batchId: string): Promise<boolean>;
2019
+ sign: (message: string, priv: string) => Promise<Uint8Array>;
1954
2020
  /**
1955
- * Encrypt donations to be donated to a specific target
1956
- * @param donatableRecords The donations to encrypt
1957
- * @param donorIdentity The identity of the donor to use
1958
- * @param target The donation target
1959
- * @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.
1960
2026
  */
1961
- private encryptDonations;
2027
+ verify: (message: string, signature: Uint8Array, pub: string) => Promise<boolean>;
1962
2028
  /**
1963
- * Get the total size of donations which can be restored for a specific program
1964
- * @param donorIdentity The identity of the donor to use
1965
- * @param programName The name of the program to get the size for
1966
- * @returns The total size of the donations and the size of each individual donation that can be restored
1967
- * @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)
1968
2034
  */
1969
- getRestorationSize(donorIdentity: DonorIdentity, programName: string): Promise<RestorationSize>;
1970
- restore(donorIdentity: DonorIdentity, programName: string): Promise<{
1971
- document: fhir5.Resource;
1972
- id: string;
1973
- status: RecordState;
1974
- }[]>;
1975
- revoke(donorIdentity: DonorIdentity, program: Program, records: DonationRecord[]): Promise<boolean>;
1976
- getResponses(donorIdentity: DonorIdentity, programName: string, updatedAfter?: string): Promise<ResponseMinimal[]>;
1977
- registerDevice(donorIdentity: DonorIdentity, program: Program, deviceToken: string): Promise<boolean>;
1978
- unregisterDevice(donorIdentity: DonorIdentity, program: Program): Promise<boolean>;
2035
+ private rawPublicKey;
1979
2036
  }
1980
2037
 
1981
2038
  /**
@@ -2195,7 +2252,7 @@ declare const wordlists: {
2195
2252
  declare const OTHER_ANSWER_CODE = "#other";
2196
2253
  declare const getFollowUpQuestionLinkId: (linkId: string) => string;
2197
2254
 
2198
- type API = 'DEXCOM' | 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN';
2255
+ type API = 'DEXCOM' | 'FITBIT' | 'GOOGLE_HEALTH' | 'OURA' | 'GARMIN' | 'LINE_SYSTEMS';
2199
2256
  type APIConfig = {
2200
2257
  loginEndpoint: string;
2201
2258
  tokenEndpoint: string;
@@ -2207,4 +2264,4 @@ declare const API_TARGET_MAP: {
2207
2264
  };
2208
2265
  };
2209
2266
 
2210
- 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 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, 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, buildSelfSignedAuthToken, 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, newStepDateGuard, overwriteTime, requiresExpression, 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 };