@bikefinder/sdk 0.1.5 → 0.1.6
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 +11 -10
- package/dist/device-schema.d.ts +47 -53
- package/dist/device-schema.js +24 -30
- package/dist/generated/sdk.gen.js +1 -94
- package/dist/generated/types.gen.d.ts +48 -45
- package/dist/generated/zod.gen.d.ts +100 -210
- package/dist/generated/zod.gen.js +17 -28
- package/dist/index.d.ts +1 -1
- package/dist/workflow-schema.d.ts +3 -3
- package/dist/workflow-schema.js +4 -4
- package/openapi/api.json +26 -44
- package/package.json +1 -1
|
@@ -8645,14 +8645,14 @@ export declare const zDeviceSettings: z.ZodObject<{
|
|
|
8645
8645
|
bleAdvertisingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
8646
8646
|
bleAdvertisingRequiresExternalPower: z.ZodOptional<z.ZodBoolean>;
|
|
8647
8647
|
bleAdvertisingIntervalUnits: z.ZodOptional<z.ZodInt>;
|
|
8648
|
-
mode: z.ZodOptional<z.
|
|
8648
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
8649
8649
|
poweredReportIntervalSeconds: z.ZodOptional<z.ZodInt>;
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8650
|
+
standardIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
8651
|
+
securityIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
8652
|
+
trackingIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
8653
|
+
standardMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
8654
|
+
securityMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
8655
|
+
trackingMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
8656
8656
|
psmResidenceSeconds: z.ZodOptional<z.ZodInt>;
|
|
8657
8657
|
commandListenSeconds: z.ZodOptional<z.ZodInt>;
|
|
8658
8658
|
gnssSearchTimeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
@@ -8722,14 +8722,14 @@ export declare const zAwsSettingsWrite: z.ZodObject<{
|
|
|
8722
8722
|
bleAdvertisingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
8723
8723
|
bleAdvertisingRequiresExternalPower: z.ZodOptional<z.ZodBoolean>;
|
|
8724
8724
|
bleAdvertisingIntervalUnits: z.ZodOptional<z.ZodInt>;
|
|
8725
|
-
mode: z.ZodOptional<z.
|
|
8725
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
8726
8726
|
poweredReportIntervalSeconds: z.ZodOptional<z.ZodInt>;
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8727
|
+
standardIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
8728
|
+
securityIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
8729
|
+
trackingIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
8730
|
+
standardMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
8731
|
+
securityMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
8732
|
+
trackingMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
8733
8733
|
psmResidenceSeconds: z.ZodOptional<z.ZodInt>;
|
|
8734
8734
|
commandListenSeconds: z.ZodOptional<z.ZodInt>;
|
|
8735
8735
|
gnssSearchTimeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
@@ -9075,7 +9075,7 @@ export declare const zDeviceWorkCompletedValue: z.ZodObject<{
|
|
|
9075
9075
|
psmFallbacks: z.ZodInt;
|
|
9076
9076
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
9077
9077
|
saturated: z.ZodBoolean;
|
|
9078
|
-
mode: z.
|
|
9078
|
+
mode: z.ZodString;
|
|
9079
9079
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
9080
9080
|
export declare const zAwsWorkCompletedObservation: z.ZodObject<{
|
|
9081
9081
|
id: z.ZodString;
|
|
@@ -9128,7 +9128,7 @@ export declare const zAwsWorkCompletedObservation: z.ZodObject<{
|
|
|
9128
9128
|
psmFallbacks: z.ZodInt;
|
|
9129
9129
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
9130
9130
|
saturated: z.ZodBoolean;
|
|
9131
|
-
mode: z.
|
|
9131
|
+
mode: z.ZodString;
|
|
9132
9132
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
9133
9133
|
measuredAt: z.ZodISODateTime;
|
|
9134
9134
|
receivedAt: z.ZodISODateTime;
|
|
@@ -9187,7 +9187,7 @@ export declare const zAwsWorkCompletedReading: z.ZodUnion<readonly [z.ZodObject<
|
|
|
9187
9187
|
psmFallbacks: z.ZodInt;
|
|
9188
9188
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
9189
9189
|
saturated: z.ZodBoolean;
|
|
9190
|
-
mode: z.
|
|
9190
|
+
mode: z.ZodString;
|
|
9191
9191
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
9192
9192
|
measuredAt: z.ZodISODateTime;
|
|
9193
9193
|
receivedAt: z.ZodISODateTime;
|
|
@@ -9210,19 +9210,8 @@ export declare const zAwsWorkCompletedReading: z.ZodUnion<readonly [z.ZodObject<
|
|
|
9210
9210
|
*/
|
|
9211
9211
|
export declare const zDeviceWorkflowExecutionValue: z.ZodObject<{
|
|
9212
9212
|
workflowVersion: z.ZodInt;
|
|
9213
|
-
mode: z.
|
|
9214
|
-
state: z.
|
|
9215
|
-
publish: "publish";
|
|
9216
|
-
idle: "idle";
|
|
9217
|
-
battery: "battery";
|
|
9218
|
-
connect: "connect";
|
|
9219
|
-
cell: "cell";
|
|
9220
|
-
wifi: "wifi";
|
|
9221
|
-
listen: "listen";
|
|
9222
|
-
gps: "gps";
|
|
9223
|
-
gpsPublish: "gpsPublish";
|
|
9224
|
-
rest: "rest";
|
|
9225
|
-
}>;
|
|
9213
|
+
mode: z.ZodString;
|
|
9214
|
+
state: z.ZodString;
|
|
9226
9215
|
owner: z.ZodEnum<{
|
|
9227
9216
|
charging: "charging";
|
|
9228
9217
|
command: "command";
|
|
@@ -9279,19 +9268,8 @@ export declare const zAwsWorkflowExecutionObservation: z.ZodObject<{
|
|
|
9279
9268
|
subject: z.ZodNull;
|
|
9280
9269
|
value: z.ZodObject<{
|
|
9281
9270
|
workflowVersion: z.ZodInt;
|
|
9282
|
-
mode: z.
|
|
9283
|
-
state: z.
|
|
9284
|
-
publish: "publish";
|
|
9285
|
-
idle: "idle";
|
|
9286
|
-
battery: "battery";
|
|
9287
|
-
connect: "connect";
|
|
9288
|
-
cell: "cell";
|
|
9289
|
-
wifi: "wifi";
|
|
9290
|
-
listen: "listen";
|
|
9291
|
-
gps: "gps";
|
|
9292
|
-
gpsPublish: "gpsPublish";
|
|
9293
|
-
rest: "rest";
|
|
9294
|
-
}>;
|
|
9271
|
+
mode: z.ZodString;
|
|
9272
|
+
state: z.ZodString;
|
|
9295
9273
|
owner: z.ZodEnum<{
|
|
9296
9274
|
charging: "charging";
|
|
9297
9275
|
command: "command";
|
|
@@ -9354,19 +9332,8 @@ export declare const zAwsWorkflowExecutionReading: z.ZodUnion<readonly [z.ZodObj
|
|
|
9354
9332
|
observationId: z.ZodString;
|
|
9355
9333
|
value: z.ZodObject<{
|
|
9356
9334
|
workflowVersion: z.ZodInt;
|
|
9357
|
-
mode: z.
|
|
9358
|
-
state: z.
|
|
9359
|
-
publish: "publish";
|
|
9360
|
-
idle: "idle";
|
|
9361
|
-
battery: "battery";
|
|
9362
|
-
connect: "connect";
|
|
9363
|
-
cell: "cell";
|
|
9364
|
-
wifi: "wifi";
|
|
9365
|
-
listen: "listen";
|
|
9366
|
-
gps: "gps";
|
|
9367
|
-
gpsPublish: "gpsPublish";
|
|
9368
|
-
rest: "rest";
|
|
9369
|
-
}>;
|
|
9335
|
+
mode: z.ZodString;
|
|
9336
|
+
state: z.ZodString;
|
|
9370
9337
|
owner: z.ZodEnum<{
|
|
9371
9338
|
charging: "charging";
|
|
9372
9339
|
command: "command";
|
|
@@ -20450,7 +20417,7 @@ export declare const zAwsObservation: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
20450
20417
|
psmFallbacks: z.ZodInt;
|
|
20451
20418
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
20452
20419
|
saturated: z.ZodBoolean;
|
|
20453
|
-
mode: z.
|
|
20420
|
+
mode: z.ZodString;
|
|
20454
20421
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
20455
20422
|
measuredAt: z.ZodISODateTime;
|
|
20456
20423
|
receivedAt: z.ZodISODateTime;
|
|
@@ -20461,19 +20428,8 @@ export declare const zAwsObservation: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
20461
20428
|
subject: z.ZodNull;
|
|
20462
20429
|
value: z.ZodObject<{
|
|
20463
20430
|
workflowVersion: z.ZodInt;
|
|
20464
|
-
mode: z.
|
|
20465
|
-
state: z.
|
|
20466
|
-
publish: "publish";
|
|
20467
|
-
idle: "idle";
|
|
20468
|
-
battery: "battery";
|
|
20469
|
-
connect: "connect";
|
|
20470
|
-
cell: "cell";
|
|
20471
|
-
wifi: "wifi";
|
|
20472
|
-
listen: "listen";
|
|
20473
|
-
gps: "gps";
|
|
20474
|
-
gpsPublish: "gpsPublish";
|
|
20475
|
-
rest: "rest";
|
|
20476
|
-
}>;
|
|
20431
|
+
mode: z.ZodString;
|
|
20432
|
+
state: z.ZodString;
|
|
20477
20433
|
owner: z.ZodEnum<{
|
|
20478
20434
|
charging: "charging";
|
|
20479
20435
|
command: "command";
|
|
@@ -22783,7 +22739,7 @@ export declare const zAwsObservationPage: z.ZodObject<{
|
|
|
22783
22739
|
psmFallbacks: z.ZodInt;
|
|
22784
22740
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
22785
22741
|
saturated: z.ZodBoolean;
|
|
22786
|
-
mode: z.
|
|
22742
|
+
mode: z.ZodString;
|
|
22787
22743
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
22788
22744
|
measuredAt: z.ZodISODateTime;
|
|
22789
22745
|
receivedAt: z.ZodISODateTime;
|
|
@@ -22794,19 +22750,8 @@ export declare const zAwsObservationPage: z.ZodObject<{
|
|
|
22794
22750
|
subject: z.ZodNull;
|
|
22795
22751
|
value: z.ZodObject<{
|
|
22796
22752
|
workflowVersion: z.ZodInt;
|
|
22797
|
-
mode: z.
|
|
22798
|
-
state: z.
|
|
22799
|
-
publish: "publish";
|
|
22800
|
-
idle: "idle";
|
|
22801
|
-
battery: "battery";
|
|
22802
|
-
connect: "connect";
|
|
22803
|
-
cell: "cell";
|
|
22804
|
-
wifi: "wifi";
|
|
22805
|
-
listen: "listen";
|
|
22806
|
-
gps: "gps";
|
|
22807
|
-
gpsPublish: "gpsPublish";
|
|
22808
|
-
rest: "rest";
|
|
22809
|
-
}>;
|
|
22753
|
+
mode: z.ZodString;
|
|
22754
|
+
state: z.ZodString;
|
|
22810
22755
|
owner: z.ZodEnum<{
|
|
22811
22756
|
charging: "charging";
|
|
22812
22757
|
command: "command";
|
|
@@ -26799,7 +26744,7 @@ export declare const zAwsObservationReading: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
26799
26744
|
psmFallbacks: z.ZodInt;
|
|
26800
26745
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
26801
26746
|
saturated: z.ZodBoolean;
|
|
26802
|
-
mode: z.
|
|
26747
|
+
mode: z.ZodString;
|
|
26803
26748
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
26804
26749
|
measuredAt: z.ZodISODateTime;
|
|
26805
26750
|
receivedAt: z.ZodISODateTime;
|
|
@@ -26822,19 +26767,8 @@ export declare const zAwsObservationReading: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
26822
26767
|
observationId: z.ZodString;
|
|
26823
26768
|
value: z.ZodObject<{
|
|
26824
26769
|
workflowVersion: z.ZodInt;
|
|
26825
|
-
mode: z.
|
|
26826
|
-
state: z.
|
|
26827
|
-
publish: "publish";
|
|
26828
|
-
idle: "idle";
|
|
26829
|
-
battery: "battery";
|
|
26830
|
-
connect: "connect";
|
|
26831
|
-
cell: "cell";
|
|
26832
|
-
wifi: "wifi";
|
|
26833
|
-
listen: "listen";
|
|
26834
|
-
gps: "gps";
|
|
26835
|
-
gpsPublish: "gpsPublish";
|
|
26836
|
-
rest: "rest";
|
|
26837
|
-
}>;
|
|
26770
|
+
mode: z.ZodString;
|
|
26771
|
+
state: z.ZodString;
|
|
26838
26772
|
owner: z.ZodEnum<{
|
|
26839
26773
|
charging: "charging";
|
|
26840
26774
|
command: "command";
|
|
@@ -28242,23 +28176,12 @@ export declare const zDeviceObservationValues: z.ZodObject<{
|
|
|
28242
28176
|
psmFallbacks: z.ZodInt;
|
|
28243
28177
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
28244
28178
|
saturated: z.ZodBoolean;
|
|
28245
|
-
mode: z.
|
|
28179
|
+
mode: z.ZodString;
|
|
28246
28180
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
28247
28181
|
"workflow.execution": z.ZodOptional<z.ZodObject<{
|
|
28248
28182
|
workflowVersion: z.ZodInt;
|
|
28249
|
-
mode: z.
|
|
28250
|
-
state: z.
|
|
28251
|
-
publish: "publish";
|
|
28252
|
-
idle: "idle";
|
|
28253
|
-
battery: "battery";
|
|
28254
|
-
connect: "connect";
|
|
28255
|
-
cell: "cell";
|
|
28256
|
-
wifi: "wifi";
|
|
28257
|
-
listen: "listen";
|
|
28258
|
-
gps: "gps";
|
|
28259
|
-
gpsPublish: "gpsPublish";
|
|
28260
|
-
rest: "rest";
|
|
28261
|
-
}>;
|
|
28183
|
+
mode: z.ZodString;
|
|
28184
|
+
state: z.ZodString;
|
|
28262
28185
|
owner: z.ZodEnum<{
|
|
28263
28186
|
charging: "charging";
|
|
28264
28187
|
command: "command";
|
|
@@ -28425,14 +28348,14 @@ export declare const zReadDeviceSettings: z.ZodObject<{
|
|
|
28425
28348
|
bleAdvertisingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
28426
28349
|
bleAdvertisingRequiresExternalPower: z.ZodOptional<z.ZodBoolean>;
|
|
28427
28350
|
bleAdvertisingIntervalUnits: z.ZodOptional<z.ZodInt>;
|
|
28428
|
-
mode: z.ZodOptional<z.
|
|
28351
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
28429
28352
|
poweredReportIntervalSeconds: z.ZodOptional<z.ZodInt>;
|
|
28430
|
-
|
|
28431
|
-
|
|
28432
|
-
|
|
28433
|
-
|
|
28434
|
-
|
|
28435
|
-
|
|
28353
|
+
standardIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
28354
|
+
securityIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
28355
|
+
trackingIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
28356
|
+
standardMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
28357
|
+
securityMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
28358
|
+
trackingMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
28436
28359
|
psmResidenceSeconds: z.ZodOptional<z.ZodInt>;
|
|
28437
28360
|
commandListenSeconds: z.ZodOptional<z.ZodInt>;
|
|
28438
28361
|
gnssSearchTimeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
@@ -28503,14 +28426,14 @@ export declare const zAwsSettingsSnapshot: z.ZodObject<{
|
|
|
28503
28426
|
bleAdvertisingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
28504
28427
|
bleAdvertisingRequiresExternalPower: z.ZodOptional<z.ZodBoolean>;
|
|
28505
28428
|
bleAdvertisingIntervalUnits: z.ZodOptional<z.ZodInt>;
|
|
28506
|
-
mode: z.ZodOptional<z.
|
|
28429
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
28507
28430
|
poweredReportIntervalSeconds: z.ZodOptional<z.ZodInt>;
|
|
28508
|
-
|
|
28509
|
-
|
|
28510
|
-
|
|
28511
|
-
|
|
28512
|
-
|
|
28513
|
-
|
|
28431
|
+
standardIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
28432
|
+
securityIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
28433
|
+
trackingIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
28434
|
+
standardMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
28435
|
+
securityMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
28436
|
+
trackingMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
28514
28437
|
psmResidenceSeconds: z.ZodOptional<z.ZodInt>;
|
|
28515
28438
|
commandListenSeconds: z.ZodOptional<z.ZodInt>;
|
|
28516
28439
|
gnssSearchTimeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
@@ -28578,14 +28501,14 @@ export declare const zAwsSettingsSnapshot: z.ZodObject<{
|
|
|
28578
28501
|
bleAdvertisingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
28579
28502
|
bleAdvertisingRequiresExternalPower: z.ZodOptional<z.ZodBoolean>;
|
|
28580
28503
|
bleAdvertisingIntervalUnits: z.ZodOptional<z.ZodInt>;
|
|
28581
|
-
mode: z.ZodOptional<z.
|
|
28504
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
28582
28505
|
poweredReportIntervalSeconds: z.ZodOptional<z.ZodInt>;
|
|
28583
|
-
|
|
28584
|
-
|
|
28585
|
-
|
|
28586
|
-
|
|
28587
|
-
|
|
28588
|
-
|
|
28506
|
+
standardIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
28507
|
+
securityIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
28508
|
+
trackingIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
28509
|
+
standardMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
28510
|
+
securityMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
28511
|
+
trackingMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
28589
28512
|
psmResidenceSeconds: z.ZodOptional<z.ZodInt>;
|
|
28590
28513
|
commandListenSeconds: z.ZodOptional<z.ZodInt>;
|
|
28591
28514
|
gnssSearchTimeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
@@ -34770,7 +34693,7 @@ export declare const zListAwsDeviceObservationsResponse: z.ZodObject<{
|
|
|
34770
34693
|
psmFallbacks: z.ZodInt;
|
|
34771
34694
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
34772
34695
|
saturated: z.ZodBoolean;
|
|
34773
|
-
mode: z.
|
|
34696
|
+
mode: z.ZodString;
|
|
34774
34697
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
34775
34698
|
measuredAt: z.ZodISODateTime;
|
|
34776
34699
|
receivedAt: z.ZodISODateTime;
|
|
@@ -34781,19 +34704,8 @@ export declare const zListAwsDeviceObservationsResponse: z.ZodObject<{
|
|
|
34781
34704
|
subject: z.ZodNull;
|
|
34782
34705
|
value: z.ZodObject<{
|
|
34783
34706
|
workflowVersion: z.ZodInt;
|
|
34784
|
-
mode: z.
|
|
34785
|
-
state: z.
|
|
34786
|
-
publish: "publish";
|
|
34787
|
-
idle: "idle";
|
|
34788
|
-
battery: "battery";
|
|
34789
|
-
connect: "connect";
|
|
34790
|
-
cell: "cell";
|
|
34791
|
-
wifi: "wifi";
|
|
34792
|
-
listen: "listen";
|
|
34793
|
-
gps: "gps";
|
|
34794
|
-
gpsPublish: "gpsPublish";
|
|
34795
|
-
rest: "rest";
|
|
34796
|
-
}>;
|
|
34707
|
+
mode: z.ZodString;
|
|
34708
|
+
state: z.ZodString;
|
|
34797
34709
|
owner: z.ZodEnum<{
|
|
34798
34710
|
charging: "charging";
|
|
34799
34711
|
command: "command";
|
|
@@ -37111,7 +37023,7 @@ export declare const zGetAwsDeviceObservationResponse: z.ZodUnion<readonly [z.Zo
|
|
|
37111
37023
|
psmFallbacks: z.ZodInt;
|
|
37112
37024
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
37113
37025
|
saturated: z.ZodBoolean;
|
|
37114
|
-
mode: z.
|
|
37026
|
+
mode: z.ZodString;
|
|
37115
37027
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
37116
37028
|
measuredAt: z.ZodISODateTime;
|
|
37117
37029
|
receivedAt: z.ZodISODateTime;
|
|
@@ -37122,19 +37034,8 @@ export declare const zGetAwsDeviceObservationResponse: z.ZodUnion<readonly [z.Zo
|
|
|
37122
37034
|
subject: z.ZodNull;
|
|
37123
37035
|
value: z.ZodObject<{
|
|
37124
37036
|
workflowVersion: z.ZodInt;
|
|
37125
|
-
mode: z.
|
|
37126
|
-
state: z.
|
|
37127
|
-
publish: "publish";
|
|
37128
|
-
idle: "idle";
|
|
37129
|
-
battery: "battery";
|
|
37130
|
-
connect: "connect";
|
|
37131
|
-
cell: "cell";
|
|
37132
|
-
wifi: "wifi";
|
|
37133
|
-
listen: "listen";
|
|
37134
|
-
gps: "gps";
|
|
37135
|
-
gpsPublish: "gpsPublish";
|
|
37136
|
-
rest: "rest";
|
|
37137
|
-
}>;
|
|
37037
|
+
mode: z.ZodString;
|
|
37038
|
+
state: z.ZodString;
|
|
37138
37039
|
owner: z.ZodEnum<{
|
|
37139
37040
|
charging: "charging";
|
|
37140
37041
|
command: "command";
|
|
@@ -41578,7 +41479,7 @@ export declare const zReadAwsObservationsResponse: z.ZodArray<z.ZodUnion<readonl
|
|
|
41578
41479
|
psmFallbacks: z.ZodInt;
|
|
41579
41480
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
41580
41481
|
saturated: z.ZodBoolean;
|
|
41581
|
-
mode: z.
|
|
41482
|
+
mode: z.ZodString;
|
|
41582
41483
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
41583
41484
|
measuredAt: z.ZodISODateTime;
|
|
41584
41485
|
receivedAt: z.ZodISODateTime;
|
|
@@ -41601,19 +41502,8 @@ export declare const zReadAwsObservationsResponse: z.ZodArray<z.ZodUnion<readonl
|
|
|
41601
41502
|
observationId: z.ZodString;
|
|
41602
41503
|
value: z.ZodObject<{
|
|
41603
41504
|
workflowVersion: z.ZodInt;
|
|
41604
|
-
mode: z.
|
|
41605
|
-
state: z.
|
|
41606
|
-
publish: "publish";
|
|
41607
|
-
idle: "idle";
|
|
41608
|
-
battery: "battery";
|
|
41609
|
-
connect: "connect";
|
|
41610
|
-
cell: "cell";
|
|
41611
|
-
wifi: "wifi";
|
|
41612
|
-
listen: "listen";
|
|
41613
|
-
gps: "gps";
|
|
41614
|
-
gpsPublish: "gpsPublish";
|
|
41615
|
-
rest: "rest";
|
|
41616
|
-
}>;
|
|
41505
|
+
mode: z.ZodString;
|
|
41506
|
+
state: z.ZodString;
|
|
41617
41507
|
owner: z.ZodEnum<{
|
|
41618
41508
|
charging: "charging";
|
|
41619
41509
|
command: "command";
|
|
@@ -41916,14 +41806,14 @@ export declare const zGetAwsSettingsResponse: z.ZodObject<{
|
|
|
41916
41806
|
bleAdvertisingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
41917
41807
|
bleAdvertisingRequiresExternalPower: z.ZodOptional<z.ZodBoolean>;
|
|
41918
41808
|
bleAdvertisingIntervalUnits: z.ZodOptional<z.ZodInt>;
|
|
41919
|
-
mode: z.ZodOptional<z.
|
|
41809
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
41920
41810
|
poweredReportIntervalSeconds: z.ZodOptional<z.ZodInt>;
|
|
41921
|
-
|
|
41922
|
-
|
|
41923
|
-
|
|
41924
|
-
|
|
41925
|
-
|
|
41926
|
-
|
|
41811
|
+
standardIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
41812
|
+
securityIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
41813
|
+
trackingIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
41814
|
+
standardMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
41815
|
+
securityMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
41816
|
+
trackingMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
41927
41817
|
psmResidenceSeconds: z.ZodOptional<z.ZodInt>;
|
|
41928
41818
|
commandListenSeconds: z.ZodOptional<z.ZodInt>;
|
|
41929
41819
|
gnssSearchTimeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
@@ -41991,14 +41881,14 @@ export declare const zGetAwsSettingsResponse: z.ZodObject<{
|
|
|
41991
41881
|
bleAdvertisingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
41992
41882
|
bleAdvertisingRequiresExternalPower: z.ZodOptional<z.ZodBoolean>;
|
|
41993
41883
|
bleAdvertisingIntervalUnits: z.ZodOptional<z.ZodInt>;
|
|
41994
|
-
mode: z.ZodOptional<z.
|
|
41884
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
41995
41885
|
poweredReportIntervalSeconds: z.ZodOptional<z.ZodInt>;
|
|
41996
|
-
|
|
41997
|
-
|
|
41998
|
-
|
|
41999
|
-
|
|
42000
|
-
|
|
42001
|
-
|
|
41886
|
+
standardIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
41887
|
+
securityIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
41888
|
+
trackingIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
41889
|
+
standardMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
41890
|
+
securityMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
41891
|
+
trackingMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
42002
41892
|
psmResidenceSeconds: z.ZodOptional<z.ZodInt>;
|
|
42003
41893
|
commandListenSeconds: z.ZodOptional<z.ZodInt>;
|
|
42004
41894
|
gnssSearchTimeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
@@ -42107,14 +41997,14 @@ export declare const zUpdateAwsSettingsBody: z.ZodObject<{
|
|
|
42107
41997
|
bleAdvertisingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
42108
41998
|
bleAdvertisingRequiresExternalPower: z.ZodOptional<z.ZodBoolean>;
|
|
42109
41999
|
bleAdvertisingIntervalUnits: z.ZodOptional<z.ZodInt>;
|
|
42110
|
-
mode: z.ZodOptional<z.
|
|
42000
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
42111
42001
|
poweredReportIntervalSeconds: z.ZodOptional<z.ZodInt>;
|
|
42112
|
-
|
|
42113
|
-
|
|
42114
|
-
|
|
42115
|
-
|
|
42116
|
-
|
|
42117
|
-
|
|
42002
|
+
standardIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
42003
|
+
securityIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
42004
|
+
trackingIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
42005
|
+
standardMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
42006
|
+
securityMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
42007
|
+
trackingMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
42118
42008
|
psmResidenceSeconds: z.ZodOptional<z.ZodInt>;
|
|
42119
42009
|
commandListenSeconds: z.ZodOptional<z.ZodInt>;
|
|
42120
42010
|
gnssSearchTimeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
@@ -42192,14 +42082,14 @@ export declare const zUpdateAwsSettingsResponse: z.ZodObject<{
|
|
|
42192
42082
|
bleAdvertisingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
42193
42083
|
bleAdvertisingRequiresExternalPower: z.ZodOptional<z.ZodBoolean>;
|
|
42194
42084
|
bleAdvertisingIntervalUnits: z.ZodOptional<z.ZodInt>;
|
|
42195
|
-
mode: z.ZodOptional<z.
|
|
42085
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
42196
42086
|
poweredReportIntervalSeconds: z.ZodOptional<z.ZodInt>;
|
|
42197
|
-
|
|
42198
|
-
|
|
42199
|
-
|
|
42200
|
-
|
|
42201
|
-
|
|
42202
|
-
|
|
42087
|
+
standardIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
42088
|
+
securityIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
42089
|
+
trackingIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
42090
|
+
standardMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
42091
|
+
securityMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
42092
|
+
trackingMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
42203
42093
|
psmResidenceSeconds: z.ZodOptional<z.ZodInt>;
|
|
42204
42094
|
commandListenSeconds: z.ZodOptional<z.ZodInt>;
|
|
42205
42095
|
gnssSearchTimeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
@@ -42267,14 +42157,14 @@ export declare const zUpdateAwsSettingsResponse: z.ZodObject<{
|
|
|
42267
42157
|
bleAdvertisingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
42268
42158
|
bleAdvertisingRequiresExternalPower: z.ZodOptional<z.ZodBoolean>;
|
|
42269
42159
|
bleAdvertisingIntervalUnits: z.ZodOptional<z.ZodInt>;
|
|
42270
|
-
mode: z.ZodOptional<z.
|
|
42160
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
42271
42161
|
poweredReportIntervalSeconds: z.ZodOptional<z.ZodInt>;
|
|
42272
|
-
|
|
42273
|
-
|
|
42274
|
-
|
|
42275
|
-
|
|
42276
|
-
|
|
42277
|
-
|
|
42162
|
+
standardIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
42163
|
+
securityIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
42164
|
+
trackingIdleSeconds: z.ZodOptional<z.ZodInt>;
|
|
42165
|
+
standardMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
42166
|
+
securityMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
42167
|
+
trackingMinimumRestSeconds: z.ZodOptional<z.ZodInt>;
|
|
42278
42168
|
psmResidenceSeconds: z.ZodOptional<z.ZodInt>;
|
|
42279
42169
|
commandListenSeconds: z.ZodOptional<z.ZodInt>;
|
|
42280
42170
|
gnssSearchTimeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
@@ -9094,14 +9094,14 @@ export const zDeviceSettings = z
|
|
|
9094
9094
|
bleAdvertisingEnabled: z.boolean().optional(),
|
|
9095
9095
|
bleAdvertisingRequiresExternalPower: z.boolean().optional(),
|
|
9096
9096
|
bleAdvertisingIntervalUnits: z.int().gte(32).lte(16384).optional(),
|
|
9097
|
-
mode: z.
|
|
9097
|
+
mode: z.string().optional(),
|
|
9098
9098
|
poweredReportIntervalSeconds: z.int().gte(30).lte(86400).optional(),
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9099
|
+
standardIdleSeconds: z.int().gte(60).lte(604800).optional(),
|
|
9100
|
+
securityIdleSeconds: z.int().gte(60).lte(604800).optional(),
|
|
9101
|
+
trackingIdleSeconds: z.int().gte(10).lte(86400).optional(),
|
|
9102
|
+
standardMinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
9103
|
+
securityMinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
9104
|
+
trackingMinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
9105
9105
|
psmResidenceSeconds: z.int().gte(0).lte(86400).optional(),
|
|
9106
9106
|
commandListenSeconds: z.int().gte(0).lte(3600).optional(),
|
|
9107
9107
|
gnssSearchTimeoutSeconds: z.int().gte(1).lte(3600).optional(),
|
|
@@ -9282,7 +9282,7 @@ export const zDeviceWorkCompletedValue = z
|
|
|
9282
9282
|
activityEntries: zDeviceObservationValuesActivityEntries,
|
|
9283
9283
|
recoveries: zDeviceObservationValuesRecoveryCounts,
|
|
9284
9284
|
saturated: z.boolean(),
|
|
9285
|
-
mode: z.
|
|
9285
|
+
mode: z.string(),
|
|
9286
9286
|
})
|
|
9287
9287
|
.catchall(z.unknown());
|
|
9288
9288
|
export const zAwsWorkCompletedObservation = z
|
|
@@ -9336,19 +9336,8 @@ export const zAwsWorkCompletedReading = z.union([
|
|
|
9336
9336
|
export const zDeviceWorkflowExecutionValue = z
|
|
9337
9337
|
.object({
|
|
9338
9338
|
workflowVersion: z.int().gte(1).lte(65535),
|
|
9339
|
-
mode: z.
|
|
9340
|
-
state: z.
|
|
9341
|
-
"idle",
|
|
9342
|
-
"battery",
|
|
9343
|
-
"connect",
|
|
9344
|
-
"cell",
|
|
9345
|
-
"wifi",
|
|
9346
|
-
"publish",
|
|
9347
|
-
"listen",
|
|
9348
|
-
"gps",
|
|
9349
|
-
"gpsPublish",
|
|
9350
|
-
"rest",
|
|
9351
|
-
]),
|
|
9339
|
+
mode: z.string(),
|
|
9340
|
+
state: z.string(),
|
|
9352
9341
|
owner: z.enum([
|
|
9353
9342
|
"workflow",
|
|
9354
9343
|
"command",
|
|
@@ -13018,14 +13007,14 @@ export const zReadDeviceSettings = z
|
|
|
13018
13007
|
bleAdvertisingEnabled: z.boolean().optional(),
|
|
13019
13008
|
bleAdvertisingRequiresExternalPower: z.boolean().optional(),
|
|
13020
13009
|
bleAdvertisingIntervalUnits: z.int().gte(32).lte(16384).optional(),
|
|
13021
|
-
mode: z.
|
|
13010
|
+
mode: z.string().optional(),
|
|
13022
13011
|
poweredReportIntervalSeconds: z.int().gte(30).lte(86400).optional(),
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13012
|
+
standardIdleSeconds: z.int().gte(60).lte(604800).optional(),
|
|
13013
|
+
securityIdleSeconds: z.int().gte(60).lte(604800).optional(),
|
|
13014
|
+
trackingIdleSeconds: z.int().gte(10).lte(86400).optional(),
|
|
13015
|
+
standardMinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
13016
|
+
securityMinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
13017
|
+
trackingMinimumRestSeconds: z.int().gte(0).lte(86400).optional(),
|
|
13029
13018
|
psmResidenceSeconds: z.int().gte(0).lte(86400).optional(),
|
|
13030
13019
|
commandListenSeconds: z.int().gte(0).lte(3600).optional(),
|
|
13031
13020
|
gnssSearchTimeoutSeconds: z.int().gte(1).lte(3600).optional(),
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,6 @@ export declare function createBikeFinderClient(options: ClientOptions): {
|
|
|
23
23
|
};
|
|
24
24
|
export type BikeFinderClient = ReturnType<typeof createBikeFinderClient>;
|
|
25
25
|
export { workflowDefinition } from "./workflow-schema.js";
|
|
26
|
-
export type {
|
|
26
|
+
export type { TrackingMode, WorkflowState } from "./workflow-schema.js";
|
|
27
27
|
export { observationValueSchema, observationDefinitions, settingsValueSchema } from "./device-schema.js";
|
|
28
28
|
export type { ObservationFact, MetricName, DeviceSettings } from "./device-schema.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const workflowDefinition: {
|
|
2
|
-
readonly version:
|
|
3
|
-
readonly modes: readonly [
|
|
2
|
+
readonly version: 1;
|
|
3
|
+
readonly modes: readonly ["standard", "security", "tracking"];
|
|
4
4
|
readonly states: readonly ["idle", "battery", "connect", "cell", "wifi", "publish", "listen", "gps", "gpsPublish", "rest"];
|
|
5
5
|
readonly outcomes: readonly ["done", "unavailable", "failed", "timeout", "cancelled"];
|
|
6
6
|
readonly acquisition: {
|
|
@@ -194,5 +194,5 @@ export declare const workflowDefinition: {
|
|
|
194
194
|
readonly name: "connect";
|
|
195
195
|
}];
|
|
196
196
|
};
|
|
197
|
-
export type
|
|
197
|
+
export type TrackingMode = (typeof workflowDefinition.modes)[number];
|
|
198
198
|
export type WorkflowState = (typeof workflowDefinition.states)[number];
|
package/dist/workflow-schema.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Generated from protocol JSON Schemas by tools/generate-device-sdk.mjs. Do not edit.
|
|
2
2
|
export const workflowDefinition = {
|
|
3
|
-
"version":
|
|
3
|
+
"version": 1,
|
|
4
4
|
"modes": [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
"standard",
|
|
6
|
+
"security",
|
|
7
|
+
"tracking"
|
|
8
8
|
],
|
|
9
9
|
"states": [
|
|
10
10
|
"idle",
|