@bikefinder/sdk 0.7.0 → 0.8.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.
@@ -922,31 +922,13 @@ export type CellIdentityValue = {
922
922
  [key: string]: unknown;
923
923
  };
924
924
  export type CellMode = "serving" | "gci" | "neighbors";
925
- export type CellNeighbourValue = {
926
- pci: number;
927
- earfcn: number;
928
- rsrp: number | "NaN" | "Infinity" | "-Infinity" | null;
929
- rsrq: number | "NaN" | "Infinity" | "-Infinity" | null;
930
- [key: string]: unknown;
931
- };
932
- export type CellReadingValue = {
933
- mcc: number;
934
- mnc: number;
935
- tac: number;
936
- cellId: number;
937
- pci: null | number;
938
- earfcn: null | number;
939
- rsrp: number | "NaN" | "Infinity" | "-Infinity" | null;
940
- rsrq: number | "NaN" | "Infinity" | "-Infinity" | null;
941
- [key: string]: unknown;
942
- };
943
925
  /**
944
- * Cellular environment
926
+ * Serving cell
945
927
  *
946
- * 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.
928
+ * One serving-cell reading from readily available modem data, without a neighbor or GCI measurement. Includes available radio technology, identity and signal values; unresolved fields are null.
947
929
  */
948
- export type CellularEnvironmentValue = DeviceObservationValuesCellularEnvironment;
949
- export type CellularEnvironmentValueRat = "lteM" | "nbIot";
930
+ export type CellReadingValue = DeviceObservationValuesCellReading;
931
+ export type CellReadingValueRat = "lteM" | "nbIot";
950
932
  export type ChargingAdjustmentReasonValue = "qualifying" | "atCeiling" | "poorSupply" | "inputVoltageRegulation";
951
933
  export type ChargingAllocationMemberValue = {
952
934
  slot: number;
@@ -1388,12 +1370,8 @@ export type CurrentObservation = ({
1388
1370
  } & CurrentObservationNetworkRegistrationDurationCurrent) | ({
1389
1371
  type: "network.retryStatus";
1390
1372
  } & CurrentObservationNetworkRetryStatusCurrent) | ({
1391
- type: "network.rsrp";
1392
- } & CurrentObservationNetworkRsrpCurrent) | ({
1393
- type: "network.rsrq";
1394
- } & CurrentObservationNetworkRsrqCurrent) | ({
1395
- type: "network.servingCell";
1396
- } & CurrentObservationNetworkServingCellCurrent) | ({
1373
+ type: "radio.servingCell";
1374
+ } & CurrentObservationRadioServingCellCurrent) | ({
1397
1375
  type: "outbox.acknowledged";
1398
1376
  } & CurrentObservationOutboxAcknowledgedCurrent) | ({
1399
1377
  type: "outbox.enqueued";
@@ -1466,8 +1444,8 @@ export type CurrentObservation = ({
1466
1444
  } & CurrentObservationPowerWifiTimeoutsCurrent) | ({
1467
1445
  type: "radio.bleDevices";
1468
1446
  } & CurrentObservationRadioBleDevicesCurrent) | ({
1469
- type: "radio.cellularEnvironment";
1470
- } & CurrentObservationRadioCellularEnvironmentCurrent) | ({
1447
+ type: "radio.cells";
1448
+ } & CurrentObservationRadioCellsCurrent) | ({
1471
1449
  type: "radio.wifiAccessPoints";
1472
1450
  } & CurrentObservationRadioWifiAccessPointsCurrent) | ({
1473
1451
  type: "system.booted";
@@ -3503,55 +3481,6 @@ export type CurrentObservationNetworkRetryStatusCurrent = {
3503
3481
  requestId?: null | number;
3504
3482
  [key: string]: unknown;
3505
3483
  };
3506
- export type CurrentObservationNetworkRsrpCurrent = {
3507
- type: "network.rsrp";
3508
- /**
3509
- * Serving cell signal power (RSRP)
3510
- *
3511
- * Reference signal received power of the last known serving cell, in dBm.
3512
- */
3513
- value: number;
3514
- deviceId: string;
3515
- sourceObservationId: string;
3516
- measuredAt: string;
3517
- receivedAt: string;
3518
- requestId?: null | number;
3519
- [key: string]: unknown;
3520
- };
3521
- export type CurrentObservationNetworkRsrqCurrent = {
3522
- type: "network.rsrq";
3523
- /**
3524
- * Serving cell signal quality (RSRQ)
3525
- *
3526
- * Reference signal received quality of the last known serving cell, in dB.
3527
- */
3528
- value: number;
3529
- deviceId: string;
3530
- sourceObservationId: string;
3531
- measuredAt: string;
3532
- receivedAt: string;
3533
- requestId?: null | number;
3534
- [key: string]: unknown;
3535
- };
3536
- export type CurrentObservationNetworkServingCellCurrent = {
3537
- type: "network.servingCell";
3538
- /**
3539
- * Network serving cell
3540
- *
3541
- * 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.
3542
- */
3543
- value: {
3544
- rat: "lteM" | "nbIot" | null;
3545
- identity: DeviceObservationValuesCellIdentity;
3546
- [key: string]: unknown;
3547
- };
3548
- deviceId: string;
3549
- sourceObservationId: string;
3550
- measuredAt: string;
3551
- receivedAt: string;
3552
- requestId?: null | number;
3553
- [key: string]: unknown;
3554
- };
3555
3484
  export type CurrentObservationOutboxAcknowledgedCurrent = {
3556
3485
  type: "outbox.acknowledged";
3557
3486
  /**
@@ -4076,14 +4005,29 @@ export type CurrentObservationRadioBleDevicesCurrent = {
4076
4005
  requestId?: null | number;
4077
4006
  [key: string]: unknown;
4078
4007
  };
4079
- export type CurrentObservationRadioCellularEnvironmentCurrent = {
4080
- type: "radio.cellularEnvironment";
4008
+ export type CurrentObservationRadioCellsCurrent = {
4009
+ type: "radio.cells";
4081
4010
  /**
4082
- * Cellular environment
4011
+ * Measured cells
4083
4012
  *
4084
- * 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.
4013
+ * Cells returned by an explicitly requested neighbor or GCI measurement, including the serving cell when available. Partial neighbors retain only their known identity fields. A one-cell result means the broader measurement found only one cell; an empty array is a successful measurement with no cells. A serving-only request does not produce this observation.
4085
4014
  */
4086
- value: DeviceObservationValuesCellularEnvironment;
4015
+ value: Array<DeviceObservationValuesCellReading>;
4016
+ deviceId: string;
4017
+ sourceObservationId: string;
4018
+ measuredAt: string;
4019
+ receivedAt: string;
4020
+ requestId?: null | number;
4021
+ [key: string]: unknown;
4022
+ };
4023
+ export type CurrentObservationRadioServingCellCurrent = {
4024
+ type: "radio.servingCell";
4025
+ /**
4026
+ * Serving cell
4027
+ *
4028
+ * One serving-cell reading from readily available modem data, without a neighbor or GCI measurement. Includes available radio technology, identity and signal values; unresolved fields are null.
4029
+ */
4030
+ value: DeviceObservationValuesCellReading;
4087
4031
  deviceId: string;
4088
4032
  sourceObservationId: string;
4089
4033
  measuredAt: string;
@@ -4940,27 +4884,11 @@ export type DeviceObservationValues = {
4940
4884
  [key: string]: unknown;
4941
4885
  };
4942
4886
  /**
4943
- * Serving cell signal power (RSRP)
4944
- *
4945
- * Reference signal received power of the last known serving cell, in dBm.
4946
- */
4947
- "network.rsrp"?: number;
4948
- /**
4949
- * Serving cell signal quality (RSRQ)
4950
- *
4951
- * Reference signal received quality of the last known serving cell, in dB.
4952
- */
4953
- "network.rsrq"?: number;
4954
- /**
4955
- * Network serving cell
4887
+ * Serving cell
4956
4888
  *
4957
- * 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.
4889
+ * One serving-cell reading from readily available modem data, without a neighbor or GCI measurement. Includes available radio technology, identity and signal values; unresolved fields are null.
4958
4890
  */
4959
- "network.servingCell"?: {
4960
- rat: "lteM" | "nbIot" | null;
4961
- identity: DeviceObservationValuesCellIdentity;
4962
- [key: string]: unknown;
4963
- };
4891
+ "radio.servingCell"?: DeviceObservationValuesCellReading;
4964
4892
  /**
4965
4893
  * Outbox acknowledged observations
4966
4894
  *
@@ -5196,11 +5124,11 @@ export type DeviceObservationValues = {
5196
5124
  */
5197
5125
  "radio.bleDevices"?: Array<DeviceObservationValuesBleDevice>;
5198
5126
  /**
5199
- * Cellular environment
5127
+ * Measured cells
5200
5128
  *
5201
- * 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.
5129
+ * Cells returned by an explicitly requested neighbor or GCI measurement, including the serving cell when available. Partial neighbors retain only their known identity fields. A one-cell result means the broader measurement found only one cell; an empty array is a successful measurement with no cells. A serving-only request does not produce this observation.
5202
5130
  */
5203
- "radio.cellularEnvironment"?: DeviceObservationValuesCellularEnvironment;
5131
+ "radio.cells"?: Array<DeviceObservationValuesCellReading>;
5204
5132
  /**
5205
5133
  * Wi-Fi access points
5206
5134
  *
@@ -5472,31 +5400,13 @@ export type DeviceObservationValuesCellIdentity = {
5472
5400
  earfcn: number | null;
5473
5401
  [key: string]: unknown;
5474
5402
  };
5475
- export type DeviceObservationValuesCellNeighbour = {
5476
- pci: number;
5477
- earfcn: number;
5478
- rsrp: number | null;
5479
- rsrq: number | null;
5480
- [key: string]: unknown;
5481
- };
5482
5403
  export type DeviceObservationValuesCellReading = {
5483
- mcc: number;
5484
- mnc: number;
5485
- tac: number;
5486
- cellId: number;
5487
- pci: number | null;
5488
- earfcn: number | null;
5404
+ rat: "lteM" | "nbIot" | null;
5405
+ identity: DeviceObservationValuesCellIdentity;
5489
5406
  rsrp: number | null;
5490
5407
  rsrq: number | null;
5491
5408
  [key: string]: unknown;
5492
5409
  };
5493
- export type DeviceObservationValuesCellularEnvironment = {
5494
- serving: DeviceObservationValuesCellReading;
5495
- rat: "lteM" | "nbIot";
5496
- globalCells: Array<DeviceObservationValuesCellReading>;
5497
- neighbours: Array<DeviceObservationValuesCellNeighbour>;
5498
- [key: string]: unknown;
5499
- };
5500
5410
  export type DeviceObservationValuesChargingAdjustmentReason = "qualifying" | "atCeiling" | "poorSupply" | "inputVoltageRegulation";
5501
5411
  export type DeviceObservationValuesChargingAllocationMember = {
5502
5412
  slot: number;
@@ -6533,17 +6443,6 @@ export type NetworkRetryStatusValue = {
6533
6443
  consecutiveFailures: number;
6534
6444
  [key: string]: unknown;
6535
6445
  };
6536
- /**
6537
- * Network serving cell
6538
- *
6539
- * 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.
6540
- */
6541
- export type NetworkServingCellValue = {
6542
- rat: "lteM" | "nbIot" | null;
6543
- identity: DeviceObservationValuesCellIdentity;
6544
- [key: string]: unknown;
6545
- };
6546
- export type NetworkServingCellValueRat = "lteM" | "nbIot";
6547
6446
  export type NotificationContentData = {
6548
6447
  title?: null | string;
6549
6448
  body?: null | string;
@@ -6771,12 +6670,8 @@ export type Observation = ({
6771
6670
  } & ObservationNetworkRegistrationDurationObservation) | ({
6772
6671
  type: "network.retryStatus";
6773
6672
  } & ObservationNetworkRetryStatusObservation) | ({
6774
- type: "network.rsrp";
6775
- } & ObservationNetworkRsrpObservation) | ({
6776
- type: "network.rsrq";
6777
- } & ObservationNetworkRsrqObservation) | ({
6778
- type: "network.servingCell";
6779
- } & ObservationNetworkServingCellObservation) | ({
6673
+ type: "radio.servingCell";
6674
+ } & ObservationRadioServingCellObservation) | ({
6780
6675
  type: "outbox.acknowledged";
6781
6676
  } & ObservationOutboxAcknowledgedObservation) | ({
6782
6677
  type: "outbox.enqueued";
@@ -6849,8 +6744,8 @@ export type Observation = ({
6849
6744
  } & ObservationPowerWifiTimeoutsObservation) | ({
6850
6745
  type: "radio.bleDevices";
6851
6746
  } & ObservationRadioBleDevicesObservation) | ({
6852
- type: "radio.cellularEnvironment";
6853
- } & ObservationRadioCellularEnvironmentObservation) | ({
6747
+ type: "radio.cells";
6748
+ } & ObservationRadioCellsObservation) | ({
6854
6749
  type: "radio.wifiAccessPoints";
6855
6750
  } & ObservationRadioWifiAccessPointsObservation) | ({
6856
6751
  type: "system.booted";
@@ -8997,58 +8892,6 @@ export type ObservationNetworkRetryStatusObservation = {
8997
8892
  requestId?: null | number;
8998
8893
  [key: string]: unknown;
8999
8894
  };
9000
- export type ObservationNetworkRsrpObservation = {
9001
- type: "network.rsrp";
9002
- /**
9003
- * Serving cell signal power (RSRP)
9004
- *
9005
- * Reference signal received power of the last known serving cell, in dBm.
9006
- */
9007
- value: number;
9008
- deviceId: string;
9009
- observationId: string;
9010
- receivedAt: string;
9011
- ageMs: number;
9012
- measuredAt: string;
9013
- requestId?: null | number;
9014
- [key: string]: unknown;
9015
- };
9016
- export type ObservationNetworkRsrqObservation = {
9017
- type: "network.rsrq";
9018
- /**
9019
- * Serving cell signal quality (RSRQ)
9020
- *
9021
- * Reference signal received quality of the last known serving cell, in dB.
9022
- */
9023
- value: number;
9024
- deviceId: string;
9025
- observationId: string;
9026
- receivedAt: string;
9027
- ageMs: number;
9028
- measuredAt: string;
9029
- requestId?: null | number;
9030
- [key: string]: unknown;
9031
- };
9032
- export type ObservationNetworkServingCellObservation = {
9033
- type: "network.servingCell";
9034
- /**
9035
- * Network serving cell
9036
- *
9037
- * 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.
9038
- */
9039
- value: {
9040
- rat: "lteM" | "nbIot" | null;
9041
- identity: DeviceObservationValuesCellIdentity;
9042
- [key: string]: unknown;
9043
- };
9044
- deviceId: string;
9045
- observationId: string;
9046
- receivedAt: string;
9047
- ageMs: number;
9048
- measuredAt: string;
9049
- requestId?: null | number;
9050
- [key: string]: unknown;
9051
- };
9052
8895
  export type ObservationOutboxAcknowledgedObservation = {
9053
8896
  type: "outbox.acknowledged";
9054
8897
  /**
@@ -9612,14 +9455,30 @@ export type ObservationRadioBleDevicesObservation = {
9612
9455
  requestId?: null | number;
9613
9456
  [key: string]: unknown;
9614
9457
  };
9615
- export type ObservationRadioCellularEnvironmentObservation = {
9616
- type: "radio.cellularEnvironment";
9458
+ export type ObservationRadioCellsObservation = {
9459
+ type: "radio.cells";
9460
+ /**
9461
+ * Measured cells
9462
+ *
9463
+ * Cells returned by an explicitly requested neighbor or GCI measurement, including the serving cell when available. Partial neighbors retain only their known identity fields. A one-cell result means the broader measurement found only one cell; an empty array is a successful measurement with no cells. A serving-only request does not produce this observation.
9464
+ */
9465
+ value: Array<DeviceObservationValuesCellReading>;
9466
+ deviceId: string;
9467
+ observationId: string;
9468
+ receivedAt: string;
9469
+ ageMs: number;
9470
+ measuredAt: string;
9471
+ requestId?: null | number;
9472
+ [key: string]: unknown;
9473
+ };
9474
+ export type ObservationRadioServingCellObservation = {
9475
+ type: "radio.servingCell";
9617
9476
  /**
9618
- * Cellular environment
9477
+ * Serving cell
9619
9478
  *
9620
- * 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.
9479
+ * One serving-cell reading from readily available modem data, without a neighbor or GCI measurement. Includes available radio technology, identity and signal values; unresolved fields are null.
9621
9480
  */
9622
- value: DeviceObservationValuesCellularEnvironment;
9481
+ value: DeviceObservationValuesCellReading;
9623
9482
  deviceId: string;
9624
9483
  observationId: string;
9625
9484
  receivedAt: string;
@@ -9974,7 +9833,7 @@ export type SubmitCommandRequest = {
9974
9833
  expectedInventoryId: string;
9975
9834
  command: "requestObservations";
9976
9835
  arguments: [0 | 1, number];
9977
- metrics: Array<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 107 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 121 | 123 | 124 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 143 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 155 | 156 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166>;
9836
+ metrics: Array<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 98 | 99 | 100 | 101 | 102 | 174 | 107 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 121 | 123 | 124 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 143 | 146 | 147 | 148 | 149 | 150 | 151 | 175 | 153 | 155 | 156 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166>;
9978
9837
  enrollmentUrl?: null;
9979
9838
  confirmed?: boolean;
9980
9839
  acquisitionOptions?: AcquisitionOptions | null;
@@ -10019,7 +9878,7 @@ export type SubmitCommandRequest = {
10019
9878
  expectedInventoryId: string;
10020
9879
  command: "streamObservations";
10021
9880
  arguments: [number, number, number, 0 | 1 | 2 | 3, number];
10022
- metrics: Array<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 107 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 121 | 123 | 124 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 143 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 155 | 156 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166>;
9881
+ metrics: Array<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 98 | 99 | 100 | 101 | 102 | 174 | 107 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 121 | 123 | 124 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 143 | 146 | 147 | 148 | 149 | 150 | 151 | 175 | 153 | 155 | 156 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166>;
10023
9882
  enrollmentUrl?: null;
10024
9883
  confirmed?: boolean;
10025
9884
  acquisitionOptions?: null;