@bikefinder/api-client 0.1.0 → 0.2.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.
@@ -1,9 +1,99 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: `${string}://${string}` | (string & {});
3
3
  };
4
+ export type AccountDeletionRequest = {
5
+ requestId: string;
6
+ };
7
+ export type AccountNotification = {
8
+ id: string;
9
+ title: string;
10
+ body: string;
11
+ trackerId: null | string;
12
+ timestampMs: number;
13
+ subscriptionId: null | string;
14
+ };
15
+ export type AccountPreferences = {
16
+ language: string;
17
+ alarm: boolean;
18
+ timeSensitive: boolean;
19
+ pushReady: boolean;
20
+ devicePreferences: LegacyDevicePreferences;
21
+ };
22
+ export type BluetoothBatteryRequest = {
23
+ seenAt: number;
24
+ level: null | number;
25
+ isCharging: boolean;
26
+ };
27
+ export type BluetoothCommandReport = {
28
+ type: string;
29
+ success: boolean;
30
+ };
31
+ export type BluetoothObservationBattery = {
32
+ level: null | number;
33
+ isCharging: boolean;
34
+ };
35
+ export type BluetoothObservationRequest = {
36
+ requestId: string;
37
+ type: string;
38
+ timestampMs: number;
39
+ latitude: number;
40
+ longitude: number;
41
+ accuracy: number;
42
+ userLocationAccuracy: number;
43
+ crowdKey: null | number;
44
+ rssi: null | number;
45
+ status: string;
46
+ statusValue: number;
47
+ bleId: string;
48
+ appState: string;
49
+ battery: BluetoothObservationBattery;
50
+ };
51
+ export type BluetoothObservationResult = {
52
+ success: boolean;
53
+ observationId: string;
54
+ };
55
+ export type BluetoothReportingPolicy = {
56
+ pauseMs: number;
57
+ accuracy: number;
58
+ };
59
+ export type ClaimTrackerGuestAccessRequest = {
60
+ accessCode: string;
61
+ displayName: null | string;
62
+ };
63
+ export type ClaimTrackerOwnershipRequest = {
64
+ displayName: null | string;
65
+ };
66
+ export type CommandSuccess = {
67
+ success: boolean;
68
+ };
69
+ export type CompleteFirmwareRequest = {
70
+ from: string;
71
+ version: string;
72
+ };
73
+ export type FactoryResetResult = {
74
+ error: boolean;
75
+ };
4
76
  export type HealthStatus = {
5
77
  status: string;
6
78
  };
79
+ export type HistoryPage = {
80
+ items: Array<TrackerPosition>;
81
+ nextCursor: null | string;
82
+ };
83
+ export type IFormFile = Blob | File;
84
+ export type LegacyDevicePreferences = {
85
+ unit: string;
86
+ liquidGlass: boolean;
87
+ mapStyle: string;
88
+ };
89
+ export type NotificationPage = {
90
+ items: Array<AccountNotification>;
91
+ nextCursor: null | string;
92
+ };
93
+ export type PhotoUploadResult = {
94
+ id: string;
95
+ };
96
+ export type PlanStatus = "active" | "ending" | "hold" | "inactive" | "unknown";
7
97
  export type ProblemDetails = {
8
98
  type?: null | string;
9
99
  title?: null | string;
@@ -11,17 +101,169 @@ export type ProblemDetails = {
11
101
  detail?: null | string;
12
102
  instance?: null | string;
13
103
  };
104
+ export type RecordFirmwareAttemptRequest = {
105
+ attemptId: string;
106
+ success: boolean;
107
+ };
108
+ export type RecordFirmwareAttemptResult = {
109
+ success: boolean;
110
+ recorded: boolean;
111
+ };
112
+ export type RegisterPushRegistrationRequest = {
113
+ token: string;
114
+ previousTokens?: null | Array<string>;
115
+ platform?: null | string;
116
+ };
117
+ export type RemovePushRegistrationRequest = {
118
+ tokens: Array<string>;
119
+ };
120
+ export type RemoveTrackerMembershipRequest = {
121
+ expectedLastMember: boolean;
122
+ };
123
+ export type SubmitTrackerTheftReportRequest = {
124
+ requestId: string;
125
+ phoneNumber: string;
126
+ };
127
+ export type SubscriptionChangeRequest = {
128
+ subscriptionId: string;
129
+ };
130
+ export type SubscriptionList = {
131
+ items: Array<SubscriptionPlan>;
132
+ };
133
+ export type SubscriptionPlan = {
134
+ id: string;
135
+ ownerUid: null | string;
136
+ name: string;
137
+ fallbackTier: null | number;
138
+ status: PlanStatus;
139
+ isActive: null | boolean;
140
+ quantity: null | number;
141
+ available: number;
142
+ trackerIds: Array<string>;
143
+ managementUrl: null | string;
144
+ nextRenewalMs: null | number;
145
+ endMs: null | number;
146
+ };
147
+ export type TrackerBattery = {
148
+ level: null | number;
149
+ isCharging: boolean;
150
+ timestampMs: null | number;
151
+ };
152
+ export type TrackerBikeDetails = {
153
+ nickname: string;
154
+ brand: string;
155
+ type: string;
156
+ model: string;
157
+ frameNumber: string;
158
+ marketPrice: string;
159
+ marketPriceCurrency: string;
160
+ url: string;
161
+ };
162
+ export type TrackerBluetoothCredentials = {
163
+ id: string;
164
+ imei: null | string;
165
+ generation: null | number;
166
+ pin: Array<number>;
167
+ rotatePin: boolean;
168
+ };
169
+ export type TrackerClaimabilityRequest = {
170
+ deviceIds: Array<string>;
171
+ };
172
+ export type TrackerFirmwarePlan = {
173
+ trackerId: string;
174
+ from: string;
175
+ version: string;
176
+ url: string;
177
+ blockSize: number;
178
+ requiredBattery: number;
179
+ blockTimeoutMs: number;
180
+ rebootTimeoutMs: number;
181
+ };
182
+ export type TrackerFirmwareVersions = {
183
+ lte: null | string;
184
+ ble: null | string;
185
+ bat: null | string;
186
+ tiFirmware: null | string;
187
+ mtkFirmware: null | string;
188
+ };
189
+ export type TrackerInvitation = {
190
+ accessCode: string;
191
+ };
192
+ export type TrackerModeRequest = {
193
+ mode: TrackingMode;
194
+ };
195
+ export type TrackerModeResult = {
196
+ success: boolean;
197
+ requestedMode: string;
198
+ };
14
199
  export type TrackerPage = {
15
200
  items: Array<TrackerSummary>;
16
201
  nextCursor: null | string;
17
202
  };
203
+ export type TrackerPhoto = {
204
+ id: string;
205
+ kind: string;
206
+ url: string;
207
+ thumbnailUrl: string;
208
+ timestampMs: null | number;
209
+ };
210
+ export type TrackerPhotoList = {
211
+ items: Array<TrackerPhoto>;
212
+ };
213
+ export type TrackerPosition = {
214
+ id: string;
215
+ latitude: number;
216
+ longitude: number;
217
+ timestampMs: number;
218
+ source: string;
219
+ accuracy: null | number;
220
+ };
221
+ export type TrackerPositionState = {
222
+ latest: null | TrackerPosition;
223
+ lastPrecise: null | TrackerPosition;
224
+ };
225
+ export type TrackerSubscription = {
226
+ id: null | string;
227
+ status: string;
228
+ endTimestampMs: null | number;
229
+ tier: null | number;
230
+ };
18
231
  export type TrackerSummary = {
19
232
  id: string;
20
233
  nickname: null | string;
21
234
  requestedMode: null | TrackingMode;
22
235
  subscriptionActive: null | boolean;
236
+ bikeDetails: null | TrackerBikeDetails;
237
+ battery: null | TrackerBattery;
238
+ subscription: null | TrackerSubscription;
239
+ membershipCount: number;
240
+ sharingCodes: null | Array<string>;
241
+ generation: null | number;
242
+ imei: null | string;
243
+ iccid: null | string;
244
+ firmwareVersions: null | TrackerFirmwareVersions;
245
+ lastCommunicationMode: null | string;
246
+ };
247
+ export type TrackerTheftReportResult = {
248
+ success: boolean;
249
+ reportId: string;
250
+ requestId: string;
23
251
  };
24
252
  export type TrackingMode = "standard" | "security" | "tracking";
253
+ export type UpdateAccountPreferencesRequest = {
254
+ language?: null | string;
255
+ alarm?: null | boolean;
256
+ timeSensitive?: null | boolean;
257
+ };
258
+ export type UpdateBluetoothPinRequest = {
259
+ pin: Array<number>;
260
+ expected: Array<number>;
261
+ clearRotation: boolean;
262
+ };
263
+ export type UpdateTrackerBikeRequest = {
264
+ before: TrackerBikeDetails;
265
+ draft: TrackerBikeDetails;
266
+ };
25
267
  export type GetHealthData = {
26
268
  body?: never;
27
269
  path?: never;
@@ -35,6 +277,249 @@ export type GetHealthResponses = {
35
277
  200: HealthStatus;
36
278
  };
37
279
  export type GetHealthResponse = GetHealthResponses[keyof GetHealthResponses];
280
+ export type GetBluetoothReportingPolicyData = {
281
+ body?: never;
282
+ path?: never;
283
+ query?: never;
284
+ url: "/v1/bluetooth/reporting-policy";
285
+ };
286
+ export type GetBluetoothReportingPolicyErrors = {
287
+ /**
288
+ * Bad Request
289
+ */
290
+ 400: ProblemDetails;
291
+ /**
292
+ * Unauthorized
293
+ */
294
+ 401: ProblemDetails;
295
+ /**
296
+ * Forbidden
297
+ */
298
+ 403: ProblemDetails;
299
+ /**
300
+ * Not Found
301
+ */
302
+ 404: ProblemDetails;
303
+ /**
304
+ * Conflict
305
+ */
306
+ 409: ProblemDetails;
307
+ /**
308
+ * Too Many Requests
309
+ */
310
+ 429: ProblemDetails;
311
+ /**
312
+ * Bad Gateway
313
+ */
314
+ 502: ProblemDetails;
315
+ /**
316
+ * Service Unavailable
317
+ */
318
+ 503: ProblemDetails;
319
+ };
320
+ export type GetBluetoothReportingPolicyError = GetBluetoothReportingPolicyErrors[keyof GetBluetoothReportingPolicyErrors];
321
+ export type GetBluetoothReportingPolicyResponses = {
322
+ /**
323
+ * OK
324
+ */
325
+ 200: BluetoothReportingPolicy;
326
+ };
327
+ export type GetBluetoothReportingPolicyResponse = GetBluetoothReportingPolicyResponses[keyof GetBluetoothReportingPolicyResponses];
328
+ export type UnlinkTrackerSubscriptionData = {
329
+ body: SubscriptionChangeRequest;
330
+ path: {
331
+ trackerId: string;
332
+ };
333
+ query?: never;
334
+ url: "/v1/trackers/{trackerId}/subscription";
335
+ };
336
+ export type UnlinkTrackerSubscriptionErrors = {
337
+ /**
338
+ * Bad Request
339
+ */
340
+ 400: ProblemDetails;
341
+ /**
342
+ * Unauthorized
343
+ */
344
+ 401: ProblemDetails;
345
+ /**
346
+ * Forbidden
347
+ */
348
+ 403: ProblemDetails;
349
+ /**
350
+ * Conflict
351
+ */
352
+ 409: ProblemDetails;
353
+ /**
354
+ * Service Unavailable
355
+ */
356
+ 503: ProblemDetails;
357
+ };
358
+ export type UnlinkTrackerSubscriptionError = UnlinkTrackerSubscriptionErrors[keyof UnlinkTrackerSubscriptionErrors];
359
+ export type UnlinkTrackerSubscriptionResponses = {
360
+ /**
361
+ * OK
362
+ */
363
+ 200: CommandSuccess;
364
+ };
365
+ export type UnlinkTrackerSubscriptionResponse = UnlinkTrackerSubscriptionResponses[keyof UnlinkTrackerSubscriptionResponses];
366
+ export type LinkTrackerSubscriptionData = {
367
+ body: SubscriptionChangeRequest;
368
+ path: {
369
+ trackerId: string;
370
+ };
371
+ query?: never;
372
+ url: "/v1/trackers/{trackerId}/subscription";
373
+ };
374
+ export type LinkTrackerSubscriptionErrors = {
375
+ /**
376
+ * Bad Request
377
+ */
378
+ 400: ProblemDetails;
379
+ /**
380
+ * Unauthorized
381
+ */
382
+ 401: ProblemDetails;
383
+ /**
384
+ * Forbidden
385
+ */
386
+ 403: ProblemDetails;
387
+ /**
388
+ * Conflict
389
+ */
390
+ 409: ProblemDetails;
391
+ /**
392
+ * Service Unavailable
393
+ */
394
+ 503: ProblemDetails;
395
+ };
396
+ export type LinkTrackerSubscriptionError = LinkTrackerSubscriptionErrors[keyof LinkTrackerSubscriptionErrors];
397
+ export type LinkTrackerSubscriptionResponses = {
398
+ /**
399
+ * OK
400
+ */
401
+ 200: CommandSuccess;
402
+ };
403
+ export type LinkTrackerSubscriptionResponse = LinkTrackerSubscriptionResponses[keyof LinkTrackerSubscriptionResponses];
404
+ export type ListTrackerPhotosData = {
405
+ body?: never;
406
+ path: {
407
+ trackerId: string;
408
+ };
409
+ query?: never;
410
+ url: "/v1/trackers/{trackerId}/photos";
411
+ };
412
+ export type ListTrackerPhotosErrors = {
413
+ /**
414
+ * Bad Request
415
+ */
416
+ 400: ProblemDetails;
417
+ /**
418
+ * Unauthorized
419
+ */
420
+ 401: ProblemDetails;
421
+ /**
422
+ * Not Found
423
+ */
424
+ 404: ProblemDetails;
425
+ /**
426
+ * Internal Server Error
427
+ */
428
+ 500: ProblemDetails;
429
+ /**
430
+ * Service Unavailable
431
+ */
432
+ 503: ProblemDetails;
433
+ };
434
+ export type ListTrackerPhotosError = ListTrackerPhotosErrors[keyof ListTrackerPhotosErrors];
435
+ export type ListTrackerPhotosResponses = {
436
+ /**
437
+ * OK
438
+ */
439
+ 200: TrackerPhotoList;
440
+ };
441
+ export type ListTrackerPhotosResponse = ListTrackerPhotosResponses[keyof ListTrackerPhotosResponses];
442
+ export type UploadTrackerPhotoData = {
443
+ body: {
444
+ file: IFormFile;
445
+ } & {
446
+ kind: string;
447
+ } & {
448
+ width: number;
449
+ } & {
450
+ height: number;
451
+ };
452
+ path: {
453
+ trackerId: string;
454
+ };
455
+ query?: never;
456
+ url: "/v1/trackers/{trackerId}/photos";
457
+ };
458
+ export type UploadTrackerPhotoErrors = {
459
+ /**
460
+ * Bad Request
461
+ */
462
+ 400: ProblemDetails;
463
+ /**
464
+ * Unauthorized
465
+ */
466
+ 401: ProblemDetails;
467
+ /**
468
+ * Not Found
469
+ */
470
+ 404: ProblemDetails;
471
+ /**
472
+ * Payload Too Large
473
+ */
474
+ 413: ProblemDetails;
475
+ /**
476
+ * Service Unavailable
477
+ */
478
+ 503: ProblemDetails;
479
+ };
480
+ export type UploadTrackerPhotoError = UploadTrackerPhotoErrors[keyof UploadTrackerPhotoErrors];
481
+ export type UploadTrackerPhotoResponses = {
482
+ /**
483
+ * OK
484
+ */
485
+ 200: PhotoUploadResult;
486
+ };
487
+ export type UploadTrackerPhotoResponse = UploadTrackerPhotoResponses[keyof UploadTrackerPhotoResponses];
488
+ export type DeleteTrackerPhotoData = {
489
+ body?: never;
490
+ path: {
491
+ trackerId: string;
492
+ photoId: string;
493
+ };
494
+ query?: never;
495
+ url: "/v1/trackers/{trackerId}/photos/{photoId}";
496
+ };
497
+ export type DeleteTrackerPhotoErrors = {
498
+ /**
499
+ * Bad Request
500
+ */
501
+ 400: ProblemDetails;
502
+ /**
503
+ * Unauthorized
504
+ */
505
+ 401: ProblemDetails;
506
+ /**
507
+ * Not Found
508
+ */
509
+ 404: ProblemDetails;
510
+ /**
511
+ * Service Unavailable
512
+ */
513
+ 503: ProblemDetails;
514
+ };
515
+ export type DeleteTrackerPhotoError = DeleteTrackerPhotoErrors[keyof DeleteTrackerPhotoErrors];
516
+ export type DeleteTrackerPhotoResponses = {
517
+ /**
518
+ * OK
519
+ */
520
+ 200: CommandSuccess;
521
+ };
522
+ export type DeleteTrackerPhotoResponse = DeleteTrackerPhotoResponses[keyof DeleteTrackerPhotoResponses];
38
523
  export type ListTrackersData = {
39
524
  body?: never;
40
525
  path?: never;
@@ -149,4 +634,1386 @@ export type GetTrackerResponses = {
149
634
  200: TrackerSummary;
150
635
  };
151
636
  export type GetTrackerResponse = GetTrackerResponses[keyof GetTrackerResponses];
637
+ export type GetTrackerPositionsData = {
638
+ body?: never;
639
+ path: {
640
+ trackerId: string;
641
+ };
642
+ query?: never;
643
+ url: "/v1/trackers/{trackerId}/positions";
644
+ };
645
+ export type GetTrackerPositionsErrors = {
646
+ /**
647
+ * Bad Request
648
+ */
649
+ 400: ProblemDetails;
650
+ /**
651
+ * Unauthorized
652
+ */
653
+ 401: ProblemDetails;
654
+ /**
655
+ * Not Found
656
+ */
657
+ 404: ProblemDetails;
658
+ /**
659
+ * Internal Server Error
660
+ */
661
+ 500: ProblemDetails;
662
+ /**
663
+ * Service Unavailable
664
+ */
665
+ 503: ProblemDetails;
666
+ };
667
+ export type GetTrackerPositionsError = GetTrackerPositionsErrors[keyof GetTrackerPositionsErrors];
668
+ export type GetTrackerPositionsResponses = {
669
+ /**
670
+ * OK
671
+ */
672
+ 200: TrackerPositionState;
673
+ };
674
+ export type GetTrackerPositionsResponse = GetTrackerPositionsResponses[keyof GetTrackerPositionsResponses];
675
+ export type SubscribeTrackerPositionsData = {
676
+ body?: never;
677
+ path: {
678
+ trackerId: string;
679
+ };
680
+ query?: never;
681
+ url: "/v1/trackers/{trackerId}/positions/stream";
682
+ };
683
+ export type SubscribeTrackerPositionsErrors = {
684
+ /**
685
+ * Bad Request
686
+ */
687
+ 400: ProblemDetails;
688
+ /**
689
+ * Unauthorized
690
+ */
691
+ 401: ProblemDetails;
692
+ /**
693
+ * Not Found
694
+ */
695
+ 404: ProblemDetails;
696
+ /**
697
+ * Internal Server Error
698
+ */
699
+ 500: ProblemDetails;
700
+ /**
701
+ * Service Unavailable
702
+ */
703
+ 503: ProblemDetails;
704
+ };
705
+ export type SubscribeTrackerPositionsError = SubscribeTrackerPositionsErrors[keyof SubscribeTrackerPositionsErrors];
706
+ export type SubscribeTrackerPositionsResponses = {
707
+ /**
708
+ * OK
709
+ */
710
+ 200: TrackerPositionState | null;
711
+ };
712
+ export type SubscribeTrackerPositionsResponse = SubscribeTrackerPositionsResponses[keyof SubscribeTrackerPositionsResponses];
713
+ export type SubscribeTrackerPhotosData = {
714
+ body?: never;
715
+ path: {
716
+ trackerId: string;
717
+ };
718
+ query?: never;
719
+ url: "/v1/trackers/{trackerId}/photos/stream";
720
+ };
721
+ export type SubscribeTrackerPhotosErrors = {
722
+ /**
723
+ * Bad Request
724
+ */
725
+ 400: ProblemDetails;
726
+ /**
727
+ * Unauthorized
728
+ */
729
+ 401: ProblemDetails;
730
+ /**
731
+ * Not Found
732
+ */
733
+ 404: ProblemDetails;
734
+ /**
735
+ * Internal Server Error
736
+ */
737
+ 500: ProblemDetails;
738
+ /**
739
+ * Service Unavailable
740
+ */
741
+ 503: ProblemDetails;
742
+ };
743
+ export type SubscribeTrackerPhotosError = SubscribeTrackerPhotosErrors[keyof SubscribeTrackerPhotosErrors];
744
+ export type SubscribeTrackerPhotosResponses = {
745
+ /**
746
+ * OK
747
+ */
748
+ 200: TrackerPhotoList | null;
749
+ };
750
+ export type SubscribeTrackerPhotosResponse = SubscribeTrackerPhotosResponses[keyof SubscribeTrackerPhotosResponses];
751
+ export type RequestTrackerModeData = {
752
+ body: TrackerModeRequest;
753
+ path: {
754
+ trackerId: string;
755
+ };
756
+ query?: never;
757
+ url: "/v1/trackers/{trackerId}/mode-requests";
758
+ };
759
+ export type RequestTrackerModeErrors = {
760
+ /**
761
+ * Bad Request
762
+ */
763
+ 400: ProblemDetails;
764
+ /**
765
+ * Unauthorized
766
+ */
767
+ 401: ProblemDetails;
768
+ /**
769
+ * Forbidden
770
+ */
771
+ 403: ProblemDetails;
772
+ /**
773
+ * Not Found
774
+ */
775
+ 404: ProblemDetails;
776
+ /**
777
+ * Conflict
778
+ */
779
+ 409: ProblemDetails;
780
+ /**
781
+ * Too Many Requests
782
+ */
783
+ 429: ProblemDetails;
784
+ /**
785
+ * Bad Gateway
786
+ */
787
+ 502: ProblemDetails;
788
+ /**
789
+ * Service Unavailable
790
+ */
791
+ 503: ProblemDetails;
792
+ };
793
+ export type RequestTrackerModeError = RequestTrackerModeErrors[keyof RequestTrackerModeErrors];
794
+ export type RequestTrackerModeResponses = {
795
+ /**
796
+ * OK
797
+ */
798
+ 200: TrackerModeResult;
799
+ };
800
+ export type RequestTrackerModeResponse = RequestTrackerModeResponses[keyof RequestTrackerModeResponses];
801
+ export type CheckTrackerClaimabilityData = {
802
+ body: TrackerClaimabilityRequest;
803
+ path?: never;
804
+ query?: never;
805
+ url: "/v1/trackers/claimability";
806
+ };
807
+ export type CheckTrackerClaimabilityErrors = {
808
+ /**
809
+ * Bad Request
810
+ */
811
+ 400: ProblemDetails;
812
+ /**
813
+ * Unauthorized
814
+ */
815
+ 401: ProblemDetails;
816
+ /**
817
+ * Forbidden
818
+ */
819
+ 403: ProblemDetails;
820
+ /**
821
+ * Not Found
822
+ */
823
+ 404: ProblemDetails;
824
+ /**
825
+ * Conflict
826
+ */
827
+ 409: ProblemDetails;
828
+ /**
829
+ * Too Many Requests
830
+ */
831
+ 429: ProblemDetails;
832
+ /**
833
+ * Bad Gateway
834
+ */
835
+ 502: ProblemDetails;
836
+ /**
837
+ * Service Unavailable
838
+ */
839
+ 503: ProblemDetails;
840
+ };
841
+ export type CheckTrackerClaimabilityError = CheckTrackerClaimabilityErrors[keyof CheckTrackerClaimabilityErrors];
842
+ export type CheckTrackerClaimabilityResponses = {
843
+ /**
844
+ * OK
845
+ */
846
+ 200: {
847
+ [key: string]: boolean;
848
+ };
849
+ };
850
+ export type CheckTrackerClaimabilityResponse = CheckTrackerClaimabilityResponses[keyof CheckTrackerClaimabilityResponses];
851
+ export type ClaimTrackerOwnershipData = {
852
+ body: ClaimTrackerOwnershipRequest;
853
+ path: {
854
+ trackerId: string;
855
+ };
856
+ query?: never;
857
+ url: "/v1/trackers/{trackerId}/ownership-claims";
858
+ };
859
+ export type ClaimTrackerOwnershipErrors = {
860
+ /**
861
+ * Bad Request
862
+ */
863
+ 400: ProblemDetails;
864
+ /**
865
+ * Unauthorized
866
+ */
867
+ 401: ProblemDetails;
868
+ /**
869
+ * Forbidden
870
+ */
871
+ 403: ProblemDetails;
872
+ /**
873
+ * Not Found
874
+ */
875
+ 404: ProblemDetails;
876
+ /**
877
+ * Conflict
878
+ */
879
+ 409: ProblemDetails;
880
+ /**
881
+ * Too Many Requests
882
+ */
883
+ 429: ProblemDetails;
884
+ /**
885
+ * Bad Gateway
886
+ */
887
+ 502: ProblemDetails;
888
+ /**
889
+ * Service Unavailable
890
+ */
891
+ 503: ProblemDetails;
892
+ };
893
+ export type ClaimTrackerOwnershipError = ClaimTrackerOwnershipErrors[keyof ClaimTrackerOwnershipErrors];
894
+ export type ClaimTrackerOwnershipResponses = {
895
+ /**
896
+ * OK
897
+ */
898
+ 200: CommandSuccess;
899
+ };
900
+ export type ClaimTrackerOwnershipResponse = ClaimTrackerOwnershipResponses[keyof ClaimTrackerOwnershipResponses];
901
+ export type ClaimTrackerGuestAccessData = {
902
+ body: ClaimTrackerGuestAccessRequest;
903
+ path: {
904
+ trackerId: string;
905
+ };
906
+ query?: never;
907
+ url: "/v1/trackers/{trackerId}/guest-claims";
908
+ };
909
+ export type ClaimTrackerGuestAccessErrors = {
910
+ /**
911
+ * Bad Request
912
+ */
913
+ 400: ProblemDetails;
914
+ /**
915
+ * Unauthorized
916
+ */
917
+ 401: ProblemDetails;
918
+ /**
919
+ * Forbidden
920
+ */
921
+ 403: ProblemDetails;
922
+ /**
923
+ * Not Found
924
+ */
925
+ 404: ProblemDetails;
926
+ /**
927
+ * Conflict
928
+ */
929
+ 409: ProblemDetails;
930
+ /**
931
+ * Too Many Requests
932
+ */
933
+ 429: ProblemDetails;
934
+ /**
935
+ * Bad Gateway
936
+ */
937
+ 502: ProblemDetails;
938
+ /**
939
+ * Service Unavailable
940
+ */
941
+ 503: ProblemDetails;
942
+ };
943
+ export type ClaimTrackerGuestAccessError = ClaimTrackerGuestAccessErrors[keyof ClaimTrackerGuestAccessErrors];
944
+ export type ClaimTrackerGuestAccessResponses = {
945
+ /**
946
+ * OK
947
+ */
948
+ 200: CommandSuccess;
949
+ };
950
+ export type ClaimTrackerGuestAccessResponse = ClaimTrackerGuestAccessResponses[keyof ClaimTrackerGuestAccessResponses];
951
+ export type CreateTrackerInvitationData = {
952
+ body?: never;
953
+ path: {
954
+ trackerId: string;
955
+ };
956
+ query?: never;
957
+ url: "/v1/trackers/{trackerId}/invitations";
958
+ };
959
+ export type CreateTrackerInvitationErrors = {
960
+ /**
961
+ * Bad Request
962
+ */
963
+ 400: ProblemDetails;
964
+ /**
965
+ * Unauthorized
966
+ */
967
+ 401: ProblemDetails;
968
+ /**
969
+ * Forbidden
970
+ */
971
+ 403: ProblemDetails;
972
+ /**
973
+ * Not Found
974
+ */
975
+ 404: ProblemDetails;
976
+ /**
977
+ * Conflict
978
+ */
979
+ 409: ProblemDetails;
980
+ /**
981
+ * Too Many Requests
982
+ */
983
+ 429: ProblemDetails;
984
+ /**
985
+ * Bad Gateway
986
+ */
987
+ 502: ProblemDetails;
988
+ /**
989
+ * Service Unavailable
990
+ */
991
+ 503: ProblemDetails;
992
+ };
993
+ export type CreateTrackerInvitationError = CreateTrackerInvitationErrors[keyof CreateTrackerInvitationErrors];
994
+ export type CreateTrackerInvitationResponses = {
995
+ /**
996
+ * OK
997
+ */
998
+ 200: TrackerInvitation;
999
+ };
1000
+ export type CreateTrackerInvitationResponse = CreateTrackerInvitationResponses[keyof CreateTrackerInvitationResponses];
1001
+ export type RevokeTrackerInvitationData = {
1002
+ body?: never;
1003
+ path: {
1004
+ trackerId: string;
1005
+ accessCode: string;
1006
+ };
1007
+ query?: never;
1008
+ url: "/v1/trackers/{trackerId}/invitations/{accessCode}";
1009
+ };
1010
+ export type RevokeTrackerInvitationErrors = {
1011
+ /**
1012
+ * Bad Request
1013
+ */
1014
+ 400: ProblemDetails;
1015
+ /**
1016
+ * Unauthorized
1017
+ */
1018
+ 401: ProblemDetails;
1019
+ /**
1020
+ * Forbidden
1021
+ */
1022
+ 403: ProblemDetails;
1023
+ /**
1024
+ * Not Found
1025
+ */
1026
+ 404: ProblemDetails;
1027
+ /**
1028
+ * Conflict
1029
+ */
1030
+ 409: ProblemDetails;
1031
+ /**
1032
+ * Too Many Requests
1033
+ */
1034
+ 429: ProblemDetails;
1035
+ /**
1036
+ * Bad Gateway
1037
+ */
1038
+ 502: ProblemDetails;
1039
+ /**
1040
+ * Service Unavailable
1041
+ */
1042
+ 503: ProblemDetails;
1043
+ };
1044
+ export type RevokeTrackerInvitationError = RevokeTrackerInvitationErrors[keyof RevokeTrackerInvitationErrors];
1045
+ export type RevokeTrackerInvitationResponses = {
1046
+ /**
1047
+ * OK
1048
+ */
1049
+ 200: CommandSuccess;
1050
+ };
1051
+ export type RevokeTrackerInvitationResponse = RevokeTrackerInvitationResponses[keyof RevokeTrackerInvitationResponses];
1052
+ export type RemoveTrackerMembershipData = {
1053
+ body: RemoveTrackerMembershipRequest;
1054
+ path: {
1055
+ trackerId: string;
1056
+ };
1057
+ query?: never;
1058
+ url: "/v1/trackers/{trackerId}/membership-removals";
1059
+ };
1060
+ export type RemoveTrackerMembershipErrors = {
1061
+ /**
1062
+ * Bad Request
1063
+ */
1064
+ 400: ProblemDetails;
1065
+ /**
1066
+ * Unauthorized
1067
+ */
1068
+ 401: ProblemDetails;
1069
+ /**
1070
+ * Forbidden
1071
+ */
1072
+ 403: ProblemDetails;
1073
+ /**
1074
+ * Not Found
1075
+ */
1076
+ 404: ProblemDetails;
1077
+ /**
1078
+ * Conflict
1079
+ */
1080
+ 409: ProblemDetails;
1081
+ /**
1082
+ * Too Many Requests
1083
+ */
1084
+ 429: ProblemDetails;
1085
+ /**
1086
+ * Bad Gateway
1087
+ */
1088
+ 502: ProblemDetails;
1089
+ /**
1090
+ * Service Unavailable
1091
+ */
1092
+ 503: ProblemDetails;
1093
+ };
1094
+ export type RemoveTrackerMembershipError = RemoveTrackerMembershipErrors[keyof RemoveTrackerMembershipErrors];
1095
+ export type RemoveTrackerMembershipResponses = {
1096
+ /**
1097
+ * OK
1098
+ */
1099
+ 200: CommandSuccess;
1100
+ };
1101
+ export type RemoveTrackerMembershipResponse = RemoveTrackerMembershipResponses[keyof RemoveTrackerMembershipResponses];
1102
+ export type UpdateTrackerBikeData = {
1103
+ body: UpdateTrackerBikeRequest;
1104
+ path: {
1105
+ trackerId: string;
1106
+ };
1107
+ query?: never;
1108
+ url: "/v1/trackers/{trackerId}/bike";
1109
+ };
1110
+ export type UpdateTrackerBikeErrors = {
1111
+ /**
1112
+ * Bad Request
1113
+ */
1114
+ 400: ProblemDetails;
1115
+ /**
1116
+ * Unauthorized
1117
+ */
1118
+ 401: ProblemDetails;
1119
+ /**
1120
+ * Forbidden
1121
+ */
1122
+ 403: ProblemDetails;
1123
+ /**
1124
+ * Not Found
1125
+ */
1126
+ 404: ProblemDetails;
1127
+ /**
1128
+ * Conflict
1129
+ */
1130
+ 409: ProblemDetails;
1131
+ /**
1132
+ * Too Many Requests
1133
+ */
1134
+ 429: ProblemDetails;
1135
+ /**
1136
+ * Bad Gateway
1137
+ */
1138
+ 502: ProblemDetails;
1139
+ /**
1140
+ * Service Unavailable
1141
+ */
1142
+ 503: ProblemDetails;
1143
+ };
1144
+ export type UpdateTrackerBikeError = UpdateTrackerBikeErrors[keyof UpdateTrackerBikeErrors];
1145
+ export type UpdateTrackerBikeResponses = {
1146
+ /**
1147
+ * OK
1148
+ */
1149
+ 200: TrackerBikeDetails;
1150
+ };
1151
+ export type UpdateTrackerBikeResponse = UpdateTrackerBikeResponses[keyof UpdateTrackerBikeResponses];
1152
+ export type SubmitTrackerTheftReportData = {
1153
+ body: SubmitTrackerTheftReportRequest;
1154
+ path: {
1155
+ trackerId: string;
1156
+ };
1157
+ query?: never;
1158
+ url: "/v1/trackers/{trackerId}/theft-reports";
1159
+ };
1160
+ export type SubmitTrackerTheftReportErrors = {
1161
+ /**
1162
+ * Bad Request
1163
+ */
1164
+ 400: ProblemDetails;
1165
+ /**
1166
+ * Unauthorized
1167
+ */
1168
+ 401: ProblemDetails;
1169
+ /**
1170
+ * Forbidden
1171
+ */
1172
+ 403: ProblemDetails;
1173
+ /**
1174
+ * Not Found
1175
+ */
1176
+ 404: ProblemDetails;
1177
+ /**
1178
+ * Conflict
1179
+ */
1180
+ 409: ProblemDetails;
1181
+ /**
1182
+ * Too Many Requests
1183
+ */
1184
+ 429: ProblemDetails;
1185
+ /**
1186
+ * Bad Gateway
1187
+ */
1188
+ 502: ProblemDetails;
1189
+ /**
1190
+ * Service Unavailable
1191
+ */
1192
+ 503: ProblemDetails;
1193
+ };
1194
+ export type SubmitTrackerTheftReportError = SubmitTrackerTheftReportErrors[keyof SubmitTrackerTheftReportErrors];
1195
+ export type SubmitTrackerTheftReportResponses = {
1196
+ /**
1197
+ * OK
1198
+ */
1199
+ 200: TrackerTheftReportResult;
1200
+ };
1201
+ export type SubmitTrackerTheftReportResponse = SubmitTrackerTheftReportResponses[keyof SubmitTrackerTheftReportResponses];
1202
+ export type GetTrackerBluetoothCredentialsData = {
1203
+ body?: never;
1204
+ path: {
1205
+ trackerId: string;
1206
+ };
1207
+ query?: never;
1208
+ url: "/v1/trackers/{trackerId}/bluetooth/credentials";
1209
+ };
1210
+ export type GetTrackerBluetoothCredentialsErrors = {
1211
+ /**
1212
+ * Bad Request
1213
+ */
1214
+ 400: ProblemDetails;
1215
+ /**
1216
+ * Unauthorized
1217
+ */
1218
+ 401: ProblemDetails;
1219
+ /**
1220
+ * Forbidden
1221
+ */
1222
+ 403: ProblemDetails;
1223
+ /**
1224
+ * Not Found
1225
+ */
1226
+ 404: ProblemDetails;
1227
+ /**
1228
+ * Conflict
1229
+ */
1230
+ 409: ProblemDetails;
1231
+ /**
1232
+ * Too Many Requests
1233
+ */
1234
+ 429: ProblemDetails;
1235
+ /**
1236
+ * Bad Gateway
1237
+ */
1238
+ 502: ProblemDetails;
1239
+ /**
1240
+ * Service Unavailable
1241
+ */
1242
+ 503: ProblemDetails;
1243
+ };
1244
+ export type GetTrackerBluetoothCredentialsError = GetTrackerBluetoothCredentialsErrors[keyof GetTrackerBluetoothCredentialsErrors];
1245
+ export type GetTrackerBluetoothCredentialsResponses = {
1246
+ /**
1247
+ * OK
1248
+ */
1249
+ 200: TrackerBluetoothCredentials;
1250
+ };
1251
+ export type GetTrackerBluetoothCredentialsResponse = GetTrackerBluetoothCredentialsResponses[keyof GetTrackerBluetoothCredentialsResponses];
1252
+ export type UpdateTrackerBluetoothPinData = {
1253
+ body: UpdateBluetoothPinRequest;
1254
+ path: {
1255
+ trackerId: string;
1256
+ };
1257
+ query?: never;
1258
+ url: "/v1/trackers/{trackerId}/bluetooth/pin";
1259
+ };
1260
+ export type UpdateTrackerBluetoothPinErrors = {
1261
+ /**
1262
+ * Bad Request
1263
+ */
1264
+ 400: ProblemDetails;
1265
+ /**
1266
+ * Unauthorized
1267
+ */
1268
+ 401: ProblemDetails;
1269
+ /**
1270
+ * Forbidden
1271
+ */
1272
+ 403: ProblemDetails;
1273
+ /**
1274
+ * Not Found
1275
+ */
1276
+ 404: ProblemDetails;
1277
+ /**
1278
+ * Conflict
1279
+ */
1280
+ 409: ProblemDetails;
1281
+ /**
1282
+ * Too Many Requests
1283
+ */
1284
+ 429: ProblemDetails;
1285
+ /**
1286
+ * Bad Gateway
1287
+ */
1288
+ 502: ProblemDetails;
1289
+ /**
1290
+ * Service Unavailable
1291
+ */
1292
+ 503: ProblemDetails;
1293
+ };
1294
+ export type UpdateTrackerBluetoothPinError = UpdateTrackerBluetoothPinErrors[keyof UpdateTrackerBluetoothPinErrors];
1295
+ export type UpdateTrackerBluetoothPinResponses = {
1296
+ /**
1297
+ * OK
1298
+ */
1299
+ 200: CommandSuccess;
1300
+ };
1301
+ export type UpdateTrackerBluetoothPinResponse = UpdateTrackerBluetoothPinResponses[keyof UpdateTrackerBluetoothPinResponses];
1302
+ export type ReportTrackerBluetoothBatteryData = {
1303
+ body: BluetoothBatteryRequest;
1304
+ path: {
1305
+ trackerId: string;
1306
+ };
1307
+ query?: never;
1308
+ url: "/v1/trackers/{trackerId}/bluetooth/battery-observations";
1309
+ };
1310
+ export type ReportTrackerBluetoothBatteryErrors = {
1311
+ /**
1312
+ * Bad Request
1313
+ */
1314
+ 400: ProblemDetails;
1315
+ /**
1316
+ * Unauthorized
1317
+ */
1318
+ 401: ProblemDetails;
1319
+ /**
1320
+ * Forbidden
1321
+ */
1322
+ 403: ProblemDetails;
1323
+ /**
1324
+ * Not Found
1325
+ */
1326
+ 404: ProblemDetails;
1327
+ /**
1328
+ * Conflict
1329
+ */
1330
+ 409: ProblemDetails;
1331
+ /**
1332
+ * Too Many Requests
1333
+ */
1334
+ 429: ProblemDetails;
1335
+ /**
1336
+ * Bad Gateway
1337
+ */
1338
+ 502: ProblemDetails;
1339
+ /**
1340
+ * Service Unavailable
1341
+ */
1342
+ 503: ProblemDetails;
1343
+ };
1344
+ export type ReportTrackerBluetoothBatteryError = ReportTrackerBluetoothBatteryErrors[keyof ReportTrackerBluetoothBatteryErrors];
1345
+ export type ReportTrackerBluetoothBatteryResponses = {
1346
+ /**
1347
+ * OK
1348
+ */
1349
+ 200: CommandSuccess;
1350
+ };
1351
+ export type ReportTrackerBluetoothBatteryResponse = ReportTrackerBluetoothBatteryResponses[keyof ReportTrackerBluetoothBatteryResponses];
1352
+ export type ReportTrackerBluetoothCommandData = {
1353
+ body: BluetoothCommandReport;
1354
+ path: {
1355
+ trackerId: string;
1356
+ };
1357
+ query?: never;
1358
+ url: "/v1/trackers/{trackerId}/bluetooth/command-results";
1359
+ };
1360
+ export type ReportTrackerBluetoothCommandErrors = {
1361
+ /**
1362
+ * Bad Request
1363
+ */
1364
+ 400: ProblemDetails;
1365
+ /**
1366
+ * Unauthorized
1367
+ */
1368
+ 401: ProblemDetails;
1369
+ /**
1370
+ * Forbidden
1371
+ */
1372
+ 403: ProblemDetails;
1373
+ /**
1374
+ * Not Found
1375
+ */
1376
+ 404: ProblemDetails;
1377
+ /**
1378
+ * Conflict
1379
+ */
1380
+ 409: ProblemDetails;
1381
+ /**
1382
+ * Too Many Requests
1383
+ */
1384
+ 429: ProblemDetails;
1385
+ /**
1386
+ * Bad Gateway
1387
+ */
1388
+ 502: ProblemDetails;
1389
+ /**
1390
+ * Service Unavailable
1391
+ */
1392
+ 503: ProblemDetails;
1393
+ };
1394
+ export type ReportTrackerBluetoothCommandError = ReportTrackerBluetoothCommandErrors[keyof ReportTrackerBluetoothCommandErrors];
1395
+ export type ReportTrackerBluetoothCommandResponses = {
1396
+ /**
1397
+ * OK
1398
+ */
1399
+ 200: CommandSuccess;
1400
+ };
1401
+ export type ReportTrackerBluetoothCommandResponse = ReportTrackerBluetoothCommandResponses[keyof ReportTrackerBluetoothCommandResponses];
1402
+ export type UploadTrackerBluetoothObservationData = {
1403
+ body: BluetoothObservationRequest;
1404
+ path: {
1405
+ trackerId: string;
1406
+ };
1407
+ query?: never;
1408
+ url: "/v1/trackers/{trackerId}/bluetooth/observations";
1409
+ };
1410
+ export type UploadTrackerBluetoothObservationErrors = {
1411
+ /**
1412
+ * Bad Request
1413
+ */
1414
+ 400: ProblemDetails;
1415
+ /**
1416
+ * Unauthorized
1417
+ */
1418
+ 401: ProblemDetails;
1419
+ /**
1420
+ * Forbidden
1421
+ */
1422
+ 403: ProblemDetails;
1423
+ /**
1424
+ * Not Found
1425
+ */
1426
+ 404: ProblemDetails;
1427
+ /**
1428
+ * Conflict
1429
+ */
1430
+ 409: ProblemDetails;
1431
+ /**
1432
+ * Too Many Requests
1433
+ */
1434
+ 429: ProblemDetails;
1435
+ /**
1436
+ * Bad Gateway
1437
+ */
1438
+ 502: ProblemDetails;
1439
+ /**
1440
+ * Service Unavailable
1441
+ */
1442
+ 503: ProblemDetails;
1443
+ };
1444
+ export type UploadTrackerBluetoothObservationError = UploadTrackerBluetoothObservationErrors[keyof UploadTrackerBluetoothObservationErrors];
1445
+ export type UploadTrackerBluetoothObservationResponses = {
1446
+ /**
1447
+ * OK
1448
+ */
1449
+ 200: BluetoothObservationResult;
1450
+ };
1451
+ export type UploadTrackerBluetoothObservationResponse = UploadTrackerBluetoothObservationResponses[keyof UploadTrackerBluetoothObservationResponses];
1452
+ export type ReportTrackerFactoryResetData = {
1453
+ body?: never;
1454
+ path: {
1455
+ trackerId: string;
1456
+ };
1457
+ query?: never;
1458
+ url: "/v1/trackers/{trackerId}/bluetooth/factory-reset-reports";
1459
+ };
1460
+ export type ReportTrackerFactoryResetErrors = {
1461
+ /**
1462
+ * Bad Request
1463
+ */
1464
+ 400: ProblemDetails;
1465
+ /**
1466
+ * Unauthorized
1467
+ */
1468
+ 401: ProblemDetails;
1469
+ /**
1470
+ * Forbidden
1471
+ */
1472
+ 403: ProblemDetails;
1473
+ /**
1474
+ * Not Found
1475
+ */
1476
+ 404: ProblemDetails;
1477
+ /**
1478
+ * Conflict
1479
+ */
1480
+ 409: ProblemDetails;
1481
+ /**
1482
+ * Too Many Requests
1483
+ */
1484
+ 429: ProblemDetails;
1485
+ /**
1486
+ * Bad Gateway
1487
+ */
1488
+ 502: ProblemDetails;
1489
+ /**
1490
+ * Service Unavailable
1491
+ */
1492
+ 503: ProblemDetails;
1493
+ };
1494
+ export type ReportTrackerFactoryResetError = ReportTrackerFactoryResetErrors[keyof ReportTrackerFactoryResetErrors];
1495
+ export type ReportTrackerFactoryResetResponses = {
1496
+ /**
1497
+ * OK
1498
+ */
1499
+ 200: FactoryResetResult;
1500
+ };
1501
+ export type ReportTrackerFactoryResetResponse = ReportTrackerFactoryResetResponses[keyof ReportTrackerFactoryResetResponses];
1502
+ export type GetTrackerFirmwarePlanData = {
1503
+ body?: never;
1504
+ path: {
1505
+ trackerId: string;
1506
+ };
1507
+ query: {
1508
+ platform: string;
1509
+ build: string;
1510
+ };
1511
+ url: "/v1/trackers/{trackerId}/firmware-plan";
1512
+ };
1513
+ export type GetTrackerFirmwarePlanErrors = {
1514
+ /**
1515
+ * Bad Request
1516
+ */
1517
+ 400: ProblemDetails;
1518
+ /**
1519
+ * Unauthorized
1520
+ */
1521
+ 401: ProblemDetails;
1522
+ /**
1523
+ * Forbidden
1524
+ */
1525
+ 403: ProblemDetails;
1526
+ /**
1527
+ * Not Found
1528
+ */
1529
+ 404: ProblemDetails;
1530
+ /**
1531
+ * Conflict
1532
+ */
1533
+ 409: ProblemDetails;
1534
+ /**
1535
+ * Too Many Requests
1536
+ */
1537
+ 429: ProblemDetails;
1538
+ /**
1539
+ * Bad Gateway
1540
+ */
1541
+ 502: ProblemDetails;
1542
+ /**
1543
+ * Service Unavailable
1544
+ */
1545
+ 503: ProblemDetails;
1546
+ };
1547
+ export type GetTrackerFirmwarePlanError = GetTrackerFirmwarePlanErrors[keyof GetTrackerFirmwarePlanErrors];
1548
+ export type GetTrackerFirmwarePlanResponses = {
1549
+ /**
1550
+ * OK
1551
+ */
1552
+ 200: TrackerFirmwarePlan;
1553
+ };
1554
+ export type GetTrackerFirmwarePlanResponse = GetTrackerFirmwarePlanResponses[keyof GetTrackerFirmwarePlanResponses];
1555
+ export type CompleteTrackerFirmwareUpdateData = {
1556
+ body: CompleteFirmwareRequest;
1557
+ path: {
1558
+ trackerId: string;
1559
+ };
1560
+ query?: never;
1561
+ url: "/v1/trackers/{trackerId}/firmware-completions";
1562
+ };
1563
+ export type CompleteTrackerFirmwareUpdateErrors = {
1564
+ /**
1565
+ * Bad Request
1566
+ */
1567
+ 400: ProblemDetails;
1568
+ /**
1569
+ * Unauthorized
1570
+ */
1571
+ 401: ProblemDetails;
1572
+ /**
1573
+ * Forbidden
1574
+ */
1575
+ 403: ProblemDetails;
1576
+ /**
1577
+ * Not Found
1578
+ */
1579
+ 404: ProblemDetails;
1580
+ /**
1581
+ * Conflict
1582
+ */
1583
+ 409: ProblemDetails;
1584
+ /**
1585
+ * Too Many Requests
1586
+ */
1587
+ 429: ProblemDetails;
1588
+ /**
1589
+ * Bad Gateway
1590
+ */
1591
+ 502: ProblemDetails;
1592
+ /**
1593
+ * Service Unavailable
1594
+ */
1595
+ 503: ProblemDetails;
1596
+ };
1597
+ export type CompleteTrackerFirmwareUpdateError = CompleteTrackerFirmwareUpdateErrors[keyof CompleteTrackerFirmwareUpdateErrors];
1598
+ export type CompleteTrackerFirmwareUpdateResponses = {
1599
+ /**
1600
+ * OK
1601
+ */
1602
+ 200: CommandSuccess;
1603
+ };
1604
+ export type CompleteTrackerFirmwareUpdateResponse = CompleteTrackerFirmwareUpdateResponses[keyof CompleteTrackerFirmwareUpdateResponses];
1605
+ export type RecordTrackerFirmwareAttemptData = {
1606
+ body: RecordFirmwareAttemptRequest;
1607
+ path: {
1608
+ trackerId: string;
1609
+ };
1610
+ query?: never;
1611
+ url: "/v1/trackers/{trackerId}/firmware-attempts";
1612
+ };
1613
+ export type RecordTrackerFirmwareAttemptErrors = {
1614
+ /**
1615
+ * Bad Request
1616
+ */
1617
+ 400: ProblemDetails;
1618
+ /**
1619
+ * Unauthorized
1620
+ */
1621
+ 401: ProblemDetails;
1622
+ /**
1623
+ * Forbidden
1624
+ */
1625
+ 403: ProblemDetails;
1626
+ /**
1627
+ * Not Found
1628
+ */
1629
+ 404: ProblemDetails;
1630
+ /**
1631
+ * Conflict
1632
+ */
1633
+ 409: ProblemDetails;
1634
+ /**
1635
+ * Too Many Requests
1636
+ */
1637
+ 429: ProblemDetails;
1638
+ /**
1639
+ * Bad Gateway
1640
+ */
1641
+ 502: ProblemDetails;
1642
+ /**
1643
+ * Service Unavailable
1644
+ */
1645
+ 503: ProblemDetails;
1646
+ };
1647
+ export type RecordTrackerFirmwareAttemptError = RecordTrackerFirmwareAttemptErrors[keyof RecordTrackerFirmwareAttemptErrors];
1648
+ export type RecordTrackerFirmwareAttemptResponses = {
1649
+ /**
1650
+ * OK
1651
+ */
1652
+ 200: RecordFirmwareAttemptResult;
1653
+ };
1654
+ export type RecordTrackerFirmwareAttemptResponse = RecordTrackerFirmwareAttemptResponses[keyof RecordTrackerFirmwareAttemptResponses];
1655
+ export type GetAccountPreferencesData = {
1656
+ body?: never;
1657
+ path?: never;
1658
+ query?: never;
1659
+ url: "/v1/me/preferences";
1660
+ };
1661
+ export type GetAccountPreferencesErrors = {
1662
+ /**
1663
+ * Bad Request
1664
+ */
1665
+ 400: ProblemDetails;
1666
+ /**
1667
+ * Unauthorized
1668
+ */
1669
+ 401: ProblemDetails;
1670
+ /**
1671
+ * Not Found
1672
+ */
1673
+ 404: ProblemDetails;
1674
+ /**
1675
+ * Internal Server Error
1676
+ */
1677
+ 500: ProblemDetails;
1678
+ /**
1679
+ * Service Unavailable
1680
+ */
1681
+ 503: ProblemDetails;
1682
+ };
1683
+ export type GetAccountPreferencesError = GetAccountPreferencesErrors[keyof GetAccountPreferencesErrors];
1684
+ export type GetAccountPreferencesResponses = {
1685
+ /**
1686
+ * OK
1687
+ */
1688
+ 200: AccountPreferences;
1689
+ };
1690
+ export type GetAccountPreferencesResponse = GetAccountPreferencesResponses[keyof GetAccountPreferencesResponses];
1691
+ export type UpdateAccountPreferencesData = {
1692
+ body: UpdateAccountPreferencesRequest;
1693
+ path?: never;
1694
+ query?: never;
1695
+ url: "/v1/me/preferences";
1696
+ };
1697
+ export type UpdateAccountPreferencesErrors = {
1698
+ /**
1699
+ * Bad Request
1700
+ */
1701
+ 400: ProblemDetails;
1702
+ /**
1703
+ * Unauthorized
1704
+ */
1705
+ 401: ProblemDetails;
1706
+ /**
1707
+ * Not Found
1708
+ */
1709
+ 404: ProblemDetails;
1710
+ /**
1711
+ * Internal Server Error
1712
+ */
1713
+ 500: ProblemDetails;
1714
+ /**
1715
+ * Service Unavailable
1716
+ */
1717
+ 503: ProblemDetails;
1718
+ };
1719
+ export type UpdateAccountPreferencesError = UpdateAccountPreferencesErrors[keyof UpdateAccountPreferencesErrors];
1720
+ export type UpdateAccountPreferencesResponses = {
1721
+ /**
1722
+ * OK
1723
+ */
1724
+ 200: AccountPreferences;
1725
+ };
1726
+ export type UpdateAccountPreferencesResponse = UpdateAccountPreferencesResponses[keyof UpdateAccountPreferencesResponses];
1727
+ export type SubscribeAccountPreferencesData = {
1728
+ body?: never;
1729
+ path?: never;
1730
+ query?: never;
1731
+ url: "/v1/me/preferences/stream";
1732
+ };
1733
+ export type SubscribeAccountPreferencesErrors = {
1734
+ /**
1735
+ * Bad Request
1736
+ */
1737
+ 400: ProblemDetails;
1738
+ /**
1739
+ * Unauthorized
1740
+ */
1741
+ 401: ProblemDetails;
1742
+ /**
1743
+ * Not Found
1744
+ */
1745
+ 404: ProblemDetails;
1746
+ /**
1747
+ * Internal Server Error
1748
+ */
1749
+ 500: ProblemDetails;
1750
+ /**
1751
+ * Service Unavailable
1752
+ */
1753
+ 503: ProblemDetails;
1754
+ };
1755
+ export type SubscribeAccountPreferencesError = SubscribeAccountPreferencesErrors[keyof SubscribeAccountPreferencesErrors];
1756
+ export type SubscribeAccountPreferencesResponses = {
1757
+ /**
1758
+ * OK
1759
+ */
1760
+ 200: AccountPreferences | null;
1761
+ };
1762
+ export type SubscribeAccountPreferencesResponse = SubscribeAccountPreferencesResponses[keyof SubscribeAccountPreferencesResponses];
1763
+ export type RemovePushRegistrationData = {
1764
+ body: RemovePushRegistrationRequest;
1765
+ path?: never;
1766
+ query?: never;
1767
+ url: "/v1/me/push-registration";
1768
+ };
1769
+ export type RemovePushRegistrationErrors = {
1770
+ /**
1771
+ * Bad Request
1772
+ */
1773
+ 400: ProblemDetails;
1774
+ /**
1775
+ * Unauthorized
1776
+ */
1777
+ 401: ProblemDetails;
1778
+ /**
1779
+ * Not Found
1780
+ */
1781
+ 404: ProblemDetails;
1782
+ /**
1783
+ * Internal Server Error
1784
+ */
1785
+ 500: ProblemDetails;
1786
+ /**
1787
+ * Service Unavailable
1788
+ */
1789
+ 503: ProblemDetails;
1790
+ };
1791
+ export type RemovePushRegistrationError = RemovePushRegistrationErrors[keyof RemovePushRegistrationErrors];
1792
+ export type RemovePushRegistrationResponses = {
1793
+ /**
1794
+ * No Content
1795
+ */
1796
+ 204: void;
1797
+ };
1798
+ export type RemovePushRegistrationResponse = RemovePushRegistrationResponses[keyof RemovePushRegistrationResponses];
1799
+ export type RegisterPushRegistrationData = {
1800
+ body: RegisterPushRegistrationRequest;
1801
+ path?: never;
1802
+ query?: never;
1803
+ url: "/v1/me/push-registration";
1804
+ };
1805
+ export type RegisterPushRegistrationErrors = {
1806
+ /**
1807
+ * Bad Request
1808
+ */
1809
+ 400: ProblemDetails;
1810
+ /**
1811
+ * Unauthorized
1812
+ */
1813
+ 401: ProblemDetails;
1814
+ /**
1815
+ * Not Found
1816
+ */
1817
+ 404: ProblemDetails;
1818
+ /**
1819
+ * Internal Server Error
1820
+ */
1821
+ 500: ProblemDetails;
1822
+ /**
1823
+ * Service Unavailable
1824
+ */
1825
+ 503: ProblemDetails;
1826
+ };
1827
+ export type RegisterPushRegistrationError = RegisterPushRegistrationErrors[keyof RegisterPushRegistrationErrors];
1828
+ export type RegisterPushRegistrationResponses = {
1829
+ /**
1830
+ * No Content
1831
+ */
1832
+ 204: void;
1833
+ };
1834
+ export type RegisterPushRegistrationResponse = RegisterPushRegistrationResponses[keyof RegisterPushRegistrationResponses];
1835
+ export type RequestAccountDeletionData = {
1836
+ body?: never;
1837
+ path?: never;
1838
+ query?: never;
1839
+ url: "/v1/me/deletion-requests";
1840
+ };
1841
+ export type RequestAccountDeletionErrors = {
1842
+ /**
1843
+ * Bad Request
1844
+ */
1845
+ 400: ProblemDetails;
1846
+ /**
1847
+ * Unauthorized
1848
+ */
1849
+ 401: ProblemDetails;
1850
+ /**
1851
+ * Not Found
1852
+ */
1853
+ 404: ProblemDetails;
1854
+ /**
1855
+ * Internal Server Error
1856
+ */
1857
+ 500: ProblemDetails;
1858
+ /**
1859
+ * Service Unavailable
1860
+ */
1861
+ 503: ProblemDetails;
1862
+ };
1863
+ export type RequestAccountDeletionError = RequestAccountDeletionErrors[keyof RequestAccountDeletionErrors];
1864
+ export type RequestAccountDeletionResponses = {
1865
+ /**
1866
+ * Accepted
1867
+ */
1868
+ 202: AccountDeletionRequest;
1869
+ };
1870
+ export type RequestAccountDeletionResponse = RequestAccountDeletionResponses[keyof RequestAccountDeletionResponses];
1871
+ export type ListTrackerHistoryData = {
1872
+ body?: never;
1873
+ path: {
1874
+ trackerId: string;
1875
+ };
1876
+ query: {
1877
+ startMs: number;
1878
+ endMs: number;
1879
+ cursor?: string;
1880
+ };
1881
+ url: "/v1/trackers/{trackerId}/history";
1882
+ };
1883
+ export type ListTrackerHistoryErrors = {
1884
+ /**
1885
+ * Bad Request
1886
+ */
1887
+ 400: ProblemDetails;
1888
+ /**
1889
+ * Unauthorized
1890
+ */
1891
+ 401: ProblemDetails;
1892
+ /**
1893
+ * Not Found
1894
+ */
1895
+ 404: ProblemDetails;
1896
+ /**
1897
+ * Internal Server Error
1898
+ */
1899
+ 500: ProblemDetails;
1900
+ /**
1901
+ * Service Unavailable
1902
+ */
1903
+ 503: ProblemDetails;
1904
+ };
1905
+ export type ListTrackerHistoryError = ListTrackerHistoryErrors[keyof ListTrackerHistoryErrors];
1906
+ export type ListTrackerHistoryResponses = {
1907
+ /**
1908
+ * OK
1909
+ */
1910
+ 200: HistoryPage;
1911
+ };
1912
+ export type ListTrackerHistoryResponse = ListTrackerHistoryResponses[keyof ListTrackerHistoryResponses];
1913
+ export type ListNotificationsData = {
1914
+ body?: never;
1915
+ path?: never;
1916
+ query?: {
1917
+ cursor?: string;
1918
+ };
1919
+ url: "/v1/me/notifications";
1920
+ };
1921
+ export type ListNotificationsErrors = {
1922
+ /**
1923
+ * Bad Request
1924
+ */
1925
+ 400: ProblemDetails;
1926
+ /**
1927
+ * Unauthorized
1928
+ */
1929
+ 401: ProblemDetails;
1930
+ /**
1931
+ * Internal Server Error
1932
+ */
1933
+ 500: ProblemDetails;
1934
+ /**
1935
+ * Service Unavailable
1936
+ */
1937
+ 503: ProblemDetails;
1938
+ };
1939
+ export type ListNotificationsError = ListNotificationsErrors[keyof ListNotificationsErrors];
1940
+ export type ListNotificationsResponses = {
1941
+ /**
1942
+ * OK
1943
+ */
1944
+ 200: NotificationPage;
1945
+ };
1946
+ export type ListNotificationsResponse = ListNotificationsResponses[keyof ListNotificationsResponses];
1947
+ export type ListSubscriptionsData = {
1948
+ body?: never;
1949
+ path?: never;
1950
+ query?: never;
1951
+ url: "/v1/me/subscriptions";
1952
+ };
1953
+ export type ListSubscriptionsErrors = {
1954
+ /**
1955
+ * Bad Request
1956
+ */
1957
+ 400: ProblemDetails;
1958
+ /**
1959
+ * Unauthorized
1960
+ */
1961
+ 401: ProblemDetails;
1962
+ /**
1963
+ * Not Found
1964
+ */
1965
+ 404: ProblemDetails;
1966
+ /**
1967
+ * Internal Server Error
1968
+ */
1969
+ 500: ProblemDetails;
1970
+ /**
1971
+ * Service Unavailable
1972
+ */
1973
+ 503: ProblemDetails;
1974
+ };
1975
+ export type ListSubscriptionsError = ListSubscriptionsErrors[keyof ListSubscriptionsErrors];
1976
+ export type ListSubscriptionsResponses = {
1977
+ /**
1978
+ * OK
1979
+ */
1980
+ 200: SubscriptionList;
1981
+ };
1982
+ export type ListSubscriptionsResponse = ListSubscriptionsResponses[keyof ListSubscriptionsResponses];
1983
+ export type SubscribeSubscriptionsData = {
1984
+ body?: never;
1985
+ path?: never;
1986
+ query?: never;
1987
+ url: "/v1/me/subscriptions/stream";
1988
+ };
1989
+ export type SubscribeSubscriptionsErrors = {
1990
+ /**
1991
+ * Bad Request
1992
+ */
1993
+ 400: ProblemDetails;
1994
+ /**
1995
+ * Unauthorized
1996
+ */
1997
+ 401: ProblemDetails;
1998
+ /**
1999
+ * Not Found
2000
+ */
2001
+ 404: ProblemDetails;
2002
+ /**
2003
+ * Internal Server Error
2004
+ */
2005
+ 500: ProblemDetails;
2006
+ /**
2007
+ * Service Unavailable
2008
+ */
2009
+ 503: ProblemDetails;
2010
+ };
2011
+ export type SubscribeSubscriptionsError = SubscribeSubscriptionsErrors[keyof SubscribeSubscriptionsErrors];
2012
+ export type SubscribeSubscriptionsResponses = {
2013
+ /**
2014
+ * OK
2015
+ */
2016
+ 200: SubscriptionList | null;
2017
+ };
2018
+ export type SubscribeSubscriptionsResponse = SubscribeSubscriptionsResponses[keyof SubscribeSubscriptionsResponses];
152
2019
  //# sourceMappingURL=types.gen.d.ts.map