@bikefinder/sdk 0.1.8 → 0.3.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.
@@ -8545,1626 +8545,3 @@ export declare const observationDefinitions: readonly [{
8545
8545
  }];
8546
8546
  };
8547
8547
  }];
8548
- export type OperationOutcome = "success" | "empty" | "partial" | "timeout" | "failed" | "cancelled" | "budgetExhausted" | "skipped";
8549
- export type ModuleSubject = string;
8550
- /**
8551
- * Last accepted responsive inventory within the supported chain limit, not proof that no silent physical module exists. Failed/partial discovery cannot commit a smaller inventory. Setup failure is separate from membership discovery.
8552
- */
8553
- export type BatteryInventory = {
8554
- status: "unknown" | "confirmed";
8555
- members: InventoryMember[] | null;
8556
- capacityReached: boolean | null;
8557
- };
8558
- /**
8559
- * Current reported by the identified battery module, in milliamps.
8560
- */
8561
- export type BatteryModuleCurrent = number;
8562
- export type Version = string;
8563
- /**
8564
- * Operating mode reported by the identified battery module's fuel gauge.
8565
- */
8566
- export type BatteryModuleFuelGaugeMode = "mixed" | "voltage" | "unknown";
8567
- /**
8568
- * Fuel-gauge temperature of the identified battery module, in degrees Celsius.
8569
- */
8570
- export type BatteryModuleTemperature = number;
8571
- /**
8572
- * Remaining charge of the identified battery module, as a percentage.
8573
- */
8574
- export type BatteryModuleChargeLevel = number;
8575
- /**
8576
- * Per-module charging temperature decision with hysteresis. The exact fresh reading accepted for the reported decision is thermistorAdc (raw ADC) for batteryModule, lteTemperatureC (degrees Celsius) for lte, or neither for unavailable. Reading and decision share a timestamp and module binding. Temperature drift alone does not produce a new state observation. A limited state does not establish a 130 mA battery-current guarantee.
8577
- */
8578
- export type BatteryModuleThermalStatus = {
8579
- state: "unknown" | "allowed" | "limited" | "stopped";
8580
- reason: "none" | "invalidThresholds" | "cableThreshold" | "missingEvidence" | "lowTemperature" | "highTemperature";
8581
- temperatureSource: "unavailable" | "batteryModule" | "lte";
8582
- thermistorAdc: number | null;
8583
- lteTemperatureC: number | null;
8584
- };
8585
- /**
8586
- * Cached actual thermistor reading with its own timestamp; never assume an unverified Celsius conversion.
8587
- */
8588
- export type BatteryModuleThermistorAdc = number;
8589
- /**
8590
- * Voltage of the identified battery module, in millivolts.
8591
- */
8592
- export type BatteryModuleVoltage = number;
8593
- export type ChargingStatus = {
8594
- state: "unknown" | "notCharging" | "charging" | "full" | "paused";
8595
- reason: "none" | "externalPowerAbsent" | "externalPowerUnknown" | "noDiscoveredModules" | "inventoryUnknown" | "inventoryCapped" | "inconsistentEvidence" | "notReady" | "communication" | "stale" | "thermal" | "cable" | "allModulesFull" | "overcurrent" | "maintenance" | "chargerFault" | "disabled" | "hardwareIdle";
8596
- };
8597
- /**
8598
- * Number of charging holds reported by the controller.
8599
- */
8600
- export type ChargingHoldCount = number;
8601
- /**
8602
- * Actor-owned qualification state for input current and module concurrency, with independent reasons and retained cooldowns. Mode is the adopted input-current setting. Input is null outside adaptive mode; concurrency is null when charging is disabled or the actor uses a single-module configuration. Qualifications are controller limits, not module inventory, charger commands or current flow.
8603
- */
8604
- export type ChargingAdaptation = {
8605
- mode: "disabled" | "adaptive" | "fixed";
8606
- input: ChargingInputAdaptation | null;
8607
- concurrency: ChargingConcurrencyAdaptation | null;
8608
- };
8609
- export type ChargingAdjustmentReason = "qualifying" | "atCeiling" | "poorSupply" | "inputVoltageRegulation";
8610
- /**
8611
- * Conflicting fresh evidence means unknown. Confirmed input absence means notCharging; any fresh charging member means charging. Full requires noncapped accepted nonempty inventory and fresh ready/full evidence for every member. Paused requires known noncharging evidence and an active resumable hold. Otherwise unknown or confirmed idle/disabled. Per-module faults and plan constraints do not overwrite the aggregate reason.
8612
- */
8613
- export type ChargingStatus1 = {
8614
- state: "unknown" | "notCharging" | "charging" | "full" | "paused";
8615
- reason: "none" | "externalPowerAbsent" | "externalPowerUnknown" | "noDiscoveredModules" | "inventoryUnknown" | "inventoryCapped" | "inconsistentEvidence" | "notReady" | "communication" | "stale" | "thermal" | "cable" | "allModulesFull" | "overcurrent" | "maintenance" | "chargerFault" | "disabled" | "hardwareIdle";
8616
- };
8617
- /**
8618
- * Admitted network exchange attempts, including connection and subsequent publication exchanges.
8619
- */
8620
- export type ConnectionAttemptCount = number;
8621
- /**
8622
- * Number of operating cycles recorded by the connection diagnostics.
8623
- */
8624
- export type ConnectionCycleCount = number;
8625
- /**
8626
- * Number of successful connections recorded by the tracker.
8627
- */
8628
- export type SuccessfulConnectionCount = number;
8629
- /**
8630
- * Broker-observed connectivity complements device observations and can report an offline tracker.
8631
- */
8632
- export type ConnectionEvent = {
8633
- state: "connected" | "disconnected";
8634
- sessionId: string;
8635
- reason: string | null;
8636
- eventVersion: string;
8637
- clientInitiatedDisconnect: boolean | null;
8638
- certificateId: string;
8639
- };
8640
- /**
8641
- * Number of failed exchanges recorded by the tracker.
8642
- */
8643
- export type FailedExchangeCount = number;
8644
- /**
8645
- * Number of report operations recorded by the connection diagnostics.
8646
- */
8647
- export type PublishedReportCount = number;
8648
- /**
8649
- * Received payload bytes recorded by the connection diagnostics.
8650
- */
8651
- export type ReceivedPayloadBytes = number;
8652
- /**
8653
- * Number of resumed communication sessions recorded by the tracker.
8654
- */
8655
- export type ResumedSessionCount = number;
8656
- /**
8657
- * Number of subscription operations recorded by the connection diagnostics.
8658
- */
8659
- export type SubscriptionCount = number;
8660
- /**
8661
- * Time reported for receiving the MQTT connection acknowledgment, in milliseconds.
8662
- */
8663
- export type MQTTConnectionAcknowledgmentTime = number;
8664
- /**
8665
- * Connection establishment time reported by the connection diagnostics, in milliseconds.
8666
- */
8667
- export type ConnectionEstablishmentTime = number;
8668
- /**
8669
- * DNS lookup time reported by the connection diagnostics, in milliseconds.
8670
- */
8671
- export type DNSLookupTime = number;
8672
- /**
8673
- * Report transmission time reported by the connection diagnostics, in milliseconds.
8674
- */
8675
- export type ReportPublicationTime = number;
8676
- /**
8677
- * Transmitted payload bytes recorded by the connection diagnostics.
8678
- */
8679
- export type TransmittedPayloadBytes = number;
8680
- /**
8681
- * Build fingerprint identifying the tracker firmware build.
8682
- */
8683
- export type FirmwareBuildFingerprint = string;
8684
- /**
8685
- * Hardware version reported by the tracker.
8686
- */
8687
- export type HardwareVersion = string;
8688
- /**
8689
- * Number of device events reported lost by the event-history subsystem.
8690
- */
8691
- export type LostEventCount = number;
8692
- /**
8693
- * Bluetooth application firmware version reported by the tracker.
8694
- */
8695
- export type BluetoothFirmwareVersion = string;
8696
- /**
8697
- * LTE application firmware version reported by the tracker.
8698
- */
8699
- export type CellularFirmwareVersion = string;
8700
- /**
8701
- * Cellular modem firmware version reported by the tracker.
8702
- */
8703
- export type ModemFirmwareVersion = string;
8704
- /**
8705
- * Total bytes written to flash as reported by the tracker.
8706
- */
8707
- export type FlashBytesWritten = number;
8708
- /**
8709
- * Bytes written to the connection journal in flash.
8710
- */
8711
- export type ConnectionJournalBytesWritten = number;
8712
- /**
8713
- * Flash pages erased for the connection journal.
8714
- */
8715
- export type ConnectionJournalPagesErased = number;
8716
- /**
8717
- * Number of flash erase calls recorded by the tracker.
8718
- */
8719
- export type FlashEraseCount = number;
8720
- /**
8721
- * Number of flash erase errors recorded by the tracker.
8722
- */
8723
- export type FlashEraseErrorCount = number;
8724
- /**
8725
- * Bytes written to flash outside the settings and connection journals.
8726
- */
8727
- export type OtherFlashBytesWritten = number;
8728
- /**
8729
- * Flash pages erased outside the settings and connection journals.
8730
- */
8731
- export type OtherFlashPagesErased = number;
8732
- /**
8733
- * Number of flash pages erased as reported by the tracker.
8734
- */
8735
- export type FlashPagesErased = number;
8736
- /**
8737
- * Whether one or more flash counters reached their representable limit.
8738
- */
8739
- export type FlashCountersSaturated = boolean;
8740
- /**
8741
- * Bytes written to the settings journal in flash.
8742
- */
8743
- export type SettingsJournalBytesWritten = number;
8744
- /**
8745
- * Flash pages erased for the settings journal.
8746
- */
8747
- export type SettingsJournalPagesErased = number;
8748
- /**
8749
- * Number of flash write calls recorded by the tracker.
8750
- */
8751
- export type FlashWriteCount = number;
8752
- /**
8753
- * Number of flash write errors recorded by the tracker.
8754
- */
8755
- export type FlashWriteErrorCount = number;
8756
- /**
8757
- * Boot count reported by the tracker.
8758
- */
8759
- export type BootCount = number;
8760
- /**
8761
- * Number of modem faults recorded by the tracker.
8762
- */
8763
- export type ModemFaultCount = number;
8764
- /**
8765
- * Remaining time in the tracker's online window, in seconds.
8766
- */
8767
- export type RemainingOnlineTime = number;
8768
- /**
8769
- * Time the tracker has been running since boot, in seconds.
8770
- */
8771
- export type DeviceUptime = number;
8772
- export type ObservationId = string;
8773
- /**
8774
- * Bytes currently allocated in the modem library heap.
8775
- */
8776
- export type ModemLibraryMemoryAllocated = number;
8777
- /**
8778
- * Number of failed allocations in the modem library heap.
8779
- */
8780
- export type ModemLibraryAllocationFailures = number;
8781
- /**
8782
- * Bytes currently free in the modem library heap.
8783
- */
8784
- export type ModemLibraryFreeMemory = number;
8785
- /**
8786
- * Peak allocated bytes recorded for the modem library heap.
8787
- */
8788
- export type ModemLibraryPeakMemory = number;
8789
- /**
8790
- * Bytes currently allocated in the modem transmit heap.
8791
- */
8792
- export type ModemTransmitMemoryAllocated = number;
8793
- /**
8794
- * Number of failed allocations in the modem transmit heap.
8795
- */
8796
- export type ModemTransmitAllocationFailures = number;
8797
- /**
8798
- * Bytes currently free in the modem transmit heap.
8799
- */
8800
- export type ModemTransmitFreeMemory = number;
8801
- /**
8802
- * Peak allocated bytes recorded for the modem transmit heap.
8803
- */
8804
- export type ModemTransmitPeakMemory = number;
8805
- /**
8806
- * Supply voltage returned by the modem, in millivolts.
8807
- */
8808
- export type ModemSupplyVoltage = number;
8809
- /**
8810
- * Temperature returned by the modem, in degrees Celsius.
8811
- */
8812
- export type ModemTemperature = number;
8813
- /**
8814
- * Last access technology reported by the modem. Repeated identical callbacks and cached reads preserve its original observation time.
8815
- */
8816
- export type CellularAccessTechnology = "unknown" | "lteM" | "nbIot";
8817
- /**
8818
- * Last registration state observed by the modem owner. The registered boolean is derived from home or roaming; repeated identical callbacks do not renew state evidence.
8819
- */
8820
- export type NetworkRegistration = "unknown" | "notRegistered" | "home" | "searching" | "denied" | "roaming" | "simFailure" | "noSuitableCell";
8821
- /**
8822
- * Elapsed time from the registration attempt start to confirmed successful registration, in milliseconds.
8823
- */
8824
- export type CellularRegistrationDuration = number;
8825
- /**
8826
- * Reference signal received power of the last known serving cell, in dBm.
8827
- */
8828
- export type ServingCellSignalPowerRSRP = number;
8829
- /**
8830
- * Reference signal received quality of the last known serving cell, in dB.
8831
- */
8832
- export type ServingCellSignalQualityRSRQ = number;
8833
- /**
8834
- * Pending FIFO records retired after a matching successful MQTT PUBACK, since this boot. Broker acceptance does not prove backend processing.
8835
- */
8836
- export type OutboxAcknowledgedObservations = number;
8837
- /**
8838
- * Number of observations enqueued in the outbox.
8839
- */
8840
- export type OutboxEnqueuedObservations = number;
8841
- /**
8842
- * Number of observations evicted from the outbox.
8843
- */
8844
- export type OutboxEvictedObservations = number;
8845
- /**
8846
- * Number of observations removed from the outbox because they expired.
8847
- */
8848
- export type OutboxExpiredObservations = number;
8849
- /**
8850
- * Power and charging transitions dropped from the bounded controller handoff before observation FIFO admission, since this boot.
8851
- */
8852
- export type LostPowerTransitions = number;
8853
- /**
8854
- * Number of observations rejected because they exceeded the outbox size limit.
8855
- */
8856
- export type OutboxOversizedObservations = number;
8857
- /**
8858
- * Local records retired without acknowledgement because a selection/delivery policy commit removed their last authorization. Not memory-pressure eviction, expiry or proof that bytes never reached the broker.
8859
- */
8860
- export type OutboxPolicyCancelled = number;
8861
- /**
8862
- * Submitted outbox publication attempts completed without a successful MQTT PUBACK, including failed and canceled attempts. Does not count payload bytes or backend rejections.
8863
- */
8864
- export type UnacknowledgedOutboxAttempts = number;
8865
- /**
8866
- * Number of urgent observations evicted from the outbox.
8867
- */
8868
- export type OutboxEvictedUrgentObservations = number;
8869
- /**
8870
- * Readable activity state; elapsed counters remain independent and overlap.
8871
- *
8872
- * @maxItems 8
8873
- */
8874
- export type PowerActivities = ("rrc" | "mqtt" | "responseWindow" | "psm" | "esp" | "wifiScan" | "bleScan" | "gnss")[];
8875
- /**
8876
- * Number of entries into Bluetooth scanning recorded in the power-activity snapshot.
8877
- */
8878
- export type BluetoothScanningEntryCount = number;
8879
- /**
8880
- * Accumulated time attributed to Bluetooth scanning, in milliseconds, in the power-activity snapshot.
8881
- */
8882
- export type BluetoothScanningTotalTime = number;
8883
- /**
8884
- * Number of Bluetooth scan timeouts recorded in the power-activity snapshot.
8885
- */
8886
- export type BluetoothTimeoutCount = number;
8887
- /**
8888
- * Number of entries into the ESP peripheral recorded in the power-activity snapshot.
8889
- */
8890
- export type ESPPeripheralEntryCount = number;
8891
- /**
8892
- * Accumulated time attributed to the ESP peripheral, in milliseconds, in the power-activity snapshot.
8893
- */
8894
- export type ESPPeripheralTotalTime = number;
8895
- /**
8896
- * Number of ESP recovery attempts recorded in the power-activity snapshot.
8897
- */
8898
- export type ESPRecoveryCount = number;
8899
- /**
8900
- * External power connection state reported by the tracker.
8901
- */
8902
- export type ExternalPower = "unknown" | "disconnected" | "connected";
8903
- export type ExternalPower1 = "unknown" | "disconnected" | "connected";
8904
- /**
8905
- * Number of entries into the GNSS receiver recorded in the power-activity snapshot.
8906
- */
8907
- export type GNSSReceiverEntryCount = number;
8908
- /**
8909
- * Accumulated time attributed to the GNSS receiver, in milliseconds, in the power-activity snapshot.
8910
- */
8911
- export type GNSSReceiverTotalTime = number;
8912
- /**
8913
- * Number of entries into the MQTT connection recorded in the power-activity snapshot.
8914
- */
8915
- export type MQTTConnectionEntryCount = number;
8916
- /**
8917
- * Accumulated time attributed to the MQTT connection, in milliseconds, in the power-activity snapshot.
8918
- */
8919
- export type MQTTConnectionTotalTime = number;
8920
- /**
8921
- * Number of entries into modem power-saving mode recorded in the power-activity snapshot.
8922
- */
8923
- export type ModemPowerSavingEntryCount = number;
8924
- /**
8925
- * Number of power-saving-mode fallbacks recorded in the power-activity snapshot.
8926
- */
8927
- export type PowerSavingFallbackCount = number;
8928
- /**
8929
- * Accumulated time attributed to modem power-saving mode, in milliseconds, in the power-activity snapshot.
8930
- */
8931
- export type ModemPowerSavingTotalTime = number;
8932
- /**
8933
- * Number of entries into the command-response window recorded in the power-activity snapshot.
8934
- */
8935
- export type CommandResponseWindowEntryCount = number;
8936
- /**
8937
- * Accumulated time attributed to the command-response window, in milliseconds, in the power-activity snapshot.
8938
- */
8939
- export type CommandResponseWindowTotalTime = number;
8940
- /**
8941
- * Number of entries into the cellular radio connection (RRC) recorded in the power-activity snapshot.
8942
- */
8943
- export type CellularRadioEntryCount = number;
8944
- /**
8945
- * Accumulated time attributed to the cellular radio connection (RRC), in milliseconds, in the power-activity snapshot.
8946
- */
8947
- export type CellularRadioTotalTime = number;
8948
- /**
8949
- * Number of entries into Wi-Fi scanning recorded in the power-activity snapshot.
8950
- */
8951
- export type WiFiScanningEntryCount = number;
8952
- /**
8953
- * Accumulated time attributed to Wi-Fi scanning, in milliseconds, in the power-activity snapshot.
8954
- */
8955
- export type WiFiScanningTotalTime = number;
8956
- /**
8957
- * Number of Wi-Fi scan timeouts recorded in the power-activity snapshot.
8958
- */
8959
- export type WiFiTimeoutCount = number;
8960
- /**
8961
- * BLE scan evidence is distinct from BLE enabled/unlocked status.
8962
- *
8963
- * @maxItems 20
8964
- */
8965
- export type NearbyBLEDevices = BleDevice[];
8966
- /**
8967
- * The coherent Wi-Fi scan is positioning evidence; retain an empty successful scan separately from a failed scan.
8968
- *
8969
- * @maxItems 20
8970
- */
8971
- export type WiFiAccessPoints = WifiAccessPoint[];
8972
- export interface ObservationValues {
8973
- "agnss.completed"?: AgnssCompleted;
8974
- "agnss.transferTrace"?: AgnssTransferTrace;
8975
- "battery.checkCompleted"?: BatteryCheckCompleted;
8976
- "battery.communicationTiming"?: BatteryCommunicationTiming;
8977
- "battery.displayedLevel"?: BatteryDisplayedLevel;
8978
- "battery.failureTrace"?: BatteryFailureTrace;
8979
- "battery.inventory"?: BatteryInventory;
8980
- "battery.module.chargerStatus"?: BatteryModuleChargerStatus;
8981
- "battery.module.current"?: BatteryModuleCurrent;
8982
- "battery.module.firmware"?: BatteryModuleFirmware;
8983
- "battery.module.gaugeMode"?: BatteryModuleFuelGaugeMode;
8984
- "battery.module.gaugeReset"?: BatteryModuleGaugeReset;
8985
- "battery.module.gaugeTemperature"?: BatteryModuleTemperature;
8986
- "battery.module.level"?: BatteryModuleChargeLevel;
8987
- "battery.module.readiness"?: BatteryModuleReadiness;
8988
- "battery.module.thermalStatus"?: BatteryModuleThermalStatus;
8989
- "battery.module.thermistorAdc"?: BatteryModuleThermistorAdc;
8990
- "battery.module.voltage"?: BatteryModuleVoltage;
8991
- "battery.operationFailed"?: BatteryOperationFailed;
8992
- "cell.scanCompleted"?: CellScanCompleted;
8993
- "battery.module.chargerRegisterSnapshot"?: ChargerModuleRegisterSnapshot;
8994
- "battery.module.chargerSettings"?: ChargerModuleSettings;
8995
- "battery.charging.changed"?: ChargingChanged;
8996
- "battery.charging.maintenanceCompleted"?: ChargingMaintenanceCompleted;
8997
- "battery.charging.maintenanceCount"?: ChargingHoldCount;
8998
- "battery.charging.maintenanceStatus"?: ChargingMaintenanceStatus;
8999
- "battery.charging.adaptationStatus"?: ChargingAdaptation;
9000
- "battery.charging.status"?: ChargingStatus1;
9001
- "connection.attempts"?: ConnectionAttemptCount;
9002
- "connection.clientStarts"?: ConnectionCycleCount;
9003
- "connection.connections"?: SuccessfulConnectionCount;
9004
- "connection.event"?: ConnectionEvent;
9005
- "connection.failedExchanges"?: FailedExchangeCount;
9006
- "connection.operationFailed"?: ConnectionOperationFailed;
9007
- "connection.reports"?: PublishedReportCount;
9008
- "connection.rxPayloadBytes"?: ReceivedPayloadBytes;
9009
- "connection.sessionsResumed"?: ResumedSessionCount;
9010
- "connection.subscribes"?: SubscriptionCount;
9011
- "connection.totalConnackMs"?: MQTTConnectionAcknowledgmentTime;
9012
- "connection.totalConnectMs"?: ConnectionEstablishmentTime;
9013
- "connection.totalDnsMs"?: DNSLookupTime;
9014
- "connection.totalReportMs"?: ReportPublicationTime;
9015
- "connection.txPayloadBytes"?: TransmittedPayloadBytes;
9016
- "device.buildFingerprint"?: FirmwareBuildFingerprint;
9017
- "device.diagnosticEvent"?: DeviceDiagnosticEvent;
9018
- "device.hardwareVersion"?: HardwareVersion;
9019
- "events.lost"?: LostEventCount;
9020
- "firmware.esp"?: BluetoothFirmwareVersion;
9021
- "firmware.lte"?: CellularFirmwareVersion;
9022
- "firmware.modem"?: ModemFirmwareVersion;
9023
- "firmware.updateProgress"?: FirmwareUpdateProgress;
9024
- "firmware.updateResult"?: FirmwareUpdateResult;
9025
- "flash.bytesWritten"?: FlashBytesWritten;
9026
- "flash.connectionJournalBytesWritten"?: ConnectionJournalBytesWritten;
9027
- "flash.connectionJournalPagesErased"?: ConnectionJournalPagesErased;
9028
- "flash.eraseCalls"?: FlashEraseCount;
9029
- "flash.eraseErrors"?: FlashEraseErrorCount;
9030
- "flash.otherBytesWritten"?: OtherFlashBytesWritten;
9031
- "flash.otherPagesErased"?: OtherFlashPagesErased;
9032
- "flash.pagesErased"?: FlashPagesErased;
9033
- "flash.saturated"?: FlashCountersSaturated;
9034
- "flash.settingsJournalBytesWritten"?: SettingsJournalBytesWritten;
9035
- "flash.settingsJournalPagesErased"?: SettingsJournalPagesErased;
9036
- "flash.writeCalls"?: FlashWriteCount;
9037
- "flash.writeErrors"?: FlashWriteErrorCount;
9038
- "gauge.module.latchedFaults"?: GaugeModuleLatchedFaults;
9039
- "gauge.module.status"?: GaugeModuleStatus;
9040
- "gnss.searchCompleted"?: GnssSearchCompleted;
9041
- "gnss.searchTrace"?: GnssSearchTrace;
9042
- "health.bootCount"?: BootCount;
9043
- "health.bootHistoryStatus"?: HealthBootHistoryStatus;
9044
- "health.lastModemFault"?: HealthLastModemFault;
9045
- "health.modemFaultCount"?: ModemFaultCount;
9046
- "health.remainingOnline"?: RemainingOnlineTime;
9047
- "health.uptime"?: DeviceUptime;
9048
- "location.lookupCompleted"?: LocationLookupCompleted;
9049
- "modem.energyQueryCompleted"?: ModemEnergyQueryCompleted;
9050
- "modem.heap.libAllocated"?: ModemLibraryMemoryAllocated;
9051
- "modem.heap.libFailedAllocs"?: ModemLibraryAllocationFailures;
9052
- "modem.heap.libFree"?: ModemLibraryFreeMemory;
9053
- "modem.heap.libPeak"?: ModemLibraryPeakMemory;
9054
- "modem.heap.txAllocated"?: ModemTransmitMemoryAllocated;
9055
- "modem.heap.txFailedAllocs"?: ModemTransmitAllocationFailures;
9056
- "modem.heap.txFree"?: ModemTransmitFreeMemory;
9057
- "modem.heap.txPeak"?: ModemTransmitPeakMemory;
9058
- "modem.supplyVoltage"?: ModemSupplyVoltage;
9059
- "modem.temperature"?: ModemTemperature;
9060
- "movement.detected"?: MovementDetected;
9061
- "network.edrxGrant"?: NetworkEdrxGrant;
9062
- "network.psmGrant"?: NetworkPsmGrant;
9063
- "network.rat"?: CellularAccessTechnology;
9064
- "network.registration"?: NetworkRegistration;
9065
- "network.registrationDuration"?: CellularRegistrationDuration;
9066
- "network.retryStatus"?: NetworkRetryStatus;
9067
- "network.rsrp"?: ServingCellSignalPowerRSRP;
9068
- "network.rsrq"?: ServingCellSignalQualityRSRQ;
9069
- "network.servingCell"?: NetworkServingCell;
9070
- "outbox.acknowledged"?: OutboxAcknowledgedObservations;
9071
- "outbox.enqueued"?: OutboxEnqueuedObservations;
9072
- "outbox.evicted"?: OutboxEvictedObservations;
9073
- "outbox.expired"?: OutboxExpiredObservations;
9074
- "power.transitionHandoffLost"?: LostPowerTransitions;
9075
- "outbox.occupancy"?: OutboxOccupancy;
9076
- "outbox.oversized"?: OutboxOversizedObservations;
9077
- "outbox.policyCancelled"?: OutboxPolicyCancelled;
9078
- "outbox.unacknowledgedAttempts"?: UnacknowledgedOutboxAttempts;
9079
- "outbox.urgentEvicted"?: OutboxEvictedUrgentObservations;
9080
- "peripheral.accelerometer.status"?: PeripheralAccelerometerStatus;
9081
- "peripheral.esp.status"?: PeripheralEspStatus;
9082
- "position.cellFix"?: PositionCellFix;
9083
- "position.gnssFix"?: PositionGnssFix;
9084
- "position.wifiFix"?: PositionWifiFix;
9085
- "power.activities"?: PowerActivities;
9086
- "power.bleScanEntries"?: BluetoothScanningEntryCount;
9087
- "power.bleScanMs"?: BluetoothScanningTotalTime;
9088
- "power.bleTimeouts"?: BluetoothTimeoutCount;
9089
- "power.espEntries"?: ESPPeripheralEntryCount;
9090
- "power.espMs"?: ESPPeripheralTotalTime;
9091
- "power.espRecoveries"?: ESPRecoveryCount;
9092
- "battery.externalPower"?: ExternalPower;
9093
- "battery.externalPowerChanged"?: PowerExternalPowerChanged;
9094
- "power.gnssEntries"?: GNSSReceiverEntryCount;
9095
- "power.gnssMs"?: GNSSReceiverTotalTime;
9096
- "power.mqttEntries"?: MQTTConnectionEntryCount;
9097
- "power.mqttMs"?: MQTTConnectionTotalTime;
9098
- "power.psmEntries"?: ModemPowerSavingEntryCount;
9099
- "power.psmFallbacks"?: PowerSavingFallbackCount;
9100
- "power.psmMs"?: ModemPowerSavingTotalTime;
9101
- "power.responseWindowEntries"?: CommandResponseWindowEntryCount;
9102
- "power.responseWindowMs"?: CommandResponseWindowTotalTime;
9103
- "power.rrcEntries"?: CellularRadioEntryCount;
9104
- "power.rrcMs"?: CellularRadioTotalTime;
9105
- "power.wifiScanEntries"?: WiFiScanningEntryCount;
9106
- "power.wifiScanMs"?: WiFiScanningTotalTime;
9107
- "power.wifiTimeouts"?: WiFiTimeoutCount;
9108
- "radio.bleDevices"?: NearbyBLEDevices;
9109
- "radio.cellularEnvironment"?: CellularEnvironment;
9110
- "radio.wifiAccessPoints"?: WiFiAccessPoints;
9111
- "system.booted"?: SystemBooted;
9112
- "wifi.scanCompleted"?: WifiScanCompleted;
9113
- "work.completed"?: WorkCompleted;
9114
- "workflow.execution"?: WorkflowExecution;
9115
- "battery.module.chargeCompleted"?: BatteryModuleChargeCompleted;
9116
- "battery.module.chargeRested"?: BatteryModuleChargeRested;
9117
- "battery.protocolIdentity"?: BatteryProtocolIdentity;
9118
- "battery.protocolExchange"?: BatteryProtocolExchange;
9119
- "battery.updateHealth"?: BatteryUpdateHealth;
9120
- "battery.charging.allocations"?: ChargingAllocationDecisions;
9121
- }
9122
- /**
9123
- * A single assistance exchange outcome; later fix latency is new search evidence, not a mutation of this completed record.
9124
- */
9125
- export interface AgnssCompleted {
9126
- outcome: OperationOutcome;
9127
- error: OperationError | null;
9128
- requested: AssistanceMasks;
9129
- supplied: AssistanceMasks;
9130
- serverProcessingMs: number | null;
9131
- replyValidated: boolean;
9132
- acceptedRecords: number;
9133
- timeSkipped: boolean;
9134
- transferDurationMs: number;
9135
- }
9136
- export interface OperationError {
9137
- code: number;
9138
- phase: ("decode" | "validation" | "registration" | "dns" | "tls" | "mqtt" | "subscription" | "read" | "write" | "verify" | "setup" | "discovery" | "sample" | "publish" | "stop" | "resume" | "download" | "install" | "cancel") | null;
9139
- }
9140
- export interface AssistanceMasks {
9141
- ephemerides: number;
9142
- almanacs: number;
9143
- flags: number;
9144
- }
9145
- /**
9146
- * No fixed chunk0..4 public observations; distinguish milestones from durations and absent stages from real zero.
9147
- */
9148
- export interface AgnssTransferTrace {
9149
- /**
9150
- * @maxItems 16
9151
- */
9152
- milestones: TraceMilestone[];
9153
- /**
9154
- * @maxItems 8
9155
- */
9156
- durations: TimingDuration[];
9157
- serviceTiming: {
9158
- maximumStepMs: number;
9159
- maximumGapMs: number;
9160
- };
9161
- omitted: number;
9162
- }
9163
- export interface TraceMilestone {
9164
- stage: "requestSent" | "requestAcknowledged" | "headerReceived" | "bodyReceived" | "chunkReceived" | "consumed";
9165
- index: number | null;
9166
- elapsedMs: number;
9167
- }
9168
- export interface TimingDuration {
9169
- stage: "bodyRead" | "ackWrite";
9170
- durationMs: number;
9171
- }
9172
- /**
9173
- * Workflow outcome and inventory commit are separate: setup can fail after membership discovery succeeds. Failed/partial membership discovery preserves accepted inventory. Boot work needs no initiating command. References neither force delivery nor require target retention.
9174
- */
9175
- export interface BatteryCheckCompleted {
9176
- trigger: "boot" | "command";
9177
- outcome: OperationOutcome;
9178
- durationMs: number;
9179
- inventoryResult: "committed" | "notCommitted";
9180
- error: OperationError | null;
9181
- }
9182
- /**
9183
- * Successful and failed existing requests; no extra UART traffic or per-success event stream.
9184
- */
9185
- export interface BatteryCommunicationTiming {
9186
- /**
9187
- * @maxItems 8
9188
- */
9189
- operations: ModuleTiming[];
9190
- interval: {
9191
- startAgeMs: number;
9192
- endAgeMs: number;
9193
- };
9194
- }
9195
- export interface ModuleTiming {
9196
- operation: number;
9197
- succeeded: number;
9198
- failed: number;
9199
- lastMs: number;
9200
- maximumMs: number;
9201
- }
9202
- /**
9203
- * The display result and its provenance must agree. It is not an average of module percentages.
9204
- */
9205
- export interface BatteryDisplayedLevel {
9206
- percent: number;
9207
- sourceSubject: ModuleSubject;
9208
- safetyCompensated: boolean;
9209
- }
9210
- /**
9211
- * Bounded UART failure evidence with original uptime timestamps, raw addressed destination and typed exchange stage. Request and received-response prefixes are truncated engineering evidence, never firmware, identity-transfer or bootloader-secret payloads. Expected cancellation/shutdown does not evict real failures. Reading this cache never performs I/O.
9212
- */
9213
- export interface BatteryFailureTrace {
9214
- /**
9215
- * @maxItems 4
9216
- */
9217
- entries: BatteryFailure[];
9218
- omitted: number;
9219
- }
9220
- export interface BatteryFailure {
9221
- ageMs: number;
9222
- destination: number;
9223
- operation: number;
9224
- stage: "admission" | "prepare" | "rxStart" | "txStart" | "txWait" | "rxWait" | "replyWait" | "validation" | "done";
9225
- error: number;
9226
- txBytes: number;
9227
- rxBytes: number;
9228
- elapsedMs: number;
9229
- requestHex: string;
9230
- responsePrefixHex: string;
9231
- }
9232
- export interface InventoryMember {
9233
- slot: number;
9234
- hardwareId: string | null;
9235
- }
9236
- /**
9237
- * State/fault and optional local MSP charging guard are one coherent hardware snapshot. Guard reports permission, actual output, remaining authorization at capture, local inhibit reasons and safety-policy/boot generations. Null on legacy modules. Supply/guard fields must never borrow older cache entries.
9238
- */
9239
- export interface BatteryModuleChargerStatus {
9240
- state: "ready" | "charging" | "full" | "fault";
9241
- fault: number;
9242
- inputValidated: boolean | null;
9243
- voltageRegulationActive: boolean | null;
9244
- guard: {
9245
- authorized: boolean;
9246
- outputEnabled: boolean;
9247
- remainingMs: number;
9248
- inhibitReasons: number;
9249
- policyRevision: number;
9250
- authorizedSample: number;
9251
- bootGeneration: number;
9252
- } | null;
9253
- }
9254
- /**
9255
- * Version and confidence are inseparable; relay headers do not prove remote firmware identity.
9256
- */
9257
- export interface BatteryModuleFirmware {
9258
- version: Version;
9259
- evidence: "directResponse" | "targetPayload" | "relayHeader";
9260
- }
9261
- /**
9262
- * A reset command confirmed executed or a flag transition from a known baseline for this module binding. An initially set or repeatedly read sticky flag is state evidence, not a new reset. A later flag confirmation of the same commanded reset does not emit a second event.
9263
- */
9264
- export interface BatteryModuleGaugeReset {
9265
- origin: "confirmedCommand" | "observedFlagTransition";
9266
- }
9267
- /**
9268
- * Readiness concerns verified configuration, not whether a cached physical reading exists.
9269
- */
9270
- export interface BatteryModuleReadiness {
9271
- state: "unknown" | "notReady" | "ready";
9272
- reason: "none" | "configurationPending" | "communication" | "verification";
9273
- }
9274
- /**
9275
- * One canonical battery-operation failure, including charging stop failures. A route is usable even when discovery cannot identify the target module.
9276
- */
9277
- export interface BatteryOperationFailed {
9278
- operation: number;
9279
- error: OperationError;
9280
- phase: string | null;
9281
- module: ModuleSubject | null;
9282
- }
9283
- /**
9284
- * One coherent cell.scanCompleted fact.
9285
- */
9286
- export interface CellScanCompleted {
9287
- outcome: OperationOutcome;
9288
- error: OperationError | null;
9289
- durationMs: number;
9290
- }
9291
- /**
9292
- * Explicit engineering evidence about cached registers. The snapshot time does not make every register fresh. It is not an automatic alternate publication of decoded product state.
9293
- */
9294
- export interface ChargerModuleRegisterSnapshot {
9295
- /**
9296
- * @maxItems 5
9297
- */
9298
- registers: RegisterReading[];
9299
- omitted: number;
9300
- }
9301
- export interface RegisterReading {
9302
- address: number;
9303
- value: number;
9304
- ageMs: number;
9305
- }
9306
- /**
9307
- * A coherent readback of hardware settings, distinct from acknowledged commands. Emit only a complete validated settings read; do not join unrelated cached registers.
9308
- */
9309
- export interface ChargerModuleSettings {
9310
- inputLimit: "100mA" | "500mA" | "800mA" | "unlimited";
9311
- chargeCurrentSetting: number;
9312
- lowCurrentMode: boolean;
9313
- }
9314
- /**
9315
- * One charging transition advances a state view. No second automatic status record is needed for that edge.
9316
- */
9317
- export interface ChargingChanged {
9318
- previous: ChargingStatus;
9319
- current: ChargingStatus;
9320
- details: ChargingTransitionDetails | null;
9321
- }
9322
- export interface ChargingTransitionDetails {
9323
- module: ModuleSubject | null;
9324
- phase: string | null;
9325
- readbackAgeMs: number | null;
9326
- inputAgeMs: number | null;
9327
- }
9328
- /**
9329
- * Emit once when the resume outcome is known. Full or unsafe deliberate stops are not failures to resume.
9330
- */
9331
- export interface ChargingMaintenanceCompleted {
9332
- holdDurationMs: number;
9333
- resumeOutcome: "resumed" | "deferred" | "notRequired";
9334
- resumeDelayMs: number;
9335
- startedAgeMs: number;
9336
- }
9337
- /**
9338
- * One high-level maintenance state. Active elapsed time is computed in a view, not re-emitted every second.
9339
- */
9340
- export interface ChargingMaintenanceStatus {
9341
- phase: "idle" | "stopping" | "running" | "resuming";
9342
- reason: "none" | "startup" | "attachment" | "audit" | "repair";
9343
- startedAgeMs: number | null;
9344
- }
9345
- export interface ChargingInputAdaptation {
9346
- qualifiedLimit: "100mA" | "500mA" | "800mA";
9347
- reason: ChargingAdjustmentReason;
9348
- cooldownRemainingMs: number | null;
9349
- }
9350
- export interface ChargingConcurrencyAdaptation {
9351
- qualifiedModules: number;
9352
- reason: ChargingAdjustmentReason;
9353
- cooldownRemainingMs: number | null;
9354
- }
9355
- /**
9356
- * One coherent connection.operationFailed fact.
9357
- */
9358
- export interface ConnectionOperationFailed {
9359
- operation: "registration" | "dns" | "tls" | "mqtt" | "subscription" | "receipt";
9360
- error: OperationError;
9361
- rawReason: number | null;
9362
- }
9363
- /**
9364
- * Requested engineering log evidence, not an automatic second operational publication or an event-sequence subject.
9365
- */
9366
- export interface DeviceDiagnosticEvent {
9367
- code: number;
9368
- /**
9369
- * @maxItems 8
9370
- */
9371
- arguments: number[];
9372
- sequence: number;
9373
- }
9374
- /**
9375
- * Progress is useful but never establishes installation success; Jobs remains the terminal-result authority.
9376
- */
9377
- export interface FirmwareUpdateProgress {
9378
- jobId: string;
9379
- chip: "lte" | "battery" | "esp" | "modem";
9380
- phase: "downloading" | "verifying" | "rebooting";
9381
- bytesDownloaded: number;
9382
- totalBytes: number;
9383
- execution: number;
9384
- }
9385
- /**
9386
- * One coherent firmware.updateResult fact.
9387
- */
9388
- export interface FirmwareUpdateResult {
9389
- jobId: string;
9390
- execution: number;
9391
- chip: "lte" | "battery" | "esp" | "modem";
9392
- target: Version;
9393
- outcome: "succeeded" | "failed" | "cancelled";
9394
- error: OperationError | null;
9395
- }
9396
- /**
9397
- * Sticky history since the current module binding, distinct from flags currently present in the control register.
9398
- */
9399
- export interface GaugeModuleLatchedFaults {
9400
- batteryFailureSeen: boolean;
9401
- powerOnResetSeen: boolean;
9402
- }
9403
- /**
9404
- * Validated gauge health/conversion evidence; the conversion register is not an unbounded boot counter. Configured gaugeMode remains separately selectable.
9405
- */
9406
- export interface GaugeModuleStatus {
9407
- control: GaugeControl;
9408
- conversionCounter: number;
9409
- }
9410
- export interface GaugeControl {
9411
- batteryFail: boolean;
9412
- powerOnResetDetected: boolean;
9413
- lowSocAlarm: boolean;
9414
- lowVoltageAlarm: boolean;
9415
- voltageEstimatorActive: boolean;
9416
- }
9417
- /**
9418
- * Logical search result, observed receiver execution across assistance restarts, peaks and same-search references. Unknown receiver execution is null; reads and retries preserve the original evidence.
9419
- */
9420
- export interface GnssSearchCompleted {
9421
- outcome: OperationOutcome;
9422
- error: OperationError | null;
9423
- durationMs: number;
9424
- receiverExecutionMs: number | null;
9425
- stopReason: "fix" | "timeout" | "visibility" | "blocked" | "cancelled" | "budgetExhausted" | "error";
9426
- peakSatellites: number | null;
9427
- peakSnr: number | null;
9428
- blockedCount: number;
9429
- visibility: "unknown" | "visible" | "poor";
9430
- assistanceToFixMs: number | null;
9431
- }
9432
- /**
9433
- * Latest bounded window of distinct PVT readings from one logical search. Original uptime, cumulative observed receiver execution, flags, healthy satellites, mean C/N0 and valid-fix accuracy are captured together; omissions count evicted older samples. Reading never starts GNSS.
9434
- */
9435
- export interface GnssSearchTrace {
9436
- /**
9437
- * @maxItems 16
9438
- */
9439
- samples: GnssPvtSample[];
9440
- omitted: number;
9441
- }
9442
- export interface GnssPvtSample {
9443
- ageMs: number;
9444
- receiverExecutionMs: number;
9445
- flags: number;
9446
- satellites: number;
9447
- snr: number | null;
9448
- accuracy: number | null;
9449
- }
9450
- /**
9451
- * This is boot/fault checkpoint knowledge, not outbox persistence. Boot/fault totals remain independently selectable and explicitly best-effort.
9452
- */
9453
- export interface HealthBootHistoryStatus {
9454
- durable: boolean;
9455
- reset: boolean;
9456
- storageResult: number;
9457
- }
9458
- /**
9459
- * Health, worker and heap evidence is useful for support; counter reset scope and units must be explicit.
9460
- */
9461
- export interface HealthLastModemFault {
9462
- sequence: number;
9463
- reason: number;
9464
- pc: number;
9465
- }
9466
- /**
9467
- * One coherent location.lookupCompleted fact.
9468
- */
9469
- export interface LocationLookupCompleted {
9470
- outcome: OperationOutcome;
9471
- error: OperationError | null;
9472
- sourceObservationId: ObservationId;
9473
- }
9474
- /**
9475
- * The estimate and its context must be one result. It is not a calibrated whole-tracker battery-energy measurement.
9476
- */
9477
- export interface ModemEnergyQueryCompleted {
9478
- result: number;
9479
- energy: ModemEnergy | null;
9480
- }
9481
- export interface ModemEnergy {
9482
- estimate: number;
9483
- rrcState: number;
9484
- coverageEnhancement: number;
9485
- rsrpIndex: number;
9486
- rsrqIndex: number;
9487
- mcc: number;
9488
- mnc: number;
9489
- band: number;
9490
- earfcn: number;
9491
- }
9492
- /**
9493
- * An occurrence is different from a current-state snapshot; operational events need useful typed context.
9494
- */
9495
- export interface MovementDetected {
9496
- }
9497
- /**
9498
- * One coherent network.edrxGrant fact.
9499
- */
9500
- export interface NetworkEdrxGrant {
9501
- rat: "lteM" | "nbIot";
9502
- cycleMs: number | null;
9503
- pagingWindowMs: number | null;
9504
- }
9505
- /**
9506
- * One coherent network.psmGrant fact.
9507
- */
9508
- export interface NetworkPsmGrant {
9509
- tauSeconds: number | null;
9510
- activeSeconds: number | null;
9511
- }
9512
- /**
9513
- * Connection delivery backoff owned by the retry controller. retryAt is a boot-uptime deadline in milliseconds, null after success or profile reset; elapsed time and cached reads do not renew the state. consecutiveFailures is bounded retry state, not a lifetime failure count.
9514
- */
9515
- export interface NetworkRetryStatus {
9516
- retryInMs: number | null;
9517
- consecutiveFailures: number;
9518
- }
9519
- /**
9520
- * One passive serving-cell identity fact. Identity fields need a consistent cell context; omit unresolved fields instead of filling from an old cell. Independently timed signal measurements and extended scans remain separately selectable.
9521
- */
9522
- export interface NetworkServingCell {
9523
- rat: ("lteM" | "nbIot") | null;
9524
- identity: CellIdentity;
9525
- }
9526
- export interface CellIdentity {
9527
- mcc: number | null;
9528
- mnc: number | null;
9529
- tac: number | null;
9530
- cellId: number | null;
9531
- pci: number | null;
9532
- earfcn: number | null;
9533
- }
9534
- /**
9535
- * Stored FIFO occupancy at capture, before admitting this diagnostic. Permission subsets overlap: a record is external-only or existing-connection-only only when every stored permission requires it. Oldest age is null for an empty queue. Reading this immutable snapshot does not sweep or drain the queue.
9536
- */
9537
- export interface OutboxOccupancy {
9538
- bytes: number;
9539
- capacityBytes: number;
9540
- count: number;
9541
- urgentCount: number;
9542
- existingOnlyCount: number;
9543
- externalOnlyCount: number;
9544
- oldestPendingAgeMs: number | null;
9545
- }
9546
- /**
9547
- * Last verified hardware status, independent of work-queue activity. Ready requires successful hardware communication; off requires confirmed disable or power-off. Cached reads preserve the source time. Pending work does not fabricate a busy or starting hardware state.
9548
- */
9549
- export interface PeripheralAccelerometerStatus {
9550
- state: "unknown" | "off" | "ready" | "failed";
9551
- reason: OperationError | null;
9552
- }
9553
- /**
9554
- * Last verified hardware status, independent of work-queue activity. Ready requires successful hardware communication; off requires confirmed disable or power-off. Cached reads preserve the source time. Pending work does not fabricate a busy or starting hardware state.
9555
- */
9556
- export interface PeripheralEspStatus {
9557
- state: "unknown" | "off" | "ready" | "failed";
9558
- reason: OperationError | null;
9559
- }
9560
- /**
9561
- * Resolved locations and lookup failures are server-produced evidence; distinguish them from raw device scans.
9562
- */
9563
- export interface PositionCellFix {
9564
- latitude: number;
9565
- longitude: number;
9566
- accuracy: number;
9567
- sourceObservationId: ObservationId;
9568
- }
9569
- /**
9570
- * One PVT solution with its quality/provenance. Do not populate missing fields from another fix.
9571
- */
9572
- export interface PositionGnssFix {
9573
- coordinates: Coordinates;
9574
- accuracy: number;
9575
- motion: FixMotion | null;
9576
- quality: FixQuality | null;
9577
- }
9578
- export interface Coordinates {
9579
- latitude: number;
9580
- longitude: number;
9581
- altitude: number;
9582
- }
9583
- export interface FixMotion {
9584
- speed: number;
9585
- course: number;
9586
- }
9587
- export interface FixQuality {
9588
- satellites: number;
9589
- snr: number | null;
9590
- }
9591
- /**
9592
- * Resolved locations and lookup failures are server-produced evidence; distinguish them from raw device scans.
9593
- */
9594
- export interface PositionWifiFix {
9595
- latitude: number;
9596
- longitude: number;
9597
- accuracy: number;
9598
- sourceObservationId: ObservationId;
9599
- }
9600
- /**
9601
- * External input can change independently of charging; a tracker becoming full does not imply unplugging.
9602
- */
9603
- export interface PowerExternalPowerChanged {
9604
- previous: ExternalPower1;
9605
- current: ExternalPower1;
9606
- }
9607
- export interface BleDevice {
9608
- mac: string;
9609
- rssi: number;
9610
- companyId: number;
9611
- }
9612
- /**
9613
- * Coherent serving-cell identity, radio technology and signal evidence, with neighbouring or global cells when explicitly requested. Routine tracking reads serving-cell information without an extended cell search.
9614
- */
9615
- export interface CellularEnvironment {
9616
- serving: CellReading;
9617
- rat: "lteM" | "nbIot";
9618
- /**
9619
- * @maxItems 5
9620
- */
9621
- globalCells: CellReading[];
9622
- /**
9623
- * @maxItems 17
9624
- */
9625
- neighbours: CellNeighbour[];
9626
- }
9627
- export interface CellReading {
9628
- mcc: number;
9629
- mnc: number;
9630
- tac: number;
9631
- cellId: number;
9632
- pci: number | null;
9633
- earfcn: number | null;
9634
- rsrp: number | null;
9635
- rsrq: number | null;
9636
- }
9637
- export interface CellNeighbour {
9638
- pci: number;
9639
- earfcn: number;
9640
- rsrp: number | null;
9641
- rsrq: number | null;
9642
- }
9643
- export interface WifiAccessPoint {
9644
- mac: string;
9645
- rssi: number | null;
9646
- channel: number | null;
9647
- }
9648
- /**
9649
- * One coherent system.booted fact.
9650
- */
9651
- export interface SystemBooted {
9652
- resetCause: number;
9653
- resetContext: ResetContext | null;
9654
- }
9655
- export interface ResetContext {
9656
- sequence: number;
9657
- controllerPhase: number;
9658
- operation: number;
9659
- error: number;
9660
- errorOperation: number;
9661
- resetKind: number;
9662
- durable: boolean;
9663
- retained: boolean;
9664
- cpu: CpuFault | null;
9665
- }
9666
- export interface CpuFault {
9667
- reason: number;
9668
- flags: number;
9669
- pc: number | null;
9670
- lr: number | null;
9671
- xpsr: number | null;
9672
- cfsr: number | null;
9673
- hfsr: number | null;
9674
- mmfar: number | null;
9675
- bfar: number | null;
9676
- }
9677
- /**
9678
- * One coherent wifi.scanCompleted fact.
9679
- */
9680
- export interface WifiScanCompleted {
9681
- outcome: OperationOutcome;
9682
- error: OperationError | null;
9683
- durationMs: number;
9684
- }
9685
- /**
9686
- * One operation outcome and its interval accounting; not a replacement for independently selectable since-boot totals.
9687
- */
9688
- export interface WorkCompleted {
9689
- completedCount: number;
9690
- trigger: "boot" | "timer" | "movement" | "command";
9691
- outcome: OperationOutcome;
9692
- elapsedMs: number;
9693
- activeMs: number;
9694
- activityMs: ActivityDurations;
9695
- activityEntries: ActivityEntries;
9696
- recoveries: RecoveryCounts;
9697
- saturated: boolean;
9698
- mode: number;
9699
- }
9700
- export interface ActivityDurations {
9701
- rrc: number;
9702
- mqtt: number;
9703
- responseWindow: number;
9704
- psm: number;
9705
- esp: number;
9706
- wifiScan: number;
9707
- bleScan: number;
9708
- gnss: number;
9709
- }
9710
- export interface ActivityEntries {
9711
- rrc: number;
9712
- mqtt: number;
9713
- responseWindow: number;
9714
- psm: number;
9715
- esp: number;
9716
- wifiScan: number;
9717
- bleScan: number;
9718
- gnss: number;
9719
- }
9720
- export interface RecoveryCounts {
9721
- espRecoveries: number;
9722
- wifiTimeouts: number;
9723
- bleTimeouts: number;
9724
- psmFallbacks: number;
9725
- }
9726
- /**
9727
- * Passive tracking workflow and service execution evidence. Offline traces retain their original timestamps and do not create connection demand.
9728
- */
9729
- export interface WorkflowExecution {
9730
- workflowVersion: number;
9731
- mode: number;
9732
- state: string;
9733
- owner: "workflow" | "command" | "update" | "recovery" | "shutdown" | "fault" | "settings" | "charging" | "ble" | "network";
9734
- phase: "entered" | "completed" | "cancelled" | "ownerChanged" | "snapshot";
9735
- outcome: ("done" | "unavailable" | "failed" | "timeout" | "cancelled") | null;
9736
- durationMs: number | null;
9737
- error: number | null;
9738
- waitReason: ("resource" | "command" | "update" | "configuration" | "rest" | "network") | null;
9739
- operation: ("capture" | "mqttOpen" | "publish" | "listen" | "modemOnline" | "modemEdrx" | "modemPsm" | "modemOffline" | "disconnectMqtt" | "prepareConnection" | "connect") | null;
9740
- }
9741
- /**
9742
- * A fault-free hardware charge-done observation accepted by LTE. Values describe this completion, not current shadow settings. Termination current is nominal for a 180 milliohm charger sense resistor. The observation timestamp is the completion detection time.
9743
- */
9744
- export interface BatteryModuleChargeCompleted {
9745
- terminationCurrentMa: number;
9746
- voltageMv: number;
9747
- currentMa: number;
9748
- regulationMv: number;
9749
- rechargeDropMv: number;
9750
- }
9751
- /**
9752
- * First existing voltage sample at least 60 seconds and at most 15 minutes after an acknowledged charger disable following completion. This is post-charge voltage under tracker load, not a no-load capacity measurement. No extra hardware polling is scheduled.
9753
- */
9754
- export interface BatteryModuleChargeRested {
9755
- voltageMv: number;
9756
- afterStopMs: number;
9757
- sinceCompletionMs: number;
9758
- }
9759
- /**
9760
- * Accepted HELLO identity and metadata for this raw route. Optional unavailable metadata is null. Relay headers are not module identity evidence.
9761
- */
9762
- export interface BatteryProtocolIdentity {
9763
- moduleId: string;
9764
- bootGeneration: number;
9765
- capabilities: string;
9766
- hardwareRevision: number | null;
9767
- resetReason: number | null;
9768
- }
9769
- /**
9770
- * Last protocol envelope exchange. Transport/framing/correlation errors are distinct from the matched MSP result. No request or response payload bytes are retained. Operation-body validity is checked separately by the typed consumer.
9771
- */
9772
- export interface BatteryProtocolExchange {
9773
- operation: number;
9774
- elapsedMs: number;
9775
- transportError: number;
9776
- status: number | null;
9777
- bootGeneration: number | null;
9778
- }
9779
- /**
9780
- * Operational verification after a completed MSP installation and LTE restart. Installation completion does not imply operational health. A failed health check never rearms image installation or consumes another flash attempt.
9781
- */
9782
- export interface BatteryUpdateHealth {
9783
- requestId: number;
9784
- slot: number;
9785
- target: ModuleSubject;
9786
- imageInstalled: boolean;
9787
- state: "operational" | "failed" | "unsupported";
9788
- error: number;
9789
- bootGeneration: number | null;
9790
- }
9791
- /**
9792
- * LTE allocation intent and acknowledged output, not proof of actual current flow. Reports stopped fault gates and physical-identity power reservations, including unreachable modules and lost acknowledgements. Remaining durations freeze at capture; use observation age. A null reservation list is unavailable, not empty. Reads perform no UART I/O and never retire or renew a reservation.
9793
- */
9794
- export interface ChargingAllocationDecisions {
9795
- inventoryConfirmed: boolean;
9796
- held: boolean;
9797
- inputBudgetMa: number;
9798
- maximumChargers: number;
9799
- reason: "none" | "disabled" | "detached" | "unknownInput" | "notReady" | "communication" | "stale" | "thermal" | "cable" | "full" | "overcurrent" | "maintenance" | "chargerFault" | "allocationBudget";
9800
- /**
9801
- * @minItems 0
9802
- * @maxItems 8
9803
- */
9804
- modules: ChargingAllocationMember[];
9805
- reservations: ChargingPowerReservation[] | null;
9806
- }
9807
- export interface ChargingAllocationMember {
9808
- slot: number;
9809
- target: ModuleSubject | null;
9810
- requestedInputMa: number | null;
9811
- configuredInputMa: number | null;
9812
- outputAcknowledged: boolean;
9813
- stopUncertain: boolean;
9814
- faultCode: number;
9815
- faultAttempts: number;
9816
- faultGate: "clear" | "cooldown" | "latched" | "recheck";
9817
- cooldownRemainingMs: number | null;
9818
- }
9819
- export interface ChargingPowerReservation {
9820
- moduleId: string;
9821
- inputMa: number | null;
9822
- remainingMs: number;
9823
- }
9824
- /**
9825
- * Interval between battery measurements, in seconds.
9826
- */
9827
- export type BatteryMeasurementInterval = number;
9828
- /**
9829
- * Raw accelerometer threshold used to detect taps or movement.
9830
- */
9831
- export type AccelerometerTapSensitivity = number;
9832
- /**
9833
- * Accelerometer output-data-rate register code; this is not a frequency in hertz.
9834
- */
9835
- export type AccelerometerOutputDataRate = 0 | 1 | 2 | 3 | 4 | 8 | 9 | 10 | 11;
9836
- /**
9837
- * Accelerometer sampling configuration code.
9838
- */
9839
- export type AccelerometerSamplingRate = number;
9840
- /**
9841
- * Number of qualifying movement detections required by the configured policy.
9842
- */
9843
- export type MovementDetectionCount = number;
9844
- /**
9845
- * Applies to sequential and parallel charging. Codes: 0=100 mA, 1=500 mA, 2=800 mA, 3=unlimited. Adaptive mode probes up to this ceiling. Parallel mode additionally enforces its total budget and caps unlimited at 800 mA per module.
9846
- */
9847
- export type PerModuleChargerInputCeiling = number;
9848
- /**
9849
- * Whether to collect LTE power diagnostic information.
9850
- */
9851
- export type LTEPowerDiagnostics = boolean;
9852
- /**
9853
- * Whether to collect modem memory diagnostic information.
9854
- */
9855
- export type ModemMemoryDiagnostics = boolean;
9856
- /**
9857
- * Whether to collect tracking diagnostic information.
9858
- */
9859
- export type TrackingDiagnostics = boolean;
9860
- /**
9861
- * Whether to enable modem tracing.
9862
- */
9863
- export type ModemTracing = boolean;
9864
- /**
9865
- * MQTT session expiry interval, in seconds.
9866
- */
9867
- export type MQTTSessionExpiry = number;
9868
- /**
9869
- * Interval between scheduled settings reconciliation attempts, in seconds.
9870
- */
9871
- export type SettingsReconciliationInterval = number;
9872
- /**
9873
- * MQTT keep-alive interval, in seconds.
9874
- */
9875
- export type MQTTKeepAliveInterval = number;
9876
- /**
9877
- * Charging-policy selection code.
9878
- */
9879
- export type ChargingMode = number;
9880
- /**
9881
- * Base network retry delay, in seconds. It must not exceed the maximum retry delay.
9882
- */
9883
- export type NetworkRetryBaseDelay = number;
9884
- /**
9885
- * Maximum network retry delay, in seconds. It must not be below the base delay.
9886
- */
9887
- export type NetworkRetryMaximumDelay = number;
9888
- /**
9889
- * Cooldown between network configuration attempts, in seconds.
9890
- */
9891
- export type NetworkConfigurationCooldown = number;
9892
- /**
9893
- * Base settings reconciliation retry delay, in seconds. It must not exceed the maximum delay.
9894
- */
9895
- export type SettingsRetryBaseDelay = number;
9896
- /**
9897
- * Maximum settings reconciliation retry delay, in seconds. It must not be below the base delay.
9898
- */
9899
- export type SettingsRetryMaximumDelay = number;
9900
- /**
9901
- * Whether automatic telemetry reporting is enabled.
9902
- */
9903
- export type AutomaticTelemetry = boolean;
9904
- /**
9905
- * Configured byte limit for the telemetry outbox.
9906
- */
9907
- export type TelemetryQueueByteLimit = number;
9908
- /**
9909
- * Whether to enable fuel-gauge power saving while idle.
9910
- */
9911
- export type FuelGaugeIdlePowerSaving = boolean;
9912
- /**
9913
- * Applies only to sequential charging, including weak-supply fallback. How often to compare module charge levels while externally powered. Safety checks remain every five seconds.
9914
- */
9915
- export type SequentialChargingBalanceInterval = number;
9916
- /**
9917
- * Applies only to sequential charging, including weak-supply fallback. Switch to a lower-charge module when the difference reaches this many percentage points. Full modules are skipped.
9918
- */
9919
- export type SequentialChargingBalanceGap = number;
9920
- /**
9921
- * Maximum number of modules allowed to charge together. One selects single-module charging. Higher counts are qualified one module at a time; weak supply reduces the count, with delayed retries.
9922
- */
9923
- export type MaximumChargingModules = number;
9924
- /**
9925
- * Maximum sum of programmed input-current limits across charging modules, including single-module charging and weak-supply fallback. The per-module ceiling also applies. Unlimited input is capped to a finite limit within this budget.
9926
- */
9927
- export type TotalChargerInputCurrentLimit = number;
9928
- /**
9929
- * Record bounded tracking workflow and service execution traces. Traces use an available connection and do not keep LTE awake.
9930
- */
9931
- export type WorkflowDebugTracing = boolean;
9932
- /**
9933
- * Suspend the LTE I2C controller between transactions. Default off. Changes apply at an idle bus boundary without interrupting active operations; motion detection remains enabled.
9934
- */
9935
- export type I2CIdlePowerSaving = boolean;
9936
- /**
9937
- * Enable advertising according to the independent BLE power policy. Wi-Fi scans and updates temporarily borrow the radio.
9938
- */
9939
- export type BLEAdvertising = boolean;
9940
- /**
9941
- * When true, advertise only with confirmed external power, including a full battery that remains plugged in. When false, allow advertising on battery too.
9942
- */
9943
- export type BLEAdvertisingRequiresExternalPower = boolean;
9944
- /**
9945
- * Advertising interval in 0.625 millisecond units. Applied by the peripheral owner independently of LTE connection work.
9946
- */
9947
- export type BLEAdvertisingInterval = number;
9948
- /**
9949
- * Stable integer firmware mode ID: 0, 1 or 2. Each mode’s stages are defined in firmware. Public mode names are mapped to these IDs by the assigned tracking mode catalog.
9950
- */
9951
- export type FirmwareModeID = number;
9952
- /**
9953
- * Period between tracking reports on confirmed external power.
9954
- */
9955
- export type PoweredReportInterval = number;
9956
- /**
9957
- * Maximum battery idle duration after a mode 0 cycle, measured from the end of work.
9958
- */
9959
- export type Mode0IdleDuration = number;
9960
- /**
9961
- * Maximum battery idle duration after a mode 1 cycle, measured from the end of work.
9962
- */
9963
- export type Mode1IdleDuration = number;
9964
- /**
9965
- * Maximum battery idle duration after a mode 2 cycle, measured from the end of work.
9966
- */
9967
- export type Mode2IdleDuration = number;
9968
- /**
9969
- * Duration after a mode 0 cycle with the accelerometer and its wake interrupt disabled. Firmware re-enables motion detection when this period ends.
9970
- */
9971
- export type Mode0MinimumRest = number;
9972
- /**
9973
- * Duration after a mode 1 cycle with the accelerometer and its wake interrupt disabled. Firmware re-enables motion detection when this period ends.
9974
- */
9975
- export type Mode1MinimumRest = number;
9976
- /**
9977
- * Duration after a mode 2 cycle with the accelerometer and its wake interrupt disabled. Firmware re-enables motion detection when this period ends.
9978
- */
9979
- export type Mode2MinimumRest = number;
9980
- /**
9981
- * Maximum idle time in PSM before setting the modem offline; capped by the existing idle deadline.
9982
- */
9983
- export type PSMResidence = number;
9984
- /**
9985
- * Time to keep an existing connection available after a battery tracking report.
9986
- */
9987
- export type TrackingCommandWindow = number;
9988
- /**
9989
- * Maximum time for an admitted GNSS acquisition.
9990
- */
9991
- export type GNSSSearchTimeout = number;
9992
- /**
9993
- * Requested paging cycle; zero disables eDRX. Network-granted values can differ.
9994
- */
9995
- export type RequestedEDRXCycle = 0 | 20480 | 40960 | 81920 | 163840 | 327680 | 655360 | 1310720 | 2621440;
9996
- /**
9997
- * Requested periodic registration-update interval.
9998
- */
9999
- export type RequestedPSMTAU = number;
10000
- /**
10001
- * Requested active time before the modem enters PSM.
10002
- */
10003
- export type RequestedPSMActiveTime = number;
10004
- /**
10005
- * Power eligibility for automatic diagnostics.
10006
- */
10007
- export type AutomaticDiagnosticPowerPolicy = "any" | "external";
10008
- /**
10009
- * Nominal FAN54005 termination current with a 180 milliohm sense resistor. Options are 18, 37 and 55 mA. Default 18 mA is the lowest chip setting and closest to the PL12400-650mAh A1 specification (0.02C = 13 mA); it is not an exact match. A change requires stopped setup and readback before restart.
10010
- */
10011
- export type ChargeTerminationCurrent = 18 | 37 | 55;
10012
- /**
10013
- * Voltage drop below the configured charger regulation target that makes a previously completed module eligible to recharge. It does not declare a module fully charged or alter the charge voltage.
10014
- */
10015
- export type RechargeVoltageDrop = number;
10016
- /**
10017
- * Requested FAN54005 constant-voltage target in millivolts. Default 4350 mV follows the PL12400-650mAh high-voltage A1 specification; the chip rounds this down to 4340 mV at its 20 mV resolution. Hardware safety ceilings still apply. The allowed 3500-4440 mV range describes chip capability, not cell-approved targets. A change requires stopped setup and readback before restart.
10018
- */
10019
- export type ChargeRegulationVoltage = number;
10020
- /**
10021
- * Stop charging below this temperature. Both temperature sources use this Celsius profile. Order: cold stop < cold stop recovery <= cold limit < cold limit recovery <= warm limit recovery < warm limit <= hot stop recovery < hot stop.
10022
- */
10023
- export type ColdShutdownTemperature = number;
10024
- /**
10025
- * Reduce charging current below this temperature. Default 10 C is an experimental hardware-team choice; the cell specifies reduced current through 15 C. Order: cold stop < cold stop recovery <= cold limit < cold limit recovery <= warm limit recovery < warm limit <= hot stop recovery < hot stop.
10026
- */
10027
- export type ColdCurrentLimitingTemperature = number;
10028
- /**
10029
- * Leave cold charging at or above this temperature; must exceed the cold threshold. Order: cold stop < cold stop recovery <= cold limit < cold limit recovery <= warm limit recovery < warm limit <= hot stop recovery < hot stop.
10030
- */
10031
- export type ColdCurrentLimitingRecoveryTemperature = number;
10032
- /**
10033
- * Reduce charging current above this temperature. Order: cold stop < cold stop recovery <= cold limit < cold limit recovery <= warm limit recovery < warm limit <= hot stop recovery < hot stop.
10034
- */
10035
- export type WarmCurrentLimitingTemperature = number;
10036
- /**
10037
- * Stop charging above this temperature. The profile cannot extend the cell specification 0 to 45 C range. Order: cold stop < cold stop recovery <= cold limit < cold limit recovery <= warm limit recovery < warm limit <= hot stop recovery < hot stop.
10038
- */
10039
- export type HotShutdownTemperature = number;
10040
- /**
10041
- * After a low-temperature shutdown, resume only at or above this temperature. Order: cold stop < cold stop recovery <= cold limit < cold limit recovery <= warm limit recovery < warm limit <= hot stop recovery < hot stop.
10042
- */
10043
- export type ColdShutdownRecoveryTemperature = number;
10044
- /**
10045
- * After warm derating, return to normal current only at or below this temperature. Order: cold stop < cold stop recovery <= cold limit < cold limit recovery <= warm limit recovery < warm limit <= hot stop recovery < hot stop.
10046
- */
10047
- export type WarmCurrentLimitingRecoveryTemperature = number;
10048
- /**
10049
- * After a high-temperature shutdown, resume only at or below this temperature. Order: cold stop < cold stop recovery <= cold limit < cold limit recovery <= warm limit recovery < warm limit <= hot stop recovery < hot stop.
10050
- */
10051
- export type HotShutdownRecoveryTemperature = number;
10052
- /**
10053
- * Maximum charging allocation duration for an MSP with autonomous local safety and charger watchdog service. LTE retains shared power reservations through communication loss until verified stopped or expired. Installed MSPs retain their existing supervision.
10054
- */
10055
- export type MSPChargingAllocationLease = number;
10056
- /**
10057
- * Maximum time for one admitted Wi-Fi acquisition, including ESP startup and result delivery. The requesting operation deadline can end it sooner. Applies to installed and configurable ESP scan protocols.
10058
- */
10059
- export type WiFiAcquisitionTimeout = number;
10060
- /**
10061
- * Minimum active scan dwell per channel. Must not exceed wifiScanActiveMaxMs. Requires ESP 10.2.1 or later; older or unknown ESP versions retain their native scan.
10062
- */
10063
- export type WiFiActiveScanMinimumDwell = number;
10064
- /**
10065
- * Maximum active scan dwell per channel. Must be at least wifiScanActiveMinMs. Requires ESP 10.2.1 or later; older or unknown ESP versions retain their native scan.
10066
- */
10067
- export type WiFiActiveScanMaximumDwell = number;
10068
- /**
10069
- * Passive scan dwell per channel. Used only for passive scans. Requires ESP 10.2.1 or later; older or unknown ESP versions retain their native scan.
10070
- */
10071
- export type WiFiPassiveScanDwell = number;
10072
- /**
10073
- * Channel bitmask: bit 0 is channel 1, bit 13 is channel 14. Zero selects all permitted channels. Intersected with ESP regulatory channels. Requires ESP 10.2.1 or later.
10074
- */
10075
- export type WiFiScanChannels = number;
10076
- /**
10077
- * ESP initialization and scan budget, excluding result delivery. Limited by the remaining LTE acquisition deadline. Requires ESP 10.2.1 or later; older or unknown ESP versions retain their native scan.
10078
- */
10079
- export type WiFiScanBudget = number;
10080
- /**
10081
- * Choose active probing or passive listening. Requires ESP 10.2.1 or later; older or unknown ESP versions retain their native scan.
10082
- */
10083
- export type WiFiScanType = "active" | "passive";
10084
- /**
10085
- * Maximum age of charger readback used for the reported charging status. Independent of charging-control safety deadlines; does not authorize charging or schedule extra hardware reads. Confirmed input loss still reports not charging immediately.
10086
- */
10087
- export type ChargingStatusMaximumAge = number;
10088
- /**
10089
- * Upload work.completed cycle outcomes and interval accounting on existing connections. Off by default. automaticDiagnosticsPower controls eligible power sources. Cached on-demand observations remain available when off; workflowDebugEnabled independently controls detailed step traces.
10090
- */
10091
- export type AutomaticWorkReporting = boolean;
10092
- export interface DeviceSettings {
10093
- batteryIntervalSeconds?: BatteryMeasurementInterval;
10094
- accTapSensitivity?: AccelerometerTapSensitivity;
10095
- accOdrRate?: AccelerometerOutputDataRate;
10096
- accSamplingRate?: AccelerometerSamplingRate;
10097
- accMovementCount?: MovementDetectionCount;
10098
- chargingInputCurrentLimit?: PerModuleChargerInputCeiling;
10099
- ltePowerDiagnostics?: LTEPowerDiagnostics;
10100
- modemMemoryDiagnostics?: ModemMemoryDiagnostics;
10101
- trackingDiagnostics?: TrackingDiagnostics;
10102
- modemTrace?: ModemTracing;
10103
- mqttSessionExpirySeconds?: MQTTSessionExpiry;
10104
- shadowReconcileSeconds?: SettingsReconciliationInterval;
10105
- mqttKeepAliveSeconds?: MQTTKeepAliveInterval;
10106
- chargingMode?: ChargingMode;
10107
- networkRetryBaseSeconds?: NetworkRetryBaseDelay;
10108
- networkRetryMaxSeconds?: NetworkRetryMaximumDelay;
10109
- networkConfigurationCooldownSeconds?: NetworkConfigurationCooldown;
10110
- shadowRetryBaseSeconds?: SettingsRetryBaseDelay;
10111
- shadowRetryMaxSeconds?: SettingsRetryMaximumDelay;
10112
- automaticTelemetryEnabled?: AutomaticTelemetry;
10113
- telemetryOutboxMaxBytes?: TelemetryQueueByteLimit;
10114
- fuelGaugeIdlePowerSavingEnabled?: FuelGaugeIdlePowerSaving;
10115
- chargingSequentialBalanceIntervalSeconds?: SequentialChargingBalanceInterval;
10116
- chargingSequentialBalanceGapPercent?: SequentialChargingBalanceGap;
10117
- chargingMaxModules?: MaximumChargingModules;
10118
- chargingTotalInputLimitMilliamps?: TotalChargerInputCurrentLimit;
10119
- workflowDebugEnabled?: WorkflowDebugTracing;
10120
- i2cIdlePowerSavingEnabled?: I2CIdlePowerSaving;
10121
- bleAdvertisingEnabled?: BLEAdvertising;
10122
- bleAdvertisingRequiresExternalPower?: BLEAdvertisingRequiresExternalPower;
10123
- bleAdvertisingIntervalUnits?: BLEAdvertisingInterval;
10124
- mode?: FirmwareModeID;
10125
- poweredReportIntervalSeconds?: PoweredReportInterval;
10126
- mode0IdleSeconds?: Mode0IdleDuration;
10127
- mode1IdleSeconds?: Mode1IdleDuration;
10128
- mode2IdleSeconds?: Mode2IdleDuration;
10129
- mode0MinimumRestSeconds?: Mode0MinimumRest;
10130
- mode1MinimumRestSeconds?: Mode1MinimumRest;
10131
- mode2MinimumRestSeconds?: Mode2MinimumRest;
10132
- psmResidenceSeconds?: PSMResidence;
10133
- commandListenSeconds?: TrackingCommandWindow;
10134
- gnssSearchTimeoutSeconds?: GNSSSearchTimeout;
10135
- edrxCycleMilliseconds?: RequestedEDRXCycle;
10136
- psmTauSeconds?: RequestedPSMTAU;
10137
- psmActiveSeconds?: RequestedPSMActiveTime;
10138
- automaticDiagnosticsPower?: AutomaticDiagnosticPowerPolicy;
10139
- chargingTerminationCurrentMa?: ChargeTerminationCurrent;
10140
- chargingRechargeDropMv?: RechargeVoltageDrop;
10141
- chargingRegulationVoltageMv?: ChargeRegulationVoltage;
10142
- chargingTemperatureColdStopC?: ColdShutdownTemperature;
10143
- chargingTemperatureColdLimitC?: ColdCurrentLimitingTemperature;
10144
- chargingTemperatureColdLimitRecoveryC?: ColdCurrentLimitingRecoveryTemperature;
10145
- chargingTemperatureWarmLimitC?: WarmCurrentLimitingTemperature;
10146
- chargingTemperatureHotStopC?: HotShutdownTemperature;
10147
- chargingTemperatureColdStopRecoveryC?: ColdShutdownRecoveryTemperature;
10148
- chargingTemperatureWarmLimitRecoveryC?: WarmCurrentLimitingRecoveryTemperature;
10149
- chargingTemperatureHotStopRecoveryC?: HotShutdownRecoveryTemperature;
10150
- chargingLeaseSeconds?: MSPChargingAllocationLease;
10151
- wifiTimeoutSeconds?: WiFiAcquisitionTimeout;
10152
- wifiScanActiveMinMs?: WiFiActiveScanMinimumDwell;
10153
- wifiScanActiveMaxMs?: WiFiActiveScanMaximumDwell;
10154
- wifiScanPassiveMs?: WiFiPassiveScanDwell;
10155
- wifiScanChannelMask?: WiFiScanChannels;
10156
- wifiScanBudgetMs?: WiFiScanBudget;
10157
- wifiScanType?: WiFiScanType;
10158
- chargingStatusMaxAgeSeconds?: ChargingStatusMaximumAge;
10159
- workReportingEnabled?: AutomaticWorkReporting;
10160
- }
10161
- type Definition = (typeof observationDefinitions)[number];
10162
- export type MetricName = Definition["name"];
10163
- export type ObservationFact = {
10164
- [D in Definition as D["name"]]: {
10165
- definitionId: D["id"];
10166
- metric: D["name"];
10167
- value: Required<ObservationValues>[D["name"]];
10168
- };
10169
- }[MetricName];
10170
- export {};