@bikefinder/sdk 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/device-schema.d.ts +48 -199
- package/dist/device-schema.js +56 -237
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +1 -7
- package/dist/generated/sdk.gen.js +1 -107
- package/dist/generated/types.gen.d.ts +65 -370
- package/dist/generated/zod.gen.d.ts +224 -820
- package/dist/generated/zod.gen.js +58 -361
- package/openapi/api.json +441 -1529
- package/package.json +1 -1
|
@@ -808,77 +808,7 @@ export const zCellAcquisitionOptions = z
|
|
|
808
808
|
.optional(),
|
|
809
809
|
})
|
|
810
810
|
.catchall(z.unknown());
|
|
811
|
-
export const
|
|
812
|
-
.object({
|
|
813
|
-
pci: z
|
|
814
|
-
.int()
|
|
815
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
816
|
-
.max(4294967295, {
|
|
817
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
818
|
-
}),
|
|
819
|
-
earfcn: z
|
|
820
|
-
.int()
|
|
821
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
822
|
-
.max(4294967295, {
|
|
823
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
824
|
-
}),
|
|
825
|
-
rsrp: z
|
|
826
|
-
.union([z.number(), z.enum(["NaN", "Infinity", "-Infinity"])])
|
|
827
|
-
.nullable(),
|
|
828
|
-
rsrq: z
|
|
829
|
-
.union([z.number(), z.enum(["NaN", "Infinity", "-Infinity"])])
|
|
830
|
-
.nullable(),
|
|
831
|
-
})
|
|
832
|
-
.catchall(z.unknown());
|
|
833
|
-
export const zCellReadingValue = z
|
|
834
|
-
.object({
|
|
835
|
-
mcc: z
|
|
836
|
-
.int()
|
|
837
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
838
|
-
.max(4294967295, {
|
|
839
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
840
|
-
}),
|
|
841
|
-
mnc: z
|
|
842
|
-
.int()
|
|
843
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
844
|
-
.max(4294967295, {
|
|
845
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
846
|
-
}),
|
|
847
|
-
tac: z
|
|
848
|
-
.int()
|
|
849
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
850
|
-
.max(4294967295, {
|
|
851
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
852
|
-
}),
|
|
853
|
-
cellId: z
|
|
854
|
-
.int()
|
|
855
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
856
|
-
.max(4294967295, {
|
|
857
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
858
|
-
}),
|
|
859
|
-
pci: z
|
|
860
|
-
.int()
|
|
861
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
862
|
-
.max(4294967295, {
|
|
863
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
864
|
-
})
|
|
865
|
-
.nullable(),
|
|
866
|
-
earfcn: z
|
|
867
|
-
.int()
|
|
868
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
869
|
-
.max(4294967295, {
|
|
870
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
871
|
-
})
|
|
872
|
-
.nullable(),
|
|
873
|
-
rsrp: z
|
|
874
|
-
.union([z.number(), z.enum(["NaN", "Infinity", "-Infinity"])])
|
|
875
|
-
.nullable(),
|
|
876
|
-
rsrq: z
|
|
877
|
-
.union([z.number(), z.enum(["NaN", "Infinity", "-Infinity"])])
|
|
878
|
-
.nullable(),
|
|
879
|
-
})
|
|
880
|
-
.catchall(z.unknown());
|
|
881
|
-
export const zCellularEnvironmentValueRat = z.enum(["lteM", "nbIot"]);
|
|
811
|
+
export const zCellReadingValueRat = z.enum(["lteM", "nbIot"]);
|
|
882
812
|
export const zChargingAdjustmentReasonValue = z.enum([
|
|
883
813
|
"qualifying",
|
|
884
814
|
"atCeiling",
|
|
@@ -1078,7 +1008,6 @@ export const zCommandDefinition = z
|
|
|
1078
1008
|
"listEnvironments",
|
|
1079
1009
|
"updateBattery",
|
|
1080
1010
|
"runBatteryCheck",
|
|
1081
|
-
"requestPosition",
|
|
1082
1011
|
"enableDiagnostics",
|
|
1083
1012
|
]),
|
|
1084
1013
|
label: z.string(),
|
|
@@ -2707,40 +2636,6 @@ export const zCurrentObservationNetworkRetryStatusCurrent = z
|
|
|
2707
2636
|
.nullish(),
|
|
2708
2637
|
})
|
|
2709
2638
|
.catchall(z.unknown());
|
|
2710
|
-
export const zCurrentObservationNetworkRsrpCurrent = z
|
|
2711
|
-
.object({
|
|
2712
|
-
type: z.enum(["network.rsrp"]),
|
|
2713
|
-
value: z.number().gte(-200).lte(0),
|
|
2714
|
-
deviceId: z.string(),
|
|
2715
|
-
sourceObservationId: z.string(),
|
|
2716
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
2717
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
2718
|
-
requestId: z
|
|
2719
|
-
.int()
|
|
2720
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
2721
|
-
.max(4294967295, {
|
|
2722
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
2723
|
-
})
|
|
2724
|
-
.nullish(),
|
|
2725
|
-
})
|
|
2726
|
-
.catchall(z.unknown());
|
|
2727
|
-
export const zCurrentObservationNetworkRsrqCurrent = z
|
|
2728
|
-
.object({
|
|
2729
|
-
type: z.enum(["network.rsrq"]),
|
|
2730
|
-
value: z.number().gte(-60).lte(20),
|
|
2731
|
-
deviceId: z.string(),
|
|
2732
|
-
sourceObservationId: z.string(),
|
|
2733
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
2734
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
2735
|
-
requestId: z
|
|
2736
|
-
.int()
|
|
2737
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
2738
|
-
.max(4294967295, {
|
|
2739
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
2740
|
-
})
|
|
2741
|
-
.nullish(),
|
|
2742
|
-
})
|
|
2743
|
-
.catchall(z.unknown());
|
|
2744
2639
|
export const zCurrentObservationOutboxAcknowledgedCurrent = z
|
|
2745
2640
|
.object({
|
|
2746
2641
|
type: z.enum(["outbox.acknowledged"]),
|
|
@@ -3464,15 +3359,24 @@ export const zDeviceObservationValuesCellIdentity = z
|
|
|
3464
3359
|
earfcn: z.int().gte(0).lte(4294967295).nullable(),
|
|
3465
3360
|
})
|
|
3466
3361
|
.catchall(z.unknown());
|
|
3467
|
-
export const
|
|
3362
|
+
export const zDeviceObservationValuesCellReading = z
|
|
3468
3363
|
.object({
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3364
|
+
rat: z.enum(["lteM", "nbIot"]).nullable(),
|
|
3365
|
+
identity: zDeviceObservationValuesCellIdentity,
|
|
3366
|
+
rsrp: z.number().gte(-200).lte(0).nullable(),
|
|
3367
|
+
rsrq: z.number().gte(-60).lte(20).nullable(),
|
|
3368
|
+
})
|
|
3369
|
+
.catchall(z.unknown());
|
|
3370
|
+
/**
|
|
3371
|
+
* Serving cell
|
|
3372
|
+
*
|
|
3373
|
+
* 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.
|
|
3374
|
+
*/
|
|
3375
|
+
export const zCellReadingValue = zDeviceObservationValuesCellReading;
|
|
3376
|
+
export const zCurrentObservationRadioCellsCurrent = z
|
|
3377
|
+
.object({
|
|
3378
|
+
type: z.enum(["radio.cells"]),
|
|
3379
|
+
value: z.array(zDeviceObservationValuesCellReading).max(23),
|
|
3476
3380
|
deviceId: z.string(),
|
|
3477
3381
|
sourceObservationId: z.string(),
|
|
3478
3382
|
measuredAt: z.iso.datetime({ offset: true }),
|
|
@@ -3486,44 +3390,10 @@ export const zCurrentObservationNetworkServingCellCurrent = z
|
|
|
3486
3390
|
.nullish(),
|
|
3487
3391
|
})
|
|
3488
3392
|
.catchall(z.unknown());
|
|
3489
|
-
export const
|
|
3490
|
-
.object({
|
|
3491
|
-
pci: z.int().gte(0).lte(4294967295),
|
|
3492
|
-
earfcn: z.int().gte(0).lte(4294967295),
|
|
3493
|
-
rsrp: z.number().gte(-200).lte(0).nullable(),
|
|
3494
|
-
rsrq: z.number().gte(-60).lte(20).nullable(),
|
|
3495
|
-
})
|
|
3496
|
-
.catchall(z.unknown());
|
|
3497
|
-
export const zDeviceObservationValuesCellReading = z
|
|
3498
|
-
.object({
|
|
3499
|
-
mcc: z.int().gte(1).lte(999),
|
|
3500
|
-
mnc: z.int().gte(0).lte(999),
|
|
3501
|
-
tac: z.int().gte(0).lte(4294967295),
|
|
3502
|
-
cellId: z.int().gte(0).lte(4294967295),
|
|
3503
|
-
pci: z.int().gte(0).lte(4294967295).nullable(),
|
|
3504
|
-
earfcn: z.int().gte(0).lte(4294967295).nullable(),
|
|
3505
|
-
rsrp: z.number().gte(-200).lte(0).nullable(),
|
|
3506
|
-
rsrq: z.number().gte(-60).lte(20).nullable(),
|
|
3507
|
-
})
|
|
3508
|
-
.catchall(z.unknown());
|
|
3509
|
-
export const zDeviceObservationValuesCellularEnvironment = z
|
|
3393
|
+
export const zCurrentObservationRadioServingCellCurrent = z
|
|
3510
3394
|
.object({
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
globalCells: z.array(zDeviceObservationValuesCellReading).max(5),
|
|
3514
|
-
neighbours: z.array(zDeviceObservationValuesCellNeighbour).max(17),
|
|
3515
|
-
})
|
|
3516
|
-
.catchall(z.unknown());
|
|
3517
|
-
/**
|
|
3518
|
-
* Cellular environment
|
|
3519
|
-
*
|
|
3520
|
-
* 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.
|
|
3521
|
-
*/
|
|
3522
|
-
export const zCellularEnvironmentValue = zDeviceObservationValuesCellularEnvironment;
|
|
3523
|
-
export const zCurrentObservationRadioCellularEnvironmentCurrent = z
|
|
3524
|
-
.object({
|
|
3525
|
-
type: z.enum(["radio.cellularEnvironment"]),
|
|
3526
|
-
value: zDeviceObservationValuesCellularEnvironment,
|
|
3395
|
+
type: z.enum(["radio.servingCell"]),
|
|
3396
|
+
value: zDeviceObservationValuesCellReading,
|
|
3527
3397
|
deviceId: z.string(),
|
|
3528
3398
|
sourceObservationId: z.string(),
|
|
3529
3399
|
measuredAt: z.iso.datetime({ offset: true }),
|
|
@@ -5554,14 +5424,8 @@ export const zCurrentObservation = z.discriminatedUnion("type", [
|
|
|
5554
5424
|
zCurrentObservationNetworkRetryStatusCurrent.extend({
|
|
5555
5425
|
type: z.literal("network.retryStatus"),
|
|
5556
5426
|
}),
|
|
5557
|
-
|
|
5558
|
-
type: z.literal("
|
|
5559
|
-
}),
|
|
5560
|
-
zCurrentObservationNetworkRsrqCurrent.extend({
|
|
5561
|
-
type: z.literal("network.rsrq"),
|
|
5562
|
-
}),
|
|
5563
|
-
zCurrentObservationNetworkServingCellCurrent.extend({
|
|
5564
|
-
type: z.literal("network.servingCell"),
|
|
5427
|
+
zCurrentObservationRadioServingCellCurrent.extend({
|
|
5428
|
+
type: z.literal("radio.servingCell"),
|
|
5565
5429
|
}),
|
|
5566
5430
|
zCurrentObservationOutboxAcknowledgedCurrent.extend({
|
|
5567
5431
|
type: z.literal("outbox.acknowledged"),
|
|
@@ -5671,8 +5535,8 @@ export const zCurrentObservation = z.discriminatedUnion("type", [
|
|
|
5671
5535
|
zCurrentObservationRadioBleDevicesCurrent.extend({
|
|
5672
5536
|
type: z.literal("radio.bleDevices"),
|
|
5673
5537
|
}),
|
|
5674
|
-
|
|
5675
|
-
type: z.literal("radio.
|
|
5538
|
+
zCurrentObservationRadioCellsCurrent.extend({
|
|
5539
|
+
type: z.literal("radio.cells"),
|
|
5676
5540
|
}),
|
|
5677
5541
|
zCurrentObservationRadioWifiAccessPointsCurrent.extend({
|
|
5678
5542
|
type: z.literal("radio.wifiAccessPoints"),
|
|
@@ -6223,15 +6087,7 @@ export const zDeviceObservationValues = z
|
|
|
6223
6087
|
})
|
|
6224
6088
|
.catchall(z.unknown())
|
|
6225
6089
|
.optional(),
|
|
6226
|
-
"
|
|
6227
|
-
"network.rsrq": z.number().gte(-60).lte(20).optional(),
|
|
6228
|
-
"network.servingCell": z
|
|
6229
|
-
.object({
|
|
6230
|
-
rat: z.enum(["lteM", "nbIot"]).nullable(),
|
|
6231
|
-
identity: zDeviceObservationValuesCellIdentity,
|
|
6232
|
-
})
|
|
6233
|
-
.catchall(z.unknown())
|
|
6234
|
-
.optional(),
|
|
6090
|
+
"radio.servingCell": zDeviceObservationValuesCellReading.optional(),
|
|
6235
6091
|
"outbox.acknowledged": z.int().gte(0).lte(4294967295).optional(),
|
|
6236
6092
|
"outbox.enqueued": z.int().gte(0).lte(4294967295).optional(),
|
|
6237
6093
|
"outbox.evicted": z.int().gte(0).lte(4294967295).optional(),
|
|
@@ -6298,7 +6154,10 @@ export const zDeviceObservationValues = z
|
|
|
6298
6154
|
.array(zDeviceObservationValuesBleDevice)
|
|
6299
6155
|
.max(20)
|
|
6300
6156
|
.optional(),
|
|
6301
|
-
"radio.
|
|
6157
|
+
"radio.cells": z
|
|
6158
|
+
.array(zDeviceObservationValuesCellReading)
|
|
6159
|
+
.max(23)
|
|
6160
|
+
.optional(),
|
|
6302
6161
|
"radio.wifiAccessPoints": z
|
|
6303
6162
|
.array(zDeviceObservationValuesWifiAccessPoint)
|
|
6304
6163
|
.max(20)
|
|
@@ -7418,18 +7277,6 @@ export const zNetworkRetryStatusValue = z
|
|
|
7418
7277
|
consecutiveFailures: z.int().gte(0).lte(4294967295),
|
|
7419
7278
|
})
|
|
7420
7279
|
.catchall(z.unknown());
|
|
7421
|
-
/**
|
|
7422
|
-
* Network serving cell
|
|
7423
|
-
*
|
|
7424
|
-
* 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.
|
|
7425
|
-
*/
|
|
7426
|
-
export const zNetworkServingCellValue = z
|
|
7427
|
-
.object({
|
|
7428
|
-
rat: z.enum(["lteM", "nbIot"]).nullable(),
|
|
7429
|
-
identity: zDeviceObservationValuesCellIdentity,
|
|
7430
|
-
})
|
|
7431
|
-
.catchall(z.unknown());
|
|
7432
|
-
export const zNetworkServingCellValueRat = z.enum(["lteM", "nbIot"]);
|
|
7433
7280
|
export const zNotificationContentData = z
|
|
7434
7281
|
.object({
|
|
7435
7282
|
title: z.string().nullish(),
|
|
@@ -9994,65 +9841,6 @@ export const zObservationNetworkRetryStatusObservation = z
|
|
|
9994
9841
|
.nullish(),
|
|
9995
9842
|
})
|
|
9996
9843
|
.catchall(z.unknown());
|
|
9997
|
-
export const zObservationNetworkRsrpObservation = z
|
|
9998
|
-
.object({
|
|
9999
|
-
type: z.enum(["network.rsrp"]),
|
|
10000
|
-
value: z.number().gte(-200).lte(0),
|
|
10001
|
-
deviceId: z.string(),
|
|
10002
|
-
observationId: z.string(),
|
|
10003
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
10004
|
-
ageMs: z.int().gte(0).lte(9007199254740991),
|
|
10005
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
10006
|
-
requestId: z
|
|
10007
|
-
.int()
|
|
10008
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
10009
|
-
.max(4294967295, {
|
|
10010
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
10011
|
-
})
|
|
10012
|
-
.nullish(),
|
|
10013
|
-
})
|
|
10014
|
-
.catchall(z.unknown());
|
|
10015
|
-
export const zObservationNetworkRsrqObservation = z
|
|
10016
|
-
.object({
|
|
10017
|
-
type: z.enum(["network.rsrq"]),
|
|
10018
|
-
value: z.number().gte(-60).lte(20),
|
|
10019
|
-
deviceId: z.string(),
|
|
10020
|
-
observationId: z.string(),
|
|
10021
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
10022
|
-
ageMs: z.int().gte(0).lte(9007199254740991),
|
|
10023
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
10024
|
-
requestId: z
|
|
10025
|
-
.int()
|
|
10026
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
10027
|
-
.max(4294967295, {
|
|
10028
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
10029
|
-
})
|
|
10030
|
-
.nullish(),
|
|
10031
|
-
})
|
|
10032
|
-
.catchall(z.unknown());
|
|
10033
|
-
export const zObservationNetworkServingCellObservation = z
|
|
10034
|
-
.object({
|
|
10035
|
-
type: z.enum(["network.servingCell"]),
|
|
10036
|
-
value: z
|
|
10037
|
-
.object({
|
|
10038
|
-
rat: z.enum(["lteM", "nbIot"]).nullable(),
|
|
10039
|
-
identity: zDeviceObservationValuesCellIdentity,
|
|
10040
|
-
})
|
|
10041
|
-
.catchall(z.unknown()),
|
|
10042
|
-
deviceId: z.string(),
|
|
10043
|
-
observationId: z.string(),
|
|
10044
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
10045
|
-
ageMs: z.int().gte(0).lte(9007199254740991),
|
|
10046
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
10047
|
-
requestId: z
|
|
10048
|
-
.int()
|
|
10049
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
10050
|
-
.max(4294967295, {
|
|
10051
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
10052
|
-
})
|
|
10053
|
-
.nullish(),
|
|
10054
|
-
})
|
|
10055
|
-
.catchall(z.unknown());
|
|
10056
9844
|
export const zObservationOutboxAcknowledgedObservation = z
|
|
10057
9845
|
.object({
|
|
10058
9846
|
type: z.enum(["outbox.acknowledged"]),
|
|
@@ -10683,10 +10471,28 @@ export const zObservationRadioBleDevicesObservation = z
|
|
|
10683
10471
|
.nullish(),
|
|
10684
10472
|
})
|
|
10685
10473
|
.catchall(z.unknown());
|
|
10686
|
-
export const
|
|
10474
|
+
export const zObservationRadioCellsObservation = z
|
|
10687
10475
|
.object({
|
|
10688
|
-
type: z.enum(["radio.
|
|
10689
|
-
value:
|
|
10476
|
+
type: z.enum(["radio.cells"]),
|
|
10477
|
+
value: z.array(zDeviceObservationValuesCellReading).max(23),
|
|
10478
|
+
deviceId: z.string(),
|
|
10479
|
+
observationId: z.string(),
|
|
10480
|
+
receivedAt: z.iso.datetime({ offset: true }),
|
|
10481
|
+
ageMs: z.int().gte(0).lte(9007199254740991),
|
|
10482
|
+
measuredAt: z.iso.datetime({ offset: true }),
|
|
10483
|
+
requestId: z
|
|
10484
|
+
.int()
|
|
10485
|
+
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
10486
|
+
.max(4294967295, {
|
|
10487
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
10488
|
+
})
|
|
10489
|
+
.nullish(),
|
|
10490
|
+
})
|
|
10491
|
+
.catchall(z.unknown());
|
|
10492
|
+
export const zObservationRadioServingCellObservation = z
|
|
10493
|
+
.object({
|
|
10494
|
+
type: z.enum(["radio.servingCell"]),
|
|
10495
|
+
value: zDeviceObservationValuesCellReading,
|
|
10690
10496
|
deviceId: z.string(),
|
|
10691
10497
|
observationId: z.string(),
|
|
10692
10498
|
receivedAt: z.iso.datetime({ offset: true }),
|
|
@@ -11053,14 +10859,8 @@ export const zObservation = z.discriminatedUnion("type", [
|
|
|
11053
10859
|
zObservationNetworkRetryStatusObservation.extend({
|
|
11054
10860
|
type: z.literal("network.retryStatus"),
|
|
11055
10861
|
}),
|
|
11056
|
-
|
|
11057
|
-
type: z.literal("
|
|
11058
|
-
}),
|
|
11059
|
-
zObservationNetworkRsrqObservation.extend({
|
|
11060
|
-
type: z.literal("network.rsrq"),
|
|
11061
|
-
}),
|
|
11062
|
-
zObservationNetworkServingCellObservation.extend({
|
|
11063
|
-
type: z.literal("network.servingCell"),
|
|
10862
|
+
zObservationRadioServingCellObservation.extend({
|
|
10863
|
+
type: z.literal("radio.servingCell"),
|
|
11064
10864
|
}),
|
|
11065
10865
|
zObservationOutboxAcknowledgedObservation.extend({
|
|
11066
10866
|
type: z.literal("outbox.acknowledged"),
|
|
@@ -11164,9 +10964,7 @@ export const zObservation = z.discriminatedUnion("type", [
|
|
|
11164
10964
|
zObservationRadioBleDevicesObservation.extend({
|
|
11165
10965
|
type: z.literal("radio.bleDevices"),
|
|
11166
10966
|
}),
|
|
11167
|
-
|
|
11168
|
-
type: z.literal("radio.cellularEnvironment"),
|
|
11169
|
-
}),
|
|
10967
|
+
zObservationRadioCellsObservation.extend({ type: z.literal("radio.cells") }),
|
|
11170
10968
|
zObservationRadioWifiAccessPointsObservation.extend({
|
|
11171
10969
|
type: z.literal("radio.wifiAccessPoints"),
|
|
11172
10970
|
}),
|
|
@@ -11394,17 +11192,6 @@ export const zPositionGnssFixValue = z
|
|
|
11394
11192
|
quality: zDeviceObservationValuesFixQuality.nullable(),
|
|
11395
11193
|
})
|
|
11396
11194
|
.catchall(z.unknown());
|
|
11397
|
-
export const zPositioningSchedule = z
|
|
11398
|
-
.object({
|
|
11399
|
-
enabled: z.boolean(),
|
|
11400
|
-
intervalSeconds: z.int().gte(60).lte(604800),
|
|
11401
|
-
})
|
|
11402
|
-
.strict();
|
|
11403
|
-
export const zPositionRequest = z
|
|
11404
|
-
.object({
|
|
11405
|
-
operationId: z.uuid(),
|
|
11406
|
-
})
|
|
11407
|
-
.strict();
|
|
11408
11195
|
export const zPowerActivitiesValueItem = z.enum([
|
|
11409
11196
|
"rrc",
|
|
11410
11197
|
"mqtt",
|
|
@@ -11737,9 +11524,7 @@ export const zSubmitCommandRequest = z.union([
|
|
|
11737
11524
|
z.literal(100),
|
|
11738
11525
|
z.literal(101),
|
|
11739
11526
|
z.literal(102),
|
|
11740
|
-
z.literal(
|
|
11741
|
-
z.literal(104),
|
|
11742
|
-
z.literal(105),
|
|
11527
|
+
z.literal(174),
|
|
11743
11528
|
z.literal(107),
|
|
11744
11529
|
z.literal(110),
|
|
11745
11530
|
z.literal(111),
|
|
@@ -11774,7 +11559,7 @@ export const zSubmitCommandRequest = z.union([
|
|
|
11774
11559
|
z.literal(149),
|
|
11775
11560
|
z.literal(150),
|
|
11776
11561
|
z.literal(151),
|
|
11777
|
-
z.literal(
|
|
11562
|
+
z.literal(175),
|
|
11778
11563
|
z.literal(153),
|
|
11779
11564
|
z.literal(155),
|
|
11780
11565
|
z.literal(156),
|
|
@@ -11947,9 +11732,7 @@ export const zSubmitCommandRequest = z.union([
|
|
|
11947
11732
|
z.literal(100),
|
|
11948
11733
|
z.literal(101),
|
|
11949
11734
|
z.literal(102),
|
|
11950
|
-
z.literal(
|
|
11951
|
-
z.literal(104),
|
|
11952
|
-
z.literal(105),
|
|
11735
|
+
z.literal(174),
|
|
11953
11736
|
z.literal(107),
|
|
11954
11737
|
z.literal(110),
|
|
11955
11738
|
z.literal(111),
|
|
@@ -11984,7 +11767,7 @@ export const zSubmitCommandRequest = z.union([
|
|
|
11984
11767
|
z.literal(149),
|
|
11985
11768
|
z.literal(150),
|
|
11986
11769
|
z.literal(151),
|
|
11987
|
-
z.literal(
|
|
11770
|
+
z.literal(175),
|
|
11988
11771
|
z.literal(153),
|
|
11989
11772
|
z.literal(155),
|
|
11990
11773
|
z.literal(156),
|
|
@@ -12064,21 +11847,6 @@ export const zSubmitCommandRequest = z.union([
|
|
|
12064
11847
|
acquisitionOptions: z.null().optional(),
|
|
12065
11848
|
})
|
|
12066
11849
|
.strict(),
|
|
12067
|
-
z
|
|
12068
|
-
.object({
|
|
12069
|
-
operationId: z.uuid(),
|
|
12070
|
-
expectedInventoryId: z.string(),
|
|
12071
|
-
command: z.enum(["requestPosition"]),
|
|
12072
|
-
arguments: z.tuple([
|
|
12073
|
-
z.union([z.literal(0), z.literal(1)]),
|
|
12074
|
-
z.int().gte(0).lte(4294967295),
|
|
12075
|
-
]),
|
|
12076
|
-
metrics: z.null().optional(),
|
|
12077
|
-
enrollmentUrl: z.null().optional(),
|
|
12078
|
-
confirmed: z.boolean().optional(),
|
|
12079
|
-
acquisitionOptions: z.null().optional(),
|
|
12080
|
-
})
|
|
12081
|
-
.strict(),
|
|
12082
11850
|
z
|
|
12083
11851
|
.object({
|
|
12084
11852
|
operationId: z.uuid(),
|
|
@@ -12991,7 +12759,6 @@ export const zTrackerCommand = z
|
|
|
12991
12759
|
"listEnvironments",
|
|
12992
12760
|
"updateBattery",
|
|
12993
12761
|
"runBatteryCheck",
|
|
12994
|
-
"requestPosition",
|
|
12995
12762
|
"enableDiagnostics",
|
|
12996
12763
|
]),
|
|
12997
12764
|
arguments: z.array(z
|
|
@@ -13190,30 +12957,6 @@ export const zObservationReading = z
|
|
|
13190
12957
|
observation: zCurrentObservation.nullable(),
|
|
13191
12958
|
})
|
|
13192
12959
|
.catchall(z.unknown());
|
|
13193
|
-
export const zReadPositioningSchedule = z
|
|
13194
|
-
.object({
|
|
13195
|
-
enabled: z.boolean(),
|
|
13196
|
-
intervalSeconds: z.int().gte(60).lte(604800),
|
|
13197
|
-
})
|
|
13198
|
-
.catchall(z.unknown());
|
|
13199
|
-
export const zPositioningView = z
|
|
13200
|
-
.object({
|
|
13201
|
-
deviceId: z.string(),
|
|
13202
|
-
version: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
13203
|
-
schedule: zReadPositioningSchedule,
|
|
13204
|
-
nextDueAt: z.iso.datetime({ offset: true }).nullable(),
|
|
13205
|
-
requestId: z
|
|
13206
|
-
.int()
|
|
13207
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
13208
|
-
.max(4294967295, {
|
|
13209
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
13210
|
-
})
|
|
13211
|
-
.nullable(),
|
|
13212
|
-
status: z.string(),
|
|
13213
|
-
requestedAt: z.iso.datetime({ offset: true }).nullable(),
|
|
13214
|
-
expiresAt: z.iso.datetime({ offset: true }).nullable(),
|
|
13215
|
-
})
|
|
13216
|
-
.catchall(z.unknown());
|
|
13217
12960
|
export const zSetTrackerSubscriptionBody = zAllocationChange;
|
|
13218
12961
|
export const zSetTrackerSubscriptionPath = z.object({
|
|
13219
12962
|
id: z.string(),
|
|
@@ -13260,29 +13003,6 @@ export const zLookupTrackerQuery = z.object({
|
|
|
13260
13003
|
* OK
|
|
13261
13004
|
*/
|
|
13262
13005
|
export const zLookupTrackerResponse = zTrackerLookup;
|
|
13263
|
-
export const zGetTrackerPositioningPath = z.object({
|
|
13264
|
-
id: z.string(),
|
|
13265
|
-
});
|
|
13266
|
-
/**
|
|
13267
|
-
* OK
|
|
13268
|
-
*/
|
|
13269
|
-
export const zGetTrackerPositioningResponse = zPositioningView;
|
|
13270
|
-
export const zSetTrackerPositioningScheduleBody = zPositioningSchedule;
|
|
13271
|
-
export const zSetTrackerPositioningSchedulePath = z.object({
|
|
13272
|
-
id: z.string(),
|
|
13273
|
-
});
|
|
13274
|
-
/**
|
|
13275
|
-
* OK
|
|
13276
|
-
*/
|
|
13277
|
-
export const zSetTrackerPositioningScheduleResponse = zPositioningView;
|
|
13278
|
-
export const zRequestTrackerPositionBody = zPositionRequest;
|
|
13279
|
-
export const zRequestTrackerPositionPath = z.object({
|
|
13280
|
-
id: z.string(),
|
|
13281
|
-
});
|
|
13282
|
-
/**
|
|
13283
|
-
* Accepted
|
|
13284
|
-
*/
|
|
13285
|
-
export const zRequestTrackerPositionResponse = zPositioningView;
|
|
13286
13006
|
export const zGetTrackerPath = z.object({
|
|
13287
13007
|
id: z.string(),
|
|
13288
13008
|
});
|
|
@@ -13794,29 +13514,6 @@ export const zReadStaffTrackerObservationsPath = z.object({
|
|
|
13794
13514
|
* OK
|
|
13795
13515
|
*/
|
|
13796
13516
|
export const zReadStaffTrackerObservationsResponse = z.array(zObservationReading);
|
|
13797
|
-
export const zGetStaffTrackerPositioningPath = z.object({
|
|
13798
|
-
id: z.string(),
|
|
13799
|
-
});
|
|
13800
|
-
/**
|
|
13801
|
-
* OK
|
|
13802
|
-
*/
|
|
13803
|
-
export const zGetStaffTrackerPositioningResponse = zPositioningView;
|
|
13804
|
-
export const zSetStaffTrackerPositioningScheduleBody = zPositioningSchedule;
|
|
13805
|
-
export const zSetStaffTrackerPositioningSchedulePath = z.object({
|
|
13806
|
-
id: z.string(),
|
|
13807
|
-
});
|
|
13808
|
-
/**
|
|
13809
|
-
* OK
|
|
13810
|
-
*/
|
|
13811
|
-
export const zSetStaffTrackerPositioningScheduleResponse = zPositioningView;
|
|
13812
|
-
export const zRequestStaffTrackerPositionBody = zPositionRequest;
|
|
13813
|
-
export const zRequestStaffTrackerPositionPath = z.object({
|
|
13814
|
-
id: z.string(),
|
|
13815
|
-
});
|
|
13816
|
-
/**
|
|
13817
|
-
* Accepted
|
|
13818
|
-
*/
|
|
13819
|
-
export const zRequestStaffTrackerPositionResponse = zPositioningView;
|
|
13820
13517
|
export const zUploadStaffTrackerBatteryFirmwareBody = z.instanceof(Blob);
|
|
13821
13518
|
export const zUploadStaffTrackerBatteryFirmwarePath = z.object({
|
|
13822
13519
|
id: z.string(),
|