@bikefinder/staff-sdk 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schemas.d.ts CHANGED
@@ -706,6 +706,115 @@ export declare const tracker: z$1.ZodObject<{
706
706
  createdAt: z$1.ZodISODateTime;
707
707
  updatedAt: z$1.ZodISODateTime;
708
708
  }, z$1.core.$strip>;
709
+ export declare const customerTrackerDetails: z$1.ZodObject<{
710
+ id: z$1.ZodString;
711
+ firmware: z$1.ZodNullable<z$1.ZodObject<{
712
+ lte: z$1.ZodNullable<z$1.ZodString>;
713
+ bluetooth: z$1.ZodNullable<z$1.ZodString>;
714
+ battery: z$1.ZodNullable<z$1.ZodString>;
715
+ modem: z$1.ZodNullable<z$1.ZodString>;
716
+ mtk: z$1.ZodNullable<z$1.ZodString>;
717
+ ti: z$1.ZodNullable<z$1.ZodString>;
718
+ buildNumber: z$1.ZodNullable<z$1.ZodInt>;
719
+ }, z$1.core.$strip>>;
720
+ subscription: z$1.ZodDiscriminatedUnion<[
721
+ z$1.ZodObject<{
722
+ id: z$1.ZodString;
723
+ activity: z$1.ZodEnum<{
724
+ unknown: "unknown";
725
+ active: "active";
726
+ inactive: "inactive";
727
+ }>;
728
+ isDemo: z$1.ZodBoolean;
729
+ status: z$1.ZodNullable<z$1.ZodString>;
730
+ country: z$1.ZodNullable<z$1.ZodString>;
731
+ endsAt: z$1.ZodNullable<z$1.ZodISODateTime>;
732
+ state: z$1.ZodLiteral<"available">;
733
+ }, z$1.core.$strip>,
734
+ z$1.ZodObject<{
735
+ state: z$1.ZodLiteral<"unavailable">;
736
+ reason: z$1.ZodEnum<{
737
+ invalid: "invalid";
738
+ not_observed: "not_observed";
739
+ not_assigned: "not_assigned";
740
+ }>;
741
+ }, z$1.core.$strip>
742
+ ], "state">;
743
+ createdAt: z$1.ZodISODateTime;
744
+ revision: z$1.ZodString;
745
+ battery: z$1.ZodDiscriminatedUnion<[
746
+ z$1.ZodObject<{
747
+ level: z$1.ZodNullable<z$1.ZodNumber>;
748
+ isCharging: z$1.ZodNullable<z$1.ZodBoolean>;
749
+ levelUpdatedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
750
+ chargingObservedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
751
+ observation: z$1.ZodNullable<z$1.ZodObject<{
752
+ observedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
753
+ receivedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
754
+ }, z$1.core.$strip>>;
755
+ source: z$1.ZodNullable<z$1.ZodString>;
756
+ state: z$1.ZodLiteral<"available">;
757
+ }, z$1.core.$strip>,
758
+ z$1.ZodObject<{
759
+ state: z$1.ZodLiteral<"unavailable">;
760
+ reason: z$1.ZodEnum<{
761
+ invalid: "invalid";
762
+ not_observed: "not_observed";
763
+ not_assigned: "not_assigned";
764
+ }>;
765
+ }, z$1.core.$strip>
766
+ ], "state">;
767
+ identity: z$1.ZodNullable<z$1.ZodObject<{
768
+ serialNumber: z$1.ZodNullable<z$1.ZodString>;
769
+ }, z$1.core.$strip>>;
770
+ generation: z$1.ZodNullable<z$1.ZodInt>;
771
+ bike: z$1.ZodObject<{
772
+ revision: z$1.ZodString;
773
+ name: z$1.ZodNullable<z$1.ZodString>;
774
+ brand: z$1.ZodNullable<z$1.ZodString>;
775
+ type: z$1.ZodNullable<z$1.ZodString>;
776
+ model: z$1.ZodNullable<z$1.ZodString>;
777
+ frameNumber: z$1.ZodNullable<z$1.ZodString>;
778
+ url: z$1.ZodNullable<z$1.ZodString>;
779
+ marketPrice: z$1.ZodNullable<z$1.ZodString>;
780
+ marketPriceCurrency: z$1.ZodNullable<z$1.ZodString>;
781
+ }, z$1.core.$strip>;
782
+ location: z$1.ZodDiscriminatedUnion<[
783
+ z$1.ZodObject<{
784
+ latitude: z$1.ZodNumber;
785
+ longitude: z$1.ZodNumber;
786
+ accuracy: z$1.ZodNullable<z$1.ZodNumber>;
787
+ source: z$1.ZodNullable<z$1.ZodString>;
788
+ observedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
789
+ state: z$1.ZodLiteral<"available">;
790
+ }, z$1.core.$strip>,
791
+ z$1.ZodObject<{
792
+ state: z$1.ZodLiteral<"unavailable">;
793
+ reason: z$1.ZodEnum<{
794
+ invalid: "invalid";
795
+ not_observed: "not_observed";
796
+ not_assigned: "not_assigned";
797
+ }>;
798
+ }, z$1.core.$strip>
799
+ ], "state">;
800
+ readIssues: z$1.ZodArray<z$1.ZodObject<{
801
+ path: z$1.ZodString;
802
+ code: z$1.ZodLiteral<"invalid_stored_value">;
803
+ }, z$1.core.$strip>>;
804
+ updatedAt: z$1.ZodISODateTime;
805
+ preferences: z$1.ZodObject<{
806
+ movementAlerts: z$1.ZodBoolean;
807
+ }, z$1.core.$strip>;
808
+ capabilities: z$1.ZodObject<{
809
+ firmwareUpdates: z$1.ZodBoolean;
810
+ factoryResetReports: z$1.ZodBoolean;
811
+ }, z$1.core.$strip>;
812
+ membership: z$1.ZodObject<{
813
+ accountId: z$1.ZodString;
814
+ activeMemberCount: z$1.ZodInt;
815
+ }, z$1.core.$strip>;
816
+ }, z$1.core.$strip>;
817
+ export type CustomerTrackerDetails = z$1.infer<typeof customerTrackerDetails>;
709
818
  export type Tracker = z$1.infer<typeof tracker>;
710
819
  export type TrackerSummary = z$1.infer<typeof trackerSummary>;
711
820
  export type TrackerPage = z$1.infer<typeof trackerPage>;
@@ -59289,6 +59398,131 @@ export declare const staffTracker: z$1.ZodObject<{
59289
59398
  createdAt: z$1.ZodISODateTime;
59290
59399
  updatedAt: z$1.ZodISODateTime;
59291
59400
  }, z$1.core.$strip>;
59401
+ export declare const staffTrackerDetails: z$1.ZodObject<{
59402
+ id: z$1.ZodString;
59403
+ firmware: z$1.ZodNullable<z$1.ZodObject<{
59404
+ lte: z$1.ZodNullable<z$1.ZodString>;
59405
+ bluetooth: z$1.ZodNullable<z$1.ZodString>;
59406
+ battery: z$1.ZodNullable<z$1.ZodString>;
59407
+ modem: z$1.ZodNullable<z$1.ZodString>;
59408
+ mtk: z$1.ZodNullable<z$1.ZodString>;
59409
+ ti: z$1.ZodNullable<z$1.ZodString>;
59410
+ buildNumber: z$1.ZodNullable<z$1.ZodInt>;
59411
+ }, z$1.core.$strip>>;
59412
+ subscription: z$1.ZodDiscriminatedUnion<[
59413
+ z$1.ZodObject<{
59414
+ id: z$1.ZodString;
59415
+ activity: z$1.ZodEnum<{
59416
+ unknown: "unknown";
59417
+ active: "active";
59418
+ inactive: "inactive";
59419
+ }>;
59420
+ isDemo: z$1.ZodBoolean;
59421
+ status: z$1.ZodNullable<z$1.ZodString>;
59422
+ country: z$1.ZodNullable<z$1.ZodString>;
59423
+ endsAt: z$1.ZodNullable<z$1.ZodISODateTime>;
59424
+ state: z$1.ZodLiteral<"available">;
59425
+ }, z$1.core.$strip>,
59426
+ z$1.ZodObject<{
59427
+ state: z$1.ZodLiteral<"unavailable">;
59428
+ reason: z$1.ZodEnum<{
59429
+ invalid: "invalid";
59430
+ not_observed: "not_observed";
59431
+ not_assigned: "not_assigned";
59432
+ }>;
59433
+ }, z$1.core.$strip>
59434
+ ], "state">;
59435
+ createdAt: z$1.ZodISODateTime;
59436
+ revision: z$1.ZodString;
59437
+ battery: z$1.ZodDiscriminatedUnion<[
59438
+ z$1.ZodObject<{
59439
+ level: z$1.ZodNullable<z$1.ZodNumber>;
59440
+ isCharging: z$1.ZodNullable<z$1.ZodBoolean>;
59441
+ levelUpdatedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
59442
+ chargingObservedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
59443
+ observation: z$1.ZodNullable<z$1.ZodObject<{
59444
+ observedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
59445
+ receivedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
59446
+ }, z$1.core.$strip>>;
59447
+ source: z$1.ZodNullable<z$1.ZodString>;
59448
+ state: z$1.ZodLiteral<"available">;
59449
+ }, z$1.core.$strip>,
59450
+ z$1.ZodObject<{
59451
+ state: z$1.ZodLiteral<"unavailable">;
59452
+ reason: z$1.ZodEnum<{
59453
+ invalid: "invalid";
59454
+ not_observed: "not_observed";
59455
+ not_assigned: "not_assigned";
59456
+ }>;
59457
+ }, z$1.core.$strip>
59458
+ ], "state">;
59459
+ generation: z$1.ZodNullable<z$1.ZodInt>;
59460
+ bike: z$1.ZodObject<{
59461
+ revision: z$1.ZodString;
59462
+ name: z$1.ZodNullable<z$1.ZodString>;
59463
+ brand: z$1.ZodNullable<z$1.ZodString>;
59464
+ type: z$1.ZodNullable<z$1.ZodString>;
59465
+ model: z$1.ZodNullable<z$1.ZodString>;
59466
+ frameNumber: z$1.ZodNullable<z$1.ZodString>;
59467
+ url: z$1.ZodNullable<z$1.ZodString>;
59468
+ marketPrice: z$1.ZodNullable<z$1.ZodString>;
59469
+ marketPriceCurrency: z$1.ZodNullable<z$1.ZodString>;
59470
+ }, z$1.core.$strip>;
59471
+ location: z$1.ZodDiscriminatedUnion<[
59472
+ z$1.ZodObject<{
59473
+ latitude: z$1.ZodNumber;
59474
+ longitude: z$1.ZodNumber;
59475
+ accuracy: z$1.ZodNullable<z$1.ZodNumber>;
59476
+ source: z$1.ZodNullable<z$1.ZodString>;
59477
+ observedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
59478
+ state: z$1.ZodLiteral<"available">;
59479
+ }, z$1.core.$strip>,
59480
+ z$1.ZodObject<{
59481
+ state: z$1.ZodLiteral<"unavailable">;
59482
+ reason: z$1.ZodEnum<{
59483
+ invalid: "invalid";
59484
+ not_observed: "not_observed";
59485
+ not_assigned: "not_assigned";
59486
+ }>;
59487
+ }, z$1.core.$strip>
59488
+ ], "state">;
59489
+ readIssues: z$1.ZodArray<z$1.ZodObject<{
59490
+ path: z$1.ZodString;
59491
+ code: z$1.ZodLiteral<"invalid_stored_value">;
59492
+ }, z$1.core.$strip>>;
59493
+ updatedAt: z$1.ZodISODateTime;
59494
+ hardware: z$1.ZodNullable<z$1.ZodObject<{
59495
+ imei: z$1.ZodNullable<z$1.ZodString>;
59496
+ iccid: z$1.ZodNullable<z$1.ZodString>;
59497
+ imsi: z$1.ZodNullable<z$1.ZodString>;
59498
+ serialNumber: z$1.ZodNullable<z$1.ZodString>;
59499
+ }, z$1.core.$strip>>;
59500
+ backend: z$1.ZodNullable<z$1.ZodString>;
59501
+ configuration: z$1.ZodNullable<z$1.ZodObject<{
59502
+ movementAlerts: z$1.ZodNullable<z$1.ZodBoolean>;
59503
+ isBlacklisted: z$1.ZodNullable<z$1.ZodBoolean>;
59504
+ }, z$1.core.$strip>>;
59505
+ membership: z$1.ZodObject<{
59506
+ revision: z$1.ZodString;
59507
+ memberCount: z$1.ZodInt;
59508
+ }, z$1.core.$strip>;
59509
+ }, z$1.core.$strip>;
59510
+ export declare const staffTrackerMemberPageInput: z$1.ZodObject<{
59511
+ deviceId: z$1.ZodString;
59512
+ revision: z$1.ZodString;
59513
+ after: z$1.ZodOptional<z$1.ZodString>;
59514
+ limit: z$1.ZodDefault<z$1.ZodInt>;
59515
+ }, z$1.core.$strict>;
59516
+ export declare const staffTrackerMemberPage: z$1.ZodObject<{
59517
+ items: z$1.ZodArray<z$1.ZodObject<{
59518
+ active: z$1.ZodNullable<z$1.ZodBoolean>;
59519
+ displayName: z$1.ZodNullable<z$1.ZodString>;
59520
+ listOrder: z$1.ZodNullable<z$1.ZodInt>;
59521
+ joinedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
59522
+ accountId: z$1.ZodString;
59523
+ }, z$1.core.$strip>>;
59524
+ nextAfter: z$1.ZodNullable<z$1.ZodString>;
59525
+ }, z$1.core.$strip>;
59292
59526
  export declare const staffSubscription: z$1.ZodObject<{
59293
59527
  accountId: z$1.ZodNullable<z$1.ZodString>;
59294
59528
  name: z$1.ZodNullable<z$1.ZodString>;
@@ -151762,11 +151996,21 @@ export type DeviceInput = z$1.infer<typeof deviceInput>;
151762
151996
  export type DeviceLookupInput = z$1.infer<typeof deviceLookupInput>;
151763
151997
  declare const trackerContract: {
151764
151998
  members: {
151765
- add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
151999
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
151766
152000
  deviceId: z$1.ZodString;
151767
- memberId: z$1.ZodString;
151768
- displayName: z$1.ZodString;
151769
- }, z$1.core.$strict>, z$1.ZodVoid, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
152001
+ revision: z$1.ZodString;
152002
+ after: z$1.ZodOptional<z$1.ZodString>;
152003
+ limit: z$1.ZodDefault<z$1.ZodInt>;
152004
+ }, z$1.core.$strict>, z$1.ZodObject<{
152005
+ items: z$1.ZodArray<z$1.ZodObject<{
152006
+ active: z$1.ZodNullable<z$1.ZodBoolean>;
152007
+ displayName: z$1.ZodNullable<z$1.ZodString>;
152008
+ listOrder: z$1.ZodNullable<z$1.ZodInt>;
152009
+ joinedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
152010
+ accountId: z$1.ZodString;
152011
+ }, z$1.core.$strip>>;
152012
+ nextAfter: z$1.ZodNullable<z$1.ZodString>;
152013
+ }, z$1.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
151770
152014
  readonly invalid: {
151771
152015
  readonly status: 400;
151772
152016
  readonly data: z$1.ZodType<{
@@ -152664,9 +152908,10 @@ declare const trackerContract: {
152664
152908
  }, unknown>>;
152665
152909
  };
152666
152910
  }>, Record<never, never>>;
152667
- remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
152911
+ add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
152668
152912
  deviceId: z$1.ZodString;
152669
152913
  memberId: z$1.ZodString;
152914
+ displayName: z$1.ZodString;
152670
152915
  }, z$1.core.$strict>, z$1.ZodVoid, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
152671
152916
  readonly invalid: {
152672
152917
  readonly status: 400;
@@ -153565,127 +153810,3102 @@ declare const trackerContract: {
153565
153810
  }, unknown>>;
153566
153811
  };
153567
153812
  }>, Record<never, never>>;
153568
- };
153569
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodPrefault<z$1.ZodObject<{
153570
- filter: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[
153571
- z$1.ZodObject<{
153572
- by: z$1.ZodLiteral<"serialNumber">;
153573
- value: z$1.ZodString;
153574
- }, z$1.core.$strict>,
153575
- z$1.ZodObject<{
153576
- by: z$1.ZodLiteral<"imei">;
153577
- value: z$1.ZodString;
153578
- }, z$1.core.$strict>,
153579
- z$1.ZodObject<{
153580
- by: z$1.ZodLiteral<"iccid">;
153581
- value: z$1.ZodString;
153582
- }, z$1.core.$strict>,
153583
- z$1.ZodObject<{
153584
- by: z$1.ZodLiteral<"accountId">;
153585
- value: z$1.ZodString;
153586
- }, z$1.core.$strict>,
153587
- z$1.ZodObject<{
153588
- by: z$1.ZodLiteral<"subscriptionId">;
153589
- value: z$1.ZodString;
153590
- }, z$1.core.$strict>
153591
- ], "by">>;
153592
- limit: z$1.ZodDefault<z$1.ZodInt>;
153593
- after: z$1.ZodOptional<z$1.ZodString>;
153594
- }, z$1.core.$strict>>, z$1.ZodObject<{
153595
- items: z$1.ZodArray<z$1.ZodObject<{
153596
- hardware: z$1.ZodNullable<z$1.ZodObject<{
153597
- imei: z$1.ZodNullable<z$1.ZodString>;
153598
- iccid: z$1.ZodNullable<z$1.ZodString>;
153599
- imsi: z$1.ZodNullable<z$1.ZodString>;
153600
- serialNumber: z$1.ZodNullable<z$1.ZodString>;
153601
- }, z$1.core.$strip>>;
153602
- backend: z$1.ZodNullable<z$1.ZodString>;
153603
- generation: z$1.ZodNullable<z$1.ZodInt>;
153604
- bike: z$1.ZodObject<{
153605
- revision: z$1.ZodString;
153606
- name: z$1.ZodNullable<z$1.ZodString>;
153607
- brand: z$1.ZodNullable<z$1.ZodString>;
153608
- type: z$1.ZodNullable<z$1.ZodString>;
153609
- model: z$1.ZodNullable<z$1.ZodString>;
153610
- frameNumber: z$1.ZodNullable<z$1.ZodString>;
153611
- url: z$1.ZodNullable<z$1.ZodString>;
153612
- marketPrice: z$1.ZodNullable<z$1.ZodString>;
153613
- marketPriceCurrency: z$1.ZodNullable<z$1.ZodString>;
153614
- }, z$1.core.$strip>;
153615
- battery: z$1.ZodDiscriminatedUnion<[
153616
- z$1.ZodObject<{
153617
- level: z$1.ZodNullable<z$1.ZodNumber>;
153618
- isCharging: z$1.ZodNullable<z$1.ZodBoolean>;
153619
- levelUpdatedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
153620
- chargingObservedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
153621
- observation: z$1.ZodNullable<z$1.ZodObject<{
153622
- observedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
153623
- receivedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
153624
- }, z$1.core.$strip>>;
153625
- source: z$1.ZodNullable<z$1.ZodString>;
153626
- state: z$1.ZodLiteral<"available">;
153627
- }, z$1.core.$strip>,
153628
- z$1.ZodObject<{
153629
- state: z$1.ZodLiteral<"unavailable">;
153630
- reason: z$1.ZodEnum<{
153631
- invalid: "invalid";
153632
- not_observed: "not_observed";
153633
- not_assigned: "not_assigned";
153634
- }>;
153635
- }, z$1.core.$strip>
153636
- ], "state">;
153637
- location: z$1.ZodDiscriminatedUnion<[
153638
- z$1.ZodObject<{
153639
- latitude: z$1.ZodNumber;
153640
- longitude: z$1.ZodNumber;
153641
- accuracy: z$1.ZodNullable<z$1.ZodNumber>;
153642
- source: z$1.ZodNullable<z$1.ZodString>;
153643
- observedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
153644
- state: z$1.ZodLiteral<"available">;
153645
- }, z$1.core.$strip>,
153646
- z$1.ZodObject<{
153647
- state: z$1.ZodLiteral<"unavailable">;
153648
- reason: z$1.ZodEnum<{
153649
- invalid: "invalid";
153650
- not_observed: "not_observed";
153651
- not_assigned: "not_assigned";
153652
- }>;
153653
- }, z$1.core.$strip>
153654
- ], "state">;
153655
- subscription: z$1.ZodDiscriminatedUnion<[
153656
- z$1.ZodObject<{
153657
- id: z$1.ZodString;
153658
- activity: z$1.ZodEnum<{
153659
- unknown: "unknown";
153660
- active: "active";
153661
- inactive: "inactive";
153662
- }>;
153663
- isDemo: z$1.ZodBoolean;
153664
- status: z$1.ZodNullable<z$1.ZodString>;
153665
- country: z$1.ZodNullable<z$1.ZodString>;
153666
- endsAt: z$1.ZodNullable<z$1.ZodISODateTime>;
153667
- state: z$1.ZodLiteral<"available">;
153668
- }, z$1.core.$strip>,
153669
- z$1.ZodObject<{
153670
- state: z$1.ZodLiteral<"unavailable">;
153671
- reason: z$1.ZodEnum<{
153672
- invalid: "invalid";
153673
- not_observed: "not_observed";
153674
- not_assigned: "not_assigned";
153675
- }>;
153676
- }, z$1.core.$strip>
153677
- ], "state">;
153678
- readIssues: z$1.ZodArray<z$1.ZodObject<{
153679
- path: z$1.ZodString;
153680
- code: z$1.ZodLiteral<"invalid_stored_value">;
153681
- }, z$1.core.$strip>>;
153682
- id: z$1.ZodString;
153683
- revision: z$1.ZodString;
153684
- createdAt: z$1.ZodISODateTime;
153685
- updatedAt: z$1.ZodISODateTime;
153686
- }, z$1.core.$strip>>;
153687
- nextAfter: z$1.ZodNullable<z$1.ZodString>;
153688
- }, z$1.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
153813
+ remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
153814
+ deviceId: z$1.ZodString;
153815
+ memberId: z$1.ZodString;
153816
+ }, z$1.core.$strict>, z$1.ZodVoid, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
153817
+ readonly invalid: {
153818
+ readonly status: 400;
153819
+ readonly data: z$1.ZodType<{
153820
+ traceId: string;
153821
+ recovery: {
153822
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
153823
+ } | {
153824
+ action: "read_operation";
153825
+ operation: {
153826
+ kind: "command";
153827
+ serialNumber: string;
153828
+ idempotencyKey: string;
153829
+ } | {
153830
+ kind: "firmware";
153831
+ serialNumber: string;
153832
+ updateId: string;
153833
+ } | {
153834
+ kind: "bluetooth_firmware";
153835
+ deviceId: string;
153836
+ updateId: string;
153837
+ } | {
153838
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
153839
+ deviceId: string;
153840
+ requestId: string;
153841
+ } | {
153842
+ kind: "support";
153843
+ requestId: string;
153844
+ };
153845
+ };
153846
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
153847
+ currentRevision?: string | undefined;
153848
+ retryAfterSeconds?: number | undefined;
153849
+ }, unknown, z$1.core.$ZodTypeInternals<{
153850
+ traceId: string;
153851
+ recovery: {
153852
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
153853
+ } | {
153854
+ action: "read_operation";
153855
+ operation: {
153856
+ kind: "command";
153857
+ serialNumber: string;
153858
+ idempotencyKey: string;
153859
+ } | {
153860
+ kind: "firmware";
153861
+ serialNumber: string;
153862
+ updateId: string;
153863
+ } | {
153864
+ kind: "bluetooth_firmware";
153865
+ deviceId: string;
153866
+ updateId: string;
153867
+ } | {
153868
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
153869
+ deviceId: string;
153870
+ requestId: string;
153871
+ } | {
153872
+ kind: "support";
153873
+ requestId: string;
153874
+ };
153875
+ };
153876
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
153877
+ currentRevision?: string | undefined;
153878
+ retryAfterSeconds?: number | undefined;
153879
+ }, unknown>>;
153880
+ };
153881
+ readonly unauthenticated: {
153882
+ readonly status: 401;
153883
+ readonly data: z$1.ZodType<{
153884
+ traceId: string;
153885
+ recovery: {
153886
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
153887
+ } | {
153888
+ action: "read_operation";
153889
+ operation: {
153890
+ kind: "command";
153891
+ serialNumber: string;
153892
+ idempotencyKey: string;
153893
+ } | {
153894
+ kind: "firmware";
153895
+ serialNumber: string;
153896
+ updateId: string;
153897
+ } | {
153898
+ kind: "bluetooth_firmware";
153899
+ deviceId: string;
153900
+ updateId: string;
153901
+ } | {
153902
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
153903
+ deviceId: string;
153904
+ requestId: string;
153905
+ } | {
153906
+ kind: "support";
153907
+ requestId: string;
153908
+ };
153909
+ };
153910
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
153911
+ currentRevision?: string | undefined;
153912
+ retryAfterSeconds?: number | undefined;
153913
+ }, unknown, z$1.core.$ZodTypeInternals<{
153914
+ traceId: string;
153915
+ recovery: {
153916
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
153917
+ } | {
153918
+ action: "read_operation";
153919
+ operation: {
153920
+ kind: "command";
153921
+ serialNumber: string;
153922
+ idempotencyKey: string;
153923
+ } | {
153924
+ kind: "firmware";
153925
+ serialNumber: string;
153926
+ updateId: string;
153927
+ } | {
153928
+ kind: "bluetooth_firmware";
153929
+ deviceId: string;
153930
+ updateId: string;
153931
+ } | {
153932
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
153933
+ deviceId: string;
153934
+ requestId: string;
153935
+ } | {
153936
+ kind: "support";
153937
+ requestId: string;
153938
+ };
153939
+ };
153940
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
153941
+ currentRevision?: string | undefined;
153942
+ retryAfterSeconds?: number | undefined;
153943
+ }, unknown>>;
153944
+ };
153945
+ readonly forbidden: {
153946
+ readonly status: 403;
153947
+ readonly data: z$1.ZodType<{
153948
+ traceId: string;
153949
+ recovery: {
153950
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
153951
+ } | {
153952
+ action: "read_operation";
153953
+ operation: {
153954
+ kind: "command";
153955
+ serialNumber: string;
153956
+ idempotencyKey: string;
153957
+ } | {
153958
+ kind: "firmware";
153959
+ serialNumber: string;
153960
+ updateId: string;
153961
+ } | {
153962
+ kind: "bluetooth_firmware";
153963
+ deviceId: string;
153964
+ updateId: string;
153965
+ } | {
153966
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
153967
+ deviceId: string;
153968
+ requestId: string;
153969
+ } | {
153970
+ kind: "support";
153971
+ requestId: string;
153972
+ };
153973
+ };
153974
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
153975
+ currentRevision?: string | undefined;
153976
+ retryAfterSeconds?: number | undefined;
153977
+ }, unknown, z$1.core.$ZodTypeInternals<{
153978
+ traceId: string;
153979
+ recovery: {
153980
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
153981
+ } | {
153982
+ action: "read_operation";
153983
+ operation: {
153984
+ kind: "command";
153985
+ serialNumber: string;
153986
+ idempotencyKey: string;
153987
+ } | {
153988
+ kind: "firmware";
153989
+ serialNumber: string;
153990
+ updateId: string;
153991
+ } | {
153992
+ kind: "bluetooth_firmware";
153993
+ deviceId: string;
153994
+ updateId: string;
153995
+ } | {
153996
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
153997
+ deviceId: string;
153998
+ requestId: string;
153999
+ } | {
154000
+ kind: "support";
154001
+ requestId: string;
154002
+ };
154003
+ };
154004
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154005
+ currentRevision?: string | undefined;
154006
+ retryAfterSeconds?: number | undefined;
154007
+ }, unknown>>;
154008
+ };
154009
+ readonly not_found: {
154010
+ readonly status: 404;
154011
+ readonly data: z$1.ZodType<{
154012
+ traceId: string;
154013
+ recovery: {
154014
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154015
+ } | {
154016
+ action: "read_operation";
154017
+ operation: {
154018
+ kind: "command";
154019
+ serialNumber: string;
154020
+ idempotencyKey: string;
154021
+ } | {
154022
+ kind: "firmware";
154023
+ serialNumber: string;
154024
+ updateId: string;
154025
+ } | {
154026
+ kind: "bluetooth_firmware";
154027
+ deviceId: string;
154028
+ updateId: string;
154029
+ } | {
154030
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154031
+ deviceId: string;
154032
+ requestId: string;
154033
+ } | {
154034
+ kind: "support";
154035
+ requestId: string;
154036
+ };
154037
+ };
154038
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154039
+ currentRevision?: string | undefined;
154040
+ retryAfterSeconds?: number | undefined;
154041
+ }, unknown, z$1.core.$ZodTypeInternals<{
154042
+ traceId: string;
154043
+ recovery: {
154044
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154045
+ } | {
154046
+ action: "read_operation";
154047
+ operation: {
154048
+ kind: "command";
154049
+ serialNumber: string;
154050
+ idempotencyKey: string;
154051
+ } | {
154052
+ kind: "firmware";
154053
+ serialNumber: string;
154054
+ updateId: string;
154055
+ } | {
154056
+ kind: "bluetooth_firmware";
154057
+ deviceId: string;
154058
+ updateId: string;
154059
+ } | {
154060
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154061
+ deviceId: string;
154062
+ requestId: string;
154063
+ } | {
154064
+ kind: "support";
154065
+ requestId: string;
154066
+ };
154067
+ };
154068
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154069
+ currentRevision?: string | undefined;
154070
+ retryAfterSeconds?: number | undefined;
154071
+ }, unknown>>;
154072
+ };
154073
+ readonly conflict: {
154074
+ readonly status: 409;
154075
+ readonly data: z$1.ZodType<{
154076
+ traceId: string;
154077
+ recovery: {
154078
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154079
+ } | {
154080
+ action: "read_operation";
154081
+ operation: {
154082
+ kind: "command";
154083
+ serialNumber: string;
154084
+ idempotencyKey: string;
154085
+ } | {
154086
+ kind: "firmware";
154087
+ serialNumber: string;
154088
+ updateId: string;
154089
+ } | {
154090
+ kind: "bluetooth_firmware";
154091
+ deviceId: string;
154092
+ updateId: string;
154093
+ } | {
154094
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154095
+ deviceId: string;
154096
+ requestId: string;
154097
+ } | {
154098
+ kind: "support";
154099
+ requestId: string;
154100
+ };
154101
+ };
154102
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154103
+ currentRevision?: string | undefined;
154104
+ retryAfterSeconds?: number | undefined;
154105
+ }, unknown, z$1.core.$ZodTypeInternals<{
154106
+ traceId: string;
154107
+ recovery: {
154108
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154109
+ } | {
154110
+ action: "read_operation";
154111
+ operation: {
154112
+ kind: "command";
154113
+ serialNumber: string;
154114
+ idempotencyKey: string;
154115
+ } | {
154116
+ kind: "firmware";
154117
+ serialNumber: string;
154118
+ updateId: string;
154119
+ } | {
154120
+ kind: "bluetooth_firmware";
154121
+ deviceId: string;
154122
+ updateId: string;
154123
+ } | {
154124
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154125
+ deviceId: string;
154126
+ requestId: string;
154127
+ } | {
154128
+ kind: "support";
154129
+ requestId: string;
154130
+ };
154131
+ };
154132
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154133
+ currentRevision?: string | undefined;
154134
+ retryAfterSeconds?: number | undefined;
154135
+ }, unknown>>;
154136
+ };
154137
+ readonly rate_limited: {
154138
+ readonly status: 429;
154139
+ readonly data: z$1.ZodType<{
154140
+ traceId: string;
154141
+ recovery: {
154142
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154143
+ } | {
154144
+ action: "read_operation";
154145
+ operation: {
154146
+ kind: "command";
154147
+ serialNumber: string;
154148
+ idempotencyKey: string;
154149
+ } | {
154150
+ kind: "firmware";
154151
+ serialNumber: string;
154152
+ updateId: string;
154153
+ } | {
154154
+ kind: "bluetooth_firmware";
154155
+ deviceId: string;
154156
+ updateId: string;
154157
+ } | {
154158
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154159
+ deviceId: string;
154160
+ requestId: string;
154161
+ } | {
154162
+ kind: "support";
154163
+ requestId: string;
154164
+ };
154165
+ };
154166
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154167
+ currentRevision?: string | undefined;
154168
+ retryAfterSeconds?: number | undefined;
154169
+ }, unknown, z$1.core.$ZodTypeInternals<{
154170
+ traceId: string;
154171
+ recovery: {
154172
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154173
+ } | {
154174
+ action: "read_operation";
154175
+ operation: {
154176
+ kind: "command";
154177
+ serialNumber: string;
154178
+ idempotencyKey: string;
154179
+ } | {
154180
+ kind: "firmware";
154181
+ serialNumber: string;
154182
+ updateId: string;
154183
+ } | {
154184
+ kind: "bluetooth_firmware";
154185
+ deviceId: string;
154186
+ updateId: string;
154187
+ } | {
154188
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154189
+ deviceId: string;
154190
+ requestId: string;
154191
+ } | {
154192
+ kind: "support";
154193
+ requestId: string;
154194
+ };
154195
+ };
154196
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154197
+ currentRevision?: string | undefined;
154198
+ retryAfterSeconds?: number | undefined;
154199
+ }, unknown>>;
154200
+ };
154201
+ readonly stored_data_invalid: {
154202
+ readonly status: 503;
154203
+ readonly data: z$1.ZodType<{
154204
+ traceId: string;
154205
+ recovery: {
154206
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154207
+ } | {
154208
+ action: "read_operation";
154209
+ operation: {
154210
+ kind: "command";
154211
+ serialNumber: string;
154212
+ idempotencyKey: string;
154213
+ } | {
154214
+ kind: "firmware";
154215
+ serialNumber: string;
154216
+ updateId: string;
154217
+ } | {
154218
+ kind: "bluetooth_firmware";
154219
+ deviceId: string;
154220
+ updateId: string;
154221
+ } | {
154222
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154223
+ deviceId: string;
154224
+ requestId: string;
154225
+ } | {
154226
+ kind: "support";
154227
+ requestId: string;
154228
+ };
154229
+ };
154230
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154231
+ currentRevision?: string | undefined;
154232
+ retryAfterSeconds?: number | undefined;
154233
+ }, unknown, z$1.core.$ZodTypeInternals<{
154234
+ traceId: string;
154235
+ recovery: {
154236
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154237
+ } | {
154238
+ action: "read_operation";
154239
+ operation: {
154240
+ kind: "command";
154241
+ serialNumber: string;
154242
+ idempotencyKey: string;
154243
+ } | {
154244
+ kind: "firmware";
154245
+ serialNumber: string;
154246
+ updateId: string;
154247
+ } | {
154248
+ kind: "bluetooth_firmware";
154249
+ deviceId: string;
154250
+ updateId: string;
154251
+ } | {
154252
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154253
+ deviceId: string;
154254
+ requestId: string;
154255
+ } | {
154256
+ kind: "support";
154257
+ requestId: string;
154258
+ };
154259
+ };
154260
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154261
+ currentRevision?: string | undefined;
154262
+ retryAfterSeconds?: number | undefined;
154263
+ }, unknown>>;
154264
+ };
154265
+ readonly service_unavailable: {
154266
+ readonly status: 503;
154267
+ readonly data: z$1.ZodType<{
154268
+ traceId: string;
154269
+ recovery: {
154270
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154271
+ } | {
154272
+ action: "read_operation";
154273
+ operation: {
154274
+ kind: "command";
154275
+ serialNumber: string;
154276
+ idempotencyKey: string;
154277
+ } | {
154278
+ kind: "firmware";
154279
+ serialNumber: string;
154280
+ updateId: string;
154281
+ } | {
154282
+ kind: "bluetooth_firmware";
154283
+ deviceId: string;
154284
+ updateId: string;
154285
+ } | {
154286
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154287
+ deviceId: string;
154288
+ requestId: string;
154289
+ } | {
154290
+ kind: "support";
154291
+ requestId: string;
154292
+ };
154293
+ };
154294
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154295
+ currentRevision?: string | undefined;
154296
+ retryAfterSeconds?: number | undefined;
154297
+ }, unknown, z$1.core.$ZodTypeInternals<{
154298
+ traceId: string;
154299
+ recovery: {
154300
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154301
+ } | {
154302
+ action: "read_operation";
154303
+ operation: {
154304
+ kind: "command";
154305
+ serialNumber: string;
154306
+ idempotencyKey: string;
154307
+ } | {
154308
+ kind: "firmware";
154309
+ serialNumber: string;
154310
+ updateId: string;
154311
+ } | {
154312
+ kind: "bluetooth_firmware";
154313
+ deviceId: string;
154314
+ updateId: string;
154315
+ } | {
154316
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154317
+ deviceId: string;
154318
+ requestId: string;
154319
+ } | {
154320
+ kind: "support";
154321
+ requestId: string;
154322
+ };
154323
+ };
154324
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154325
+ currentRevision?: string | undefined;
154326
+ retryAfterSeconds?: number | undefined;
154327
+ }, unknown>>;
154328
+ };
154329
+ readonly read_unavailable: {
154330
+ readonly status: 503;
154331
+ readonly data: z$1.ZodType<{
154332
+ traceId: string;
154333
+ recovery: {
154334
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154335
+ } | {
154336
+ action: "read_operation";
154337
+ operation: {
154338
+ kind: "command";
154339
+ serialNumber: string;
154340
+ idempotencyKey: string;
154341
+ } | {
154342
+ kind: "firmware";
154343
+ serialNumber: string;
154344
+ updateId: string;
154345
+ } | {
154346
+ kind: "bluetooth_firmware";
154347
+ deviceId: string;
154348
+ updateId: string;
154349
+ } | {
154350
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154351
+ deviceId: string;
154352
+ requestId: string;
154353
+ } | {
154354
+ kind: "support";
154355
+ requestId: string;
154356
+ };
154357
+ };
154358
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154359
+ currentRevision?: string | undefined;
154360
+ retryAfterSeconds?: number | undefined;
154361
+ }, unknown, z$1.core.$ZodTypeInternals<{
154362
+ traceId: string;
154363
+ recovery: {
154364
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154365
+ } | {
154366
+ action: "read_operation";
154367
+ operation: {
154368
+ kind: "command";
154369
+ serialNumber: string;
154370
+ idempotencyKey: string;
154371
+ } | {
154372
+ kind: "firmware";
154373
+ serialNumber: string;
154374
+ updateId: string;
154375
+ } | {
154376
+ kind: "bluetooth_firmware";
154377
+ deviceId: string;
154378
+ updateId: string;
154379
+ } | {
154380
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154381
+ deviceId: string;
154382
+ requestId: string;
154383
+ } | {
154384
+ kind: "support";
154385
+ requestId: string;
154386
+ };
154387
+ };
154388
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154389
+ currentRevision?: string | undefined;
154390
+ retryAfterSeconds?: number | undefined;
154391
+ }, unknown>>;
154392
+ };
154393
+ readonly stream_unavailable: {
154394
+ readonly status: 503;
154395
+ readonly data: z$1.ZodType<{
154396
+ traceId: string;
154397
+ recovery: {
154398
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154399
+ } | {
154400
+ action: "read_operation";
154401
+ operation: {
154402
+ kind: "command";
154403
+ serialNumber: string;
154404
+ idempotencyKey: string;
154405
+ } | {
154406
+ kind: "firmware";
154407
+ serialNumber: string;
154408
+ updateId: string;
154409
+ } | {
154410
+ kind: "bluetooth_firmware";
154411
+ deviceId: string;
154412
+ updateId: string;
154413
+ } | {
154414
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154415
+ deviceId: string;
154416
+ requestId: string;
154417
+ } | {
154418
+ kind: "support";
154419
+ requestId: string;
154420
+ };
154421
+ };
154422
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154423
+ currentRevision?: string | undefined;
154424
+ retryAfterSeconds?: number | undefined;
154425
+ }, unknown, z$1.core.$ZodTypeInternals<{
154426
+ traceId: string;
154427
+ recovery: {
154428
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154429
+ } | {
154430
+ action: "read_operation";
154431
+ operation: {
154432
+ kind: "command";
154433
+ serialNumber: string;
154434
+ idempotencyKey: string;
154435
+ } | {
154436
+ kind: "firmware";
154437
+ serialNumber: string;
154438
+ updateId: string;
154439
+ } | {
154440
+ kind: "bluetooth_firmware";
154441
+ deviceId: string;
154442
+ updateId: string;
154443
+ } | {
154444
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154445
+ deviceId: string;
154446
+ requestId: string;
154447
+ } | {
154448
+ kind: "support";
154449
+ requestId: string;
154450
+ };
154451
+ };
154452
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154453
+ currentRevision?: string | undefined;
154454
+ retryAfterSeconds?: number | undefined;
154455
+ }, unknown>>;
154456
+ };
154457
+ readonly payload_too_large: {
154458
+ readonly status: 413;
154459
+ readonly data: z$1.ZodType<{
154460
+ traceId: string;
154461
+ recovery: {
154462
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154463
+ } | {
154464
+ action: "read_operation";
154465
+ operation: {
154466
+ kind: "command";
154467
+ serialNumber: string;
154468
+ idempotencyKey: string;
154469
+ } | {
154470
+ kind: "firmware";
154471
+ serialNumber: string;
154472
+ updateId: string;
154473
+ } | {
154474
+ kind: "bluetooth_firmware";
154475
+ deviceId: string;
154476
+ updateId: string;
154477
+ } | {
154478
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154479
+ deviceId: string;
154480
+ requestId: string;
154481
+ } | {
154482
+ kind: "support";
154483
+ requestId: string;
154484
+ };
154485
+ };
154486
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154487
+ currentRevision?: string | undefined;
154488
+ retryAfterSeconds?: number | undefined;
154489
+ }, unknown, z$1.core.$ZodTypeInternals<{
154490
+ traceId: string;
154491
+ recovery: {
154492
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154493
+ } | {
154494
+ action: "read_operation";
154495
+ operation: {
154496
+ kind: "command";
154497
+ serialNumber: string;
154498
+ idempotencyKey: string;
154499
+ } | {
154500
+ kind: "firmware";
154501
+ serialNumber: string;
154502
+ updateId: string;
154503
+ } | {
154504
+ kind: "bluetooth_firmware";
154505
+ deviceId: string;
154506
+ updateId: string;
154507
+ } | {
154508
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154509
+ deviceId: string;
154510
+ requestId: string;
154511
+ } | {
154512
+ kind: "support";
154513
+ requestId: string;
154514
+ };
154515
+ };
154516
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154517
+ currentRevision?: string | undefined;
154518
+ retryAfterSeconds?: number | undefined;
154519
+ }, unknown>>;
154520
+ };
154521
+ readonly request_timeout: {
154522
+ readonly status: 503;
154523
+ readonly data: z$1.ZodType<{
154524
+ traceId: string;
154525
+ recovery: {
154526
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154527
+ } | {
154528
+ action: "read_operation";
154529
+ operation: {
154530
+ kind: "command";
154531
+ serialNumber: string;
154532
+ idempotencyKey: string;
154533
+ } | {
154534
+ kind: "firmware";
154535
+ serialNumber: string;
154536
+ updateId: string;
154537
+ } | {
154538
+ kind: "bluetooth_firmware";
154539
+ deviceId: string;
154540
+ updateId: string;
154541
+ } | {
154542
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154543
+ deviceId: string;
154544
+ requestId: string;
154545
+ } | {
154546
+ kind: "support";
154547
+ requestId: string;
154548
+ };
154549
+ };
154550
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154551
+ currentRevision?: string | undefined;
154552
+ retryAfterSeconds?: number | undefined;
154553
+ }, unknown, z$1.core.$ZodTypeInternals<{
154554
+ traceId: string;
154555
+ recovery: {
154556
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154557
+ } | {
154558
+ action: "read_operation";
154559
+ operation: {
154560
+ kind: "command";
154561
+ serialNumber: string;
154562
+ idempotencyKey: string;
154563
+ } | {
154564
+ kind: "firmware";
154565
+ serialNumber: string;
154566
+ updateId: string;
154567
+ } | {
154568
+ kind: "bluetooth_firmware";
154569
+ deviceId: string;
154570
+ updateId: string;
154571
+ } | {
154572
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154573
+ deviceId: string;
154574
+ requestId: string;
154575
+ } | {
154576
+ kind: "support";
154577
+ requestId: string;
154578
+ };
154579
+ };
154580
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154581
+ currentRevision?: string | undefined;
154582
+ retryAfterSeconds?: number | undefined;
154583
+ }, unknown>>;
154584
+ };
154585
+ readonly operation_unconfirmed: {
154586
+ readonly status: 503;
154587
+ readonly data: z$1.ZodType<{
154588
+ traceId: string;
154589
+ recovery: {
154590
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154591
+ } | {
154592
+ action: "read_operation";
154593
+ operation: {
154594
+ kind: "command";
154595
+ serialNumber: string;
154596
+ idempotencyKey: string;
154597
+ } | {
154598
+ kind: "firmware";
154599
+ serialNumber: string;
154600
+ updateId: string;
154601
+ } | {
154602
+ kind: "bluetooth_firmware";
154603
+ deviceId: string;
154604
+ updateId: string;
154605
+ } | {
154606
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154607
+ deviceId: string;
154608
+ requestId: string;
154609
+ } | {
154610
+ kind: "support";
154611
+ requestId: string;
154612
+ };
154613
+ };
154614
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154615
+ currentRevision?: string | undefined;
154616
+ retryAfterSeconds?: number | undefined;
154617
+ }, unknown, z$1.core.$ZodTypeInternals<{
154618
+ traceId: string;
154619
+ recovery: {
154620
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154621
+ } | {
154622
+ action: "read_operation";
154623
+ operation: {
154624
+ kind: "command";
154625
+ serialNumber: string;
154626
+ idempotencyKey: string;
154627
+ } | {
154628
+ kind: "firmware";
154629
+ serialNumber: string;
154630
+ updateId: string;
154631
+ } | {
154632
+ kind: "bluetooth_firmware";
154633
+ deviceId: string;
154634
+ updateId: string;
154635
+ } | {
154636
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154637
+ deviceId: string;
154638
+ requestId: string;
154639
+ } | {
154640
+ kind: "support";
154641
+ requestId: string;
154642
+ };
154643
+ };
154644
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154645
+ currentRevision?: string | undefined;
154646
+ retryAfterSeconds?: number | undefined;
154647
+ }, unknown>>;
154648
+ };
154649
+ readonly directory_unavailable: {
154650
+ readonly status: 503;
154651
+ readonly data: z$1.ZodType<{
154652
+ traceId: string;
154653
+ recovery: {
154654
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154655
+ } | {
154656
+ action: "read_operation";
154657
+ operation: {
154658
+ kind: "command";
154659
+ serialNumber: string;
154660
+ idempotencyKey: string;
154661
+ } | {
154662
+ kind: "firmware";
154663
+ serialNumber: string;
154664
+ updateId: string;
154665
+ } | {
154666
+ kind: "bluetooth_firmware";
154667
+ deviceId: string;
154668
+ updateId: string;
154669
+ } | {
154670
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154671
+ deviceId: string;
154672
+ requestId: string;
154673
+ } | {
154674
+ kind: "support";
154675
+ requestId: string;
154676
+ };
154677
+ };
154678
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154679
+ currentRevision?: string | undefined;
154680
+ retryAfterSeconds?: number | undefined;
154681
+ }, unknown, z$1.core.$ZodTypeInternals<{
154682
+ traceId: string;
154683
+ recovery: {
154684
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154685
+ } | {
154686
+ action: "read_operation";
154687
+ operation: {
154688
+ kind: "command";
154689
+ serialNumber: string;
154690
+ idempotencyKey: string;
154691
+ } | {
154692
+ kind: "firmware";
154693
+ serialNumber: string;
154694
+ updateId: string;
154695
+ } | {
154696
+ kind: "bluetooth_firmware";
154697
+ deviceId: string;
154698
+ updateId: string;
154699
+ } | {
154700
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154701
+ deviceId: string;
154702
+ requestId: string;
154703
+ } | {
154704
+ kind: "support";
154705
+ requestId: string;
154706
+ };
154707
+ };
154708
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154709
+ currentRevision?: string | undefined;
154710
+ retryAfterSeconds?: number | undefined;
154711
+ }, unknown>>;
154712
+ };
154713
+ }>, Record<never, never>>;
154714
+ };
154715
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodPrefault<z$1.ZodObject<{
154716
+ filter: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[
154717
+ z$1.ZodObject<{
154718
+ by: z$1.ZodLiteral<"serialNumber">;
154719
+ value: z$1.ZodString;
154720
+ }, z$1.core.$strict>,
154721
+ z$1.ZodObject<{
154722
+ by: z$1.ZodLiteral<"imei">;
154723
+ value: z$1.ZodString;
154724
+ }, z$1.core.$strict>,
154725
+ z$1.ZodObject<{
154726
+ by: z$1.ZodLiteral<"iccid">;
154727
+ value: z$1.ZodString;
154728
+ }, z$1.core.$strict>,
154729
+ z$1.ZodObject<{
154730
+ by: z$1.ZodLiteral<"accountId">;
154731
+ value: z$1.ZodString;
154732
+ }, z$1.core.$strict>,
154733
+ z$1.ZodObject<{
154734
+ by: z$1.ZodLiteral<"subscriptionId">;
154735
+ value: z$1.ZodString;
154736
+ }, z$1.core.$strict>
154737
+ ], "by">>;
154738
+ limit: z$1.ZodDefault<z$1.ZodInt>;
154739
+ after: z$1.ZodOptional<z$1.ZodString>;
154740
+ }, z$1.core.$strict>>, z$1.ZodObject<{
154741
+ items: z$1.ZodArray<z$1.ZodObject<{
154742
+ hardware: z$1.ZodNullable<z$1.ZodObject<{
154743
+ imei: z$1.ZodNullable<z$1.ZodString>;
154744
+ iccid: z$1.ZodNullable<z$1.ZodString>;
154745
+ imsi: z$1.ZodNullable<z$1.ZodString>;
154746
+ serialNumber: z$1.ZodNullable<z$1.ZodString>;
154747
+ }, z$1.core.$strip>>;
154748
+ backend: z$1.ZodNullable<z$1.ZodString>;
154749
+ generation: z$1.ZodNullable<z$1.ZodInt>;
154750
+ bike: z$1.ZodObject<{
154751
+ revision: z$1.ZodString;
154752
+ name: z$1.ZodNullable<z$1.ZodString>;
154753
+ brand: z$1.ZodNullable<z$1.ZodString>;
154754
+ type: z$1.ZodNullable<z$1.ZodString>;
154755
+ model: z$1.ZodNullable<z$1.ZodString>;
154756
+ frameNumber: z$1.ZodNullable<z$1.ZodString>;
154757
+ url: z$1.ZodNullable<z$1.ZodString>;
154758
+ marketPrice: z$1.ZodNullable<z$1.ZodString>;
154759
+ marketPriceCurrency: z$1.ZodNullable<z$1.ZodString>;
154760
+ }, z$1.core.$strip>;
154761
+ battery: z$1.ZodDiscriminatedUnion<[
154762
+ z$1.ZodObject<{
154763
+ level: z$1.ZodNullable<z$1.ZodNumber>;
154764
+ isCharging: z$1.ZodNullable<z$1.ZodBoolean>;
154765
+ levelUpdatedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
154766
+ chargingObservedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
154767
+ observation: z$1.ZodNullable<z$1.ZodObject<{
154768
+ observedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
154769
+ receivedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
154770
+ }, z$1.core.$strip>>;
154771
+ source: z$1.ZodNullable<z$1.ZodString>;
154772
+ state: z$1.ZodLiteral<"available">;
154773
+ }, z$1.core.$strip>,
154774
+ z$1.ZodObject<{
154775
+ state: z$1.ZodLiteral<"unavailable">;
154776
+ reason: z$1.ZodEnum<{
154777
+ invalid: "invalid";
154778
+ not_observed: "not_observed";
154779
+ not_assigned: "not_assigned";
154780
+ }>;
154781
+ }, z$1.core.$strip>
154782
+ ], "state">;
154783
+ location: z$1.ZodDiscriminatedUnion<[
154784
+ z$1.ZodObject<{
154785
+ latitude: z$1.ZodNumber;
154786
+ longitude: z$1.ZodNumber;
154787
+ accuracy: z$1.ZodNullable<z$1.ZodNumber>;
154788
+ source: z$1.ZodNullable<z$1.ZodString>;
154789
+ observedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
154790
+ state: z$1.ZodLiteral<"available">;
154791
+ }, z$1.core.$strip>,
154792
+ z$1.ZodObject<{
154793
+ state: z$1.ZodLiteral<"unavailable">;
154794
+ reason: z$1.ZodEnum<{
154795
+ invalid: "invalid";
154796
+ not_observed: "not_observed";
154797
+ not_assigned: "not_assigned";
154798
+ }>;
154799
+ }, z$1.core.$strip>
154800
+ ], "state">;
154801
+ subscription: z$1.ZodDiscriminatedUnion<[
154802
+ z$1.ZodObject<{
154803
+ id: z$1.ZodString;
154804
+ activity: z$1.ZodEnum<{
154805
+ unknown: "unknown";
154806
+ active: "active";
154807
+ inactive: "inactive";
154808
+ }>;
154809
+ isDemo: z$1.ZodBoolean;
154810
+ status: z$1.ZodNullable<z$1.ZodString>;
154811
+ country: z$1.ZodNullable<z$1.ZodString>;
154812
+ endsAt: z$1.ZodNullable<z$1.ZodISODateTime>;
154813
+ state: z$1.ZodLiteral<"available">;
154814
+ }, z$1.core.$strip>,
154815
+ z$1.ZodObject<{
154816
+ state: z$1.ZodLiteral<"unavailable">;
154817
+ reason: z$1.ZodEnum<{
154818
+ invalid: "invalid";
154819
+ not_observed: "not_observed";
154820
+ not_assigned: "not_assigned";
154821
+ }>;
154822
+ }, z$1.core.$strip>
154823
+ ], "state">;
154824
+ readIssues: z$1.ZodArray<z$1.ZodObject<{
154825
+ path: z$1.ZodString;
154826
+ code: z$1.ZodLiteral<"invalid_stored_value">;
154827
+ }, z$1.core.$strip>>;
154828
+ id: z$1.ZodString;
154829
+ revision: z$1.ZodString;
154830
+ createdAt: z$1.ZodISODateTime;
154831
+ updatedAt: z$1.ZodISODateTime;
154832
+ }, z$1.core.$strip>>;
154833
+ nextAfter: z$1.ZodNullable<z$1.ZodString>;
154834
+ }, z$1.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
154835
+ readonly invalid: {
154836
+ readonly status: 400;
154837
+ readonly data: z$1.ZodType<{
154838
+ traceId: string;
154839
+ recovery: {
154840
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154841
+ } | {
154842
+ action: "read_operation";
154843
+ operation: {
154844
+ kind: "command";
154845
+ serialNumber: string;
154846
+ idempotencyKey: string;
154847
+ } | {
154848
+ kind: "firmware";
154849
+ serialNumber: string;
154850
+ updateId: string;
154851
+ } | {
154852
+ kind: "bluetooth_firmware";
154853
+ deviceId: string;
154854
+ updateId: string;
154855
+ } | {
154856
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154857
+ deviceId: string;
154858
+ requestId: string;
154859
+ } | {
154860
+ kind: "support";
154861
+ requestId: string;
154862
+ };
154863
+ };
154864
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154865
+ currentRevision?: string | undefined;
154866
+ retryAfterSeconds?: number | undefined;
154867
+ }, unknown, z$1.core.$ZodTypeInternals<{
154868
+ traceId: string;
154869
+ recovery: {
154870
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154871
+ } | {
154872
+ action: "read_operation";
154873
+ operation: {
154874
+ kind: "command";
154875
+ serialNumber: string;
154876
+ idempotencyKey: string;
154877
+ } | {
154878
+ kind: "firmware";
154879
+ serialNumber: string;
154880
+ updateId: string;
154881
+ } | {
154882
+ kind: "bluetooth_firmware";
154883
+ deviceId: string;
154884
+ updateId: string;
154885
+ } | {
154886
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154887
+ deviceId: string;
154888
+ requestId: string;
154889
+ } | {
154890
+ kind: "support";
154891
+ requestId: string;
154892
+ };
154893
+ };
154894
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154895
+ currentRevision?: string | undefined;
154896
+ retryAfterSeconds?: number | undefined;
154897
+ }, unknown>>;
154898
+ };
154899
+ readonly unauthenticated: {
154900
+ readonly status: 401;
154901
+ readonly data: z$1.ZodType<{
154902
+ traceId: string;
154903
+ recovery: {
154904
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154905
+ } | {
154906
+ action: "read_operation";
154907
+ operation: {
154908
+ kind: "command";
154909
+ serialNumber: string;
154910
+ idempotencyKey: string;
154911
+ } | {
154912
+ kind: "firmware";
154913
+ serialNumber: string;
154914
+ updateId: string;
154915
+ } | {
154916
+ kind: "bluetooth_firmware";
154917
+ deviceId: string;
154918
+ updateId: string;
154919
+ } | {
154920
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154921
+ deviceId: string;
154922
+ requestId: string;
154923
+ } | {
154924
+ kind: "support";
154925
+ requestId: string;
154926
+ };
154927
+ };
154928
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154929
+ currentRevision?: string | undefined;
154930
+ retryAfterSeconds?: number | undefined;
154931
+ }, unknown, z$1.core.$ZodTypeInternals<{
154932
+ traceId: string;
154933
+ recovery: {
154934
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154935
+ } | {
154936
+ action: "read_operation";
154937
+ operation: {
154938
+ kind: "command";
154939
+ serialNumber: string;
154940
+ idempotencyKey: string;
154941
+ } | {
154942
+ kind: "firmware";
154943
+ serialNumber: string;
154944
+ updateId: string;
154945
+ } | {
154946
+ kind: "bluetooth_firmware";
154947
+ deviceId: string;
154948
+ updateId: string;
154949
+ } | {
154950
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154951
+ deviceId: string;
154952
+ requestId: string;
154953
+ } | {
154954
+ kind: "support";
154955
+ requestId: string;
154956
+ };
154957
+ };
154958
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154959
+ currentRevision?: string | undefined;
154960
+ retryAfterSeconds?: number | undefined;
154961
+ }, unknown>>;
154962
+ };
154963
+ readonly forbidden: {
154964
+ readonly status: 403;
154965
+ readonly data: z$1.ZodType<{
154966
+ traceId: string;
154967
+ recovery: {
154968
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154969
+ } | {
154970
+ action: "read_operation";
154971
+ operation: {
154972
+ kind: "command";
154973
+ serialNumber: string;
154974
+ idempotencyKey: string;
154975
+ } | {
154976
+ kind: "firmware";
154977
+ serialNumber: string;
154978
+ updateId: string;
154979
+ } | {
154980
+ kind: "bluetooth_firmware";
154981
+ deviceId: string;
154982
+ updateId: string;
154983
+ } | {
154984
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
154985
+ deviceId: string;
154986
+ requestId: string;
154987
+ } | {
154988
+ kind: "support";
154989
+ requestId: string;
154990
+ };
154991
+ };
154992
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
154993
+ currentRevision?: string | undefined;
154994
+ retryAfterSeconds?: number | undefined;
154995
+ }, unknown, z$1.core.$ZodTypeInternals<{
154996
+ traceId: string;
154997
+ recovery: {
154998
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
154999
+ } | {
155000
+ action: "read_operation";
155001
+ operation: {
155002
+ kind: "command";
155003
+ serialNumber: string;
155004
+ idempotencyKey: string;
155005
+ } | {
155006
+ kind: "firmware";
155007
+ serialNumber: string;
155008
+ updateId: string;
155009
+ } | {
155010
+ kind: "bluetooth_firmware";
155011
+ deviceId: string;
155012
+ updateId: string;
155013
+ } | {
155014
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155015
+ deviceId: string;
155016
+ requestId: string;
155017
+ } | {
155018
+ kind: "support";
155019
+ requestId: string;
155020
+ };
155021
+ };
155022
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155023
+ currentRevision?: string | undefined;
155024
+ retryAfterSeconds?: number | undefined;
155025
+ }, unknown>>;
155026
+ };
155027
+ readonly not_found: {
155028
+ readonly status: 404;
155029
+ readonly data: z$1.ZodType<{
155030
+ traceId: string;
155031
+ recovery: {
155032
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155033
+ } | {
155034
+ action: "read_operation";
155035
+ operation: {
155036
+ kind: "command";
155037
+ serialNumber: string;
155038
+ idempotencyKey: string;
155039
+ } | {
155040
+ kind: "firmware";
155041
+ serialNumber: string;
155042
+ updateId: string;
155043
+ } | {
155044
+ kind: "bluetooth_firmware";
155045
+ deviceId: string;
155046
+ updateId: string;
155047
+ } | {
155048
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155049
+ deviceId: string;
155050
+ requestId: string;
155051
+ } | {
155052
+ kind: "support";
155053
+ requestId: string;
155054
+ };
155055
+ };
155056
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155057
+ currentRevision?: string | undefined;
155058
+ retryAfterSeconds?: number | undefined;
155059
+ }, unknown, z$1.core.$ZodTypeInternals<{
155060
+ traceId: string;
155061
+ recovery: {
155062
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155063
+ } | {
155064
+ action: "read_operation";
155065
+ operation: {
155066
+ kind: "command";
155067
+ serialNumber: string;
155068
+ idempotencyKey: string;
155069
+ } | {
155070
+ kind: "firmware";
155071
+ serialNumber: string;
155072
+ updateId: string;
155073
+ } | {
155074
+ kind: "bluetooth_firmware";
155075
+ deviceId: string;
155076
+ updateId: string;
155077
+ } | {
155078
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155079
+ deviceId: string;
155080
+ requestId: string;
155081
+ } | {
155082
+ kind: "support";
155083
+ requestId: string;
155084
+ };
155085
+ };
155086
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155087
+ currentRevision?: string | undefined;
155088
+ retryAfterSeconds?: number | undefined;
155089
+ }, unknown>>;
155090
+ };
155091
+ readonly conflict: {
155092
+ readonly status: 409;
155093
+ readonly data: z$1.ZodType<{
155094
+ traceId: string;
155095
+ recovery: {
155096
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155097
+ } | {
155098
+ action: "read_operation";
155099
+ operation: {
155100
+ kind: "command";
155101
+ serialNumber: string;
155102
+ idempotencyKey: string;
155103
+ } | {
155104
+ kind: "firmware";
155105
+ serialNumber: string;
155106
+ updateId: string;
155107
+ } | {
155108
+ kind: "bluetooth_firmware";
155109
+ deviceId: string;
155110
+ updateId: string;
155111
+ } | {
155112
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155113
+ deviceId: string;
155114
+ requestId: string;
155115
+ } | {
155116
+ kind: "support";
155117
+ requestId: string;
155118
+ };
155119
+ };
155120
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155121
+ currentRevision?: string | undefined;
155122
+ retryAfterSeconds?: number | undefined;
155123
+ }, unknown, z$1.core.$ZodTypeInternals<{
155124
+ traceId: string;
155125
+ recovery: {
155126
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155127
+ } | {
155128
+ action: "read_operation";
155129
+ operation: {
155130
+ kind: "command";
155131
+ serialNumber: string;
155132
+ idempotencyKey: string;
155133
+ } | {
155134
+ kind: "firmware";
155135
+ serialNumber: string;
155136
+ updateId: string;
155137
+ } | {
155138
+ kind: "bluetooth_firmware";
155139
+ deviceId: string;
155140
+ updateId: string;
155141
+ } | {
155142
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155143
+ deviceId: string;
155144
+ requestId: string;
155145
+ } | {
155146
+ kind: "support";
155147
+ requestId: string;
155148
+ };
155149
+ };
155150
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155151
+ currentRevision?: string | undefined;
155152
+ retryAfterSeconds?: number | undefined;
155153
+ }, unknown>>;
155154
+ };
155155
+ readonly rate_limited: {
155156
+ readonly status: 429;
155157
+ readonly data: z$1.ZodType<{
155158
+ traceId: string;
155159
+ recovery: {
155160
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155161
+ } | {
155162
+ action: "read_operation";
155163
+ operation: {
155164
+ kind: "command";
155165
+ serialNumber: string;
155166
+ idempotencyKey: string;
155167
+ } | {
155168
+ kind: "firmware";
155169
+ serialNumber: string;
155170
+ updateId: string;
155171
+ } | {
155172
+ kind: "bluetooth_firmware";
155173
+ deviceId: string;
155174
+ updateId: string;
155175
+ } | {
155176
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155177
+ deviceId: string;
155178
+ requestId: string;
155179
+ } | {
155180
+ kind: "support";
155181
+ requestId: string;
155182
+ };
155183
+ };
155184
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155185
+ currentRevision?: string | undefined;
155186
+ retryAfterSeconds?: number | undefined;
155187
+ }, unknown, z$1.core.$ZodTypeInternals<{
155188
+ traceId: string;
155189
+ recovery: {
155190
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155191
+ } | {
155192
+ action: "read_operation";
155193
+ operation: {
155194
+ kind: "command";
155195
+ serialNumber: string;
155196
+ idempotencyKey: string;
155197
+ } | {
155198
+ kind: "firmware";
155199
+ serialNumber: string;
155200
+ updateId: string;
155201
+ } | {
155202
+ kind: "bluetooth_firmware";
155203
+ deviceId: string;
155204
+ updateId: string;
155205
+ } | {
155206
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155207
+ deviceId: string;
155208
+ requestId: string;
155209
+ } | {
155210
+ kind: "support";
155211
+ requestId: string;
155212
+ };
155213
+ };
155214
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155215
+ currentRevision?: string | undefined;
155216
+ retryAfterSeconds?: number | undefined;
155217
+ }, unknown>>;
155218
+ };
155219
+ readonly stored_data_invalid: {
155220
+ readonly status: 503;
155221
+ readonly data: z$1.ZodType<{
155222
+ traceId: string;
155223
+ recovery: {
155224
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155225
+ } | {
155226
+ action: "read_operation";
155227
+ operation: {
155228
+ kind: "command";
155229
+ serialNumber: string;
155230
+ idempotencyKey: string;
155231
+ } | {
155232
+ kind: "firmware";
155233
+ serialNumber: string;
155234
+ updateId: string;
155235
+ } | {
155236
+ kind: "bluetooth_firmware";
155237
+ deviceId: string;
155238
+ updateId: string;
155239
+ } | {
155240
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155241
+ deviceId: string;
155242
+ requestId: string;
155243
+ } | {
155244
+ kind: "support";
155245
+ requestId: string;
155246
+ };
155247
+ };
155248
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155249
+ currentRevision?: string | undefined;
155250
+ retryAfterSeconds?: number | undefined;
155251
+ }, unknown, z$1.core.$ZodTypeInternals<{
155252
+ traceId: string;
155253
+ recovery: {
155254
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155255
+ } | {
155256
+ action: "read_operation";
155257
+ operation: {
155258
+ kind: "command";
155259
+ serialNumber: string;
155260
+ idempotencyKey: string;
155261
+ } | {
155262
+ kind: "firmware";
155263
+ serialNumber: string;
155264
+ updateId: string;
155265
+ } | {
155266
+ kind: "bluetooth_firmware";
155267
+ deviceId: string;
155268
+ updateId: string;
155269
+ } | {
155270
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155271
+ deviceId: string;
155272
+ requestId: string;
155273
+ } | {
155274
+ kind: "support";
155275
+ requestId: string;
155276
+ };
155277
+ };
155278
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155279
+ currentRevision?: string | undefined;
155280
+ retryAfterSeconds?: number | undefined;
155281
+ }, unknown>>;
155282
+ };
155283
+ readonly service_unavailable: {
155284
+ readonly status: 503;
155285
+ readonly data: z$1.ZodType<{
155286
+ traceId: string;
155287
+ recovery: {
155288
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155289
+ } | {
155290
+ action: "read_operation";
155291
+ operation: {
155292
+ kind: "command";
155293
+ serialNumber: string;
155294
+ idempotencyKey: string;
155295
+ } | {
155296
+ kind: "firmware";
155297
+ serialNumber: string;
155298
+ updateId: string;
155299
+ } | {
155300
+ kind: "bluetooth_firmware";
155301
+ deviceId: string;
155302
+ updateId: string;
155303
+ } | {
155304
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155305
+ deviceId: string;
155306
+ requestId: string;
155307
+ } | {
155308
+ kind: "support";
155309
+ requestId: string;
155310
+ };
155311
+ };
155312
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155313
+ currentRevision?: string | undefined;
155314
+ retryAfterSeconds?: number | undefined;
155315
+ }, unknown, z$1.core.$ZodTypeInternals<{
155316
+ traceId: string;
155317
+ recovery: {
155318
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155319
+ } | {
155320
+ action: "read_operation";
155321
+ operation: {
155322
+ kind: "command";
155323
+ serialNumber: string;
155324
+ idempotencyKey: string;
155325
+ } | {
155326
+ kind: "firmware";
155327
+ serialNumber: string;
155328
+ updateId: string;
155329
+ } | {
155330
+ kind: "bluetooth_firmware";
155331
+ deviceId: string;
155332
+ updateId: string;
155333
+ } | {
155334
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155335
+ deviceId: string;
155336
+ requestId: string;
155337
+ } | {
155338
+ kind: "support";
155339
+ requestId: string;
155340
+ };
155341
+ };
155342
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155343
+ currentRevision?: string | undefined;
155344
+ retryAfterSeconds?: number | undefined;
155345
+ }, unknown>>;
155346
+ };
155347
+ readonly read_unavailable: {
155348
+ readonly status: 503;
155349
+ readonly data: z$1.ZodType<{
155350
+ traceId: string;
155351
+ recovery: {
155352
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155353
+ } | {
155354
+ action: "read_operation";
155355
+ operation: {
155356
+ kind: "command";
155357
+ serialNumber: string;
155358
+ idempotencyKey: string;
155359
+ } | {
155360
+ kind: "firmware";
155361
+ serialNumber: string;
155362
+ updateId: string;
155363
+ } | {
155364
+ kind: "bluetooth_firmware";
155365
+ deviceId: string;
155366
+ updateId: string;
155367
+ } | {
155368
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155369
+ deviceId: string;
155370
+ requestId: string;
155371
+ } | {
155372
+ kind: "support";
155373
+ requestId: string;
155374
+ };
155375
+ };
155376
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155377
+ currentRevision?: string | undefined;
155378
+ retryAfterSeconds?: number | undefined;
155379
+ }, unknown, z$1.core.$ZodTypeInternals<{
155380
+ traceId: string;
155381
+ recovery: {
155382
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155383
+ } | {
155384
+ action: "read_operation";
155385
+ operation: {
155386
+ kind: "command";
155387
+ serialNumber: string;
155388
+ idempotencyKey: string;
155389
+ } | {
155390
+ kind: "firmware";
155391
+ serialNumber: string;
155392
+ updateId: string;
155393
+ } | {
155394
+ kind: "bluetooth_firmware";
155395
+ deviceId: string;
155396
+ updateId: string;
155397
+ } | {
155398
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155399
+ deviceId: string;
155400
+ requestId: string;
155401
+ } | {
155402
+ kind: "support";
155403
+ requestId: string;
155404
+ };
155405
+ };
155406
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155407
+ currentRevision?: string | undefined;
155408
+ retryAfterSeconds?: number | undefined;
155409
+ }, unknown>>;
155410
+ };
155411
+ readonly stream_unavailable: {
155412
+ readonly status: 503;
155413
+ readonly data: z$1.ZodType<{
155414
+ traceId: string;
155415
+ recovery: {
155416
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155417
+ } | {
155418
+ action: "read_operation";
155419
+ operation: {
155420
+ kind: "command";
155421
+ serialNumber: string;
155422
+ idempotencyKey: string;
155423
+ } | {
155424
+ kind: "firmware";
155425
+ serialNumber: string;
155426
+ updateId: string;
155427
+ } | {
155428
+ kind: "bluetooth_firmware";
155429
+ deviceId: string;
155430
+ updateId: string;
155431
+ } | {
155432
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155433
+ deviceId: string;
155434
+ requestId: string;
155435
+ } | {
155436
+ kind: "support";
155437
+ requestId: string;
155438
+ };
155439
+ };
155440
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155441
+ currentRevision?: string | undefined;
155442
+ retryAfterSeconds?: number | undefined;
155443
+ }, unknown, z$1.core.$ZodTypeInternals<{
155444
+ traceId: string;
155445
+ recovery: {
155446
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155447
+ } | {
155448
+ action: "read_operation";
155449
+ operation: {
155450
+ kind: "command";
155451
+ serialNumber: string;
155452
+ idempotencyKey: string;
155453
+ } | {
155454
+ kind: "firmware";
155455
+ serialNumber: string;
155456
+ updateId: string;
155457
+ } | {
155458
+ kind: "bluetooth_firmware";
155459
+ deviceId: string;
155460
+ updateId: string;
155461
+ } | {
155462
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155463
+ deviceId: string;
155464
+ requestId: string;
155465
+ } | {
155466
+ kind: "support";
155467
+ requestId: string;
155468
+ };
155469
+ };
155470
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155471
+ currentRevision?: string | undefined;
155472
+ retryAfterSeconds?: number | undefined;
155473
+ }, unknown>>;
155474
+ };
155475
+ readonly payload_too_large: {
155476
+ readonly status: 413;
155477
+ readonly data: z$1.ZodType<{
155478
+ traceId: string;
155479
+ recovery: {
155480
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155481
+ } | {
155482
+ action: "read_operation";
155483
+ operation: {
155484
+ kind: "command";
155485
+ serialNumber: string;
155486
+ idempotencyKey: string;
155487
+ } | {
155488
+ kind: "firmware";
155489
+ serialNumber: string;
155490
+ updateId: string;
155491
+ } | {
155492
+ kind: "bluetooth_firmware";
155493
+ deviceId: string;
155494
+ updateId: string;
155495
+ } | {
155496
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155497
+ deviceId: string;
155498
+ requestId: string;
155499
+ } | {
155500
+ kind: "support";
155501
+ requestId: string;
155502
+ };
155503
+ };
155504
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155505
+ currentRevision?: string | undefined;
155506
+ retryAfterSeconds?: number | undefined;
155507
+ }, unknown, z$1.core.$ZodTypeInternals<{
155508
+ traceId: string;
155509
+ recovery: {
155510
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155511
+ } | {
155512
+ action: "read_operation";
155513
+ operation: {
155514
+ kind: "command";
155515
+ serialNumber: string;
155516
+ idempotencyKey: string;
155517
+ } | {
155518
+ kind: "firmware";
155519
+ serialNumber: string;
155520
+ updateId: string;
155521
+ } | {
155522
+ kind: "bluetooth_firmware";
155523
+ deviceId: string;
155524
+ updateId: string;
155525
+ } | {
155526
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155527
+ deviceId: string;
155528
+ requestId: string;
155529
+ } | {
155530
+ kind: "support";
155531
+ requestId: string;
155532
+ };
155533
+ };
155534
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155535
+ currentRevision?: string | undefined;
155536
+ retryAfterSeconds?: number | undefined;
155537
+ }, unknown>>;
155538
+ };
155539
+ readonly request_timeout: {
155540
+ readonly status: 503;
155541
+ readonly data: z$1.ZodType<{
155542
+ traceId: string;
155543
+ recovery: {
155544
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155545
+ } | {
155546
+ action: "read_operation";
155547
+ operation: {
155548
+ kind: "command";
155549
+ serialNumber: string;
155550
+ idempotencyKey: string;
155551
+ } | {
155552
+ kind: "firmware";
155553
+ serialNumber: string;
155554
+ updateId: string;
155555
+ } | {
155556
+ kind: "bluetooth_firmware";
155557
+ deviceId: string;
155558
+ updateId: string;
155559
+ } | {
155560
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155561
+ deviceId: string;
155562
+ requestId: string;
155563
+ } | {
155564
+ kind: "support";
155565
+ requestId: string;
155566
+ };
155567
+ };
155568
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155569
+ currentRevision?: string | undefined;
155570
+ retryAfterSeconds?: number | undefined;
155571
+ }, unknown, z$1.core.$ZodTypeInternals<{
155572
+ traceId: string;
155573
+ recovery: {
155574
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155575
+ } | {
155576
+ action: "read_operation";
155577
+ operation: {
155578
+ kind: "command";
155579
+ serialNumber: string;
155580
+ idempotencyKey: string;
155581
+ } | {
155582
+ kind: "firmware";
155583
+ serialNumber: string;
155584
+ updateId: string;
155585
+ } | {
155586
+ kind: "bluetooth_firmware";
155587
+ deviceId: string;
155588
+ updateId: string;
155589
+ } | {
155590
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155591
+ deviceId: string;
155592
+ requestId: string;
155593
+ } | {
155594
+ kind: "support";
155595
+ requestId: string;
155596
+ };
155597
+ };
155598
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155599
+ currentRevision?: string | undefined;
155600
+ retryAfterSeconds?: number | undefined;
155601
+ }, unknown>>;
155602
+ };
155603
+ readonly operation_unconfirmed: {
155604
+ readonly status: 503;
155605
+ readonly data: z$1.ZodType<{
155606
+ traceId: string;
155607
+ recovery: {
155608
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155609
+ } | {
155610
+ action: "read_operation";
155611
+ operation: {
155612
+ kind: "command";
155613
+ serialNumber: string;
155614
+ idempotencyKey: string;
155615
+ } | {
155616
+ kind: "firmware";
155617
+ serialNumber: string;
155618
+ updateId: string;
155619
+ } | {
155620
+ kind: "bluetooth_firmware";
155621
+ deviceId: string;
155622
+ updateId: string;
155623
+ } | {
155624
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155625
+ deviceId: string;
155626
+ requestId: string;
155627
+ } | {
155628
+ kind: "support";
155629
+ requestId: string;
155630
+ };
155631
+ };
155632
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155633
+ currentRevision?: string | undefined;
155634
+ retryAfterSeconds?: number | undefined;
155635
+ }, unknown, z$1.core.$ZodTypeInternals<{
155636
+ traceId: string;
155637
+ recovery: {
155638
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155639
+ } | {
155640
+ action: "read_operation";
155641
+ operation: {
155642
+ kind: "command";
155643
+ serialNumber: string;
155644
+ idempotencyKey: string;
155645
+ } | {
155646
+ kind: "firmware";
155647
+ serialNumber: string;
155648
+ updateId: string;
155649
+ } | {
155650
+ kind: "bluetooth_firmware";
155651
+ deviceId: string;
155652
+ updateId: string;
155653
+ } | {
155654
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155655
+ deviceId: string;
155656
+ requestId: string;
155657
+ } | {
155658
+ kind: "support";
155659
+ requestId: string;
155660
+ };
155661
+ };
155662
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155663
+ currentRevision?: string | undefined;
155664
+ retryAfterSeconds?: number | undefined;
155665
+ }, unknown>>;
155666
+ };
155667
+ readonly directory_unavailable: {
155668
+ readonly status: 503;
155669
+ readonly data: z$1.ZodType<{
155670
+ traceId: string;
155671
+ recovery: {
155672
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155673
+ } | {
155674
+ action: "read_operation";
155675
+ operation: {
155676
+ kind: "command";
155677
+ serialNumber: string;
155678
+ idempotencyKey: string;
155679
+ } | {
155680
+ kind: "firmware";
155681
+ serialNumber: string;
155682
+ updateId: string;
155683
+ } | {
155684
+ kind: "bluetooth_firmware";
155685
+ deviceId: string;
155686
+ updateId: string;
155687
+ } | {
155688
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155689
+ deviceId: string;
155690
+ requestId: string;
155691
+ } | {
155692
+ kind: "support";
155693
+ requestId: string;
155694
+ };
155695
+ };
155696
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155697
+ currentRevision?: string | undefined;
155698
+ retryAfterSeconds?: number | undefined;
155699
+ }, unknown, z$1.core.$ZodTypeInternals<{
155700
+ traceId: string;
155701
+ recovery: {
155702
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155703
+ } | {
155704
+ action: "read_operation";
155705
+ operation: {
155706
+ kind: "command";
155707
+ serialNumber: string;
155708
+ idempotencyKey: string;
155709
+ } | {
155710
+ kind: "firmware";
155711
+ serialNumber: string;
155712
+ updateId: string;
155713
+ } | {
155714
+ kind: "bluetooth_firmware";
155715
+ deviceId: string;
155716
+ updateId: string;
155717
+ } | {
155718
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155719
+ deviceId: string;
155720
+ requestId: string;
155721
+ } | {
155722
+ kind: "support";
155723
+ requestId: string;
155724
+ };
155725
+ };
155726
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155727
+ currentRevision?: string | undefined;
155728
+ retryAfterSeconds?: number | undefined;
155729
+ }, unknown>>;
155730
+ };
155731
+ }>, Record<never, never>>;
155732
+ getDetails: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
155733
+ deviceId: z$1.ZodString;
155734
+ }, z$1.core.$strict>, z$1.ZodObject<{
155735
+ id: z$1.ZodString;
155736
+ firmware: z$1.ZodNullable<z$1.ZodObject<{
155737
+ lte: z$1.ZodNullable<z$1.ZodString>;
155738
+ bluetooth: z$1.ZodNullable<z$1.ZodString>;
155739
+ battery: z$1.ZodNullable<z$1.ZodString>;
155740
+ modem: z$1.ZodNullable<z$1.ZodString>;
155741
+ mtk: z$1.ZodNullable<z$1.ZodString>;
155742
+ ti: z$1.ZodNullable<z$1.ZodString>;
155743
+ buildNumber: z$1.ZodNullable<z$1.ZodInt>;
155744
+ }, z$1.core.$strip>>;
155745
+ subscription: z$1.ZodDiscriminatedUnion<[
155746
+ z$1.ZodObject<{
155747
+ id: z$1.ZodString;
155748
+ activity: z$1.ZodEnum<{
155749
+ unknown: "unknown";
155750
+ active: "active";
155751
+ inactive: "inactive";
155752
+ }>;
155753
+ isDemo: z$1.ZodBoolean;
155754
+ status: z$1.ZodNullable<z$1.ZodString>;
155755
+ country: z$1.ZodNullable<z$1.ZodString>;
155756
+ endsAt: z$1.ZodNullable<z$1.ZodISODateTime>;
155757
+ state: z$1.ZodLiteral<"available">;
155758
+ }, z$1.core.$strip>,
155759
+ z$1.ZodObject<{
155760
+ state: z$1.ZodLiteral<"unavailable">;
155761
+ reason: z$1.ZodEnum<{
155762
+ invalid: "invalid";
155763
+ not_observed: "not_observed";
155764
+ not_assigned: "not_assigned";
155765
+ }>;
155766
+ }, z$1.core.$strip>
155767
+ ], "state">;
155768
+ createdAt: z$1.ZodISODateTime;
155769
+ revision: z$1.ZodString;
155770
+ battery: z$1.ZodDiscriminatedUnion<[
155771
+ z$1.ZodObject<{
155772
+ level: z$1.ZodNullable<z$1.ZodNumber>;
155773
+ isCharging: z$1.ZodNullable<z$1.ZodBoolean>;
155774
+ levelUpdatedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
155775
+ chargingObservedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
155776
+ observation: z$1.ZodNullable<z$1.ZodObject<{
155777
+ observedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
155778
+ receivedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
155779
+ }, z$1.core.$strip>>;
155780
+ source: z$1.ZodNullable<z$1.ZodString>;
155781
+ state: z$1.ZodLiteral<"available">;
155782
+ }, z$1.core.$strip>,
155783
+ z$1.ZodObject<{
155784
+ state: z$1.ZodLiteral<"unavailable">;
155785
+ reason: z$1.ZodEnum<{
155786
+ invalid: "invalid";
155787
+ not_observed: "not_observed";
155788
+ not_assigned: "not_assigned";
155789
+ }>;
155790
+ }, z$1.core.$strip>
155791
+ ], "state">;
155792
+ generation: z$1.ZodNullable<z$1.ZodInt>;
155793
+ bike: z$1.ZodObject<{
155794
+ revision: z$1.ZodString;
155795
+ name: z$1.ZodNullable<z$1.ZodString>;
155796
+ brand: z$1.ZodNullable<z$1.ZodString>;
155797
+ type: z$1.ZodNullable<z$1.ZodString>;
155798
+ model: z$1.ZodNullable<z$1.ZodString>;
155799
+ frameNumber: z$1.ZodNullable<z$1.ZodString>;
155800
+ url: z$1.ZodNullable<z$1.ZodString>;
155801
+ marketPrice: z$1.ZodNullable<z$1.ZodString>;
155802
+ marketPriceCurrency: z$1.ZodNullable<z$1.ZodString>;
155803
+ }, z$1.core.$strip>;
155804
+ location: z$1.ZodDiscriminatedUnion<[
155805
+ z$1.ZodObject<{
155806
+ latitude: z$1.ZodNumber;
155807
+ longitude: z$1.ZodNumber;
155808
+ accuracy: z$1.ZodNullable<z$1.ZodNumber>;
155809
+ source: z$1.ZodNullable<z$1.ZodString>;
155810
+ observedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
155811
+ state: z$1.ZodLiteral<"available">;
155812
+ }, z$1.core.$strip>,
155813
+ z$1.ZodObject<{
155814
+ state: z$1.ZodLiteral<"unavailable">;
155815
+ reason: z$1.ZodEnum<{
155816
+ invalid: "invalid";
155817
+ not_observed: "not_observed";
155818
+ not_assigned: "not_assigned";
155819
+ }>;
155820
+ }, z$1.core.$strip>
155821
+ ], "state">;
155822
+ readIssues: z$1.ZodArray<z$1.ZodObject<{
155823
+ path: z$1.ZodString;
155824
+ code: z$1.ZodLiteral<"invalid_stored_value">;
155825
+ }, z$1.core.$strip>>;
155826
+ updatedAt: z$1.ZodISODateTime;
155827
+ hardware: z$1.ZodNullable<z$1.ZodObject<{
155828
+ imei: z$1.ZodNullable<z$1.ZodString>;
155829
+ iccid: z$1.ZodNullable<z$1.ZodString>;
155830
+ imsi: z$1.ZodNullable<z$1.ZodString>;
155831
+ serialNumber: z$1.ZodNullable<z$1.ZodString>;
155832
+ }, z$1.core.$strip>>;
155833
+ backend: z$1.ZodNullable<z$1.ZodString>;
155834
+ configuration: z$1.ZodNullable<z$1.ZodObject<{
155835
+ movementAlerts: z$1.ZodNullable<z$1.ZodBoolean>;
155836
+ isBlacklisted: z$1.ZodNullable<z$1.ZodBoolean>;
155837
+ }, z$1.core.$strip>>;
155838
+ membership: z$1.ZodObject<{
155839
+ revision: z$1.ZodString;
155840
+ memberCount: z$1.ZodInt;
155841
+ }, z$1.core.$strip>;
155842
+ }, z$1.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
155843
+ readonly invalid: {
155844
+ readonly status: 400;
155845
+ readonly data: z$1.ZodType<{
155846
+ traceId: string;
155847
+ recovery: {
155848
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155849
+ } | {
155850
+ action: "read_operation";
155851
+ operation: {
155852
+ kind: "command";
155853
+ serialNumber: string;
155854
+ idempotencyKey: string;
155855
+ } | {
155856
+ kind: "firmware";
155857
+ serialNumber: string;
155858
+ updateId: string;
155859
+ } | {
155860
+ kind: "bluetooth_firmware";
155861
+ deviceId: string;
155862
+ updateId: string;
155863
+ } | {
155864
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155865
+ deviceId: string;
155866
+ requestId: string;
155867
+ } | {
155868
+ kind: "support";
155869
+ requestId: string;
155870
+ };
155871
+ };
155872
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155873
+ currentRevision?: string | undefined;
155874
+ retryAfterSeconds?: number | undefined;
155875
+ }, unknown, z$1.core.$ZodTypeInternals<{
155876
+ traceId: string;
155877
+ recovery: {
155878
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155879
+ } | {
155880
+ action: "read_operation";
155881
+ operation: {
155882
+ kind: "command";
155883
+ serialNumber: string;
155884
+ idempotencyKey: string;
155885
+ } | {
155886
+ kind: "firmware";
155887
+ serialNumber: string;
155888
+ updateId: string;
155889
+ } | {
155890
+ kind: "bluetooth_firmware";
155891
+ deviceId: string;
155892
+ updateId: string;
155893
+ } | {
155894
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155895
+ deviceId: string;
155896
+ requestId: string;
155897
+ } | {
155898
+ kind: "support";
155899
+ requestId: string;
155900
+ };
155901
+ };
155902
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155903
+ currentRevision?: string | undefined;
155904
+ retryAfterSeconds?: number | undefined;
155905
+ }, unknown>>;
155906
+ };
155907
+ readonly unauthenticated: {
155908
+ readonly status: 401;
155909
+ readonly data: z$1.ZodType<{
155910
+ traceId: string;
155911
+ recovery: {
155912
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155913
+ } | {
155914
+ action: "read_operation";
155915
+ operation: {
155916
+ kind: "command";
155917
+ serialNumber: string;
155918
+ idempotencyKey: string;
155919
+ } | {
155920
+ kind: "firmware";
155921
+ serialNumber: string;
155922
+ updateId: string;
155923
+ } | {
155924
+ kind: "bluetooth_firmware";
155925
+ deviceId: string;
155926
+ updateId: string;
155927
+ } | {
155928
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155929
+ deviceId: string;
155930
+ requestId: string;
155931
+ } | {
155932
+ kind: "support";
155933
+ requestId: string;
155934
+ };
155935
+ };
155936
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155937
+ currentRevision?: string | undefined;
155938
+ retryAfterSeconds?: number | undefined;
155939
+ }, unknown, z$1.core.$ZodTypeInternals<{
155940
+ traceId: string;
155941
+ recovery: {
155942
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155943
+ } | {
155944
+ action: "read_operation";
155945
+ operation: {
155946
+ kind: "command";
155947
+ serialNumber: string;
155948
+ idempotencyKey: string;
155949
+ } | {
155950
+ kind: "firmware";
155951
+ serialNumber: string;
155952
+ updateId: string;
155953
+ } | {
155954
+ kind: "bluetooth_firmware";
155955
+ deviceId: string;
155956
+ updateId: string;
155957
+ } | {
155958
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155959
+ deviceId: string;
155960
+ requestId: string;
155961
+ } | {
155962
+ kind: "support";
155963
+ requestId: string;
155964
+ };
155965
+ };
155966
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
155967
+ currentRevision?: string | undefined;
155968
+ retryAfterSeconds?: number | undefined;
155969
+ }, unknown>>;
155970
+ };
155971
+ readonly forbidden: {
155972
+ readonly status: 403;
155973
+ readonly data: z$1.ZodType<{
155974
+ traceId: string;
155975
+ recovery: {
155976
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
155977
+ } | {
155978
+ action: "read_operation";
155979
+ operation: {
155980
+ kind: "command";
155981
+ serialNumber: string;
155982
+ idempotencyKey: string;
155983
+ } | {
155984
+ kind: "firmware";
155985
+ serialNumber: string;
155986
+ updateId: string;
155987
+ } | {
155988
+ kind: "bluetooth_firmware";
155989
+ deviceId: string;
155990
+ updateId: string;
155991
+ } | {
155992
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
155993
+ deviceId: string;
155994
+ requestId: string;
155995
+ } | {
155996
+ kind: "support";
155997
+ requestId: string;
155998
+ };
155999
+ };
156000
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156001
+ currentRevision?: string | undefined;
156002
+ retryAfterSeconds?: number | undefined;
156003
+ }, unknown, z$1.core.$ZodTypeInternals<{
156004
+ traceId: string;
156005
+ recovery: {
156006
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156007
+ } | {
156008
+ action: "read_operation";
156009
+ operation: {
156010
+ kind: "command";
156011
+ serialNumber: string;
156012
+ idempotencyKey: string;
156013
+ } | {
156014
+ kind: "firmware";
156015
+ serialNumber: string;
156016
+ updateId: string;
156017
+ } | {
156018
+ kind: "bluetooth_firmware";
156019
+ deviceId: string;
156020
+ updateId: string;
156021
+ } | {
156022
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156023
+ deviceId: string;
156024
+ requestId: string;
156025
+ } | {
156026
+ kind: "support";
156027
+ requestId: string;
156028
+ };
156029
+ };
156030
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156031
+ currentRevision?: string | undefined;
156032
+ retryAfterSeconds?: number | undefined;
156033
+ }, unknown>>;
156034
+ };
156035
+ readonly not_found: {
156036
+ readonly status: 404;
156037
+ readonly data: z$1.ZodType<{
156038
+ traceId: string;
156039
+ recovery: {
156040
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156041
+ } | {
156042
+ action: "read_operation";
156043
+ operation: {
156044
+ kind: "command";
156045
+ serialNumber: string;
156046
+ idempotencyKey: string;
156047
+ } | {
156048
+ kind: "firmware";
156049
+ serialNumber: string;
156050
+ updateId: string;
156051
+ } | {
156052
+ kind: "bluetooth_firmware";
156053
+ deviceId: string;
156054
+ updateId: string;
156055
+ } | {
156056
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156057
+ deviceId: string;
156058
+ requestId: string;
156059
+ } | {
156060
+ kind: "support";
156061
+ requestId: string;
156062
+ };
156063
+ };
156064
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156065
+ currentRevision?: string | undefined;
156066
+ retryAfterSeconds?: number | undefined;
156067
+ }, unknown, z$1.core.$ZodTypeInternals<{
156068
+ traceId: string;
156069
+ recovery: {
156070
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156071
+ } | {
156072
+ action: "read_operation";
156073
+ operation: {
156074
+ kind: "command";
156075
+ serialNumber: string;
156076
+ idempotencyKey: string;
156077
+ } | {
156078
+ kind: "firmware";
156079
+ serialNumber: string;
156080
+ updateId: string;
156081
+ } | {
156082
+ kind: "bluetooth_firmware";
156083
+ deviceId: string;
156084
+ updateId: string;
156085
+ } | {
156086
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156087
+ deviceId: string;
156088
+ requestId: string;
156089
+ } | {
156090
+ kind: "support";
156091
+ requestId: string;
156092
+ };
156093
+ };
156094
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156095
+ currentRevision?: string | undefined;
156096
+ retryAfterSeconds?: number | undefined;
156097
+ }, unknown>>;
156098
+ };
156099
+ readonly conflict: {
156100
+ readonly status: 409;
156101
+ readonly data: z$1.ZodType<{
156102
+ traceId: string;
156103
+ recovery: {
156104
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156105
+ } | {
156106
+ action: "read_operation";
156107
+ operation: {
156108
+ kind: "command";
156109
+ serialNumber: string;
156110
+ idempotencyKey: string;
156111
+ } | {
156112
+ kind: "firmware";
156113
+ serialNumber: string;
156114
+ updateId: string;
156115
+ } | {
156116
+ kind: "bluetooth_firmware";
156117
+ deviceId: string;
156118
+ updateId: string;
156119
+ } | {
156120
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156121
+ deviceId: string;
156122
+ requestId: string;
156123
+ } | {
156124
+ kind: "support";
156125
+ requestId: string;
156126
+ };
156127
+ };
156128
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156129
+ currentRevision?: string | undefined;
156130
+ retryAfterSeconds?: number | undefined;
156131
+ }, unknown, z$1.core.$ZodTypeInternals<{
156132
+ traceId: string;
156133
+ recovery: {
156134
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156135
+ } | {
156136
+ action: "read_operation";
156137
+ operation: {
156138
+ kind: "command";
156139
+ serialNumber: string;
156140
+ idempotencyKey: string;
156141
+ } | {
156142
+ kind: "firmware";
156143
+ serialNumber: string;
156144
+ updateId: string;
156145
+ } | {
156146
+ kind: "bluetooth_firmware";
156147
+ deviceId: string;
156148
+ updateId: string;
156149
+ } | {
156150
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156151
+ deviceId: string;
156152
+ requestId: string;
156153
+ } | {
156154
+ kind: "support";
156155
+ requestId: string;
156156
+ };
156157
+ };
156158
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156159
+ currentRevision?: string | undefined;
156160
+ retryAfterSeconds?: number | undefined;
156161
+ }, unknown>>;
156162
+ };
156163
+ readonly rate_limited: {
156164
+ readonly status: 429;
156165
+ readonly data: z$1.ZodType<{
156166
+ traceId: string;
156167
+ recovery: {
156168
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156169
+ } | {
156170
+ action: "read_operation";
156171
+ operation: {
156172
+ kind: "command";
156173
+ serialNumber: string;
156174
+ idempotencyKey: string;
156175
+ } | {
156176
+ kind: "firmware";
156177
+ serialNumber: string;
156178
+ updateId: string;
156179
+ } | {
156180
+ kind: "bluetooth_firmware";
156181
+ deviceId: string;
156182
+ updateId: string;
156183
+ } | {
156184
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156185
+ deviceId: string;
156186
+ requestId: string;
156187
+ } | {
156188
+ kind: "support";
156189
+ requestId: string;
156190
+ };
156191
+ };
156192
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156193
+ currentRevision?: string | undefined;
156194
+ retryAfterSeconds?: number | undefined;
156195
+ }, unknown, z$1.core.$ZodTypeInternals<{
156196
+ traceId: string;
156197
+ recovery: {
156198
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156199
+ } | {
156200
+ action: "read_operation";
156201
+ operation: {
156202
+ kind: "command";
156203
+ serialNumber: string;
156204
+ idempotencyKey: string;
156205
+ } | {
156206
+ kind: "firmware";
156207
+ serialNumber: string;
156208
+ updateId: string;
156209
+ } | {
156210
+ kind: "bluetooth_firmware";
156211
+ deviceId: string;
156212
+ updateId: string;
156213
+ } | {
156214
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156215
+ deviceId: string;
156216
+ requestId: string;
156217
+ } | {
156218
+ kind: "support";
156219
+ requestId: string;
156220
+ };
156221
+ };
156222
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156223
+ currentRevision?: string | undefined;
156224
+ retryAfterSeconds?: number | undefined;
156225
+ }, unknown>>;
156226
+ };
156227
+ readonly stored_data_invalid: {
156228
+ readonly status: 503;
156229
+ readonly data: z$1.ZodType<{
156230
+ traceId: string;
156231
+ recovery: {
156232
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156233
+ } | {
156234
+ action: "read_operation";
156235
+ operation: {
156236
+ kind: "command";
156237
+ serialNumber: string;
156238
+ idempotencyKey: string;
156239
+ } | {
156240
+ kind: "firmware";
156241
+ serialNumber: string;
156242
+ updateId: string;
156243
+ } | {
156244
+ kind: "bluetooth_firmware";
156245
+ deviceId: string;
156246
+ updateId: string;
156247
+ } | {
156248
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156249
+ deviceId: string;
156250
+ requestId: string;
156251
+ } | {
156252
+ kind: "support";
156253
+ requestId: string;
156254
+ };
156255
+ };
156256
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156257
+ currentRevision?: string | undefined;
156258
+ retryAfterSeconds?: number | undefined;
156259
+ }, unknown, z$1.core.$ZodTypeInternals<{
156260
+ traceId: string;
156261
+ recovery: {
156262
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156263
+ } | {
156264
+ action: "read_operation";
156265
+ operation: {
156266
+ kind: "command";
156267
+ serialNumber: string;
156268
+ idempotencyKey: string;
156269
+ } | {
156270
+ kind: "firmware";
156271
+ serialNumber: string;
156272
+ updateId: string;
156273
+ } | {
156274
+ kind: "bluetooth_firmware";
156275
+ deviceId: string;
156276
+ updateId: string;
156277
+ } | {
156278
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156279
+ deviceId: string;
156280
+ requestId: string;
156281
+ } | {
156282
+ kind: "support";
156283
+ requestId: string;
156284
+ };
156285
+ };
156286
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156287
+ currentRevision?: string | undefined;
156288
+ retryAfterSeconds?: number | undefined;
156289
+ }, unknown>>;
156290
+ };
156291
+ readonly service_unavailable: {
156292
+ readonly status: 503;
156293
+ readonly data: z$1.ZodType<{
156294
+ traceId: string;
156295
+ recovery: {
156296
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156297
+ } | {
156298
+ action: "read_operation";
156299
+ operation: {
156300
+ kind: "command";
156301
+ serialNumber: string;
156302
+ idempotencyKey: string;
156303
+ } | {
156304
+ kind: "firmware";
156305
+ serialNumber: string;
156306
+ updateId: string;
156307
+ } | {
156308
+ kind: "bluetooth_firmware";
156309
+ deviceId: string;
156310
+ updateId: string;
156311
+ } | {
156312
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156313
+ deviceId: string;
156314
+ requestId: string;
156315
+ } | {
156316
+ kind: "support";
156317
+ requestId: string;
156318
+ };
156319
+ };
156320
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156321
+ currentRevision?: string | undefined;
156322
+ retryAfterSeconds?: number | undefined;
156323
+ }, unknown, z$1.core.$ZodTypeInternals<{
156324
+ traceId: string;
156325
+ recovery: {
156326
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156327
+ } | {
156328
+ action: "read_operation";
156329
+ operation: {
156330
+ kind: "command";
156331
+ serialNumber: string;
156332
+ idempotencyKey: string;
156333
+ } | {
156334
+ kind: "firmware";
156335
+ serialNumber: string;
156336
+ updateId: string;
156337
+ } | {
156338
+ kind: "bluetooth_firmware";
156339
+ deviceId: string;
156340
+ updateId: string;
156341
+ } | {
156342
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156343
+ deviceId: string;
156344
+ requestId: string;
156345
+ } | {
156346
+ kind: "support";
156347
+ requestId: string;
156348
+ };
156349
+ };
156350
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156351
+ currentRevision?: string | undefined;
156352
+ retryAfterSeconds?: number | undefined;
156353
+ }, unknown>>;
156354
+ };
156355
+ readonly read_unavailable: {
156356
+ readonly status: 503;
156357
+ readonly data: z$1.ZodType<{
156358
+ traceId: string;
156359
+ recovery: {
156360
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156361
+ } | {
156362
+ action: "read_operation";
156363
+ operation: {
156364
+ kind: "command";
156365
+ serialNumber: string;
156366
+ idempotencyKey: string;
156367
+ } | {
156368
+ kind: "firmware";
156369
+ serialNumber: string;
156370
+ updateId: string;
156371
+ } | {
156372
+ kind: "bluetooth_firmware";
156373
+ deviceId: string;
156374
+ updateId: string;
156375
+ } | {
156376
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156377
+ deviceId: string;
156378
+ requestId: string;
156379
+ } | {
156380
+ kind: "support";
156381
+ requestId: string;
156382
+ };
156383
+ };
156384
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156385
+ currentRevision?: string | undefined;
156386
+ retryAfterSeconds?: number | undefined;
156387
+ }, unknown, z$1.core.$ZodTypeInternals<{
156388
+ traceId: string;
156389
+ recovery: {
156390
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156391
+ } | {
156392
+ action: "read_operation";
156393
+ operation: {
156394
+ kind: "command";
156395
+ serialNumber: string;
156396
+ idempotencyKey: string;
156397
+ } | {
156398
+ kind: "firmware";
156399
+ serialNumber: string;
156400
+ updateId: string;
156401
+ } | {
156402
+ kind: "bluetooth_firmware";
156403
+ deviceId: string;
156404
+ updateId: string;
156405
+ } | {
156406
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156407
+ deviceId: string;
156408
+ requestId: string;
156409
+ } | {
156410
+ kind: "support";
156411
+ requestId: string;
156412
+ };
156413
+ };
156414
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156415
+ currentRevision?: string | undefined;
156416
+ retryAfterSeconds?: number | undefined;
156417
+ }, unknown>>;
156418
+ };
156419
+ readonly stream_unavailable: {
156420
+ readonly status: 503;
156421
+ readonly data: z$1.ZodType<{
156422
+ traceId: string;
156423
+ recovery: {
156424
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156425
+ } | {
156426
+ action: "read_operation";
156427
+ operation: {
156428
+ kind: "command";
156429
+ serialNumber: string;
156430
+ idempotencyKey: string;
156431
+ } | {
156432
+ kind: "firmware";
156433
+ serialNumber: string;
156434
+ updateId: string;
156435
+ } | {
156436
+ kind: "bluetooth_firmware";
156437
+ deviceId: string;
156438
+ updateId: string;
156439
+ } | {
156440
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156441
+ deviceId: string;
156442
+ requestId: string;
156443
+ } | {
156444
+ kind: "support";
156445
+ requestId: string;
156446
+ };
156447
+ };
156448
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156449
+ currentRevision?: string | undefined;
156450
+ retryAfterSeconds?: number | undefined;
156451
+ }, unknown, z$1.core.$ZodTypeInternals<{
156452
+ traceId: string;
156453
+ recovery: {
156454
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156455
+ } | {
156456
+ action: "read_operation";
156457
+ operation: {
156458
+ kind: "command";
156459
+ serialNumber: string;
156460
+ idempotencyKey: string;
156461
+ } | {
156462
+ kind: "firmware";
156463
+ serialNumber: string;
156464
+ updateId: string;
156465
+ } | {
156466
+ kind: "bluetooth_firmware";
156467
+ deviceId: string;
156468
+ updateId: string;
156469
+ } | {
156470
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156471
+ deviceId: string;
156472
+ requestId: string;
156473
+ } | {
156474
+ kind: "support";
156475
+ requestId: string;
156476
+ };
156477
+ };
156478
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156479
+ currentRevision?: string | undefined;
156480
+ retryAfterSeconds?: number | undefined;
156481
+ }, unknown>>;
156482
+ };
156483
+ readonly payload_too_large: {
156484
+ readonly status: 413;
156485
+ readonly data: z$1.ZodType<{
156486
+ traceId: string;
156487
+ recovery: {
156488
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156489
+ } | {
156490
+ action: "read_operation";
156491
+ operation: {
156492
+ kind: "command";
156493
+ serialNumber: string;
156494
+ idempotencyKey: string;
156495
+ } | {
156496
+ kind: "firmware";
156497
+ serialNumber: string;
156498
+ updateId: string;
156499
+ } | {
156500
+ kind: "bluetooth_firmware";
156501
+ deviceId: string;
156502
+ updateId: string;
156503
+ } | {
156504
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156505
+ deviceId: string;
156506
+ requestId: string;
156507
+ } | {
156508
+ kind: "support";
156509
+ requestId: string;
156510
+ };
156511
+ };
156512
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156513
+ currentRevision?: string | undefined;
156514
+ retryAfterSeconds?: number | undefined;
156515
+ }, unknown, z$1.core.$ZodTypeInternals<{
156516
+ traceId: string;
156517
+ recovery: {
156518
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156519
+ } | {
156520
+ action: "read_operation";
156521
+ operation: {
156522
+ kind: "command";
156523
+ serialNumber: string;
156524
+ idempotencyKey: string;
156525
+ } | {
156526
+ kind: "firmware";
156527
+ serialNumber: string;
156528
+ updateId: string;
156529
+ } | {
156530
+ kind: "bluetooth_firmware";
156531
+ deviceId: string;
156532
+ updateId: string;
156533
+ } | {
156534
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156535
+ deviceId: string;
156536
+ requestId: string;
156537
+ } | {
156538
+ kind: "support";
156539
+ requestId: string;
156540
+ };
156541
+ };
156542
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156543
+ currentRevision?: string | undefined;
156544
+ retryAfterSeconds?: number | undefined;
156545
+ }, unknown>>;
156546
+ };
156547
+ readonly request_timeout: {
156548
+ readonly status: 503;
156549
+ readonly data: z$1.ZodType<{
156550
+ traceId: string;
156551
+ recovery: {
156552
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156553
+ } | {
156554
+ action: "read_operation";
156555
+ operation: {
156556
+ kind: "command";
156557
+ serialNumber: string;
156558
+ idempotencyKey: string;
156559
+ } | {
156560
+ kind: "firmware";
156561
+ serialNumber: string;
156562
+ updateId: string;
156563
+ } | {
156564
+ kind: "bluetooth_firmware";
156565
+ deviceId: string;
156566
+ updateId: string;
156567
+ } | {
156568
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156569
+ deviceId: string;
156570
+ requestId: string;
156571
+ } | {
156572
+ kind: "support";
156573
+ requestId: string;
156574
+ };
156575
+ };
156576
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156577
+ currentRevision?: string | undefined;
156578
+ retryAfterSeconds?: number | undefined;
156579
+ }, unknown, z$1.core.$ZodTypeInternals<{
156580
+ traceId: string;
156581
+ recovery: {
156582
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156583
+ } | {
156584
+ action: "read_operation";
156585
+ operation: {
156586
+ kind: "command";
156587
+ serialNumber: string;
156588
+ idempotencyKey: string;
156589
+ } | {
156590
+ kind: "firmware";
156591
+ serialNumber: string;
156592
+ updateId: string;
156593
+ } | {
156594
+ kind: "bluetooth_firmware";
156595
+ deviceId: string;
156596
+ updateId: string;
156597
+ } | {
156598
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156599
+ deviceId: string;
156600
+ requestId: string;
156601
+ } | {
156602
+ kind: "support";
156603
+ requestId: string;
156604
+ };
156605
+ };
156606
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156607
+ currentRevision?: string | undefined;
156608
+ retryAfterSeconds?: number | undefined;
156609
+ }, unknown>>;
156610
+ };
156611
+ readonly operation_unconfirmed: {
156612
+ readonly status: 503;
156613
+ readonly data: z$1.ZodType<{
156614
+ traceId: string;
156615
+ recovery: {
156616
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156617
+ } | {
156618
+ action: "read_operation";
156619
+ operation: {
156620
+ kind: "command";
156621
+ serialNumber: string;
156622
+ idempotencyKey: string;
156623
+ } | {
156624
+ kind: "firmware";
156625
+ serialNumber: string;
156626
+ updateId: string;
156627
+ } | {
156628
+ kind: "bluetooth_firmware";
156629
+ deviceId: string;
156630
+ updateId: string;
156631
+ } | {
156632
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156633
+ deviceId: string;
156634
+ requestId: string;
156635
+ } | {
156636
+ kind: "support";
156637
+ requestId: string;
156638
+ };
156639
+ };
156640
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156641
+ currentRevision?: string | undefined;
156642
+ retryAfterSeconds?: number | undefined;
156643
+ }, unknown, z$1.core.$ZodTypeInternals<{
156644
+ traceId: string;
156645
+ recovery: {
156646
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156647
+ } | {
156648
+ action: "read_operation";
156649
+ operation: {
156650
+ kind: "command";
156651
+ serialNumber: string;
156652
+ idempotencyKey: string;
156653
+ } | {
156654
+ kind: "firmware";
156655
+ serialNumber: string;
156656
+ updateId: string;
156657
+ } | {
156658
+ kind: "bluetooth_firmware";
156659
+ deviceId: string;
156660
+ updateId: string;
156661
+ } | {
156662
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156663
+ deviceId: string;
156664
+ requestId: string;
156665
+ } | {
156666
+ kind: "support";
156667
+ requestId: string;
156668
+ };
156669
+ };
156670
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156671
+ currentRevision?: string | undefined;
156672
+ retryAfterSeconds?: number | undefined;
156673
+ }, unknown>>;
156674
+ };
156675
+ readonly directory_unavailable: {
156676
+ readonly status: 503;
156677
+ readonly data: z$1.ZodType<{
156678
+ traceId: string;
156679
+ recovery: {
156680
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156681
+ } | {
156682
+ action: "read_operation";
156683
+ operation: {
156684
+ kind: "command";
156685
+ serialNumber: string;
156686
+ idempotencyKey: string;
156687
+ } | {
156688
+ kind: "firmware";
156689
+ serialNumber: string;
156690
+ updateId: string;
156691
+ } | {
156692
+ kind: "bluetooth_firmware";
156693
+ deviceId: string;
156694
+ updateId: string;
156695
+ } | {
156696
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156697
+ deviceId: string;
156698
+ requestId: string;
156699
+ } | {
156700
+ kind: "support";
156701
+ requestId: string;
156702
+ };
156703
+ };
156704
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156705
+ currentRevision?: string | undefined;
156706
+ retryAfterSeconds?: number | undefined;
156707
+ }, unknown, z$1.core.$ZodTypeInternals<{
156708
+ traceId: string;
156709
+ recovery: {
156710
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
156711
+ } | {
156712
+ action: "read_operation";
156713
+ operation: {
156714
+ kind: "command";
156715
+ serialNumber: string;
156716
+ idempotencyKey: string;
156717
+ } | {
156718
+ kind: "firmware";
156719
+ serialNumber: string;
156720
+ updateId: string;
156721
+ } | {
156722
+ kind: "bluetooth_firmware";
156723
+ deviceId: string;
156724
+ updateId: string;
156725
+ } | {
156726
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
156727
+ deviceId: string;
156728
+ requestId: string;
156729
+ } | {
156730
+ kind: "support";
156731
+ requestId: string;
156732
+ };
156733
+ };
156734
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
156735
+ currentRevision?: string | undefined;
156736
+ retryAfterSeconds?: number | undefined;
156737
+ }, unknown>>;
156738
+ };
156739
+ }>, Record<never, never>>;
156740
+ watchDetails: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
156741
+ deviceId: z$1.ZodString;
156742
+ }, z$1.core.$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
156743
+ id: string;
156744
+ firmware: {
156745
+ lte: string | null;
156746
+ bluetooth: string | null;
156747
+ battery: string | null;
156748
+ modem: string | null;
156749
+ mtk: string | null;
156750
+ ti: string | null;
156751
+ buildNumber: number | null;
156752
+ } | null;
156753
+ subscription: {
156754
+ state: "unavailable";
156755
+ reason: "invalid" | "not_observed" | "not_assigned";
156756
+ } | {
156757
+ id: string;
156758
+ activity: "unknown" | "active" | "inactive";
156759
+ isDemo: boolean;
156760
+ status: string | null;
156761
+ country: string | null;
156762
+ endsAt: string | null;
156763
+ state: "available";
156764
+ };
156765
+ createdAt: string;
156766
+ revision: string;
156767
+ battery: {
156768
+ state: "unavailable";
156769
+ reason: "invalid" | "not_observed" | "not_assigned";
156770
+ } | {
156771
+ level: number | null;
156772
+ isCharging: boolean | null;
156773
+ levelUpdatedAt: string | null;
156774
+ chargingObservedAt: string | null;
156775
+ observation: {
156776
+ observedAt: string | null;
156777
+ receivedAt: string | null;
156778
+ } | null;
156779
+ source: string | null;
156780
+ state: "available";
156781
+ };
156782
+ generation: number | null;
156783
+ bike: {
156784
+ revision: string;
156785
+ name: string | null;
156786
+ brand: string | null;
156787
+ type: string | null;
156788
+ model: string | null;
156789
+ frameNumber: string | null;
156790
+ url: string | null;
156791
+ marketPrice: string | null;
156792
+ marketPriceCurrency: string | null;
156793
+ };
156794
+ location: {
156795
+ state: "unavailable";
156796
+ reason: "invalid" | "not_observed" | "not_assigned";
156797
+ } | {
156798
+ latitude: number;
156799
+ longitude: number;
156800
+ accuracy: number | null;
156801
+ source: string | null;
156802
+ observedAt: string | null;
156803
+ state: "available";
156804
+ };
156805
+ readIssues: {
156806
+ path: string;
156807
+ code: "invalid_stored_value";
156808
+ }[];
156809
+ updatedAt: string;
156810
+ hardware: {
156811
+ imei: string | null;
156812
+ iccid: string | null;
156813
+ imsi: string | null;
156814
+ serialNumber: string | null;
156815
+ } | null;
156816
+ backend: string | null;
156817
+ configuration: {
156818
+ movementAlerts: boolean | null;
156819
+ isBlacklisted: boolean | null;
156820
+ } | null;
156821
+ membership: {
156822
+ revision: string;
156823
+ memberCount: number;
156824
+ };
156825
+ }, unknown, void>, import("@orpc/shared").AsyncIteratorClass<{
156826
+ id: string;
156827
+ firmware: {
156828
+ lte: string | null;
156829
+ bluetooth: string | null;
156830
+ battery: string | null;
156831
+ modem: string | null;
156832
+ mtk: string | null;
156833
+ ti: string | null;
156834
+ buildNumber: number | null;
156835
+ } | null;
156836
+ subscription: {
156837
+ state: "unavailable";
156838
+ reason: "invalid" | "not_observed" | "not_assigned";
156839
+ } | {
156840
+ id: string;
156841
+ activity: "unknown" | "active" | "inactive";
156842
+ isDemo: boolean;
156843
+ status: string | null;
156844
+ country: string | null;
156845
+ endsAt: string | null;
156846
+ state: "available";
156847
+ };
156848
+ createdAt: string;
156849
+ revision: string;
156850
+ battery: {
156851
+ state: "unavailable";
156852
+ reason: "invalid" | "not_observed" | "not_assigned";
156853
+ } | {
156854
+ level: number | null;
156855
+ isCharging: boolean | null;
156856
+ levelUpdatedAt: string | null;
156857
+ chargingObservedAt: string | null;
156858
+ observation: {
156859
+ observedAt: string | null;
156860
+ receivedAt: string | null;
156861
+ } | null;
156862
+ source: string | null;
156863
+ state: "available";
156864
+ };
156865
+ generation: number | null;
156866
+ bike: {
156867
+ revision: string;
156868
+ name: string | null;
156869
+ brand: string | null;
156870
+ type: string | null;
156871
+ model: string | null;
156872
+ frameNumber: string | null;
156873
+ url: string | null;
156874
+ marketPrice: string | null;
156875
+ marketPriceCurrency: string | null;
156876
+ };
156877
+ location: {
156878
+ state: "unavailable";
156879
+ reason: "invalid" | "not_observed" | "not_assigned";
156880
+ } | {
156881
+ latitude: number;
156882
+ longitude: number;
156883
+ accuracy: number | null;
156884
+ source: string | null;
156885
+ observedAt: string | null;
156886
+ state: "available";
156887
+ };
156888
+ readIssues: {
156889
+ path: string;
156890
+ code: "invalid_stored_value";
156891
+ }[];
156892
+ updatedAt: string;
156893
+ hardware: {
156894
+ imei: string | null;
156895
+ iccid: string | null;
156896
+ imsi: string | null;
156897
+ serialNumber: string | null;
156898
+ } | null;
156899
+ backend: string | null;
156900
+ configuration: {
156901
+ movementAlerts: boolean | null;
156902
+ isBlacklisted: boolean | null;
156903
+ } | null;
156904
+ membership: {
156905
+ revision: string;
156906
+ memberCount: number;
156907
+ };
156908
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
153689
156909
  readonly invalid: {
153690
156910
  readonly status: 400;
153691
156911
  readonly data: z$1.ZodType<{
@@ -162219,6 +165439,9 @@ export declare const staffContract: {
162219
165439
  aws: typeof awsContract;
162220
165440
  };
162221
165441
  export type StaffClient = ContractRouterClient<typeof staffContract>;
165442
+ export type StaffTrackerDetails = z$1.infer<typeof staffTrackerDetails>;
165443
+ export type StaffTrackerMemberPageInput = z$1.output<typeof staffTrackerMemberPageInput>;
165444
+ export type StaffTrackerMemberPage = z$1.infer<typeof staffTrackerMemberPage>;
162222
165445
  export type StaffTracker = z$1.infer<typeof staffTracker>;
162223
165446
  export type StaffTrackerSummary = z$1.infer<typeof staffTrackerSummary>;
162224
165447
  export type StaffTrackerPage = z$1.infer<typeof staffTrackerPage>;