@bikefinder/api-client 0.2.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 (127) hide show
  1. package/README.md +38 -2
  2. package/dist/admin/generated/client/client.gen.d.ts +3 -0
  3. package/dist/admin/generated/client/client.gen.d.ts.map +1 -0
  4. package/dist/admin/generated/client/client.gen.js +218 -0
  5. package/dist/admin/generated/client/client.gen.js.map +1 -0
  6. package/dist/admin/generated/client/index.d.ts +11 -0
  7. package/dist/admin/generated/client/index.d.ts.map +1 -0
  8. package/dist/admin/generated/client/index.js +7 -0
  9. package/dist/admin/generated/client/index.js.map +1 -0
  10. package/dist/admin/generated/client/types.gen.d.ts +121 -0
  11. package/dist/admin/generated/client/types.gen.d.ts.map +1 -0
  12. package/dist/admin/generated/client/types.gen.js +3 -0
  13. package/dist/admin/generated/client/types.gen.js.map +1 -0
  14. package/dist/admin/generated/client/utils.gen.d.ts +38 -0
  15. package/dist/admin/generated/client/utils.gen.d.ts.map +1 -0
  16. package/dist/admin/generated/client/utils.gen.js +232 -0
  17. package/dist/admin/generated/client/utils.gen.js.map +1 -0
  18. package/dist/admin/generated/client.gen.d.ts +13 -0
  19. package/dist/admin/generated/client.gen.d.ts.map +1 -0
  20. package/dist/admin/generated/client.gen.js +4 -0
  21. package/dist/admin/generated/client.gen.js.map +1 -0
  22. package/dist/admin/generated/core/auth.gen.d.ts +26 -0
  23. package/dist/admin/generated/core/auth.gen.d.ts.map +1 -0
  24. package/dist/admin/generated/core/auth.gen.js +15 -0
  25. package/dist/admin/generated/core/auth.gen.js.map +1 -0
  26. package/dist/admin/generated/core/bodySerializer.gen.d.ts +26 -0
  27. package/dist/admin/generated/core/bodySerializer.gen.d.ts.map +1 -0
  28. package/dist/admin/generated/core/bodySerializer.gen.js +58 -0
  29. package/dist/admin/generated/core/bodySerializer.gen.js.map +1 -0
  30. package/dist/admin/generated/core/params.gen.d.ts +44 -0
  31. package/dist/admin/generated/core/params.gen.d.ts.map +1 -0
  32. package/dist/admin/generated/core/params.gen.js +113 -0
  33. package/dist/admin/generated/core/params.gen.js.map +1 -0
  34. package/dist/admin/generated/core/pathSerializer.gen.d.ts +34 -0
  35. package/dist/admin/generated/core/pathSerializer.gen.d.ts.map +1 -0
  36. package/dist/admin/generated/core/pathSerializer.gen.js +115 -0
  37. package/dist/admin/generated/core/pathSerializer.gen.js.map +1 -0
  38. package/dist/admin/generated/core/queryKeySerializer.gen.d.ts +19 -0
  39. package/dist/admin/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
  40. package/dist/admin/generated/core/queryKeySerializer.gen.js +100 -0
  41. package/dist/admin/generated/core/queryKeySerializer.gen.js.map +1 -0
  42. package/dist/admin/generated/core/serverSentEvents.gen.d.ts +72 -0
  43. package/dist/admin/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  44. package/dist/admin/generated/core/serverSentEvents.gen.js +137 -0
  45. package/dist/admin/generated/core/serverSentEvents.gen.js.map +1 -0
  46. package/dist/admin/generated/core/types.gen.d.ts +84 -0
  47. package/dist/admin/generated/core/types.gen.d.ts.map +1 -0
  48. package/dist/admin/generated/core/types.gen.js +3 -0
  49. package/dist/admin/generated/core/types.gen.js.map +1 -0
  50. package/dist/admin/generated/core/utils.gen.d.ts +20 -0
  51. package/dist/admin/generated/core/utils.gen.d.ts.map +1 -0
  52. package/dist/admin/generated/core/utils.gen.js +88 -0
  53. package/dist/admin/generated/core/utils.gen.js.map +1 -0
  54. package/dist/admin/generated/index.d.ts +3 -0
  55. package/dist/admin/generated/index.d.ts.map +1 -0
  56. package/dist/admin/generated/index.js +3 -0
  57. package/dist/admin/generated/index.js.map +1 -0
  58. package/dist/admin/generated/sdk.gen.d.ts +188 -0
  59. package/dist/admin/generated/sdk.gen.d.ts.map +1 -0
  60. package/dist/admin/generated/sdk.gen.js +531 -0
  61. package/dist/admin/generated/sdk.gen.js.map +1 -0
  62. package/dist/admin/generated/types.gen.d.ts +2493 -0
  63. package/dist/admin/generated/types.gen.d.ts.map +1 -0
  64. package/dist/admin/generated/types.gen.js +3 -0
  65. package/dist/admin/generated/types.gen.js.map +1 -0
  66. package/dist/admin/generated/zod.gen.d.ts +2755 -0
  67. package/dist/admin/generated/zod.gen.d.ts.map +1 -0
  68. package/dist/admin/generated/zod.gen.js +606 -0
  69. package/dist/admin/generated/zod.gen.js.map +1 -0
  70. package/dist/admin/index.d.ts +15 -0
  71. package/dist/admin/index.d.ts.map +1 -0
  72. package/dist/admin/index.js +19 -0
  73. package/dist/admin/index.js.map +1 -0
  74. package/dist/generated/index.d.ts +1 -1
  75. package/dist/generated/index.d.ts.map +1 -1
  76. package/dist/generated/sdk.gen.d.ts +80 -45
  77. package/dist/generated/sdk.gen.d.ts.map +1 -1
  78. package/dist/generated/sdk.gen.js +192 -157
  79. package/dist/generated/sdk.gen.js.map +1 -1
  80. package/dist/generated/types.gen.d.ts +887 -453
  81. package/dist/generated/types.gen.d.ts.map +1 -1
  82. package/dist/generated/zod.gen.d.ts +468 -286
  83. package/dist/generated/zod.gen.d.ts.map +1 -1
  84. package/dist/generated/zod.gen.js +188 -201
  85. package/dist/generated/zod.gen.js.map +1 -1
  86. package/dist/http-client.d.ts +1 -1
  87. package/dist/http-client.d.ts.map +1 -1
  88. package/dist/http-client.js +3 -3
  89. package/dist/http-client.js.map +1 -1
  90. package/dist/index.d.ts +1 -1
  91. package/dist/realtime/api-stream-error.d.ts +2 -1
  92. package/dist/realtime/api-stream-error.d.ts.map +1 -1
  93. package/dist/realtime/api-stream-error.js +8 -1
  94. package/dist/realtime/api-stream-error.js.map +1 -1
  95. package/dist/realtime/watch.d.ts +8 -8
  96. package/dist/realtime/watch.d.ts.map +1 -1
  97. package/dist/realtime/watch.js +2 -2
  98. package/dist/realtime/watch.js.map +1 -1
  99. package/dist/transport.js +10 -1
  100. package/dist/transport.js.map +1 -1
  101. package/package.json +7 -2
  102. package/src/admin/generated/client/client.gen.ts +300 -0
  103. package/src/admin/generated/client/index.ts +27 -0
  104. package/src/admin/generated/client/types.gen.ts +238 -0
  105. package/src/admin/generated/client/utils.gen.ts +337 -0
  106. package/src/admin/generated/client.gen.ts +24 -0
  107. package/src/admin/generated/core/auth.gen.ts +49 -0
  108. package/src/admin/generated/core/bodySerializer.gen.ts +96 -0
  109. package/src/admin/generated/core/params.gen.ts +188 -0
  110. package/src/admin/generated/core/pathSerializer.gen.ts +186 -0
  111. package/src/admin/generated/core/queryKeySerializer.gen.ts +134 -0
  112. package/src/admin/generated/core/serverSentEvents.gen.ts +265 -0
  113. package/src/admin/generated/core/types.gen.ts +126 -0
  114. package/src/admin/generated/core/utils.gen.ts +146 -0
  115. package/src/admin/generated/index.ts +231 -0
  116. package/src/admin/generated/sdk.gen.ts +1180 -0
  117. package/src/admin/generated/types.gen.ts +2814 -0
  118. package/src/admin/generated/zod.gen.ts +746 -0
  119. package/src/admin/index.ts +34 -0
  120. package/src/generated/index.ts +6 -2
  121. package/src/generated/sdk.gen.ts +408 -373
  122. package/src/generated/types.gen.ts +956 -516
  123. package/src/generated/zod.gen.ts +217 -231
  124. package/src/http-client.ts +6 -3
  125. package/src/realtime/api-stream-error.ts +12 -1
  126. package/src/realtime/watch.ts +34 -22
  127. package/src/transport.ts +10 -1
@@ -0,0 +1,2814 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ export type ClientOptions = {
4
+ baseUrl: `${string}://${string}` | (string & {});
5
+ };
6
+
7
+ export type AdminAddMemberRequest = {
8
+ email: string;
9
+ description?: string;
10
+ };
11
+
12
+ export type AdminB2bSubscriptionRequest = {
13
+ requestId: string;
14
+ company: string;
15
+ streetName: string;
16
+ postalArea: string;
17
+ tier: AdminB2bTier;
18
+ country: string;
19
+ email: string;
20
+ quantity: number;
21
+ startsAt: string;
22
+ nextPaymentAt: string;
23
+ tierInfo: string;
24
+ description?: string;
25
+ };
26
+
27
+ export type AdminB2bSubscriptionResult = {
28
+ success: boolean;
29
+ id: string;
30
+ };
31
+
32
+ export type AdminB2bTier =
33
+ "b2b_0" | "b2b_1" | "b2b_2" | "b2b_3" | "b2b_4" | "b2b_5" | "b2b_6" | "b2b_7";
34
+
35
+ export type AdminBikeRequest = {
36
+ changes: {
37
+ [key: string]: string;
38
+ };
39
+ };
40
+
41
+ export type AdminConfigurationRequest = {
42
+ values: {
43
+ [key: string]: unknown;
44
+ };
45
+ };
46
+
47
+ export type AdminDenylistRequest = {
48
+ requestId: string;
49
+ value: boolean;
50
+ expected: boolean;
51
+ reason?: null | string;
52
+ };
53
+
54
+ export type AdminDocument = {
55
+ id: string;
56
+ fields: AdminSupportValue;
57
+ };
58
+
59
+ export type AdminFavoriteRequest = {
60
+ comment: string;
61
+ };
62
+
63
+ export type AdminGeneration = "gen1" | "gen2";
64
+
65
+ export type AdminLinkSubscriptionRequest = {
66
+ subscriptionId: string;
67
+ };
68
+
69
+ export type AdminLookupRequest = {
70
+ uids?: null | Array<string>;
71
+ emails?: null | Array<string>;
72
+ };
73
+
74
+ export type AdminLookupResult = {
75
+ uidsLookup: Array<AdminLookupUser>;
76
+ emailsLookup: Array<AdminLookupUser>;
77
+ };
78
+
79
+ export type AdminLookupUser = {
80
+ userId: string;
81
+ email: null | string;
82
+ nickname: null | string;
83
+ };
84
+
85
+ export type AdminMode = "passive" | "security" | "standard" | "tracking";
86
+
87
+ export type AdminModeRequest = {
88
+ mode: AdminMode;
89
+ };
90
+
91
+ export type AdminNotificationRequest = {
92
+ requestId: string;
93
+ title: string;
94
+ message: string;
95
+ supportTimestamp?: null | boolean;
96
+ log?: null | string;
97
+ };
98
+
99
+ export type AdminOperationalDomain = {
100
+ state: JsonElement;
101
+ updatedAt: AdminTimestamp;
102
+ };
103
+
104
+ export type AdminOperationalDomains = {
105
+ battery: null | AdminOperationalDomain;
106
+ runtime: null | AdminOperationalDomain;
107
+ statistics: null | AdminOperationalDomain;
108
+ firmware: null | AdminOperationalDomain;
109
+ };
110
+
111
+ export type AdminOperationalState = {
112
+ schemaVersion: number;
113
+ deviceId: string;
114
+ deviceEpoch: string;
115
+ deviceCreatedAt: AdminTimestamp;
116
+ domains: AdminOperationalDomains;
117
+ };
118
+
119
+ export type AdminPublicStates = {
120
+ contact: null | AdminDocument;
121
+ battery: null | AdminDocument;
122
+ location: null | AdminDocument;
123
+ configuration: null | AdminDocument;
124
+ };
125
+
126
+ export type AdminReadResult = {
127
+ documents: Array<AdminDocument>;
128
+ nextCursor: null | string;
129
+ states: null | AdminPublicStates;
130
+ };
131
+
132
+ export type AdminRequestId = {
133
+ requestId: string;
134
+ };
135
+
136
+ export type AdminSession = {
137
+ uid: string;
138
+ canRead: boolean;
139
+ canWrite: boolean;
140
+ isSalesUser: boolean;
141
+ };
142
+
143
+ export type AdminSupportValue =
144
+ | null
145
+ | boolean
146
+ | string
147
+ | number
148
+ | {
149
+ map: {
150
+ [key: string]: AdminSupportValue;
151
+ };
152
+ }
153
+ | {
154
+ array: Array<AdminSupportValue>;
155
+ }
156
+ | {
157
+ timestamp: {
158
+ seconds: number;
159
+ nanoseconds: number;
160
+ };
161
+ }
162
+ | {
163
+ geoPoint: {
164
+ latitude: number;
165
+ longitude: number;
166
+ };
167
+ }
168
+ | {
169
+ reference: string;
170
+ }
171
+ | {
172
+ bytes: string;
173
+ }
174
+ | {
175
+ number: "NaN" | "Infinity" | "-Infinity";
176
+ };
177
+
178
+ export type AdminTimestamp = {
179
+ seconds: number;
180
+ nanoseconds: number;
181
+ };
182
+
183
+ export type AdminTrackerCommand =
184
+ | "changeEncryptionKey"
185
+ | "changeRareConfigs"
186
+ | "eraseExternalFlash"
187
+ | "factoryReset"
188
+ | "flightMode"
189
+ | "installFota"
190
+ | "powerDown"
191
+ | "reset";
192
+
193
+ export type AdminTrackerCommandRequest = {
194
+ generation: AdminGeneration;
195
+ command: null | AdminTrackerCommand;
196
+ expectedCommand: null | string;
197
+ };
198
+
199
+ export type AdminTrackerCommandResult = {
200
+ success: boolean;
201
+ commandId: string;
202
+ jobIds: Array<string>;
203
+ };
204
+
205
+ export type AdminTrackerView = {
206
+ tracker: AdminReadResult;
207
+ operationalState: null | AdminOperationalState;
208
+ };
209
+
210
+ export type CommandSuccess = {
211
+ success: boolean;
212
+ };
213
+
214
+ export type IFormFile = Blob | File;
215
+
216
+ export type JsonElement = unknown;
217
+
218
+ export type PhotoUploadResult = {
219
+ id: string;
220
+ };
221
+
222
+ export type ProblemDetails = {
223
+ type?: null | string;
224
+ title?: null | string;
225
+ status?: null | number;
226
+ detail?: null | string;
227
+ instance?: null | string;
228
+ /**
229
+ * Stable machine-readable failure code. Use status for broad handling.
230
+ */
231
+ code: string;
232
+ /**
233
+ * Request correlation identifier for support.
234
+ */
235
+ traceId: string;
236
+ /**
237
+ * Field validation messages, when request validation fails.
238
+ */
239
+ errors?: {
240
+ [key: string]: Array<string>;
241
+ };
242
+ };
243
+
244
+ export type AdminGetSessionData = {
245
+ body?: never;
246
+ path?: never;
247
+ query?: never;
248
+ url: "/v1/admin/session";
249
+ };
250
+
251
+ export type AdminGetSessionErrors = {
252
+ /**
253
+ * Bad Request
254
+ */
255
+ 400: ProblemDetails;
256
+ /**
257
+ * Unauthorized
258
+ */
259
+ 401: ProblemDetails;
260
+ /**
261
+ * Forbidden
262
+ */
263
+ 403: ProblemDetails;
264
+ /**
265
+ * Not Found
266
+ */
267
+ 404: ProblemDetails;
268
+ /**
269
+ * Conflict
270
+ */
271
+ 409: ProblemDetails;
272
+ /**
273
+ * Payload Too Large
274
+ */
275
+ 413: ProblemDetails;
276
+ /**
277
+ * Too Many Requests
278
+ */
279
+ 429: ProblemDetails;
280
+ /**
281
+ * Internal Server Error
282
+ */
283
+ 500: ProblemDetails;
284
+ /**
285
+ * Bad Gateway
286
+ */
287
+ 502: ProblemDetails;
288
+ /**
289
+ * Service Unavailable
290
+ */
291
+ 503: ProblemDetails;
292
+ };
293
+
294
+ export type AdminGetSessionError =
295
+ AdminGetSessionErrors[keyof AdminGetSessionErrors];
296
+
297
+ export type AdminGetSessionResponses = {
298
+ /**
299
+ * OK
300
+ */
301
+ 200: AdminSession;
302
+ };
303
+
304
+ export type AdminGetSessionResponse =
305
+ AdminGetSessionResponses[keyof AdminGetSessionResponses];
306
+
307
+ export type AdminGetTrackerData = {
308
+ body?: never;
309
+ path: {
310
+ trackerId: string;
311
+ };
312
+ query?: {
313
+ domains?: Array<"battery" | "configuration" | "contact" | "location">;
314
+ };
315
+ url: "/v1/admin/trackers/{trackerId}";
316
+ };
317
+
318
+ export type AdminGetTrackerErrors = {
319
+ /**
320
+ * Bad Request
321
+ */
322
+ 400: ProblemDetails;
323
+ /**
324
+ * Unauthorized
325
+ */
326
+ 401: ProblemDetails;
327
+ /**
328
+ * Forbidden
329
+ */
330
+ 403: ProblemDetails;
331
+ /**
332
+ * Not Found
333
+ */
334
+ 404: ProblemDetails;
335
+ /**
336
+ * Conflict
337
+ */
338
+ 409: ProblemDetails;
339
+ /**
340
+ * Payload Too Large
341
+ */
342
+ 413: ProblemDetails;
343
+ /**
344
+ * Too Many Requests
345
+ */
346
+ 429: ProblemDetails;
347
+ /**
348
+ * Internal Server Error
349
+ */
350
+ 500: ProblemDetails;
351
+ /**
352
+ * Bad Gateway
353
+ */
354
+ 502: ProblemDetails;
355
+ /**
356
+ * Service Unavailable
357
+ */
358
+ 503: ProblemDetails;
359
+ };
360
+
361
+ export type AdminGetTrackerError =
362
+ AdminGetTrackerErrors[keyof AdminGetTrackerErrors];
363
+
364
+ export type AdminGetTrackerResponses = {
365
+ /**
366
+ * OK
367
+ */
368
+ 200: AdminReadResult;
369
+ };
370
+
371
+ export type AdminGetTrackerResponse =
372
+ AdminGetTrackerResponses[keyof AdminGetTrackerResponses];
373
+
374
+ export type AdminSearchTrackersData = {
375
+ body?: never;
376
+ path?: never;
377
+ query: {
378
+ kind: "iccid" | "imei" | "subscriptionId" | "uid";
379
+ value: string;
380
+ cursor?: string;
381
+ };
382
+ url: "/v1/admin/trackers";
383
+ };
384
+
385
+ export type AdminSearchTrackersErrors = {
386
+ /**
387
+ * Bad Request
388
+ */
389
+ 400: ProblemDetails;
390
+ /**
391
+ * Unauthorized
392
+ */
393
+ 401: ProblemDetails;
394
+ /**
395
+ * Forbidden
396
+ */
397
+ 403: ProblemDetails;
398
+ /**
399
+ * Not Found
400
+ */
401
+ 404: ProblemDetails;
402
+ /**
403
+ * Conflict
404
+ */
405
+ 409: ProblemDetails;
406
+ /**
407
+ * Payload Too Large
408
+ */
409
+ 413: ProblemDetails;
410
+ /**
411
+ * Too Many Requests
412
+ */
413
+ 429: ProblemDetails;
414
+ /**
415
+ * Internal Server Error
416
+ */
417
+ 500: ProblemDetails;
418
+ /**
419
+ * Bad Gateway
420
+ */
421
+ 502: ProblemDetails;
422
+ /**
423
+ * Service Unavailable
424
+ */
425
+ 503: ProblemDetails;
426
+ };
427
+
428
+ export type AdminSearchTrackersError =
429
+ AdminSearchTrackersErrors[keyof AdminSearchTrackersErrors];
430
+
431
+ export type AdminSearchTrackersResponses = {
432
+ /**
433
+ * OK
434
+ */
435
+ 200: AdminReadResult;
436
+ };
437
+
438
+ export type AdminSearchTrackersResponse =
439
+ AdminSearchTrackersResponses[keyof AdminSearchTrackersResponses];
440
+
441
+ export type AdminListTrackerHistoryData = {
442
+ body?: never;
443
+ path: {
444
+ trackerId: string;
445
+ collection: "data" | "images" | "logs" | "productionData" | "sanitizedData";
446
+ };
447
+ query?: {
448
+ /**
449
+ * Inclusive ISO timestamp with timezone.
450
+ */
451
+ from?: string;
452
+ /**
453
+ * Exclusive ISO timestamp with timezone.
454
+ */
455
+ to?: string;
456
+ cursor?: string;
457
+ };
458
+ url: "/v1/admin/trackers/{trackerId}/history/{collection}";
459
+ };
460
+
461
+ export type AdminListTrackerHistoryErrors = {
462
+ /**
463
+ * Bad Request
464
+ */
465
+ 400: ProblemDetails;
466
+ /**
467
+ * Unauthorized
468
+ */
469
+ 401: ProblemDetails;
470
+ /**
471
+ * Forbidden
472
+ */
473
+ 403: ProblemDetails;
474
+ /**
475
+ * Not Found
476
+ */
477
+ 404: ProblemDetails;
478
+ /**
479
+ * Conflict
480
+ */
481
+ 409: ProblemDetails;
482
+ /**
483
+ * Payload Too Large
484
+ */
485
+ 413: ProblemDetails;
486
+ /**
487
+ * Too Many Requests
488
+ */
489
+ 429: ProblemDetails;
490
+ /**
491
+ * Internal Server Error
492
+ */
493
+ 500: ProblemDetails;
494
+ /**
495
+ * Bad Gateway
496
+ */
497
+ 502: ProblemDetails;
498
+ /**
499
+ * Service Unavailable
500
+ */
501
+ 503: ProblemDetails;
502
+ };
503
+
504
+ export type AdminListTrackerHistoryError =
505
+ AdminListTrackerHistoryErrors[keyof AdminListTrackerHistoryErrors];
506
+
507
+ export type AdminListTrackerHistoryResponses = {
508
+ /**
509
+ * OK
510
+ */
511
+ 200: AdminReadResult;
512
+ };
513
+
514
+ export type AdminListTrackerHistoryResponse =
515
+ AdminListTrackerHistoryResponses[keyof AdminListTrackerHistoryResponses];
516
+
517
+ export type AdminGetTrackerOperationalStateData = {
518
+ body?: never;
519
+ path: {
520
+ trackerId: string;
521
+ };
522
+ query: {
523
+ domains: Array<"battery" | "firmware" | "runtime" | "statistics">;
524
+ };
525
+ url: "/v1/admin/trackers/{trackerId}/operational-state";
526
+ };
527
+
528
+ export type AdminGetTrackerOperationalStateErrors = {
529
+ /**
530
+ * Bad Request
531
+ */
532
+ 400: ProblemDetails;
533
+ /**
534
+ * Unauthorized
535
+ */
536
+ 401: ProblemDetails;
537
+ /**
538
+ * Forbidden
539
+ */
540
+ 403: ProblemDetails;
541
+ /**
542
+ * Not Found
543
+ */
544
+ 404: ProblemDetails;
545
+ /**
546
+ * Conflict
547
+ */
548
+ 409: ProblemDetails;
549
+ /**
550
+ * Payload Too Large
551
+ */
552
+ 413: ProblemDetails;
553
+ /**
554
+ * Too Many Requests
555
+ */
556
+ 429: ProblemDetails;
557
+ /**
558
+ * Internal Server Error
559
+ */
560
+ 500: ProblemDetails;
561
+ /**
562
+ * Bad Gateway
563
+ */
564
+ 502: ProblemDetails;
565
+ /**
566
+ * Service Unavailable
567
+ */
568
+ 503: ProblemDetails;
569
+ };
570
+
571
+ export type AdminGetTrackerOperationalStateError =
572
+ AdminGetTrackerOperationalStateErrors[keyof AdminGetTrackerOperationalStateErrors];
573
+
574
+ export type AdminGetTrackerOperationalStateResponses = {
575
+ /**
576
+ * OK
577
+ */
578
+ 200: AdminOperationalState;
579
+ };
580
+
581
+ export type AdminGetTrackerOperationalStateResponse =
582
+ AdminGetTrackerOperationalStateResponses[keyof AdminGetTrackerOperationalStateResponses];
583
+
584
+ export type AdminRequestTrackerModeData = {
585
+ body: AdminModeRequest;
586
+ path: {
587
+ trackerId: string;
588
+ };
589
+ query?: never;
590
+ url: "/v1/admin/trackers/{trackerId}/mode-requests";
591
+ };
592
+
593
+ export type AdminRequestTrackerModeErrors = {
594
+ /**
595
+ * Bad Request
596
+ */
597
+ 400: ProblemDetails;
598
+ /**
599
+ * Unauthorized
600
+ */
601
+ 401: ProblemDetails;
602
+ /**
603
+ * Forbidden
604
+ */
605
+ 403: ProblemDetails;
606
+ /**
607
+ * Not Found
608
+ */
609
+ 404: ProblemDetails;
610
+ /**
611
+ * Conflict
612
+ */
613
+ 409: ProblemDetails;
614
+ /**
615
+ * Payload Too Large
616
+ */
617
+ 413: ProblemDetails;
618
+ /**
619
+ * Unsupported Media Type
620
+ */
621
+ 415: ProblemDetails;
622
+ /**
623
+ * Too Many Requests
624
+ */
625
+ 429: ProblemDetails;
626
+ /**
627
+ * Internal Server Error
628
+ */
629
+ 500: ProblemDetails;
630
+ /**
631
+ * Bad Gateway
632
+ */
633
+ 502: ProblemDetails;
634
+ /**
635
+ * Service Unavailable
636
+ */
637
+ 503: ProblemDetails;
638
+ };
639
+
640
+ export type AdminRequestTrackerModeError =
641
+ AdminRequestTrackerModeErrors[keyof AdminRequestTrackerModeErrors];
642
+
643
+ export type AdminRequestTrackerModeResponses = {
644
+ /**
645
+ * OK
646
+ */
647
+ 200: CommandSuccess;
648
+ };
649
+
650
+ export type AdminRequestTrackerModeResponse =
651
+ AdminRequestTrackerModeResponses[keyof AdminRequestTrackerModeResponses];
652
+
653
+ export type AdminRequestTrackerCommandData = {
654
+ body: AdminTrackerCommandRequest;
655
+ path: {
656
+ trackerId: string;
657
+ };
658
+ query?: never;
659
+ url: "/v1/admin/trackers/{trackerId}/pending-command";
660
+ };
661
+
662
+ export type AdminRequestTrackerCommandErrors = {
663
+ /**
664
+ * Bad Request
665
+ */
666
+ 400: ProblemDetails;
667
+ /**
668
+ * Unauthorized
669
+ */
670
+ 401: ProblemDetails;
671
+ /**
672
+ * Forbidden
673
+ */
674
+ 403: ProblemDetails;
675
+ /**
676
+ * Not Found
677
+ */
678
+ 404: ProblemDetails;
679
+ /**
680
+ * Conflict
681
+ */
682
+ 409: ProblemDetails;
683
+ /**
684
+ * Payload Too Large
685
+ */
686
+ 413: ProblemDetails;
687
+ /**
688
+ * Unsupported Media Type
689
+ */
690
+ 415: ProblemDetails;
691
+ /**
692
+ * Too Many Requests
693
+ */
694
+ 429: ProblemDetails;
695
+ /**
696
+ * Internal Server Error
697
+ */
698
+ 500: ProblemDetails;
699
+ /**
700
+ * Bad Gateway
701
+ */
702
+ 502: ProblemDetails;
703
+ /**
704
+ * Service Unavailable
705
+ */
706
+ 503: ProblemDetails;
707
+ };
708
+
709
+ export type AdminRequestTrackerCommandError =
710
+ AdminRequestTrackerCommandErrors[keyof AdminRequestTrackerCommandErrors];
711
+
712
+ export type AdminRequestTrackerCommandResponses = {
713
+ /**
714
+ * OK
715
+ */
716
+ 200: CommandSuccess;
717
+ };
718
+
719
+ export type AdminRequestTrackerCommandResponse =
720
+ AdminRequestTrackerCommandResponses[keyof AdminRequestTrackerCommandResponses];
721
+
722
+ export type AdminUpdateTrackerConfigurationData = {
723
+ body: AdminConfigurationRequest;
724
+ path: {
725
+ trackerId: string;
726
+ };
727
+ query?: never;
728
+ url: "/v1/admin/trackers/{trackerId}/configuration";
729
+ };
730
+
731
+ export type AdminUpdateTrackerConfigurationErrors = {
732
+ /**
733
+ * Bad Request
734
+ */
735
+ 400: ProblemDetails;
736
+ /**
737
+ * Unauthorized
738
+ */
739
+ 401: ProblemDetails;
740
+ /**
741
+ * Forbidden
742
+ */
743
+ 403: ProblemDetails;
744
+ /**
745
+ * Not Found
746
+ */
747
+ 404: ProblemDetails;
748
+ /**
749
+ * Conflict
750
+ */
751
+ 409: ProblemDetails;
752
+ /**
753
+ * Payload Too Large
754
+ */
755
+ 413: ProblemDetails;
756
+ /**
757
+ * Unsupported Media Type
758
+ */
759
+ 415: ProblemDetails;
760
+ /**
761
+ * Too Many Requests
762
+ */
763
+ 429: ProblemDetails;
764
+ /**
765
+ * Internal Server Error
766
+ */
767
+ 500: ProblemDetails;
768
+ /**
769
+ * Bad Gateway
770
+ */
771
+ 502: ProblemDetails;
772
+ /**
773
+ * Service Unavailable
774
+ */
775
+ 503: ProblemDetails;
776
+ };
777
+
778
+ export type AdminUpdateTrackerConfigurationError =
779
+ AdminUpdateTrackerConfigurationErrors[keyof AdminUpdateTrackerConfigurationErrors];
780
+
781
+ export type AdminUpdateTrackerConfigurationResponses = {
782
+ /**
783
+ * OK
784
+ */
785
+ 200: CommandSuccess;
786
+ };
787
+
788
+ export type AdminUpdateTrackerConfigurationResponse =
789
+ AdminUpdateTrackerConfigurationResponses[keyof AdminUpdateTrackerConfigurationResponses];
790
+
791
+ export type AdminUpdateTrackerBikeData = {
792
+ body: AdminBikeRequest;
793
+ path: {
794
+ trackerId: string;
795
+ };
796
+ query?: never;
797
+ url: "/v1/admin/trackers/{trackerId}/bike";
798
+ };
799
+
800
+ export type AdminUpdateTrackerBikeErrors = {
801
+ /**
802
+ * Bad Request
803
+ */
804
+ 400: ProblemDetails;
805
+ /**
806
+ * Unauthorized
807
+ */
808
+ 401: ProblemDetails;
809
+ /**
810
+ * Forbidden
811
+ */
812
+ 403: ProblemDetails;
813
+ /**
814
+ * Not Found
815
+ */
816
+ 404: ProblemDetails;
817
+ /**
818
+ * Conflict
819
+ */
820
+ 409: ProblemDetails;
821
+ /**
822
+ * Payload Too Large
823
+ */
824
+ 413: ProblemDetails;
825
+ /**
826
+ * Unsupported Media Type
827
+ */
828
+ 415: ProblemDetails;
829
+ /**
830
+ * Too Many Requests
831
+ */
832
+ 429: ProblemDetails;
833
+ /**
834
+ * Internal Server Error
835
+ */
836
+ 500: ProblemDetails;
837
+ /**
838
+ * Bad Gateway
839
+ */
840
+ 502: ProblemDetails;
841
+ /**
842
+ * Service Unavailable
843
+ */
844
+ 503: ProblemDetails;
845
+ };
846
+
847
+ export type AdminUpdateTrackerBikeError =
848
+ AdminUpdateTrackerBikeErrors[keyof AdminUpdateTrackerBikeErrors];
849
+
850
+ export type AdminUpdateTrackerBikeResponses = {
851
+ /**
852
+ * OK
853
+ */
854
+ 200: CommandSuccess;
855
+ };
856
+
857
+ export type AdminUpdateTrackerBikeResponse =
858
+ AdminUpdateTrackerBikeResponses[keyof AdminUpdateTrackerBikeResponses];
859
+
860
+ export type AdminCleanTrackerData = {
861
+ body: AdminRequestId;
862
+ path: {
863
+ trackerId: string;
864
+ };
865
+ query?: never;
866
+ url: "/v1/admin/trackers/{trackerId}/cleanup-requests";
867
+ };
868
+
869
+ export type AdminCleanTrackerErrors = {
870
+ /**
871
+ * Bad Request
872
+ */
873
+ 400: ProblemDetails;
874
+ /**
875
+ * Unauthorized
876
+ */
877
+ 401: ProblemDetails;
878
+ /**
879
+ * Forbidden
880
+ */
881
+ 403: ProblemDetails;
882
+ /**
883
+ * Not Found
884
+ */
885
+ 404: ProblemDetails;
886
+ /**
887
+ * Conflict
888
+ */
889
+ 409: ProblemDetails;
890
+ /**
891
+ * Payload Too Large
892
+ */
893
+ 413: ProblemDetails;
894
+ /**
895
+ * Unsupported Media Type
896
+ */
897
+ 415: ProblemDetails;
898
+ /**
899
+ * Too Many Requests
900
+ */
901
+ 429: ProblemDetails;
902
+ /**
903
+ * Internal Server Error
904
+ */
905
+ 500: ProblemDetails;
906
+ /**
907
+ * Bad Gateway
908
+ */
909
+ 502: ProblemDetails;
910
+ /**
911
+ * Service Unavailable
912
+ */
913
+ 503: ProblemDetails;
914
+ };
915
+
916
+ export type AdminCleanTrackerError =
917
+ AdminCleanTrackerErrors[keyof AdminCleanTrackerErrors];
918
+
919
+ export type AdminCleanTrackerResponses = {
920
+ /**
921
+ * Accepted
922
+ */
923
+ 202: AdminTrackerCommandResult;
924
+ };
925
+
926
+ export type AdminCleanTrackerResponse =
927
+ AdminCleanTrackerResponses[keyof AdminCleanTrackerResponses];
928
+
929
+ export type AdminSetTrackerDenylistData = {
930
+ body: AdminDenylistRequest;
931
+ path: {
932
+ trackerId: string;
933
+ };
934
+ query?: never;
935
+ url: "/v1/admin/trackers/{trackerId}/denylist";
936
+ };
937
+
938
+ export type AdminSetTrackerDenylistErrors = {
939
+ /**
940
+ * Bad Request
941
+ */
942
+ 400: ProblemDetails;
943
+ /**
944
+ * Unauthorized
945
+ */
946
+ 401: ProblemDetails;
947
+ /**
948
+ * Forbidden
949
+ */
950
+ 403: ProblemDetails;
951
+ /**
952
+ * Not Found
953
+ */
954
+ 404: ProblemDetails;
955
+ /**
956
+ * Conflict
957
+ */
958
+ 409: ProblemDetails;
959
+ /**
960
+ * Payload Too Large
961
+ */
962
+ 413: ProblemDetails;
963
+ /**
964
+ * Unsupported Media Type
965
+ */
966
+ 415: ProblemDetails;
967
+ /**
968
+ * Too Many Requests
969
+ */
970
+ 429: ProblemDetails;
971
+ /**
972
+ * Internal Server Error
973
+ */
974
+ 500: ProblemDetails;
975
+ /**
976
+ * Bad Gateway
977
+ */
978
+ 502: ProblemDetails;
979
+ /**
980
+ * Service Unavailable
981
+ */
982
+ 503: ProblemDetails;
983
+ };
984
+
985
+ export type AdminSetTrackerDenylistError =
986
+ AdminSetTrackerDenylistErrors[keyof AdminSetTrackerDenylistErrors];
987
+
988
+ export type AdminSetTrackerDenylistResponses = {
989
+ /**
990
+ * OK
991
+ */
992
+ 200: AdminTrackerCommandResult;
993
+ };
994
+
995
+ export type AdminSetTrackerDenylistResponse =
996
+ AdminSetTrackerDenylistResponses[keyof AdminSetTrackerDenylistResponses];
997
+
998
+ export type AdminNotifyTrackerData = {
999
+ body: AdminNotificationRequest;
1000
+ path: {
1001
+ trackerId: string;
1002
+ };
1003
+ query?: never;
1004
+ url: "/v1/admin/trackers/{trackerId}/notification-requests";
1005
+ };
1006
+
1007
+ export type AdminNotifyTrackerErrors = {
1008
+ /**
1009
+ * Bad Request
1010
+ */
1011
+ 400: ProblemDetails;
1012
+ /**
1013
+ * Unauthorized
1014
+ */
1015
+ 401: ProblemDetails;
1016
+ /**
1017
+ * Forbidden
1018
+ */
1019
+ 403: ProblemDetails;
1020
+ /**
1021
+ * Not Found
1022
+ */
1023
+ 404: ProblemDetails;
1024
+ /**
1025
+ * Conflict
1026
+ */
1027
+ 409: ProblemDetails;
1028
+ /**
1029
+ * Payload Too Large
1030
+ */
1031
+ 413: ProblemDetails;
1032
+ /**
1033
+ * Unsupported Media Type
1034
+ */
1035
+ 415: ProblemDetails;
1036
+ /**
1037
+ * Too Many Requests
1038
+ */
1039
+ 429: ProblemDetails;
1040
+ /**
1041
+ * Internal Server Error
1042
+ */
1043
+ 500: ProblemDetails;
1044
+ /**
1045
+ * Bad Gateway
1046
+ */
1047
+ 502: ProblemDetails;
1048
+ /**
1049
+ * Service Unavailable
1050
+ */
1051
+ 503: ProblemDetails;
1052
+ };
1053
+
1054
+ export type AdminNotifyTrackerError =
1055
+ AdminNotifyTrackerErrors[keyof AdminNotifyTrackerErrors];
1056
+
1057
+ export type AdminNotifyTrackerResponses = {
1058
+ /**
1059
+ * Accepted
1060
+ */
1061
+ 202: AdminTrackerCommandResult;
1062
+ };
1063
+
1064
+ export type AdminNotifyTrackerResponse =
1065
+ AdminNotifyTrackerResponses[keyof AdminNotifyTrackerResponses];
1066
+
1067
+ export type AdminAddTrackerMemberData = {
1068
+ body: AdminAddMemberRequest;
1069
+ path: {
1070
+ trackerId: string;
1071
+ };
1072
+ query?: never;
1073
+ url: "/v1/admin/trackers/{trackerId}/members";
1074
+ };
1075
+
1076
+ export type AdminAddTrackerMemberErrors = {
1077
+ /**
1078
+ * Bad Request
1079
+ */
1080
+ 400: ProblemDetails;
1081
+ /**
1082
+ * Unauthorized
1083
+ */
1084
+ 401: ProblemDetails;
1085
+ /**
1086
+ * Forbidden
1087
+ */
1088
+ 403: ProblemDetails;
1089
+ /**
1090
+ * Not Found
1091
+ */
1092
+ 404: ProblemDetails;
1093
+ /**
1094
+ * Conflict
1095
+ */
1096
+ 409: ProblemDetails;
1097
+ /**
1098
+ * Payload Too Large
1099
+ */
1100
+ 413: ProblemDetails;
1101
+ /**
1102
+ * Unsupported Media Type
1103
+ */
1104
+ 415: ProblemDetails;
1105
+ /**
1106
+ * Too Many Requests
1107
+ */
1108
+ 429: ProblemDetails;
1109
+ /**
1110
+ * Internal Server Error
1111
+ */
1112
+ 500: ProblemDetails;
1113
+ /**
1114
+ * Bad Gateway
1115
+ */
1116
+ 502: ProblemDetails;
1117
+ /**
1118
+ * Service Unavailable
1119
+ */
1120
+ 503: ProblemDetails;
1121
+ };
1122
+
1123
+ export type AdminAddTrackerMemberError =
1124
+ AdminAddTrackerMemberErrors[keyof AdminAddTrackerMemberErrors];
1125
+
1126
+ export type AdminAddTrackerMemberResponses = {
1127
+ /**
1128
+ * OK
1129
+ */
1130
+ 200: CommandSuccess;
1131
+ };
1132
+
1133
+ export type AdminAddTrackerMemberResponse =
1134
+ AdminAddTrackerMemberResponses[keyof AdminAddTrackerMemberResponses];
1135
+
1136
+ export type AdminRemoveTrackerMemberData = {
1137
+ body?: never;
1138
+ path: {
1139
+ trackerId: string;
1140
+ uid: string;
1141
+ };
1142
+ query?: never;
1143
+ url: "/v1/admin/trackers/{trackerId}/members/{uid}";
1144
+ };
1145
+
1146
+ export type AdminRemoveTrackerMemberErrors = {
1147
+ /**
1148
+ * Bad Request
1149
+ */
1150
+ 400: ProblemDetails;
1151
+ /**
1152
+ * Unauthorized
1153
+ */
1154
+ 401: ProblemDetails;
1155
+ /**
1156
+ * Forbidden
1157
+ */
1158
+ 403: ProblemDetails;
1159
+ /**
1160
+ * Not Found
1161
+ */
1162
+ 404: ProblemDetails;
1163
+ /**
1164
+ * Conflict
1165
+ */
1166
+ 409: ProblemDetails;
1167
+ /**
1168
+ * Payload Too Large
1169
+ */
1170
+ 413: ProblemDetails;
1171
+ /**
1172
+ * Too Many Requests
1173
+ */
1174
+ 429: ProblemDetails;
1175
+ /**
1176
+ * Internal Server Error
1177
+ */
1178
+ 500: ProblemDetails;
1179
+ /**
1180
+ * Bad Gateway
1181
+ */
1182
+ 502: ProblemDetails;
1183
+ /**
1184
+ * Service Unavailable
1185
+ */
1186
+ 503: ProblemDetails;
1187
+ };
1188
+
1189
+ export type AdminRemoveTrackerMemberError =
1190
+ AdminRemoveTrackerMemberErrors[keyof AdminRemoveTrackerMemberErrors];
1191
+
1192
+ export type AdminRemoveTrackerMemberResponses = {
1193
+ /**
1194
+ * OK
1195
+ */
1196
+ 200: CommandSuccess;
1197
+ };
1198
+
1199
+ export type AdminRemoveTrackerMemberResponse =
1200
+ AdminRemoveTrackerMemberResponses[keyof AdminRemoveTrackerMemberResponses];
1201
+
1202
+ export type AdminUnlinkTrackerSubscriptionData = {
1203
+ body?: never;
1204
+ path: {
1205
+ trackerId: string;
1206
+ };
1207
+ query?: never;
1208
+ url: "/v1/admin/trackers/{trackerId}/subscription";
1209
+ };
1210
+
1211
+ export type AdminUnlinkTrackerSubscriptionErrors = {
1212
+ /**
1213
+ * Bad Request
1214
+ */
1215
+ 400: ProblemDetails;
1216
+ /**
1217
+ * Unauthorized
1218
+ */
1219
+ 401: ProblemDetails;
1220
+ /**
1221
+ * Forbidden
1222
+ */
1223
+ 403: ProblemDetails;
1224
+ /**
1225
+ * Not Found
1226
+ */
1227
+ 404: ProblemDetails;
1228
+ /**
1229
+ * Conflict
1230
+ */
1231
+ 409: ProblemDetails;
1232
+ /**
1233
+ * Payload Too Large
1234
+ */
1235
+ 413: ProblemDetails;
1236
+ /**
1237
+ * Too Many Requests
1238
+ */
1239
+ 429: ProblemDetails;
1240
+ /**
1241
+ * Internal Server Error
1242
+ */
1243
+ 500: ProblemDetails;
1244
+ /**
1245
+ * Bad Gateway
1246
+ */
1247
+ 502: ProblemDetails;
1248
+ /**
1249
+ * Service Unavailable
1250
+ */
1251
+ 503: ProblemDetails;
1252
+ };
1253
+
1254
+ export type AdminUnlinkTrackerSubscriptionError =
1255
+ AdminUnlinkTrackerSubscriptionErrors[keyof AdminUnlinkTrackerSubscriptionErrors];
1256
+
1257
+ export type AdminUnlinkTrackerSubscriptionResponses = {
1258
+ /**
1259
+ * OK
1260
+ */
1261
+ 200: CommandSuccess;
1262
+ };
1263
+
1264
+ export type AdminUnlinkTrackerSubscriptionResponse =
1265
+ AdminUnlinkTrackerSubscriptionResponses[keyof AdminUnlinkTrackerSubscriptionResponses];
1266
+
1267
+ export type AdminLinkTrackerSubscriptionData = {
1268
+ body: AdminLinkSubscriptionRequest;
1269
+ path: {
1270
+ trackerId: string;
1271
+ };
1272
+ query?: never;
1273
+ url: "/v1/admin/trackers/{trackerId}/subscription";
1274
+ };
1275
+
1276
+ export type AdminLinkTrackerSubscriptionErrors = {
1277
+ /**
1278
+ * Bad Request
1279
+ */
1280
+ 400: ProblemDetails;
1281
+ /**
1282
+ * Unauthorized
1283
+ */
1284
+ 401: ProblemDetails;
1285
+ /**
1286
+ * Forbidden
1287
+ */
1288
+ 403: ProblemDetails;
1289
+ /**
1290
+ * Not Found
1291
+ */
1292
+ 404: ProblemDetails;
1293
+ /**
1294
+ * Conflict
1295
+ */
1296
+ 409: ProblemDetails;
1297
+ /**
1298
+ * Payload Too Large
1299
+ */
1300
+ 413: ProblemDetails;
1301
+ /**
1302
+ * Unsupported Media Type
1303
+ */
1304
+ 415: ProblemDetails;
1305
+ /**
1306
+ * Too Many Requests
1307
+ */
1308
+ 429: ProblemDetails;
1309
+ /**
1310
+ * Internal Server Error
1311
+ */
1312
+ 500: ProblemDetails;
1313
+ /**
1314
+ * Bad Gateway
1315
+ */
1316
+ 502: ProblemDetails;
1317
+ /**
1318
+ * Service Unavailable
1319
+ */
1320
+ 503: ProblemDetails;
1321
+ };
1322
+
1323
+ export type AdminLinkTrackerSubscriptionError =
1324
+ AdminLinkTrackerSubscriptionErrors[keyof AdminLinkTrackerSubscriptionErrors];
1325
+
1326
+ export type AdminLinkTrackerSubscriptionResponses = {
1327
+ /**
1328
+ * OK
1329
+ */
1330
+ 200: CommandSuccess;
1331
+ };
1332
+
1333
+ export type AdminLinkTrackerSubscriptionResponse =
1334
+ AdminLinkTrackerSubscriptionResponses[keyof AdminLinkTrackerSubscriptionResponses];
1335
+
1336
+ export type AdminRequestTrackerInsuranceData = {
1337
+ body: AdminRequestId;
1338
+ path: {
1339
+ trackerId: string;
1340
+ };
1341
+ query?: never;
1342
+ url: "/v1/admin/trackers/{trackerId}/insurance-requests";
1343
+ };
1344
+
1345
+ export type AdminRequestTrackerInsuranceErrors = {
1346
+ /**
1347
+ * Bad Request
1348
+ */
1349
+ 400: ProblemDetails;
1350
+ /**
1351
+ * Unauthorized
1352
+ */
1353
+ 401: ProblemDetails;
1354
+ /**
1355
+ * Forbidden
1356
+ */
1357
+ 403: ProblemDetails;
1358
+ /**
1359
+ * Not Found
1360
+ */
1361
+ 404: ProblemDetails;
1362
+ /**
1363
+ * Conflict
1364
+ */
1365
+ 409: ProblemDetails;
1366
+ /**
1367
+ * Payload Too Large
1368
+ */
1369
+ 413: ProblemDetails;
1370
+ /**
1371
+ * Unsupported Media Type
1372
+ */
1373
+ 415: ProblemDetails;
1374
+ /**
1375
+ * Too Many Requests
1376
+ */
1377
+ 429: ProblemDetails;
1378
+ /**
1379
+ * Internal Server Error
1380
+ */
1381
+ 500: ProblemDetails;
1382
+ /**
1383
+ * Bad Gateway
1384
+ */
1385
+ 502: ProblemDetails;
1386
+ /**
1387
+ * Service Unavailable
1388
+ */
1389
+ 503: ProblemDetails;
1390
+ };
1391
+
1392
+ export type AdminRequestTrackerInsuranceError =
1393
+ AdminRequestTrackerInsuranceErrors[keyof AdminRequestTrackerInsuranceErrors];
1394
+
1395
+ export type AdminRequestTrackerInsuranceResponses = {
1396
+ /**
1397
+ * Accepted
1398
+ */
1399
+ 202: CommandSuccess;
1400
+ };
1401
+
1402
+ export type AdminRequestTrackerInsuranceResponse =
1403
+ AdminRequestTrackerInsuranceResponses[keyof AdminRequestTrackerInsuranceResponses];
1404
+
1405
+ export type AdminReconcileTrackerSubscriptionData = {
1406
+ body: AdminRequestId;
1407
+ path: {
1408
+ trackerId: string;
1409
+ };
1410
+ query?: never;
1411
+ url: "/v1/admin/trackers/{trackerId}/subscription/reconciliation-requests";
1412
+ };
1413
+
1414
+ export type AdminReconcileTrackerSubscriptionErrors = {
1415
+ /**
1416
+ * Bad Request
1417
+ */
1418
+ 400: ProblemDetails;
1419
+ /**
1420
+ * Unauthorized
1421
+ */
1422
+ 401: ProblemDetails;
1423
+ /**
1424
+ * Forbidden
1425
+ */
1426
+ 403: ProblemDetails;
1427
+ /**
1428
+ * Not Found
1429
+ */
1430
+ 404: ProblemDetails;
1431
+ /**
1432
+ * Conflict
1433
+ */
1434
+ 409: ProblemDetails;
1435
+ /**
1436
+ * Payload Too Large
1437
+ */
1438
+ 413: ProblemDetails;
1439
+ /**
1440
+ * Unsupported Media Type
1441
+ */
1442
+ 415: ProblemDetails;
1443
+ /**
1444
+ * Too Many Requests
1445
+ */
1446
+ 429: ProblemDetails;
1447
+ /**
1448
+ * Internal Server Error
1449
+ */
1450
+ 500: ProblemDetails;
1451
+ /**
1452
+ * Bad Gateway
1453
+ */
1454
+ 502: ProblemDetails;
1455
+ /**
1456
+ * Service Unavailable
1457
+ */
1458
+ 503: ProblemDetails;
1459
+ };
1460
+
1461
+ export type AdminReconcileTrackerSubscriptionError =
1462
+ AdminReconcileTrackerSubscriptionErrors[keyof AdminReconcileTrackerSubscriptionErrors];
1463
+
1464
+ export type AdminReconcileTrackerSubscriptionResponses = {
1465
+ /**
1466
+ * Accepted
1467
+ */
1468
+ 202: CommandSuccess;
1469
+ };
1470
+
1471
+ export type AdminReconcileTrackerSubscriptionResponse =
1472
+ AdminReconcileTrackerSubscriptionResponses[keyof AdminReconcileTrackerSubscriptionResponses];
1473
+
1474
+ export type AdminUploadTrackerPhotoData = {
1475
+ body: {
1476
+ /**
1477
+ * JPEG file, at most 10 MiB and 25 megapixels (width * height). Multipart request limit: 11 MiB. The finalizer also checks the actual image.
1478
+ */
1479
+ file: Blob | File;
1480
+ kind: "bike" | "installation" | "receipt";
1481
+ width: number;
1482
+ height: number;
1483
+ };
1484
+ path: {
1485
+ trackerId: string;
1486
+ };
1487
+ query?: never;
1488
+ url: "/v1/admin/trackers/{trackerId}/photos";
1489
+ };
1490
+
1491
+ export type AdminUploadTrackerPhotoErrors = {
1492
+ /**
1493
+ * Bad Request
1494
+ */
1495
+ 400: ProblemDetails;
1496
+ /**
1497
+ * Unauthorized
1498
+ */
1499
+ 401: ProblemDetails;
1500
+ /**
1501
+ * Forbidden
1502
+ */
1503
+ 403: ProblemDetails;
1504
+ /**
1505
+ * Not Found
1506
+ */
1507
+ 404: ProblemDetails;
1508
+ /**
1509
+ * Conflict
1510
+ */
1511
+ 409: ProblemDetails;
1512
+ /**
1513
+ * Payload Too Large
1514
+ */
1515
+ 413: ProblemDetails;
1516
+ /**
1517
+ * Unsupported Media Type
1518
+ */
1519
+ 415: ProblemDetails;
1520
+ /**
1521
+ * Too Many Requests
1522
+ */
1523
+ 429: ProblemDetails;
1524
+ /**
1525
+ * Internal Server Error
1526
+ */
1527
+ 500: ProblemDetails;
1528
+ /**
1529
+ * Bad Gateway
1530
+ */
1531
+ 502: ProblemDetails;
1532
+ /**
1533
+ * Service Unavailable
1534
+ */
1535
+ 503: ProblemDetails;
1536
+ };
1537
+
1538
+ export type AdminUploadTrackerPhotoError =
1539
+ AdminUploadTrackerPhotoErrors[keyof AdminUploadTrackerPhotoErrors];
1540
+
1541
+ export type AdminUploadTrackerPhotoResponses = {
1542
+ /**
1543
+ * OK
1544
+ */
1545
+ 200: PhotoUploadResult;
1546
+ };
1547
+
1548
+ export type AdminUploadTrackerPhotoResponse =
1549
+ AdminUploadTrackerPhotoResponses[keyof AdminUploadTrackerPhotoResponses];
1550
+
1551
+ export type AdminSubscribeTrackerData = {
1552
+ body?: never;
1553
+ path: {
1554
+ trackerId: string;
1555
+ };
1556
+ query?: never;
1557
+ url: "/v1/admin/trackers/{trackerId}/stream";
1558
+ };
1559
+
1560
+ export type AdminSubscribeTrackerErrors = {
1561
+ /**
1562
+ * Bad Request
1563
+ */
1564
+ 400: ProblemDetails;
1565
+ /**
1566
+ * Unauthorized
1567
+ */
1568
+ 401: ProblemDetails;
1569
+ /**
1570
+ * Forbidden
1571
+ */
1572
+ 403: ProblemDetails;
1573
+ /**
1574
+ * Not Found
1575
+ */
1576
+ 404: ProblemDetails;
1577
+ /**
1578
+ * Conflict
1579
+ */
1580
+ 409: ProblemDetails;
1581
+ /**
1582
+ * Payload Too Large
1583
+ */
1584
+ 413: ProblemDetails;
1585
+ /**
1586
+ * Too Many Requests
1587
+ */
1588
+ 429: ProblemDetails;
1589
+ /**
1590
+ * Internal Server Error
1591
+ */
1592
+ 500: ProblemDetails;
1593
+ /**
1594
+ * Bad Gateway
1595
+ */
1596
+ 502: ProblemDetails;
1597
+ /**
1598
+ * Service Unavailable
1599
+ */
1600
+ 503: ProblemDetails;
1601
+ };
1602
+
1603
+ export type AdminSubscribeTrackerError =
1604
+ AdminSubscribeTrackerErrors[keyof AdminSubscribeTrackerErrors];
1605
+
1606
+ export type AdminSubscribeTrackerResponses = {
1607
+ /**
1608
+ * OK
1609
+ */
1610
+ 200: AdminTrackerView | null;
1611
+ };
1612
+
1613
+ export type AdminSubscribeTrackerResponse =
1614
+ AdminSubscribeTrackerResponses[keyof AdminSubscribeTrackerResponses];
1615
+
1616
+ export type AdminGetUserData = {
1617
+ body?: never;
1618
+ path: {
1619
+ uid: string;
1620
+ };
1621
+ query?: never;
1622
+ url: "/v1/admin/users/{uid}";
1623
+ };
1624
+
1625
+ export type AdminGetUserErrors = {
1626
+ /**
1627
+ * Bad Request
1628
+ */
1629
+ 400: ProblemDetails;
1630
+ /**
1631
+ * Unauthorized
1632
+ */
1633
+ 401: ProblemDetails;
1634
+ /**
1635
+ * Forbidden
1636
+ */
1637
+ 403: ProblemDetails;
1638
+ /**
1639
+ * Not Found
1640
+ */
1641
+ 404: ProblemDetails;
1642
+ /**
1643
+ * Conflict
1644
+ */
1645
+ 409: ProblemDetails;
1646
+ /**
1647
+ * Payload Too Large
1648
+ */
1649
+ 413: ProblemDetails;
1650
+ /**
1651
+ * Too Many Requests
1652
+ */
1653
+ 429: ProblemDetails;
1654
+ /**
1655
+ * Internal Server Error
1656
+ */
1657
+ 500: ProblemDetails;
1658
+ /**
1659
+ * Bad Gateway
1660
+ */
1661
+ 502: ProblemDetails;
1662
+ /**
1663
+ * Service Unavailable
1664
+ */
1665
+ 503: ProblemDetails;
1666
+ };
1667
+
1668
+ export type AdminGetUserError = AdminGetUserErrors[keyof AdminGetUserErrors];
1669
+
1670
+ export type AdminGetUserResponses = {
1671
+ /**
1672
+ * OK
1673
+ */
1674
+ 200: AdminReadResult;
1675
+ };
1676
+
1677
+ export type AdminGetUserResponse =
1678
+ AdminGetUserResponses[keyof AdminGetUserResponses];
1679
+
1680
+ export type AdminLookupUsersData = {
1681
+ body: AdminLookupRequest;
1682
+ path?: never;
1683
+ query?: never;
1684
+ url: "/v1/admin/users/lookup";
1685
+ };
1686
+
1687
+ export type AdminLookupUsersErrors = {
1688
+ /**
1689
+ * Bad Request
1690
+ */
1691
+ 400: ProblemDetails;
1692
+ /**
1693
+ * Unauthorized
1694
+ */
1695
+ 401: ProblemDetails;
1696
+ /**
1697
+ * Forbidden
1698
+ */
1699
+ 403: ProblemDetails;
1700
+ /**
1701
+ * Not Found
1702
+ */
1703
+ 404: ProblemDetails;
1704
+ /**
1705
+ * Conflict
1706
+ */
1707
+ 409: ProblemDetails;
1708
+ /**
1709
+ * Payload Too Large
1710
+ */
1711
+ 413: ProblemDetails;
1712
+ /**
1713
+ * Unsupported Media Type
1714
+ */
1715
+ 415: ProblemDetails;
1716
+ /**
1717
+ * Too Many Requests
1718
+ */
1719
+ 429: ProblemDetails;
1720
+ /**
1721
+ * Internal Server Error
1722
+ */
1723
+ 500: ProblemDetails;
1724
+ /**
1725
+ * Bad Gateway
1726
+ */
1727
+ 502: ProblemDetails;
1728
+ /**
1729
+ * Service Unavailable
1730
+ */
1731
+ 503: ProblemDetails;
1732
+ };
1733
+
1734
+ export type AdminLookupUsersError =
1735
+ AdminLookupUsersErrors[keyof AdminLookupUsersErrors];
1736
+
1737
+ export type AdminLookupUsersResponses = {
1738
+ /**
1739
+ * OK
1740
+ */
1741
+ 200: AdminLookupResult;
1742
+ };
1743
+
1744
+ export type AdminLookupUsersResponse =
1745
+ AdminLookupUsersResponses[keyof AdminLookupUsersResponses];
1746
+
1747
+ export type AdminRequestUserInsuranceData = {
1748
+ body: AdminRequestId;
1749
+ path: {
1750
+ uid: string;
1751
+ };
1752
+ query?: never;
1753
+ url: "/v1/admin/users/{uid}/insurance-requests";
1754
+ };
1755
+
1756
+ export type AdminRequestUserInsuranceErrors = {
1757
+ /**
1758
+ * Bad Request
1759
+ */
1760
+ 400: ProblemDetails;
1761
+ /**
1762
+ * Unauthorized
1763
+ */
1764
+ 401: ProblemDetails;
1765
+ /**
1766
+ * Forbidden
1767
+ */
1768
+ 403: ProblemDetails;
1769
+ /**
1770
+ * Not Found
1771
+ */
1772
+ 404: ProblemDetails;
1773
+ /**
1774
+ * Conflict
1775
+ */
1776
+ 409: ProblemDetails;
1777
+ /**
1778
+ * Payload Too Large
1779
+ */
1780
+ 413: ProblemDetails;
1781
+ /**
1782
+ * Unsupported Media Type
1783
+ */
1784
+ 415: ProblemDetails;
1785
+ /**
1786
+ * Too Many Requests
1787
+ */
1788
+ 429: ProblemDetails;
1789
+ /**
1790
+ * Internal Server Error
1791
+ */
1792
+ 500: ProblemDetails;
1793
+ /**
1794
+ * Bad Gateway
1795
+ */
1796
+ 502: ProblemDetails;
1797
+ /**
1798
+ * Service Unavailable
1799
+ */
1800
+ 503: ProblemDetails;
1801
+ };
1802
+
1803
+ export type AdminRequestUserInsuranceError =
1804
+ AdminRequestUserInsuranceErrors[keyof AdminRequestUserInsuranceErrors];
1805
+
1806
+ export type AdminRequestUserInsuranceResponses = {
1807
+ /**
1808
+ * Accepted
1809
+ */
1810
+ 202: CommandSuccess;
1811
+ };
1812
+
1813
+ export type AdminRequestUserInsuranceResponse =
1814
+ AdminRequestUserInsuranceResponses[keyof AdminRequestUserInsuranceResponses];
1815
+
1816
+ export type AdminLinkSingleSubscriptionData = {
1817
+ body: AdminRequestId;
1818
+ path: {
1819
+ uid: string;
1820
+ };
1821
+ query?: never;
1822
+ url: "/v1/admin/users/{uid}/subscription-link-requests";
1823
+ };
1824
+
1825
+ export type AdminLinkSingleSubscriptionErrors = {
1826
+ /**
1827
+ * Bad Request
1828
+ */
1829
+ 400: ProblemDetails;
1830
+ /**
1831
+ * Unauthorized
1832
+ */
1833
+ 401: ProblemDetails;
1834
+ /**
1835
+ * Forbidden
1836
+ */
1837
+ 403: ProblemDetails;
1838
+ /**
1839
+ * Not Found
1840
+ */
1841
+ 404: ProblemDetails;
1842
+ /**
1843
+ * Conflict
1844
+ */
1845
+ 409: ProblemDetails;
1846
+ /**
1847
+ * Payload Too Large
1848
+ */
1849
+ 413: ProblemDetails;
1850
+ /**
1851
+ * Unsupported Media Type
1852
+ */
1853
+ 415: ProblemDetails;
1854
+ /**
1855
+ * Too Many Requests
1856
+ */
1857
+ 429: ProblemDetails;
1858
+ /**
1859
+ * Internal Server Error
1860
+ */
1861
+ 500: ProblemDetails;
1862
+ /**
1863
+ * Bad Gateway
1864
+ */
1865
+ 502: ProblemDetails;
1866
+ /**
1867
+ * Service Unavailable
1868
+ */
1869
+ 503: ProblemDetails;
1870
+ };
1871
+
1872
+ export type AdminLinkSingleSubscriptionError =
1873
+ AdminLinkSingleSubscriptionErrors[keyof AdminLinkSingleSubscriptionErrors];
1874
+
1875
+ export type AdminLinkSingleSubscriptionResponses = {
1876
+ /**
1877
+ * OK
1878
+ */
1879
+ 200: CommandSuccess;
1880
+ };
1881
+
1882
+ export type AdminLinkSingleSubscriptionResponse =
1883
+ AdminLinkSingleSubscriptionResponses[keyof AdminLinkSingleSubscriptionResponses];
1884
+
1885
+ export type AdminGetSubscriptionData = {
1886
+ body?: never;
1887
+ path: {
1888
+ subscriptionId: string;
1889
+ };
1890
+ query?: never;
1891
+ url: "/v1/admin/subscriptions/{subscriptionId}";
1892
+ };
1893
+
1894
+ export type AdminGetSubscriptionErrors = {
1895
+ /**
1896
+ * Bad Request
1897
+ */
1898
+ 400: ProblemDetails;
1899
+ /**
1900
+ * Unauthorized
1901
+ */
1902
+ 401: ProblemDetails;
1903
+ /**
1904
+ * Forbidden
1905
+ */
1906
+ 403: ProblemDetails;
1907
+ /**
1908
+ * Not Found
1909
+ */
1910
+ 404: ProblemDetails;
1911
+ /**
1912
+ * Conflict
1913
+ */
1914
+ 409: ProblemDetails;
1915
+ /**
1916
+ * Payload Too Large
1917
+ */
1918
+ 413: ProblemDetails;
1919
+ /**
1920
+ * Too Many Requests
1921
+ */
1922
+ 429: ProblemDetails;
1923
+ /**
1924
+ * Internal Server Error
1925
+ */
1926
+ 500: ProblemDetails;
1927
+ /**
1928
+ * Bad Gateway
1929
+ */
1930
+ 502: ProblemDetails;
1931
+ /**
1932
+ * Service Unavailable
1933
+ */
1934
+ 503: ProblemDetails;
1935
+ };
1936
+
1937
+ export type AdminGetSubscriptionError =
1938
+ AdminGetSubscriptionErrors[keyof AdminGetSubscriptionErrors];
1939
+
1940
+ export type AdminGetSubscriptionResponses = {
1941
+ /**
1942
+ * OK
1943
+ */
1944
+ 200: AdminReadResult;
1945
+ };
1946
+
1947
+ export type AdminGetSubscriptionResponse =
1948
+ AdminGetSubscriptionResponses[keyof AdminGetSubscriptionResponses];
1949
+
1950
+ export type AdminSearchSubscriptionsData = {
1951
+ body?: never;
1952
+ path?: never;
1953
+ query: {
1954
+ kind: "b2b" | "uid" | "wooId";
1955
+ value?: string;
1956
+ cursor?: string;
1957
+ };
1958
+ url: "/v1/admin/subscriptions";
1959
+ };
1960
+
1961
+ export type AdminSearchSubscriptionsErrors = {
1962
+ /**
1963
+ * Bad Request
1964
+ */
1965
+ 400: ProblemDetails;
1966
+ /**
1967
+ * Unauthorized
1968
+ */
1969
+ 401: ProblemDetails;
1970
+ /**
1971
+ * Forbidden
1972
+ */
1973
+ 403: ProblemDetails;
1974
+ /**
1975
+ * Not Found
1976
+ */
1977
+ 404: ProblemDetails;
1978
+ /**
1979
+ * Conflict
1980
+ */
1981
+ 409: ProblemDetails;
1982
+ /**
1983
+ * Payload Too Large
1984
+ */
1985
+ 413: ProblemDetails;
1986
+ /**
1987
+ * Too Many Requests
1988
+ */
1989
+ 429: ProblemDetails;
1990
+ /**
1991
+ * Internal Server Error
1992
+ */
1993
+ 500: ProblemDetails;
1994
+ /**
1995
+ * Bad Gateway
1996
+ */
1997
+ 502: ProblemDetails;
1998
+ /**
1999
+ * Service Unavailable
2000
+ */
2001
+ 503: ProblemDetails;
2002
+ };
2003
+
2004
+ export type AdminSearchSubscriptionsError =
2005
+ AdminSearchSubscriptionsErrors[keyof AdminSearchSubscriptionsErrors];
2006
+
2007
+ export type AdminSearchSubscriptionsResponses = {
2008
+ /**
2009
+ * OK
2010
+ */
2011
+ 200: AdminReadResult;
2012
+ };
2013
+
2014
+ export type AdminSearchSubscriptionsResponse =
2015
+ AdminSearchSubscriptionsResponses[keyof AdminSearchSubscriptionsResponses];
2016
+
2017
+ export type AdminListInsuranceData = {
2018
+ body?: never;
2019
+ path: {
2020
+ subscriptionId: string;
2021
+ provider: "cycler" | "hepster" | "tryg";
2022
+ };
2023
+ query?: {
2024
+ cursor?: string;
2025
+ };
2026
+ url: "/v1/admin/subscriptions/{subscriptionId}/insurance/{provider}";
2027
+ };
2028
+
2029
+ export type AdminListInsuranceErrors = {
2030
+ /**
2031
+ * Bad Request
2032
+ */
2033
+ 400: ProblemDetails;
2034
+ /**
2035
+ * Unauthorized
2036
+ */
2037
+ 401: ProblemDetails;
2038
+ /**
2039
+ * Forbidden
2040
+ */
2041
+ 403: ProblemDetails;
2042
+ /**
2043
+ * Not Found
2044
+ */
2045
+ 404: ProblemDetails;
2046
+ /**
2047
+ * Conflict
2048
+ */
2049
+ 409: ProblemDetails;
2050
+ /**
2051
+ * Payload Too Large
2052
+ */
2053
+ 413: ProblemDetails;
2054
+ /**
2055
+ * Too Many Requests
2056
+ */
2057
+ 429: ProblemDetails;
2058
+ /**
2059
+ * Internal Server Error
2060
+ */
2061
+ 500: ProblemDetails;
2062
+ /**
2063
+ * Bad Gateway
2064
+ */
2065
+ 502: ProblemDetails;
2066
+ /**
2067
+ * Service Unavailable
2068
+ */
2069
+ 503: ProblemDetails;
2070
+ };
2071
+
2072
+ export type AdminListInsuranceError =
2073
+ AdminListInsuranceErrors[keyof AdminListInsuranceErrors];
2074
+
2075
+ export type AdminListInsuranceResponses = {
2076
+ /**
2077
+ * OK
2078
+ */
2079
+ 200: AdminReadResult;
2080
+ };
2081
+
2082
+ export type AdminListInsuranceResponse =
2083
+ AdminListInsuranceResponses[keyof AdminListInsuranceResponses];
2084
+
2085
+ export type AdminRequestSubscriptionInsuranceData = {
2086
+ body: AdminRequestId;
2087
+ path: {
2088
+ subscriptionId: string;
2089
+ };
2090
+ query?: never;
2091
+ url: "/v1/admin/subscriptions/{subscriptionId}/insurance-requests";
2092
+ };
2093
+
2094
+ export type AdminRequestSubscriptionInsuranceErrors = {
2095
+ /**
2096
+ * Bad Request
2097
+ */
2098
+ 400: ProblemDetails;
2099
+ /**
2100
+ * Unauthorized
2101
+ */
2102
+ 401: ProblemDetails;
2103
+ /**
2104
+ * Forbidden
2105
+ */
2106
+ 403: ProblemDetails;
2107
+ /**
2108
+ * Not Found
2109
+ */
2110
+ 404: ProblemDetails;
2111
+ /**
2112
+ * Conflict
2113
+ */
2114
+ 409: ProblemDetails;
2115
+ /**
2116
+ * Payload Too Large
2117
+ */
2118
+ 413: ProblemDetails;
2119
+ /**
2120
+ * Unsupported Media Type
2121
+ */
2122
+ 415: ProblemDetails;
2123
+ /**
2124
+ * Too Many Requests
2125
+ */
2126
+ 429: ProblemDetails;
2127
+ /**
2128
+ * Internal Server Error
2129
+ */
2130
+ 500: ProblemDetails;
2131
+ /**
2132
+ * Bad Gateway
2133
+ */
2134
+ 502: ProblemDetails;
2135
+ /**
2136
+ * Service Unavailable
2137
+ */
2138
+ 503: ProblemDetails;
2139
+ };
2140
+
2141
+ export type AdminRequestSubscriptionInsuranceError =
2142
+ AdminRequestSubscriptionInsuranceErrors[keyof AdminRequestSubscriptionInsuranceErrors];
2143
+
2144
+ export type AdminRequestSubscriptionInsuranceResponses = {
2145
+ /**
2146
+ * Accepted
2147
+ */
2148
+ 202: CommandSuccess;
2149
+ };
2150
+
2151
+ export type AdminRequestSubscriptionInsuranceResponse =
2152
+ AdminRequestSubscriptionInsuranceResponses[keyof AdminRequestSubscriptionInsuranceResponses];
2153
+
2154
+ export type AdminRefreshSubscriptionData = {
2155
+ body: AdminRequestId;
2156
+ path: {
2157
+ subscriptionId: string;
2158
+ };
2159
+ query?: never;
2160
+ url: "/v1/admin/subscriptions/{subscriptionId}/refresh-requests";
2161
+ };
2162
+
2163
+ export type AdminRefreshSubscriptionErrors = {
2164
+ /**
2165
+ * Bad Request
2166
+ */
2167
+ 400: ProblemDetails;
2168
+ /**
2169
+ * Unauthorized
2170
+ */
2171
+ 401: ProblemDetails;
2172
+ /**
2173
+ * Forbidden
2174
+ */
2175
+ 403: ProblemDetails;
2176
+ /**
2177
+ * Not Found
2178
+ */
2179
+ 404: ProblemDetails;
2180
+ /**
2181
+ * Conflict
2182
+ */
2183
+ 409: ProblemDetails;
2184
+ /**
2185
+ * Payload Too Large
2186
+ */
2187
+ 413: ProblemDetails;
2188
+ /**
2189
+ * Unsupported Media Type
2190
+ */
2191
+ 415: ProblemDetails;
2192
+ /**
2193
+ * Too Many Requests
2194
+ */
2195
+ 429: ProblemDetails;
2196
+ /**
2197
+ * Internal Server Error
2198
+ */
2199
+ 500: ProblemDetails;
2200
+ /**
2201
+ * Bad Gateway
2202
+ */
2203
+ 502: ProblemDetails;
2204
+ /**
2205
+ * Service Unavailable
2206
+ */
2207
+ 503: ProblemDetails;
2208
+ };
2209
+
2210
+ export type AdminRefreshSubscriptionError =
2211
+ AdminRefreshSubscriptionErrors[keyof AdminRefreshSubscriptionErrors];
2212
+
2213
+ export type AdminRefreshSubscriptionResponses = {
2214
+ /**
2215
+ * Accepted
2216
+ */
2217
+ 202: CommandSuccess;
2218
+ };
2219
+
2220
+ export type AdminRefreshSubscriptionResponse =
2221
+ AdminRefreshSubscriptionResponses[keyof AdminRefreshSubscriptionResponses];
2222
+
2223
+ export type AdminListFavoritesData = {
2224
+ body?: never;
2225
+ path?: never;
2226
+ query?: {
2227
+ cursor?: string;
2228
+ };
2229
+ url: "/v1/admin/favorites";
2230
+ };
2231
+
2232
+ export type AdminListFavoritesErrors = {
2233
+ /**
2234
+ * Bad Request
2235
+ */
2236
+ 400: ProblemDetails;
2237
+ /**
2238
+ * Unauthorized
2239
+ */
2240
+ 401: ProblemDetails;
2241
+ /**
2242
+ * Forbidden
2243
+ */
2244
+ 403: ProblemDetails;
2245
+ /**
2246
+ * Not Found
2247
+ */
2248
+ 404: ProblemDetails;
2249
+ /**
2250
+ * Conflict
2251
+ */
2252
+ 409: ProblemDetails;
2253
+ /**
2254
+ * Payload Too Large
2255
+ */
2256
+ 413: ProblemDetails;
2257
+ /**
2258
+ * Too Many Requests
2259
+ */
2260
+ 429: ProblemDetails;
2261
+ /**
2262
+ * Internal Server Error
2263
+ */
2264
+ 500: ProblemDetails;
2265
+ /**
2266
+ * Bad Gateway
2267
+ */
2268
+ 502: ProblemDetails;
2269
+ /**
2270
+ * Service Unavailable
2271
+ */
2272
+ 503: ProblemDetails;
2273
+ };
2274
+
2275
+ export type AdminListFavoritesError =
2276
+ AdminListFavoritesErrors[keyof AdminListFavoritesErrors];
2277
+
2278
+ export type AdminListFavoritesResponses = {
2279
+ /**
2280
+ * OK
2281
+ */
2282
+ 200: AdminReadResult;
2283
+ };
2284
+
2285
+ export type AdminListFavoritesResponse =
2286
+ AdminListFavoritesResponses[keyof AdminListFavoritesResponses];
2287
+
2288
+ export type AdminDeleteFavoriteData = {
2289
+ body?: never;
2290
+ path: {
2291
+ trackerId: string;
2292
+ };
2293
+ query?: never;
2294
+ url: "/v1/admin/favorites/{trackerId}";
2295
+ };
2296
+
2297
+ export type AdminDeleteFavoriteErrors = {
2298
+ /**
2299
+ * Bad Request
2300
+ */
2301
+ 400: ProblemDetails;
2302
+ /**
2303
+ * Unauthorized
2304
+ */
2305
+ 401: ProblemDetails;
2306
+ /**
2307
+ * Forbidden
2308
+ */
2309
+ 403: ProblemDetails;
2310
+ /**
2311
+ * Not Found
2312
+ */
2313
+ 404: ProblemDetails;
2314
+ /**
2315
+ * Conflict
2316
+ */
2317
+ 409: ProblemDetails;
2318
+ /**
2319
+ * Payload Too Large
2320
+ */
2321
+ 413: ProblemDetails;
2322
+ /**
2323
+ * Too Many Requests
2324
+ */
2325
+ 429: ProblemDetails;
2326
+ /**
2327
+ * Internal Server Error
2328
+ */
2329
+ 500: ProblemDetails;
2330
+ /**
2331
+ * Bad Gateway
2332
+ */
2333
+ 502: ProblemDetails;
2334
+ /**
2335
+ * Service Unavailable
2336
+ */
2337
+ 503: ProblemDetails;
2338
+ };
2339
+
2340
+ export type AdminDeleteFavoriteError =
2341
+ AdminDeleteFavoriteErrors[keyof AdminDeleteFavoriteErrors];
2342
+
2343
+ export type AdminDeleteFavoriteResponses = {
2344
+ /**
2345
+ * OK
2346
+ */
2347
+ 200: CommandSuccess;
2348
+ };
2349
+
2350
+ export type AdminDeleteFavoriteResponse =
2351
+ AdminDeleteFavoriteResponses[keyof AdminDeleteFavoriteResponses];
2352
+
2353
+ export type AdminGetFavoriteData = {
2354
+ body?: never;
2355
+ path: {
2356
+ trackerId: string;
2357
+ };
2358
+ query?: never;
2359
+ url: "/v1/admin/favorites/{trackerId}";
2360
+ };
2361
+
2362
+ export type AdminGetFavoriteErrors = {
2363
+ /**
2364
+ * Bad Request
2365
+ */
2366
+ 400: ProblemDetails;
2367
+ /**
2368
+ * Unauthorized
2369
+ */
2370
+ 401: ProblemDetails;
2371
+ /**
2372
+ * Forbidden
2373
+ */
2374
+ 403: ProblemDetails;
2375
+ /**
2376
+ * Not Found
2377
+ */
2378
+ 404: ProblemDetails;
2379
+ /**
2380
+ * Conflict
2381
+ */
2382
+ 409: ProblemDetails;
2383
+ /**
2384
+ * Payload Too Large
2385
+ */
2386
+ 413: ProblemDetails;
2387
+ /**
2388
+ * Too Many Requests
2389
+ */
2390
+ 429: ProblemDetails;
2391
+ /**
2392
+ * Internal Server Error
2393
+ */
2394
+ 500: ProblemDetails;
2395
+ /**
2396
+ * Bad Gateway
2397
+ */
2398
+ 502: ProblemDetails;
2399
+ /**
2400
+ * Service Unavailable
2401
+ */
2402
+ 503: ProblemDetails;
2403
+ };
2404
+
2405
+ export type AdminGetFavoriteError =
2406
+ AdminGetFavoriteErrors[keyof AdminGetFavoriteErrors];
2407
+
2408
+ export type AdminGetFavoriteResponses = {
2409
+ /**
2410
+ * OK
2411
+ */
2412
+ 200: AdminReadResult;
2413
+ };
2414
+
2415
+ export type AdminGetFavoriteResponse =
2416
+ AdminGetFavoriteResponses[keyof AdminGetFavoriteResponses];
2417
+
2418
+ export type AdminUpdateFavoriteCommentData = {
2419
+ body: AdminFavoriteRequest;
2420
+ path: {
2421
+ trackerId: string;
2422
+ };
2423
+ query?: never;
2424
+ url: "/v1/admin/favorites/{trackerId}";
2425
+ };
2426
+
2427
+ export type AdminUpdateFavoriteCommentErrors = {
2428
+ /**
2429
+ * Bad Request
2430
+ */
2431
+ 400: ProblemDetails;
2432
+ /**
2433
+ * Unauthorized
2434
+ */
2435
+ 401: ProblemDetails;
2436
+ /**
2437
+ * Forbidden
2438
+ */
2439
+ 403: ProblemDetails;
2440
+ /**
2441
+ * Not Found
2442
+ */
2443
+ 404: ProblemDetails;
2444
+ /**
2445
+ * Conflict
2446
+ */
2447
+ 409: ProblemDetails;
2448
+ /**
2449
+ * Payload Too Large
2450
+ */
2451
+ 413: ProblemDetails;
2452
+ /**
2453
+ * Unsupported Media Type
2454
+ */
2455
+ 415: ProblemDetails;
2456
+ /**
2457
+ * Too Many Requests
2458
+ */
2459
+ 429: ProblemDetails;
2460
+ /**
2461
+ * Internal Server Error
2462
+ */
2463
+ 500: ProblemDetails;
2464
+ /**
2465
+ * Bad Gateway
2466
+ */
2467
+ 502: ProblemDetails;
2468
+ /**
2469
+ * Service Unavailable
2470
+ */
2471
+ 503: ProblemDetails;
2472
+ };
2473
+
2474
+ export type AdminUpdateFavoriteCommentError =
2475
+ AdminUpdateFavoriteCommentErrors[keyof AdminUpdateFavoriteCommentErrors];
2476
+
2477
+ export type AdminUpdateFavoriteCommentResponses = {
2478
+ /**
2479
+ * OK
2480
+ */
2481
+ 200: CommandSuccess;
2482
+ };
2483
+
2484
+ export type AdminUpdateFavoriteCommentResponse =
2485
+ AdminUpdateFavoriteCommentResponses[keyof AdminUpdateFavoriteCommentResponses];
2486
+
2487
+ export type AdminPutFavoriteData = {
2488
+ body: AdminFavoriteRequest;
2489
+ path: {
2490
+ trackerId: string;
2491
+ };
2492
+ query?: never;
2493
+ url: "/v1/admin/favorites/{trackerId}";
2494
+ };
2495
+
2496
+ export type AdminPutFavoriteErrors = {
2497
+ /**
2498
+ * Bad Request
2499
+ */
2500
+ 400: ProblemDetails;
2501
+ /**
2502
+ * Unauthorized
2503
+ */
2504
+ 401: ProblemDetails;
2505
+ /**
2506
+ * Forbidden
2507
+ */
2508
+ 403: ProblemDetails;
2509
+ /**
2510
+ * Not Found
2511
+ */
2512
+ 404: ProblemDetails;
2513
+ /**
2514
+ * Conflict
2515
+ */
2516
+ 409: ProblemDetails;
2517
+ /**
2518
+ * Payload Too Large
2519
+ */
2520
+ 413: ProblemDetails;
2521
+ /**
2522
+ * Unsupported Media Type
2523
+ */
2524
+ 415: ProblemDetails;
2525
+ /**
2526
+ * Too Many Requests
2527
+ */
2528
+ 429: ProblemDetails;
2529
+ /**
2530
+ * Internal Server Error
2531
+ */
2532
+ 500: ProblemDetails;
2533
+ /**
2534
+ * Bad Gateway
2535
+ */
2536
+ 502: ProblemDetails;
2537
+ /**
2538
+ * Service Unavailable
2539
+ */
2540
+ 503: ProblemDetails;
2541
+ };
2542
+
2543
+ export type AdminPutFavoriteError =
2544
+ AdminPutFavoriteErrors[keyof AdminPutFavoriteErrors];
2545
+
2546
+ export type AdminPutFavoriteResponses = {
2547
+ /**
2548
+ * OK
2549
+ */
2550
+ 200: CommandSuccess;
2551
+ };
2552
+
2553
+ export type AdminPutFavoriteResponse =
2554
+ AdminPutFavoriteResponses[keyof AdminPutFavoriteResponses];
2555
+
2556
+ export type AdminCreateB2bSubscriptionData = {
2557
+ body: AdminB2bSubscriptionRequest;
2558
+ path?: never;
2559
+ query?: never;
2560
+ url: "/v1/admin/b2b/subscriptions";
2561
+ };
2562
+
2563
+ export type AdminCreateB2bSubscriptionErrors = {
2564
+ /**
2565
+ * Bad Request
2566
+ */
2567
+ 400: ProblemDetails;
2568
+ /**
2569
+ * Unauthorized
2570
+ */
2571
+ 401: ProblemDetails;
2572
+ /**
2573
+ * Forbidden
2574
+ */
2575
+ 403: ProblemDetails;
2576
+ /**
2577
+ * Not Found
2578
+ */
2579
+ 404: ProblemDetails;
2580
+ /**
2581
+ * Conflict
2582
+ */
2583
+ 409: ProblemDetails;
2584
+ /**
2585
+ * Payload Too Large
2586
+ */
2587
+ 413: ProblemDetails;
2588
+ /**
2589
+ * Unsupported Media Type
2590
+ */
2591
+ 415: ProblemDetails;
2592
+ /**
2593
+ * Too Many Requests
2594
+ */
2595
+ 429: ProblemDetails;
2596
+ /**
2597
+ * Internal Server Error
2598
+ */
2599
+ 500: ProblemDetails;
2600
+ /**
2601
+ * Bad Gateway
2602
+ */
2603
+ 502: ProblemDetails;
2604
+ /**
2605
+ * Service Unavailable
2606
+ */
2607
+ 503: ProblemDetails;
2608
+ };
2609
+
2610
+ export type AdminCreateB2bSubscriptionError =
2611
+ AdminCreateB2bSubscriptionErrors[keyof AdminCreateB2bSubscriptionErrors];
2612
+
2613
+ export type AdminCreateB2bSubscriptionResponses = {
2614
+ /**
2615
+ * Created
2616
+ */
2617
+ 201: AdminB2bSubscriptionResult;
2618
+ };
2619
+
2620
+ export type AdminCreateB2bSubscriptionResponse =
2621
+ AdminCreateB2bSubscriptionResponses[keyof AdminCreateB2bSubscriptionResponses];
2622
+
2623
+ export type AdminCancelB2bSubscriptionData = {
2624
+ body?: never;
2625
+ path: {
2626
+ subscriptionId: string;
2627
+ };
2628
+ query?: never;
2629
+ url: "/v1/admin/b2b/subscriptions/{subscriptionId}/cancellation-requests";
2630
+ };
2631
+
2632
+ export type AdminCancelB2bSubscriptionErrors = {
2633
+ /**
2634
+ * Bad Request
2635
+ */
2636
+ 400: ProblemDetails;
2637
+ /**
2638
+ * Unauthorized
2639
+ */
2640
+ 401: ProblemDetails;
2641
+ /**
2642
+ * Forbidden
2643
+ */
2644
+ 403: ProblemDetails;
2645
+ /**
2646
+ * Not Found
2647
+ */
2648
+ 404: ProblemDetails;
2649
+ /**
2650
+ * Conflict
2651
+ */
2652
+ 409: ProblemDetails;
2653
+ /**
2654
+ * Payload Too Large
2655
+ */
2656
+ 413: ProblemDetails;
2657
+ /**
2658
+ * Too Many Requests
2659
+ */
2660
+ 429: ProblemDetails;
2661
+ /**
2662
+ * Internal Server Error
2663
+ */
2664
+ 500: ProblemDetails;
2665
+ /**
2666
+ * Bad Gateway
2667
+ */
2668
+ 502: ProblemDetails;
2669
+ /**
2670
+ * Service Unavailable
2671
+ */
2672
+ 503: ProblemDetails;
2673
+ };
2674
+
2675
+ export type AdminCancelB2bSubscriptionError =
2676
+ AdminCancelB2bSubscriptionErrors[keyof AdminCancelB2bSubscriptionErrors];
2677
+
2678
+ export type AdminCancelB2bSubscriptionResponses = {
2679
+ /**
2680
+ * OK
2681
+ */
2682
+ 200: CommandSuccess;
2683
+ };
2684
+
2685
+ export type AdminCancelB2bSubscriptionResponse =
2686
+ AdminCancelB2bSubscriptionResponses[keyof AdminCancelB2bSubscriptionResponses];
2687
+
2688
+ export type AdminSyncB2bInsuranceData = {
2689
+ body?: never;
2690
+ path: {
2691
+ subscriptionId: string;
2692
+ };
2693
+ query?: never;
2694
+ url: "/v1/admin/b2b/subscriptions/{subscriptionId}/insurance-sync-requests";
2695
+ };
2696
+
2697
+ export type AdminSyncB2bInsuranceErrors = {
2698
+ /**
2699
+ * Bad Request
2700
+ */
2701
+ 400: ProblemDetails;
2702
+ /**
2703
+ * Unauthorized
2704
+ */
2705
+ 401: ProblemDetails;
2706
+ /**
2707
+ * Forbidden
2708
+ */
2709
+ 403: ProblemDetails;
2710
+ /**
2711
+ * Not Found
2712
+ */
2713
+ 404: ProblemDetails;
2714
+ /**
2715
+ * Conflict
2716
+ */
2717
+ 409: ProblemDetails;
2718
+ /**
2719
+ * Payload Too Large
2720
+ */
2721
+ 413: ProblemDetails;
2722
+ /**
2723
+ * Too Many Requests
2724
+ */
2725
+ 429: ProblemDetails;
2726
+ /**
2727
+ * Internal Server Error
2728
+ */
2729
+ 500: ProblemDetails;
2730
+ /**
2731
+ * Bad Gateway
2732
+ */
2733
+ 502: ProblemDetails;
2734
+ /**
2735
+ * Service Unavailable
2736
+ */
2737
+ 503: ProblemDetails;
2738
+ };
2739
+
2740
+ export type AdminSyncB2bInsuranceError =
2741
+ AdminSyncB2bInsuranceErrors[keyof AdminSyncB2bInsuranceErrors];
2742
+
2743
+ export type AdminSyncB2bInsuranceResponses = {
2744
+ /**
2745
+ * Accepted
2746
+ */
2747
+ 202: CommandSuccess;
2748
+ };
2749
+
2750
+ export type AdminSyncB2bInsuranceResponse =
2751
+ AdminSyncB2bInsuranceResponses[keyof AdminSyncB2bInsuranceResponses];
2752
+
2753
+ export type AdminSyncAllB2bInsuranceData = {
2754
+ body?: never;
2755
+ path?: never;
2756
+ query?: never;
2757
+ url: "/v1/admin/b2b/subscriptions/insurance-sync-requests";
2758
+ };
2759
+
2760
+ export type AdminSyncAllB2bInsuranceErrors = {
2761
+ /**
2762
+ * Bad Request
2763
+ */
2764
+ 400: ProblemDetails;
2765
+ /**
2766
+ * Unauthorized
2767
+ */
2768
+ 401: ProblemDetails;
2769
+ /**
2770
+ * Forbidden
2771
+ */
2772
+ 403: ProblemDetails;
2773
+ /**
2774
+ * Not Found
2775
+ */
2776
+ 404: ProblemDetails;
2777
+ /**
2778
+ * Conflict
2779
+ */
2780
+ 409: ProblemDetails;
2781
+ /**
2782
+ * Payload Too Large
2783
+ */
2784
+ 413: ProblemDetails;
2785
+ /**
2786
+ * Too Many Requests
2787
+ */
2788
+ 429: ProblemDetails;
2789
+ /**
2790
+ * Internal Server Error
2791
+ */
2792
+ 500: ProblemDetails;
2793
+ /**
2794
+ * Bad Gateway
2795
+ */
2796
+ 502: ProblemDetails;
2797
+ /**
2798
+ * Service Unavailable
2799
+ */
2800
+ 503: ProblemDetails;
2801
+ };
2802
+
2803
+ export type AdminSyncAllB2bInsuranceError =
2804
+ AdminSyncAllB2bInsuranceErrors[keyof AdminSyncAllB2bInsuranceErrors];
2805
+
2806
+ export type AdminSyncAllB2bInsuranceResponses = {
2807
+ /**
2808
+ * Accepted
2809
+ */
2810
+ 202: CommandSuccess;
2811
+ };
2812
+
2813
+ export type AdminSyncAllB2bInsuranceResponse =
2814
+ AdminSyncAllB2bInsuranceResponses[keyof AdminSyncAllB2bInsuranceResponses];