@bikefinder/sdk 0.8.0 → 0.10.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/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +1 -7
- package/dist/generated/sdk.gen.js +1 -107
- package/dist/generated/types.gen.d.ts +3 -166
- package/dist/generated/zod.gen.d.ts +5 -185
- package/dist/generated/zod.gen.js +1 -98
- package/openapi/api.json +6 -463
- package/package.json +1 -1
package/openapi/api.json
CHANGED
|
@@ -299,161 +299,6 @@
|
|
|
299
299
|
]
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
|
-
"/v1/trackers/{id}/positioning": {
|
|
303
|
-
"get": {
|
|
304
|
-
"tags": [
|
|
305
|
-
"Trackers"
|
|
306
|
-
],
|
|
307
|
-
"operationId": "GetTrackerPositioning",
|
|
308
|
-
"parameters": [
|
|
309
|
-
{
|
|
310
|
-
"name": "id",
|
|
311
|
-
"in": "path",
|
|
312
|
-
"required": true,
|
|
313
|
-
"schema": {
|
|
314
|
-
"type": "string"
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"responses": {
|
|
319
|
-
"200": {
|
|
320
|
-
"description": "OK",
|
|
321
|
-
"content": {
|
|
322
|
-
"application/json": {
|
|
323
|
-
"schema": {
|
|
324
|
-
"$ref": "#/components/schemas/PositioningView"
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
"default": {
|
|
330
|
-
"description": "Problem Details. A write with operation_unconfirmed may have committed; reuse its original request ID when retrying.",
|
|
331
|
-
"content": {
|
|
332
|
-
"application/problem+json": {
|
|
333
|
-
"schema": {
|
|
334
|
-
"$ref": "#/components/schemas/ApiProblem"
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
"security": [
|
|
341
|
-
{
|
|
342
|
-
"Bearer": [ ]
|
|
343
|
-
}
|
|
344
|
-
]
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
"/v1/trackers/{id}/positioning/schedule": {
|
|
348
|
-
"put": {
|
|
349
|
-
"tags": [
|
|
350
|
-
"Trackers"
|
|
351
|
-
],
|
|
352
|
-
"operationId": "SetTrackerPositioningSchedule",
|
|
353
|
-
"parameters": [
|
|
354
|
-
{
|
|
355
|
-
"name": "id",
|
|
356
|
-
"in": "path",
|
|
357
|
-
"required": true,
|
|
358
|
-
"schema": {
|
|
359
|
-
"type": "string"
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
],
|
|
363
|
-
"requestBody": {
|
|
364
|
-
"content": {
|
|
365
|
-
"application/json": {
|
|
366
|
-
"schema": {
|
|
367
|
-
"$ref": "#/components/schemas/PositioningSchedule"
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
"required": true
|
|
372
|
-
},
|
|
373
|
-
"responses": {
|
|
374
|
-
"200": {
|
|
375
|
-
"description": "OK",
|
|
376
|
-
"content": {
|
|
377
|
-
"application/json": {
|
|
378
|
-
"schema": {
|
|
379
|
-
"$ref": "#/components/schemas/PositioningView"
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
"default": {
|
|
385
|
-
"description": "Problem Details. A write with operation_unconfirmed may have committed; reuse its original request ID when retrying.",
|
|
386
|
-
"content": {
|
|
387
|
-
"application/problem+json": {
|
|
388
|
-
"schema": {
|
|
389
|
-
"$ref": "#/components/schemas/ApiProblem"
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
"security": [
|
|
396
|
-
{
|
|
397
|
-
"Bearer": [ ]
|
|
398
|
-
}
|
|
399
|
-
]
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
"/v1/trackers/{id}/positioning/requests": {
|
|
403
|
-
"post": {
|
|
404
|
-
"tags": [
|
|
405
|
-
"Trackers"
|
|
406
|
-
],
|
|
407
|
-
"operationId": "RequestTrackerPosition",
|
|
408
|
-
"parameters": [
|
|
409
|
-
{
|
|
410
|
-
"name": "id",
|
|
411
|
-
"in": "path",
|
|
412
|
-
"required": true,
|
|
413
|
-
"schema": {
|
|
414
|
-
"type": "string"
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
],
|
|
418
|
-
"requestBody": {
|
|
419
|
-
"content": {
|
|
420
|
-
"application/json": {
|
|
421
|
-
"schema": {
|
|
422
|
-
"$ref": "#/components/schemas/PositionRequest"
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
"required": true
|
|
427
|
-
},
|
|
428
|
-
"responses": {
|
|
429
|
-
"202": {
|
|
430
|
-
"description": "Accepted",
|
|
431
|
-
"content": {
|
|
432
|
-
"application/json": {
|
|
433
|
-
"schema": {
|
|
434
|
-
"$ref": "#/components/schemas/PositioningView"
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
"default": {
|
|
440
|
-
"description": "Problem Details. A write with operation_unconfirmed may have committed; reuse its original request ID when retrying.",
|
|
441
|
-
"content": {
|
|
442
|
-
"application/problem+json": {
|
|
443
|
-
"schema": {
|
|
444
|
-
"$ref": "#/components/schemas/ApiProblem"
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
"security": [
|
|
451
|
-
{
|
|
452
|
-
"Bearer": [ ]
|
|
453
|
-
}
|
|
454
|
-
]
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
302
|
"/v1/trackers/{id}": {
|
|
458
303
|
"get": {
|
|
459
304
|
"tags": [
|
|
@@ -3641,161 +3486,6 @@
|
|
|
3641
3486
|
]
|
|
3642
3487
|
}
|
|
3643
3488
|
},
|
|
3644
|
-
"/v1/admin/trackers/{id}/positioning": {
|
|
3645
|
-
"get": {
|
|
3646
|
-
"tags": [
|
|
3647
|
-
"Staff tracker diagnostics"
|
|
3648
|
-
],
|
|
3649
|
-
"operationId": "GetStaffTrackerPositioning",
|
|
3650
|
-
"parameters": [
|
|
3651
|
-
{
|
|
3652
|
-
"name": "id",
|
|
3653
|
-
"in": "path",
|
|
3654
|
-
"required": true,
|
|
3655
|
-
"schema": {
|
|
3656
|
-
"type": "string"
|
|
3657
|
-
}
|
|
3658
|
-
}
|
|
3659
|
-
],
|
|
3660
|
-
"responses": {
|
|
3661
|
-
"200": {
|
|
3662
|
-
"description": "OK",
|
|
3663
|
-
"content": {
|
|
3664
|
-
"application/json": {
|
|
3665
|
-
"schema": {
|
|
3666
|
-
"$ref": "#/components/schemas/PositioningView"
|
|
3667
|
-
}
|
|
3668
|
-
}
|
|
3669
|
-
}
|
|
3670
|
-
},
|
|
3671
|
-
"default": {
|
|
3672
|
-
"description": "Problem Details. A write with operation_unconfirmed may have committed; reuse its original request ID when retrying.",
|
|
3673
|
-
"content": {
|
|
3674
|
-
"application/problem+json": {
|
|
3675
|
-
"schema": {
|
|
3676
|
-
"$ref": "#/components/schemas/ApiProblem"
|
|
3677
|
-
}
|
|
3678
|
-
}
|
|
3679
|
-
}
|
|
3680
|
-
}
|
|
3681
|
-
},
|
|
3682
|
-
"security": [
|
|
3683
|
-
{
|
|
3684
|
-
"Bearer": [ ]
|
|
3685
|
-
}
|
|
3686
|
-
]
|
|
3687
|
-
}
|
|
3688
|
-
},
|
|
3689
|
-
"/v1/admin/trackers/{id}/positioning/schedule": {
|
|
3690
|
-
"put": {
|
|
3691
|
-
"tags": [
|
|
3692
|
-
"Staff tracker diagnostics"
|
|
3693
|
-
],
|
|
3694
|
-
"operationId": "SetStaffTrackerPositioningSchedule",
|
|
3695
|
-
"parameters": [
|
|
3696
|
-
{
|
|
3697
|
-
"name": "id",
|
|
3698
|
-
"in": "path",
|
|
3699
|
-
"required": true,
|
|
3700
|
-
"schema": {
|
|
3701
|
-
"type": "string"
|
|
3702
|
-
}
|
|
3703
|
-
}
|
|
3704
|
-
],
|
|
3705
|
-
"requestBody": {
|
|
3706
|
-
"content": {
|
|
3707
|
-
"application/json": {
|
|
3708
|
-
"schema": {
|
|
3709
|
-
"$ref": "#/components/schemas/PositioningSchedule"
|
|
3710
|
-
}
|
|
3711
|
-
}
|
|
3712
|
-
},
|
|
3713
|
-
"required": true
|
|
3714
|
-
},
|
|
3715
|
-
"responses": {
|
|
3716
|
-
"200": {
|
|
3717
|
-
"description": "OK",
|
|
3718
|
-
"content": {
|
|
3719
|
-
"application/json": {
|
|
3720
|
-
"schema": {
|
|
3721
|
-
"$ref": "#/components/schemas/PositioningView"
|
|
3722
|
-
}
|
|
3723
|
-
}
|
|
3724
|
-
}
|
|
3725
|
-
},
|
|
3726
|
-
"default": {
|
|
3727
|
-
"description": "Problem Details. A write with operation_unconfirmed may have committed; reuse its original request ID when retrying.",
|
|
3728
|
-
"content": {
|
|
3729
|
-
"application/problem+json": {
|
|
3730
|
-
"schema": {
|
|
3731
|
-
"$ref": "#/components/schemas/ApiProblem"
|
|
3732
|
-
}
|
|
3733
|
-
}
|
|
3734
|
-
}
|
|
3735
|
-
}
|
|
3736
|
-
},
|
|
3737
|
-
"security": [
|
|
3738
|
-
{
|
|
3739
|
-
"Bearer": [ ]
|
|
3740
|
-
}
|
|
3741
|
-
]
|
|
3742
|
-
}
|
|
3743
|
-
},
|
|
3744
|
-
"/v1/admin/trackers/{id}/positioning/requests": {
|
|
3745
|
-
"post": {
|
|
3746
|
-
"tags": [
|
|
3747
|
-
"Staff tracker diagnostics"
|
|
3748
|
-
],
|
|
3749
|
-
"operationId": "RequestStaffTrackerPosition",
|
|
3750
|
-
"parameters": [
|
|
3751
|
-
{
|
|
3752
|
-
"name": "id",
|
|
3753
|
-
"in": "path",
|
|
3754
|
-
"required": true,
|
|
3755
|
-
"schema": {
|
|
3756
|
-
"type": "string"
|
|
3757
|
-
}
|
|
3758
|
-
}
|
|
3759
|
-
],
|
|
3760
|
-
"requestBody": {
|
|
3761
|
-
"content": {
|
|
3762
|
-
"application/json": {
|
|
3763
|
-
"schema": {
|
|
3764
|
-
"$ref": "#/components/schemas/PositionRequest"
|
|
3765
|
-
}
|
|
3766
|
-
}
|
|
3767
|
-
},
|
|
3768
|
-
"required": true
|
|
3769
|
-
},
|
|
3770
|
-
"responses": {
|
|
3771
|
-
"202": {
|
|
3772
|
-
"description": "Accepted",
|
|
3773
|
-
"content": {
|
|
3774
|
-
"application/json": {
|
|
3775
|
-
"schema": {
|
|
3776
|
-
"$ref": "#/components/schemas/PositioningView"
|
|
3777
|
-
}
|
|
3778
|
-
}
|
|
3779
|
-
}
|
|
3780
|
-
},
|
|
3781
|
-
"default": {
|
|
3782
|
-
"description": "Problem Details. A write with operation_unconfirmed may have committed; reuse its original request ID when retrying.",
|
|
3783
|
-
"content": {
|
|
3784
|
-
"application/problem+json": {
|
|
3785
|
-
"schema": {
|
|
3786
|
-
"$ref": "#/components/schemas/ApiProblem"
|
|
3787
|
-
}
|
|
3788
|
-
}
|
|
3789
|
-
}
|
|
3790
|
-
}
|
|
3791
|
-
},
|
|
3792
|
-
"security": [
|
|
3793
|
-
{
|
|
3794
|
-
"Bearer": [ ]
|
|
3795
|
-
}
|
|
3796
|
-
]
|
|
3797
|
-
}
|
|
3798
|
-
},
|
|
3799
3489
|
"/v1/admin/trackers/{id}/firmware/battery-updates": {
|
|
3800
3490
|
"post": {
|
|
3801
3491
|
"tags": [
|
|
@@ -9411,7 +9101,6 @@
|
|
|
9411
9101
|
"listEnvironments",
|
|
9412
9102
|
"updateBattery",
|
|
9413
9103
|
"runBatteryCheck",
|
|
9414
|
-
"requestPosition",
|
|
9415
9104
|
"enableDiagnostics"
|
|
9416
9105
|
],
|
|
9417
9106
|
"type": "string"
|
|
@@ -31467,6 +31156,12 @@
|
|
|
31467
31156
|
"integer"
|
|
31468
31157
|
],
|
|
31469
31158
|
"format": "int32"
|
|
31159
|
+
},
|
|
31160
|
+
"jobId": {
|
|
31161
|
+
"type": [
|
|
31162
|
+
"null",
|
|
31163
|
+
"string"
|
|
31164
|
+
]
|
|
31470
31165
|
}
|
|
31471
31166
|
},
|
|
31472
31167
|
"additionalProperties": false
|
|
@@ -47214,95 +46909,6 @@
|
|
|
47214
46909
|
"requestScoped": false
|
|
47215
46910
|
}
|
|
47216
46911
|
},
|
|
47217
|
-
"PositioningSchedule": {
|
|
47218
|
-
"required": [
|
|
47219
|
-
"enabled",
|
|
47220
|
-
"intervalSeconds"
|
|
47221
|
-
],
|
|
47222
|
-
"type": "object",
|
|
47223
|
-
"properties": {
|
|
47224
|
-
"enabled": {
|
|
47225
|
-
"type": "boolean"
|
|
47226
|
-
},
|
|
47227
|
-
"intervalSeconds": {
|
|
47228
|
-
"maximum": 604800,
|
|
47229
|
-
"minimum": 60,
|
|
47230
|
-
"type": "integer",
|
|
47231
|
-
"format": "uint32"
|
|
47232
|
-
}
|
|
47233
|
-
},
|
|
47234
|
-
"additionalProperties": false
|
|
47235
|
-
},
|
|
47236
|
-
"PositioningView": {
|
|
47237
|
-
"required": [
|
|
47238
|
-
"deviceId",
|
|
47239
|
-
"version",
|
|
47240
|
-
"schedule",
|
|
47241
|
-
"nextDueAt",
|
|
47242
|
-
"requestId",
|
|
47243
|
-
"status",
|
|
47244
|
-
"requestedAt",
|
|
47245
|
-
"expiresAt"
|
|
47246
|
-
],
|
|
47247
|
-
"type": "object",
|
|
47248
|
-
"properties": {
|
|
47249
|
-
"deviceId": {
|
|
47250
|
-
"type": "string"
|
|
47251
|
-
},
|
|
47252
|
-
"version": {
|
|
47253
|
-
"type": "integer",
|
|
47254
|
-
"format": "int64"
|
|
47255
|
-
},
|
|
47256
|
-
"schedule": {
|
|
47257
|
-
"$ref": "#/components/schemas/PositioningSchedule"
|
|
47258
|
-
},
|
|
47259
|
-
"nextDueAt": {
|
|
47260
|
-
"type": [
|
|
47261
|
-
"null",
|
|
47262
|
-
"string"
|
|
47263
|
-
],
|
|
47264
|
-
"format": "date-time"
|
|
47265
|
-
},
|
|
47266
|
-
"requestId": {
|
|
47267
|
-
"type": [
|
|
47268
|
-
"null",
|
|
47269
|
-
"integer"
|
|
47270
|
-
],
|
|
47271
|
-
"format": "uint32"
|
|
47272
|
-
},
|
|
47273
|
-
"status": {
|
|
47274
|
-
"type": "string"
|
|
47275
|
-
},
|
|
47276
|
-
"requestedAt": {
|
|
47277
|
-
"type": [
|
|
47278
|
-
"null",
|
|
47279
|
-
"string"
|
|
47280
|
-
],
|
|
47281
|
-
"format": "date-time"
|
|
47282
|
-
},
|
|
47283
|
-
"expiresAt": {
|
|
47284
|
-
"type": [
|
|
47285
|
-
"null",
|
|
47286
|
-
"string"
|
|
47287
|
-
],
|
|
47288
|
-
"format": "date-time"
|
|
47289
|
-
}
|
|
47290
|
-
},
|
|
47291
|
-
"additionalProperties": false
|
|
47292
|
-
},
|
|
47293
|
-
"PositionRequest": {
|
|
47294
|
-
"required": [
|
|
47295
|
-
"operationId"
|
|
47296
|
-
],
|
|
47297
|
-
"type": "object",
|
|
47298
|
-
"properties": {
|
|
47299
|
-
"operationId": {
|
|
47300
|
-
"type": "string",
|
|
47301
|
-
"format": "uuid"
|
|
47302
|
-
}
|
|
47303
|
-
},
|
|
47304
|
-
"additionalProperties": false
|
|
47305
|
-
},
|
|
47306
46912
|
"PowerActivitiesValueItem": {
|
|
47307
46913
|
"enum": [
|
|
47308
46914
|
"rrc",
|
|
@@ -49066,68 +48672,6 @@
|
|
|
49066
48672
|
},
|
|
49067
48673
|
"additionalProperties": false
|
|
49068
48674
|
},
|
|
49069
|
-
{
|
|
49070
|
-
"required": [
|
|
49071
|
-
"operationId",
|
|
49072
|
-
"expectedInventoryId",
|
|
49073
|
-
"command",
|
|
49074
|
-
"arguments"
|
|
49075
|
-
],
|
|
49076
|
-
"type": "object",
|
|
49077
|
-
"properties": {
|
|
49078
|
-
"operationId": {
|
|
49079
|
-
"type": "string",
|
|
49080
|
-
"format": "uuid"
|
|
49081
|
-
},
|
|
49082
|
-
"expectedInventoryId": {
|
|
49083
|
-
"type": "string"
|
|
49084
|
-
},
|
|
49085
|
-
"command": {
|
|
49086
|
-
"enum": [
|
|
49087
|
-
"requestPosition"
|
|
49088
|
-
],
|
|
49089
|
-
"type": "string"
|
|
49090
|
-
},
|
|
49091
|
-
"arguments": {
|
|
49092
|
-
"maxItems": 2,
|
|
49093
|
-
"minItems": 2,
|
|
49094
|
-
"type": "array",
|
|
49095
|
-
"prefixItems": [
|
|
49096
|
-
{
|
|
49097
|
-
"type": "integer",
|
|
49098
|
-
"minimum": 0,
|
|
49099
|
-
"maximum": 1,
|
|
49100
|
-
"title": "Positioning method",
|
|
49101
|
-
"enum": [
|
|
49102
|
-
0,
|
|
49103
|
-
1
|
|
49104
|
-
]
|
|
49105
|
-
},
|
|
49106
|
-
{
|
|
49107
|
-
"type": "integer",
|
|
49108
|
-
"minimum": 0,
|
|
49109
|
-
"maximum": 4294967295,
|
|
49110
|
-
"title": "Position request ID"
|
|
49111
|
-
}
|
|
49112
|
-
],
|
|
49113
|
-
"items": false
|
|
49114
|
-
},
|
|
49115
|
-
"metrics": {
|
|
49116
|
-
"type": "null"
|
|
49117
|
-
},
|
|
49118
|
-
"enrollmentUrl": {
|
|
49119
|
-
"type": "null"
|
|
49120
|
-
},
|
|
49121
|
-
"confirmed": {
|
|
49122
|
-
"type": "boolean",
|
|
49123
|
-
"default": false
|
|
49124
|
-
},
|
|
49125
|
-
"acquisitionOptions": {
|
|
49126
|
-
"type": "null"
|
|
49127
|
-
}
|
|
49128
|
-
},
|
|
49129
|
-
"additionalProperties": false
|
|
49130
|
-
},
|
|
49131
48675
|
{
|
|
49132
48676
|
"required": [
|
|
49133
48677
|
"operationId",
|
|
@@ -49547,7 +49091,6 @@
|
|
|
49547
49091
|
"listEnvironments",
|
|
49548
49092
|
"updateBattery",
|
|
49549
49093
|
"runBatteryCheck",
|
|
49550
|
-
"requestPosition",
|
|
49551
49094
|
"enableDiagnostics"
|
|
49552
49095
|
],
|
|
49553
49096
|
"type": "string"
|