@bikefinder/sdk 0.3.0 → 0.5.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.
@@ -4,7 +4,6 @@ export const zActivityDurationsValue = z
4
4
  .object({
5
5
  rrc: z.int().gte(0).lte(9007199254740991),
6
6
  mqtt: z.int().gte(0).lte(9007199254740991),
7
- responseWindow: z.int().gte(0).lte(9007199254740991),
8
7
  psm: z.int().gte(0).lte(9007199254740991),
9
8
  esp: z.int().gte(0).lte(9007199254740991),
10
9
  wifiScan: z.int().gte(0).lte(9007199254740991),
@@ -26,12 +25,6 @@ export const zActivityEntriesValue = z
26
25
  .max(4294967295, {
27
26
  error: "Invalid value: Expected uint32 to be <= 4294967295",
28
27
  }),
29
- responseWindow: z
30
- .int()
31
- .min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
32
- .max(4294967295, {
33
- error: "Invalid value: Expected uint32 to be <= 4294967295",
34
- }),
35
28
  psm: z
36
29
  .int()
37
30
  .min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
@@ -361,17 +354,6 @@ export const zAwsCommandRequest = z.union([
361
354
  confirmed: z.literal(true),
362
355
  })
363
356
  .strict(),
364
- z
365
- .object({
366
- operationId: z.uuid(),
367
- expectedInventoryId: z.string(),
368
- command: z.enum(["stayOnline"]),
369
- arguments: z.tuple([z.int().gte(1).lte(43200)]),
370
- metrics: z.null().optional(),
371
- enrollmentUrl: z.null().optional(),
372
- confirmed: z.boolean().optional(),
373
- })
374
- .strict(),
375
357
  z
376
358
  .object({
377
359
  operationId: z.uuid(),
@@ -504,10 +486,7 @@ export const zAwsCommandRequest = z.union([
504
486
  z.literal(139),
505
487
  z.literal(140),
506
488
  z.literal(141),
507
- z.literal(142),
508
489
  z.literal(143),
509
- z.literal(144),
510
- z.literal(145),
511
490
  z.literal(146),
512
491
  z.literal(147),
513
492
  z.literal(148),
@@ -729,10 +708,7 @@ export const zAwsCommandRequest = z.union([
729
708
  z.literal(139),
730
709
  z.literal(140),
731
710
  z.literal(141),
732
- z.literal(142),
733
711
  z.literal(143),
734
- z.literal(144),
735
- z.literal(145),
736
712
  z.literal(146),
737
713
  z.literal(147),
738
714
  z.literal(148),
@@ -820,8 +796,22 @@ export const zAwsCommandRequest = z.union([
820
796
  .object({
821
797
  operationId: z.uuid(),
822
798
  expectedInventoryId: z.string(),
823
- command: z.enum(["requestGps"]),
824
- arguments: z.array(z.never()),
799
+ command: z.enum(["requestPosition"]),
800
+ arguments: z.tuple([
801
+ z.union([z.literal(0), z.literal(1)]),
802
+ z.int().gte(0).lte(4294967295),
803
+ ]),
804
+ metrics: z.null().optional(),
805
+ enrollmentUrl: z.null().optional(),
806
+ confirmed: z.boolean().optional(),
807
+ })
808
+ .strict(),
809
+ z
810
+ .object({
811
+ operationId: z.uuid(),
812
+ expectedInventoryId: z.string(),
813
+ command: z.enum(["enableDiagnostics"]),
814
+ arguments: z.tuple([z.int().gte(1).lte(43200)]),
825
815
  metrics: z.null().optional(),
826
816
  enrollmentUrl: z.null().optional(),
827
817
  confirmed: z.boolean().optional(),
@@ -913,20 +903,6 @@ export const zAwsFirmwareRequest = z
913
903
  releaseId: z.string(),
914
904
  })
915
905
  .strict();
916
- export const zAwsObservationSeries = z
917
- .object({
918
- definitionId: z
919
- .int()
920
- .min(0, { error: "Invalid value: Expected uint16 to be >= 0" })
921
- .max(65535, { error: "Invalid value: Expected uint16 to be <= 65535" }),
922
- subject: z.string().nullish(),
923
- })
924
- .strict();
925
- export const zAwsObservationSelection = z
926
- .object({
927
- series: z.array(zAwsObservationSeries).min(1).max(100),
928
- })
929
- .strict();
930
906
  export const zAwsSettingsCapabilities = z
931
907
  .object({
932
908
  modemTrace: z.boolean().nullish(),
@@ -1794,7 +1770,6 @@ export const zCommandDefinition = z
1794
1770
  "status",
1795
1771
  "reconcileSettings",
1796
1772
  "disconnect",
1797
- "stayOnline",
1798
1773
  "requestObservations",
1799
1774
  "sample",
1800
1775
  "cancel",
@@ -1807,7 +1782,8 @@ export const zCommandDefinition = z
1807
1782
  "listEnvironments",
1808
1783
  "updateBattery",
1809
1784
  "runBatteryCheck",
1810
- "requestGps",
1785
+ "requestPosition",
1786
+ "enableDiagnostics",
1811
1787
  ]),
1812
1788
  label: z.string(),
1813
1789
  description: z.string(),
@@ -2364,6 +2340,16 @@ export const zCurrentObservationDeviceHardwareVersionCurrent = z
2364
2340
  receivedAt: z.iso.datetime({ offset: true }),
2365
2341
  })
2366
2342
  .catchall(z.unknown());
2343
+ export const zCurrentObservationDiagnosticsRemainingSecondsCurrent = z
2344
+ .object({
2345
+ type: z.enum(["diagnostics.remainingSeconds"]),
2346
+ value: z.int().gte(0).lte(4294967295),
2347
+ deviceId: z.string(),
2348
+ sourceObservationId: z.string(),
2349
+ measuredAt: z.iso.datetime({ offset: true }),
2350
+ receivedAt: z.iso.datetime({ offset: true }),
2351
+ })
2352
+ .catchall(z.unknown());
2367
2353
  export const zCurrentObservationEventsLostCurrent = z
2368
2354
  .object({
2369
2355
  type: z.enum(["events.lost"]),
@@ -2605,16 +2591,6 @@ export const zCurrentObservationHealthModemFaultCountCurrent = z
2605
2591
  receivedAt: z.iso.datetime({ offset: true }),
2606
2592
  })
2607
2593
  .catchall(z.unknown());
2608
- export const zCurrentObservationHealthRemainingOnlineCurrent = z
2609
- .object({
2610
- type: z.enum(["health.remainingOnline"]),
2611
- value: z.int().gte(0).lte(4294967295),
2612
- deviceId: z.string(),
2613
- sourceObservationId: z.string(),
2614
- measuredAt: z.iso.datetime({ offset: true }),
2615
- receivedAt: z.iso.datetime({ offset: true }),
2616
- })
2617
- .catchall(z.unknown());
2618
2594
  export const zCurrentObservationHealthUptimeCurrent = z
2619
2595
  .object({
2620
2596
  type: z.enum(["health.uptime"]),
@@ -2944,17 +2920,8 @@ export const zCurrentObservationPowerActivitiesCurrent = z
2944
2920
  .object({
2945
2921
  type: z.enum(["power.activities"]),
2946
2922
  value: z
2947
- .array(z.enum([
2948
- "rrc",
2949
- "mqtt",
2950
- "responseWindow",
2951
- "psm",
2952
- "esp",
2953
- "wifiScan",
2954
- "bleScan",
2955
- "gnss",
2956
- ]))
2957
- .max(8),
2923
+ .array(z.enum(["rrc", "mqtt", "psm", "esp", "wifiScan", "bleScan", "gnss"]))
2924
+ .max(7),
2958
2925
  deviceId: z.string(),
2959
2926
  sourceObservationId: z.string(),
2960
2927
  measuredAt: z.iso.datetime({ offset: true }),
@@ -3071,16 +3038,6 @@ export const zCurrentObservationPowerPsmEntriesCurrent = z
3071
3038
  receivedAt: z.iso.datetime({ offset: true }),
3072
3039
  })
3073
3040
  .catchall(z.unknown());
3074
- export const zCurrentObservationPowerPsmFallbacksCurrent = z
3075
- .object({
3076
- type: z.enum(["power.psmFallbacks"]),
3077
- value: z.int().gte(0).lte(4294967295),
3078
- deviceId: z.string(),
3079
- sourceObservationId: z.string(),
3080
- measuredAt: z.iso.datetime({ offset: true }),
3081
- receivedAt: z.iso.datetime({ offset: true }),
3082
- })
3083
- .catchall(z.unknown());
3084
3041
  export const zCurrentObservationPowerPsmMsCurrent = z
3085
3042
  .object({
3086
3043
  type: z.enum(["power.psmMs"]),
@@ -3091,26 +3048,6 @@ export const zCurrentObservationPowerPsmMsCurrent = z
3091
3048
  receivedAt: z.iso.datetime({ offset: true }),
3092
3049
  })
3093
3050
  .catchall(z.unknown());
3094
- export const zCurrentObservationPowerResponseWindowEntriesCurrent = z
3095
- .object({
3096
- type: z.enum(["power.responseWindowEntries"]),
3097
- value: z.int().gte(0).lte(4294967295),
3098
- deviceId: z.string(),
3099
- sourceObservationId: z.string(),
3100
- measuredAt: z.iso.datetime({ offset: true }),
3101
- receivedAt: z.iso.datetime({ offset: true }),
3102
- })
3103
- .catchall(z.unknown());
3104
- export const zCurrentObservationPowerResponseWindowMsCurrent = z
3105
- .object({
3106
- type: z.enum(["power.responseWindowMs"]),
3107
- value: z.int().gte(0).lte(9007199254740991),
3108
- deviceId: z.string(),
3109
- sourceObservationId: z.string(),
3110
- measuredAt: z.iso.datetime({ offset: true }),
3111
- receivedAt: z.iso.datetime({ offset: true }),
3112
- })
3113
- .catchall(z.unknown());
3114
3051
  export const zCurrentObservationPowerRrcEntriesCurrent = z
3115
3052
  .object({
3116
3053
  type: z.enum(["power.rrcEntries"]),
@@ -3177,7 +3114,6 @@ export const zCurrentObservationWorkflowExecutionCurrent = z
3177
3114
  value: z
3178
3115
  .object({
3179
3116
  workflowVersion: z.int().gte(1).lte(65535),
3180
- mode: z.int().gte(0).lte(2),
3181
3117
  state: z.string(),
3182
3118
  owner: z.enum([
3183
3119
  "workflow",
@@ -3218,10 +3154,8 @@ export const zCurrentObservationWorkflowExecutionCurrent = z
3218
3154
  "capture",
3219
3155
  "mqttOpen",
3220
3156
  "publish",
3221
- "listen",
3222
3157
  "modemOnline",
3223
3158
  "modemEdrx",
3224
- "modemPsm",
3225
3159
  "modemOffline",
3226
3160
  "disconnectMqtt",
3227
3161
  "prepareConnection",
@@ -3267,7 +3201,6 @@ export const zDeviceObservationValuesActivityDurations = z
3267
3201
  .object({
3268
3202
  rrc: z.int().gte(0).lte(9007199254740991),
3269
3203
  mqtt: z.int().gte(0).lte(9007199254740991),
3270
- responseWindow: z.int().gte(0).lte(9007199254740991),
3271
3204
  psm: z.int().gte(0).lte(9007199254740991),
3272
3205
  esp: z.int().gte(0).lte(9007199254740991),
3273
3206
  wifiScan: z.int().gte(0).lte(9007199254740991),
@@ -3279,7 +3212,6 @@ export const zDeviceObservationValuesActivityEntries = z
3279
3212
  .object({
3280
3213
  rrc: z.int().gte(0).lte(4294967295),
3281
3214
  mqtt: z.int().gte(0).lte(4294967295),
3282
- responseWindow: z.int().gte(0).lte(4294967295),
3283
3215
  psm: z.int().gte(0).lte(4294967295),
3284
3216
  esp: z.int().gte(0).lte(4294967295),
3285
3217
  wifiScan: z.int().gte(0).lte(4294967295),
@@ -4401,7 +4333,6 @@ export const zDeviceObservationValuesRecoveryCounts = z
4401
4333
  espRecoveries: z.int().gte(0).lte(4294967295),
4402
4334
  wifiTimeouts: z.int().gte(0).lte(4294967295),
4403
4335
  bleTimeouts: z.int().gte(0).lte(4294967295),
4404
- psmFallbacks: z.int().gte(0).lte(4294967295),
4405
4336
  })
4406
4337
  .catchall(z.unknown());
4407
4338
  export const zCurrentObservationWorkCompletedCurrent = z
@@ -4418,7 +4349,6 @@ export const zCurrentObservationWorkCompletedCurrent = z
4418
4349
  activityEntries: zDeviceObservationValuesActivityEntries,
4419
4350
  recoveries: zDeviceObservationValuesRecoveryCounts,
4420
4351
  saturated: z.boolean(),
4421
- mode: z.int().gte(0).lte(2),
4422
4352
  })
4423
4353
  .catchall(z.unknown()),
4424
4354
  deviceId: z.string(),
@@ -4843,8 +4773,8 @@ export const zCurrentObservation = z.discriminatedUnion("type", [
4843
4773
  zCurrentObservationHealthModemFaultCountCurrent.extend({
4844
4774
  type: z.literal("health.modemFaultCount"),
4845
4775
  }),
4846
- zCurrentObservationHealthRemainingOnlineCurrent.extend({
4847
- type: z.literal("health.remainingOnline"),
4776
+ zCurrentObservationDiagnosticsRemainingSecondsCurrent.extend({
4777
+ type: z.literal("diagnostics.remainingSeconds"),
4848
4778
  }),
4849
4779
  zCurrentObservationHealthUptimeCurrent.extend({
4850
4780
  type: z.literal("health.uptime"),
@@ -5002,18 +4932,9 @@ export const zCurrentObservation = z.discriminatedUnion("type", [
5002
4932
  zCurrentObservationPowerPsmEntriesCurrent.extend({
5003
4933
  type: z.literal("power.psmEntries"),
5004
4934
  }),
5005
- zCurrentObservationPowerPsmFallbacksCurrent.extend({
5006
- type: z.literal("power.psmFallbacks"),
5007
- }),
5008
4935
  zCurrentObservationPowerPsmMsCurrent.extend({
5009
4936
  type: z.literal("power.psmMs"),
5010
4937
  }),
5011
- zCurrentObservationPowerResponseWindowEntriesCurrent.extend({
5012
- type: z.literal("power.responseWindowEntries"),
5013
- }),
5014
- zCurrentObservationPowerResponseWindowMsCurrent.extend({
5015
- type: z.literal("power.responseWindowMs"),
5016
- }),
5017
4938
  zCurrentObservationPowerRrcEntriesCurrent.extend({
5018
4939
  type: z.literal("power.rrcEntries"),
5019
4940
  }),
@@ -5499,7 +5420,7 @@ export const zDeviceObservationValues = z
5499
5420
  .optional(),
5500
5421
  "health.lastModemFault": zDeviceObservationValuesFault.optional(),
5501
5422
  "health.modemFaultCount": z.int().gte(0).lte(4294967295).optional(),
5502
- "health.remainingOnline": z.int().gte(0).lte(4294967295).optional(),
5423
+ "diagnostics.remainingSeconds": z.int().gte(0).lte(4294967295).optional(),
5503
5424
  "health.uptime": z.int().gte(0).lte(4294967295).optional(),
5504
5425
  "location.lookupCompleted": z
5505
5426
  .object({
@@ -5607,17 +5528,8 @@ export const zDeviceObservationValues = z
5607
5528
  .optional(),
5608
5529
  "position.wifiFix": zDeviceObservationValuesGeolocationFix.optional(),
5609
5530
  "power.activities": z
5610
- .array(z.enum([
5611
- "rrc",
5612
- "mqtt",
5613
- "responseWindow",
5614
- "psm",
5615
- "esp",
5616
- "wifiScan",
5617
- "bleScan",
5618
- "gnss",
5619
- ]))
5620
- .max(8)
5531
+ .array(z.enum(["rrc", "mqtt", "psm", "esp", "wifiScan", "bleScan", "gnss"]))
5532
+ .max(7)
5621
5533
  .optional(),
5622
5534
  "power.bleScanEntries": z.int().gte(0).lte(4294967295).optional(),
5623
5535
  "power.bleScanMs": z.int().gte(0).lte(9007199254740991).optional(),
@@ -5638,10 +5550,7 @@ export const zDeviceObservationValues = z
5638
5550
  "power.mqttEntries": z.int().gte(0).lte(4294967295).optional(),
5639
5551
  "power.mqttMs": z.int().gte(0).lte(9007199254740991).optional(),
5640
5552
  "power.psmEntries": z.int().gte(0).lte(4294967295).optional(),
5641
- "power.psmFallbacks": z.int().gte(0).lte(4294967295).optional(),
5642
5553
  "power.psmMs": z.int().gte(0).lte(9007199254740991).optional(),
5643
- "power.responseWindowEntries": z.int().gte(0).lte(4294967295).optional(),
5644
- "power.responseWindowMs": z.int().gte(0).lte(9007199254740991).optional(),
5645
5554
  "power.rrcEntries": z.int().gte(0).lte(4294967295).optional(),
5646
5555
  "power.rrcMs": z.int().gte(0).lte(9007199254740991).optional(),
5647
5556
  "power.wifiScanEntries": z.int().gte(0).lte(4294967295).optional(),
@@ -5675,14 +5584,12 @@ export const zDeviceObservationValues = z
5675
5584
  activityEntries: zDeviceObservationValuesActivityEntries,
5676
5585
  recoveries: zDeviceObservationValuesRecoveryCounts,
5677
5586
  saturated: z.boolean(),
5678
- mode: z.int().gte(0).lte(2),
5679
5587
  })
5680
5588
  .catchall(z.unknown())
5681
5589
  .optional(),
5682
5590
  "workflow.execution": z
5683
5591
  .object({
5684
5592
  workflowVersion: z.int().gte(1).lte(65535),
5685
- mode: z.int().gte(0).lte(2),
5686
5593
  state: z.string(),
5687
5594
  owner: z.enum([
5688
5595
  "workflow",
@@ -5723,10 +5630,8 @@ export const zDeviceObservationValues = z
5723
5630
  "capture",
5724
5631
  "mqttOpen",
5725
5632
  "publish",
5726
- "listen",
5727
5633
  "modemOnline",
5728
5634
  "modemEdrx",
5729
- "modemPsm",
5730
5635
  "modemOffline",
5731
5636
  "disconnectMqtt",
5732
5637
  "prepareConnection",
@@ -5877,16 +5782,8 @@ export const zDeviceSettings = z
5877
5782
  bleAdvertisingEnabled: z.boolean().optional(),
5878
5783
  bleAdvertisingRequiresExternalPower: z.boolean().optional(),
5879
5784
  bleAdvertisingIntervalUnits: z.int().gte(32).lte(16384).optional(),
5880
- mode: z.int().gte(0).lte(2).optional(),
5881
- poweredReportIntervalSeconds: z.int().gte(30).lte(86400).optional(),
5882
- mode0IdleSeconds: z.int().gte(60).lte(604800).optional(),
5883
- mode1IdleSeconds: z.int().gte(60).lte(604800).optional(),
5884
- mode2IdleSeconds: z.int().gte(10).lte(86400).optional(),
5885
- mode0MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
5886
- mode1MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
5887
- mode2MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
5888
- psmResidenceSeconds: z.int().gte(0).lte(86400).optional(),
5889
- commandListenSeconds: z.int().gte(0).lte(3600).optional(),
5785
+ connectedReportIntervalSeconds: z.int().gte(30).lte(86400).optional(),
5786
+ movementCooldownSeconds: z.int().gte(0).lte(86400).optional(),
5890
5787
  gnssSearchTimeoutSeconds: z.int().gte(1).lte(3600).optional(),
5891
5788
  edrxCycleMilliseconds: z
5892
5789
  .union([
@@ -5901,8 +5798,6 @@ export const zDeviceSettings = z
5901
5798
  z.literal(2621440),
5902
5799
  ])
5903
5800
  .optional(),
5904
- psmTauSeconds: z.int().gte(0).lte(35712000).optional(),
5905
- psmActiveSeconds: z.int().gte(0).lte(11160).optional(),
5906
5801
  automaticDiagnosticsPower: z.enum(["any", "external"]).optional(),
5907
5802
  chargingTerminationCurrentMa: z
5908
5803
  .union([z.literal(18), z.literal(37), z.literal(55)])
@@ -6317,52 +6212,6 @@ export const zHistoryPage = z
6317
6212
  nextCursor: z.string().nullable(),
6318
6213
  })
6319
6214
  .catchall(z.unknown());
6320
- export const zInsuranceAddress = z
6321
- .object({
6322
- line1: z.string(),
6323
- line2: z.string(),
6324
- town: z.string(),
6325
- postcode: z.string(),
6326
- })
6327
- .catchall(z.unknown());
6328
- export const zInsuranceCustomer = z
6329
- .object({
6330
- title: z.string(),
6331
- firstname: z.string(),
6332
- lastname: z.string(),
6333
- email: z.string(),
6334
- dob: z.string(),
6335
- phone: z.string(),
6336
- address: zInsuranceAddress,
6337
- })
6338
- .catchall(z.unknown());
6339
- export const zInsuranceCycle = z
6340
- .object({
6341
- value: z.number(),
6342
- })
6343
- .catchall(z.unknown());
6344
- export const zInsuranceDelivery = z
6345
- .object({
6346
- status: z.string(),
6347
- schedule: z.string(),
6348
- customer: zInsuranceCustomer,
6349
- })
6350
- .catchall(z.unknown());
6351
- export const zInsurancePolicy = z
6352
- .object({
6353
- cycles: z.array(zInsuranceCycle),
6354
- startDate: z.string(),
6355
- bfSubscriptionId: z.string(),
6356
- bfReference: z.string(),
6357
- })
6358
- .catchall(z.unknown());
6359
- export const zInsurancePolicyRequest = z
6360
- .object({
6361
- customer: zInsuranceCustomer,
6362
- policy: zInsurancePolicy,
6363
- })
6364
- .catchall(z.unknown());
6365
- export const zInsuranceTier = z.union([z.string(), z.int()]);
6366
6215
  export const zInventoryMemberValue = z
6367
6216
  .object({
6368
6217
  slot: z
@@ -6544,6 +6393,11 @@ export const zBatteryCommunicationTimingValue = z
6544
6393
  interval: zBatteryCommunicationTimingValueInterval,
6545
6394
  })
6546
6395
  .catchall(z.unknown());
6396
+ export const zMovementAlertPreference = z
6397
+ .object({
6398
+ enabled: z.boolean(),
6399
+ })
6400
+ .strict();
6547
6401
  export const zMovementDetectedValue = z.record(z.string(), z.unknown());
6548
6402
  export const zNetworkEdrxGrantValueRat = z.enum(["lteM", "nbIot"]);
6549
6403
  export const zNetworkEdrxGrantValue = z
@@ -7554,6 +7408,17 @@ export const zObservationDeviceHardwareVersionObservation = z
7554
7408
  measuredAt: z.iso.datetime({ offset: true }),
7555
7409
  })
7556
7410
  .catchall(z.unknown());
7411
+ export const zObservationDiagnosticsRemainingSecondsObservation = z
7412
+ .object({
7413
+ type: z.enum(["diagnostics.remainingSeconds"]),
7414
+ value: z.int().gte(0).lte(4294967295),
7415
+ deviceId: z.string(),
7416
+ observationId: z.string(),
7417
+ receivedAt: z.iso.datetime({ offset: true }),
7418
+ ageMs: z.int().gte(0).lte(9007199254740991),
7419
+ measuredAt: z.iso.datetime({ offset: true }),
7420
+ })
7421
+ .catchall(z.unknown());
7557
7422
  export const zObservationEventsLostObservation = z
7558
7423
  .object({
7559
7424
  type: z.enum(["events.lost"]),
@@ -7933,17 +7798,6 @@ export const zObservationHealthModemFaultCountObservation = z
7933
7798
  measuredAt: z.iso.datetime({ offset: true }),
7934
7799
  })
7935
7800
  .catchall(z.unknown());
7936
- export const zObservationHealthRemainingOnlineObservation = z
7937
- .object({
7938
- type: z.enum(["health.remainingOnline"]),
7939
- value: z.int().gte(0).lte(4294967295),
7940
- deviceId: z.string(),
7941
- observationId: z.string(),
7942
- receivedAt: z.iso.datetime({ offset: true }),
7943
- ageMs: z.int().gte(0).lte(9007199254740991),
7944
- measuredAt: z.iso.datetime({ offset: true }),
7945
- })
7946
- .catchall(z.unknown());
7947
7801
  export const zObservationHealthUptimeObservation = z
7948
7802
  .object({
7949
7803
  type: z.enum(["health.uptime"]),
@@ -8413,17 +8267,8 @@ export const zObservationPowerActivitiesObservation = z
8413
8267
  .object({
8414
8268
  type: z.enum(["power.activities"]),
8415
8269
  value: z
8416
- .array(z.enum([
8417
- "rrc",
8418
- "mqtt",
8419
- "responseWindow",
8420
- "psm",
8421
- "esp",
8422
- "wifiScan",
8423
- "bleScan",
8424
- "gnss",
8425
- ]))
8426
- .max(8),
8270
+ .array(z.enum(["rrc", "mqtt", "psm", "esp", "wifiScan", "bleScan", "gnss"]))
8271
+ .max(7),
8427
8272
  deviceId: z.string(),
8428
8273
  observationId: z.string(),
8429
8274
  receivedAt: z.iso.datetime({ offset: true }),
@@ -8552,17 +8397,6 @@ export const zObservationPowerPsmEntriesObservation = z
8552
8397
  measuredAt: z.iso.datetime({ offset: true }),
8553
8398
  })
8554
8399
  .catchall(z.unknown());
8555
- export const zObservationPowerPsmFallbacksObservation = z
8556
- .object({
8557
- type: z.enum(["power.psmFallbacks"]),
8558
- value: z.int().gte(0).lte(4294967295),
8559
- deviceId: z.string(),
8560
- observationId: z.string(),
8561
- receivedAt: z.iso.datetime({ offset: true }),
8562
- ageMs: z.int().gte(0).lte(9007199254740991),
8563
- measuredAt: z.iso.datetime({ offset: true }),
8564
- })
8565
- .catchall(z.unknown());
8566
8400
  export const zObservationPowerPsmMsObservation = z
8567
8401
  .object({
8568
8402
  type: z.enum(["power.psmMs"]),
@@ -8574,28 +8408,6 @@ export const zObservationPowerPsmMsObservation = z
8574
8408
  measuredAt: z.iso.datetime({ offset: true }),
8575
8409
  })
8576
8410
  .catchall(z.unknown());
8577
- export const zObservationPowerResponseWindowEntriesObservation = z
8578
- .object({
8579
- type: z.enum(["power.responseWindowEntries"]),
8580
- value: z.int().gte(0).lte(4294967295),
8581
- deviceId: z.string(),
8582
- observationId: z.string(),
8583
- receivedAt: z.iso.datetime({ offset: true }),
8584
- ageMs: z.int().gte(0).lte(9007199254740991),
8585
- measuredAt: z.iso.datetime({ offset: true }),
8586
- })
8587
- .catchall(z.unknown());
8588
- export const zObservationPowerResponseWindowMsObservation = z
8589
- .object({
8590
- type: z.enum(["power.responseWindowMs"]),
8591
- value: z.int().gte(0).lte(9007199254740991),
8592
- deviceId: z.string(),
8593
- observationId: z.string(),
8594
- receivedAt: z.iso.datetime({ offset: true }),
8595
- ageMs: z.int().gte(0).lte(9007199254740991),
8596
- measuredAt: z.iso.datetime({ offset: true }),
8597
- })
8598
- .catchall(z.unknown());
8599
8411
  export const zObservationPowerRrcEntriesObservation = z
8600
8412
  .object({
8601
8413
  type: z.enum(["power.rrcEntries"]),
@@ -8695,6 +8507,20 @@ export const zObservationRadioWifiAccessPointsObservation = z
8695
8507
  measuredAt: z.iso.datetime({ offset: true }),
8696
8508
  })
8697
8509
  .catchall(z.unknown());
8510
+ export const zObservationSeries = z
8511
+ .object({
8512
+ definitionId: z
8513
+ .int()
8514
+ .min(0, { error: "Invalid value: Expected uint16 to be >= 0" })
8515
+ .max(65535, { error: "Invalid value: Expected uint16 to be <= 65535" }),
8516
+ subject: z.string().nullish(),
8517
+ })
8518
+ .strict();
8519
+ export const zAwsObservationSelection = z
8520
+ .object({
8521
+ series: z.array(zObservationSeries).min(1).max(100),
8522
+ })
8523
+ .strict();
8698
8524
  export const zObservationSystemBootedObservation = z
8699
8525
  .object({
8700
8526
  type: z.enum(["system.booted"]),
@@ -8736,7 +8562,6 @@ export const zObservationWorkCompletedObservation = z
8736
8562
  activityEntries: zDeviceObservationValuesActivityEntries,
8737
8563
  recoveries: zDeviceObservationValuesRecoveryCounts,
8738
8564
  saturated: z.boolean(),
8739
- mode: z.int().gte(0).lte(2),
8740
8565
  })
8741
8566
  .catchall(z.unknown()),
8742
8567
  deviceId: z.string(),
@@ -8752,7 +8577,6 @@ export const zObservationWorkflowExecutionObservation = z
8752
8577
  value: z
8753
8578
  .object({
8754
8579
  workflowVersion: z.int().gte(1).lte(65535),
8755
- mode: z.int().gte(0).lte(2),
8756
8580
  state: z.string(),
8757
8581
  owner: z.enum([
8758
8582
  "workflow",
@@ -8793,10 +8617,8 @@ export const zObservationWorkflowExecutionObservation = z
8793
8617
  "capture",
8794
8618
  "mqttOpen",
8795
8619
  "publish",
8796
- "listen",
8797
8620
  "modemOnline",
8798
8621
  "modemEdrx",
8799
- "modemPsm",
8800
8622
  "modemOffline",
8801
8623
  "disconnectMqtt",
8802
8624
  "prepareConnection",
@@ -9030,8 +8852,8 @@ export const zObservation = z.discriminatedUnion("type", [
9030
8852
  zObservationHealthModemFaultCountObservation.extend({
9031
8853
  type: z.literal("health.modemFaultCount"),
9032
8854
  }),
9033
- zObservationHealthRemainingOnlineObservation.extend({
9034
- type: z.literal("health.remainingOnline"),
8855
+ zObservationDiagnosticsRemainingSecondsObservation.extend({
8856
+ type: z.literal("diagnostics.remainingSeconds"),
9035
8857
  }),
9036
8858
  zObservationHealthUptimeObservation.extend({
9037
8859
  type: z.literal("health.uptime"),
@@ -9185,16 +9007,7 @@ export const zObservation = z.discriminatedUnion("type", [
9185
9007
  zObservationPowerPsmEntriesObservation.extend({
9186
9008
  type: z.literal("power.psmEntries"),
9187
9009
  }),
9188
- zObservationPowerPsmFallbacksObservation.extend({
9189
- type: z.literal("power.psmFallbacks"),
9190
- }),
9191
9010
  zObservationPowerPsmMsObservation.extend({ type: z.literal("power.psmMs") }),
9192
- zObservationPowerResponseWindowEntriesObservation.extend({
9193
- type: z.literal("power.responseWindowEntries"),
9194
- }),
9195
- zObservationPowerResponseWindowMsObservation.extend({
9196
- type: z.literal("power.responseWindowMs"),
9197
- }),
9198
9011
  zObservationPowerRrcEntriesObservation.extend({
9199
9012
  type: z.literal("power.rrcEntries"),
9200
9013
  }),
@@ -9524,72 +9337,6 @@ export const zPhotoPage = z
9524
9337
  nextCursor: z.string().nullable(),
9525
9338
  })
9526
9339
  .catchall(z.unknown());
9527
- export const zPolicyCode = z.union([z.string(), z.int()]);
9528
- export const zInsuranceContractData = z
9529
- .object({
9530
- id: z.string().nullish(),
9531
- country: z.string().nullish(),
9532
- iterator: z.int().gte(-9007199254740991).lte(9007199254740991).nullish(),
9533
- referenceNo: z.string().nullish(),
9534
- timestamp: z.iso.datetime({ offset: true }).nullish(),
9535
- cancelled: z.boolean().nullish(),
9536
- policyCode: zPolicyCode.nullish(),
9537
- tier: zInsuranceTier.nullish(),
9538
- delivery: zInsuranceDelivery.nullish(),
9539
- })
9540
- .catchall(z.unknown());
9541
- export const zInsuranceContractDocument = z
9542
- .object({
9543
- id: z.string(),
9544
- revision: z.string(),
9545
- createdAt: z.iso.datetime({ offset: true }),
9546
- updatedAt: z.iso.datetime({ offset: true }),
9547
- data: zInsuranceContractData,
9548
- })
9549
- .catchall(z.unknown());
9550
- export const zInsuranceContractPage = z
9551
- .object({
9552
- items: z.array(zInsuranceContractDocument),
9553
- nextCursor: z.string().nullable(),
9554
- })
9555
- .catchall(z.unknown());
9556
- export const zInsuranceResult = z
9557
- .object({
9558
- policyCode: zPolicyCode,
9559
- schedule: z.string(),
9560
- })
9561
- .catchall(z.unknown());
9562
- export const zInsuranceAttemptData = z
9563
- .object({
9564
- attemptId: z.string().nullish(),
9565
- referenceNo: z.string().nullish(),
9566
- contractId: z.string().nullish(),
9567
- country: z.string().nullish(),
9568
- iterator: z.int().gte(-9007199254740991).lte(9007199254740991).nullish(),
9569
- state: z.string().nullish(),
9570
- resolved: z.boolean().nullish(),
9571
- timestamp: z.iso.datetime({ offset: true }).nullish(),
9572
- request: zInsurancePolicyRequest.nullish(),
9573
- tier: zInsuranceTier.nullish(),
9574
- maxBikeValue: z.number().nullish(),
9575
- result: zInsuranceResult.nullish(),
9576
- })
9577
- .catchall(z.unknown());
9578
- export const zInsuranceAttemptDocument = z
9579
- .object({
9580
- id: z.string(),
9581
- revision: z.string(),
9582
- createdAt: z.iso.datetime({ offset: true }),
9583
- updatedAt: z.iso.datetime({ offset: true }),
9584
- data: zInsuranceAttemptData,
9585
- })
9586
- .catchall(z.unknown());
9587
- export const zInsuranceAttemptPage = z
9588
- .object({
9589
- items: z.array(zInsuranceAttemptDocument),
9590
- nextCursor: z.string().nullable(),
9591
- })
9592
- .catchall(z.unknown());
9593
9340
  export const zPositionGnssFixValue = z
9594
9341
  .object({
9595
9342
  coordinates: zCoordinatesValue,
@@ -9598,10 +9345,20 @@ export const zPositionGnssFixValue = z
9598
9345
  quality: zFixQualityValue.nullable(),
9599
9346
  })
9600
9347
  .catchall(z.unknown());
9348
+ export const zPositioningSchedule = z
9349
+ .object({
9350
+ enabled: z.boolean(),
9351
+ intervalSeconds: z.int().gte(60).lte(604800),
9352
+ })
9353
+ .strict();
9354
+ export const zPositionRequest = z
9355
+ .object({
9356
+ operationId: z.uuid(),
9357
+ })
9358
+ .strict();
9601
9359
  export const zPowerActivitiesValueItem = z.enum([
9602
9360
  "rrc",
9603
9361
  "mqtt",
9604
- "responseWindow",
9605
9362
  "psm",
9606
9363
  "esp",
9607
9364
  "wifiScan",
@@ -9690,12 +9447,6 @@ export const zRecoveryCountsValue = z
9690
9447
  .max(4294967295, {
9691
9448
  error: "Invalid value: Expected uint32 to be <= 4294967295",
9692
9449
  }),
9693
- psmFallbacks: z
9694
- .int()
9695
- .min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
9696
- .max(4294967295, {
9697
- error: "Invalid value: Expected uint32 to be <= 4294967295",
9698
- }),
9699
9450
  })
9700
9451
  .catchall(z.unknown());
9701
9452
  export const zRedeemInvitation = z
@@ -9741,11 +9492,6 @@ export const zReportFirmwareAttempt = z
9741
9492
  outcome: zCustomerFirmwareReportOutcome,
9742
9493
  })
9743
9494
  .strict();
9744
- export const zRequestedMode = z
9745
- .object({
9746
- mode: z.string().regex(/^[a-z][a-zA-Z0-9_-]{0,63}$/),
9747
- })
9748
- .strict();
9749
9495
  export const zResetContextValue = z
9750
9496
  .object({
9751
9497
  sequence: z
@@ -9854,7 +9600,7 @@ export const zCommandResponseValue = z
9854
9600
  }),
9855
9601
  phase: zCommandResponseValuePhase,
9856
9602
  result: z.int().gte(-9007199254740991).lte(9007199254740991),
9857
- remainingOnlineSeconds: z
9603
+ diagnosticsRemainingSeconds: z
9858
9604
  .int()
9859
9605
  .min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
9860
9606
  .max(4294967295, {
@@ -9892,7 +9638,6 @@ export const zAwsCommand = z
9892
9638
  "status",
9893
9639
  "reconcileSettings",
9894
9640
  "disconnect",
9895
- "stayOnline",
9896
9641
  "requestObservations",
9897
9642
  "sample",
9898
9643
  "cancel",
@@ -9905,7 +9650,8 @@ export const zAwsCommand = z
9905
9650
  "listEnvironments",
9906
9651
  "updateBattery",
9907
9652
  "runBatteryCheck",
9908
- "requestGps",
9653
+ "requestPosition",
9654
+ "enableDiagnostics",
9909
9655
  ]),
9910
9656
  arguments: z.array(z
9911
9657
  .int()
@@ -10020,7 +9766,6 @@ export const zStaffSubscriptionData = z
10020
9766
  managementUrl: z.string().nullish(),
10021
9767
  country: z.string().nullish(),
10022
9768
  isDemo: z.boolean().nullish(),
10023
- tier: zInsuranceTier.nullish(),
10024
9769
  type: z.string().nullish(),
10025
9770
  deleted: z.boolean().nullish(),
10026
9771
  })
@@ -10054,7 +9799,6 @@ export const zSubscriptionData = z
10054
9799
  managementUrl: z.string().nullish(),
10055
9800
  country: z.string().nullish(),
10056
9801
  isDemo: z.boolean().nullish(),
10057
- tier: zInsuranceTier.nullish(),
10058
9802
  type: z.string().nullish(),
10059
9803
  deleted: z.boolean().nullish(),
10060
9804
  })
@@ -10376,7 +10120,7 @@ export const zTrackerDataBikeInfo = z
10376
10120
  .catchall(z.unknown());
10377
10121
  export const zTrackerDataConfig = z
10378
10122
  .object({
10379
- mode: z.string().nullish(),
10123
+ movementAlerts: z.boolean().nullish(),
10380
10124
  isBlacklisted: z.boolean().nullish(),
10381
10125
  enableBlePinChange: z.boolean().nullish(),
10382
10126
  })
@@ -10421,7 +10165,6 @@ export const zTrackerDataSubscription = z
10421
10165
  isActive: z.boolean().nullish(),
10422
10166
  isDemo: z.boolean().nullish(),
10423
10167
  status: z.string().nullish(),
10424
- tier: zTextOrNumber.nullish(),
10425
10168
  country: z.string().nullish(),
10426
10169
  endTime: z.iso.datetime({ offset: true }).nullish(),
10427
10170
  timestamp: z.iso.datetime({ offset: true }).nullish(),
@@ -10476,11 +10219,6 @@ export const zTrackerLookup = z
10476
10219
  claimable: z.boolean(),
10477
10220
  })
10478
10221
  .catchall(z.unknown());
10479
- export const zTrackerModesSnapshot = z
10480
- .object({
10481
- modes: z.array(z.string()),
10482
- })
10483
- .catchall(z.unknown());
10484
10222
  export const zTrackerOperationStatistics = z
10485
10223
  .object({
10486
10224
  count: z.int().gte(-9007199254740991).lte(9007199254740991).nullish(),
@@ -10805,12 +10543,6 @@ export const zWorkCompletedValue = z
10805
10543
  activityEntries: zActivityEntriesValue,
10806
10544
  recoveries: zRecoveryCountsValue,
10807
10545
  saturated: z.boolean(),
10808
- mode: z
10809
- .int()
10810
- .min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
10811
- .max(4294967295, {
10812
- error: "Invalid value: Expected uint32 to be <= 4294967295",
10813
- }),
10814
10546
  })
10815
10547
  .catchall(z.unknown());
10816
10548
  export const zWorkExecutionData = z
@@ -10844,10 +10576,8 @@ export const zWorkflowExecutionValueOperation = z.enum([
10844
10576
  "capture",
10845
10577
  "mqttOpen",
10846
10578
  "publish",
10847
- "listen",
10848
10579
  "modemOnline",
10849
10580
  "modemEdrx",
10850
- "modemPsm",
10851
10581
  "modemOffline",
10852
10582
  "disconnectMqtt",
10853
10583
  "prepareConnection",
@@ -10883,13 +10613,7 @@ export const zWorkflowExecutionValueState = z.enum([
10883
10613
  "idle",
10884
10614
  "battery",
10885
10615
  "connect",
10886
- "cell",
10887
- "wifi",
10888
10616
  "publish",
10889
- "listen",
10890
- "gps",
10891
- "gpsPublish",
10892
- "rest",
10893
10617
  ]);
10894
10618
  export const zWorkflowExecutionValueWaitReason = z.enum([
10895
10619
  "resource",
@@ -10907,12 +10631,6 @@ export const zWorkflowExecutionValue = z
10907
10631
  .max(4294967295, {
10908
10632
  error: "Invalid value: Expected uint32 to be <= 4294967295",
10909
10633
  }),
10910
- mode: z
10911
- .int()
10912
- .min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
10913
- .max(4294967295, {
10914
- error: "Invalid value: Expected uint32 to be <= 4294967295",
10915
- }),
10916
10634
  state: zWorkflowExecutionValueState,
10917
10635
  owner: zWorkflowExecutionValueOwner,
10918
10636
  phase: zWorkflowExecutionValuePhase,
@@ -10929,21 +10647,6 @@ export const zWorkflowExecutionValue = z
10929
10647
  operation: zWorkflowExecutionValueOperation.nullable(),
10930
10648
  })
10931
10649
  .catchall(z.unknown());
10932
- export const zReadAwsObservationSeries = z
10933
- .object({
10934
- definitionId: z
10935
- .int()
10936
- .min(0, { error: "Invalid value: Expected uint16 to be >= 0" })
10937
- .max(65535, { error: "Invalid value: Expected uint16 to be <= 65535" }),
10938
- subject: z.string().nullish(),
10939
- })
10940
- .catchall(z.unknown());
10941
- export const zAwsObservationReading = z
10942
- .object({
10943
- series: zReadAwsObservationSeries,
10944
- observation: zCurrentObservation.nullable(),
10945
- })
10946
- .catchall(z.unknown());
10947
10650
  export const zReadCustomerFirmwareReportOutcome = z.enum([
10948
10651
  "transferFailed",
10949
10652
  "targetVersionObserved",
@@ -11015,16 +10718,8 @@ export const zReadDeviceSettings = z
11015
10718
  bleAdvertisingEnabled: z.boolean().optional(),
11016
10719
  bleAdvertisingRequiresExternalPower: z.boolean().optional(),
11017
10720
  bleAdvertisingIntervalUnits: z.int().gte(32).lte(16384).optional(),
11018
- mode: z.int().gte(0).lte(2).optional(),
11019
- poweredReportIntervalSeconds: z.int().gte(30).lte(86400).optional(),
11020
- mode0IdleSeconds: z.int().gte(60).lte(604800).optional(),
11021
- mode1IdleSeconds: z.int().gte(60).lte(604800).optional(),
11022
- mode2IdleSeconds: z.int().gte(10).lte(86400).optional(),
11023
- mode0MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
11024
- mode1MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
11025
- mode2MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
11026
- psmResidenceSeconds: z.int().gte(0).lte(86400).optional(),
11027
- commandListenSeconds: z.int().gte(0).lte(3600).optional(),
10721
+ connectedReportIntervalSeconds: z.int().gte(30).lte(86400).optional(),
10722
+ movementCooldownSeconds: z.int().gte(0).lte(86400).optional(),
11028
10723
  gnssSearchTimeoutSeconds: z.int().gte(1).lte(3600).optional(),
11029
10724
  edrxCycleMilliseconds: z
11030
10725
  .union([
@@ -11039,8 +10734,6 @@ export const zReadDeviceSettings = z
11039
10734
  z.literal(2621440),
11040
10735
  ])
11041
10736
  .optional(),
11042
- psmTauSeconds: z.int().gte(0).lte(35712000).optional(),
11043
- psmActiveSeconds: z.int().gte(0).lte(11160).optional(),
11044
10737
  automaticDiagnosticsPower: z.enum(["any", "external"]).optional(),
11045
10738
  chargingTerminationCurrentMa: z
11046
10739
  .union([z.literal(18), z.literal(37), z.literal(55)])
@@ -11086,6 +10779,45 @@ export const zAwsSettingsSnapshot = z
11086
10779
  readIssues: z.array(zAwsSettingsReadIssue),
11087
10780
  })
11088
10781
  .catchall(z.unknown());
10782
+ export const zReadObservationSeries = z
10783
+ .object({
10784
+ definitionId: z
10785
+ .int()
10786
+ .min(0, { error: "Invalid value: Expected uint16 to be >= 0" })
10787
+ .max(65535, { error: "Invalid value: Expected uint16 to be <= 65535" }),
10788
+ subject: z.string().nullish(),
10789
+ })
10790
+ .catchall(z.unknown());
10791
+ export const zAwsObservationReading = z
10792
+ .object({
10793
+ series: zReadObservationSeries,
10794
+ observation: zCurrentObservation.nullable(),
10795
+ })
10796
+ .catchall(z.unknown());
10797
+ export const zReadPositioningSchedule = z
10798
+ .object({
10799
+ enabled: z.boolean(),
10800
+ intervalSeconds: z.int().gte(60).lte(604800),
10801
+ })
10802
+ .catchall(z.unknown());
10803
+ export const zPositioningView = z
10804
+ .object({
10805
+ deviceId: z.string(),
10806
+ version: z.int().gte(-9007199254740991).lte(9007199254740991),
10807
+ schedule: zReadPositioningSchedule,
10808
+ nextDueAt: z.iso.datetime({ offset: true }).nullable(),
10809
+ requestId: z
10810
+ .int()
10811
+ .min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
10812
+ .max(4294967295, {
10813
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
10814
+ })
10815
+ .nullable(),
10816
+ status: z.string(),
10817
+ requestedAt: z.iso.datetime({ offset: true }).nullable(),
10818
+ expiresAt: z.iso.datetime({ offset: true }).nullable(),
10819
+ })
10820
+ .catchall(z.unknown());
11089
10821
  export const zSetTrackerSubscriptionBody = zAllocationChange;
11090
10822
  export const zSetTrackerSubscriptionPath = z.object({
11091
10823
  id: z.string(),
@@ -11132,13 +10864,29 @@ export const zLookupTrackerQuery = z.object({
11132
10864
  * OK
11133
10865
  */
11134
10866
  export const zLookupTrackerResponse = zTrackerLookup;
11135
- export const zGetTrackerModesPath = z.object({
10867
+ export const zGetTrackerPositioningPath = z.object({
11136
10868
  id: z.string(),
11137
10869
  });
11138
10870
  /**
11139
10871
  * OK
11140
10872
  */
11141
- export const zGetTrackerModesResponse = zTrackerModesSnapshot;
10873
+ export const zGetTrackerPositioningResponse = zPositioningView;
10874
+ export const zSetTrackerPositioningScheduleBody = zPositioningSchedule;
10875
+ export const zSetTrackerPositioningSchedulePath = z.object({
10876
+ id: z.string(),
10877
+ });
10878
+ /**
10879
+ * OK
10880
+ */
10881
+ export const zSetTrackerPositioningScheduleResponse = zPositioningView;
10882
+ export const zRequestTrackerPositionBody = zPositionRequest;
10883
+ export const zRequestTrackerPositionPath = z.object({
10884
+ id: z.string(),
10885
+ });
10886
+ /**
10887
+ * Accepted
10888
+ */
10889
+ export const zRequestTrackerPositionResponse = zPositioningView;
11142
10890
  export const zGetTrackerPath = z.object({
11143
10891
  id: z.string(),
11144
10892
  });
@@ -11205,14 +10953,14 @@ export const zRedeemInvitationPath = z.object({
11205
10953
  * No Content
11206
10954
  */
11207
10955
  export const zRedeemInvitationResponse = z.void();
11208
- export const zSetRequestedModeBody = zRequestedMode;
11209
- export const zSetRequestedModePath = z.object({
10956
+ export const zSetMovementAlertsBody = zMovementAlertPreference;
10957
+ export const zSetMovementAlertsPath = z.object({
11210
10958
  id: z.string(),
11211
10959
  });
11212
10960
  /**
11213
10961
  * No Content
11214
10962
  */
11215
- export const zSetRequestedModeResponse = z.void();
10963
+ export const zSetMovementAlertsResponse = z.void();
11216
10964
  export const zReportBatteryBody = zBatteryObservation;
11217
10965
  export const zReportBatteryPath = z.object({
11218
10966
  id: z.string(),
@@ -11253,6 +11001,14 @@ export const zReportTheftPath = z.object({
11253
11001
  * OK
11254
11002
  */
11255
11003
  export const zReportTheftResponse = zResourceCreated;
11004
+ export const zSetStaffMovementAlertsBody = zMovementAlertPreference;
11005
+ export const zSetStaffMovementAlertsPath = z.object({
11006
+ id: z.string(),
11007
+ });
11008
+ /**
11009
+ * No Content
11010
+ */
11011
+ export const zSetStaffMovementAlertsResponse = z.void();
11256
11012
  export const zGetStaffTrackerCom4SimStatusPath = z.object({
11257
11013
  id: z.string(),
11258
11014
  });
@@ -11322,13 +11078,6 @@ export const zListStaffTrackersQuery = z.object({
11322
11078
  * OK
11323
11079
  */
11324
11080
  export const zListStaffTrackersResponse = zTrackerPage;
11325
- export const zGetStaffTrackerModesPath = z.object({
11326
- id: z.string(),
11327
- });
11328
- /**
11329
- * OK
11330
- */
11331
- export const zGetStaffTrackerModesResponse = zTrackerModesSnapshot;
11332
11081
  export const zGetStaffTrackerPath = z.object({
11333
11082
  id: z.string(),
11334
11083
  });
@@ -11581,6 +11330,25 @@ export const zGetSubscriptionPath = z.object({
11581
11330
  * OK
11582
11331
  */
11583
11332
  export const zGetSubscriptionResponse = zSubscriptionDocument;
11333
+ export const zListStaffSubscriptionsQuery = z.object({
11334
+ accountId: z.string().optional(),
11335
+ wooId: z.int().gte(-9007199254740991).lte(9007199254740991).optional(),
11336
+ businessEmail: z.string().optional(),
11337
+ businessOnly: z.boolean().optional(),
11338
+ limit: z.int().gte(1).lte(100).optional(),
11339
+ cursor: z.string().optional(),
11340
+ });
11341
+ /**
11342
+ * OK
11343
+ */
11344
+ export const zListStaffSubscriptionsResponse = zStaffSubscriptionPage;
11345
+ export const zGetStaffSubscriptionPath = z.object({
11346
+ id: z.string(),
11347
+ });
11348
+ /**
11349
+ * OK
11350
+ */
11351
+ export const zGetStaffSubscriptionResponse = zStaffSubscriptionDocument;
11584
11352
  export const zGetStaffTrackerConnectivityPath = z.object({
11585
11353
  id: z.string(),
11586
11354
  });
@@ -11632,6 +11400,29 @@ export const zReadStaffTrackerObservationsQuery = z.object({
11632
11400
  * OK
11633
11401
  */
11634
11402
  export const zReadStaffTrackerObservationsResponse = z.array(zAwsObservationReading);
11403
+ export const zGetStaffTrackerPositioningPath = z.object({
11404
+ id: z.string(),
11405
+ });
11406
+ /**
11407
+ * OK
11408
+ */
11409
+ export const zGetStaffTrackerPositioningResponse = zPositioningView;
11410
+ export const zSetStaffTrackerPositioningScheduleBody = zPositioningSchedule;
11411
+ export const zSetStaffTrackerPositioningSchedulePath = z.object({
11412
+ id: z.string(),
11413
+ });
11414
+ /**
11415
+ * OK
11416
+ */
11417
+ export const zSetStaffTrackerPositioningScheduleResponse = zPositioningView;
11418
+ export const zRequestStaffTrackerPositionBody = zPositionRequest;
11419
+ export const zRequestStaffTrackerPositionPath = z.object({
11420
+ id: z.string(),
11421
+ });
11422
+ /**
11423
+ * Accepted
11424
+ */
11425
+ export const zRequestStaffTrackerPositionResponse = zPositioningView;
11635
11426
  export const zUploadStaffTrackerBatteryFirmwareBody = z.instanceof(Blob);
11636
11427
  export const zUploadStaffTrackerBatteryFirmwarePath = z.object({
11637
11428
  id: z.string(),
@@ -11728,56 +11519,3 @@ export const zCancelStaffTrackerFirmwareUpdatePath = z.object({
11728
11519
  * Accepted
11729
11520
  */
11730
11521
  export const zCancelStaffTrackerFirmwareUpdateResponse = zAwsFirmwareReceipt;
11731
- export const zListStaffSubscriptionsQuery = z.object({
11732
- accountId: z.string().optional(),
11733
- wooId: z.int().gte(-9007199254740991).lte(9007199254740991).optional(),
11734
- businessEmail: z.string().optional(),
11735
- businessOnly: z.boolean().optional(),
11736
- limit: z.int().gte(1).lte(100).optional(),
11737
- cursor: z.string().optional(),
11738
- });
11739
- /**
11740
- * OK
11741
- */
11742
- export const zListStaffSubscriptionsResponse = zStaffSubscriptionPage;
11743
- export const zGetStaffSubscriptionPath = z.object({
11744
- id: z.string(),
11745
- });
11746
- /**
11747
- * OK
11748
- */
11749
- export const zGetStaffSubscriptionResponse = zStaffSubscriptionDocument;
11750
- export const zListInsuranceContractsPath = z.object({
11751
- id: z.string(),
11752
- });
11753
- export const zListInsuranceContractsQuery = z.object({
11754
- provider: z.string().optional(),
11755
- limit: z.int().gte(1).lte(100).optional(),
11756
- cursor: z.string().optional(),
11757
- });
11758
- /**
11759
- * OK
11760
- */
11761
- export const zListInsuranceContractsResponse = zInsuranceContractPage;
11762
- export const zGetInsuranceContractPath = z.object({
11763
- id: z.string(),
11764
- contractId: z.string(),
11765
- });
11766
- export const zGetInsuranceContractQuery = z.object({
11767
- provider: z.string().optional(),
11768
- });
11769
- /**
11770
- * OK
11771
- */
11772
- export const zGetInsuranceContractResponse = zInsuranceContractDocument;
11773
- export const zListInsuranceAttemptsPath = z.object({
11774
- id: z.string(),
11775
- });
11776
- export const zListInsuranceAttemptsQuery = z.object({
11777
- limit: z.int().gte(1).lte(100).optional(),
11778
- cursor: z.string().optional(),
11779
- });
11780
- /**
11781
- * OK
11782
- */
11783
- export const zListInsuranceAttemptsResponse = zInsuranceAttemptPage;