@bikefinder/api-client 0.3.0 → 0.4.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.
Files changed (46) hide show
  1. package/README.md +3 -1
  2. package/dist/admin/generated/index.d.ts +1 -1
  3. package/dist/admin/generated/index.d.ts.map +1 -1
  4. package/dist/admin/generated/sdk.gen.d.ts +132 -18
  5. package/dist/admin/generated/sdk.gen.d.ts.map +1 -1
  6. package/dist/admin/generated/sdk.gen.js +264 -150
  7. package/dist/admin/generated/sdk.gen.js.map +1 -1
  8. package/dist/admin/generated/types.gen.d.ts +791 -385
  9. package/dist/admin/generated/types.gen.d.ts.map +1 -1
  10. package/dist/admin/generated/zod.gen.d.ts +957 -988
  11. package/dist/admin/generated/zod.gen.d.ts.map +1 -1
  12. package/dist/admin/generated/zod.gen.js +239 -292
  13. package/dist/admin/generated/zod.gen.js.map +1 -1
  14. package/dist/generated/index.d.ts +1 -1
  15. package/dist/generated/index.d.ts.map +1 -1
  16. package/dist/generated/sdk.gen.d.ts +80 -45
  17. package/dist/generated/sdk.gen.d.ts.map +1 -1
  18. package/dist/generated/sdk.gen.js +192 -157
  19. package/dist/generated/sdk.gen.js.map +1 -1
  20. package/dist/generated/types.gen.d.ts +887 -453
  21. package/dist/generated/types.gen.d.ts.map +1 -1
  22. package/dist/generated/zod.gen.d.ts +468 -286
  23. package/dist/generated/zod.gen.d.ts.map +1 -1
  24. package/dist/generated/zod.gen.js +188 -201
  25. package/dist/generated/zod.gen.js.map +1 -1
  26. package/dist/realtime/api-stream-error.d.ts +2 -1
  27. package/dist/realtime/api-stream-error.d.ts.map +1 -1
  28. package/dist/realtime/api-stream-error.js +8 -1
  29. package/dist/realtime/api-stream-error.js.map +1 -1
  30. package/dist/realtime/watch.d.ts.map +1 -1
  31. package/dist/realtime/watch.js +1 -1
  32. package/dist/realtime/watch.js.map +1 -1
  33. package/dist/transport.js +10 -1
  34. package/dist/transport.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/admin/generated/index.ts +1 -7
  37. package/src/admin/generated/sdk.gen.ts +440 -326
  38. package/src/admin/generated/types.gen.ts +860 -464
  39. package/src/admin/generated/zod.gen.ts +259 -318
  40. package/src/generated/index.ts +6 -2
  41. package/src/generated/sdk.gen.ts +408 -373
  42. package/src/generated/types.gen.ts +956 -516
  43. package/src/generated/zod.gen.ts +217 -231
  44. package/src/realtime/api-stream-error.ts +12 -1
  45. package/src/realtime/watch.ts +6 -1
  46. package/src/transport.ts +10 -1
@@ -6,6 +6,7 @@ export type AdminAddMemberRequest = {
6
6
  description?: string;
7
7
  };
8
8
  export type AdminB2bSubscriptionRequest = {
9
+ requestId: string;
9
10
  company: string;
10
11
  streetName: string;
11
12
  postalArea: string;
@@ -13,11 +14,10 @@ export type AdminB2bSubscriptionRequest = {
13
14
  country: string;
14
15
  email: string;
15
16
  quantity: number;
16
- date: string;
17
- nextPaymentDate: string;
17
+ startsAt: string;
18
+ nextPaymentAt: string;
18
19
  tierInfo: string;
19
20
  description?: string;
20
- requestId?: null | string;
21
21
  };
22
22
  export type AdminB2bSubscriptionResult = {
23
23
  success: boolean;
@@ -40,11 +40,6 @@ export type AdminDenylistRequest = {
40
40
  expected: boolean;
41
41
  reason?: null | string;
42
42
  };
43
- export type AdminDeviceCommandResult = {
44
- success: boolean;
45
- commandId: string;
46
- jobIds: Array<string>;
47
- };
48
43
  export type AdminDocument = {
49
44
  id: string;
50
45
  fields: AdminSupportValue;
@@ -52,9 +47,7 @@ export type AdminDocument = {
52
47
  export type AdminFavoriteRequest = {
53
48
  comment: string;
54
49
  };
55
- export type AdminGeneration = "g1" | "gen2";
56
- export type AdminHistoryCollection = "data" | "images" | "logs" | "productionData" | "sanitizedData";
57
- export type AdminInsuranceProvider = "cycler" | "hepster" | "tryg";
50
+ export type AdminGeneration = "gen1" | "gen2";
58
51
  export type AdminLinkSubscriptionRequest = {
59
52
  subscriptionId: string;
60
53
  };
@@ -68,8 +61,8 @@ export type AdminLookupResult = {
68
61
  };
69
62
  export type AdminLookupUser = {
70
63
  userId: string;
71
- email?: null | string;
72
- nickname?: null | string;
64
+ email: null | string;
65
+ nickname: null | string;
73
66
  };
74
67
  export type AdminMode = "passive" | "security" | "standard" | "tracking";
75
68
  export type AdminModeRequest = {
@@ -87,10 +80,10 @@ export type AdminOperationalDomain = {
87
80
  updatedAt: AdminTimestamp;
88
81
  };
89
82
  export type AdminOperationalDomains = {
90
- battery?: null | AdminOperationalDomain;
91
- runtime?: null | AdminOperationalDomain;
92
- statistics?: null | AdminOperationalDomain;
93
- firmware?: null | AdminOperationalDomain;
83
+ battery: null | AdminOperationalDomain;
84
+ runtime: null | AdminOperationalDomain;
85
+ statistics: null | AdminOperationalDomain;
86
+ firmware: null | AdminOperationalDomain;
94
87
  };
95
88
  export type AdminOperationalState = {
96
89
  schemaVersion: number;
@@ -99,18 +92,16 @@ export type AdminOperationalState = {
99
92
  deviceCreatedAt: AdminTimestamp;
100
93
  domains: AdminOperationalDomains;
101
94
  };
102
- export type AdminPrivateDomain = "battery" | "firmware" | "runtime" | "statistics";
103
- export type AdminPublicDomain = "battery" | "configuration" | "contact" | "location";
104
95
  export type AdminPublicStates = {
105
- contact?: null | AdminDocument;
106
- battery?: null | AdminDocument;
107
- location?: null | AdminDocument;
108
- configuration?: null | AdminDocument;
96
+ contact: null | AdminDocument;
97
+ battery: null | AdminDocument;
98
+ location: null | AdminDocument;
99
+ configuration: null | AdminDocument;
109
100
  };
110
101
  export type AdminReadResult = {
111
102
  documents: Array<AdminDocument>;
112
103
  nextCursor: null | string;
113
- states?: null | AdminPublicStates;
104
+ states: null | AdminPublicStates;
114
105
  };
115
106
  export type AdminRequestId = {
116
107
  requestId: string;
@@ -121,7 +112,6 @@ export type AdminSession = {
121
112
  canWrite: boolean;
122
113
  isSalesUser: boolean;
123
114
  };
124
- export type AdminSubscriptionSearchKind = "b2b" | "uid" | "wooId";
125
115
  export type AdminSupportValue = null | boolean | string | number | {
126
116
  map: {
127
117
  [key: string]: AdminSupportValue;
@@ -155,7 +145,11 @@ export type AdminTrackerCommandRequest = {
155
145
  command: null | AdminTrackerCommand;
156
146
  expectedCommand: null | string;
157
147
  };
158
- export type AdminTrackerSearchKind = "iccid" | "imei" | "subscriptionId" | "uid";
148
+ export type AdminTrackerCommandResult = {
149
+ success: boolean;
150
+ commandId: string;
151
+ jobIds: Array<string>;
152
+ };
159
153
  export type AdminTrackerView = {
160
154
  tracker: AdminReadResult;
161
155
  operationalState: null | AdminOperationalState;
@@ -174,24 +168,28 @@ export type ProblemDetails = {
174
168
  status?: null | number;
175
169
  detail?: null | string;
176
170
  instance?: null | string;
177
- };
178
- export type AdminUploadTrackerPhotoData = {
179
- body: {
180
- file: IFormFile;
181
- } & {
182
- kind: string;
183
- } & {
184
- width: number;
185
- } & {
186
- height: number;
187
- };
188
- path: {
189
- trackerId: string;
171
+ /**
172
+ * Stable machine-readable failure code. Use status for broad handling.
173
+ */
174
+ code: string;
175
+ /**
176
+ * Request correlation identifier for support.
177
+ */
178
+ traceId: string;
179
+ /**
180
+ * Field validation messages, when request validation fails.
181
+ */
182
+ errors?: {
183
+ [key: string]: Array<string>;
190
184
  };
185
+ };
186
+ export type AdminGetSessionData = {
187
+ body?: never;
188
+ path?: never;
191
189
  query?: never;
192
- url: "/v1/admin/trackers/{trackerId}/photos";
190
+ url: "/v1/admin/session";
193
191
  };
194
- export type AdminUploadTrackerPhotoErrors = {
192
+ export type AdminGetSessionErrors = {
195
193
  /**
196
194
  * Bad Request
197
195
  */
@@ -208,30 +206,46 @@ export type AdminUploadTrackerPhotoErrors = {
208
206
  * Not Found
209
207
  */
210
208
  404: ProblemDetails;
209
+ /**
210
+ * Conflict
211
+ */
212
+ 409: ProblemDetails;
211
213
  /**
212
214
  * Payload Too Large
213
215
  */
214
216
  413: ProblemDetails;
217
+ /**
218
+ * Too Many Requests
219
+ */
220
+ 429: ProblemDetails;
221
+ /**
222
+ * Internal Server Error
223
+ */
224
+ 500: ProblemDetails;
225
+ /**
226
+ * Bad Gateway
227
+ */
228
+ 502: ProblemDetails;
215
229
  /**
216
230
  * Service Unavailable
217
231
  */
218
232
  503: ProblemDetails;
219
233
  };
220
- export type AdminUploadTrackerPhotoError = AdminUploadTrackerPhotoErrors[keyof AdminUploadTrackerPhotoErrors];
221
- export type AdminUploadTrackerPhotoResponses = {
234
+ export type AdminGetSessionError = AdminGetSessionErrors[keyof AdminGetSessionErrors];
235
+ export type AdminGetSessionResponses = {
222
236
  /**
223
237
  * OK
224
238
  */
225
- 200: PhotoUploadResult;
239
+ 200: AdminSession;
226
240
  };
227
- export type AdminUploadTrackerPhotoResponse = AdminUploadTrackerPhotoResponses[keyof AdminUploadTrackerPhotoResponses];
241
+ export type AdminGetSessionResponse = AdminGetSessionResponses[keyof AdminGetSessionResponses];
228
242
  export type AdminGetTrackerData = {
229
243
  body?: never;
230
244
  path: {
231
245
  trackerId: string;
232
246
  };
233
247
  query?: {
234
- domains?: Array<AdminPublicDomain>;
248
+ domains?: Array<"battery" | "configuration" | "contact" | "location">;
235
249
  };
236
250
  url: "/v1/admin/trackers/{trackerId}";
237
251
  };
@@ -256,10 +270,18 @@ export type AdminGetTrackerErrors = {
256
270
  * Conflict
257
271
  */
258
272
  409: ProblemDetails;
273
+ /**
274
+ * Payload Too Large
275
+ */
276
+ 413: ProblemDetails;
259
277
  /**
260
278
  * Too Many Requests
261
279
  */
262
280
  429: ProblemDetails;
281
+ /**
282
+ * Internal Server Error
283
+ */
284
+ 500: ProblemDetails;
263
285
  /**
264
286
  * Bad Gateway
265
287
  */
@@ -281,7 +303,7 @@ export type AdminSearchTrackersData = {
281
303
  body?: never;
282
304
  path?: never;
283
305
  query: {
284
- kind: AdminTrackerSearchKind;
306
+ kind: "iccid" | "imei" | "subscriptionId" | "uid";
285
307
  value: string;
286
308
  cursor?: string;
287
309
  };
@@ -308,10 +330,18 @@ export type AdminSearchTrackersErrors = {
308
330
  * Conflict
309
331
  */
310
332
  409: ProblemDetails;
333
+ /**
334
+ * Payload Too Large
335
+ */
336
+ 413: ProblemDetails;
311
337
  /**
312
338
  * Too Many Requests
313
339
  */
314
340
  429: ProblemDetails;
341
+ /**
342
+ * Internal Server Error
343
+ */
344
+ 500: ProblemDetails;
315
345
  /**
316
346
  * Bad Gateway
317
347
  */
@@ -329,15 +359,26 @@ export type AdminSearchTrackersResponses = {
329
359
  200: AdminReadResult;
330
360
  };
331
361
  export type AdminSearchTrackersResponse = AdminSearchTrackersResponses[keyof AdminSearchTrackersResponses];
332
- export type AdminGetUserData = {
362
+ export type AdminListTrackerHistoryData = {
333
363
  body?: never;
334
364
  path: {
335
- uid: string;
365
+ trackerId: string;
366
+ collection: "data" | "images" | "logs" | "productionData" | "sanitizedData";
336
367
  };
337
- query?: never;
338
- url: "/v1/admin/users/{uid}";
368
+ query?: {
369
+ /**
370
+ * Inclusive ISO timestamp with timezone.
371
+ */
372
+ from?: string;
373
+ /**
374
+ * Exclusive ISO timestamp with timezone.
375
+ */
376
+ to?: string;
377
+ cursor?: string;
378
+ };
379
+ url: "/v1/admin/trackers/{trackerId}/history/{collection}";
339
380
  };
340
- export type AdminGetUserErrors = {
381
+ export type AdminListTrackerHistoryErrors = {
341
382
  /**
342
383
  * Bad Request
343
384
  */
@@ -358,10 +399,18 @@ export type AdminGetUserErrors = {
358
399
  * Conflict
359
400
  */
360
401
  409: ProblemDetails;
402
+ /**
403
+ * Payload Too Large
404
+ */
405
+ 413: ProblemDetails;
361
406
  /**
362
407
  * Too Many Requests
363
408
  */
364
409
  429: ProblemDetails;
410
+ /**
411
+ * Internal Server Error
412
+ */
413
+ 500: ProblemDetails;
365
414
  /**
366
415
  * Bad Gateway
367
416
  */
@@ -371,23 +420,25 @@ export type AdminGetUserErrors = {
371
420
  */
372
421
  503: ProblemDetails;
373
422
  };
374
- export type AdminGetUserError = AdminGetUserErrors[keyof AdminGetUserErrors];
375
- export type AdminGetUserResponses = {
423
+ export type AdminListTrackerHistoryError = AdminListTrackerHistoryErrors[keyof AdminListTrackerHistoryErrors];
424
+ export type AdminListTrackerHistoryResponses = {
376
425
  /**
377
426
  * OK
378
427
  */
379
428
  200: AdminReadResult;
380
429
  };
381
- export type AdminGetUserResponse = AdminGetUserResponses[keyof AdminGetUserResponses];
382
- export type AdminGetSubscriptionData = {
430
+ export type AdminListTrackerHistoryResponse = AdminListTrackerHistoryResponses[keyof AdminListTrackerHistoryResponses];
431
+ export type AdminGetTrackerOperationalStateData = {
383
432
  body?: never;
384
433
  path: {
385
- subscriptionId: string;
434
+ trackerId: string;
386
435
  };
387
- query?: never;
388
- url: "/v1/admin/subscriptions/{subscriptionId}";
436
+ query: {
437
+ domains: Array<"battery" | "firmware" | "runtime" | "statistics">;
438
+ };
439
+ url: "/v1/admin/trackers/{trackerId}/operational-state";
389
440
  };
390
- export type AdminGetSubscriptionErrors = {
441
+ export type AdminGetTrackerOperationalStateErrors = {
391
442
  /**
392
443
  * Bad Request
393
444
  */
@@ -408,10 +459,18 @@ export type AdminGetSubscriptionErrors = {
408
459
  * Conflict
409
460
  */
410
461
  409: ProblemDetails;
462
+ /**
463
+ * Payload Too Large
464
+ */
465
+ 413: ProblemDetails;
411
466
  /**
412
467
  * Too Many Requests
413
468
  */
414
469
  429: ProblemDetails;
470
+ /**
471
+ * Internal Server Error
472
+ */
473
+ 500: ProblemDetails;
415
474
  /**
416
475
  * Bad Gateway
417
476
  */
@@ -421,25 +480,23 @@ export type AdminGetSubscriptionErrors = {
421
480
  */
422
481
  503: ProblemDetails;
423
482
  };
424
- export type AdminGetSubscriptionError = AdminGetSubscriptionErrors[keyof AdminGetSubscriptionErrors];
425
- export type AdminGetSubscriptionResponses = {
483
+ export type AdminGetTrackerOperationalStateError = AdminGetTrackerOperationalStateErrors[keyof AdminGetTrackerOperationalStateErrors];
484
+ export type AdminGetTrackerOperationalStateResponses = {
426
485
  /**
427
486
  * OK
428
487
  */
429
- 200: AdminReadResult;
488
+ 200: AdminOperationalState;
430
489
  };
431
- export type AdminGetSubscriptionResponse = AdminGetSubscriptionResponses[keyof AdminGetSubscriptionResponses];
432
- export type AdminSearchSubscriptionsData = {
433
- body?: never;
434
- path?: never;
435
- query: {
436
- kind: AdminSubscriptionSearchKind;
437
- value?: string;
438
- cursor?: string;
490
+ export type AdminGetTrackerOperationalStateResponse = AdminGetTrackerOperationalStateResponses[keyof AdminGetTrackerOperationalStateResponses];
491
+ export type AdminRequestTrackerModeData = {
492
+ body: AdminModeRequest;
493
+ path: {
494
+ trackerId: string;
439
495
  };
440
- url: "/v1/admin/subscriptions";
496
+ query?: never;
497
+ url: "/v1/admin/trackers/{trackerId}/mode-requests";
441
498
  };
442
- export type AdminSearchSubscriptionsErrors = {
499
+ export type AdminRequestTrackerModeErrors = {
443
500
  /**
444
501
  * Bad Request
445
502
  */
@@ -460,10 +517,22 @@ export type AdminSearchSubscriptionsErrors = {
460
517
  * Conflict
461
518
  */
462
519
  409: ProblemDetails;
520
+ /**
521
+ * Payload Too Large
522
+ */
523
+ 413: ProblemDetails;
524
+ /**
525
+ * Unsupported Media Type
526
+ */
527
+ 415: ProblemDetails;
463
528
  /**
464
529
  * Too Many Requests
465
530
  */
466
531
  429: ProblemDetails;
532
+ /**
533
+ * Internal Server Error
534
+ */
535
+ 500: ProblemDetails;
467
536
  /**
468
537
  * Bad Gateway
469
538
  */
@@ -473,26 +542,23 @@ export type AdminSearchSubscriptionsErrors = {
473
542
  */
474
543
  503: ProblemDetails;
475
544
  };
476
- export type AdminSearchSubscriptionsError = AdminSearchSubscriptionsErrors[keyof AdminSearchSubscriptionsErrors];
477
- export type AdminSearchSubscriptionsResponses = {
545
+ export type AdminRequestTrackerModeError = AdminRequestTrackerModeErrors[keyof AdminRequestTrackerModeErrors];
546
+ export type AdminRequestTrackerModeResponses = {
478
547
  /**
479
548
  * OK
480
549
  */
481
- 200: AdminReadResult;
550
+ 200: CommandSuccess;
482
551
  };
483
- export type AdminSearchSubscriptionsResponse = AdminSearchSubscriptionsResponses[keyof AdminSearchSubscriptionsResponses];
484
- export type AdminListInsuranceData = {
485
- body?: never;
552
+ export type AdminRequestTrackerModeResponse = AdminRequestTrackerModeResponses[keyof AdminRequestTrackerModeResponses];
553
+ export type AdminRequestTrackerCommandData = {
554
+ body: AdminTrackerCommandRequest;
486
555
  path: {
487
- subscriptionId: string;
488
- provider: AdminInsuranceProvider;
489
- };
490
- query?: {
491
- cursor?: string;
556
+ trackerId: string;
492
557
  };
493
- url: "/v1/admin/subscriptions/{subscriptionId}/insurance/{provider}";
558
+ query?: never;
559
+ url: "/v1/admin/trackers/{trackerId}/pending-command";
494
560
  };
495
- export type AdminListInsuranceErrors = {
561
+ export type AdminRequestTrackerCommandErrors = {
496
562
  /**
497
563
  * Bad Request
498
564
  */
@@ -513,10 +579,22 @@ export type AdminListInsuranceErrors = {
513
579
  * Conflict
514
580
  */
515
581
  409: ProblemDetails;
582
+ /**
583
+ * Payload Too Large
584
+ */
585
+ 413: ProblemDetails;
586
+ /**
587
+ * Unsupported Media Type
588
+ */
589
+ 415: ProblemDetails;
516
590
  /**
517
591
  * Too Many Requests
518
592
  */
519
593
  429: ProblemDetails;
594
+ /**
595
+ * Internal Server Error
596
+ */
597
+ 500: ProblemDetails;
520
598
  /**
521
599
  * Bad Gateway
522
600
  */
@@ -526,23 +604,23 @@ export type AdminListInsuranceErrors = {
526
604
  */
527
605
  503: ProblemDetails;
528
606
  };
529
- export type AdminListInsuranceError = AdminListInsuranceErrors[keyof AdminListInsuranceErrors];
530
- export type AdminListInsuranceResponses = {
607
+ export type AdminRequestTrackerCommandError = AdminRequestTrackerCommandErrors[keyof AdminRequestTrackerCommandErrors];
608
+ export type AdminRequestTrackerCommandResponses = {
531
609
  /**
532
610
  * OK
533
611
  */
534
- 200: AdminReadResult;
612
+ 200: CommandSuccess;
535
613
  };
536
- export type AdminListInsuranceResponse = AdminListInsuranceResponses[keyof AdminListInsuranceResponses];
537
- export type AdminListFavoritesData = {
538
- body?: never;
539
- path?: never;
540
- query?: {
541
- cursor?: string;
614
+ export type AdminRequestTrackerCommandResponse = AdminRequestTrackerCommandResponses[keyof AdminRequestTrackerCommandResponses];
615
+ export type AdminUpdateTrackerConfigurationData = {
616
+ body: AdminConfigurationRequest;
617
+ path: {
618
+ trackerId: string;
542
619
  };
543
- url: "/v1/admin/favorites";
620
+ query?: never;
621
+ url: "/v1/admin/trackers/{trackerId}/configuration";
544
622
  };
545
- export type AdminListFavoritesErrors = {
623
+ export type AdminUpdateTrackerConfigurationErrors = {
546
624
  /**
547
625
  * Bad Request
548
626
  */
@@ -563,10 +641,22 @@ export type AdminListFavoritesErrors = {
563
641
  * Conflict
564
642
  */
565
643
  409: ProblemDetails;
644
+ /**
645
+ * Payload Too Large
646
+ */
647
+ 413: ProblemDetails;
648
+ /**
649
+ * Unsupported Media Type
650
+ */
651
+ 415: ProblemDetails;
566
652
  /**
567
653
  * Too Many Requests
568
654
  */
569
655
  429: ProblemDetails;
656
+ /**
657
+ * Internal Server Error
658
+ */
659
+ 500: ProblemDetails;
570
660
  /**
571
661
  * Bad Gateway
572
662
  */
@@ -576,23 +666,23 @@ export type AdminListFavoritesErrors = {
576
666
  */
577
667
  503: ProblemDetails;
578
668
  };
579
- export type AdminListFavoritesError = AdminListFavoritesErrors[keyof AdminListFavoritesErrors];
580
- export type AdminListFavoritesResponses = {
669
+ export type AdminUpdateTrackerConfigurationError = AdminUpdateTrackerConfigurationErrors[keyof AdminUpdateTrackerConfigurationErrors];
670
+ export type AdminUpdateTrackerConfigurationResponses = {
581
671
  /**
582
672
  * OK
583
673
  */
584
- 200: AdminReadResult;
674
+ 200: CommandSuccess;
585
675
  };
586
- export type AdminListFavoritesResponse = AdminListFavoritesResponses[keyof AdminListFavoritesResponses];
587
- export type AdminDeleteFavoriteData = {
588
- body?: never;
676
+ export type AdminUpdateTrackerConfigurationResponse = AdminUpdateTrackerConfigurationResponses[keyof AdminUpdateTrackerConfigurationResponses];
677
+ export type AdminUpdateTrackerBikeData = {
678
+ body: AdminBikeRequest;
589
679
  path: {
590
680
  trackerId: string;
591
681
  };
592
682
  query?: never;
593
- url: "/v1/admin/favorites/{trackerId}";
683
+ url: "/v1/admin/trackers/{trackerId}/bike";
594
684
  };
595
- export type AdminDeleteFavoriteErrors = {
685
+ export type AdminUpdateTrackerBikeErrors = {
596
686
  /**
597
687
  * Bad Request
598
688
  */
@@ -613,10 +703,22 @@ export type AdminDeleteFavoriteErrors = {
613
703
  * Conflict
614
704
  */
615
705
  409: ProblemDetails;
706
+ /**
707
+ * Payload Too Large
708
+ */
709
+ 413: ProblemDetails;
710
+ /**
711
+ * Unsupported Media Type
712
+ */
713
+ 415: ProblemDetails;
616
714
  /**
617
715
  * Too Many Requests
618
716
  */
619
717
  429: ProblemDetails;
718
+ /**
719
+ * Internal Server Error
720
+ */
721
+ 500: ProblemDetails;
620
722
  /**
621
723
  * Bad Gateway
622
724
  */
@@ -626,23 +728,23 @@ export type AdminDeleteFavoriteErrors = {
626
728
  */
627
729
  503: ProblemDetails;
628
730
  };
629
- export type AdminDeleteFavoriteError = AdminDeleteFavoriteErrors[keyof AdminDeleteFavoriteErrors];
630
- export type AdminDeleteFavoriteResponses = {
731
+ export type AdminUpdateTrackerBikeError = AdminUpdateTrackerBikeErrors[keyof AdminUpdateTrackerBikeErrors];
732
+ export type AdminUpdateTrackerBikeResponses = {
631
733
  /**
632
734
  * OK
633
735
  */
634
736
  200: CommandSuccess;
635
737
  };
636
- export type AdminDeleteFavoriteResponse = AdminDeleteFavoriteResponses[keyof AdminDeleteFavoriteResponses];
637
- export type AdminGetFavoriteData = {
638
- body?: never;
738
+ export type AdminUpdateTrackerBikeResponse = AdminUpdateTrackerBikeResponses[keyof AdminUpdateTrackerBikeResponses];
739
+ export type AdminCleanTrackerData = {
740
+ body: AdminRequestId;
639
741
  path: {
640
742
  trackerId: string;
641
743
  };
642
744
  query?: never;
643
- url: "/v1/admin/favorites/{trackerId}";
745
+ url: "/v1/admin/trackers/{trackerId}/cleanup-requests";
644
746
  };
645
- export type AdminGetFavoriteErrors = {
747
+ export type AdminCleanTrackerErrors = {
646
748
  /**
647
749
  * Bad Request
648
750
  */
@@ -663,10 +765,22 @@ export type AdminGetFavoriteErrors = {
663
765
  * Conflict
664
766
  */
665
767
  409: ProblemDetails;
768
+ /**
769
+ * Payload Too Large
770
+ */
771
+ 413: ProblemDetails;
772
+ /**
773
+ * Unsupported Media Type
774
+ */
775
+ 415: ProblemDetails;
666
776
  /**
667
777
  * Too Many Requests
668
778
  */
669
779
  429: ProblemDetails;
780
+ /**
781
+ * Internal Server Error
782
+ */
783
+ 500: ProblemDetails;
670
784
  /**
671
785
  * Bad Gateway
672
786
  */
@@ -676,23 +790,23 @@ export type AdminGetFavoriteErrors = {
676
790
  */
677
791
  503: ProblemDetails;
678
792
  };
679
- export type AdminGetFavoriteError = AdminGetFavoriteErrors[keyof AdminGetFavoriteErrors];
680
- export type AdminGetFavoriteResponses = {
793
+ export type AdminCleanTrackerError = AdminCleanTrackerErrors[keyof AdminCleanTrackerErrors];
794
+ export type AdminCleanTrackerResponses = {
681
795
  /**
682
- * OK
796
+ * Accepted
683
797
  */
684
- 200: AdminReadResult;
798
+ 202: AdminTrackerCommandResult;
685
799
  };
686
- export type AdminGetFavoriteResponse = AdminGetFavoriteResponses[keyof AdminGetFavoriteResponses];
687
- export type AdminUpdateFavoriteCommentData = {
688
- body: AdminFavoriteRequest;
800
+ export type AdminCleanTrackerResponse = AdminCleanTrackerResponses[keyof AdminCleanTrackerResponses];
801
+ export type AdminSetTrackerDenylistData = {
802
+ body: AdminDenylistRequest;
689
803
  path: {
690
804
  trackerId: string;
691
805
  };
692
806
  query?: never;
693
- url: "/v1/admin/favorites/{trackerId}";
807
+ url: "/v1/admin/trackers/{trackerId}/denylist";
694
808
  };
695
- export type AdminUpdateFavoriteCommentErrors = {
809
+ export type AdminSetTrackerDenylistErrors = {
696
810
  /**
697
811
  * Bad Request
698
812
  */
@@ -713,10 +827,22 @@ export type AdminUpdateFavoriteCommentErrors = {
713
827
  * Conflict
714
828
  */
715
829
  409: ProblemDetails;
830
+ /**
831
+ * Payload Too Large
832
+ */
833
+ 413: ProblemDetails;
834
+ /**
835
+ * Unsupported Media Type
836
+ */
837
+ 415: ProblemDetails;
716
838
  /**
717
839
  * Too Many Requests
718
840
  */
719
841
  429: ProblemDetails;
842
+ /**
843
+ * Internal Server Error
844
+ */
845
+ 500: ProblemDetails;
720
846
  /**
721
847
  * Bad Gateway
722
848
  */
@@ -726,23 +852,23 @@ export type AdminUpdateFavoriteCommentErrors = {
726
852
  */
727
853
  503: ProblemDetails;
728
854
  };
729
- export type AdminUpdateFavoriteCommentError = AdminUpdateFavoriteCommentErrors[keyof AdminUpdateFavoriteCommentErrors];
730
- export type AdminUpdateFavoriteCommentResponses = {
855
+ export type AdminSetTrackerDenylistError = AdminSetTrackerDenylistErrors[keyof AdminSetTrackerDenylistErrors];
856
+ export type AdminSetTrackerDenylistResponses = {
731
857
  /**
732
858
  * OK
733
859
  */
734
- 200: CommandSuccess;
860
+ 200: AdminTrackerCommandResult;
735
861
  };
736
- export type AdminUpdateFavoriteCommentResponse = AdminUpdateFavoriteCommentResponses[keyof AdminUpdateFavoriteCommentResponses];
737
- export type AdminPutFavoriteData = {
738
- body: AdminFavoriteRequest;
862
+ export type AdminSetTrackerDenylistResponse = AdminSetTrackerDenylistResponses[keyof AdminSetTrackerDenylistResponses];
863
+ export type AdminNotifyTrackerData = {
864
+ body: AdminNotificationRequest;
739
865
  path: {
740
866
  trackerId: string;
741
867
  };
742
868
  query?: never;
743
- url: "/v1/admin/favorites/{trackerId}";
869
+ url: "/v1/admin/trackers/{trackerId}/notification-requests";
744
870
  };
745
- export type AdminPutFavoriteErrors = {
871
+ export type AdminNotifyTrackerErrors = {
746
872
  /**
747
873
  * Bad Request
748
874
  */
@@ -763,10 +889,22 @@ export type AdminPutFavoriteErrors = {
763
889
  * Conflict
764
890
  */
765
891
  409: ProblemDetails;
892
+ /**
893
+ * Payload Too Large
894
+ */
895
+ 413: ProblemDetails;
896
+ /**
897
+ * Unsupported Media Type
898
+ */
899
+ 415: ProblemDetails;
766
900
  /**
767
901
  * Too Many Requests
768
902
  */
769
903
  429: ProblemDetails;
904
+ /**
905
+ * Internal Server Error
906
+ */
907
+ 500: ProblemDetails;
770
908
  /**
771
909
  * Bad Gateway
772
910
  */
@@ -776,28 +914,23 @@ export type AdminPutFavoriteErrors = {
776
914
  */
777
915
  503: ProblemDetails;
778
916
  };
779
- export type AdminPutFavoriteError = AdminPutFavoriteErrors[keyof AdminPutFavoriteErrors];
780
- export type AdminPutFavoriteResponses = {
917
+ export type AdminNotifyTrackerError = AdminNotifyTrackerErrors[keyof AdminNotifyTrackerErrors];
918
+ export type AdminNotifyTrackerResponses = {
781
919
  /**
782
- * OK
920
+ * Accepted
783
921
  */
784
- 200: CommandSuccess;
922
+ 202: AdminTrackerCommandResult;
785
923
  };
786
- export type AdminPutFavoriteResponse = AdminPutFavoriteResponses[keyof AdminPutFavoriteResponses];
787
- export type AdminListTrackerHistoryData = {
788
- body?: never;
924
+ export type AdminNotifyTrackerResponse = AdminNotifyTrackerResponses[keyof AdminNotifyTrackerResponses];
925
+ export type AdminAddTrackerMemberData = {
926
+ body: AdminAddMemberRequest;
789
927
  path: {
790
928
  trackerId: string;
791
- collection: AdminHistoryCollection;
792
929
  };
793
- query?: {
794
- from?: number;
795
- to?: number;
796
- cursor?: string;
797
- };
798
- url: "/v1/admin/trackers/{trackerId}/history/{collection}";
930
+ query?: never;
931
+ url: "/v1/admin/trackers/{trackerId}/members";
799
932
  };
800
- export type AdminListTrackerHistoryErrors = {
933
+ export type AdminAddTrackerMemberErrors = {
801
934
  /**
802
935
  * Bad Request
803
936
  */
@@ -818,10 +951,22 @@ export type AdminListTrackerHistoryErrors = {
818
951
  * Conflict
819
952
  */
820
953
  409: ProblemDetails;
954
+ /**
955
+ * Payload Too Large
956
+ */
957
+ 413: ProblemDetails;
958
+ /**
959
+ * Unsupported Media Type
960
+ */
961
+ 415: ProblemDetails;
821
962
  /**
822
963
  * Too Many Requests
823
964
  */
824
965
  429: ProblemDetails;
966
+ /**
967
+ * Internal Server Error
968
+ */
969
+ 500: ProblemDetails;
825
970
  /**
826
971
  * Bad Gateway
827
972
  */
@@ -831,25 +976,24 @@ export type AdminListTrackerHistoryErrors = {
831
976
  */
832
977
  503: ProblemDetails;
833
978
  };
834
- export type AdminListTrackerHistoryError = AdminListTrackerHistoryErrors[keyof AdminListTrackerHistoryErrors];
835
- export type AdminListTrackerHistoryResponses = {
979
+ export type AdminAddTrackerMemberError = AdminAddTrackerMemberErrors[keyof AdminAddTrackerMemberErrors];
980
+ export type AdminAddTrackerMemberResponses = {
836
981
  /**
837
982
  * OK
838
983
  */
839
- 200: AdminReadResult;
984
+ 200: CommandSuccess;
840
985
  };
841
- export type AdminListTrackerHistoryResponse = AdminListTrackerHistoryResponses[keyof AdminListTrackerHistoryResponses];
842
- export type AdminGetTrackerOperationalStateData = {
986
+ export type AdminAddTrackerMemberResponse = AdminAddTrackerMemberResponses[keyof AdminAddTrackerMemberResponses];
987
+ export type AdminRemoveTrackerMemberData = {
843
988
  body?: never;
844
989
  path: {
845
990
  trackerId: string;
991
+ uid: string;
846
992
  };
847
- query: {
848
- domains: Array<AdminPrivateDomain>;
849
- };
850
- url: "/v1/admin/trackers/{trackerId}/operational-state";
993
+ query?: never;
994
+ url: "/v1/admin/trackers/{trackerId}/members/{uid}";
851
995
  };
852
- export type AdminGetTrackerOperationalStateErrors = {
996
+ export type AdminRemoveTrackerMemberErrors = {
853
997
  /**
854
998
  * Bad Request
855
999
  */
@@ -870,10 +1014,18 @@ export type AdminGetTrackerOperationalStateErrors = {
870
1014
  * Conflict
871
1015
  */
872
1016
  409: ProblemDetails;
1017
+ /**
1018
+ * Payload Too Large
1019
+ */
1020
+ 413: ProblemDetails;
873
1021
  /**
874
1022
  * Too Many Requests
875
1023
  */
876
1024
  429: ProblemDetails;
1025
+ /**
1026
+ * Internal Server Error
1027
+ */
1028
+ 500: ProblemDetails;
877
1029
  /**
878
1030
  * Bad Gateway
879
1031
  */
@@ -883,21 +1035,23 @@ export type AdminGetTrackerOperationalStateErrors = {
883
1035
  */
884
1036
  503: ProblemDetails;
885
1037
  };
886
- export type AdminGetTrackerOperationalStateError = AdminGetTrackerOperationalStateErrors[keyof AdminGetTrackerOperationalStateErrors];
887
- export type AdminGetTrackerOperationalStateResponses = {
1038
+ export type AdminRemoveTrackerMemberError = AdminRemoveTrackerMemberErrors[keyof AdminRemoveTrackerMemberErrors];
1039
+ export type AdminRemoveTrackerMemberResponses = {
888
1040
  /**
889
1041
  * OK
890
1042
  */
891
- 200: AdminOperationalState;
1043
+ 200: CommandSuccess;
892
1044
  };
893
- export type AdminGetTrackerOperationalStateResponse = AdminGetTrackerOperationalStateResponses[keyof AdminGetTrackerOperationalStateResponses];
894
- export type AdminGetSessionData = {
1045
+ export type AdminRemoveTrackerMemberResponse = AdminRemoveTrackerMemberResponses[keyof AdminRemoveTrackerMemberResponses];
1046
+ export type AdminUnlinkTrackerSubscriptionData = {
895
1047
  body?: never;
896
- path?: never;
1048
+ path: {
1049
+ trackerId: string;
1050
+ };
897
1051
  query?: never;
898
- url: "/v1/admin/session";
1052
+ url: "/v1/admin/trackers/{trackerId}/subscription";
899
1053
  };
900
- export type AdminGetSessionErrors = {
1054
+ export type AdminUnlinkTrackerSubscriptionErrors = {
901
1055
  /**
902
1056
  * Bad Request
903
1057
  */
@@ -918,10 +1072,18 @@ export type AdminGetSessionErrors = {
918
1072
  * Conflict
919
1073
  */
920
1074
  409: ProblemDetails;
1075
+ /**
1076
+ * Payload Too Large
1077
+ */
1078
+ 413: ProblemDetails;
921
1079
  /**
922
1080
  * Too Many Requests
923
1081
  */
924
1082
  429: ProblemDetails;
1083
+ /**
1084
+ * Internal Server Error
1085
+ */
1086
+ 500: ProblemDetails;
925
1087
  /**
926
1088
  * Bad Gateway
927
1089
  */
@@ -931,21 +1093,23 @@ export type AdminGetSessionErrors = {
931
1093
  */
932
1094
  503: ProblemDetails;
933
1095
  };
934
- export type AdminGetSessionError = AdminGetSessionErrors[keyof AdminGetSessionErrors];
935
- export type AdminGetSessionResponses = {
1096
+ export type AdminUnlinkTrackerSubscriptionError = AdminUnlinkTrackerSubscriptionErrors[keyof AdminUnlinkTrackerSubscriptionErrors];
1097
+ export type AdminUnlinkTrackerSubscriptionResponses = {
936
1098
  /**
937
1099
  * OK
938
1100
  */
939
- 200: AdminSession;
1101
+ 200: CommandSuccess;
940
1102
  };
941
- export type AdminGetSessionResponse = AdminGetSessionResponses[keyof AdminGetSessionResponses];
942
- export type AdminLookupUsersData = {
943
- body: AdminLookupRequest;
944
- path?: never;
1103
+ export type AdminUnlinkTrackerSubscriptionResponse = AdminUnlinkTrackerSubscriptionResponses[keyof AdminUnlinkTrackerSubscriptionResponses];
1104
+ export type AdminLinkTrackerSubscriptionData = {
1105
+ body: AdminLinkSubscriptionRequest;
1106
+ path: {
1107
+ trackerId: string;
1108
+ };
945
1109
  query?: never;
946
- url: "/v1/admin/users/lookup";
1110
+ url: "/v1/admin/trackers/{trackerId}/subscription";
947
1111
  };
948
- export type AdminLookupUsersErrors = {
1112
+ export type AdminLinkTrackerSubscriptionErrors = {
949
1113
  /**
950
1114
  * Bad Request
951
1115
  */
@@ -966,10 +1130,22 @@ export type AdminLookupUsersErrors = {
966
1130
  * Conflict
967
1131
  */
968
1132
  409: ProblemDetails;
1133
+ /**
1134
+ * Payload Too Large
1135
+ */
1136
+ 413: ProblemDetails;
1137
+ /**
1138
+ * Unsupported Media Type
1139
+ */
1140
+ 415: ProblemDetails;
969
1141
  /**
970
1142
  * Too Many Requests
971
1143
  */
972
1144
  429: ProblemDetails;
1145
+ /**
1146
+ * Internal Server Error
1147
+ */
1148
+ 500: ProblemDetails;
973
1149
  /**
974
1150
  * Bad Gateway
975
1151
  */
@@ -979,23 +1155,23 @@ export type AdminLookupUsersErrors = {
979
1155
  */
980
1156
  503: ProblemDetails;
981
1157
  };
982
- export type AdminLookupUsersError = AdminLookupUsersErrors[keyof AdminLookupUsersErrors];
983
- export type AdminLookupUsersResponses = {
1158
+ export type AdminLinkTrackerSubscriptionError = AdminLinkTrackerSubscriptionErrors[keyof AdminLinkTrackerSubscriptionErrors];
1159
+ export type AdminLinkTrackerSubscriptionResponses = {
984
1160
  /**
985
1161
  * OK
986
1162
  */
987
- 200: AdminLookupResult;
1163
+ 200: CommandSuccess;
988
1164
  };
989
- export type AdminLookupUsersResponse = AdminLookupUsersResponses[keyof AdminLookupUsersResponses];
990
- export type AdminAddTrackerMemberData = {
991
- body: AdminAddMemberRequest;
1165
+ export type AdminLinkTrackerSubscriptionResponse = AdminLinkTrackerSubscriptionResponses[keyof AdminLinkTrackerSubscriptionResponses];
1166
+ export type AdminRequestTrackerInsuranceData = {
1167
+ body: AdminRequestId;
992
1168
  path: {
993
1169
  trackerId: string;
994
1170
  };
995
1171
  query?: never;
996
- url: "/v1/admin/trackers/{trackerId}/members";
1172
+ url: "/v1/admin/trackers/{trackerId}/insurance-requests";
997
1173
  };
998
- export type AdminAddTrackerMemberErrors = {
1174
+ export type AdminRequestTrackerInsuranceErrors = {
999
1175
  /**
1000
1176
  * Bad Request
1001
1177
  */
@@ -1016,10 +1192,22 @@ export type AdminAddTrackerMemberErrors = {
1016
1192
  * Conflict
1017
1193
  */
1018
1194
  409: ProblemDetails;
1195
+ /**
1196
+ * Payload Too Large
1197
+ */
1198
+ 413: ProblemDetails;
1199
+ /**
1200
+ * Unsupported Media Type
1201
+ */
1202
+ 415: ProblemDetails;
1019
1203
  /**
1020
1204
  * Too Many Requests
1021
1205
  */
1022
1206
  429: ProblemDetails;
1207
+ /**
1208
+ * Internal Server Error
1209
+ */
1210
+ 500: ProblemDetails;
1023
1211
  /**
1024
1212
  * Bad Gateway
1025
1213
  */
@@ -1029,24 +1217,23 @@ export type AdminAddTrackerMemberErrors = {
1029
1217
  */
1030
1218
  503: ProblemDetails;
1031
1219
  };
1032
- export type AdminAddTrackerMemberError = AdminAddTrackerMemberErrors[keyof AdminAddTrackerMemberErrors];
1033
- export type AdminAddTrackerMemberResponses = {
1220
+ export type AdminRequestTrackerInsuranceError = AdminRequestTrackerInsuranceErrors[keyof AdminRequestTrackerInsuranceErrors];
1221
+ export type AdminRequestTrackerInsuranceResponses = {
1034
1222
  /**
1035
- * OK
1223
+ * Accepted
1036
1224
  */
1037
- 200: CommandSuccess;
1225
+ 202: CommandSuccess;
1038
1226
  };
1039
- export type AdminAddTrackerMemberResponse = AdminAddTrackerMemberResponses[keyof AdminAddTrackerMemberResponses];
1040
- export type AdminRemoveTrackerMemberData = {
1041
- body?: never;
1227
+ export type AdminRequestTrackerInsuranceResponse = AdminRequestTrackerInsuranceResponses[keyof AdminRequestTrackerInsuranceResponses];
1228
+ export type AdminReconcileTrackerSubscriptionData = {
1229
+ body: AdminRequestId;
1042
1230
  path: {
1043
1231
  trackerId: string;
1044
- uid: string;
1045
1232
  };
1046
1233
  query?: never;
1047
- url: "/v1/admin/trackers/{trackerId}/members/{uid}";
1234
+ url: "/v1/admin/trackers/{trackerId}/subscription/reconciliation-requests";
1048
1235
  };
1049
- export type AdminRemoveTrackerMemberErrors = {
1236
+ export type AdminReconcileTrackerSubscriptionErrors = {
1050
1237
  /**
1051
1238
  * Bad Request
1052
1239
  */
@@ -1067,10 +1254,22 @@ export type AdminRemoveTrackerMemberErrors = {
1067
1254
  * Conflict
1068
1255
  */
1069
1256
  409: ProblemDetails;
1257
+ /**
1258
+ * Payload Too Large
1259
+ */
1260
+ 413: ProblemDetails;
1261
+ /**
1262
+ * Unsupported Media Type
1263
+ */
1264
+ 415: ProblemDetails;
1070
1265
  /**
1071
1266
  * Too Many Requests
1072
1267
  */
1073
1268
  429: ProblemDetails;
1269
+ /**
1270
+ * Internal Server Error
1271
+ */
1272
+ 500: ProblemDetails;
1074
1273
  /**
1075
1274
  * Bad Gateway
1076
1275
  */
@@ -1080,23 +1279,31 @@ export type AdminRemoveTrackerMemberErrors = {
1080
1279
  */
1081
1280
  503: ProblemDetails;
1082
1281
  };
1083
- export type AdminRemoveTrackerMemberError = AdminRemoveTrackerMemberErrors[keyof AdminRemoveTrackerMemberErrors];
1084
- export type AdminRemoveTrackerMemberResponses = {
1282
+ export type AdminReconcileTrackerSubscriptionError = AdminReconcileTrackerSubscriptionErrors[keyof AdminReconcileTrackerSubscriptionErrors];
1283
+ export type AdminReconcileTrackerSubscriptionResponses = {
1085
1284
  /**
1086
- * OK
1285
+ * Accepted
1087
1286
  */
1088
- 200: CommandSuccess;
1287
+ 202: CommandSuccess;
1089
1288
  };
1090
- export type AdminRemoveTrackerMemberResponse = AdminRemoveTrackerMemberResponses[keyof AdminRemoveTrackerMemberResponses];
1091
- export type AdminRequestTrackerModeData = {
1092
- body: AdminModeRequest;
1289
+ export type AdminReconcileTrackerSubscriptionResponse = AdminReconcileTrackerSubscriptionResponses[keyof AdminReconcileTrackerSubscriptionResponses];
1290
+ export type AdminUploadTrackerPhotoData = {
1291
+ body: {
1292
+ /**
1293
+ * JPEG file, at most 10 MiB and 25 megapixels (width * height). Multipart request limit: 11 MiB. The finalizer also checks the actual image.
1294
+ */
1295
+ file: Blob | File;
1296
+ kind: "bike" | "installation" | "receipt";
1297
+ width: number;
1298
+ height: number;
1299
+ };
1093
1300
  path: {
1094
1301
  trackerId: string;
1095
1302
  };
1096
1303
  query?: never;
1097
- url: "/v1/admin/trackers/{trackerId}/mode";
1304
+ url: "/v1/admin/trackers/{trackerId}/photos";
1098
1305
  };
1099
- export type AdminRequestTrackerModeErrors = {
1306
+ export type AdminUploadTrackerPhotoErrors = {
1100
1307
  /**
1101
1308
  * Bad Request
1102
1309
  */
@@ -1117,10 +1324,22 @@ export type AdminRequestTrackerModeErrors = {
1117
1324
  * Conflict
1118
1325
  */
1119
1326
  409: ProblemDetails;
1327
+ /**
1328
+ * Payload Too Large
1329
+ */
1330
+ 413: ProblemDetails;
1331
+ /**
1332
+ * Unsupported Media Type
1333
+ */
1334
+ 415: ProblemDetails;
1120
1335
  /**
1121
1336
  * Too Many Requests
1122
1337
  */
1123
1338
  429: ProblemDetails;
1339
+ /**
1340
+ * Internal Server Error
1341
+ */
1342
+ 500: ProblemDetails;
1124
1343
  /**
1125
1344
  * Bad Gateway
1126
1345
  */
@@ -1130,23 +1349,23 @@ export type AdminRequestTrackerModeErrors = {
1130
1349
  */
1131
1350
  503: ProblemDetails;
1132
1351
  };
1133
- export type AdminRequestTrackerModeError = AdminRequestTrackerModeErrors[keyof AdminRequestTrackerModeErrors];
1134
- export type AdminRequestTrackerModeResponses = {
1352
+ export type AdminUploadTrackerPhotoError = AdminUploadTrackerPhotoErrors[keyof AdminUploadTrackerPhotoErrors];
1353
+ export type AdminUploadTrackerPhotoResponses = {
1135
1354
  /**
1136
1355
  * OK
1137
1356
  */
1138
- 200: CommandSuccess;
1357
+ 200: PhotoUploadResult;
1139
1358
  };
1140
- export type AdminRequestTrackerModeResponse = AdminRequestTrackerModeResponses[keyof AdminRequestTrackerModeResponses];
1141
- export type AdminRequestTrackerCommandData = {
1142
- body: AdminTrackerCommandRequest;
1359
+ export type AdminUploadTrackerPhotoResponse = AdminUploadTrackerPhotoResponses[keyof AdminUploadTrackerPhotoResponses];
1360
+ export type AdminSubscribeTrackerData = {
1361
+ body?: never;
1143
1362
  path: {
1144
1363
  trackerId: string;
1145
1364
  };
1146
1365
  query?: never;
1147
- url: "/v1/admin/trackers/{trackerId}/command";
1366
+ url: "/v1/admin/trackers/{trackerId}/stream";
1148
1367
  };
1149
- export type AdminRequestTrackerCommandErrors = {
1368
+ export type AdminSubscribeTrackerErrors = {
1150
1369
  /**
1151
1370
  * Bad Request
1152
1371
  */
@@ -1167,10 +1386,18 @@ export type AdminRequestTrackerCommandErrors = {
1167
1386
  * Conflict
1168
1387
  */
1169
1388
  409: ProblemDetails;
1389
+ /**
1390
+ * Payload Too Large
1391
+ */
1392
+ 413: ProblemDetails;
1170
1393
  /**
1171
1394
  * Too Many Requests
1172
1395
  */
1173
1396
  429: ProblemDetails;
1397
+ /**
1398
+ * Internal Server Error
1399
+ */
1400
+ 500: ProblemDetails;
1174
1401
  /**
1175
1402
  * Bad Gateway
1176
1403
  */
@@ -1180,23 +1407,23 @@ export type AdminRequestTrackerCommandErrors = {
1180
1407
  */
1181
1408
  503: ProblemDetails;
1182
1409
  };
1183
- export type AdminRequestTrackerCommandError = AdminRequestTrackerCommandErrors[keyof AdminRequestTrackerCommandErrors];
1184
- export type AdminRequestTrackerCommandResponses = {
1410
+ export type AdminSubscribeTrackerError = AdminSubscribeTrackerErrors[keyof AdminSubscribeTrackerErrors];
1411
+ export type AdminSubscribeTrackerResponses = {
1185
1412
  /**
1186
1413
  * OK
1187
1414
  */
1188
- 200: CommandSuccess;
1415
+ 200: AdminTrackerView | null;
1189
1416
  };
1190
- export type AdminRequestTrackerCommandResponse = AdminRequestTrackerCommandResponses[keyof AdminRequestTrackerCommandResponses];
1191
- export type AdminUpdateTrackerConfigurationData = {
1192
- body: AdminConfigurationRequest;
1417
+ export type AdminSubscribeTrackerResponse = AdminSubscribeTrackerResponses[keyof AdminSubscribeTrackerResponses];
1418
+ export type AdminGetUserData = {
1419
+ body?: never;
1193
1420
  path: {
1194
- trackerId: string;
1421
+ uid: string;
1195
1422
  };
1196
1423
  query?: never;
1197
- url: "/v1/admin/trackers/{trackerId}/configuration";
1424
+ url: "/v1/admin/users/{uid}";
1198
1425
  };
1199
- export type AdminUpdateTrackerConfigurationErrors = {
1426
+ export type AdminGetUserErrors = {
1200
1427
  /**
1201
1428
  * Bad Request
1202
1429
  */
@@ -1217,10 +1444,18 @@ export type AdminUpdateTrackerConfigurationErrors = {
1217
1444
  * Conflict
1218
1445
  */
1219
1446
  409: ProblemDetails;
1447
+ /**
1448
+ * Payload Too Large
1449
+ */
1450
+ 413: ProblemDetails;
1220
1451
  /**
1221
1452
  * Too Many Requests
1222
1453
  */
1223
1454
  429: ProblemDetails;
1455
+ /**
1456
+ * Internal Server Error
1457
+ */
1458
+ 500: ProblemDetails;
1224
1459
  /**
1225
1460
  * Bad Gateway
1226
1461
  */
@@ -1230,23 +1465,21 @@ export type AdminUpdateTrackerConfigurationErrors = {
1230
1465
  */
1231
1466
  503: ProblemDetails;
1232
1467
  };
1233
- export type AdminUpdateTrackerConfigurationError = AdminUpdateTrackerConfigurationErrors[keyof AdminUpdateTrackerConfigurationErrors];
1234
- export type AdminUpdateTrackerConfigurationResponses = {
1468
+ export type AdminGetUserError = AdminGetUserErrors[keyof AdminGetUserErrors];
1469
+ export type AdminGetUserResponses = {
1235
1470
  /**
1236
1471
  * OK
1237
1472
  */
1238
- 200: CommandSuccess;
1473
+ 200: AdminReadResult;
1239
1474
  };
1240
- export type AdminUpdateTrackerConfigurationResponse = AdminUpdateTrackerConfigurationResponses[keyof AdminUpdateTrackerConfigurationResponses];
1241
- export type AdminUpdateTrackerBikeData = {
1242
- body: AdminBikeRequest;
1243
- path: {
1244
- trackerId: string;
1245
- };
1475
+ export type AdminGetUserResponse = AdminGetUserResponses[keyof AdminGetUserResponses];
1476
+ export type AdminLookupUsersData = {
1477
+ body: AdminLookupRequest;
1478
+ path?: never;
1246
1479
  query?: never;
1247
- url: "/v1/admin/trackers/{trackerId}/bike";
1480
+ url: "/v1/admin/users/lookup";
1248
1481
  };
1249
- export type AdminUpdateTrackerBikeErrors = {
1482
+ export type AdminLookupUsersErrors = {
1250
1483
  /**
1251
1484
  * Bad Request
1252
1485
  */
@@ -1267,10 +1500,22 @@ export type AdminUpdateTrackerBikeErrors = {
1267
1500
  * Conflict
1268
1501
  */
1269
1502
  409: ProblemDetails;
1503
+ /**
1504
+ * Payload Too Large
1505
+ */
1506
+ 413: ProblemDetails;
1507
+ /**
1508
+ * Unsupported Media Type
1509
+ */
1510
+ 415: ProblemDetails;
1270
1511
  /**
1271
1512
  * Too Many Requests
1272
1513
  */
1273
1514
  429: ProblemDetails;
1515
+ /**
1516
+ * Internal Server Error
1517
+ */
1518
+ 500: ProblemDetails;
1274
1519
  /**
1275
1520
  * Bad Gateway
1276
1521
  */
@@ -1280,23 +1525,23 @@ export type AdminUpdateTrackerBikeErrors = {
1280
1525
  */
1281
1526
  503: ProblemDetails;
1282
1527
  };
1283
- export type AdminUpdateTrackerBikeError = AdminUpdateTrackerBikeErrors[keyof AdminUpdateTrackerBikeErrors];
1284
- export type AdminUpdateTrackerBikeResponses = {
1528
+ export type AdminLookupUsersError = AdminLookupUsersErrors[keyof AdminLookupUsersErrors];
1529
+ export type AdminLookupUsersResponses = {
1285
1530
  /**
1286
1531
  * OK
1287
1532
  */
1288
- 200: CommandSuccess;
1533
+ 200: AdminLookupResult;
1289
1534
  };
1290
- export type AdminUpdateTrackerBikeResponse = AdminUpdateTrackerBikeResponses[keyof AdminUpdateTrackerBikeResponses];
1291
- export type AdminCleanTrackerData = {
1535
+ export type AdminLookupUsersResponse = AdminLookupUsersResponses[keyof AdminLookupUsersResponses];
1536
+ export type AdminRequestUserInsuranceData = {
1292
1537
  body: AdminRequestId;
1293
1538
  path: {
1294
- trackerId: string;
1539
+ uid: string;
1295
1540
  };
1296
1541
  query?: never;
1297
- url: "/v1/admin/trackers/{trackerId}/clean";
1542
+ url: "/v1/admin/users/{uid}/insurance-requests";
1298
1543
  };
1299
- export type AdminCleanTrackerErrors = {
1544
+ export type AdminRequestUserInsuranceErrors = {
1300
1545
  /**
1301
1546
  * Bad Request
1302
1547
  */
@@ -1317,10 +1562,22 @@ export type AdminCleanTrackerErrors = {
1317
1562
  * Conflict
1318
1563
  */
1319
1564
  409: ProblemDetails;
1565
+ /**
1566
+ * Payload Too Large
1567
+ */
1568
+ 413: ProblemDetails;
1569
+ /**
1570
+ * Unsupported Media Type
1571
+ */
1572
+ 415: ProblemDetails;
1320
1573
  /**
1321
1574
  * Too Many Requests
1322
1575
  */
1323
1576
  429: ProblemDetails;
1577
+ /**
1578
+ * Internal Server Error
1579
+ */
1580
+ 500: ProblemDetails;
1324
1581
  /**
1325
1582
  * Bad Gateway
1326
1583
  */
@@ -1330,23 +1587,23 @@ export type AdminCleanTrackerErrors = {
1330
1587
  */
1331
1588
  503: ProblemDetails;
1332
1589
  };
1333
- export type AdminCleanTrackerError = AdminCleanTrackerErrors[keyof AdminCleanTrackerErrors];
1334
- export type AdminCleanTrackerResponses = {
1590
+ export type AdminRequestUserInsuranceError = AdminRequestUserInsuranceErrors[keyof AdminRequestUserInsuranceErrors];
1591
+ export type AdminRequestUserInsuranceResponses = {
1335
1592
  /**
1336
- * OK
1593
+ * Accepted
1337
1594
  */
1338
- 200: AdminDeviceCommandResult;
1595
+ 202: CommandSuccess;
1339
1596
  };
1340
- export type AdminCleanTrackerResponse = AdminCleanTrackerResponses[keyof AdminCleanTrackerResponses];
1341
- export type AdminSetTrackerDenylistData = {
1342
- body: AdminDenylistRequest;
1597
+ export type AdminRequestUserInsuranceResponse = AdminRequestUserInsuranceResponses[keyof AdminRequestUserInsuranceResponses];
1598
+ export type AdminLinkSingleSubscriptionData = {
1599
+ body: AdminRequestId;
1343
1600
  path: {
1344
- trackerId: string;
1601
+ uid: string;
1345
1602
  };
1346
1603
  query?: never;
1347
- url: "/v1/admin/trackers/{trackerId}/denylist";
1604
+ url: "/v1/admin/users/{uid}/subscription-link-requests";
1348
1605
  };
1349
- export type AdminSetTrackerDenylistErrors = {
1606
+ export type AdminLinkSingleSubscriptionErrors = {
1350
1607
  /**
1351
1608
  * Bad Request
1352
1609
  */
@@ -1367,10 +1624,22 @@ export type AdminSetTrackerDenylistErrors = {
1367
1624
  * Conflict
1368
1625
  */
1369
1626
  409: ProblemDetails;
1627
+ /**
1628
+ * Payload Too Large
1629
+ */
1630
+ 413: ProblemDetails;
1631
+ /**
1632
+ * Unsupported Media Type
1633
+ */
1634
+ 415: ProblemDetails;
1370
1635
  /**
1371
1636
  * Too Many Requests
1372
1637
  */
1373
1638
  429: ProblemDetails;
1639
+ /**
1640
+ * Internal Server Error
1641
+ */
1642
+ 500: ProblemDetails;
1374
1643
  /**
1375
1644
  * Bad Gateway
1376
1645
  */
@@ -1380,23 +1649,23 @@ export type AdminSetTrackerDenylistErrors = {
1380
1649
  */
1381
1650
  503: ProblemDetails;
1382
1651
  };
1383
- export type AdminSetTrackerDenylistError = AdminSetTrackerDenylistErrors[keyof AdminSetTrackerDenylistErrors];
1384
- export type AdminSetTrackerDenylistResponses = {
1652
+ export type AdminLinkSingleSubscriptionError = AdminLinkSingleSubscriptionErrors[keyof AdminLinkSingleSubscriptionErrors];
1653
+ export type AdminLinkSingleSubscriptionResponses = {
1385
1654
  /**
1386
1655
  * OK
1387
1656
  */
1388
- 200: AdminDeviceCommandResult;
1657
+ 200: CommandSuccess;
1389
1658
  };
1390
- export type AdminSetTrackerDenylistResponse = AdminSetTrackerDenylistResponses[keyof AdminSetTrackerDenylistResponses];
1391
- export type AdminNotifyTrackerData = {
1392
- body: AdminNotificationRequest;
1659
+ export type AdminLinkSingleSubscriptionResponse = AdminLinkSingleSubscriptionResponses[keyof AdminLinkSingleSubscriptionResponses];
1660
+ export type AdminGetSubscriptionData = {
1661
+ body?: never;
1393
1662
  path: {
1394
- trackerId: string;
1663
+ subscriptionId: string;
1395
1664
  };
1396
1665
  query?: never;
1397
- url: "/v1/admin/trackers/{trackerId}/notifications";
1666
+ url: "/v1/admin/subscriptions/{subscriptionId}";
1398
1667
  };
1399
- export type AdminNotifyTrackerErrors = {
1668
+ export type AdminGetSubscriptionErrors = {
1400
1669
  /**
1401
1670
  * Bad Request
1402
1671
  */
@@ -1417,10 +1686,18 @@ export type AdminNotifyTrackerErrors = {
1417
1686
  * Conflict
1418
1687
  */
1419
1688
  409: ProblemDetails;
1689
+ /**
1690
+ * Payload Too Large
1691
+ */
1692
+ 413: ProblemDetails;
1420
1693
  /**
1421
1694
  * Too Many Requests
1422
1695
  */
1423
1696
  429: ProblemDetails;
1697
+ /**
1698
+ * Internal Server Error
1699
+ */
1700
+ 500: ProblemDetails;
1424
1701
  /**
1425
1702
  * Bad Gateway
1426
1703
  */
@@ -1430,23 +1707,86 @@ export type AdminNotifyTrackerErrors = {
1430
1707
  */
1431
1708
  503: ProblemDetails;
1432
1709
  };
1433
- export type AdminNotifyTrackerError = AdminNotifyTrackerErrors[keyof AdminNotifyTrackerErrors];
1434
- export type AdminNotifyTrackerResponses = {
1710
+ export type AdminGetSubscriptionError = AdminGetSubscriptionErrors[keyof AdminGetSubscriptionErrors];
1711
+ export type AdminGetSubscriptionResponses = {
1435
1712
  /**
1436
1713
  * OK
1437
1714
  */
1438
- 200: AdminDeviceCommandResult;
1715
+ 200: AdminReadResult;
1439
1716
  };
1440
- export type AdminNotifyTrackerResponse = AdminNotifyTrackerResponses[keyof AdminNotifyTrackerResponses];
1441
- export type AdminUnlinkTrackerSubscriptionData = {
1717
+ export type AdminGetSubscriptionResponse = AdminGetSubscriptionResponses[keyof AdminGetSubscriptionResponses];
1718
+ export type AdminSearchSubscriptionsData = {
1719
+ body?: never;
1720
+ path?: never;
1721
+ query: {
1722
+ kind: "b2b" | "uid" | "wooId";
1723
+ value?: string;
1724
+ cursor?: string;
1725
+ };
1726
+ url: "/v1/admin/subscriptions";
1727
+ };
1728
+ export type AdminSearchSubscriptionsErrors = {
1729
+ /**
1730
+ * Bad Request
1731
+ */
1732
+ 400: ProblemDetails;
1733
+ /**
1734
+ * Unauthorized
1735
+ */
1736
+ 401: ProblemDetails;
1737
+ /**
1738
+ * Forbidden
1739
+ */
1740
+ 403: ProblemDetails;
1741
+ /**
1742
+ * Not Found
1743
+ */
1744
+ 404: ProblemDetails;
1745
+ /**
1746
+ * Conflict
1747
+ */
1748
+ 409: ProblemDetails;
1749
+ /**
1750
+ * Payload Too Large
1751
+ */
1752
+ 413: ProblemDetails;
1753
+ /**
1754
+ * Too Many Requests
1755
+ */
1756
+ 429: ProblemDetails;
1757
+ /**
1758
+ * Internal Server Error
1759
+ */
1760
+ 500: ProblemDetails;
1761
+ /**
1762
+ * Bad Gateway
1763
+ */
1764
+ 502: ProblemDetails;
1765
+ /**
1766
+ * Service Unavailable
1767
+ */
1768
+ 503: ProblemDetails;
1769
+ };
1770
+ export type AdminSearchSubscriptionsError = AdminSearchSubscriptionsErrors[keyof AdminSearchSubscriptionsErrors];
1771
+ export type AdminSearchSubscriptionsResponses = {
1772
+ /**
1773
+ * OK
1774
+ */
1775
+ 200: AdminReadResult;
1776
+ };
1777
+ export type AdminSearchSubscriptionsResponse = AdminSearchSubscriptionsResponses[keyof AdminSearchSubscriptionsResponses];
1778
+ export type AdminListInsuranceData = {
1442
1779
  body?: never;
1443
1780
  path: {
1444
- trackerId: string;
1781
+ subscriptionId: string;
1782
+ provider: "cycler" | "hepster" | "tryg";
1445
1783
  };
1446
- query?: never;
1447
- url: "/v1/admin/trackers/{trackerId}/subscription";
1784
+ query?: {
1785
+ cursor?: string;
1786
+ };
1787
+ url: "/v1/admin/subscriptions/{subscriptionId}/insurance/{provider}";
1448
1788
  };
1449
- export type AdminUnlinkTrackerSubscriptionErrors = {
1789
+ export type AdminListInsuranceErrors = {
1450
1790
  /**
1451
1791
  * Bad Request
1452
1792
  */
@@ -1467,10 +1807,18 @@ export type AdminUnlinkTrackerSubscriptionErrors = {
1467
1807
  * Conflict
1468
1808
  */
1469
1809
  409: ProblemDetails;
1810
+ /**
1811
+ * Payload Too Large
1812
+ */
1813
+ 413: ProblemDetails;
1470
1814
  /**
1471
1815
  * Too Many Requests
1472
1816
  */
1473
1817
  429: ProblemDetails;
1818
+ /**
1819
+ * Internal Server Error
1820
+ */
1821
+ 500: ProblemDetails;
1474
1822
  /**
1475
1823
  * Bad Gateway
1476
1824
  */
@@ -1480,23 +1828,23 @@ export type AdminUnlinkTrackerSubscriptionErrors = {
1480
1828
  */
1481
1829
  503: ProblemDetails;
1482
1830
  };
1483
- export type AdminUnlinkTrackerSubscriptionError = AdminUnlinkTrackerSubscriptionErrors[keyof AdminUnlinkTrackerSubscriptionErrors];
1484
- export type AdminUnlinkTrackerSubscriptionResponses = {
1831
+ export type AdminListInsuranceError = AdminListInsuranceErrors[keyof AdminListInsuranceErrors];
1832
+ export type AdminListInsuranceResponses = {
1485
1833
  /**
1486
1834
  * OK
1487
1835
  */
1488
- 200: CommandSuccess;
1836
+ 200: AdminReadResult;
1489
1837
  };
1490
- export type AdminUnlinkTrackerSubscriptionResponse = AdminUnlinkTrackerSubscriptionResponses[keyof AdminUnlinkTrackerSubscriptionResponses];
1491
- export type AdminLinkTrackerSubscriptionData = {
1492
- body: AdminLinkSubscriptionRequest;
1838
+ export type AdminListInsuranceResponse = AdminListInsuranceResponses[keyof AdminListInsuranceResponses];
1839
+ export type AdminRequestSubscriptionInsuranceData = {
1840
+ body: AdminRequestId;
1493
1841
  path: {
1494
- trackerId: string;
1842
+ subscriptionId: string;
1495
1843
  };
1496
1844
  query?: never;
1497
- url: "/v1/admin/trackers/{trackerId}/subscription";
1845
+ url: "/v1/admin/subscriptions/{subscriptionId}/insurance-requests";
1498
1846
  };
1499
- export type AdminLinkTrackerSubscriptionErrors = {
1847
+ export type AdminRequestSubscriptionInsuranceErrors = {
1500
1848
  /**
1501
1849
  * Bad Request
1502
1850
  */
@@ -1517,10 +1865,22 @@ export type AdminLinkTrackerSubscriptionErrors = {
1517
1865
  * Conflict
1518
1866
  */
1519
1867
  409: ProblemDetails;
1868
+ /**
1869
+ * Payload Too Large
1870
+ */
1871
+ 413: ProblemDetails;
1872
+ /**
1873
+ * Unsupported Media Type
1874
+ */
1875
+ 415: ProblemDetails;
1520
1876
  /**
1521
1877
  * Too Many Requests
1522
1878
  */
1523
1879
  429: ProblemDetails;
1880
+ /**
1881
+ * Internal Server Error
1882
+ */
1883
+ 500: ProblemDetails;
1524
1884
  /**
1525
1885
  * Bad Gateway
1526
1886
  */
@@ -1530,23 +1890,23 @@ export type AdminLinkTrackerSubscriptionErrors = {
1530
1890
  */
1531
1891
  503: ProblemDetails;
1532
1892
  };
1533
- export type AdminLinkTrackerSubscriptionError = AdminLinkTrackerSubscriptionErrors[keyof AdminLinkTrackerSubscriptionErrors];
1534
- export type AdminLinkTrackerSubscriptionResponses = {
1893
+ export type AdminRequestSubscriptionInsuranceError = AdminRequestSubscriptionInsuranceErrors[keyof AdminRequestSubscriptionInsuranceErrors];
1894
+ export type AdminRequestSubscriptionInsuranceResponses = {
1535
1895
  /**
1536
- * OK
1896
+ * Accepted
1537
1897
  */
1538
- 200: CommandSuccess;
1898
+ 202: CommandSuccess;
1539
1899
  };
1540
- export type AdminLinkTrackerSubscriptionResponse = AdminLinkTrackerSubscriptionResponses[keyof AdminLinkTrackerSubscriptionResponses];
1541
- export type AdminRequestSubscriptionInsuranceData = {
1900
+ export type AdminRequestSubscriptionInsuranceResponse = AdminRequestSubscriptionInsuranceResponses[keyof AdminRequestSubscriptionInsuranceResponses];
1901
+ export type AdminRefreshSubscriptionData = {
1542
1902
  body: AdminRequestId;
1543
1903
  path: {
1544
1904
  subscriptionId: string;
1545
1905
  };
1546
1906
  query?: never;
1547
- url: "/v1/admin/subscriptions/{subscriptionId}/insurance";
1907
+ url: "/v1/admin/subscriptions/{subscriptionId}/refresh-requests";
1548
1908
  };
1549
- export type AdminRequestSubscriptionInsuranceErrors = {
1909
+ export type AdminRefreshSubscriptionErrors = {
1550
1910
  /**
1551
1911
  * Bad Request
1552
1912
  */
@@ -1567,10 +1927,22 @@ export type AdminRequestSubscriptionInsuranceErrors = {
1567
1927
  * Conflict
1568
1928
  */
1569
1929
  409: ProblemDetails;
1930
+ /**
1931
+ * Payload Too Large
1932
+ */
1933
+ 413: ProblemDetails;
1934
+ /**
1935
+ * Unsupported Media Type
1936
+ */
1937
+ 415: ProblemDetails;
1570
1938
  /**
1571
1939
  * Too Many Requests
1572
1940
  */
1573
1941
  429: ProblemDetails;
1942
+ /**
1943
+ * Internal Server Error
1944
+ */
1945
+ 500: ProblemDetails;
1574
1946
  /**
1575
1947
  * Bad Gateway
1576
1948
  */
@@ -1580,23 +1952,23 @@ export type AdminRequestSubscriptionInsuranceErrors = {
1580
1952
  */
1581
1953
  503: ProblemDetails;
1582
1954
  };
1583
- export type AdminRequestSubscriptionInsuranceError = AdminRequestSubscriptionInsuranceErrors[keyof AdminRequestSubscriptionInsuranceErrors];
1584
- export type AdminRequestSubscriptionInsuranceResponses = {
1955
+ export type AdminRefreshSubscriptionError = AdminRefreshSubscriptionErrors[keyof AdminRefreshSubscriptionErrors];
1956
+ export type AdminRefreshSubscriptionResponses = {
1585
1957
  /**
1586
- * OK
1958
+ * Accepted
1587
1959
  */
1588
- 200: CommandSuccess;
1960
+ 202: CommandSuccess;
1589
1961
  };
1590
- export type AdminRequestSubscriptionInsuranceResponse = AdminRequestSubscriptionInsuranceResponses[keyof AdminRequestSubscriptionInsuranceResponses];
1591
- export type AdminRequestUserInsuranceData = {
1592
- body: AdminRequestId;
1593
- path: {
1594
- uid: string;
1962
+ export type AdminRefreshSubscriptionResponse = AdminRefreshSubscriptionResponses[keyof AdminRefreshSubscriptionResponses];
1963
+ export type AdminListFavoritesData = {
1964
+ body?: never;
1965
+ path?: never;
1966
+ query?: {
1967
+ cursor?: string;
1595
1968
  };
1596
- query?: never;
1597
- url: "/v1/admin/users/{uid}/insurance";
1969
+ url: "/v1/admin/favorites";
1598
1970
  };
1599
- export type AdminRequestUserInsuranceErrors = {
1971
+ export type AdminListFavoritesErrors = {
1600
1972
  /**
1601
1973
  * Bad Request
1602
1974
  */
@@ -1617,10 +1989,18 @@ export type AdminRequestUserInsuranceErrors = {
1617
1989
  * Conflict
1618
1990
  */
1619
1991
  409: ProblemDetails;
1992
+ /**
1993
+ * Payload Too Large
1994
+ */
1995
+ 413: ProblemDetails;
1620
1996
  /**
1621
1997
  * Too Many Requests
1622
1998
  */
1623
1999
  429: ProblemDetails;
2000
+ /**
2001
+ * Internal Server Error
2002
+ */
2003
+ 500: ProblemDetails;
1624
2004
  /**
1625
2005
  * Bad Gateway
1626
2006
  */
@@ -1630,23 +2010,23 @@ export type AdminRequestUserInsuranceErrors = {
1630
2010
  */
1631
2011
  503: ProblemDetails;
1632
2012
  };
1633
- export type AdminRequestUserInsuranceError = AdminRequestUserInsuranceErrors[keyof AdminRequestUserInsuranceErrors];
1634
- export type AdminRequestUserInsuranceResponses = {
2013
+ export type AdminListFavoritesError = AdminListFavoritesErrors[keyof AdminListFavoritesErrors];
2014
+ export type AdminListFavoritesResponses = {
1635
2015
  /**
1636
2016
  * OK
1637
2017
  */
1638
- 200: CommandSuccess;
2018
+ 200: AdminReadResult;
1639
2019
  };
1640
- export type AdminRequestUserInsuranceResponse = AdminRequestUserInsuranceResponses[keyof AdminRequestUserInsuranceResponses];
1641
- export type AdminRequestTrackerInsuranceData = {
1642
- body: AdminRequestId;
2020
+ export type AdminListFavoritesResponse = AdminListFavoritesResponses[keyof AdminListFavoritesResponses];
2021
+ export type AdminDeleteFavoriteData = {
2022
+ body?: never;
1643
2023
  path: {
1644
2024
  trackerId: string;
1645
2025
  };
1646
2026
  query?: never;
1647
- url: "/v1/admin/trackers/{trackerId}/insurance";
2027
+ url: "/v1/admin/favorites/{trackerId}";
1648
2028
  };
1649
- export type AdminRequestTrackerInsuranceErrors = {
2029
+ export type AdminDeleteFavoriteErrors = {
1650
2030
  /**
1651
2031
  * Bad Request
1652
2032
  */
@@ -1667,10 +2047,18 @@ export type AdminRequestTrackerInsuranceErrors = {
1667
2047
  * Conflict
1668
2048
  */
1669
2049
  409: ProblemDetails;
2050
+ /**
2051
+ * Payload Too Large
2052
+ */
2053
+ 413: ProblemDetails;
1670
2054
  /**
1671
2055
  * Too Many Requests
1672
2056
  */
1673
2057
  429: ProblemDetails;
2058
+ /**
2059
+ * Internal Server Error
2060
+ */
2061
+ 500: ProblemDetails;
1674
2062
  /**
1675
2063
  * Bad Gateway
1676
2064
  */
@@ -1680,23 +2068,23 @@ export type AdminRequestTrackerInsuranceErrors = {
1680
2068
  */
1681
2069
  503: ProblemDetails;
1682
2070
  };
1683
- export type AdminRequestTrackerInsuranceError = AdminRequestTrackerInsuranceErrors[keyof AdminRequestTrackerInsuranceErrors];
1684
- export type AdminRequestTrackerInsuranceResponses = {
2071
+ export type AdminDeleteFavoriteError = AdminDeleteFavoriteErrors[keyof AdminDeleteFavoriteErrors];
2072
+ export type AdminDeleteFavoriteResponses = {
1685
2073
  /**
1686
2074
  * OK
1687
2075
  */
1688
2076
  200: CommandSuccess;
1689
2077
  };
1690
- export type AdminRequestTrackerInsuranceResponse = AdminRequestTrackerInsuranceResponses[keyof AdminRequestTrackerInsuranceResponses];
1691
- export type AdminReconcileTrackerSubscriptionData = {
1692
- body: AdminRequestId;
2078
+ export type AdminDeleteFavoriteResponse = AdminDeleteFavoriteResponses[keyof AdminDeleteFavoriteResponses];
2079
+ export type AdminGetFavoriteData = {
2080
+ body?: never;
1693
2081
  path: {
1694
2082
  trackerId: string;
1695
2083
  };
1696
2084
  query?: never;
1697
- url: "/v1/admin/trackers/{trackerId}/subscription/reconcile";
2085
+ url: "/v1/admin/favorites/{trackerId}";
1698
2086
  };
1699
- export type AdminReconcileTrackerSubscriptionErrors = {
2087
+ export type AdminGetFavoriteErrors = {
1700
2088
  /**
1701
2089
  * Bad Request
1702
2090
  */
@@ -1717,10 +2105,18 @@ export type AdminReconcileTrackerSubscriptionErrors = {
1717
2105
  * Conflict
1718
2106
  */
1719
2107
  409: ProblemDetails;
2108
+ /**
2109
+ * Payload Too Large
2110
+ */
2111
+ 413: ProblemDetails;
1720
2112
  /**
1721
2113
  * Too Many Requests
1722
2114
  */
1723
2115
  429: ProblemDetails;
2116
+ /**
2117
+ * Internal Server Error
2118
+ */
2119
+ 500: ProblemDetails;
1724
2120
  /**
1725
2121
  * Bad Gateway
1726
2122
  */
@@ -1730,23 +2126,23 @@ export type AdminReconcileTrackerSubscriptionErrors = {
1730
2126
  */
1731
2127
  503: ProblemDetails;
1732
2128
  };
1733
- export type AdminReconcileTrackerSubscriptionError = AdminReconcileTrackerSubscriptionErrors[keyof AdminReconcileTrackerSubscriptionErrors];
1734
- export type AdminReconcileTrackerSubscriptionResponses = {
2129
+ export type AdminGetFavoriteError = AdminGetFavoriteErrors[keyof AdminGetFavoriteErrors];
2130
+ export type AdminGetFavoriteResponses = {
1735
2131
  /**
1736
2132
  * OK
1737
2133
  */
1738
- 200: CommandSuccess;
2134
+ 200: AdminReadResult;
1739
2135
  };
1740
- export type AdminReconcileTrackerSubscriptionResponse = AdminReconcileTrackerSubscriptionResponses[keyof AdminReconcileTrackerSubscriptionResponses];
1741
- export type AdminRefreshSubscriptionData = {
1742
- body: AdminRequestId;
2136
+ export type AdminGetFavoriteResponse = AdminGetFavoriteResponses[keyof AdminGetFavoriteResponses];
2137
+ export type AdminUpdateFavoriteCommentData = {
2138
+ body: AdminFavoriteRequest;
1743
2139
  path: {
1744
- subscriptionId: string;
2140
+ trackerId: string;
1745
2141
  };
1746
2142
  query?: never;
1747
- url: "/v1/admin/subscriptions/{subscriptionId}/refresh";
2143
+ url: "/v1/admin/favorites/{trackerId}";
1748
2144
  };
1749
- export type AdminRefreshSubscriptionErrors = {
2145
+ export type AdminUpdateFavoriteCommentErrors = {
1750
2146
  /**
1751
2147
  * Bad Request
1752
2148
  */
@@ -1767,10 +2163,22 @@ export type AdminRefreshSubscriptionErrors = {
1767
2163
  * Conflict
1768
2164
  */
1769
2165
  409: ProblemDetails;
2166
+ /**
2167
+ * Payload Too Large
2168
+ */
2169
+ 413: ProblemDetails;
2170
+ /**
2171
+ * Unsupported Media Type
2172
+ */
2173
+ 415: ProblemDetails;
1770
2174
  /**
1771
2175
  * Too Many Requests
1772
2176
  */
1773
2177
  429: ProblemDetails;
2178
+ /**
2179
+ * Internal Server Error
2180
+ */
2181
+ 500: ProblemDetails;
1774
2182
  /**
1775
2183
  * Bad Gateway
1776
2184
  */
@@ -1780,23 +2188,23 @@ export type AdminRefreshSubscriptionErrors = {
1780
2188
  */
1781
2189
  503: ProblemDetails;
1782
2190
  };
1783
- export type AdminRefreshSubscriptionError = AdminRefreshSubscriptionErrors[keyof AdminRefreshSubscriptionErrors];
1784
- export type AdminRefreshSubscriptionResponses = {
2191
+ export type AdminUpdateFavoriteCommentError = AdminUpdateFavoriteCommentErrors[keyof AdminUpdateFavoriteCommentErrors];
2192
+ export type AdminUpdateFavoriteCommentResponses = {
1785
2193
  /**
1786
2194
  * OK
1787
2195
  */
1788
2196
  200: CommandSuccess;
1789
2197
  };
1790
- export type AdminRefreshSubscriptionResponse = AdminRefreshSubscriptionResponses[keyof AdminRefreshSubscriptionResponses];
1791
- export type AdminLinkSingleSubscriptionData = {
1792
- body: AdminRequestId;
2198
+ export type AdminUpdateFavoriteCommentResponse = AdminUpdateFavoriteCommentResponses[keyof AdminUpdateFavoriteCommentResponses];
2199
+ export type AdminPutFavoriteData = {
2200
+ body: AdminFavoriteRequest;
1793
2201
  path: {
1794
- uid: string;
2202
+ trackerId: string;
1795
2203
  };
1796
2204
  query?: never;
1797
- url: "/v1/admin/users/{uid}/subscription/link-single";
2205
+ url: "/v1/admin/favorites/{trackerId}";
1798
2206
  };
1799
- export type AdminLinkSingleSubscriptionErrors = {
2207
+ export type AdminPutFavoriteErrors = {
1800
2208
  /**
1801
2209
  * Bad Request
1802
2210
  */
@@ -1817,10 +2225,22 @@ export type AdminLinkSingleSubscriptionErrors = {
1817
2225
  * Conflict
1818
2226
  */
1819
2227
  409: ProblemDetails;
2228
+ /**
2229
+ * Payload Too Large
2230
+ */
2231
+ 413: ProblemDetails;
2232
+ /**
2233
+ * Unsupported Media Type
2234
+ */
2235
+ 415: ProblemDetails;
1820
2236
  /**
1821
2237
  * Too Many Requests
1822
2238
  */
1823
2239
  429: ProblemDetails;
2240
+ /**
2241
+ * Internal Server Error
2242
+ */
2243
+ 500: ProblemDetails;
1824
2244
  /**
1825
2245
  * Bad Gateway
1826
2246
  */
@@ -1830,14 +2250,14 @@ export type AdminLinkSingleSubscriptionErrors = {
1830
2250
  */
1831
2251
  503: ProblemDetails;
1832
2252
  };
1833
- export type AdminLinkSingleSubscriptionError = AdminLinkSingleSubscriptionErrors[keyof AdminLinkSingleSubscriptionErrors];
1834
- export type AdminLinkSingleSubscriptionResponses = {
2253
+ export type AdminPutFavoriteError = AdminPutFavoriteErrors[keyof AdminPutFavoriteErrors];
2254
+ export type AdminPutFavoriteResponses = {
1835
2255
  /**
1836
2256
  * OK
1837
2257
  */
1838
2258
  200: CommandSuccess;
1839
2259
  };
1840
- export type AdminLinkSingleSubscriptionResponse = AdminLinkSingleSubscriptionResponses[keyof AdminLinkSingleSubscriptionResponses];
2260
+ export type AdminPutFavoriteResponse = AdminPutFavoriteResponses[keyof AdminPutFavoriteResponses];
1841
2261
  export type AdminCreateB2bSubscriptionData = {
1842
2262
  body: AdminB2bSubscriptionRequest;
1843
2263
  path?: never;
@@ -1865,10 +2285,22 @@ export type AdminCreateB2bSubscriptionErrors = {
1865
2285
  * Conflict
1866
2286
  */
1867
2287
  409: ProblemDetails;
2288
+ /**
2289
+ * Payload Too Large
2290
+ */
2291
+ 413: ProblemDetails;
2292
+ /**
2293
+ * Unsupported Media Type
2294
+ */
2295
+ 415: ProblemDetails;
1868
2296
  /**
1869
2297
  * Too Many Requests
1870
2298
  */
1871
2299
  429: ProblemDetails;
2300
+ /**
2301
+ * Internal Server Error
2302
+ */
2303
+ 500: ProblemDetails;
1872
2304
  /**
1873
2305
  * Bad Gateway
1874
2306
  */
@@ -1881,9 +2313,9 @@ export type AdminCreateB2bSubscriptionErrors = {
1881
2313
  export type AdminCreateB2bSubscriptionError = AdminCreateB2bSubscriptionErrors[keyof AdminCreateB2bSubscriptionErrors];
1882
2314
  export type AdminCreateB2bSubscriptionResponses = {
1883
2315
  /**
1884
- * OK
2316
+ * Created
1885
2317
  */
1886
- 200: AdminB2bSubscriptionResult;
2318
+ 201: AdminB2bSubscriptionResult;
1887
2319
  };
1888
2320
  export type AdminCreateB2bSubscriptionResponse = AdminCreateB2bSubscriptionResponses[keyof AdminCreateB2bSubscriptionResponses];
1889
2321
  export type AdminCancelB2bSubscriptionData = {
@@ -1892,7 +2324,7 @@ export type AdminCancelB2bSubscriptionData = {
1892
2324
  subscriptionId: string;
1893
2325
  };
1894
2326
  query?: never;
1895
- url: "/v1/admin/b2b/subscriptions/{subscriptionId}/cancel";
2327
+ url: "/v1/admin/b2b/subscriptions/{subscriptionId}/cancellation-requests";
1896
2328
  };
1897
2329
  export type AdminCancelB2bSubscriptionErrors = {
1898
2330
  /**
@@ -1915,10 +2347,18 @@ export type AdminCancelB2bSubscriptionErrors = {
1915
2347
  * Conflict
1916
2348
  */
1917
2349
  409: ProblemDetails;
2350
+ /**
2351
+ * Payload Too Large
2352
+ */
2353
+ 413: ProblemDetails;
1918
2354
  /**
1919
2355
  * Too Many Requests
1920
2356
  */
1921
2357
  429: ProblemDetails;
2358
+ /**
2359
+ * Internal Server Error
2360
+ */
2361
+ 500: ProblemDetails;
1922
2362
  /**
1923
2363
  * Bad Gateway
1924
2364
  */
@@ -1942,7 +2382,7 @@ export type AdminSyncB2bInsuranceData = {
1942
2382
  subscriptionId: string;
1943
2383
  };
1944
2384
  query?: never;
1945
- url: "/v1/admin/b2b/subscriptions/{subscriptionId}/insurance/sync";
2385
+ url: "/v1/admin/b2b/subscriptions/{subscriptionId}/insurance-sync-requests";
1946
2386
  };
1947
2387
  export type AdminSyncB2bInsuranceErrors = {
1948
2388
  /**
@@ -1965,10 +2405,18 @@ export type AdminSyncB2bInsuranceErrors = {
1965
2405
  * Conflict
1966
2406
  */
1967
2407
  409: ProblemDetails;
2408
+ /**
2409
+ * Payload Too Large
2410
+ */
2411
+ 413: ProblemDetails;
1968
2412
  /**
1969
2413
  * Too Many Requests
1970
2414
  */
1971
2415
  429: ProblemDetails;
2416
+ /**
2417
+ * Internal Server Error
2418
+ */
2419
+ 500: ProblemDetails;
1972
2420
  /**
1973
2421
  * Bad Gateway
1974
2422
  */
@@ -1981,16 +2429,16 @@ export type AdminSyncB2bInsuranceErrors = {
1981
2429
  export type AdminSyncB2bInsuranceError = AdminSyncB2bInsuranceErrors[keyof AdminSyncB2bInsuranceErrors];
1982
2430
  export type AdminSyncB2bInsuranceResponses = {
1983
2431
  /**
1984
- * OK
2432
+ * Accepted
1985
2433
  */
1986
- 200: CommandSuccess;
2434
+ 202: CommandSuccess;
1987
2435
  };
1988
2436
  export type AdminSyncB2bInsuranceResponse = AdminSyncB2bInsuranceResponses[keyof AdminSyncB2bInsuranceResponses];
1989
2437
  export type AdminSyncAllB2bInsuranceData = {
1990
2438
  body?: never;
1991
2439
  path?: never;
1992
2440
  query?: never;
1993
- url: "/v1/admin/b2b/subscriptions/insurance/sync";
2441
+ url: "/v1/admin/b2b/subscriptions/insurance-sync-requests";
1994
2442
  };
1995
2443
  export type AdminSyncAllB2bInsuranceErrors = {
1996
2444
  /**
@@ -2013,10 +2461,18 @@ export type AdminSyncAllB2bInsuranceErrors = {
2013
2461
  * Conflict
2014
2462
  */
2015
2463
  409: ProblemDetails;
2464
+ /**
2465
+ * Payload Too Large
2466
+ */
2467
+ 413: ProblemDetails;
2016
2468
  /**
2017
2469
  * Too Many Requests
2018
2470
  */
2019
2471
  429: ProblemDetails;
2472
+ /**
2473
+ * Internal Server Error
2474
+ */
2475
+ 500: ProblemDetails;
2020
2476
  /**
2021
2477
  * Bad Gateway
2022
2478
  */
@@ -2029,59 +2485,9 @@ export type AdminSyncAllB2bInsuranceErrors = {
2029
2485
  export type AdminSyncAllB2bInsuranceError = AdminSyncAllB2bInsuranceErrors[keyof AdminSyncAllB2bInsuranceErrors];
2030
2486
  export type AdminSyncAllB2bInsuranceResponses = {
2031
2487
  /**
2032
- * OK
2488
+ * Accepted
2033
2489
  */
2034
- 200: CommandSuccess;
2490
+ 202: CommandSuccess;
2035
2491
  };
2036
2492
  export type AdminSyncAllB2bInsuranceResponse = AdminSyncAllB2bInsuranceResponses[keyof AdminSyncAllB2bInsuranceResponses];
2037
- export type AdminSubscribeTrackerData = {
2038
- body?: never;
2039
- path: {
2040
- trackerId: string;
2041
- };
2042
- query?: never;
2043
- url: "/v1/admin/trackers/{trackerId}/stream";
2044
- };
2045
- export type AdminSubscribeTrackerErrors = {
2046
- /**
2047
- * Bad Request
2048
- */
2049
- 400: ProblemDetails;
2050
- /**
2051
- * Unauthorized
2052
- */
2053
- 401: ProblemDetails;
2054
- /**
2055
- * Forbidden
2056
- */
2057
- 403: ProblemDetails;
2058
- /**
2059
- * Not Found
2060
- */
2061
- 404: ProblemDetails;
2062
- /**
2063
- * Conflict
2064
- */
2065
- 409: ProblemDetails;
2066
- /**
2067
- * Too Many Requests
2068
- */
2069
- 429: ProblemDetails;
2070
- /**
2071
- * Bad Gateway
2072
- */
2073
- 502: ProblemDetails;
2074
- /**
2075
- * Service Unavailable
2076
- */
2077
- 503: ProblemDetails;
2078
- };
2079
- export type AdminSubscribeTrackerError = AdminSubscribeTrackerErrors[keyof AdminSubscribeTrackerErrors];
2080
- export type AdminSubscribeTrackerResponses = {
2081
- /**
2082
- * OK
2083
- */
2084
- 200: AdminTrackerView | null;
2085
- };
2086
- export type AdminSubscribeTrackerResponse = AdminSubscribeTrackerResponses[keyof AdminSubscribeTrackerResponses];
2087
2493
  //# sourceMappingURL=types.gen.d.ts.map