@bikefinder/api-client 0.3.0 → 0.5.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 +173 -19
  5. package/dist/admin/generated/sdk.gen.d.ts.map +1 -1
  6. package/dist/admin/generated/sdk.gen.js +377 -125
  7. package/dist/admin/generated/sdk.gen.js.map +1 -1
  8. package/dist/admin/generated/types.gen.d.ts +1468 -431
  9. package/dist/admin/generated/types.gen.d.ts.map +1 -1
  10. package/dist/admin/generated/zod.gen.d.ts +2726 -1638
  11. package/dist/admin/generated/zod.gen.d.ts.map +1 -1
  12. package/dist/admin/generated/zod.gen.js +410 -270
  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 +65 -7
  37. package/src/admin/generated/sdk.gen.ts +720 -300
  38. package/src/admin/generated/types.gen.ts +1646 -513
  39. package/src/admin/generated/zod.gen.ts +474 -286
  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
@@ -8,38 +8,41 @@ export const zAccountNotification = z.object({
8
8
  title: z.string(),
9
9
  body: z.string(),
10
10
  trackerId: z.string().nullable(),
11
- timestampMs: z.int().gte(-9007199254740991).lte(9007199254740991),
11
+ createdAt: z.iso.datetime({ offset: true }),
12
12
  subscriptionId: z.string().nullable(),
13
13
  });
14
14
  export const zBluetoothBatteryRequest = z.object({
15
- seenAt: z.int().gte(-9007199254740991).lte(9007199254740991),
16
- level: z
17
- .int()
18
- .min(-2147483648, {
19
- error: "Invalid value: Expected int32 to be >= -2147483648",
20
- })
21
- .max(2147483647, {
22
- error: "Invalid value: Expected int32 to be <= 2147483647",
23
- })
24
- .nullable(),
15
+ observedAt: z.iso.datetime({ offset: true }),
16
+ level: z.int().gte(0).lte(100).nullable(),
25
17
  isCharging: z.boolean(),
26
18
  });
19
+ export const zBluetoothCommandType = z.enum([
20
+ "wakeUp",
21
+ "reset",
22
+ "factoryReset",
23
+ "powerDown",
24
+ ]);
27
25
  export const zBluetoothCommandReport = z.object({
28
- type: z.string(),
26
+ type: zBluetoothCommandType,
29
27
  success: z.boolean(),
30
28
  });
31
29
  export const zBluetoothObservationBattery = z.object({
32
- level: z.number().nullable(),
30
+ level: z.number().gte(0).lte(100).nullable(),
33
31
  isCharging: z.boolean(),
34
32
  });
33
+ export const zBluetoothObservationResult = z.object({
34
+ success: z.boolean(),
35
+ observationId: z.string(),
36
+ });
37
+ export const zBluetoothObservationType = z.enum(["BLE", "CBT"]);
35
38
  export const zBluetoothObservationRequest = z.object({
36
39
  requestId: z.string(),
37
- type: z.string(),
38
- timestampMs: z.int().gte(-9007199254740991).lte(9007199254740991),
39
- latitude: z.number(),
40
- longitude: z.number(),
41
- accuracy: z.number(),
42
- userLocationAccuracy: z.number(),
40
+ type: zBluetoothObservationType,
41
+ observedAt: z.iso.datetime({ offset: true }),
42
+ latitude: z.number().gte(-90).lte(90),
43
+ longitude: z.number().gte(-180).lte(180),
44
+ accuracy: z.number().gte(0).lte(100000),
45
+ userLocationAccuracy: z.number().gte(0).lte(100000),
43
46
  crowdKey: z
44
47
  .int()
45
48
  .min(-2147483648, {
@@ -58,7 +61,7 @@ export const zBluetoothObservationRequest = z.object({
58
61
  error: "Invalid value: Expected int32 to be <= 2147483647",
59
62
  })
60
63
  .nullable(),
61
- status: z.string(),
64
+ status: z.string().max(128),
62
65
  statusValue: z
63
66
  .int()
64
67
  .min(-2147483648, {
@@ -67,14 +70,10 @@ export const zBluetoothObservationRequest = z.object({
67
70
  .max(2147483647, {
68
71
  error: "Invalid value: Expected int32 to be <= 2147483647",
69
72
  }),
70
- bleId: z.string(),
71
- appState: z.string(),
73
+ bleId: z.string().max(128),
74
+ appState: z.string().max(128),
72
75
  battery: zBluetoothObservationBattery,
73
76
  });
74
- export const zBluetoothObservationResult = z.object({
75
- success: z.boolean(),
76
- observationId: z.string(),
77
- });
78
77
  export const zBluetoothReportingPolicy = z.object({
79
78
  pauseMs: z
80
79
  .int()
@@ -94,11 +93,11 @@ export const zBluetoothReportingPolicy = z.object({
94
93
  }),
95
94
  });
96
95
  export const zClaimTrackerGuestAccessRequest = z.object({
97
- accessCode: z.string(),
98
- displayName: z.string().nullable(),
96
+ accessCode: z.string().length(16),
97
+ displayName: z.string().max(128).nullable(),
99
98
  });
100
99
  export const zClaimTrackerOwnershipRequest = z.object({
101
- displayName: z.string().nullable(),
100
+ displayName: z.string().max(128).nullable(),
102
101
  });
103
102
  export const zCommandSuccess = z.object({
104
103
  success: z.boolean(),
@@ -107,14 +106,7 @@ export const zCompleteFirmwareRequest = z.object({
107
106
  from: z.string(),
108
107
  version: z.string(),
109
108
  });
110
- export const zFactoryResetResult = z.object({
111
- error: z.boolean(),
112
- });
113
- export const zHealthStatus = z.object({
114
- status: z.string(),
115
- });
116
- export const zIFormFile = z.string();
117
- export const zLegacyDevicePreferences = z.object({
109
+ export const zDevicePreferences = z.object({
118
110
  unit: z.string(),
119
111
  liquidGlass: z.boolean(),
120
112
  mapStyle: z.string(),
@@ -124,12 +116,27 @@ export const zAccountPreferences = z.object({
124
116
  alarm: z.boolean(),
125
117
  timeSensitive: z.boolean(),
126
118
  pushReady: z.boolean(),
127
- devicePreferences: zLegacyDevicePreferences,
119
+ devicePreferences: zDevicePreferences,
120
+ });
121
+ export const zHealthStatus = z.object({
122
+ status: z.string(),
128
123
  });
124
+ export const zIFormFile = z.string();
125
+ export const zMobilePlatform = z.enum(["ios", "android"]);
129
126
  export const zNotificationPage = z.object({
130
127
  items: z.array(zAccountNotification),
131
128
  nextCursor: z.string().nullable(),
132
129
  });
130
+ export const zObservationSource = z.enum([
131
+ "INI",
132
+ "GPS",
133
+ "GSM",
134
+ "BLE",
135
+ "CBT",
136
+ "LTE",
137
+ "WIFI",
138
+ "GNSS",
139
+ ]);
133
140
  export const zPhotoUploadResult = z.object({
134
141
  id: z.string(),
135
142
  });
@@ -154,6 +161,9 @@ export const zProblemDetails = z.object({
154
161
  .nullish(),
155
162
  detail: z.string().nullish(),
156
163
  instance: z.string().nullish(),
164
+ code: z.string(),
165
+ traceId: z.string(),
166
+ errors: z.record(z.string(), z.array(z.string())).optional(),
157
167
  });
158
168
  export const zRecordFirmwareAttemptRequest = z.object({
159
169
  attemptId: z.string(),
@@ -164,16 +174,19 @@ export const zRecordFirmwareAttemptResult = z.object({
164
174
  recorded: z.boolean(),
165
175
  });
166
176
  export const zRegisterPushRegistrationRequest = z.object({
167
- token: z.string(),
168
- previousTokens: z.array(z.string()).nullish(),
169
- platform: z.string().nullish(),
177
+ token: z.string().max(4096),
178
+ platform: zMobilePlatform,
179
+ previousTokens: z.array(z.string()).max(100).nullish(),
170
180
  });
171
181
  export const zRemovePushRegistrationRequest = z.object({
172
- tokens: z.array(z.string()),
182
+ tokens: z.array(z.string()).max(100),
173
183
  });
174
184
  export const zRemoveTrackerMembershipRequest = z.object({
175
185
  expectedLastMember: z.boolean(),
176
186
  });
187
+ export const zRevokeTrackerInvitationRequest = z.object({
188
+ accessCode: z.string().regex(/^[A-Za-z0-9]{16}$/),
189
+ });
177
190
  export const zSubmitTrackerTheftReportRequest = z.object({
178
191
  requestId: z.string(),
179
192
  phoneNumber: z.string(),
@@ -215,12 +228,8 @@ export const zSubscriptionPlan = z.object({
215
228
  }),
216
229
  trackerIds: z.array(z.string()),
217
230
  managementUrl: z.string().nullable(),
218
- nextRenewalMs: z
219
- .int()
220
- .gte(-9007199254740991)
221
- .lte(9007199254740991)
222
- .nullable(),
223
- endMs: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
231
+ nextRenewalAt: z.iso.datetime({ offset: true }).nullable(),
232
+ endsAt: z.iso.datetime({ offset: true }).nullable(),
224
233
  });
225
234
  export const zSubscriptionList = z.object({
226
235
  items: z.array(zSubscriptionPlan),
@@ -236,7 +245,7 @@ export const zTrackerBattery = z.object({
236
245
  })
237
246
  .nullable(),
238
247
  isCharging: z.boolean(),
239
- timestampMs: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
248
+ observedAt: z.iso.datetime({ offset: true }).nullable(),
240
249
  });
241
250
  export const zTrackerBikeDetails = z.object({
242
251
  nickname: z.string(),
@@ -271,7 +280,7 @@ export const zTrackerBluetoothCredentials = z.object({
271
280
  rotatePin: z.boolean(),
272
281
  });
273
282
  export const zTrackerClaimabilityRequest = z.object({
274
- deviceIds: z.array(z.string()),
283
+ trackerIds: z.array(z.string()).max(100),
275
284
  });
276
285
  export const zTrackerFirmwarePlan = z.object({
277
286
  trackerId: z.string(),
@@ -321,16 +330,12 @@ export const zTrackerFirmwareVersions = z.object({
321
330
  export const zTrackerInvitation = z.object({
322
331
  accessCode: z.string(),
323
332
  });
324
- export const zTrackerModeResult = z.object({
325
- success: z.boolean(),
326
- requestedMode: z.string(),
327
- });
328
333
  export const zTrackerPhoto = z.object({
329
334
  id: z.string(),
330
335
  kind: z.string(),
331
336
  url: z.string(),
332
337
  thumbnailUrl: z.string(),
333
- timestampMs: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
338
+ createdAt: z.iso.datetime({ offset: true }).nullable(),
334
339
  });
335
340
  export const zTrackerPhotoList = z.object({
336
341
  items: z.array(zTrackerPhoto),
@@ -339,8 +344,8 @@ export const zTrackerPosition = z.object({
339
344
  id: z.string(),
340
345
  latitude: z.number(),
341
346
  longitude: z.number(),
342
- timestampMs: z.int().gte(-9007199254740991).lte(9007199254740991),
343
- source: z.string(),
347
+ observedAt: z.iso.datetime({ offset: true }),
348
+ source: zObservationSource,
344
349
  accuracy: z.number().nullable(),
345
350
  });
346
351
  export const zHistoryPage = z.object({
@@ -353,12 +358,8 @@ export const zTrackerPositionState = z.object({
353
358
  });
354
359
  export const zTrackerSubscription = z.object({
355
360
  id: z.string().nullable(),
356
- status: z.string(),
357
- endTimestampMs: z
358
- .int()
359
- .gte(-9007199254740991)
360
- .lte(9007199254740991)
361
- .nullable(),
361
+ status: zPlanStatus,
362
+ endsAt: z.iso.datetime({ offset: true }).nullable(),
362
363
  tier: z
363
364
  .int()
364
365
  .min(-2147483648, {
@@ -378,6 +379,10 @@ export const zTrackingMode = z.enum(["standard", "security", "tracking"]);
378
379
  export const zTrackerModeRequest = z.object({
379
380
  mode: zTrackingMode,
380
381
  });
382
+ export const zTrackerModeResult = z.object({
383
+ success: z.boolean(),
384
+ requestedMode: zTrackingMode,
385
+ });
381
386
  export const zTrackerSummary = z.object({
382
387
  id: z.string(),
383
388
  nickname: z.string().nullable(),
@@ -417,6 +422,7 @@ export const zUpdateAccountPreferencesRequest = z.object({
417
422
  language: z.string().nullish(),
418
423
  alarm: z.boolean().nullish(),
419
424
  timeSensitive: z.boolean().nullish(),
425
+ pushEnabled: z.boolean().nullish(),
420
426
  });
421
427
  export const zUpdateBluetoothPinRequest = z.object({
422
428
  pin: z.array(z
@@ -445,24 +451,33 @@ export const zUpdateTrackerBikeRequest = z.object({
445
451
  * OK
446
452
  */
447
453
  export const zGetHealthResponse = zHealthStatus;
454
+ export const zListTrackersQuery = z.object({
455
+ cursor: z
456
+ .string()
457
+ .min(1)
458
+ .max(128)
459
+ .regex(/^[A-Za-z0-9_-]+$/)
460
+ .optional(),
461
+ limit: z.int().gte(1).lte(100).optional().default(50),
462
+ });
448
463
  /**
449
464
  * OK
450
465
  */
451
- export const zGetBluetoothReportingPolicyResponse = zBluetoothReportingPolicy;
452
- export const zUnlinkTrackerSubscriptionBody = zSubscriptionChangeRequest;
453
- export const zUnlinkTrackerSubscriptionPath = z.object({
454
- trackerId: z
466
+ export const zListTrackersResponse = zTrackerPage;
467
+ export const zSubscribeTrackersQuery = z.object({
468
+ cursor: z
455
469
  .string()
456
470
  .min(1)
457
471
  .max(128)
458
- .regex(/^[A-Za-z0-9_-]+$/),
472
+ .regex(/^[A-Za-z0-9_-]+$/)
473
+ .optional(),
474
+ limit: z.int().gte(1).lte(100).optional().default(50),
459
475
  });
460
476
  /**
461
477
  * OK
462
478
  */
463
- export const zUnlinkTrackerSubscriptionResponse = zCommandSuccess;
464
- export const zLinkTrackerSubscriptionBody = zSubscriptionChangeRequest;
465
- export const zLinkTrackerSubscriptionPath = z.object({
479
+ export const zSubscribeTrackersResponse = zTrackerPage.nullable();
480
+ export const zGetTrackerPath = z.object({
466
481
  trackerId: z
467
482
  .string()
468
483
  .min(1)
@@ -472,8 +487,9 @@ export const zLinkTrackerSubscriptionPath = z.object({
472
487
  /**
473
488
  * OK
474
489
  */
475
- export const zLinkTrackerSubscriptionResponse = zCommandSuccess;
476
- export const zListTrackerPhotosPath = z.object({
490
+ export const zGetTrackerResponse = zTrackerSummary;
491
+ export const zRequestTrackerModeBody = zTrackerModeRequest;
492
+ export const zRequestTrackerModePath = z.object({
477
493
  trackerId: z
478
494
  .string()
479
495
  .min(1)
@@ -483,35 +499,9 @@ export const zListTrackerPhotosPath = z.object({
483
499
  /**
484
500
  * OK
485
501
  */
486
- export const zListTrackerPhotosResponse = zTrackerPhotoList;
487
- export const zUploadTrackerPhotoBody = z
488
- .object({
489
- file: zIFormFile,
490
- })
491
- .and(z.object({
492
- kind: z.string(),
493
- }))
494
- .and(z.object({
495
- width: z
496
- .int()
497
- .min(-2147483648, {
498
- error: "Invalid value: Expected int32 to be >= -2147483648",
499
- })
500
- .max(2147483647, {
501
- error: "Invalid value: Expected int32 to be <= 2147483647",
502
- }),
503
- }))
504
- .and(z.object({
505
- height: z
506
- .int()
507
- .min(-2147483648, {
508
- error: "Invalid value: Expected int32 to be >= -2147483648",
509
- })
510
- .max(2147483647, {
511
- error: "Invalid value: Expected int32 to be <= 2147483647",
512
- }),
513
- }));
514
- export const zUploadTrackerPhotoPath = z.object({
502
+ export const zRequestTrackerModeResponse = zTrackerModeResult;
503
+ export const zUpdateTrackerBikeBody = zUpdateTrackerBikeRequest;
504
+ export const zUpdateTrackerBikePath = z.object({
515
505
  trackerId: z
516
506
  .string()
517
507
  .min(1)
@@ -521,46 +511,49 @@ export const zUploadTrackerPhotoPath = z.object({
521
511
  /**
522
512
  * OK
523
513
  */
524
- export const zUploadTrackerPhotoResponse = zPhotoUploadResult;
525
- export const zDeleteTrackerPhotoPath = z.object({
514
+ export const zUpdateTrackerBikeResponse = zTrackerBikeDetails;
515
+ export const zSubmitTrackerTheftReportBody = zSubmitTrackerTheftReportRequest;
516
+ export const zSubmitTrackerTheftReportPath = z.object({
526
517
  trackerId: z
527
518
  .string()
528
519
  .min(1)
529
520
  .max(128)
530
521
  .regex(/^[A-Za-z0-9_-]+$/),
531
- photoId: z.string(),
532
522
  });
533
523
  /**
534
524
  * OK
535
525
  */
536
- export const zDeleteTrackerPhotoResponse = zCommandSuccess;
537
- export const zListTrackersQuery = z.object({
538
- cursor: z
526
+ export const zSubmitTrackerTheftReportResponse = zTrackerTheftReportResult;
527
+ export const zCheckTrackerClaimabilityBody = zTrackerClaimabilityRequest;
528
+ /**
529
+ * OK
530
+ */
531
+ export const zCheckTrackerClaimabilityResponse = z.record(z.string(), z.boolean());
532
+ export const zClaimTrackerOwnershipBody = zClaimTrackerOwnershipRequest;
533
+ export const zClaimTrackerOwnershipPath = z.object({
534
+ trackerId: z
539
535
  .string()
540
536
  .min(1)
541
537
  .max(128)
542
- .regex(/^[A-Za-z0-9_-]+$/)
543
- .optional(),
544
- limit: z.int().gte(1).lte(100).optional().default(50),
538
+ .regex(/^[A-Za-z0-9_-]+$/),
545
539
  });
546
540
  /**
547
541
  * OK
548
542
  */
549
- export const zListTrackersResponse = zTrackerPage;
550
- export const zSubscribeTrackersQuery = z.object({
551
- cursor: z
543
+ export const zClaimTrackerOwnershipResponse = zCommandSuccess;
544
+ export const zClaimTrackerGuestAccessBody = zClaimTrackerGuestAccessRequest;
545
+ export const zClaimTrackerGuestAccessPath = z.object({
546
+ trackerId: z
552
547
  .string()
553
548
  .min(1)
554
549
  .max(128)
555
- .regex(/^[A-Za-z0-9_-]+$/)
556
- .optional(),
557
- limit: z.int().gte(1).lte(100).optional().default(50),
550
+ .regex(/^[A-Za-z0-9_-]+$/),
558
551
  });
559
552
  /**
560
553
  * OK
561
554
  */
562
- export const zSubscribeTrackersResponse = zTrackerPage.nullable();
563
- export const zGetTrackerPath = z.object({
555
+ export const zClaimTrackerGuestAccessResponse = zCommandSuccess;
556
+ export const zCreateTrackerInvitationPath = z.object({
564
557
  trackerId: z
565
558
  .string()
566
559
  .min(1)
@@ -570,8 +563,9 @@ export const zGetTrackerPath = z.object({
570
563
  /**
571
564
  * OK
572
565
  */
573
- export const zGetTrackerResponse = zTrackerSummary;
574
- export const zGetTrackerPositionsPath = z.object({
566
+ export const zCreateTrackerInvitationResponse = zTrackerInvitation;
567
+ export const zRevokeTrackerInvitationBody = zRevokeTrackerInvitationRequest;
568
+ export const zRevokeTrackerInvitationPath = z.object({
575
569
  trackerId: z
576
570
  .string()
577
571
  .min(1)
@@ -581,8 +575,9 @@ export const zGetTrackerPositionsPath = z.object({
581
575
  /**
582
576
  * OK
583
577
  */
584
- export const zGetTrackerPositionsResponse = zTrackerPositionState;
585
- export const zSubscribeTrackerPositionsPath = z.object({
578
+ export const zRevokeTrackerInvitationResponse = zCommandSuccess;
579
+ export const zRemoveTrackerMembershipBody = zRemoveTrackerMembershipRequest;
580
+ export const zRemoveTrackerMembershipPath = z.object({
586
581
  trackerId: z
587
582
  .string()
588
583
  .min(1)
@@ -592,8 +587,8 @@ export const zSubscribeTrackerPositionsPath = z.object({
592
587
  /**
593
588
  * OK
594
589
  */
595
- export const zSubscribeTrackerPositionsResponse = zTrackerPositionState.nullable();
596
- export const zSubscribeTrackerPhotosPath = z.object({
590
+ export const zRemoveTrackerMembershipResponse = zCommandSuccess;
591
+ export const zGetTrackerBluetoothCredentialsPath = z.object({
597
592
  trackerId: z
598
593
  .string()
599
594
  .min(1)
@@ -603,9 +598,9 @@ export const zSubscribeTrackerPhotosPath = z.object({
603
598
  /**
604
599
  * OK
605
600
  */
606
- export const zSubscribeTrackerPhotosResponse = zTrackerPhotoList.nullable();
607
- export const zRequestTrackerModeBody = zTrackerModeRequest;
608
- export const zRequestTrackerModePath = z.object({
601
+ export const zGetTrackerBluetoothCredentialsResponse = zTrackerBluetoothCredentials;
602
+ export const zUpdateTrackerBluetoothPinBody = zUpdateBluetoothPinRequest;
603
+ export const zUpdateTrackerBluetoothPinPath = z.object({
609
604
  trackerId: z
610
605
  .string()
611
606
  .min(1)
@@ -615,14 +610,9 @@ export const zRequestTrackerModePath = z.object({
615
610
  /**
616
611
  * OK
617
612
  */
618
- export const zRequestTrackerModeResponse = zTrackerModeResult;
619
- export const zCheckTrackerClaimabilityBody = zTrackerClaimabilityRequest;
620
- /**
621
- * OK
622
- */
623
- export const zCheckTrackerClaimabilityResponse = z.record(z.string(), z.boolean());
624
- export const zClaimTrackerOwnershipBody = zClaimTrackerOwnershipRequest;
625
- export const zClaimTrackerOwnershipPath = z.object({
613
+ export const zUpdateTrackerBluetoothPinResponse = zCommandSuccess;
614
+ export const zReportTrackerBluetoothBatteryBody = zBluetoothBatteryRequest;
615
+ export const zReportTrackerBluetoothBatteryPath = z.object({
626
616
  trackerId: z
627
617
  .string()
628
618
  .min(1)
@@ -632,9 +622,9 @@ export const zClaimTrackerOwnershipPath = z.object({
632
622
  /**
633
623
  * OK
634
624
  */
635
- export const zClaimTrackerOwnershipResponse = zCommandSuccess;
636
- export const zClaimTrackerGuestAccessBody = zClaimTrackerGuestAccessRequest;
637
- export const zClaimTrackerGuestAccessPath = z.object({
625
+ export const zReportTrackerBluetoothBatteryResponse = zCommandSuccess;
626
+ export const zReportTrackerBluetoothCommandBody = zBluetoothCommandReport;
627
+ export const zReportTrackerBluetoothCommandPath = z.object({
638
628
  trackerId: z
639
629
  .string()
640
630
  .min(1)
@@ -644,8 +634,9 @@ export const zClaimTrackerGuestAccessPath = z.object({
644
634
  /**
645
635
  * OK
646
636
  */
647
- export const zClaimTrackerGuestAccessResponse = zCommandSuccess;
648
- export const zCreateTrackerInvitationPath = z.object({
637
+ export const zReportTrackerBluetoothCommandResponse = zCommandSuccess;
638
+ export const zUploadTrackerBluetoothObservationBody = zBluetoothObservationRequest;
639
+ export const zUploadTrackerBluetoothObservationPath = z.object({
649
640
  trackerId: z
650
641
  .string()
651
642
  .min(1)
@@ -655,33 +646,35 @@ export const zCreateTrackerInvitationPath = z.object({
655
646
  /**
656
647
  * OK
657
648
  */
658
- export const zCreateTrackerInvitationResponse = zTrackerInvitation;
659
- export const zRevokeTrackerInvitationPath = z.object({
649
+ export const zUploadTrackerBluetoothObservationResponse = zBluetoothObservationResult;
650
+ export const zReportTrackerFactoryResetPath = z.object({
660
651
  trackerId: z
661
652
  .string()
662
653
  .min(1)
663
654
  .max(128)
664
655
  .regex(/^[A-Za-z0-9_-]+$/),
665
- accessCode: z.string(),
666
656
  });
667
657
  /**
668
658
  * OK
669
659
  */
670
- export const zRevokeTrackerInvitationResponse = zCommandSuccess;
671
- export const zRemoveTrackerMembershipBody = zRemoveTrackerMembershipRequest;
672
- export const zRemoveTrackerMembershipPath = z.object({
660
+ export const zReportTrackerFactoryResetResponse = zCommandSuccess;
661
+ export const zGetTrackerFirmwarePlanPath = z.object({
673
662
  trackerId: z
674
663
  .string()
675
664
  .min(1)
676
665
  .max(128)
677
666
  .regex(/^[A-Za-z0-9_-]+$/),
678
667
  });
668
+ export const zGetTrackerFirmwarePlanQuery = z.object({
669
+ platform: z.enum(["ios", "android"]),
670
+ build: z.string(),
671
+ });
679
672
  /**
680
673
  * OK
681
674
  */
682
- export const zRemoveTrackerMembershipResponse = zCommandSuccess;
683
- export const zUpdateTrackerBikeBody = zUpdateTrackerBikeRequest;
684
- export const zUpdateTrackerBikePath = z.object({
675
+ export const zGetTrackerFirmwarePlanResponse = zTrackerFirmwarePlan;
676
+ export const zCompleteTrackerFirmwareUpdateBody = zCompleteFirmwareRequest;
677
+ export const zCompleteTrackerFirmwareUpdatePath = z.object({
685
678
  trackerId: z
686
679
  .string()
687
680
  .min(1)
@@ -691,9 +684,9 @@ export const zUpdateTrackerBikePath = z.object({
691
684
  /**
692
685
  * OK
693
686
  */
694
- export const zUpdateTrackerBikeResponse = zTrackerBikeDetails;
695
- export const zSubmitTrackerTheftReportBody = zSubmitTrackerTheftReportRequest;
696
- export const zSubmitTrackerTheftReportPath = z.object({
687
+ export const zCompleteTrackerFirmwareUpdateResponse = zCommandSuccess;
688
+ export const zRecordTrackerFirmwareAttemptBody = zRecordFirmwareAttemptRequest;
689
+ export const zRecordTrackerFirmwareAttemptPath = z.object({
697
690
  trackerId: z
698
691
  .string()
699
692
  .min(1)
@@ -703,8 +696,8 @@ export const zSubmitTrackerTheftReportPath = z.object({
703
696
  /**
704
697
  * OK
705
698
  */
706
- export const zSubmitTrackerTheftReportResponse = zTrackerTheftReportResult;
707
- export const zGetTrackerBluetoothCredentialsPath = z.object({
699
+ export const zRecordTrackerFirmwareAttemptResponse = zRecordFirmwareAttemptResult;
700
+ export const zGetTrackerPositionsPath = z.object({
708
701
  trackerId: z
709
702
  .string()
710
703
  .min(1)
@@ -714,9 +707,8 @@ export const zGetTrackerBluetoothCredentialsPath = z.object({
714
707
  /**
715
708
  * OK
716
709
  */
717
- export const zGetTrackerBluetoothCredentialsResponse = zTrackerBluetoothCredentials;
718
- export const zUpdateTrackerBluetoothPinBody = zUpdateBluetoothPinRequest;
719
- export const zUpdateTrackerBluetoothPinPath = z.object({
710
+ export const zGetTrackerPositionsResponse = zTrackerPositionState;
711
+ export const zSubscribeTrackerPositionsPath = z.object({
720
712
  trackerId: z
721
713
  .string()
722
714
  .min(1)
@@ -726,9 +718,8 @@ export const zUpdateTrackerBluetoothPinPath = z.object({
726
718
  /**
727
719
  * OK
728
720
  */
729
- export const zUpdateTrackerBluetoothPinResponse = zCommandSuccess;
730
- export const zReportTrackerBluetoothBatteryBody = zBluetoothBatteryRequest;
731
- export const zReportTrackerBluetoothBatteryPath = z.object({
721
+ export const zSubscribeTrackerPositionsResponse = zTrackerPositionState.nullable();
722
+ export const zListTrackerPhotosPath = z.object({
732
723
  trackerId: z
733
724
  .string()
734
725
  .min(1)
@@ -738,9 +729,14 @@ export const zReportTrackerBluetoothBatteryPath = z.object({
738
729
  /**
739
730
  * OK
740
731
  */
741
- export const zReportTrackerBluetoothBatteryResponse = zCommandSuccess;
742
- export const zReportTrackerBluetoothCommandBody = zBluetoothCommandReport;
743
- export const zReportTrackerBluetoothCommandPath = z.object({
732
+ export const zListTrackerPhotosResponse = zTrackerPhotoList;
733
+ export const zUploadTrackerPhotoBody = z.object({
734
+ file: z.string().max(10485760),
735
+ kind: z.enum(["bike", "installation", "receipt"]),
736
+ width: z.int().gte(1).lte(16384),
737
+ height: z.int().gte(1).lte(16384),
738
+ });
739
+ export const zUploadTrackerPhotoPath = z.object({
744
740
  trackerId: z
745
741
  .string()
746
742
  .min(1)
@@ -750,9 +746,8 @@ export const zReportTrackerBluetoothCommandPath = z.object({
750
746
  /**
751
747
  * OK
752
748
  */
753
- export const zReportTrackerBluetoothCommandResponse = zCommandSuccess;
754
- export const zUploadTrackerBluetoothObservationBody = zBluetoothObservationRequest;
755
- export const zUploadTrackerBluetoothObservationPath = z.object({
749
+ export const zUploadTrackerPhotoResponse = zPhotoUploadResult;
750
+ export const zSubscribeTrackerPhotosPath = z.object({
756
751
  trackerId: z
757
752
  .string()
758
753
  .min(1)
@@ -762,35 +757,35 @@ export const zUploadTrackerBluetoothObservationPath = z.object({
762
757
  /**
763
758
  * OK
764
759
  */
765
- export const zUploadTrackerBluetoothObservationResponse = zBluetoothObservationResult;
766
- export const zReportTrackerFactoryResetPath = z.object({
760
+ export const zSubscribeTrackerPhotosResponse = zTrackerPhotoList.nullable();
761
+ export const zDeleteTrackerPhotoPath = z.object({
767
762
  trackerId: z
768
763
  .string()
769
764
  .min(1)
770
765
  .max(128)
771
766
  .regex(/^[A-Za-z0-9_-]+$/),
767
+ photoId: z.string(),
772
768
  });
773
769
  /**
774
770
  * OK
775
771
  */
776
- export const zReportTrackerFactoryResetResponse = zFactoryResetResult;
777
- export const zGetTrackerFirmwarePlanPath = z.object({
772
+ export const zDeleteTrackerPhotoResponse = zCommandSuccess;
773
+ export const zUnlinkTrackerSubscriptionPath = z.object({
778
774
  trackerId: z
779
775
  .string()
780
776
  .min(1)
781
777
  .max(128)
782
778
  .regex(/^[A-Za-z0-9_-]+$/),
783
779
  });
784
- export const zGetTrackerFirmwarePlanQuery = z.object({
785
- platform: z.string(),
786
- build: z.string(),
780
+ export const zUnlinkTrackerSubscriptionQuery = z.object({
781
+ expectedSubscriptionId: z.string(),
787
782
  });
788
783
  /**
789
784
  * OK
790
785
  */
791
- export const zGetTrackerFirmwarePlanResponse = zTrackerFirmwarePlan;
792
- export const zCompleteTrackerFirmwareUpdateBody = zCompleteFirmwareRequest;
793
- export const zCompleteTrackerFirmwareUpdatePath = z.object({
786
+ export const zUnlinkTrackerSubscriptionResponse = zCommandSuccess;
787
+ export const zLinkTrackerSubscriptionBody = zSubscriptionChangeRequest;
788
+ export const zLinkTrackerSubscriptionPath = z.object({
794
789
  trackerId: z
795
790
  .string()
796
791
  .min(1)
@@ -800,19 +795,27 @@ export const zCompleteTrackerFirmwareUpdatePath = z.object({
800
795
  /**
801
796
  * OK
802
797
  */
803
- export const zCompleteTrackerFirmwareUpdateResponse = zCommandSuccess;
804
- export const zRecordTrackerFirmwareAttemptBody = zRecordFirmwareAttemptRequest;
805
- export const zRecordTrackerFirmwareAttemptPath = z.object({
798
+ export const zLinkTrackerSubscriptionResponse = zCommandSuccess;
799
+ /**
800
+ * OK
801
+ */
802
+ export const zGetBluetoothReportingPolicyResponse = zBluetoothReportingPolicy;
803
+ export const zListTrackerHistoryPath = z.object({
806
804
  trackerId: z
807
805
  .string()
808
806
  .min(1)
809
807
  .max(128)
810
808
  .regex(/^[A-Za-z0-9_-]+$/),
811
809
  });
810
+ export const zListTrackerHistoryQuery = z.object({
811
+ from: z.iso.datetime({ offset: true }),
812
+ to: z.iso.datetime({ offset: true }),
813
+ cursor: z.string().optional(),
814
+ });
812
815
  /**
813
816
  * OK
814
817
  */
815
- export const zRecordTrackerFirmwareAttemptResponse = zRecordFirmwareAttemptResult;
818
+ export const zListTrackerHistoryResponse = zHistoryPage;
816
819
  /**
817
820
  * OK
818
821
  */
@@ -826,36 +829,20 @@ export const zUpdateAccountPreferencesResponse = zAccountPreferences;
826
829
  * OK
827
830
  */
828
831
  export const zSubscribeAccountPreferencesResponse = zAccountPreferences.nullable();
829
- export const zRemovePushRegistrationBody = zRemovePushRegistrationRequest;
832
+ export const zRegisterPushRegistrationBody = zRegisterPushRegistrationRequest;
830
833
  /**
831
834
  * No Content
832
835
  */
833
- export const zRemovePushRegistrationResponse = z.void();
834
- export const zRegisterPushRegistrationBody = zRegisterPushRegistrationRequest;
836
+ export const zRegisterPushRegistrationResponse = z.void();
837
+ export const zRemovePushRegistrationBody = zRemovePushRegistrationRequest;
835
838
  /**
836
839
  * No Content
837
840
  */
838
- export const zRegisterPushRegistrationResponse = z.void();
841
+ export const zRemovePushRegistrationResponse = z.void();
839
842
  /**
840
843
  * Accepted
841
844
  */
842
845
  export const zRequestAccountDeletionResponse = zAccountDeletionRequest;
843
- export const zListTrackerHistoryPath = z.object({
844
- trackerId: z
845
- .string()
846
- .min(1)
847
- .max(128)
848
- .regex(/^[A-Za-z0-9_-]+$/),
849
- });
850
- export const zListTrackerHistoryQuery = z.object({
851
- startMs: z.int().gte(-9007199254740991).lte(9007199254740991),
852
- endMs: z.int().gte(-9007199254740991).lte(9007199254740991),
853
- cursor: z.string().optional(),
854
- });
855
- /**
856
- * OK
857
- */
858
- export const zListTrackerHistoryResponse = zHistoryPage;
859
846
  export const zListNotificationsQuery = z.object({
860
847
  cursor: z.string().optional(),
861
848
  });