@bikefinder/staff-sdk 0.8.2 → 0.9.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/index.d.ts CHANGED
@@ -63493,6 +63493,3742 @@ export type FavoritePage = z$1.infer<typeof favoritePage>;
63493
63493
  export type FavoritePageInput = z$1.input<typeof timePageInput>;
63494
63494
  export type FavoriteWrite = z$1.infer<typeof favoriteWrite>;
63495
63495
  export type FavoriteInput = z$1.infer<typeof favoriteInput>;
63496
+ export declare const firmwareCatalogFamily: z$1.ZodEnum<{
63497
+ "gen2-lte": "gen2-lte";
63498
+ "gen2-battery": "gen2-battery";
63499
+ }>;
63500
+ export declare const firmwareCatalogCapability = "firmware-catalog-v1";
63501
+ export declare const maximumFirmwareUploadBytes: number;
63502
+ export declare const catalogFirmwareVersion: z$1.ZodString;
63503
+ export declare const firmwareCatalogUploadInput: z$1.ZodObject<{
63504
+ family: z$1.ZodEnum<{
63505
+ "gen2-lte": "gen2-lte";
63506
+ "gen2-battery": "gen2-battery";
63507
+ }>;
63508
+ version: z$1.ZodString;
63509
+ notes: z$1.ZodString;
63510
+ sourceRevision: z$1.ZodNullable<z$1.ZodString>;
63511
+ buildFingerprint: z$1.ZodNullable<z$1.ZodString>;
63512
+ size: z$1.ZodInt;
63513
+ sha256: z$1.ZodString;
63514
+ }, z$1.core.$strict>;
63515
+ export declare const firmwareCatalogPublishInput: z$1.ZodObject<{
63516
+ family: z$1.ZodEnum<{
63517
+ "gen2-lte": "gen2-lte";
63518
+ "gen2-battery": "gen2-battery";
63519
+ }>;
63520
+ version: z$1.ZodString;
63521
+ notes: z$1.ZodString;
63522
+ sourceRevision: z$1.ZodNullable<z$1.ZodString>;
63523
+ buildFingerprint: z$1.ZodNullable<z$1.ZodString>;
63524
+ size: z$1.ZodInt;
63525
+ sha256: z$1.ZodString;
63526
+ file: z$1.ZodFile;
63527
+ }, z$1.core.$strict>;
63528
+ export declare const firmwareCatalogRelease: z$1.ZodObject<{
63529
+ id: z$1.ZodString;
63530
+ family: z$1.ZodEnum<{
63531
+ "gen2-lte": "gen2-lte";
63532
+ "gen2-battery": "gen2-battery";
63533
+ }>;
63534
+ version: z$1.ZodString;
63535
+ revision: z$1.ZodString;
63536
+ size: z$1.ZodInt;
63537
+ sha256: z$1.ZodString;
63538
+ notes: z$1.ZodString;
63539
+ sourceRevision: z$1.ZodNullable<z$1.ZodString>;
63540
+ buildFingerprint: z$1.ZodNullable<z$1.ZodString>;
63541
+ downloadUrl: z$1.ZodURL;
63542
+ availableForUpdates: z$1.ZodBoolean;
63543
+ }, z$1.core.$strip>;
63544
+ export declare const firmwareCatalogInput: z$1.ZodObject<{
63545
+ id: z$1.ZodString;
63546
+ }, z$1.core.$strict>;
63547
+ export declare const firmwareCatalogContract: {
63548
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
63549
+ family: z$1.ZodEnum<{
63550
+ "gen2-lte": "gen2-lte";
63551
+ "gen2-battery": "gen2-battery";
63552
+ }>;
63553
+ limit: z$1.ZodDefault<z$1.ZodInt>;
63554
+ after: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
63555
+ }, z$1.core.$strict>, z$1.ZodObject<{
63556
+ items: z$1.ZodArray<z$1.ZodObject<{
63557
+ id: z$1.ZodString;
63558
+ family: z$1.ZodEnum<{
63559
+ "gen2-lte": "gen2-lte";
63560
+ "gen2-battery": "gen2-battery";
63561
+ }>;
63562
+ version: z$1.ZodString;
63563
+ revision: z$1.ZodString;
63564
+ size: z$1.ZodInt;
63565
+ sha256: z$1.ZodString;
63566
+ notes: z$1.ZodString;
63567
+ sourceRevision: z$1.ZodNullable<z$1.ZodString>;
63568
+ buildFingerprint: z$1.ZodNullable<z$1.ZodString>;
63569
+ downloadUrl: z$1.ZodURL;
63570
+ availableForUpdates: z$1.ZodBoolean;
63571
+ }, z$1.core.$strip>>;
63572
+ nextAfter: z$1.ZodNullable<z$1.ZodString>;
63573
+ }, z$1.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
63574
+ readonly invalid: {
63575
+ readonly status: 400;
63576
+ readonly data: z$1.ZodType<{
63577
+ traceId: string;
63578
+ recovery: {
63579
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63580
+ } | {
63581
+ action: "read_operation";
63582
+ operation: {
63583
+ kind: "command";
63584
+ serialNumber: string;
63585
+ idempotencyKey: string;
63586
+ } | {
63587
+ kind: "firmware";
63588
+ serialNumber: string;
63589
+ updateId: string;
63590
+ } | {
63591
+ kind: "bluetooth_firmware";
63592
+ deviceId: string;
63593
+ updateId: string;
63594
+ } | {
63595
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63596
+ deviceId: string;
63597
+ requestId: string;
63598
+ } | {
63599
+ kind: "support";
63600
+ requestId: string;
63601
+ };
63602
+ };
63603
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63604
+ currentRevision?: string | undefined;
63605
+ retryAfterSeconds?: number | undefined;
63606
+ }, unknown, z$1.core.$ZodTypeInternals<{
63607
+ traceId: string;
63608
+ recovery: {
63609
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63610
+ } | {
63611
+ action: "read_operation";
63612
+ operation: {
63613
+ kind: "command";
63614
+ serialNumber: string;
63615
+ idempotencyKey: string;
63616
+ } | {
63617
+ kind: "firmware";
63618
+ serialNumber: string;
63619
+ updateId: string;
63620
+ } | {
63621
+ kind: "bluetooth_firmware";
63622
+ deviceId: string;
63623
+ updateId: string;
63624
+ } | {
63625
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63626
+ deviceId: string;
63627
+ requestId: string;
63628
+ } | {
63629
+ kind: "support";
63630
+ requestId: string;
63631
+ };
63632
+ };
63633
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63634
+ currentRevision?: string | undefined;
63635
+ retryAfterSeconds?: number | undefined;
63636
+ }, unknown>>;
63637
+ };
63638
+ readonly unauthenticated: {
63639
+ readonly status: 401;
63640
+ readonly data: z$1.ZodType<{
63641
+ traceId: string;
63642
+ recovery: {
63643
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63644
+ } | {
63645
+ action: "read_operation";
63646
+ operation: {
63647
+ kind: "command";
63648
+ serialNumber: string;
63649
+ idempotencyKey: string;
63650
+ } | {
63651
+ kind: "firmware";
63652
+ serialNumber: string;
63653
+ updateId: string;
63654
+ } | {
63655
+ kind: "bluetooth_firmware";
63656
+ deviceId: string;
63657
+ updateId: string;
63658
+ } | {
63659
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63660
+ deviceId: string;
63661
+ requestId: string;
63662
+ } | {
63663
+ kind: "support";
63664
+ requestId: string;
63665
+ };
63666
+ };
63667
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63668
+ currentRevision?: string | undefined;
63669
+ retryAfterSeconds?: number | undefined;
63670
+ }, unknown, z$1.core.$ZodTypeInternals<{
63671
+ traceId: string;
63672
+ recovery: {
63673
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63674
+ } | {
63675
+ action: "read_operation";
63676
+ operation: {
63677
+ kind: "command";
63678
+ serialNumber: string;
63679
+ idempotencyKey: string;
63680
+ } | {
63681
+ kind: "firmware";
63682
+ serialNumber: string;
63683
+ updateId: string;
63684
+ } | {
63685
+ kind: "bluetooth_firmware";
63686
+ deviceId: string;
63687
+ updateId: string;
63688
+ } | {
63689
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63690
+ deviceId: string;
63691
+ requestId: string;
63692
+ } | {
63693
+ kind: "support";
63694
+ requestId: string;
63695
+ };
63696
+ };
63697
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63698
+ currentRevision?: string | undefined;
63699
+ retryAfterSeconds?: number | undefined;
63700
+ }, unknown>>;
63701
+ };
63702
+ readonly forbidden: {
63703
+ readonly status: 403;
63704
+ readonly data: z$1.ZodType<{
63705
+ traceId: string;
63706
+ recovery: {
63707
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63708
+ } | {
63709
+ action: "read_operation";
63710
+ operation: {
63711
+ kind: "command";
63712
+ serialNumber: string;
63713
+ idempotencyKey: string;
63714
+ } | {
63715
+ kind: "firmware";
63716
+ serialNumber: string;
63717
+ updateId: string;
63718
+ } | {
63719
+ kind: "bluetooth_firmware";
63720
+ deviceId: string;
63721
+ updateId: string;
63722
+ } | {
63723
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63724
+ deviceId: string;
63725
+ requestId: string;
63726
+ } | {
63727
+ kind: "support";
63728
+ requestId: string;
63729
+ };
63730
+ };
63731
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63732
+ currentRevision?: string | undefined;
63733
+ retryAfterSeconds?: number | undefined;
63734
+ }, unknown, z$1.core.$ZodTypeInternals<{
63735
+ traceId: string;
63736
+ recovery: {
63737
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63738
+ } | {
63739
+ action: "read_operation";
63740
+ operation: {
63741
+ kind: "command";
63742
+ serialNumber: string;
63743
+ idempotencyKey: string;
63744
+ } | {
63745
+ kind: "firmware";
63746
+ serialNumber: string;
63747
+ updateId: string;
63748
+ } | {
63749
+ kind: "bluetooth_firmware";
63750
+ deviceId: string;
63751
+ updateId: string;
63752
+ } | {
63753
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63754
+ deviceId: string;
63755
+ requestId: string;
63756
+ } | {
63757
+ kind: "support";
63758
+ requestId: string;
63759
+ };
63760
+ };
63761
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63762
+ currentRevision?: string | undefined;
63763
+ retryAfterSeconds?: number | undefined;
63764
+ }, unknown>>;
63765
+ };
63766
+ readonly not_found: {
63767
+ readonly status: 404;
63768
+ readonly data: z$1.ZodType<{
63769
+ traceId: string;
63770
+ recovery: {
63771
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63772
+ } | {
63773
+ action: "read_operation";
63774
+ operation: {
63775
+ kind: "command";
63776
+ serialNumber: string;
63777
+ idempotencyKey: string;
63778
+ } | {
63779
+ kind: "firmware";
63780
+ serialNumber: string;
63781
+ updateId: string;
63782
+ } | {
63783
+ kind: "bluetooth_firmware";
63784
+ deviceId: string;
63785
+ updateId: string;
63786
+ } | {
63787
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63788
+ deviceId: string;
63789
+ requestId: string;
63790
+ } | {
63791
+ kind: "support";
63792
+ requestId: string;
63793
+ };
63794
+ };
63795
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63796
+ currentRevision?: string | undefined;
63797
+ retryAfterSeconds?: number | undefined;
63798
+ }, unknown, z$1.core.$ZodTypeInternals<{
63799
+ traceId: string;
63800
+ recovery: {
63801
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63802
+ } | {
63803
+ action: "read_operation";
63804
+ operation: {
63805
+ kind: "command";
63806
+ serialNumber: string;
63807
+ idempotencyKey: string;
63808
+ } | {
63809
+ kind: "firmware";
63810
+ serialNumber: string;
63811
+ updateId: string;
63812
+ } | {
63813
+ kind: "bluetooth_firmware";
63814
+ deviceId: string;
63815
+ updateId: string;
63816
+ } | {
63817
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63818
+ deviceId: string;
63819
+ requestId: string;
63820
+ } | {
63821
+ kind: "support";
63822
+ requestId: string;
63823
+ };
63824
+ };
63825
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63826
+ currentRevision?: string | undefined;
63827
+ retryAfterSeconds?: number | undefined;
63828
+ }, unknown>>;
63829
+ };
63830
+ readonly conflict: {
63831
+ readonly status: 409;
63832
+ readonly data: z$1.ZodType<{
63833
+ traceId: string;
63834
+ recovery: {
63835
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63836
+ } | {
63837
+ action: "read_operation";
63838
+ operation: {
63839
+ kind: "command";
63840
+ serialNumber: string;
63841
+ idempotencyKey: string;
63842
+ } | {
63843
+ kind: "firmware";
63844
+ serialNumber: string;
63845
+ updateId: string;
63846
+ } | {
63847
+ kind: "bluetooth_firmware";
63848
+ deviceId: string;
63849
+ updateId: string;
63850
+ } | {
63851
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63852
+ deviceId: string;
63853
+ requestId: string;
63854
+ } | {
63855
+ kind: "support";
63856
+ requestId: string;
63857
+ };
63858
+ };
63859
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63860
+ currentRevision?: string | undefined;
63861
+ retryAfterSeconds?: number | undefined;
63862
+ }, unknown, z$1.core.$ZodTypeInternals<{
63863
+ traceId: string;
63864
+ recovery: {
63865
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63866
+ } | {
63867
+ action: "read_operation";
63868
+ operation: {
63869
+ kind: "command";
63870
+ serialNumber: string;
63871
+ idempotencyKey: string;
63872
+ } | {
63873
+ kind: "firmware";
63874
+ serialNumber: string;
63875
+ updateId: string;
63876
+ } | {
63877
+ kind: "bluetooth_firmware";
63878
+ deviceId: string;
63879
+ updateId: string;
63880
+ } | {
63881
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63882
+ deviceId: string;
63883
+ requestId: string;
63884
+ } | {
63885
+ kind: "support";
63886
+ requestId: string;
63887
+ };
63888
+ };
63889
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63890
+ currentRevision?: string | undefined;
63891
+ retryAfterSeconds?: number | undefined;
63892
+ }, unknown>>;
63893
+ };
63894
+ readonly rate_limited: {
63895
+ readonly status: 429;
63896
+ readonly data: z$1.ZodType<{
63897
+ traceId: string;
63898
+ recovery: {
63899
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63900
+ } | {
63901
+ action: "read_operation";
63902
+ operation: {
63903
+ kind: "command";
63904
+ serialNumber: string;
63905
+ idempotencyKey: string;
63906
+ } | {
63907
+ kind: "firmware";
63908
+ serialNumber: string;
63909
+ updateId: string;
63910
+ } | {
63911
+ kind: "bluetooth_firmware";
63912
+ deviceId: string;
63913
+ updateId: string;
63914
+ } | {
63915
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63916
+ deviceId: string;
63917
+ requestId: string;
63918
+ } | {
63919
+ kind: "support";
63920
+ requestId: string;
63921
+ };
63922
+ };
63923
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63924
+ currentRevision?: string | undefined;
63925
+ retryAfterSeconds?: number | undefined;
63926
+ }, unknown, z$1.core.$ZodTypeInternals<{
63927
+ traceId: string;
63928
+ recovery: {
63929
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63930
+ } | {
63931
+ action: "read_operation";
63932
+ operation: {
63933
+ kind: "command";
63934
+ serialNumber: string;
63935
+ idempotencyKey: string;
63936
+ } | {
63937
+ kind: "firmware";
63938
+ serialNumber: string;
63939
+ updateId: string;
63940
+ } | {
63941
+ kind: "bluetooth_firmware";
63942
+ deviceId: string;
63943
+ updateId: string;
63944
+ } | {
63945
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63946
+ deviceId: string;
63947
+ requestId: string;
63948
+ } | {
63949
+ kind: "support";
63950
+ requestId: string;
63951
+ };
63952
+ };
63953
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63954
+ currentRevision?: string | undefined;
63955
+ retryAfterSeconds?: number | undefined;
63956
+ }, unknown>>;
63957
+ };
63958
+ readonly stored_data_invalid: {
63959
+ readonly status: 503;
63960
+ readonly data: z$1.ZodType<{
63961
+ traceId: string;
63962
+ recovery: {
63963
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63964
+ } | {
63965
+ action: "read_operation";
63966
+ operation: {
63967
+ kind: "command";
63968
+ serialNumber: string;
63969
+ idempotencyKey: string;
63970
+ } | {
63971
+ kind: "firmware";
63972
+ serialNumber: string;
63973
+ updateId: string;
63974
+ } | {
63975
+ kind: "bluetooth_firmware";
63976
+ deviceId: string;
63977
+ updateId: string;
63978
+ } | {
63979
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63980
+ deviceId: string;
63981
+ requestId: string;
63982
+ } | {
63983
+ kind: "support";
63984
+ requestId: string;
63985
+ };
63986
+ };
63987
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63988
+ currentRevision?: string | undefined;
63989
+ retryAfterSeconds?: number | undefined;
63990
+ }, unknown, z$1.core.$ZodTypeInternals<{
63991
+ traceId: string;
63992
+ recovery: {
63993
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63994
+ } | {
63995
+ action: "read_operation";
63996
+ operation: {
63997
+ kind: "command";
63998
+ serialNumber: string;
63999
+ idempotencyKey: string;
64000
+ } | {
64001
+ kind: "firmware";
64002
+ serialNumber: string;
64003
+ updateId: string;
64004
+ } | {
64005
+ kind: "bluetooth_firmware";
64006
+ deviceId: string;
64007
+ updateId: string;
64008
+ } | {
64009
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64010
+ deviceId: string;
64011
+ requestId: string;
64012
+ } | {
64013
+ kind: "support";
64014
+ requestId: string;
64015
+ };
64016
+ };
64017
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64018
+ currentRevision?: string | undefined;
64019
+ retryAfterSeconds?: number | undefined;
64020
+ }, unknown>>;
64021
+ };
64022
+ readonly service_unavailable: {
64023
+ readonly status: 503;
64024
+ readonly data: z$1.ZodType<{
64025
+ traceId: string;
64026
+ recovery: {
64027
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64028
+ } | {
64029
+ action: "read_operation";
64030
+ operation: {
64031
+ kind: "command";
64032
+ serialNumber: string;
64033
+ idempotencyKey: string;
64034
+ } | {
64035
+ kind: "firmware";
64036
+ serialNumber: string;
64037
+ updateId: string;
64038
+ } | {
64039
+ kind: "bluetooth_firmware";
64040
+ deviceId: string;
64041
+ updateId: string;
64042
+ } | {
64043
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64044
+ deviceId: string;
64045
+ requestId: string;
64046
+ } | {
64047
+ kind: "support";
64048
+ requestId: string;
64049
+ };
64050
+ };
64051
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64052
+ currentRevision?: string | undefined;
64053
+ retryAfterSeconds?: number | undefined;
64054
+ }, unknown, z$1.core.$ZodTypeInternals<{
64055
+ traceId: string;
64056
+ recovery: {
64057
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64058
+ } | {
64059
+ action: "read_operation";
64060
+ operation: {
64061
+ kind: "command";
64062
+ serialNumber: string;
64063
+ idempotencyKey: string;
64064
+ } | {
64065
+ kind: "firmware";
64066
+ serialNumber: string;
64067
+ updateId: string;
64068
+ } | {
64069
+ kind: "bluetooth_firmware";
64070
+ deviceId: string;
64071
+ updateId: string;
64072
+ } | {
64073
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64074
+ deviceId: string;
64075
+ requestId: string;
64076
+ } | {
64077
+ kind: "support";
64078
+ requestId: string;
64079
+ };
64080
+ };
64081
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64082
+ currentRevision?: string | undefined;
64083
+ retryAfterSeconds?: number | undefined;
64084
+ }, unknown>>;
64085
+ };
64086
+ readonly read_unavailable: {
64087
+ readonly status: 503;
64088
+ readonly data: z$1.ZodType<{
64089
+ traceId: string;
64090
+ recovery: {
64091
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64092
+ } | {
64093
+ action: "read_operation";
64094
+ operation: {
64095
+ kind: "command";
64096
+ serialNumber: string;
64097
+ idempotencyKey: string;
64098
+ } | {
64099
+ kind: "firmware";
64100
+ serialNumber: string;
64101
+ updateId: string;
64102
+ } | {
64103
+ kind: "bluetooth_firmware";
64104
+ deviceId: string;
64105
+ updateId: string;
64106
+ } | {
64107
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64108
+ deviceId: string;
64109
+ requestId: string;
64110
+ } | {
64111
+ kind: "support";
64112
+ requestId: string;
64113
+ };
64114
+ };
64115
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64116
+ currentRevision?: string | undefined;
64117
+ retryAfterSeconds?: number | undefined;
64118
+ }, unknown, z$1.core.$ZodTypeInternals<{
64119
+ traceId: string;
64120
+ recovery: {
64121
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64122
+ } | {
64123
+ action: "read_operation";
64124
+ operation: {
64125
+ kind: "command";
64126
+ serialNumber: string;
64127
+ idempotencyKey: string;
64128
+ } | {
64129
+ kind: "firmware";
64130
+ serialNumber: string;
64131
+ updateId: string;
64132
+ } | {
64133
+ kind: "bluetooth_firmware";
64134
+ deviceId: string;
64135
+ updateId: string;
64136
+ } | {
64137
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64138
+ deviceId: string;
64139
+ requestId: string;
64140
+ } | {
64141
+ kind: "support";
64142
+ requestId: string;
64143
+ };
64144
+ };
64145
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64146
+ currentRevision?: string | undefined;
64147
+ retryAfterSeconds?: number | undefined;
64148
+ }, unknown>>;
64149
+ };
64150
+ readonly stream_unavailable: {
64151
+ readonly status: 503;
64152
+ readonly data: z$1.ZodType<{
64153
+ traceId: string;
64154
+ recovery: {
64155
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64156
+ } | {
64157
+ action: "read_operation";
64158
+ operation: {
64159
+ kind: "command";
64160
+ serialNumber: string;
64161
+ idempotencyKey: string;
64162
+ } | {
64163
+ kind: "firmware";
64164
+ serialNumber: string;
64165
+ updateId: string;
64166
+ } | {
64167
+ kind: "bluetooth_firmware";
64168
+ deviceId: string;
64169
+ updateId: string;
64170
+ } | {
64171
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64172
+ deviceId: string;
64173
+ requestId: string;
64174
+ } | {
64175
+ kind: "support";
64176
+ requestId: string;
64177
+ };
64178
+ };
64179
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64180
+ currentRevision?: string | undefined;
64181
+ retryAfterSeconds?: number | undefined;
64182
+ }, unknown, z$1.core.$ZodTypeInternals<{
64183
+ traceId: string;
64184
+ recovery: {
64185
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64186
+ } | {
64187
+ action: "read_operation";
64188
+ operation: {
64189
+ kind: "command";
64190
+ serialNumber: string;
64191
+ idempotencyKey: string;
64192
+ } | {
64193
+ kind: "firmware";
64194
+ serialNumber: string;
64195
+ updateId: string;
64196
+ } | {
64197
+ kind: "bluetooth_firmware";
64198
+ deviceId: string;
64199
+ updateId: string;
64200
+ } | {
64201
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64202
+ deviceId: string;
64203
+ requestId: string;
64204
+ } | {
64205
+ kind: "support";
64206
+ requestId: string;
64207
+ };
64208
+ };
64209
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64210
+ currentRevision?: string | undefined;
64211
+ retryAfterSeconds?: number | undefined;
64212
+ }, unknown>>;
64213
+ };
64214
+ readonly payload_too_large: {
64215
+ readonly status: 413;
64216
+ readonly data: z$1.ZodType<{
64217
+ traceId: string;
64218
+ recovery: {
64219
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64220
+ } | {
64221
+ action: "read_operation";
64222
+ operation: {
64223
+ kind: "command";
64224
+ serialNumber: string;
64225
+ idempotencyKey: string;
64226
+ } | {
64227
+ kind: "firmware";
64228
+ serialNumber: string;
64229
+ updateId: string;
64230
+ } | {
64231
+ kind: "bluetooth_firmware";
64232
+ deviceId: string;
64233
+ updateId: string;
64234
+ } | {
64235
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64236
+ deviceId: string;
64237
+ requestId: string;
64238
+ } | {
64239
+ kind: "support";
64240
+ requestId: string;
64241
+ };
64242
+ };
64243
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64244
+ currentRevision?: string | undefined;
64245
+ retryAfterSeconds?: number | undefined;
64246
+ }, unknown, z$1.core.$ZodTypeInternals<{
64247
+ traceId: string;
64248
+ recovery: {
64249
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64250
+ } | {
64251
+ action: "read_operation";
64252
+ operation: {
64253
+ kind: "command";
64254
+ serialNumber: string;
64255
+ idempotencyKey: string;
64256
+ } | {
64257
+ kind: "firmware";
64258
+ serialNumber: string;
64259
+ updateId: string;
64260
+ } | {
64261
+ kind: "bluetooth_firmware";
64262
+ deviceId: string;
64263
+ updateId: string;
64264
+ } | {
64265
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64266
+ deviceId: string;
64267
+ requestId: string;
64268
+ } | {
64269
+ kind: "support";
64270
+ requestId: string;
64271
+ };
64272
+ };
64273
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64274
+ currentRevision?: string | undefined;
64275
+ retryAfterSeconds?: number | undefined;
64276
+ }, unknown>>;
64277
+ };
64278
+ readonly request_timeout: {
64279
+ readonly status: 503;
64280
+ readonly data: z$1.ZodType<{
64281
+ traceId: string;
64282
+ recovery: {
64283
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64284
+ } | {
64285
+ action: "read_operation";
64286
+ operation: {
64287
+ kind: "command";
64288
+ serialNumber: string;
64289
+ idempotencyKey: string;
64290
+ } | {
64291
+ kind: "firmware";
64292
+ serialNumber: string;
64293
+ updateId: string;
64294
+ } | {
64295
+ kind: "bluetooth_firmware";
64296
+ deviceId: string;
64297
+ updateId: string;
64298
+ } | {
64299
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64300
+ deviceId: string;
64301
+ requestId: string;
64302
+ } | {
64303
+ kind: "support";
64304
+ requestId: string;
64305
+ };
64306
+ };
64307
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64308
+ currentRevision?: string | undefined;
64309
+ retryAfterSeconds?: number | undefined;
64310
+ }, unknown, z$1.core.$ZodTypeInternals<{
64311
+ traceId: string;
64312
+ recovery: {
64313
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64314
+ } | {
64315
+ action: "read_operation";
64316
+ operation: {
64317
+ kind: "command";
64318
+ serialNumber: string;
64319
+ idempotencyKey: string;
64320
+ } | {
64321
+ kind: "firmware";
64322
+ serialNumber: string;
64323
+ updateId: string;
64324
+ } | {
64325
+ kind: "bluetooth_firmware";
64326
+ deviceId: string;
64327
+ updateId: string;
64328
+ } | {
64329
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64330
+ deviceId: string;
64331
+ requestId: string;
64332
+ } | {
64333
+ kind: "support";
64334
+ requestId: string;
64335
+ };
64336
+ };
64337
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64338
+ currentRevision?: string | undefined;
64339
+ retryAfterSeconds?: number | undefined;
64340
+ }, unknown>>;
64341
+ };
64342
+ readonly operation_unconfirmed: {
64343
+ readonly status: 503;
64344
+ readonly data: z$1.ZodType<{
64345
+ traceId: string;
64346
+ recovery: {
64347
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64348
+ } | {
64349
+ action: "read_operation";
64350
+ operation: {
64351
+ kind: "command";
64352
+ serialNumber: string;
64353
+ idempotencyKey: string;
64354
+ } | {
64355
+ kind: "firmware";
64356
+ serialNumber: string;
64357
+ updateId: string;
64358
+ } | {
64359
+ kind: "bluetooth_firmware";
64360
+ deviceId: string;
64361
+ updateId: string;
64362
+ } | {
64363
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64364
+ deviceId: string;
64365
+ requestId: string;
64366
+ } | {
64367
+ kind: "support";
64368
+ requestId: string;
64369
+ };
64370
+ };
64371
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64372
+ currentRevision?: string | undefined;
64373
+ retryAfterSeconds?: number | undefined;
64374
+ }, unknown, z$1.core.$ZodTypeInternals<{
64375
+ traceId: string;
64376
+ recovery: {
64377
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64378
+ } | {
64379
+ action: "read_operation";
64380
+ operation: {
64381
+ kind: "command";
64382
+ serialNumber: string;
64383
+ idempotencyKey: string;
64384
+ } | {
64385
+ kind: "firmware";
64386
+ serialNumber: string;
64387
+ updateId: string;
64388
+ } | {
64389
+ kind: "bluetooth_firmware";
64390
+ deviceId: string;
64391
+ updateId: string;
64392
+ } | {
64393
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64394
+ deviceId: string;
64395
+ requestId: string;
64396
+ } | {
64397
+ kind: "support";
64398
+ requestId: string;
64399
+ };
64400
+ };
64401
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64402
+ currentRevision?: string | undefined;
64403
+ retryAfterSeconds?: number | undefined;
64404
+ }, unknown>>;
64405
+ };
64406
+ readonly directory_unavailable: {
64407
+ readonly status: 503;
64408
+ readonly data: z$1.ZodType<{
64409
+ traceId: string;
64410
+ recovery: {
64411
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64412
+ } | {
64413
+ action: "read_operation";
64414
+ operation: {
64415
+ kind: "command";
64416
+ serialNumber: string;
64417
+ idempotencyKey: string;
64418
+ } | {
64419
+ kind: "firmware";
64420
+ serialNumber: string;
64421
+ updateId: string;
64422
+ } | {
64423
+ kind: "bluetooth_firmware";
64424
+ deviceId: string;
64425
+ updateId: string;
64426
+ } | {
64427
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64428
+ deviceId: string;
64429
+ requestId: string;
64430
+ } | {
64431
+ kind: "support";
64432
+ requestId: string;
64433
+ };
64434
+ };
64435
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64436
+ currentRevision?: string | undefined;
64437
+ retryAfterSeconds?: number | undefined;
64438
+ }, unknown, z$1.core.$ZodTypeInternals<{
64439
+ traceId: string;
64440
+ recovery: {
64441
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64442
+ } | {
64443
+ action: "read_operation";
64444
+ operation: {
64445
+ kind: "command";
64446
+ serialNumber: string;
64447
+ idempotencyKey: string;
64448
+ } | {
64449
+ kind: "firmware";
64450
+ serialNumber: string;
64451
+ updateId: string;
64452
+ } | {
64453
+ kind: "bluetooth_firmware";
64454
+ deviceId: string;
64455
+ updateId: string;
64456
+ } | {
64457
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64458
+ deviceId: string;
64459
+ requestId: string;
64460
+ } | {
64461
+ kind: "support";
64462
+ requestId: string;
64463
+ };
64464
+ };
64465
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64466
+ currentRevision?: string | undefined;
64467
+ retryAfterSeconds?: number | undefined;
64468
+ }, unknown>>;
64469
+ };
64470
+ }>, Record<never, never>>;
64471
+ get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
64472
+ id: z$1.ZodString;
64473
+ }, z$1.core.$strict>, z$1.ZodObject<{
64474
+ id: z$1.ZodString;
64475
+ family: z$1.ZodEnum<{
64476
+ "gen2-lte": "gen2-lte";
64477
+ "gen2-battery": "gen2-battery";
64478
+ }>;
64479
+ version: z$1.ZodString;
64480
+ revision: z$1.ZodString;
64481
+ size: z$1.ZodInt;
64482
+ sha256: z$1.ZodString;
64483
+ notes: z$1.ZodString;
64484
+ sourceRevision: z$1.ZodNullable<z$1.ZodString>;
64485
+ buildFingerprint: z$1.ZodNullable<z$1.ZodString>;
64486
+ downloadUrl: z$1.ZodURL;
64487
+ availableForUpdates: z$1.ZodBoolean;
64488
+ }, z$1.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
64489
+ readonly invalid: {
64490
+ readonly status: 400;
64491
+ readonly data: z$1.ZodType<{
64492
+ traceId: string;
64493
+ recovery: {
64494
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64495
+ } | {
64496
+ action: "read_operation";
64497
+ operation: {
64498
+ kind: "command";
64499
+ serialNumber: string;
64500
+ idempotencyKey: string;
64501
+ } | {
64502
+ kind: "firmware";
64503
+ serialNumber: string;
64504
+ updateId: string;
64505
+ } | {
64506
+ kind: "bluetooth_firmware";
64507
+ deviceId: string;
64508
+ updateId: string;
64509
+ } | {
64510
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64511
+ deviceId: string;
64512
+ requestId: string;
64513
+ } | {
64514
+ kind: "support";
64515
+ requestId: string;
64516
+ };
64517
+ };
64518
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64519
+ currentRevision?: string | undefined;
64520
+ retryAfterSeconds?: number | undefined;
64521
+ }, unknown, z$1.core.$ZodTypeInternals<{
64522
+ traceId: string;
64523
+ recovery: {
64524
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64525
+ } | {
64526
+ action: "read_operation";
64527
+ operation: {
64528
+ kind: "command";
64529
+ serialNumber: string;
64530
+ idempotencyKey: string;
64531
+ } | {
64532
+ kind: "firmware";
64533
+ serialNumber: string;
64534
+ updateId: string;
64535
+ } | {
64536
+ kind: "bluetooth_firmware";
64537
+ deviceId: string;
64538
+ updateId: string;
64539
+ } | {
64540
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64541
+ deviceId: string;
64542
+ requestId: string;
64543
+ } | {
64544
+ kind: "support";
64545
+ requestId: string;
64546
+ };
64547
+ };
64548
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64549
+ currentRevision?: string | undefined;
64550
+ retryAfterSeconds?: number | undefined;
64551
+ }, unknown>>;
64552
+ };
64553
+ readonly unauthenticated: {
64554
+ readonly status: 401;
64555
+ readonly data: z$1.ZodType<{
64556
+ traceId: string;
64557
+ recovery: {
64558
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64559
+ } | {
64560
+ action: "read_operation";
64561
+ operation: {
64562
+ kind: "command";
64563
+ serialNumber: string;
64564
+ idempotencyKey: string;
64565
+ } | {
64566
+ kind: "firmware";
64567
+ serialNumber: string;
64568
+ updateId: string;
64569
+ } | {
64570
+ kind: "bluetooth_firmware";
64571
+ deviceId: string;
64572
+ updateId: string;
64573
+ } | {
64574
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64575
+ deviceId: string;
64576
+ requestId: string;
64577
+ } | {
64578
+ kind: "support";
64579
+ requestId: string;
64580
+ };
64581
+ };
64582
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64583
+ currentRevision?: string | undefined;
64584
+ retryAfterSeconds?: number | undefined;
64585
+ }, unknown, z$1.core.$ZodTypeInternals<{
64586
+ traceId: string;
64587
+ recovery: {
64588
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64589
+ } | {
64590
+ action: "read_operation";
64591
+ operation: {
64592
+ kind: "command";
64593
+ serialNumber: string;
64594
+ idempotencyKey: string;
64595
+ } | {
64596
+ kind: "firmware";
64597
+ serialNumber: string;
64598
+ updateId: string;
64599
+ } | {
64600
+ kind: "bluetooth_firmware";
64601
+ deviceId: string;
64602
+ updateId: string;
64603
+ } | {
64604
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64605
+ deviceId: string;
64606
+ requestId: string;
64607
+ } | {
64608
+ kind: "support";
64609
+ requestId: string;
64610
+ };
64611
+ };
64612
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64613
+ currentRevision?: string | undefined;
64614
+ retryAfterSeconds?: number | undefined;
64615
+ }, unknown>>;
64616
+ };
64617
+ readonly forbidden: {
64618
+ readonly status: 403;
64619
+ readonly data: z$1.ZodType<{
64620
+ traceId: string;
64621
+ recovery: {
64622
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64623
+ } | {
64624
+ action: "read_operation";
64625
+ operation: {
64626
+ kind: "command";
64627
+ serialNumber: string;
64628
+ idempotencyKey: string;
64629
+ } | {
64630
+ kind: "firmware";
64631
+ serialNumber: string;
64632
+ updateId: string;
64633
+ } | {
64634
+ kind: "bluetooth_firmware";
64635
+ deviceId: string;
64636
+ updateId: string;
64637
+ } | {
64638
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64639
+ deviceId: string;
64640
+ requestId: string;
64641
+ } | {
64642
+ kind: "support";
64643
+ requestId: string;
64644
+ };
64645
+ };
64646
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64647
+ currentRevision?: string | undefined;
64648
+ retryAfterSeconds?: number | undefined;
64649
+ }, unknown, z$1.core.$ZodTypeInternals<{
64650
+ traceId: string;
64651
+ recovery: {
64652
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64653
+ } | {
64654
+ action: "read_operation";
64655
+ operation: {
64656
+ kind: "command";
64657
+ serialNumber: string;
64658
+ idempotencyKey: string;
64659
+ } | {
64660
+ kind: "firmware";
64661
+ serialNumber: string;
64662
+ updateId: string;
64663
+ } | {
64664
+ kind: "bluetooth_firmware";
64665
+ deviceId: string;
64666
+ updateId: string;
64667
+ } | {
64668
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64669
+ deviceId: string;
64670
+ requestId: string;
64671
+ } | {
64672
+ kind: "support";
64673
+ requestId: string;
64674
+ };
64675
+ };
64676
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64677
+ currentRevision?: string | undefined;
64678
+ retryAfterSeconds?: number | undefined;
64679
+ }, unknown>>;
64680
+ };
64681
+ readonly not_found: {
64682
+ readonly status: 404;
64683
+ readonly data: z$1.ZodType<{
64684
+ traceId: string;
64685
+ recovery: {
64686
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64687
+ } | {
64688
+ action: "read_operation";
64689
+ operation: {
64690
+ kind: "command";
64691
+ serialNumber: string;
64692
+ idempotencyKey: string;
64693
+ } | {
64694
+ kind: "firmware";
64695
+ serialNumber: string;
64696
+ updateId: string;
64697
+ } | {
64698
+ kind: "bluetooth_firmware";
64699
+ deviceId: string;
64700
+ updateId: string;
64701
+ } | {
64702
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64703
+ deviceId: string;
64704
+ requestId: string;
64705
+ } | {
64706
+ kind: "support";
64707
+ requestId: string;
64708
+ };
64709
+ };
64710
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64711
+ currentRevision?: string | undefined;
64712
+ retryAfterSeconds?: number | undefined;
64713
+ }, unknown, z$1.core.$ZodTypeInternals<{
64714
+ traceId: string;
64715
+ recovery: {
64716
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64717
+ } | {
64718
+ action: "read_operation";
64719
+ operation: {
64720
+ kind: "command";
64721
+ serialNumber: string;
64722
+ idempotencyKey: string;
64723
+ } | {
64724
+ kind: "firmware";
64725
+ serialNumber: string;
64726
+ updateId: string;
64727
+ } | {
64728
+ kind: "bluetooth_firmware";
64729
+ deviceId: string;
64730
+ updateId: string;
64731
+ } | {
64732
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64733
+ deviceId: string;
64734
+ requestId: string;
64735
+ } | {
64736
+ kind: "support";
64737
+ requestId: string;
64738
+ };
64739
+ };
64740
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64741
+ currentRevision?: string | undefined;
64742
+ retryAfterSeconds?: number | undefined;
64743
+ }, unknown>>;
64744
+ };
64745
+ readonly conflict: {
64746
+ readonly status: 409;
64747
+ readonly data: z$1.ZodType<{
64748
+ traceId: string;
64749
+ recovery: {
64750
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64751
+ } | {
64752
+ action: "read_operation";
64753
+ operation: {
64754
+ kind: "command";
64755
+ serialNumber: string;
64756
+ idempotencyKey: string;
64757
+ } | {
64758
+ kind: "firmware";
64759
+ serialNumber: string;
64760
+ updateId: string;
64761
+ } | {
64762
+ kind: "bluetooth_firmware";
64763
+ deviceId: string;
64764
+ updateId: string;
64765
+ } | {
64766
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64767
+ deviceId: string;
64768
+ requestId: string;
64769
+ } | {
64770
+ kind: "support";
64771
+ requestId: string;
64772
+ };
64773
+ };
64774
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64775
+ currentRevision?: string | undefined;
64776
+ retryAfterSeconds?: number | undefined;
64777
+ }, unknown, z$1.core.$ZodTypeInternals<{
64778
+ traceId: string;
64779
+ recovery: {
64780
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64781
+ } | {
64782
+ action: "read_operation";
64783
+ operation: {
64784
+ kind: "command";
64785
+ serialNumber: string;
64786
+ idempotencyKey: string;
64787
+ } | {
64788
+ kind: "firmware";
64789
+ serialNumber: string;
64790
+ updateId: string;
64791
+ } | {
64792
+ kind: "bluetooth_firmware";
64793
+ deviceId: string;
64794
+ updateId: string;
64795
+ } | {
64796
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64797
+ deviceId: string;
64798
+ requestId: string;
64799
+ } | {
64800
+ kind: "support";
64801
+ requestId: string;
64802
+ };
64803
+ };
64804
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64805
+ currentRevision?: string | undefined;
64806
+ retryAfterSeconds?: number | undefined;
64807
+ }, unknown>>;
64808
+ };
64809
+ readonly rate_limited: {
64810
+ readonly status: 429;
64811
+ readonly data: z$1.ZodType<{
64812
+ traceId: string;
64813
+ recovery: {
64814
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64815
+ } | {
64816
+ action: "read_operation";
64817
+ operation: {
64818
+ kind: "command";
64819
+ serialNumber: string;
64820
+ idempotencyKey: string;
64821
+ } | {
64822
+ kind: "firmware";
64823
+ serialNumber: string;
64824
+ updateId: string;
64825
+ } | {
64826
+ kind: "bluetooth_firmware";
64827
+ deviceId: string;
64828
+ updateId: string;
64829
+ } | {
64830
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64831
+ deviceId: string;
64832
+ requestId: string;
64833
+ } | {
64834
+ kind: "support";
64835
+ requestId: string;
64836
+ };
64837
+ };
64838
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64839
+ currentRevision?: string | undefined;
64840
+ retryAfterSeconds?: number | undefined;
64841
+ }, unknown, z$1.core.$ZodTypeInternals<{
64842
+ traceId: string;
64843
+ recovery: {
64844
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64845
+ } | {
64846
+ action: "read_operation";
64847
+ operation: {
64848
+ kind: "command";
64849
+ serialNumber: string;
64850
+ idempotencyKey: string;
64851
+ } | {
64852
+ kind: "firmware";
64853
+ serialNumber: string;
64854
+ updateId: string;
64855
+ } | {
64856
+ kind: "bluetooth_firmware";
64857
+ deviceId: string;
64858
+ updateId: string;
64859
+ } | {
64860
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64861
+ deviceId: string;
64862
+ requestId: string;
64863
+ } | {
64864
+ kind: "support";
64865
+ requestId: string;
64866
+ };
64867
+ };
64868
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64869
+ currentRevision?: string | undefined;
64870
+ retryAfterSeconds?: number | undefined;
64871
+ }, unknown>>;
64872
+ };
64873
+ readonly stored_data_invalid: {
64874
+ readonly status: 503;
64875
+ readonly data: z$1.ZodType<{
64876
+ traceId: string;
64877
+ recovery: {
64878
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64879
+ } | {
64880
+ action: "read_operation";
64881
+ operation: {
64882
+ kind: "command";
64883
+ serialNumber: string;
64884
+ idempotencyKey: string;
64885
+ } | {
64886
+ kind: "firmware";
64887
+ serialNumber: string;
64888
+ updateId: string;
64889
+ } | {
64890
+ kind: "bluetooth_firmware";
64891
+ deviceId: string;
64892
+ updateId: string;
64893
+ } | {
64894
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64895
+ deviceId: string;
64896
+ requestId: string;
64897
+ } | {
64898
+ kind: "support";
64899
+ requestId: string;
64900
+ };
64901
+ };
64902
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64903
+ currentRevision?: string | undefined;
64904
+ retryAfterSeconds?: number | undefined;
64905
+ }, unknown, z$1.core.$ZodTypeInternals<{
64906
+ traceId: string;
64907
+ recovery: {
64908
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64909
+ } | {
64910
+ action: "read_operation";
64911
+ operation: {
64912
+ kind: "command";
64913
+ serialNumber: string;
64914
+ idempotencyKey: string;
64915
+ } | {
64916
+ kind: "firmware";
64917
+ serialNumber: string;
64918
+ updateId: string;
64919
+ } | {
64920
+ kind: "bluetooth_firmware";
64921
+ deviceId: string;
64922
+ updateId: string;
64923
+ } | {
64924
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64925
+ deviceId: string;
64926
+ requestId: string;
64927
+ } | {
64928
+ kind: "support";
64929
+ requestId: string;
64930
+ };
64931
+ };
64932
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64933
+ currentRevision?: string | undefined;
64934
+ retryAfterSeconds?: number | undefined;
64935
+ }, unknown>>;
64936
+ };
64937
+ readonly service_unavailable: {
64938
+ readonly status: 503;
64939
+ readonly data: z$1.ZodType<{
64940
+ traceId: string;
64941
+ recovery: {
64942
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64943
+ } | {
64944
+ action: "read_operation";
64945
+ operation: {
64946
+ kind: "command";
64947
+ serialNumber: string;
64948
+ idempotencyKey: string;
64949
+ } | {
64950
+ kind: "firmware";
64951
+ serialNumber: string;
64952
+ updateId: string;
64953
+ } | {
64954
+ kind: "bluetooth_firmware";
64955
+ deviceId: string;
64956
+ updateId: string;
64957
+ } | {
64958
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64959
+ deviceId: string;
64960
+ requestId: string;
64961
+ } | {
64962
+ kind: "support";
64963
+ requestId: string;
64964
+ };
64965
+ };
64966
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64967
+ currentRevision?: string | undefined;
64968
+ retryAfterSeconds?: number | undefined;
64969
+ }, unknown, z$1.core.$ZodTypeInternals<{
64970
+ traceId: string;
64971
+ recovery: {
64972
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
64973
+ } | {
64974
+ action: "read_operation";
64975
+ operation: {
64976
+ kind: "command";
64977
+ serialNumber: string;
64978
+ idempotencyKey: string;
64979
+ } | {
64980
+ kind: "firmware";
64981
+ serialNumber: string;
64982
+ updateId: string;
64983
+ } | {
64984
+ kind: "bluetooth_firmware";
64985
+ deviceId: string;
64986
+ updateId: string;
64987
+ } | {
64988
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
64989
+ deviceId: string;
64990
+ requestId: string;
64991
+ } | {
64992
+ kind: "support";
64993
+ requestId: string;
64994
+ };
64995
+ };
64996
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
64997
+ currentRevision?: string | undefined;
64998
+ retryAfterSeconds?: number | undefined;
64999
+ }, unknown>>;
65000
+ };
65001
+ readonly read_unavailable: {
65002
+ readonly status: 503;
65003
+ readonly data: z$1.ZodType<{
65004
+ traceId: string;
65005
+ recovery: {
65006
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65007
+ } | {
65008
+ action: "read_operation";
65009
+ operation: {
65010
+ kind: "command";
65011
+ serialNumber: string;
65012
+ idempotencyKey: string;
65013
+ } | {
65014
+ kind: "firmware";
65015
+ serialNumber: string;
65016
+ updateId: string;
65017
+ } | {
65018
+ kind: "bluetooth_firmware";
65019
+ deviceId: string;
65020
+ updateId: string;
65021
+ } | {
65022
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65023
+ deviceId: string;
65024
+ requestId: string;
65025
+ } | {
65026
+ kind: "support";
65027
+ requestId: string;
65028
+ };
65029
+ };
65030
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65031
+ currentRevision?: string | undefined;
65032
+ retryAfterSeconds?: number | undefined;
65033
+ }, unknown, z$1.core.$ZodTypeInternals<{
65034
+ traceId: string;
65035
+ recovery: {
65036
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65037
+ } | {
65038
+ action: "read_operation";
65039
+ operation: {
65040
+ kind: "command";
65041
+ serialNumber: string;
65042
+ idempotencyKey: string;
65043
+ } | {
65044
+ kind: "firmware";
65045
+ serialNumber: string;
65046
+ updateId: string;
65047
+ } | {
65048
+ kind: "bluetooth_firmware";
65049
+ deviceId: string;
65050
+ updateId: string;
65051
+ } | {
65052
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65053
+ deviceId: string;
65054
+ requestId: string;
65055
+ } | {
65056
+ kind: "support";
65057
+ requestId: string;
65058
+ };
65059
+ };
65060
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65061
+ currentRevision?: string | undefined;
65062
+ retryAfterSeconds?: number | undefined;
65063
+ }, unknown>>;
65064
+ };
65065
+ readonly stream_unavailable: {
65066
+ readonly status: 503;
65067
+ readonly data: z$1.ZodType<{
65068
+ traceId: string;
65069
+ recovery: {
65070
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65071
+ } | {
65072
+ action: "read_operation";
65073
+ operation: {
65074
+ kind: "command";
65075
+ serialNumber: string;
65076
+ idempotencyKey: string;
65077
+ } | {
65078
+ kind: "firmware";
65079
+ serialNumber: string;
65080
+ updateId: string;
65081
+ } | {
65082
+ kind: "bluetooth_firmware";
65083
+ deviceId: string;
65084
+ updateId: string;
65085
+ } | {
65086
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65087
+ deviceId: string;
65088
+ requestId: string;
65089
+ } | {
65090
+ kind: "support";
65091
+ requestId: string;
65092
+ };
65093
+ };
65094
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65095
+ currentRevision?: string | undefined;
65096
+ retryAfterSeconds?: number | undefined;
65097
+ }, unknown, z$1.core.$ZodTypeInternals<{
65098
+ traceId: string;
65099
+ recovery: {
65100
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65101
+ } | {
65102
+ action: "read_operation";
65103
+ operation: {
65104
+ kind: "command";
65105
+ serialNumber: string;
65106
+ idempotencyKey: string;
65107
+ } | {
65108
+ kind: "firmware";
65109
+ serialNumber: string;
65110
+ updateId: string;
65111
+ } | {
65112
+ kind: "bluetooth_firmware";
65113
+ deviceId: string;
65114
+ updateId: string;
65115
+ } | {
65116
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65117
+ deviceId: string;
65118
+ requestId: string;
65119
+ } | {
65120
+ kind: "support";
65121
+ requestId: string;
65122
+ };
65123
+ };
65124
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65125
+ currentRevision?: string | undefined;
65126
+ retryAfterSeconds?: number | undefined;
65127
+ }, unknown>>;
65128
+ };
65129
+ readonly payload_too_large: {
65130
+ readonly status: 413;
65131
+ readonly data: z$1.ZodType<{
65132
+ traceId: string;
65133
+ recovery: {
65134
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65135
+ } | {
65136
+ action: "read_operation";
65137
+ operation: {
65138
+ kind: "command";
65139
+ serialNumber: string;
65140
+ idempotencyKey: string;
65141
+ } | {
65142
+ kind: "firmware";
65143
+ serialNumber: string;
65144
+ updateId: string;
65145
+ } | {
65146
+ kind: "bluetooth_firmware";
65147
+ deviceId: string;
65148
+ updateId: string;
65149
+ } | {
65150
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65151
+ deviceId: string;
65152
+ requestId: string;
65153
+ } | {
65154
+ kind: "support";
65155
+ requestId: string;
65156
+ };
65157
+ };
65158
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65159
+ currentRevision?: string | undefined;
65160
+ retryAfterSeconds?: number | undefined;
65161
+ }, unknown, z$1.core.$ZodTypeInternals<{
65162
+ traceId: string;
65163
+ recovery: {
65164
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65165
+ } | {
65166
+ action: "read_operation";
65167
+ operation: {
65168
+ kind: "command";
65169
+ serialNumber: string;
65170
+ idempotencyKey: string;
65171
+ } | {
65172
+ kind: "firmware";
65173
+ serialNumber: string;
65174
+ updateId: string;
65175
+ } | {
65176
+ kind: "bluetooth_firmware";
65177
+ deviceId: string;
65178
+ updateId: string;
65179
+ } | {
65180
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65181
+ deviceId: string;
65182
+ requestId: string;
65183
+ } | {
65184
+ kind: "support";
65185
+ requestId: string;
65186
+ };
65187
+ };
65188
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65189
+ currentRevision?: string | undefined;
65190
+ retryAfterSeconds?: number | undefined;
65191
+ }, unknown>>;
65192
+ };
65193
+ readonly request_timeout: {
65194
+ readonly status: 503;
65195
+ readonly data: z$1.ZodType<{
65196
+ traceId: string;
65197
+ recovery: {
65198
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65199
+ } | {
65200
+ action: "read_operation";
65201
+ operation: {
65202
+ kind: "command";
65203
+ serialNumber: string;
65204
+ idempotencyKey: string;
65205
+ } | {
65206
+ kind: "firmware";
65207
+ serialNumber: string;
65208
+ updateId: string;
65209
+ } | {
65210
+ kind: "bluetooth_firmware";
65211
+ deviceId: string;
65212
+ updateId: string;
65213
+ } | {
65214
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65215
+ deviceId: string;
65216
+ requestId: string;
65217
+ } | {
65218
+ kind: "support";
65219
+ requestId: string;
65220
+ };
65221
+ };
65222
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65223
+ currentRevision?: string | undefined;
65224
+ retryAfterSeconds?: number | undefined;
65225
+ }, unknown, z$1.core.$ZodTypeInternals<{
65226
+ traceId: string;
65227
+ recovery: {
65228
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65229
+ } | {
65230
+ action: "read_operation";
65231
+ operation: {
65232
+ kind: "command";
65233
+ serialNumber: string;
65234
+ idempotencyKey: string;
65235
+ } | {
65236
+ kind: "firmware";
65237
+ serialNumber: string;
65238
+ updateId: string;
65239
+ } | {
65240
+ kind: "bluetooth_firmware";
65241
+ deviceId: string;
65242
+ updateId: string;
65243
+ } | {
65244
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65245
+ deviceId: string;
65246
+ requestId: string;
65247
+ } | {
65248
+ kind: "support";
65249
+ requestId: string;
65250
+ };
65251
+ };
65252
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65253
+ currentRevision?: string | undefined;
65254
+ retryAfterSeconds?: number | undefined;
65255
+ }, unknown>>;
65256
+ };
65257
+ readonly operation_unconfirmed: {
65258
+ readonly status: 503;
65259
+ readonly data: z$1.ZodType<{
65260
+ traceId: string;
65261
+ recovery: {
65262
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65263
+ } | {
65264
+ action: "read_operation";
65265
+ operation: {
65266
+ kind: "command";
65267
+ serialNumber: string;
65268
+ idempotencyKey: string;
65269
+ } | {
65270
+ kind: "firmware";
65271
+ serialNumber: string;
65272
+ updateId: string;
65273
+ } | {
65274
+ kind: "bluetooth_firmware";
65275
+ deviceId: string;
65276
+ updateId: string;
65277
+ } | {
65278
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65279
+ deviceId: string;
65280
+ requestId: string;
65281
+ } | {
65282
+ kind: "support";
65283
+ requestId: string;
65284
+ };
65285
+ };
65286
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65287
+ currentRevision?: string | undefined;
65288
+ retryAfterSeconds?: number | undefined;
65289
+ }, unknown, z$1.core.$ZodTypeInternals<{
65290
+ traceId: string;
65291
+ recovery: {
65292
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65293
+ } | {
65294
+ action: "read_operation";
65295
+ operation: {
65296
+ kind: "command";
65297
+ serialNumber: string;
65298
+ idempotencyKey: string;
65299
+ } | {
65300
+ kind: "firmware";
65301
+ serialNumber: string;
65302
+ updateId: string;
65303
+ } | {
65304
+ kind: "bluetooth_firmware";
65305
+ deviceId: string;
65306
+ updateId: string;
65307
+ } | {
65308
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65309
+ deviceId: string;
65310
+ requestId: string;
65311
+ } | {
65312
+ kind: "support";
65313
+ requestId: string;
65314
+ };
65315
+ };
65316
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65317
+ currentRevision?: string | undefined;
65318
+ retryAfterSeconds?: number | undefined;
65319
+ }, unknown>>;
65320
+ };
65321
+ readonly directory_unavailable: {
65322
+ readonly status: 503;
65323
+ readonly data: z$1.ZodType<{
65324
+ traceId: string;
65325
+ recovery: {
65326
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65327
+ } | {
65328
+ action: "read_operation";
65329
+ operation: {
65330
+ kind: "command";
65331
+ serialNumber: string;
65332
+ idempotencyKey: string;
65333
+ } | {
65334
+ kind: "firmware";
65335
+ serialNumber: string;
65336
+ updateId: string;
65337
+ } | {
65338
+ kind: "bluetooth_firmware";
65339
+ deviceId: string;
65340
+ updateId: string;
65341
+ } | {
65342
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65343
+ deviceId: string;
65344
+ requestId: string;
65345
+ } | {
65346
+ kind: "support";
65347
+ requestId: string;
65348
+ };
65349
+ };
65350
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65351
+ currentRevision?: string | undefined;
65352
+ retryAfterSeconds?: number | undefined;
65353
+ }, unknown, z$1.core.$ZodTypeInternals<{
65354
+ traceId: string;
65355
+ recovery: {
65356
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65357
+ } | {
65358
+ action: "read_operation";
65359
+ operation: {
65360
+ kind: "command";
65361
+ serialNumber: string;
65362
+ idempotencyKey: string;
65363
+ } | {
65364
+ kind: "firmware";
65365
+ serialNumber: string;
65366
+ updateId: string;
65367
+ } | {
65368
+ kind: "bluetooth_firmware";
65369
+ deviceId: string;
65370
+ updateId: string;
65371
+ } | {
65372
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65373
+ deviceId: string;
65374
+ requestId: string;
65375
+ } | {
65376
+ kind: "support";
65377
+ requestId: string;
65378
+ };
65379
+ };
65380
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65381
+ currentRevision?: string | undefined;
65382
+ retryAfterSeconds?: number | undefined;
65383
+ }, unknown>>;
65384
+ };
65385
+ }>, Record<never, never>>;
65386
+ publish: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
65387
+ family: z$1.ZodEnum<{
65388
+ "gen2-lte": "gen2-lte";
65389
+ "gen2-battery": "gen2-battery";
65390
+ }>;
65391
+ version: z$1.ZodString;
65392
+ notes: z$1.ZodString;
65393
+ sourceRevision: z$1.ZodNullable<z$1.ZodString>;
65394
+ buildFingerprint: z$1.ZodNullable<z$1.ZodString>;
65395
+ size: z$1.ZodInt;
65396
+ sha256: z$1.ZodString;
65397
+ file: z$1.ZodFile;
65398
+ }, z$1.core.$strict>, z$1.ZodObject<{
65399
+ id: z$1.ZodString;
65400
+ family: z$1.ZodEnum<{
65401
+ "gen2-lte": "gen2-lte";
65402
+ "gen2-battery": "gen2-battery";
65403
+ }>;
65404
+ version: z$1.ZodString;
65405
+ revision: z$1.ZodString;
65406
+ size: z$1.ZodInt;
65407
+ sha256: z$1.ZodString;
65408
+ notes: z$1.ZodString;
65409
+ sourceRevision: z$1.ZodNullable<z$1.ZodString>;
65410
+ buildFingerprint: z$1.ZodNullable<z$1.ZodString>;
65411
+ downloadUrl: z$1.ZodURL;
65412
+ availableForUpdates: z$1.ZodBoolean;
65413
+ }, z$1.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
65414
+ readonly invalid: {
65415
+ readonly status: 400;
65416
+ readonly data: z$1.ZodType<{
65417
+ traceId: string;
65418
+ recovery: {
65419
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65420
+ } | {
65421
+ action: "read_operation";
65422
+ operation: {
65423
+ kind: "command";
65424
+ serialNumber: string;
65425
+ idempotencyKey: string;
65426
+ } | {
65427
+ kind: "firmware";
65428
+ serialNumber: string;
65429
+ updateId: string;
65430
+ } | {
65431
+ kind: "bluetooth_firmware";
65432
+ deviceId: string;
65433
+ updateId: string;
65434
+ } | {
65435
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65436
+ deviceId: string;
65437
+ requestId: string;
65438
+ } | {
65439
+ kind: "support";
65440
+ requestId: string;
65441
+ };
65442
+ };
65443
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65444
+ currentRevision?: string | undefined;
65445
+ retryAfterSeconds?: number | undefined;
65446
+ }, unknown, z$1.core.$ZodTypeInternals<{
65447
+ traceId: string;
65448
+ recovery: {
65449
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65450
+ } | {
65451
+ action: "read_operation";
65452
+ operation: {
65453
+ kind: "command";
65454
+ serialNumber: string;
65455
+ idempotencyKey: string;
65456
+ } | {
65457
+ kind: "firmware";
65458
+ serialNumber: string;
65459
+ updateId: string;
65460
+ } | {
65461
+ kind: "bluetooth_firmware";
65462
+ deviceId: string;
65463
+ updateId: string;
65464
+ } | {
65465
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65466
+ deviceId: string;
65467
+ requestId: string;
65468
+ } | {
65469
+ kind: "support";
65470
+ requestId: string;
65471
+ };
65472
+ };
65473
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65474
+ currentRevision?: string | undefined;
65475
+ retryAfterSeconds?: number | undefined;
65476
+ }, unknown>>;
65477
+ };
65478
+ readonly unauthenticated: {
65479
+ readonly status: 401;
65480
+ readonly data: z$1.ZodType<{
65481
+ traceId: string;
65482
+ recovery: {
65483
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65484
+ } | {
65485
+ action: "read_operation";
65486
+ operation: {
65487
+ kind: "command";
65488
+ serialNumber: string;
65489
+ idempotencyKey: string;
65490
+ } | {
65491
+ kind: "firmware";
65492
+ serialNumber: string;
65493
+ updateId: string;
65494
+ } | {
65495
+ kind: "bluetooth_firmware";
65496
+ deviceId: string;
65497
+ updateId: string;
65498
+ } | {
65499
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65500
+ deviceId: string;
65501
+ requestId: string;
65502
+ } | {
65503
+ kind: "support";
65504
+ requestId: string;
65505
+ };
65506
+ };
65507
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65508
+ currentRevision?: string | undefined;
65509
+ retryAfterSeconds?: number | undefined;
65510
+ }, unknown, z$1.core.$ZodTypeInternals<{
65511
+ traceId: string;
65512
+ recovery: {
65513
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65514
+ } | {
65515
+ action: "read_operation";
65516
+ operation: {
65517
+ kind: "command";
65518
+ serialNumber: string;
65519
+ idempotencyKey: string;
65520
+ } | {
65521
+ kind: "firmware";
65522
+ serialNumber: string;
65523
+ updateId: string;
65524
+ } | {
65525
+ kind: "bluetooth_firmware";
65526
+ deviceId: string;
65527
+ updateId: string;
65528
+ } | {
65529
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65530
+ deviceId: string;
65531
+ requestId: string;
65532
+ } | {
65533
+ kind: "support";
65534
+ requestId: string;
65535
+ };
65536
+ };
65537
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65538
+ currentRevision?: string | undefined;
65539
+ retryAfterSeconds?: number | undefined;
65540
+ }, unknown>>;
65541
+ };
65542
+ readonly forbidden: {
65543
+ readonly status: 403;
65544
+ readonly data: z$1.ZodType<{
65545
+ traceId: string;
65546
+ recovery: {
65547
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65548
+ } | {
65549
+ action: "read_operation";
65550
+ operation: {
65551
+ kind: "command";
65552
+ serialNumber: string;
65553
+ idempotencyKey: string;
65554
+ } | {
65555
+ kind: "firmware";
65556
+ serialNumber: string;
65557
+ updateId: string;
65558
+ } | {
65559
+ kind: "bluetooth_firmware";
65560
+ deviceId: string;
65561
+ updateId: string;
65562
+ } | {
65563
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65564
+ deviceId: string;
65565
+ requestId: string;
65566
+ } | {
65567
+ kind: "support";
65568
+ requestId: string;
65569
+ };
65570
+ };
65571
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65572
+ currentRevision?: string | undefined;
65573
+ retryAfterSeconds?: number | undefined;
65574
+ }, unknown, z$1.core.$ZodTypeInternals<{
65575
+ traceId: string;
65576
+ recovery: {
65577
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65578
+ } | {
65579
+ action: "read_operation";
65580
+ operation: {
65581
+ kind: "command";
65582
+ serialNumber: string;
65583
+ idempotencyKey: string;
65584
+ } | {
65585
+ kind: "firmware";
65586
+ serialNumber: string;
65587
+ updateId: string;
65588
+ } | {
65589
+ kind: "bluetooth_firmware";
65590
+ deviceId: string;
65591
+ updateId: string;
65592
+ } | {
65593
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65594
+ deviceId: string;
65595
+ requestId: string;
65596
+ } | {
65597
+ kind: "support";
65598
+ requestId: string;
65599
+ };
65600
+ };
65601
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65602
+ currentRevision?: string | undefined;
65603
+ retryAfterSeconds?: number | undefined;
65604
+ }, unknown>>;
65605
+ };
65606
+ readonly not_found: {
65607
+ readonly status: 404;
65608
+ readonly data: z$1.ZodType<{
65609
+ traceId: string;
65610
+ recovery: {
65611
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65612
+ } | {
65613
+ action: "read_operation";
65614
+ operation: {
65615
+ kind: "command";
65616
+ serialNumber: string;
65617
+ idempotencyKey: string;
65618
+ } | {
65619
+ kind: "firmware";
65620
+ serialNumber: string;
65621
+ updateId: string;
65622
+ } | {
65623
+ kind: "bluetooth_firmware";
65624
+ deviceId: string;
65625
+ updateId: string;
65626
+ } | {
65627
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65628
+ deviceId: string;
65629
+ requestId: string;
65630
+ } | {
65631
+ kind: "support";
65632
+ requestId: string;
65633
+ };
65634
+ };
65635
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65636
+ currentRevision?: string | undefined;
65637
+ retryAfterSeconds?: number | undefined;
65638
+ }, unknown, z$1.core.$ZodTypeInternals<{
65639
+ traceId: string;
65640
+ recovery: {
65641
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65642
+ } | {
65643
+ action: "read_operation";
65644
+ operation: {
65645
+ kind: "command";
65646
+ serialNumber: string;
65647
+ idempotencyKey: string;
65648
+ } | {
65649
+ kind: "firmware";
65650
+ serialNumber: string;
65651
+ updateId: string;
65652
+ } | {
65653
+ kind: "bluetooth_firmware";
65654
+ deviceId: string;
65655
+ updateId: string;
65656
+ } | {
65657
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65658
+ deviceId: string;
65659
+ requestId: string;
65660
+ } | {
65661
+ kind: "support";
65662
+ requestId: string;
65663
+ };
65664
+ };
65665
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65666
+ currentRevision?: string | undefined;
65667
+ retryAfterSeconds?: number | undefined;
65668
+ }, unknown>>;
65669
+ };
65670
+ readonly conflict: {
65671
+ readonly status: 409;
65672
+ readonly data: z$1.ZodType<{
65673
+ traceId: string;
65674
+ recovery: {
65675
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65676
+ } | {
65677
+ action: "read_operation";
65678
+ operation: {
65679
+ kind: "command";
65680
+ serialNumber: string;
65681
+ idempotencyKey: string;
65682
+ } | {
65683
+ kind: "firmware";
65684
+ serialNumber: string;
65685
+ updateId: string;
65686
+ } | {
65687
+ kind: "bluetooth_firmware";
65688
+ deviceId: string;
65689
+ updateId: string;
65690
+ } | {
65691
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65692
+ deviceId: string;
65693
+ requestId: string;
65694
+ } | {
65695
+ kind: "support";
65696
+ requestId: string;
65697
+ };
65698
+ };
65699
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65700
+ currentRevision?: string | undefined;
65701
+ retryAfterSeconds?: number | undefined;
65702
+ }, unknown, z$1.core.$ZodTypeInternals<{
65703
+ traceId: string;
65704
+ recovery: {
65705
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65706
+ } | {
65707
+ action: "read_operation";
65708
+ operation: {
65709
+ kind: "command";
65710
+ serialNumber: string;
65711
+ idempotencyKey: string;
65712
+ } | {
65713
+ kind: "firmware";
65714
+ serialNumber: string;
65715
+ updateId: string;
65716
+ } | {
65717
+ kind: "bluetooth_firmware";
65718
+ deviceId: string;
65719
+ updateId: string;
65720
+ } | {
65721
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65722
+ deviceId: string;
65723
+ requestId: string;
65724
+ } | {
65725
+ kind: "support";
65726
+ requestId: string;
65727
+ };
65728
+ };
65729
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65730
+ currentRevision?: string | undefined;
65731
+ retryAfterSeconds?: number | undefined;
65732
+ }, unknown>>;
65733
+ };
65734
+ readonly rate_limited: {
65735
+ readonly status: 429;
65736
+ readonly data: z$1.ZodType<{
65737
+ traceId: string;
65738
+ recovery: {
65739
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65740
+ } | {
65741
+ action: "read_operation";
65742
+ operation: {
65743
+ kind: "command";
65744
+ serialNumber: string;
65745
+ idempotencyKey: string;
65746
+ } | {
65747
+ kind: "firmware";
65748
+ serialNumber: string;
65749
+ updateId: string;
65750
+ } | {
65751
+ kind: "bluetooth_firmware";
65752
+ deviceId: string;
65753
+ updateId: string;
65754
+ } | {
65755
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65756
+ deviceId: string;
65757
+ requestId: string;
65758
+ } | {
65759
+ kind: "support";
65760
+ requestId: string;
65761
+ };
65762
+ };
65763
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65764
+ currentRevision?: string | undefined;
65765
+ retryAfterSeconds?: number | undefined;
65766
+ }, unknown, z$1.core.$ZodTypeInternals<{
65767
+ traceId: string;
65768
+ recovery: {
65769
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65770
+ } | {
65771
+ action: "read_operation";
65772
+ operation: {
65773
+ kind: "command";
65774
+ serialNumber: string;
65775
+ idempotencyKey: string;
65776
+ } | {
65777
+ kind: "firmware";
65778
+ serialNumber: string;
65779
+ updateId: string;
65780
+ } | {
65781
+ kind: "bluetooth_firmware";
65782
+ deviceId: string;
65783
+ updateId: string;
65784
+ } | {
65785
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65786
+ deviceId: string;
65787
+ requestId: string;
65788
+ } | {
65789
+ kind: "support";
65790
+ requestId: string;
65791
+ };
65792
+ };
65793
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65794
+ currentRevision?: string | undefined;
65795
+ retryAfterSeconds?: number | undefined;
65796
+ }, unknown>>;
65797
+ };
65798
+ readonly stored_data_invalid: {
65799
+ readonly status: 503;
65800
+ readonly data: z$1.ZodType<{
65801
+ traceId: string;
65802
+ recovery: {
65803
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65804
+ } | {
65805
+ action: "read_operation";
65806
+ operation: {
65807
+ kind: "command";
65808
+ serialNumber: string;
65809
+ idempotencyKey: string;
65810
+ } | {
65811
+ kind: "firmware";
65812
+ serialNumber: string;
65813
+ updateId: string;
65814
+ } | {
65815
+ kind: "bluetooth_firmware";
65816
+ deviceId: string;
65817
+ updateId: string;
65818
+ } | {
65819
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65820
+ deviceId: string;
65821
+ requestId: string;
65822
+ } | {
65823
+ kind: "support";
65824
+ requestId: string;
65825
+ };
65826
+ };
65827
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65828
+ currentRevision?: string | undefined;
65829
+ retryAfterSeconds?: number | undefined;
65830
+ }, unknown, z$1.core.$ZodTypeInternals<{
65831
+ traceId: string;
65832
+ recovery: {
65833
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65834
+ } | {
65835
+ action: "read_operation";
65836
+ operation: {
65837
+ kind: "command";
65838
+ serialNumber: string;
65839
+ idempotencyKey: string;
65840
+ } | {
65841
+ kind: "firmware";
65842
+ serialNumber: string;
65843
+ updateId: string;
65844
+ } | {
65845
+ kind: "bluetooth_firmware";
65846
+ deviceId: string;
65847
+ updateId: string;
65848
+ } | {
65849
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65850
+ deviceId: string;
65851
+ requestId: string;
65852
+ } | {
65853
+ kind: "support";
65854
+ requestId: string;
65855
+ };
65856
+ };
65857
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65858
+ currentRevision?: string | undefined;
65859
+ retryAfterSeconds?: number | undefined;
65860
+ }, unknown>>;
65861
+ };
65862
+ readonly service_unavailable: {
65863
+ readonly status: 503;
65864
+ readonly data: z$1.ZodType<{
65865
+ traceId: string;
65866
+ recovery: {
65867
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65868
+ } | {
65869
+ action: "read_operation";
65870
+ operation: {
65871
+ kind: "command";
65872
+ serialNumber: string;
65873
+ idempotencyKey: string;
65874
+ } | {
65875
+ kind: "firmware";
65876
+ serialNumber: string;
65877
+ updateId: string;
65878
+ } | {
65879
+ kind: "bluetooth_firmware";
65880
+ deviceId: string;
65881
+ updateId: string;
65882
+ } | {
65883
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65884
+ deviceId: string;
65885
+ requestId: string;
65886
+ } | {
65887
+ kind: "support";
65888
+ requestId: string;
65889
+ };
65890
+ };
65891
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65892
+ currentRevision?: string | undefined;
65893
+ retryAfterSeconds?: number | undefined;
65894
+ }, unknown, z$1.core.$ZodTypeInternals<{
65895
+ traceId: string;
65896
+ recovery: {
65897
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65898
+ } | {
65899
+ action: "read_operation";
65900
+ operation: {
65901
+ kind: "command";
65902
+ serialNumber: string;
65903
+ idempotencyKey: string;
65904
+ } | {
65905
+ kind: "firmware";
65906
+ serialNumber: string;
65907
+ updateId: string;
65908
+ } | {
65909
+ kind: "bluetooth_firmware";
65910
+ deviceId: string;
65911
+ updateId: string;
65912
+ } | {
65913
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65914
+ deviceId: string;
65915
+ requestId: string;
65916
+ } | {
65917
+ kind: "support";
65918
+ requestId: string;
65919
+ };
65920
+ };
65921
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65922
+ currentRevision?: string | undefined;
65923
+ retryAfterSeconds?: number | undefined;
65924
+ }, unknown>>;
65925
+ };
65926
+ readonly read_unavailable: {
65927
+ readonly status: 503;
65928
+ readonly data: z$1.ZodType<{
65929
+ traceId: string;
65930
+ recovery: {
65931
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65932
+ } | {
65933
+ action: "read_operation";
65934
+ operation: {
65935
+ kind: "command";
65936
+ serialNumber: string;
65937
+ idempotencyKey: string;
65938
+ } | {
65939
+ kind: "firmware";
65940
+ serialNumber: string;
65941
+ updateId: string;
65942
+ } | {
65943
+ kind: "bluetooth_firmware";
65944
+ deviceId: string;
65945
+ updateId: string;
65946
+ } | {
65947
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65948
+ deviceId: string;
65949
+ requestId: string;
65950
+ } | {
65951
+ kind: "support";
65952
+ requestId: string;
65953
+ };
65954
+ };
65955
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65956
+ currentRevision?: string | undefined;
65957
+ retryAfterSeconds?: number | undefined;
65958
+ }, unknown, z$1.core.$ZodTypeInternals<{
65959
+ traceId: string;
65960
+ recovery: {
65961
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65962
+ } | {
65963
+ action: "read_operation";
65964
+ operation: {
65965
+ kind: "command";
65966
+ serialNumber: string;
65967
+ idempotencyKey: string;
65968
+ } | {
65969
+ kind: "firmware";
65970
+ serialNumber: string;
65971
+ updateId: string;
65972
+ } | {
65973
+ kind: "bluetooth_firmware";
65974
+ deviceId: string;
65975
+ updateId: string;
65976
+ } | {
65977
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
65978
+ deviceId: string;
65979
+ requestId: string;
65980
+ } | {
65981
+ kind: "support";
65982
+ requestId: string;
65983
+ };
65984
+ };
65985
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
65986
+ currentRevision?: string | undefined;
65987
+ retryAfterSeconds?: number | undefined;
65988
+ }, unknown>>;
65989
+ };
65990
+ readonly stream_unavailable: {
65991
+ readonly status: 503;
65992
+ readonly data: z$1.ZodType<{
65993
+ traceId: string;
65994
+ recovery: {
65995
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
65996
+ } | {
65997
+ action: "read_operation";
65998
+ operation: {
65999
+ kind: "command";
66000
+ serialNumber: string;
66001
+ idempotencyKey: string;
66002
+ } | {
66003
+ kind: "firmware";
66004
+ serialNumber: string;
66005
+ updateId: string;
66006
+ } | {
66007
+ kind: "bluetooth_firmware";
66008
+ deviceId: string;
66009
+ updateId: string;
66010
+ } | {
66011
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66012
+ deviceId: string;
66013
+ requestId: string;
66014
+ } | {
66015
+ kind: "support";
66016
+ requestId: string;
66017
+ };
66018
+ };
66019
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66020
+ currentRevision?: string | undefined;
66021
+ retryAfterSeconds?: number | undefined;
66022
+ }, unknown, z$1.core.$ZodTypeInternals<{
66023
+ traceId: string;
66024
+ recovery: {
66025
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66026
+ } | {
66027
+ action: "read_operation";
66028
+ operation: {
66029
+ kind: "command";
66030
+ serialNumber: string;
66031
+ idempotencyKey: string;
66032
+ } | {
66033
+ kind: "firmware";
66034
+ serialNumber: string;
66035
+ updateId: string;
66036
+ } | {
66037
+ kind: "bluetooth_firmware";
66038
+ deviceId: string;
66039
+ updateId: string;
66040
+ } | {
66041
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66042
+ deviceId: string;
66043
+ requestId: string;
66044
+ } | {
66045
+ kind: "support";
66046
+ requestId: string;
66047
+ };
66048
+ };
66049
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66050
+ currentRevision?: string | undefined;
66051
+ retryAfterSeconds?: number | undefined;
66052
+ }, unknown>>;
66053
+ };
66054
+ readonly payload_too_large: {
66055
+ readonly status: 413;
66056
+ readonly data: z$1.ZodType<{
66057
+ traceId: string;
66058
+ recovery: {
66059
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66060
+ } | {
66061
+ action: "read_operation";
66062
+ operation: {
66063
+ kind: "command";
66064
+ serialNumber: string;
66065
+ idempotencyKey: string;
66066
+ } | {
66067
+ kind: "firmware";
66068
+ serialNumber: string;
66069
+ updateId: string;
66070
+ } | {
66071
+ kind: "bluetooth_firmware";
66072
+ deviceId: string;
66073
+ updateId: string;
66074
+ } | {
66075
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66076
+ deviceId: string;
66077
+ requestId: string;
66078
+ } | {
66079
+ kind: "support";
66080
+ requestId: string;
66081
+ };
66082
+ };
66083
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66084
+ currentRevision?: string | undefined;
66085
+ retryAfterSeconds?: number | undefined;
66086
+ }, unknown, z$1.core.$ZodTypeInternals<{
66087
+ traceId: string;
66088
+ recovery: {
66089
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66090
+ } | {
66091
+ action: "read_operation";
66092
+ operation: {
66093
+ kind: "command";
66094
+ serialNumber: string;
66095
+ idempotencyKey: string;
66096
+ } | {
66097
+ kind: "firmware";
66098
+ serialNumber: string;
66099
+ updateId: string;
66100
+ } | {
66101
+ kind: "bluetooth_firmware";
66102
+ deviceId: string;
66103
+ updateId: string;
66104
+ } | {
66105
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66106
+ deviceId: string;
66107
+ requestId: string;
66108
+ } | {
66109
+ kind: "support";
66110
+ requestId: string;
66111
+ };
66112
+ };
66113
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66114
+ currentRevision?: string | undefined;
66115
+ retryAfterSeconds?: number | undefined;
66116
+ }, unknown>>;
66117
+ };
66118
+ readonly request_timeout: {
66119
+ readonly status: 503;
66120
+ readonly data: z$1.ZodType<{
66121
+ traceId: string;
66122
+ recovery: {
66123
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66124
+ } | {
66125
+ action: "read_operation";
66126
+ operation: {
66127
+ kind: "command";
66128
+ serialNumber: string;
66129
+ idempotencyKey: string;
66130
+ } | {
66131
+ kind: "firmware";
66132
+ serialNumber: string;
66133
+ updateId: string;
66134
+ } | {
66135
+ kind: "bluetooth_firmware";
66136
+ deviceId: string;
66137
+ updateId: string;
66138
+ } | {
66139
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66140
+ deviceId: string;
66141
+ requestId: string;
66142
+ } | {
66143
+ kind: "support";
66144
+ requestId: string;
66145
+ };
66146
+ };
66147
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66148
+ currentRevision?: string | undefined;
66149
+ retryAfterSeconds?: number | undefined;
66150
+ }, unknown, z$1.core.$ZodTypeInternals<{
66151
+ traceId: string;
66152
+ recovery: {
66153
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66154
+ } | {
66155
+ action: "read_operation";
66156
+ operation: {
66157
+ kind: "command";
66158
+ serialNumber: string;
66159
+ idempotencyKey: string;
66160
+ } | {
66161
+ kind: "firmware";
66162
+ serialNumber: string;
66163
+ updateId: string;
66164
+ } | {
66165
+ kind: "bluetooth_firmware";
66166
+ deviceId: string;
66167
+ updateId: string;
66168
+ } | {
66169
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66170
+ deviceId: string;
66171
+ requestId: string;
66172
+ } | {
66173
+ kind: "support";
66174
+ requestId: string;
66175
+ };
66176
+ };
66177
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66178
+ currentRevision?: string | undefined;
66179
+ retryAfterSeconds?: number | undefined;
66180
+ }, unknown>>;
66181
+ };
66182
+ readonly operation_unconfirmed: {
66183
+ readonly status: 503;
66184
+ readonly data: z$1.ZodType<{
66185
+ traceId: string;
66186
+ recovery: {
66187
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66188
+ } | {
66189
+ action: "read_operation";
66190
+ operation: {
66191
+ kind: "command";
66192
+ serialNumber: string;
66193
+ idempotencyKey: string;
66194
+ } | {
66195
+ kind: "firmware";
66196
+ serialNumber: string;
66197
+ updateId: string;
66198
+ } | {
66199
+ kind: "bluetooth_firmware";
66200
+ deviceId: string;
66201
+ updateId: string;
66202
+ } | {
66203
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66204
+ deviceId: string;
66205
+ requestId: string;
66206
+ } | {
66207
+ kind: "support";
66208
+ requestId: string;
66209
+ };
66210
+ };
66211
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66212
+ currentRevision?: string | undefined;
66213
+ retryAfterSeconds?: number | undefined;
66214
+ }, unknown, z$1.core.$ZodTypeInternals<{
66215
+ traceId: string;
66216
+ recovery: {
66217
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66218
+ } | {
66219
+ action: "read_operation";
66220
+ operation: {
66221
+ kind: "command";
66222
+ serialNumber: string;
66223
+ idempotencyKey: string;
66224
+ } | {
66225
+ kind: "firmware";
66226
+ serialNumber: string;
66227
+ updateId: string;
66228
+ } | {
66229
+ kind: "bluetooth_firmware";
66230
+ deviceId: string;
66231
+ updateId: string;
66232
+ } | {
66233
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66234
+ deviceId: string;
66235
+ requestId: string;
66236
+ } | {
66237
+ kind: "support";
66238
+ requestId: string;
66239
+ };
66240
+ };
66241
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66242
+ currentRevision?: string | undefined;
66243
+ retryAfterSeconds?: number | undefined;
66244
+ }, unknown>>;
66245
+ };
66246
+ readonly directory_unavailable: {
66247
+ readonly status: 503;
66248
+ readonly data: z$1.ZodType<{
66249
+ traceId: string;
66250
+ recovery: {
66251
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66252
+ } | {
66253
+ action: "read_operation";
66254
+ operation: {
66255
+ kind: "command";
66256
+ serialNumber: string;
66257
+ idempotencyKey: string;
66258
+ } | {
66259
+ kind: "firmware";
66260
+ serialNumber: string;
66261
+ updateId: string;
66262
+ } | {
66263
+ kind: "bluetooth_firmware";
66264
+ deviceId: string;
66265
+ updateId: string;
66266
+ } | {
66267
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66268
+ deviceId: string;
66269
+ requestId: string;
66270
+ } | {
66271
+ kind: "support";
66272
+ requestId: string;
66273
+ };
66274
+ };
66275
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66276
+ currentRevision?: string | undefined;
66277
+ retryAfterSeconds?: number | undefined;
66278
+ }, unknown, z$1.core.$ZodTypeInternals<{
66279
+ traceId: string;
66280
+ recovery: {
66281
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66282
+ } | {
66283
+ action: "read_operation";
66284
+ operation: {
66285
+ kind: "command";
66286
+ serialNumber: string;
66287
+ idempotencyKey: string;
66288
+ } | {
66289
+ kind: "firmware";
66290
+ serialNumber: string;
66291
+ updateId: string;
66292
+ } | {
66293
+ kind: "bluetooth_firmware";
66294
+ deviceId: string;
66295
+ updateId: string;
66296
+ } | {
66297
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66298
+ deviceId: string;
66299
+ requestId: string;
66300
+ } | {
66301
+ kind: "support";
66302
+ requestId: string;
66303
+ };
66304
+ };
66305
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66306
+ currentRevision?: string | undefined;
66307
+ retryAfterSeconds?: number | undefined;
66308
+ }, unknown>>;
66309
+ };
66310
+ }>, Record<never, never>>;
66311
+ enable: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
66312
+ id: z$1.ZodString;
66313
+ revision: z$1.ZodString;
66314
+ }, z$1.core.$strict>, z$1.ZodObject<{
66315
+ id: z$1.ZodString;
66316
+ family: z$1.ZodEnum<{
66317
+ "gen2-lte": "gen2-lte";
66318
+ "gen2-battery": "gen2-battery";
66319
+ }>;
66320
+ version: z$1.ZodString;
66321
+ revision: z$1.ZodString;
66322
+ size: z$1.ZodInt;
66323
+ sha256: z$1.ZodString;
66324
+ notes: z$1.ZodString;
66325
+ sourceRevision: z$1.ZodNullable<z$1.ZodString>;
66326
+ buildFingerprint: z$1.ZodNullable<z$1.ZodString>;
66327
+ downloadUrl: z$1.ZodURL;
66328
+ availableForUpdates: z$1.ZodBoolean;
66329
+ }, z$1.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
66330
+ readonly invalid: {
66331
+ readonly status: 400;
66332
+ readonly data: z$1.ZodType<{
66333
+ traceId: string;
66334
+ recovery: {
66335
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66336
+ } | {
66337
+ action: "read_operation";
66338
+ operation: {
66339
+ kind: "command";
66340
+ serialNumber: string;
66341
+ idempotencyKey: string;
66342
+ } | {
66343
+ kind: "firmware";
66344
+ serialNumber: string;
66345
+ updateId: string;
66346
+ } | {
66347
+ kind: "bluetooth_firmware";
66348
+ deviceId: string;
66349
+ updateId: string;
66350
+ } | {
66351
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66352
+ deviceId: string;
66353
+ requestId: string;
66354
+ } | {
66355
+ kind: "support";
66356
+ requestId: string;
66357
+ };
66358
+ };
66359
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66360
+ currentRevision?: string | undefined;
66361
+ retryAfterSeconds?: number | undefined;
66362
+ }, unknown, z$1.core.$ZodTypeInternals<{
66363
+ traceId: string;
66364
+ recovery: {
66365
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66366
+ } | {
66367
+ action: "read_operation";
66368
+ operation: {
66369
+ kind: "command";
66370
+ serialNumber: string;
66371
+ idempotencyKey: string;
66372
+ } | {
66373
+ kind: "firmware";
66374
+ serialNumber: string;
66375
+ updateId: string;
66376
+ } | {
66377
+ kind: "bluetooth_firmware";
66378
+ deviceId: string;
66379
+ updateId: string;
66380
+ } | {
66381
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66382
+ deviceId: string;
66383
+ requestId: string;
66384
+ } | {
66385
+ kind: "support";
66386
+ requestId: string;
66387
+ };
66388
+ };
66389
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66390
+ currentRevision?: string | undefined;
66391
+ retryAfterSeconds?: number | undefined;
66392
+ }, unknown>>;
66393
+ };
66394
+ readonly unauthenticated: {
66395
+ readonly status: 401;
66396
+ readonly data: z$1.ZodType<{
66397
+ traceId: string;
66398
+ recovery: {
66399
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66400
+ } | {
66401
+ action: "read_operation";
66402
+ operation: {
66403
+ kind: "command";
66404
+ serialNumber: string;
66405
+ idempotencyKey: string;
66406
+ } | {
66407
+ kind: "firmware";
66408
+ serialNumber: string;
66409
+ updateId: string;
66410
+ } | {
66411
+ kind: "bluetooth_firmware";
66412
+ deviceId: string;
66413
+ updateId: string;
66414
+ } | {
66415
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66416
+ deviceId: string;
66417
+ requestId: string;
66418
+ } | {
66419
+ kind: "support";
66420
+ requestId: string;
66421
+ };
66422
+ };
66423
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66424
+ currentRevision?: string | undefined;
66425
+ retryAfterSeconds?: number | undefined;
66426
+ }, unknown, z$1.core.$ZodTypeInternals<{
66427
+ traceId: string;
66428
+ recovery: {
66429
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66430
+ } | {
66431
+ action: "read_operation";
66432
+ operation: {
66433
+ kind: "command";
66434
+ serialNumber: string;
66435
+ idempotencyKey: string;
66436
+ } | {
66437
+ kind: "firmware";
66438
+ serialNumber: string;
66439
+ updateId: string;
66440
+ } | {
66441
+ kind: "bluetooth_firmware";
66442
+ deviceId: string;
66443
+ updateId: string;
66444
+ } | {
66445
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66446
+ deviceId: string;
66447
+ requestId: string;
66448
+ } | {
66449
+ kind: "support";
66450
+ requestId: string;
66451
+ };
66452
+ };
66453
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66454
+ currentRevision?: string | undefined;
66455
+ retryAfterSeconds?: number | undefined;
66456
+ }, unknown>>;
66457
+ };
66458
+ readonly forbidden: {
66459
+ readonly status: 403;
66460
+ readonly data: z$1.ZodType<{
66461
+ traceId: string;
66462
+ recovery: {
66463
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66464
+ } | {
66465
+ action: "read_operation";
66466
+ operation: {
66467
+ kind: "command";
66468
+ serialNumber: string;
66469
+ idempotencyKey: string;
66470
+ } | {
66471
+ kind: "firmware";
66472
+ serialNumber: string;
66473
+ updateId: string;
66474
+ } | {
66475
+ kind: "bluetooth_firmware";
66476
+ deviceId: string;
66477
+ updateId: string;
66478
+ } | {
66479
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66480
+ deviceId: string;
66481
+ requestId: string;
66482
+ } | {
66483
+ kind: "support";
66484
+ requestId: string;
66485
+ };
66486
+ };
66487
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66488
+ currentRevision?: string | undefined;
66489
+ retryAfterSeconds?: number | undefined;
66490
+ }, unknown, z$1.core.$ZodTypeInternals<{
66491
+ traceId: string;
66492
+ recovery: {
66493
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66494
+ } | {
66495
+ action: "read_operation";
66496
+ operation: {
66497
+ kind: "command";
66498
+ serialNumber: string;
66499
+ idempotencyKey: string;
66500
+ } | {
66501
+ kind: "firmware";
66502
+ serialNumber: string;
66503
+ updateId: string;
66504
+ } | {
66505
+ kind: "bluetooth_firmware";
66506
+ deviceId: string;
66507
+ updateId: string;
66508
+ } | {
66509
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66510
+ deviceId: string;
66511
+ requestId: string;
66512
+ } | {
66513
+ kind: "support";
66514
+ requestId: string;
66515
+ };
66516
+ };
66517
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66518
+ currentRevision?: string | undefined;
66519
+ retryAfterSeconds?: number | undefined;
66520
+ }, unknown>>;
66521
+ };
66522
+ readonly not_found: {
66523
+ readonly status: 404;
66524
+ readonly data: z$1.ZodType<{
66525
+ traceId: string;
66526
+ recovery: {
66527
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66528
+ } | {
66529
+ action: "read_operation";
66530
+ operation: {
66531
+ kind: "command";
66532
+ serialNumber: string;
66533
+ idempotencyKey: string;
66534
+ } | {
66535
+ kind: "firmware";
66536
+ serialNumber: string;
66537
+ updateId: string;
66538
+ } | {
66539
+ kind: "bluetooth_firmware";
66540
+ deviceId: string;
66541
+ updateId: string;
66542
+ } | {
66543
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66544
+ deviceId: string;
66545
+ requestId: string;
66546
+ } | {
66547
+ kind: "support";
66548
+ requestId: string;
66549
+ };
66550
+ };
66551
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66552
+ currentRevision?: string | undefined;
66553
+ retryAfterSeconds?: number | undefined;
66554
+ }, unknown, z$1.core.$ZodTypeInternals<{
66555
+ traceId: string;
66556
+ recovery: {
66557
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66558
+ } | {
66559
+ action: "read_operation";
66560
+ operation: {
66561
+ kind: "command";
66562
+ serialNumber: string;
66563
+ idempotencyKey: string;
66564
+ } | {
66565
+ kind: "firmware";
66566
+ serialNumber: string;
66567
+ updateId: string;
66568
+ } | {
66569
+ kind: "bluetooth_firmware";
66570
+ deviceId: string;
66571
+ updateId: string;
66572
+ } | {
66573
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66574
+ deviceId: string;
66575
+ requestId: string;
66576
+ } | {
66577
+ kind: "support";
66578
+ requestId: string;
66579
+ };
66580
+ };
66581
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66582
+ currentRevision?: string | undefined;
66583
+ retryAfterSeconds?: number | undefined;
66584
+ }, unknown>>;
66585
+ };
66586
+ readonly conflict: {
66587
+ readonly status: 409;
66588
+ readonly data: z$1.ZodType<{
66589
+ traceId: string;
66590
+ recovery: {
66591
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66592
+ } | {
66593
+ action: "read_operation";
66594
+ operation: {
66595
+ kind: "command";
66596
+ serialNumber: string;
66597
+ idempotencyKey: string;
66598
+ } | {
66599
+ kind: "firmware";
66600
+ serialNumber: string;
66601
+ updateId: string;
66602
+ } | {
66603
+ kind: "bluetooth_firmware";
66604
+ deviceId: string;
66605
+ updateId: string;
66606
+ } | {
66607
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66608
+ deviceId: string;
66609
+ requestId: string;
66610
+ } | {
66611
+ kind: "support";
66612
+ requestId: string;
66613
+ };
66614
+ };
66615
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66616
+ currentRevision?: string | undefined;
66617
+ retryAfterSeconds?: number | undefined;
66618
+ }, unknown, z$1.core.$ZodTypeInternals<{
66619
+ traceId: string;
66620
+ recovery: {
66621
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66622
+ } | {
66623
+ action: "read_operation";
66624
+ operation: {
66625
+ kind: "command";
66626
+ serialNumber: string;
66627
+ idempotencyKey: string;
66628
+ } | {
66629
+ kind: "firmware";
66630
+ serialNumber: string;
66631
+ updateId: string;
66632
+ } | {
66633
+ kind: "bluetooth_firmware";
66634
+ deviceId: string;
66635
+ updateId: string;
66636
+ } | {
66637
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66638
+ deviceId: string;
66639
+ requestId: string;
66640
+ } | {
66641
+ kind: "support";
66642
+ requestId: string;
66643
+ };
66644
+ };
66645
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66646
+ currentRevision?: string | undefined;
66647
+ retryAfterSeconds?: number | undefined;
66648
+ }, unknown>>;
66649
+ };
66650
+ readonly rate_limited: {
66651
+ readonly status: 429;
66652
+ readonly data: z$1.ZodType<{
66653
+ traceId: string;
66654
+ recovery: {
66655
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66656
+ } | {
66657
+ action: "read_operation";
66658
+ operation: {
66659
+ kind: "command";
66660
+ serialNumber: string;
66661
+ idempotencyKey: string;
66662
+ } | {
66663
+ kind: "firmware";
66664
+ serialNumber: string;
66665
+ updateId: string;
66666
+ } | {
66667
+ kind: "bluetooth_firmware";
66668
+ deviceId: string;
66669
+ updateId: string;
66670
+ } | {
66671
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66672
+ deviceId: string;
66673
+ requestId: string;
66674
+ } | {
66675
+ kind: "support";
66676
+ requestId: string;
66677
+ };
66678
+ };
66679
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66680
+ currentRevision?: string | undefined;
66681
+ retryAfterSeconds?: number | undefined;
66682
+ }, unknown, z$1.core.$ZodTypeInternals<{
66683
+ traceId: string;
66684
+ recovery: {
66685
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66686
+ } | {
66687
+ action: "read_operation";
66688
+ operation: {
66689
+ kind: "command";
66690
+ serialNumber: string;
66691
+ idempotencyKey: string;
66692
+ } | {
66693
+ kind: "firmware";
66694
+ serialNumber: string;
66695
+ updateId: string;
66696
+ } | {
66697
+ kind: "bluetooth_firmware";
66698
+ deviceId: string;
66699
+ updateId: string;
66700
+ } | {
66701
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66702
+ deviceId: string;
66703
+ requestId: string;
66704
+ } | {
66705
+ kind: "support";
66706
+ requestId: string;
66707
+ };
66708
+ };
66709
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66710
+ currentRevision?: string | undefined;
66711
+ retryAfterSeconds?: number | undefined;
66712
+ }, unknown>>;
66713
+ };
66714
+ readonly stored_data_invalid: {
66715
+ readonly status: 503;
66716
+ readonly data: z$1.ZodType<{
66717
+ traceId: string;
66718
+ recovery: {
66719
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66720
+ } | {
66721
+ action: "read_operation";
66722
+ operation: {
66723
+ kind: "command";
66724
+ serialNumber: string;
66725
+ idempotencyKey: string;
66726
+ } | {
66727
+ kind: "firmware";
66728
+ serialNumber: string;
66729
+ updateId: string;
66730
+ } | {
66731
+ kind: "bluetooth_firmware";
66732
+ deviceId: string;
66733
+ updateId: string;
66734
+ } | {
66735
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66736
+ deviceId: string;
66737
+ requestId: string;
66738
+ } | {
66739
+ kind: "support";
66740
+ requestId: string;
66741
+ };
66742
+ };
66743
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66744
+ currentRevision?: string | undefined;
66745
+ retryAfterSeconds?: number | undefined;
66746
+ }, unknown, z$1.core.$ZodTypeInternals<{
66747
+ traceId: string;
66748
+ recovery: {
66749
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66750
+ } | {
66751
+ action: "read_operation";
66752
+ operation: {
66753
+ kind: "command";
66754
+ serialNumber: string;
66755
+ idempotencyKey: string;
66756
+ } | {
66757
+ kind: "firmware";
66758
+ serialNumber: string;
66759
+ updateId: string;
66760
+ } | {
66761
+ kind: "bluetooth_firmware";
66762
+ deviceId: string;
66763
+ updateId: string;
66764
+ } | {
66765
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66766
+ deviceId: string;
66767
+ requestId: string;
66768
+ } | {
66769
+ kind: "support";
66770
+ requestId: string;
66771
+ };
66772
+ };
66773
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66774
+ currentRevision?: string | undefined;
66775
+ retryAfterSeconds?: number | undefined;
66776
+ }, unknown>>;
66777
+ };
66778
+ readonly service_unavailable: {
66779
+ readonly status: 503;
66780
+ readonly data: z$1.ZodType<{
66781
+ traceId: string;
66782
+ recovery: {
66783
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66784
+ } | {
66785
+ action: "read_operation";
66786
+ operation: {
66787
+ kind: "command";
66788
+ serialNumber: string;
66789
+ idempotencyKey: string;
66790
+ } | {
66791
+ kind: "firmware";
66792
+ serialNumber: string;
66793
+ updateId: string;
66794
+ } | {
66795
+ kind: "bluetooth_firmware";
66796
+ deviceId: string;
66797
+ updateId: string;
66798
+ } | {
66799
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66800
+ deviceId: string;
66801
+ requestId: string;
66802
+ } | {
66803
+ kind: "support";
66804
+ requestId: string;
66805
+ };
66806
+ };
66807
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66808
+ currentRevision?: string | undefined;
66809
+ retryAfterSeconds?: number | undefined;
66810
+ }, unknown, z$1.core.$ZodTypeInternals<{
66811
+ traceId: string;
66812
+ recovery: {
66813
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66814
+ } | {
66815
+ action: "read_operation";
66816
+ operation: {
66817
+ kind: "command";
66818
+ serialNumber: string;
66819
+ idempotencyKey: string;
66820
+ } | {
66821
+ kind: "firmware";
66822
+ serialNumber: string;
66823
+ updateId: string;
66824
+ } | {
66825
+ kind: "bluetooth_firmware";
66826
+ deviceId: string;
66827
+ updateId: string;
66828
+ } | {
66829
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66830
+ deviceId: string;
66831
+ requestId: string;
66832
+ } | {
66833
+ kind: "support";
66834
+ requestId: string;
66835
+ };
66836
+ };
66837
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66838
+ currentRevision?: string | undefined;
66839
+ retryAfterSeconds?: number | undefined;
66840
+ }, unknown>>;
66841
+ };
66842
+ readonly read_unavailable: {
66843
+ readonly status: 503;
66844
+ readonly data: z$1.ZodType<{
66845
+ traceId: string;
66846
+ recovery: {
66847
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66848
+ } | {
66849
+ action: "read_operation";
66850
+ operation: {
66851
+ kind: "command";
66852
+ serialNumber: string;
66853
+ idempotencyKey: string;
66854
+ } | {
66855
+ kind: "firmware";
66856
+ serialNumber: string;
66857
+ updateId: string;
66858
+ } | {
66859
+ kind: "bluetooth_firmware";
66860
+ deviceId: string;
66861
+ updateId: string;
66862
+ } | {
66863
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66864
+ deviceId: string;
66865
+ requestId: string;
66866
+ } | {
66867
+ kind: "support";
66868
+ requestId: string;
66869
+ };
66870
+ };
66871
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66872
+ currentRevision?: string | undefined;
66873
+ retryAfterSeconds?: number | undefined;
66874
+ }, unknown, z$1.core.$ZodTypeInternals<{
66875
+ traceId: string;
66876
+ recovery: {
66877
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66878
+ } | {
66879
+ action: "read_operation";
66880
+ operation: {
66881
+ kind: "command";
66882
+ serialNumber: string;
66883
+ idempotencyKey: string;
66884
+ } | {
66885
+ kind: "firmware";
66886
+ serialNumber: string;
66887
+ updateId: string;
66888
+ } | {
66889
+ kind: "bluetooth_firmware";
66890
+ deviceId: string;
66891
+ updateId: string;
66892
+ } | {
66893
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66894
+ deviceId: string;
66895
+ requestId: string;
66896
+ } | {
66897
+ kind: "support";
66898
+ requestId: string;
66899
+ };
66900
+ };
66901
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66902
+ currentRevision?: string | undefined;
66903
+ retryAfterSeconds?: number | undefined;
66904
+ }, unknown>>;
66905
+ };
66906
+ readonly stream_unavailable: {
66907
+ readonly status: 503;
66908
+ readonly data: z$1.ZodType<{
66909
+ traceId: string;
66910
+ recovery: {
66911
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66912
+ } | {
66913
+ action: "read_operation";
66914
+ operation: {
66915
+ kind: "command";
66916
+ serialNumber: string;
66917
+ idempotencyKey: string;
66918
+ } | {
66919
+ kind: "firmware";
66920
+ serialNumber: string;
66921
+ updateId: string;
66922
+ } | {
66923
+ kind: "bluetooth_firmware";
66924
+ deviceId: string;
66925
+ updateId: string;
66926
+ } | {
66927
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66928
+ deviceId: string;
66929
+ requestId: string;
66930
+ } | {
66931
+ kind: "support";
66932
+ requestId: string;
66933
+ };
66934
+ };
66935
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66936
+ currentRevision?: string | undefined;
66937
+ retryAfterSeconds?: number | undefined;
66938
+ }, unknown, z$1.core.$ZodTypeInternals<{
66939
+ traceId: string;
66940
+ recovery: {
66941
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66942
+ } | {
66943
+ action: "read_operation";
66944
+ operation: {
66945
+ kind: "command";
66946
+ serialNumber: string;
66947
+ idempotencyKey: string;
66948
+ } | {
66949
+ kind: "firmware";
66950
+ serialNumber: string;
66951
+ updateId: string;
66952
+ } | {
66953
+ kind: "bluetooth_firmware";
66954
+ deviceId: string;
66955
+ updateId: string;
66956
+ } | {
66957
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66958
+ deviceId: string;
66959
+ requestId: string;
66960
+ } | {
66961
+ kind: "support";
66962
+ requestId: string;
66963
+ };
66964
+ };
66965
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
66966
+ currentRevision?: string | undefined;
66967
+ retryAfterSeconds?: number | undefined;
66968
+ }, unknown>>;
66969
+ };
66970
+ readonly payload_too_large: {
66971
+ readonly status: 413;
66972
+ readonly data: z$1.ZodType<{
66973
+ traceId: string;
66974
+ recovery: {
66975
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
66976
+ } | {
66977
+ action: "read_operation";
66978
+ operation: {
66979
+ kind: "command";
66980
+ serialNumber: string;
66981
+ idempotencyKey: string;
66982
+ } | {
66983
+ kind: "firmware";
66984
+ serialNumber: string;
66985
+ updateId: string;
66986
+ } | {
66987
+ kind: "bluetooth_firmware";
66988
+ deviceId: string;
66989
+ updateId: string;
66990
+ } | {
66991
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
66992
+ deviceId: string;
66993
+ requestId: string;
66994
+ } | {
66995
+ kind: "support";
66996
+ requestId: string;
66997
+ };
66998
+ };
66999
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
67000
+ currentRevision?: string | undefined;
67001
+ retryAfterSeconds?: number | undefined;
67002
+ }, unknown, z$1.core.$ZodTypeInternals<{
67003
+ traceId: string;
67004
+ recovery: {
67005
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
67006
+ } | {
67007
+ action: "read_operation";
67008
+ operation: {
67009
+ kind: "command";
67010
+ serialNumber: string;
67011
+ idempotencyKey: string;
67012
+ } | {
67013
+ kind: "firmware";
67014
+ serialNumber: string;
67015
+ updateId: string;
67016
+ } | {
67017
+ kind: "bluetooth_firmware";
67018
+ deviceId: string;
67019
+ updateId: string;
67020
+ } | {
67021
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
67022
+ deviceId: string;
67023
+ requestId: string;
67024
+ } | {
67025
+ kind: "support";
67026
+ requestId: string;
67027
+ };
67028
+ };
67029
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
67030
+ currentRevision?: string | undefined;
67031
+ retryAfterSeconds?: number | undefined;
67032
+ }, unknown>>;
67033
+ };
67034
+ readonly request_timeout: {
67035
+ readonly status: 503;
67036
+ readonly data: z$1.ZodType<{
67037
+ traceId: string;
67038
+ recovery: {
67039
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
67040
+ } | {
67041
+ action: "read_operation";
67042
+ operation: {
67043
+ kind: "command";
67044
+ serialNumber: string;
67045
+ idempotencyKey: string;
67046
+ } | {
67047
+ kind: "firmware";
67048
+ serialNumber: string;
67049
+ updateId: string;
67050
+ } | {
67051
+ kind: "bluetooth_firmware";
67052
+ deviceId: string;
67053
+ updateId: string;
67054
+ } | {
67055
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
67056
+ deviceId: string;
67057
+ requestId: string;
67058
+ } | {
67059
+ kind: "support";
67060
+ requestId: string;
67061
+ };
67062
+ };
67063
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
67064
+ currentRevision?: string | undefined;
67065
+ retryAfterSeconds?: number | undefined;
67066
+ }, unknown, z$1.core.$ZodTypeInternals<{
67067
+ traceId: string;
67068
+ recovery: {
67069
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
67070
+ } | {
67071
+ action: "read_operation";
67072
+ operation: {
67073
+ kind: "command";
67074
+ serialNumber: string;
67075
+ idempotencyKey: string;
67076
+ } | {
67077
+ kind: "firmware";
67078
+ serialNumber: string;
67079
+ updateId: string;
67080
+ } | {
67081
+ kind: "bluetooth_firmware";
67082
+ deviceId: string;
67083
+ updateId: string;
67084
+ } | {
67085
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
67086
+ deviceId: string;
67087
+ requestId: string;
67088
+ } | {
67089
+ kind: "support";
67090
+ requestId: string;
67091
+ };
67092
+ };
67093
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
67094
+ currentRevision?: string | undefined;
67095
+ retryAfterSeconds?: number | undefined;
67096
+ }, unknown>>;
67097
+ };
67098
+ readonly operation_unconfirmed: {
67099
+ readonly status: 503;
67100
+ readonly data: z$1.ZodType<{
67101
+ traceId: string;
67102
+ recovery: {
67103
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
67104
+ } | {
67105
+ action: "read_operation";
67106
+ operation: {
67107
+ kind: "command";
67108
+ serialNumber: string;
67109
+ idempotencyKey: string;
67110
+ } | {
67111
+ kind: "firmware";
67112
+ serialNumber: string;
67113
+ updateId: string;
67114
+ } | {
67115
+ kind: "bluetooth_firmware";
67116
+ deviceId: string;
67117
+ updateId: string;
67118
+ } | {
67119
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
67120
+ deviceId: string;
67121
+ requestId: string;
67122
+ } | {
67123
+ kind: "support";
67124
+ requestId: string;
67125
+ };
67126
+ };
67127
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
67128
+ currentRevision?: string | undefined;
67129
+ retryAfterSeconds?: number | undefined;
67130
+ }, unknown, z$1.core.$ZodTypeInternals<{
67131
+ traceId: string;
67132
+ recovery: {
67133
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
67134
+ } | {
67135
+ action: "read_operation";
67136
+ operation: {
67137
+ kind: "command";
67138
+ serialNumber: string;
67139
+ idempotencyKey: string;
67140
+ } | {
67141
+ kind: "firmware";
67142
+ serialNumber: string;
67143
+ updateId: string;
67144
+ } | {
67145
+ kind: "bluetooth_firmware";
67146
+ deviceId: string;
67147
+ updateId: string;
67148
+ } | {
67149
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
67150
+ deviceId: string;
67151
+ requestId: string;
67152
+ } | {
67153
+ kind: "support";
67154
+ requestId: string;
67155
+ };
67156
+ };
67157
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
67158
+ currentRevision?: string | undefined;
67159
+ retryAfterSeconds?: number | undefined;
67160
+ }, unknown>>;
67161
+ };
67162
+ readonly directory_unavailable: {
67163
+ readonly status: 503;
67164
+ readonly data: z$1.ZodType<{
67165
+ traceId: string;
67166
+ recovery: {
67167
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
67168
+ } | {
67169
+ action: "read_operation";
67170
+ operation: {
67171
+ kind: "command";
67172
+ serialNumber: string;
67173
+ idempotencyKey: string;
67174
+ } | {
67175
+ kind: "firmware";
67176
+ serialNumber: string;
67177
+ updateId: string;
67178
+ } | {
67179
+ kind: "bluetooth_firmware";
67180
+ deviceId: string;
67181
+ updateId: string;
67182
+ } | {
67183
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
67184
+ deviceId: string;
67185
+ requestId: string;
67186
+ } | {
67187
+ kind: "support";
67188
+ requestId: string;
67189
+ };
67190
+ };
67191
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
67192
+ currentRevision?: string | undefined;
67193
+ retryAfterSeconds?: number | undefined;
67194
+ }, unknown, z$1.core.$ZodTypeInternals<{
67195
+ traceId: string;
67196
+ recovery: {
67197
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
67198
+ } | {
67199
+ action: "read_operation";
67200
+ operation: {
67201
+ kind: "command";
67202
+ serialNumber: string;
67203
+ idempotencyKey: string;
67204
+ } | {
67205
+ kind: "firmware";
67206
+ serialNumber: string;
67207
+ updateId: string;
67208
+ } | {
67209
+ kind: "bluetooth_firmware";
67210
+ deviceId: string;
67211
+ updateId: string;
67212
+ } | {
67213
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
67214
+ deviceId: string;
67215
+ requestId: string;
67216
+ } | {
67217
+ kind: "support";
67218
+ requestId: string;
67219
+ };
67220
+ };
67221
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
67222
+ currentRevision?: string | undefined;
67223
+ retryAfterSeconds?: number | undefined;
67224
+ }, unknown>>;
67225
+ };
67226
+ }>, Record<never, never>>;
67227
+ };
67228
+ export type FirmwareCatalogFamily = z$1.infer<typeof firmwareCatalogFamily>;
67229
+ export type FirmwareCatalogRelease = z$1.infer<typeof firmwareCatalogRelease>;
67230
+ export type FirmwareCatalogUploadInput = z$1.infer<typeof firmwareCatalogUploadInput>;
67231
+ export type FirmwareCatalogPublishInput = z$1.infer<typeof firmwareCatalogPublishInput>;
63496
67232
  declare const gcpContract: {
63497
67233
  firmware: {
63498
67234
  options: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -177064,6 +180800,7 @@ declare const trackerContract: {
177064
180800
  };
177065
180801
  };
177066
180802
  export declare const staffContract: {
180803
+ firmware: typeof firmwareCatalogContract;
177067
180804
  realtime: typeof realtimeContract;
177068
180805
  subscriptions: typeof staffSubscriptionContract;
177069
180806
  favorites: typeof favoriteContract;
@@ -177350,7 +181087,7 @@ export declare const observationValueSchema: {
177350
181087
  readonly type: "string";
177351
181088
  readonly minLength: 1;
177352
181089
  readonly maxLength: 23;
177353
- readonly pattern: "^(slot:[0-7]|msp430:[0-9a-f]{16})$";
181090
+ readonly pattern: "^(slot:[0-7]|ffffffffffffff0[0-7]|(?:msp430:)?(?!0000000000000000|ffffffffffffff)[0-9a-f]{16})$";
177354
181091
  };
177355
181092
  readonly Version: {
177356
181093
  readonly type: "string";
@@ -177597,7 +181334,7 @@ export declare const observationValueSchema: {
177597
181334
  readonly type: "string";
177598
181335
  readonly minLength: 1;
177599
181336
  readonly maxLength: 23;
177600
- readonly pattern: "^msp430:[0-9a-f]{16}$";
181337
+ readonly pattern: "^(?:msp430:)?(?!0000000000000000|ffffffffffffff)[0-9a-f]{16}$";
177601
181338
  },
177602
181339
  {
177603
181340
  readonly type: "null";