@bikefinder/sdk 0.4.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.
- package/README.md +8 -1
- package/dist/device-schema.d.ts +27 -219
- package/dist/device-schema.js +20 -231
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +11 -6
- package/dist/generated/sdk.gen.js +150 -55
- package/dist/generated/types.gen.d.ts +294 -416
- package/dist/generated/zod.gen.d.ts +362 -654
- package/dist/generated/zod.gen.js +169 -282
- package/dist/index.d.ts +1 -1
- package/dist/workflow-schema.d.ts +2 -10
- package/dist/workflow-schema.js +2 -21
- package/openapi/api.json +895 -1166
- package/package.json +1 -1
|
@@ -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(["
|
|
824
|
-
arguments: z.
|
|
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(),
|
|
@@ -1780,7 +1770,6 @@ export const zCommandDefinition = z
|
|
|
1780
1770
|
"status",
|
|
1781
1771
|
"reconcileSettings",
|
|
1782
1772
|
"disconnect",
|
|
1783
|
-
"stayOnline",
|
|
1784
1773
|
"requestObservations",
|
|
1785
1774
|
"sample",
|
|
1786
1775
|
"cancel",
|
|
@@ -1793,7 +1782,8 @@ export const zCommandDefinition = z
|
|
|
1793
1782
|
"listEnvironments",
|
|
1794
1783
|
"updateBattery",
|
|
1795
1784
|
"runBatteryCheck",
|
|
1796
|
-
"
|
|
1785
|
+
"requestPosition",
|
|
1786
|
+
"enableDiagnostics",
|
|
1797
1787
|
]),
|
|
1798
1788
|
label: z.string(),
|
|
1799
1789
|
description: z.string(),
|
|
@@ -2350,6 +2340,16 @@ export const zCurrentObservationDeviceHardwareVersionCurrent = z
|
|
|
2350
2340
|
receivedAt: z.iso.datetime({ offset: true }),
|
|
2351
2341
|
})
|
|
2352
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());
|
|
2353
2353
|
export const zCurrentObservationEventsLostCurrent = z
|
|
2354
2354
|
.object({
|
|
2355
2355
|
type: z.enum(["events.lost"]),
|
|
@@ -2591,16 +2591,6 @@ export const zCurrentObservationHealthModemFaultCountCurrent = z
|
|
|
2591
2591
|
receivedAt: z.iso.datetime({ offset: true }),
|
|
2592
2592
|
})
|
|
2593
2593
|
.catchall(z.unknown());
|
|
2594
|
-
export const zCurrentObservationHealthRemainingOnlineCurrent = z
|
|
2595
|
-
.object({
|
|
2596
|
-
type: z.enum(["health.remainingOnline"]),
|
|
2597
|
-
value: z.int().gte(0).lte(4294967295),
|
|
2598
|
-
deviceId: z.string(),
|
|
2599
|
-
sourceObservationId: z.string(),
|
|
2600
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
2601
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
2602
|
-
})
|
|
2603
|
-
.catchall(z.unknown());
|
|
2604
2594
|
export const zCurrentObservationHealthUptimeCurrent = z
|
|
2605
2595
|
.object({
|
|
2606
2596
|
type: z.enum(["health.uptime"]),
|
|
@@ -2930,17 +2920,8 @@ export const zCurrentObservationPowerActivitiesCurrent = z
|
|
|
2930
2920
|
.object({
|
|
2931
2921
|
type: z.enum(["power.activities"]),
|
|
2932
2922
|
value: z
|
|
2933
|
-
.array(z.enum([
|
|
2934
|
-
|
|
2935
|
-
"mqtt",
|
|
2936
|
-
"responseWindow",
|
|
2937
|
-
"psm",
|
|
2938
|
-
"esp",
|
|
2939
|
-
"wifiScan",
|
|
2940
|
-
"bleScan",
|
|
2941
|
-
"gnss",
|
|
2942
|
-
]))
|
|
2943
|
-
.max(8),
|
|
2923
|
+
.array(z.enum(["rrc", "mqtt", "psm", "esp", "wifiScan", "bleScan", "gnss"]))
|
|
2924
|
+
.max(7),
|
|
2944
2925
|
deviceId: z.string(),
|
|
2945
2926
|
sourceObservationId: z.string(),
|
|
2946
2927
|
measuredAt: z.iso.datetime({ offset: true }),
|
|
@@ -3057,16 +3038,6 @@ export const zCurrentObservationPowerPsmEntriesCurrent = z
|
|
|
3057
3038
|
receivedAt: z.iso.datetime({ offset: true }),
|
|
3058
3039
|
})
|
|
3059
3040
|
.catchall(z.unknown());
|
|
3060
|
-
export const zCurrentObservationPowerPsmFallbacksCurrent = z
|
|
3061
|
-
.object({
|
|
3062
|
-
type: z.enum(["power.psmFallbacks"]),
|
|
3063
|
-
value: z.int().gte(0).lte(4294967295),
|
|
3064
|
-
deviceId: z.string(),
|
|
3065
|
-
sourceObservationId: z.string(),
|
|
3066
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
3067
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
3068
|
-
})
|
|
3069
|
-
.catchall(z.unknown());
|
|
3070
3041
|
export const zCurrentObservationPowerPsmMsCurrent = z
|
|
3071
3042
|
.object({
|
|
3072
3043
|
type: z.enum(["power.psmMs"]),
|
|
@@ -3077,26 +3048,6 @@ export const zCurrentObservationPowerPsmMsCurrent = z
|
|
|
3077
3048
|
receivedAt: z.iso.datetime({ offset: true }),
|
|
3078
3049
|
})
|
|
3079
3050
|
.catchall(z.unknown());
|
|
3080
|
-
export const zCurrentObservationPowerResponseWindowEntriesCurrent = z
|
|
3081
|
-
.object({
|
|
3082
|
-
type: z.enum(["power.responseWindowEntries"]),
|
|
3083
|
-
value: z.int().gte(0).lte(4294967295),
|
|
3084
|
-
deviceId: z.string(),
|
|
3085
|
-
sourceObservationId: z.string(),
|
|
3086
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
3087
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
3088
|
-
})
|
|
3089
|
-
.catchall(z.unknown());
|
|
3090
|
-
export const zCurrentObservationPowerResponseWindowMsCurrent = z
|
|
3091
|
-
.object({
|
|
3092
|
-
type: z.enum(["power.responseWindowMs"]),
|
|
3093
|
-
value: z.int().gte(0).lte(9007199254740991),
|
|
3094
|
-
deviceId: z.string(),
|
|
3095
|
-
sourceObservationId: z.string(),
|
|
3096
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
3097
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
3098
|
-
})
|
|
3099
|
-
.catchall(z.unknown());
|
|
3100
3051
|
export const zCurrentObservationPowerRrcEntriesCurrent = z
|
|
3101
3052
|
.object({
|
|
3102
3053
|
type: z.enum(["power.rrcEntries"]),
|
|
@@ -3163,7 +3114,6 @@ export const zCurrentObservationWorkflowExecutionCurrent = z
|
|
|
3163
3114
|
value: z
|
|
3164
3115
|
.object({
|
|
3165
3116
|
workflowVersion: z.int().gte(1).lte(65535),
|
|
3166
|
-
mode: z.int().gte(0).lte(2),
|
|
3167
3117
|
state: z.string(),
|
|
3168
3118
|
owner: z.enum([
|
|
3169
3119
|
"workflow",
|
|
@@ -3204,10 +3154,8 @@ export const zCurrentObservationWorkflowExecutionCurrent = z
|
|
|
3204
3154
|
"capture",
|
|
3205
3155
|
"mqttOpen",
|
|
3206
3156
|
"publish",
|
|
3207
|
-
"listen",
|
|
3208
3157
|
"modemOnline",
|
|
3209
3158
|
"modemEdrx",
|
|
3210
|
-
"modemPsm",
|
|
3211
3159
|
"modemOffline",
|
|
3212
3160
|
"disconnectMqtt",
|
|
3213
3161
|
"prepareConnection",
|
|
@@ -3253,7 +3201,6 @@ export const zDeviceObservationValuesActivityDurations = z
|
|
|
3253
3201
|
.object({
|
|
3254
3202
|
rrc: z.int().gte(0).lte(9007199254740991),
|
|
3255
3203
|
mqtt: z.int().gte(0).lte(9007199254740991),
|
|
3256
|
-
responseWindow: z.int().gte(0).lte(9007199254740991),
|
|
3257
3204
|
psm: z.int().gte(0).lte(9007199254740991),
|
|
3258
3205
|
esp: z.int().gte(0).lte(9007199254740991),
|
|
3259
3206
|
wifiScan: z.int().gte(0).lte(9007199254740991),
|
|
@@ -3265,7 +3212,6 @@ export const zDeviceObservationValuesActivityEntries = z
|
|
|
3265
3212
|
.object({
|
|
3266
3213
|
rrc: z.int().gte(0).lte(4294967295),
|
|
3267
3214
|
mqtt: z.int().gte(0).lte(4294967295),
|
|
3268
|
-
responseWindow: z.int().gte(0).lte(4294967295),
|
|
3269
3215
|
psm: z.int().gte(0).lte(4294967295),
|
|
3270
3216
|
esp: z.int().gte(0).lte(4294967295),
|
|
3271
3217
|
wifiScan: z.int().gte(0).lte(4294967295),
|
|
@@ -4387,7 +4333,6 @@ export const zDeviceObservationValuesRecoveryCounts = z
|
|
|
4387
4333
|
espRecoveries: z.int().gte(0).lte(4294967295),
|
|
4388
4334
|
wifiTimeouts: z.int().gte(0).lte(4294967295),
|
|
4389
4335
|
bleTimeouts: z.int().gte(0).lte(4294967295),
|
|
4390
|
-
psmFallbacks: z.int().gte(0).lte(4294967295),
|
|
4391
4336
|
})
|
|
4392
4337
|
.catchall(z.unknown());
|
|
4393
4338
|
export const zCurrentObservationWorkCompletedCurrent = z
|
|
@@ -4404,7 +4349,6 @@ export const zCurrentObservationWorkCompletedCurrent = z
|
|
|
4404
4349
|
activityEntries: zDeviceObservationValuesActivityEntries,
|
|
4405
4350
|
recoveries: zDeviceObservationValuesRecoveryCounts,
|
|
4406
4351
|
saturated: z.boolean(),
|
|
4407
|
-
mode: z.int().gte(0).lte(2),
|
|
4408
4352
|
})
|
|
4409
4353
|
.catchall(z.unknown()),
|
|
4410
4354
|
deviceId: z.string(),
|
|
@@ -4829,8 +4773,8 @@ export const zCurrentObservation = z.discriminatedUnion("type", [
|
|
|
4829
4773
|
zCurrentObservationHealthModemFaultCountCurrent.extend({
|
|
4830
4774
|
type: z.literal("health.modemFaultCount"),
|
|
4831
4775
|
}),
|
|
4832
|
-
|
|
4833
|
-
type: z.literal("
|
|
4776
|
+
zCurrentObservationDiagnosticsRemainingSecondsCurrent.extend({
|
|
4777
|
+
type: z.literal("diagnostics.remainingSeconds"),
|
|
4834
4778
|
}),
|
|
4835
4779
|
zCurrentObservationHealthUptimeCurrent.extend({
|
|
4836
4780
|
type: z.literal("health.uptime"),
|
|
@@ -4988,18 +4932,9 @@ export const zCurrentObservation = z.discriminatedUnion("type", [
|
|
|
4988
4932
|
zCurrentObservationPowerPsmEntriesCurrent.extend({
|
|
4989
4933
|
type: z.literal("power.psmEntries"),
|
|
4990
4934
|
}),
|
|
4991
|
-
zCurrentObservationPowerPsmFallbacksCurrent.extend({
|
|
4992
|
-
type: z.literal("power.psmFallbacks"),
|
|
4993
|
-
}),
|
|
4994
4935
|
zCurrentObservationPowerPsmMsCurrent.extend({
|
|
4995
4936
|
type: z.literal("power.psmMs"),
|
|
4996
4937
|
}),
|
|
4997
|
-
zCurrentObservationPowerResponseWindowEntriesCurrent.extend({
|
|
4998
|
-
type: z.literal("power.responseWindowEntries"),
|
|
4999
|
-
}),
|
|
5000
|
-
zCurrentObservationPowerResponseWindowMsCurrent.extend({
|
|
5001
|
-
type: z.literal("power.responseWindowMs"),
|
|
5002
|
-
}),
|
|
5003
4938
|
zCurrentObservationPowerRrcEntriesCurrent.extend({
|
|
5004
4939
|
type: z.literal("power.rrcEntries"),
|
|
5005
4940
|
}),
|
|
@@ -5485,7 +5420,7 @@ export const zDeviceObservationValues = z
|
|
|
5485
5420
|
.optional(),
|
|
5486
5421
|
"health.lastModemFault": zDeviceObservationValuesFault.optional(),
|
|
5487
5422
|
"health.modemFaultCount": z.int().gte(0).lte(4294967295).optional(),
|
|
5488
|
-
"
|
|
5423
|
+
"diagnostics.remainingSeconds": z.int().gte(0).lte(4294967295).optional(),
|
|
5489
5424
|
"health.uptime": z.int().gte(0).lte(4294967295).optional(),
|
|
5490
5425
|
"location.lookupCompleted": z
|
|
5491
5426
|
.object({
|
|
@@ -5593,17 +5528,8 @@ export const zDeviceObservationValues = z
|
|
|
5593
5528
|
.optional(),
|
|
5594
5529
|
"position.wifiFix": zDeviceObservationValuesGeolocationFix.optional(),
|
|
5595
5530
|
"power.activities": z
|
|
5596
|
-
.array(z.enum([
|
|
5597
|
-
|
|
5598
|
-
"mqtt",
|
|
5599
|
-
"responseWindow",
|
|
5600
|
-
"psm",
|
|
5601
|
-
"esp",
|
|
5602
|
-
"wifiScan",
|
|
5603
|
-
"bleScan",
|
|
5604
|
-
"gnss",
|
|
5605
|
-
]))
|
|
5606
|
-
.max(8)
|
|
5531
|
+
.array(z.enum(["rrc", "mqtt", "psm", "esp", "wifiScan", "bleScan", "gnss"]))
|
|
5532
|
+
.max(7)
|
|
5607
5533
|
.optional(),
|
|
5608
5534
|
"power.bleScanEntries": z.int().gte(0).lte(4294967295).optional(),
|
|
5609
5535
|
"power.bleScanMs": z.int().gte(0).lte(9007199254740991).optional(),
|
|
@@ -5624,10 +5550,7 @@ export const zDeviceObservationValues = z
|
|
|
5624
5550
|
"power.mqttEntries": z.int().gte(0).lte(4294967295).optional(),
|
|
5625
5551
|
"power.mqttMs": z.int().gte(0).lte(9007199254740991).optional(),
|
|
5626
5552
|
"power.psmEntries": z.int().gte(0).lte(4294967295).optional(),
|
|
5627
|
-
"power.psmFallbacks": z.int().gte(0).lte(4294967295).optional(),
|
|
5628
5553
|
"power.psmMs": z.int().gte(0).lte(9007199254740991).optional(),
|
|
5629
|
-
"power.responseWindowEntries": z.int().gte(0).lte(4294967295).optional(),
|
|
5630
|
-
"power.responseWindowMs": z.int().gte(0).lte(9007199254740991).optional(),
|
|
5631
5554
|
"power.rrcEntries": z.int().gte(0).lte(4294967295).optional(),
|
|
5632
5555
|
"power.rrcMs": z.int().gte(0).lte(9007199254740991).optional(),
|
|
5633
5556
|
"power.wifiScanEntries": z.int().gte(0).lte(4294967295).optional(),
|
|
@@ -5661,14 +5584,12 @@ export const zDeviceObservationValues = z
|
|
|
5661
5584
|
activityEntries: zDeviceObservationValuesActivityEntries,
|
|
5662
5585
|
recoveries: zDeviceObservationValuesRecoveryCounts,
|
|
5663
5586
|
saturated: z.boolean(),
|
|
5664
|
-
mode: z.int().gte(0).lte(2),
|
|
5665
5587
|
})
|
|
5666
5588
|
.catchall(z.unknown())
|
|
5667
5589
|
.optional(),
|
|
5668
5590
|
"workflow.execution": z
|
|
5669
5591
|
.object({
|
|
5670
5592
|
workflowVersion: z.int().gte(1).lte(65535),
|
|
5671
|
-
mode: z.int().gte(0).lte(2),
|
|
5672
5593
|
state: z.string(),
|
|
5673
5594
|
owner: z.enum([
|
|
5674
5595
|
"workflow",
|
|
@@ -5709,10 +5630,8 @@ export const zDeviceObservationValues = z
|
|
|
5709
5630
|
"capture",
|
|
5710
5631
|
"mqttOpen",
|
|
5711
5632
|
"publish",
|
|
5712
|
-
"listen",
|
|
5713
5633
|
"modemOnline",
|
|
5714
5634
|
"modemEdrx",
|
|
5715
|
-
"modemPsm",
|
|
5716
5635
|
"modemOffline",
|
|
5717
5636
|
"disconnectMqtt",
|
|
5718
5637
|
"prepareConnection",
|
|
@@ -5863,16 +5782,8 @@ export const zDeviceSettings = z
|
|
|
5863
5782
|
bleAdvertisingEnabled: z.boolean().optional(),
|
|
5864
5783
|
bleAdvertisingRequiresExternalPower: z.boolean().optional(),
|
|
5865
5784
|
bleAdvertisingIntervalUnits: z.int().gte(32).lte(16384).optional(),
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
mode0IdleSeconds: z.int().gte(60).lte(604800).optional(),
|
|
5869
|
-
mode1IdleSeconds: z.int().gte(60).lte(604800).optional(),
|
|
5870
|
-
mode2IdleSeconds: z.int().gte(10).lte(86400).optional(),
|
|
5871
|
-
mode0MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
5872
|
-
mode1MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
5873
|
-
mode2MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
5874
|
-
psmResidenceSeconds: z.int().gte(0).lte(86400).optional(),
|
|
5875
|
-
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(),
|
|
5876
5787
|
gnssSearchTimeoutSeconds: z.int().gte(1).lte(3600).optional(),
|
|
5877
5788
|
edrxCycleMilliseconds: z
|
|
5878
5789
|
.union([
|
|
@@ -5887,8 +5798,6 @@ export const zDeviceSettings = z
|
|
|
5887
5798
|
z.literal(2621440),
|
|
5888
5799
|
])
|
|
5889
5800
|
.optional(),
|
|
5890
|
-
psmTauSeconds: z.int().gte(0).lte(35712000).optional(),
|
|
5891
|
-
psmActiveSeconds: z.int().gte(0).lte(11160).optional(),
|
|
5892
5801
|
automaticDiagnosticsPower: z.enum(["any", "external"]).optional(),
|
|
5893
5802
|
chargingTerminationCurrentMa: z
|
|
5894
5803
|
.union([z.literal(18), z.literal(37), z.literal(55)])
|
|
@@ -6484,6 +6393,11 @@ export const zBatteryCommunicationTimingValue = z
|
|
|
6484
6393
|
interval: zBatteryCommunicationTimingValueInterval,
|
|
6485
6394
|
})
|
|
6486
6395
|
.catchall(z.unknown());
|
|
6396
|
+
export const zMovementAlertPreference = z
|
|
6397
|
+
.object({
|
|
6398
|
+
enabled: z.boolean(),
|
|
6399
|
+
})
|
|
6400
|
+
.strict();
|
|
6487
6401
|
export const zMovementDetectedValue = z.record(z.string(), z.unknown());
|
|
6488
6402
|
export const zNetworkEdrxGrantValueRat = z.enum(["lteM", "nbIot"]);
|
|
6489
6403
|
export const zNetworkEdrxGrantValue = z
|
|
@@ -7494,6 +7408,17 @@ export const zObservationDeviceHardwareVersionObservation = z
|
|
|
7494
7408
|
measuredAt: z.iso.datetime({ offset: true }),
|
|
7495
7409
|
})
|
|
7496
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());
|
|
7497
7422
|
export const zObservationEventsLostObservation = z
|
|
7498
7423
|
.object({
|
|
7499
7424
|
type: z.enum(["events.lost"]),
|
|
@@ -7873,17 +7798,6 @@ export const zObservationHealthModemFaultCountObservation = z
|
|
|
7873
7798
|
measuredAt: z.iso.datetime({ offset: true }),
|
|
7874
7799
|
})
|
|
7875
7800
|
.catchall(z.unknown());
|
|
7876
|
-
export const zObservationHealthRemainingOnlineObservation = z
|
|
7877
|
-
.object({
|
|
7878
|
-
type: z.enum(["health.remainingOnline"]),
|
|
7879
|
-
value: z.int().gte(0).lte(4294967295),
|
|
7880
|
-
deviceId: z.string(),
|
|
7881
|
-
observationId: z.string(),
|
|
7882
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
7883
|
-
ageMs: z.int().gte(0).lte(9007199254740991),
|
|
7884
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
7885
|
-
})
|
|
7886
|
-
.catchall(z.unknown());
|
|
7887
7801
|
export const zObservationHealthUptimeObservation = z
|
|
7888
7802
|
.object({
|
|
7889
7803
|
type: z.enum(["health.uptime"]),
|
|
@@ -8353,17 +8267,8 @@ export const zObservationPowerActivitiesObservation = z
|
|
|
8353
8267
|
.object({
|
|
8354
8268
|
type: z.enum(["power.activities"]),
|
|
8355
8269
|
value: z
|
|
8356
|
-
.array(z.enum([
|
|
8357
|
-
|
|
8358
|
-
"mqtt",
|
|
8359
|
-
"responseWindow",
|
|
8360
|
-
"psm",
|
|
8361
|
-
"esp",
|
|
8362
|
-
"wifiScan",
|
|
8363
|
-
"bleScan",
|
|
8364
|
-
"gnss",
|
|
8365
|
-
]))
|
|
8366
|
-
.max(8),
|
|
8270
|
+
.array(z.enum(["rrc", "mqtt", "psm", "esp", "wifiScan", "bleScan", "gnss"]))
|
|
8271
|
+
.max(7),
|
|
8367
8272
|
deviceId: z.string(),
|
|
8368
8273
|
observationId: z.string(),
|
|
8369
8274
|
receivedAt: z.iso.datetime({ offset: true }),
|
|
@@ -8492,17 +8397,6 @@ export const zObservationPowerPsmEntriesObservation = z
|
|
|
8492
8397
|
measuredAt: z.iso.datetime({ offset: true }),
|
|
8493
8398
|
})
|
|
8494
8399
|
.catchall(z.unknown());
|
|
8495
|
-
export const zObservationPowerPsmFallbacksObservation = z
|
|
8496
|
-
.object({
|
|
8497
|
-
type: z.enum(["power.psmFallbacks"]),
|
|
8498
|
-
value: z.int().gte(0).lte(4294967295),
|
|
8499
|
-
deviceId: z.string(),
|
|
8500
|
-
observationId: z.string(),
|
|
8501
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
8502
|
-
ageMs: z.int().gte(0).lte(9007199254740991),
|
|
8503
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
8504
|
-
})
|
|
8505
|
-
.catchall(z.unknown());
|
|
8506
8400
|
export const zObservationPowerPsmMsObservation = z
|
|
8507
8401
|
.object({
|
|
8508
8402
|
type: z.enum(["power.psmMs"]),
|
|
@@ -8514,28 +8408,6 @@ export const zObservationPowerPsmMsObservation = z
|
|
|
8514
8408
|
measuredAt: z.iso.datetime({ offset: true }),
|
|
8515
8409
|
})
|
|
8516
8410
|
.catchall(z.unknown());
|
|
8517
|
-
export const zObservationPowerResponseWindowEntriesObservation = z
|
|
8518
|
-
.object({
|
|
8519
|
-
type: z.enum(["power.responseWindowEntries"]),
|
|
8520
|
-
value: z.int().gte(0).lte(4294967295),
|
|
8521
|
-
deviceId: z.string(),
|
|
8522
|
-
observationId: z.string(),
|
|
8523
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
8524
|
-
ageMs: z.int().gte(0).lte(9007199254740991),
|
|
8525
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
8526
|
-
})
|
|
8527
|
-
.catchall(z.unknown());
|
|
8528
|
-
export const zObservationPowerResponseWindowMsObservation = z
|
|
8529
|
-
.object({
|
|
8530
|
-
type: z.enum(["power.responseWindowMs"]),
|
|
8531
|
-
value: z.int().gte(0).lte(9007199254740991),
|
|
8532
|
-
deviceId: z.string(),
|
|
8533
|
-
observationId: z.string(),
|
|
8534
|
-
receivedAt: z.iso.datetime({ offset: true }),
|
|
8535
|
-
ageMs: z.int().gte(0).lte(9007199254740991),
|
|
8536
|
-
measuredAt: z.iso.datetime({ offset: true }),
|
|
8537
|
-
})
|
|
8538
|
-
.catchall(z.unknown());
|
|
8539
8411
|
export const zObservationPowerRrcEntriesObservation = z
|
|
8540
8412
|
.object({
|
|
8541
8413
|
type: z.enum(["power.rrcEntries"]),
|
|
@@ -8690,7 +8562,6 @@ export const zObservationWorkCompletedObservation = z
|
|
|
8690
8562
|
activityEntries: zDeviceObservationValuesActivityEntries,
|
|
8691
8563
|
recoveries: zDeviceObservationValuesRecoveryCounts,
|
|
8692
8564
|
saturated: z.boolean(),
|
|
8693
|
-
mode: z.int().gte(0).lte(2),
|
|
8694
8565
|
})
|
|
8695
8566
|
.catchall(z.unknown()),
|
|
8696
8567
|
deviceId: z.string(),
|
|
@@ -8706,7 +8577,6 @@ export const zObservationWorkflowExecutionObservation = z
|
|
|
8706
8577
|
value: z
|
|
8707
8578
|
.object({
|
|
8708
8579
|
workflowVersion: z.int().gte(1).lte(65535),
|
|
8709
|
-
mode: z.int().gte(0).lte(2),
|
|
8710
8580
|
state: z.string(),
|
|
8711
8581
|
owner: z.enum([
|
|
8712
8582
|
"workflow",
|
|
@@ -8747,10 +8617,8 @@ export const zObservationWorkflowExecutionObservation = z
|
|
|
8747
8617
|
"capture",
|
|
8748
8618
|
"mqttOpen",
|
|
8749
8619
|
"publish",
|
|
8750
|
-
"listen",
|
|
8751
8620
|
"modemOnline",
|
|
8752
8621
|
"modemEdrx",
|
|
8753
|
-
"modemPsm",
|
|
8754
8622
|
"modemOffline",
|
|
8755
8623
|
"disconnectMqtt",
|
|
8756
8624
|
"prepareConnection",
|
|
@@ -8984,8 +8852,8 @@ export const zObservation = z.discriminatedUnion("type", [
|
|
|
8984
8852
|
zObservationHealthModemFaultCountObservation.extend({
|
|
8985
8853
|
type: z.literal("health.modemFaultCount"),
|
|
8986
8854
|
}),
|
|
8987
|
-
|
|
8988
|
-
type: z.literal("
|
|
8855
|
+
zObservationDiagnosticsRemainingSecondsObservation.extend({
|
|
8856
|
+
type: z.literal("diagnostics.remainingSeconds"),
|
|
8989
8857
|
}),
|
|
8990
8858
|
zObservationHealthUptimeObservation.extend({
|
|
8991
8859
|
type: z.literal("health.uptime"),
|
|
@@ -9139,16 +9007,7 @@ export const zObservation = z.discriminatedUnion("type", [
|
|
|
9139
9007
|
zObservationPowerPsmEntriesObservation.extend({
|
|
9140
9008
|
type: z.literal("power.psmEntries"),
|
|
9141
9009
|
}),
|
|
9142
|
-
zObservationPowerPsmFallbacksObservation.extend({
|
|
9143
|
-
type: z.literal("power.psmFallbacks"),
|
|
9144
|
-
}),
|
|
9145
9010
|
zObservationPowerPsmMsObservation.extend({ type: z.literal("power.psmMs") }),
|
|
9146
|
-
zObservationPowerResponseWindowEntriesObservation.extend({
|
|
9147
|
-
type: z.literal("power.responseWindowEntries"),
|
|
9148
|
-
}),
|
|
9149
|
-
zObservationPowerResponseWindowMsObservation.extend({
|
|
9150
|
-
type: z.literal("power.responseWindowMs"),
|
|
9151
|
-
}),
|
|
9152
9011
|
zObservationPowerRrcEntriesObservation.extend({
|
|
9153
9012
|
type: z.literal("power.rrcEntries"),
|
|
9154
9013
|
}),
|
|
@@ -9486,10 +9345,20 @@ export const zPositionGnssFixValue = z
|
|
|
9486
9345
|
quality: zFixQualityValue.nullable(),
|
|
9487
9346
|
})
|
|
9488
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();
|
|
9489
9359
|
export const zPowerActivitiesValueItem = z.enum([
|
|
9490
9360
|
"rrc",
|
|
9491
9361
|
"mqtt",
|
|
9492
|
-
"responseWindow",
|
|
9493
9362
|
"psm",
|
|
9494
9363
|
"esp",
|
|
9495
9364
|
"wifiScan",
|
|
@@ -9578,12 +9447,6 @@ export const zRecoveryCountsValue = z
|
|
|
9578
9447
|
.max(4294967295, {
|
|
9579
9448
|
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
9580
9449
|
}),
|
|
9581
|
-
psmFallbacks: z
|
|
9582
|
-
.int()
|
|
9583
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
9584
|
-
.max(4294967295, {
|
|
9585
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
9586
|
-
}),
|
|
9587
9450
|
})
|
|
9588
9451
|
.catchall(z.unknown());
|
|
9589
9452
|
export const zRedeemInvitation = z
|
|
@@ -9629,11 +9492,6 @@ export const zReportFirmwareAttempt = z
|
|
|
9629
9492
|
outcome: zCustomerFirmwareReportOutcome,
|
|
9630
9493
|
})
|
|
9631
9494
|
.strict();
|
|
9632
|
-
export const zRequestedMode = z
|
|
9633
|
-
.object({
|
|
9634
|
-
mode: z.string().regex(/^[a-z][a-zA-Z0-9_-]{0,63}$/),
|
|
9635
|
-
})
|
|
9636
|
-
.strict();
|
|
9637
9495
|
export const zResetContextValue = z
|
|
9638
9496
|
.object({
|
|
9639
9497
|
sequence: z
|
|
@@ -9742,7 +9600,7 @@ export const zCommandResponseValue = z
|
|
|
9742
9600
|
}),
|
|
9743
9601
|
phase: zCommandResponseValuePhase,
|
|
9744
9602
|
result: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
9745
|
-
|
|
9603
|
+
diagnosticsRemainingSeconds: z
|
|
9746
9604
|
.int()
|
|
9747
9605
|
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
9748
9606
|
.max(4294967295, {
|
|
@@ -9780,7 +9638,6 @@ export const zAwsCommand = z
|
|
|
9780
9638
|
"status",
|
|
9781
9639
|
"reconcileSettings",
|
|
9782
9640
|
"disconnect",
|
|
9783
|
-
"stayOnline",
|
|
9784
9641
|
"requestObservations",
|
|
9785
9642
|
"sample",
|
|
9786
9643
|
"cancel",
|
|
@@ -9793,7 +9650,8 @@ export const zAwsCommand = z
|
|
|
9793
9650
|
"listEnvironments",
|
|
9794
9651
|
"updateBattery",
|
|
9795
9652
|
"runBatteryCheck",
|
|
9796
|
-
"
|
|
9653
|
+
"requestPosition",
|
|
9654
|
+
"enableDiagnostics",
|
|
9797
9655
|
]),
|
|
9798
9656
|
arguments: z.array(z
|
|
9799
9657
|
.int()
|
|
@@ -10262,7 +10120,7 @@ export const zTrackerDataBikeInfo = z
|
|
|
10262
10120
|
.catchall(z.unknown());
|
|
10263
10121
|
export const zTrackerDataConfig = z
|
|
10264
10122
|
.object({
|
|
10265
|
-
|
|
10123
|
+
movementAlerts: z.boolean().nullish(),
|
|
10266
10124
|
isBlacklisted: z.boolean().nullish(),
|
|
10267
10125
|
enableBlePinChange: z.boolean().nullish(),
|
|
10268
10126
|
})
|
|
@@ -10361,11 +10219,6 @@ export const zTrackerLookup = z
|
|
|
10361
10219
|
claimable: z.boolean(),
|
|
10362
10220
|
})
|
|
10363
10221
|
.catchall(z.unknown());
|
|
10364
|
-
export const zTrackerModesSnapshot = z
|
|
10365
|
-
.object({
|
|
10366
|
-
modes: z.array(z.string()),
|
|
10367
|
-
})
|
|
10368
|
-
.catchall(z.unknown());
|
|
10369
10222
|
export const zTrackerOperationStatistics = z
|
|
10370
10223
|
.object({
|
|
10371
10224
|
count: z.int().gte(-9007199254740991).lte(9007199254740991).nullish(),
|
|
@@ -10690,12 +10543,6 @@ export const zWorkCompletedValue = z
|
|
|
10690
10543
|
activityEntries: zActivityEntriesValue,
|
|
10691
10544
|
recoveries: zRecoveryCountsValue,
|
|
10692
10545
|
saturated: z.boolean(),
|
|
10693
|
-
mode: z
|
|
10694
|
-
.int()
|
|
10695
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
10696
|
-
.max(4294967295, {
|
|
10697
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
10698
|
-
}),
|
|
10699
10546
|
})
|
|
10700
10547
|
.catchall(z.unknown());
|
|
10701
10548
|
export const zWorkExecutionData = z
|
|
@@ -10729,10 +10576,8 @@ export const zWorkflowExecutionValueOperation = z.enum([
|
|
|
10729
10576
|
"capture",
|
|
10730
10577
|
"mqttOpen",
|
|
10731
10578
|
"publish",
|
|
10732
|
-
"listen",
|
|
10733
10579
|
"modemOnline",
|
|
10734
10580
|
"modemEdrx",
|
|
10735
|
-
"modemPsm",
|
|
10736
10581
|
"modemOffline",
|
|
10737
10582
|
"disconnectMqtt",
|
|
10738
10583
|
"prepareConnection",
|
|
@@ -10768,13 +10613,7 @@ export const zWorkflowExecutionValueState = z.enum([
|
|
|
10768
10613
|
"idle",
|
|
10769
10614
|
"battery",
|
|
10770
10615
|
"connect",
|
|
10771
|
-
"cell",
|
|
10772
|
-
"wifi",
|
|
10773
10616
|
"publish",
|
|
10774
|
-
"listen",
|
|
10775
|
-
"gps",
|
|
10776
|
-
"gpsPublish",
|
|
10777
|
-
"rest",
|
|
10778
10617
|
]);
|
|
10779
10618
|
export const zWorkflowExecutionValueWaitReason = z.enum([
|
|
10780
10619
|
"resource",
|
|
@@ -10792,12 +10631,6 @@ export const zWorkflowExecutionValue = z
|
|
|
10792
10631
|
.max(4294967295, {
|
|
10793
10632
|
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
10794
10633
|
}),
|
|
10795
|
-
mode: z
|
|
10796
|
-
.int()
|
|
10797
|
-
.min(0, { error: "Invalid value: Expected uint32 to be >= 0" })
|
|
10798
|
-
.max(4294967295, {
|
|
10799
|
-
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
10800
|
-
}),
|
|
10801
10634
|
state: zWorkflowExecutionValueState,
|
|
10802
10635
|
owner: zWorkflowExecutionValueOwner,
|
|
10803
10636
|
phase: zWorkflowExecutionValuePhase,
|
|
@@ -10885,16 +10718,8 @@ export const zReadDeviceSettings = z
|
|
|
10885
10718
|
bleAdvertisingEnabled: z.boolean().optional(),
|
|
10886
10719
|
bleAdvertisingRequiresExternalPower: z.boolean().optional(),
|
|
10887
10720
|
bleAdvertisingIntervalUnits: z.int().gte(32).lte(16384).optional(),
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
mode0IdleSeconds: z.int().gte(60).lte(604800).optional(),
|
|
10891
|
-
mode1IdleSeconds: z.int().gte(60).lte(604800).optional(),
|
|
10892
|
-
mode2IdleSeconds: z.int().gte(10).lte(86400).optional(),
|
|
10893
|
-
mode0MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
10894
|
-
mode1MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
10895
|
-
mode2MinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
10896
|
-
psmResidenceSeconds: z.int().gte(0).lte(86400).optional(),
|
|
10897
|
-
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(),
|
|
10898
10723
|
gnssSearchTimeoutSeconds: z.int().gte(1).lte(3600).optional(),
|
|
10899
10724
|
edrxCycleMilliseconds: z
|
|
10900
10725
|
.union([
|
|
@@ -10909,8 +10734,6 @@ export const zReadDeviceSettings = z
|
|
|
10909
10734
|
z.literal(2621440),
|
|
10910
10735
|
])
|
|
10911
10736
|
.optional(),
|
|
10912
|
-
psmTauSeconds: z.int().gte(0).lte(35712000).optional(),
|
|
10913
|
-
psmActiveSeconds: z.int().gte(0).lte(11160).optional(),
|
|
10914
10737
|
automaticDiagnosticsPower: z.enum(["any", "external"]).optional(),
|
|
10915
10738
|
chargingTerminationCurrentMa: z
|
|
10916
10739
|
.union([z.literal(18), z.literal(37), z.literal(55)])
|
|
@@ -10971,6 +10794,30 @@ export const zAwsObservationReading = z
|
|
|
10971
10794
|
observation: zCurrentObservation.nullable(),
|
|
10972
10795
|
})
|
|
10973
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());
|
|
10974
10821
|
export const zSetTrackerSubscriptionBody = zAllocationChange;
|
|
10975
10822
|
export const zSetTrackerSubscriptionPath = z.object({
|
|
10976
10823
|
id: z.string(),
|
|
@@ -11017,13 +10864,29 @@ export const zLookupTrackerQuery = z.object({
|
|
|
11017
10864
|
* OK
|
|
11018
10865
|
*/
|
|
11019
10866
|
export const zLookupTrackerResponse = zTrackerLookup;
|
|
11020
|
-
export const
|
|
10867
|
+
export const zGetTrackerPositioningPath = z.object({
|
|
10868
|
+
id: z.string(),
|
|
10869
|
+
});
|
|
10870
|
+
/**
|
|
10871
|
+
* OK
|
|
10872
|
+
*/
|
|
10873
|
+
export const zGetTrackerPositioningResponse = zPositioningView;
|
|
10874
|
+
export const zSetTrackerPositioningScheduleBody = zPositioningSchedule;
|
|
10875
|
+
export const zSetTrackerPositioningSchedulePath = z.object({
|
|
11021
10876
|
id: z.string(),
|
|
11022
10877
|
});
|
|
11023
10878
|
/**
|
|
11024
10879
|
* OK
|
|
11025
10880
|
*/
|
|
11026
|
-
export const
|
|
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;
|
|
11027
10890
|
export const zGetTrackerPath = z.object({
|
|
11028
10891
|
id: z.string(),
|
|
11029
10892
|
});
|
|
@@ -11090,14 +10953,14 @@ export const zRedeemInvitationPath = z.object({
|
|
|
11090
10953
|
* No Content
|
|
11091
10954
|
*/
|
|
11092
10955
|
export const zRedeemInvitationResponse = z.void();
|
|
11093
|
-
export const
|
|
11094
|
-
export const
|
|
10956
|
+
export const zSetMovementAlertsBody = zMovementAlertPreference;
|
|
10957
|
+
export const zSetMovementAlertsPath = z.object({
|
|
11095
10958
|
id: z.string(),
|
|
11096
10959
|
});
|
|
11097
10960
|
/**
|
|
11098
10961
|
* No Content
|
|
11099
10962
|
*/
|
|
11100
|
-
export const
|
|
10963
|
+
export const zSetMovementAlertsResponse = z.void();
|
|
11101
10964
|
export const zReportBatteryBody = zBatteryObservation;
|
|
11102
10965
|
export const zReportBatteryPath = z.object({
|
|
11103
10966
|
id: z.string(),
|
|
@@ -11138,6 +11001,14 @@ export const zReportTheftPath = z.object({
|
|
|
11138
11001
|
* OK
|
|
11139
11002
|
*/
|
|
11140
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();
|
|
11141
11012
|
export const zGetStaffTrackerCom4SimStatusPath = z.object({
|
|
11142
11013
|
id: z.string(),
|
|
11143
11014
|
});
|
|
@@ -11207,13 +11078,6 @@ export const zListStaffTrackersQuery = z.object({
|
|
|
11207
11078
|
* OK
|
|
11208
11079
|
*/
|
|
11209
11080
|
export const zListStaffTrackersResponse = zTrackerPage;
|
|
11210
|
-
export const zGetStaffTrackerModesPath = z.object({
|
|
11211
|
-
id: z.string(),
|
|
11212
|
-
});
|
|
11213
|
-
/**
|
|
11214
|
-
* OK
|
|
11215
|
-
*/
|
|
11216
|
-
export const zGetStaffTrackerModesResponse = zTrackerModesSnapshot;
|
|
11217
11081
|
export const zGetStaffTrackerPath = z.object({
|
|
11218
11082
|
id: z.string(),
|
|
11219
11083
|
});
|
|
@@ -11466,6 +11330,25 @@ export const zGetSubscriptionPath = z.object({
|
|
|
11466
11330
|
* OK
|
|
11467
11331
|
*/
|
|
11468
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;
|
|
11469
11352
|
export const zGetStaffTrackerConnectivityPath = z.object({
|
|
11470
11353
|
id: z.string(),
|
|
11471
11354
|
});
|
|
@@ -11517,6 +11400,29 @@ export const zReadStaffTrackerObservationsQuery = z.object({
|
|
|
11517
11400
|
* OK
|
|
11518
11401
|
*/
|
|
11519
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;
|
|
11520
11426
|
export const zUploadStaffTrackerBatteryFirmwareBody = z.instanceof(Blob);
|
|
11521
11427
|
export const zUploadStaffTrackerBatteryFirmwarePath = z.object({
|
|
11522
11428
|
id: z.string(),
|
|
@@ -11613,22 +11519,3 @@ export const zCancelStaffTrackerFirmwareUpdatePath = z.object({
|
|
|
11613
11519
|
* Accepted
|
|
11614
11520
|
*/
|
|
11615
11521
|
export const zCancelStaffTrackerFirmwareUpdateResponse = zAwsFirmwareReceipt;
|
|
11616
|
-
export const zListStaffSubscriptionsQuery = z.object({
|
|
11617
|
-
accountId: z.string().optional(),
|
|
11618
|
-
wooId: z.int().gte(-9007199254740991).lte(9007199254740991).optional(),
|
|
11619
|
-
businessEmail: z.string().optional(),
|
|
11620
|
-
businessOnly: z.boolean().optional(),
|
|
11621
|
-
limit: z.int().gte(1).lte(100).optional(),
|
|
11622
|
-
cursor: z.string().optional(),
|
|
11623
|
-
});
|
|
11624
|
-
/**
|
|
11625
|
-
* OK
|
|
11626
|
-
*/
|
|
11627
|
-
export const zListStaffSubscriptionsResponse = zStaffSubscriptionPage;
|
|
11628
|
-
export const zGetStaffSubscriptionPath = z.object({
|
|
11629
|
-
id: z.string(),
|
|
11630
|
-
});
|
|
11631
|
-
/**
|
|
11632
|
-
* OK
|
|
11633
|
-
*/
|
|
11634
|
-
export const zGetStaffSubscriptionResponse = zStaffSubscriptionDocument;
|