@bikefinder/sdk 0.27.2 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schemas.d.ts CHANGED
@@ -29847,6 +29847,7 @@ declare const recoverySchema: z.ZodDiscriminatedUnion<[
29847
29847
  }, z.core.$strip>
29848
29848
  ], "action">;
29849
29849
  export type ErrorRecovery = z.infer<typeof recoverySchema>;
29850
+ export declare const errorRecovery: z.ZodType<ErrorRecovery>;
29850
29851
  declare const errorDataSchema: z.ZodObject<{
29851
29852
  traceId: z.ZodString;
29852
29853
  recovery: z.ZodType<{
@@ -29913,7 +29914,7 @@ declare const errorDataSchema: z.ZodObject<{
29913
29914
  retryAfterSeconds: z.ZodOptional<z.ZodInt>;
29914
29915
  }, z.core.$strip>;
29915
29916
  export type ApiErrorData = z.infer<typeof errorDataSchema>;
29916
- declare const errorData: z.ZodType<ApiErrorData>;
29917
+ export declare const errorData: z.ZodType<ApiErrorData>;
29917
29918
  export type OperationReference = z.infer<typeof operationReference>;
29918
29919
  export type ApiErrorDetails = Omit<z.infer<typeof errorData>, "traceId" | "recovery"> & {
29919
29920
  recovery?: ErrorRecovery;
@@ -30481,7 +30482,17 @@ export declare const bikeChanges: z.ZodObject<{
30481
30482
  }, z.core.$strict>;
30482
30483
  export declare const bikeEditInput: z.ZodObject<{
30483
30484
  deviceId: z.ZodString;
30484
- expectedRevision: z.ZodString;
30485
+ trackerCreatedAt: z.ZodISODateTime;
30486
+ expected: z.ZodObject<{
30487
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30488
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30489
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30490
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30491
+ frameNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30492
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30493
+ marketPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30494
+ marketPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30495
+ }, z.core.$strict>;
30485
30496
  changes: z.ZodObject<{
30486
30497
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30487
30498
  brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -30525,7 +30536,17 @@ export declare const trackerChangeContract: {
30525
30536
  bike: {
30526
30537
  edit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
30527
30538
  deviceId: z.ZodString;
30528
- expectedRevision: z.ZodString;
30539
+ trackerCreatedAt: z.ZodISODateTime;
30540
+ expected: z.ZodObject<{
30541
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30542
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30543
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30544
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30545
+ frameNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30546
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30547
+ marketPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30548
+ marketPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30549
+ }, z.core.$strict>;
30529
30550
  changes: z.ZodObject<{
30530
30551
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30531
30552
  brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -30546,7 +30567,17 @@ export declare const trackerChangeContract: {
30546
30567
  USD: "USD";
30547
30568
  }>>>;
30548
30569
  }, z.core.$strict>;
30549
- }, z.core.$strict>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
30570
+ }, z.core.$strict>, z.ZodObject<{
30571
+ revision: z.ZodString;
30572
+ name: z.ZodNullable<z.ZodString>;
30573
+ brand: z.ZodNullable<z.ZodString>;
30574
+ type: z.ZodNullable<z.ZodString>;
30575
+ model: z.ZodNullable<z.ZodString>;
30576
+ frameNumber: z.ZodNullable<z.ZodString>;
30577
+ url: z.ZodNullable<z.ZodString>;
30578
+ marketPrice: z.ZodNullable<z.ZodString>;
30579
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
30580
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
30550
30581
  readonly invalid: {
30551
30582
  readonly status: 400;
30552
30583
  readonly data: z.ZodType<{
@@ -55196,7 +55227,17 @@ declare const trackerContract: {
55196
55227
  bike: {
55197
55228
  edit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
55198
55229
  deviceId: z.ZodString;
55199
- expectedRevision: z.ZodString;
55230
+ trackerCreatedAt: z.ZodISODateTime;
55231
+ expected: z.ZodObject<{
55232
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55233
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55234
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55235
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55236
+ frameNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55237
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55238
+ marketPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55239
+ marketPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55240
+ }, z.core.$strict>;
55200
55241
  changes: z.ZodObject<{
55201
55242
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55202
55243
  brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -55217,7 +55258,17 @@ declare const trackerContract: {
55217
55258
  USD: "USD";
55218
55259
  }>>>;
55219
55260
  }, z.core.$strict>;
55220
- }, z.core.$strict>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
55261
+ }, z.core.$strict>, z.ZodObject<{
55262
+ revision: z.ZodString;
55263
+ name: z.ZodNullable<z.ZodString>;
55264
+ brand: z.ZodNullable<z.ZodString>;
55265
+ type: z.ZodNullable<z.ZodString>;
55266
+ model: z.ZodNullable<z.ZodString>;
55267
+ frameNumber: z.ZodNullable<z.ZodString>;
55268
+ url: z.ZodNullable<z.ZodString>;
55269
+ marketPrice: z.ZodNullable<z.ZodString>;
55270
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
55271
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
55221
55272
  readonly invalid: {
55222
55273
  readonly status: 400;
55223
55274
  readonly data: z.ZodType<{
@@ -62533,6 +62584,938 @@ declare const trackerContract: {
62533
62584
  };
62534
62585
  }>, Record<never, never>>;
62535
62586
  };
62587
+ watchPage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
62588
+ limit: z.ZodDefault<z.ZodInt>;
62589
+ after: z.ZodOptional<z.ZodString>;
62590
+ deviceId: z.ZodString;
62591
+ }, z.core.$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
62592
+ items: {
62593
+ kind: string | null;
62594
+ width: number | null;
62595
+ height: number | null;
62596
+ sizeBytes: number | null;
62597
+ isVertical: boolean | null;
62598
+ contentType: string | null;
62599
+ capturedAt: string | null;
62600
+ id: string;
62601
+ revision: string;
62602
+ createdAt: string;
62603
+ updatedAt: string;
62604
+ }[];
62605
+ nextAfter: string | null;
62606
+ }, unknown, void>, import("@orpc/shared").AsyncIteratorClass<{
62607
+ items: {
62608
+ kind: string | null;
62609
+ width: number | null;
62610
+ height: number | null;
62611
+ sizeBytes: number | null;
62612
+ isVertical: boolean | null;
62613
+ contentType: string | null;
62614
+ capturedAt: string | null;
62615
+ id: string;
62616
+ revision: string;
62617
+ createdAt: string;
62618
+ updatedAt: string;
62619
+ }[];
62620
+ nextAfter: string | null;
62621
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
62622
+ readonly invalid: {
62623
+ readonly status: 400;
62624
+ readonly data: z.ZodType<{
62625
+ traceId: string;
62626
+ recovery: {
62627
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62628
+ } | {
62629
+ action: "read_operation";
62630
+ operation: {
62631
+ kind: "command";
62632
+ serialNumber: string;
62633
+ idempotencyKey: string;
62634
+ } | {
62635
+ kind: "firmware";
62636
+ serialNumber: string;
62637
+ updateId: string;
62638
+ } | {
62639
+ kind: "bluetooth_firmware";
62640
+ deviceId: string;
62641
+ updateId: string;
62642
+ } | {
62643
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62644
+ deviceId: string;
62645
+ requestId: string;
62646
+ } | {
62647
+ kind: "support";
62648
+ requestId: string;
62649
+ };
62650
+ };
62651
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62652
+ currentRevision?: string | undefined;
62653
+ retryAfterSeconds?: number | undefined;
62654
+ }, unknown, z.core.$ZodTypeInternals<{
62655
+ traceId: string;
62656
+ recovery: {
62657
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62658
+ } | {
62659
+ action: "read_operation";
62660
+ operation: {
62661
+ kind: "command";
62662
+ serialNumber: string;
62663
+ idempotencyKey: string;
62664
+ } | {
62665
+ kind: "firmware";
62666
+ serialNumber: string;
62667
+ updateId: string;
62668
+ } | {
62669
+ kind: "bluetooth_firmware";
62670
+ deviceId: string;
62671
+ updateId: string;
62672
+ } | {
62673
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62674
+ deviceId: string;
62675
+ requestId: string;
62676
+ } | {
62677
+ kind: "support";
62678
+ requestId: string;
62679
+ };
62680
+ };
62681
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62682
+ currentRevision?: string | undefined;
62683
+ retryAfterSeconds?: number | undefined;
62684
+ }, unknown>>;
62685
+ };
62686
+ readonly unauthenticated: {
62687
+ readonly status: 401;
62688
+ readonly data: z.ZodType<{
62689
+ traceId: string;
62690
+ recovery: {
62691
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62692
+ } | {
62693
+ action: "read_operation";
62694
+ operation: {
62695
+ kind: "command";
62696
+ serialNumber: string;
62697
+ idempotencyKey: string;
62698
+ } | {
62699
+ kind: "firmware";
62700
+ serialNumber: string;
62701
+ updateId: string;
62702
+ } | {
62703
+ kind: "bluetooth_firmware";
62704
+ deviceId: string;
62705
+ updateId: string;
62706
+ } | {
62707
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62708
+ deviceId: string;
62709
+ requestId: string;
62710
+ } | {
62711
+ kind: "support";
62712
+ requestId: string;
62713
+ };
62714
+ };
62715
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62716
+ currentRevision?: string | undefined;
62717
+ retryAfterSeconds?: number | undefined;
62718
+ }, unknown, z.core.$ZodTypeInternals<{
62719
+ traceId: string;
62720
+ recovery: {
62721
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62722
+ } | {
62723
+ action: "read_operation";
62724
+ operation: {
62725
+ kind: "command";
62726
+ serialNumber: string;
62727
+ idempotencyKey: string;
62728
+ } | {
62729
+ kind: "firmware";
62730
+ serialNumber: string;
62731
+ updateId: string;
62732
+ } | {
62733
+ kind: "bluetooth_firmware";
62734
+ deviceId: string;
62735
+ updateId: string;
62736
+ } | {
62737
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62738
+ deviceId: string;
62739
+ requestId: string;
62740
+ } | {
62741
+ kind: "support";
62742
+ requestId: string;
62743
+ };
62744
+ };
62745
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62746
+ currentRevision?: string | undefined;
62747
+ retryAfterSeconds?: number | undefined;
62748
+ }, unknown>>;
62749
+ };
62750
+ readonly forbidden: {
62751
+ readonly status: 403;
62752
+ readonly data: z.ZodType<{
62753
+ traceId: string;
62754
+ recovery: {
62755
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62756
+ } | {
62757
+ action: "read_operation";
62758
+ operation: {
62759
+ kind: "command";
62760
+ serialNumber: string;
62761
+ idempotencyKey: string;
62762
+ } | {
62763
+ kind: "firmware";
62764
+ serialNumber: string;
62765
+ updateId: string;
62766
+ } | {
62767
+ kind: "bluetooth_firmware";
62768
+ deviceId: string;
62769
+ updateId: string;
62770
+ } | {
62771
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62772
+ deviceId: string;
62773
+ requestId: string;
62774
+ } | {
62775
+ kind: "support";
62776
+ requestId: string;
62777
+ };
62778
+ };
62779
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62780
+ currentRevision?: string | undefined;
62781
+ retryAfterSeconds?: number | undefined;
62782
+ }, unknown, z.core.$ZodTypeInternals<{
62783
+ traceId: string;
62784
+ recovery: {
62785
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62786
+ } | {
62787
+ action: "read_operation";
62788
+ operation: {
62789
+ kind: "command";
62790
+ serialNumber: string;
62791
+ idempotencyKey: string;
62792
+ } | {
62793
+ kind: "firmware";
62794
+ serialNumber: string;
62795
+ updateId: string;
62796
+ } | {
62797
+ kind: "bluetooth_firmware";
62798
+ deviceId: string;
62799
+ updateId: string;
62800
+ } | {
62801
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62802
+ deviceId: string;
62803
+ requestId: string;
62804
+ } | {
62805
+ kind: "support";
62806
+ requestId: string;
62807
+ };
62808
+ };
62809
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62810
+ currentRevision?: string | undefined;
62811
+ retryAfterSeconds?: number | undefined;
62812
+ }, unknown>>;
62813
+ };
62814
+ readonly not_found: {
62815
+ readonly status: 404;
62816
+ readonly data: z.ZodType<{
62817
+ traceId: string;
62818
+ recovery: {
62819
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62820
+ } | {
62821
+ action: "read_operation";
62822
+ operation: {
62823
+ kind: "command";
62824
+ serialNumber: string;
62825
+ idempotencyKey: string;
62826
+ } | {
62827
+ kind: "firmware";
62828
+ serialNumber: string;
62829
+ updateId: string;
62830
+ } | {
62831
+ kind: "bluetooth_firmware";
62832
+ deviceId: string;
62833
+ updateId: string;
62834
+ } | {
62835
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62836
+ deviceId: string;
62837
+ requestId: string;
62838
+ } | {
62839
+ kind: "support";
62840
+ requestId: string;
62841
+ };
62842
+ };
62843
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62844
+ currentRevision?: string | undefined;
62845
+ retryAfterSeconds?: number | undefined;
62846
+ }, unknown, z.core.$ZodTypeInternals<{
62847
+ traceId: string;
62848
+ recovery: {
62849
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62850
+ } | {
62851
+ action: "read_operation";
62852
+ operation: {
62853
+ kind: "command";
62854
+ serialNumber: string;
62855
+ idempotencyKey: string;
62856
+ } | {
62857
+ kind: "firmware";
62858
+ serialNumber: string;
62859
+ updateId: string;
62860
+ } | {
62861
+ kind: "bluetooth_firmware";
62862
+ deviceId: string;
62863
+ updateId: string;
62864
+ } | {
62865
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62866
+ deviceId: string;
62867
+ requestId: string;
62868
+ } | {
62869
+ kind: "support";
62870
+ requestId: string;
62871
+ };
62872
+ };
62873
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62874
+ currentRevision?: string | undefined;
62875
+ retryAfterSeconds?: number | undefined;
62876
+ }, unknown>>;
62877
+ };
62878
+ readonly conflict: {
62879
+ readonly status: 409;
62880
+ readonly data: z.ZodType<{
62881
+ traceId: string;
62882
+ recovery: {
62883
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62884
+ } | {
62885
+ action: "read_operation";
62886
+ operation: {
62887
+ kind: "command";
62888
+ serialNumber: string;
62889
+ idempotencyKey: string;
62890
+ } | {
62891
+ kind: "firmware";
62892
+ serialNumber: string;
62893
+ updateId: string;
62894
+ } | {
62895
+ kind: "bluetooth_firmware";
62896
+ deviceId: string;
62897
+ updateId: string;
62898
+ } | {
62899
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62900
+ deviceId: string;
62901
+ requestId: string;
62902
+ } | {
62903
+ kind: "support";
62904
+ requestId: string;
62905
+ };
62906
+ };
62907
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62908
+ currentRevision?: string | undefined;
62909
+ retryAfterSeconds?: number | undefined;
62910
+ }, unknown, z.core.$ZodTypeInternals<{
62911
+ traceId: string;
62912
+ recovery: {
62913
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62914
+ } | {
62915
+ action: "read_operation";
62916
+ operation: {
62917
+ kind: "command";
62918
+ serialNumber: string;
62919
+ idempotencyKey: string;
62920
+ } | {
62921
+ kind: "firmware";
62922
+ serialNumber: string;
62923
+ updateId: string;
62924
+ } | {
62925
+ kind: "bluetooth_firmware";
62926
+ deviceId: string;
62927
+ updateId: string;
62928
+ } | {
62929
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62930
+ deviceId: string;
62931
+ requestId: string;
62932
+ } | {
62933
+ kind: "support";
62934
+ requestId: string;
62935
+ };
62936
+ };
62937
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62938
+ currentRevision?: string | undefined;
62939
+ retryAfterSeconds?: number | undefined;
62940
+ }, unknown>>;
62941
+ };
62942
+ readonly rate_limited: {
62943
+ readonly status: 429;
62944
+ readonly data: z.ZodType<{
62945
+ traceId: string;
62946
+ recovery: {
62947
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62948
+ } | {
62949
+ action: "read_operation";
62950
+ operation: {
62951
+ kind: "command";
62952
+ serialNumber: string;
62953
+ idempotencyKey: string;
62954
+ } | {
62955
+ kind: "firmware";
62956
+ serialNumber: string;
62957
+ updateId: string;
62958
+ } | {
62959
+ kind: "bluetooth_firmware";
62960
+ deviceId: string;
62961
+ updateId: string;
62962
+ } | {
62963
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62964
+ deviceId: string;
62965
+ requestId: string;
62966
+ } | {
62967
+ kind: "support";
62968
+ requestId: string;
62969
+ };
62970
+ };
62971
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
62972
+ currentRevision?: string | undefined;
62973
+ retryAfterSeconds?: number | undefined;
62974
+ }, unknown, z.core.$ZodTypeInternals<{
62975
+ traceId: string;
62976
+ recovery: {
62977
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
62978
+ } | {
62979
+ action: "read_operation";
62980
+ operation: {
62981
+ kind: "command";
62982
+ serialNumber: string;
62983
+ idempotencyKey: string;
62984
+ } | {
62985
+ kind: "firmware";
62986
+ serialNumber: string;
62987
+ updateId: string;
62988
+ } | {
62989
+ kind: "bluetooth_firmware";
62990
+ deviceId: string;
62991
+ updateId: string;
62992
+ } | {
62993
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
62994
+ deviceId: string;
62995
+ requestId: string;
62996
+ } | {
62997
+ kind: "support";
62998
+ requestId: string;
62999
+ };
63000
+ };
63001
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63002
+ currentRevision?: string | undefined;
63003
+ retryAfterSeconds?: number | undefined;
63004
+ }, unknown>>;
63005
+ };
63006
+ readonly stored_data_invalid: {
63007
+ readonly status: 503;
63008
+ readonly data: z.ZodType<{
63009
+ traceId: string;
63010
+ recovery: {
63011
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63012
+ } | {
63013
+ action: "read_operation";
63014
+ operation: {
63015
+ kind: "command";
63016
+ serialNumber: string;
63017
+ idempotencyKey: string;
63018
+ } | {
63019
+ kind: "firmware";
63020
+ serialNumber: string;
63021
+ updateId: string;
63022
+ } | {
63023
+ kind: "bluetooth_firmware";
63024
+ deviceId: string;
63025
+ updateId: string;
63026
+ } | {
63027
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63028
+ deviceId: string;
63029
+ requestId: string;
63030
+ } | {
63031
+ kind: "support";
63032
+ requestId: string;
63033
+ };
63034
+ };
63035
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63036
+ currentRevision?: string | undefined;
63037
+ retryAfterSeconds?: number | undefined;
63038
+ }, unknown, z.core.$ZodTypeInternals<{
63039
+ traceId: string;
63040
+ recovery: {
63041
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63042
+ } | {
63043
+ action: "read_operation";
63044
+ operation: {
63045
+ kind: "command";
63046
+ serialNumber: string;
63047
+ idempotencyKey: string;
63048
+ } | {
63049
+ kind: "firmware";
63050
+ serialNumber: string;
63051
+ updateId: string;
63052
+ } | {
63053
+ kind: "bluetooth_firmware";
63054
+ deviceId: string;
63055
+ updateId: string;
63056
+ } | {
63057
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63058
+ deviceId: string;
63059
+ requestId: string;
63060
+ } | {
63061
+ kind: "support";
63062
+ requestId: string;
63063
+ };
63064
+ };
63065
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63066
+ currentRevision?: string | undefined;
63067
+ retryAfterSeconds?: number | undefined;
63068
+ }, unknown>>;
63069
+ };
63070
+ readonly service_unavailable: {
63071
+ readonly status: 503;
63072
+ readonly data: z.ZodType<{
63073
+ traceId: string;
63074
+ recovery: {
63075
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63076
+ } | {
63077
+ action: "read_operation";
63078
+ operation: {
63079
+ kind: "command";
63080
+ serialNumber: string;
63081
+ idempotencyKey: string;
63082
+ } | {
63083
+ kind: "firmware";
63084
+ serialNumber: string;
63085
+ updateId: string;
63086
+ } | {
63087
+ kind: "bluetooth_firmware";
63088
+ deviceId: string;
63089
+ updateId: string;
63090
+ } | {
63091
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63092
+ deviceId: string;
63093
+ requestId: string;
63094
+ } | {
63095
+ kind: "support";
63096
+ requestId: string;
63097
+ };
63098
+ };
63099
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63100
+ currentRevision?: string | undefined;
63101
+ retryAfterSeconds?: number | undefined;
63102
+ }, unknown, z.core.$ZodTypeInternals<{
63103
+ traceId: string;
63104
+ recovery: {
63105
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63106
+ } | {
63107
+ action: "read_operation";
63108
+ operation: {
63109
+ kind: "command";
63110
+ serialNumber: string;
63111
+ idempotencyKey: string;
63112
+ } | {
63113
+ kind: "firmware";
63114
+ serialNumber: string;
63115
+ updateId: string;
63116
+ } | {
63117
+ kind: "bluetooth_firmware";
63118
+ deviceId: string;
63119
+ updateId: string;
63120
+ } | {
63121
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63122
+ deviceId: string;
63123
+ requestId: string;
63124
+ } | {
63125
+ kind: "support";
63126
+ requestId: string;
63127
+ };
63128
+ };
63129
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63130
+ currentRevision?: string | undefined;
63131
+ retryAfterSeconds?: number | undefined;
63132
+ }, unknown>>;
63133
+ };
63134
+ readonly read_unavailable: {
63135
+ readonly status: 503;
63136
+ readonly data: z.ZodType<{
63137
+ traceId: string;
63138
+ recovery: {
63139
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63140
+ } | {
63141
+ action: "read_operation";
63142
+ operation: {
63143
+ kind: "command";
63144
+ serialNumber: string;
63145
+ idempotencyKey: string;
63146
+ } | {
63147
+ kind: "firmware";
63148
+ serialNumber: string;
63149
+ updateId: string;
63150
+ } | {
63151
+ kind: "bluetooth_firmware";
63152
+ deviceId: string;
63153
+ updateId: string;
63154
+ } | {
63155
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63156
+ deviceId: string;
63157
+ requestId: string;
63158
+ } | {
63159
+ kind: "support";
63160
+ requestId: string;
63161
+ };
63162
+ };
63163
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63164
+ currentRevision?: string | undefined;
63165
+ retryAfterSeconds?: number | undefined;
63166
+ }, unknown, z.core.$ZodTypeInternals<{
63167
+ traceId: string;
63168
+ recovery: {
63169
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63170
+ } | {
63171
+ action: "read_operation";
63172
+ operation: {
63173
+ kind: "command";
63174
+ serialNumber: string;
63175
+ idempotencyKey: string;
63176
+ } | {
63177
+ kind: "firmware";
63178
+ serialNumber: string;
63179
+ updateId: string;
63180
+ } | {
63181
+ kind: "bluetooth_firmware";
63182
+ deviceId: string;
63183
+ updateId: string;
63184
+ } | {
63185
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63186
+ deviceId: string;
63187
+ requestId: string;
63188
+ } | {
63189
+ kind: "support";
63190
+ requestId: string;
63191
+ };
63192
+ };
63193
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63194
+ currentRevision?: string | undefined;
63195
+ retryAfterSeconds?: number | undefined;
63196
+ }, unknown>>;
63197
+ };
63198
+ readonly stream_unavailable: {
63199
+ readonly status: 503;
63200
+ readonly data: z.ZodType<{
63201
+ traceId: string;
63202
+ recovery: {
63203
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63204
+ } | {
63205
+ action: "read_operation";
63206
+ operation: {
63207
+ kind: "command";
63208
+ serialNumber: string;
63209
+ idempotencyKey: string;
63210
+ } | {
63211
+ kind: "firmware";
63212
+ serialNumber: string;
63213
+ updateId: string;
63214
+ } | {
63215
+ kind: "bluetooth_firmware";
63216
+ deviceId: string;
63217
+ updateId: string;
63218
+ } | {
63219
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63220
+ deviceId: string;
63221
+ requestId: string;
63222
+ } | {
63223
+ kind: "support";
63224
+ requestId: string;
63225
+ };
63226
+ };
63227
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63228
+ currentRevision?: string | undefined;
63229
+ retryAfterSeconds?: number | undefined;
63230
+ }, unknown, z.core.$ZodTypeInternals<{
63231
+ traceId: string;
63232
+ recovery: {
63233
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63234
+ } | {
63235
+ action: "read_operation";
63236
+ operation: {
63237
+ kind: "command";
63238
+ serialNumber: string;
63239
+ idempotencyKey: string;
63240
+ } | {
63241
+ kind: "firmware";
63242
+ serialNumber: string;
63243
+ updateId: string;
63244
+ } | {
63245
+ kind: "bluetooth_firmware";
63246
+ deviceId: string;
63247
+ updateId: string;
63248
+ } | {
63249
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63250
+ deviceId: string;
63251
+ requestId: string;
63252
+ } | {
63253
+ kind: "support";
63254
+ requestId: string;
63255
+ };
63256
+ };
63257
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63258
+ currentRevision?: string | undefined;
63259
+ retryAfterSeconds?: number | undefined;
63260
+ }, unknown>>;
63261
+ };
63262
+ readonly payload_too_large: {
63263
+ readonly status: 413;
63264
+ readonly data: z.ZodType<{
63265
+ traceId: string;
63266
+ recovery: {
63267
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63268
+ } | {
63269
+ action: "read_operation";
63270
+ operation: {
63271
+ kind: "command";
63272
+ serialNumber: string;
63273
+ idempotencyKey: string;
63274
+ } | {
63275
+ kind: "firmware";
63276
+ serialNumber: string;
63277
+ updateId: string;
63278
+ } | {
63279
+ kind: "bluetooth_firmware";
63280
+ deviceId: string;
63281
+ updateId: string;
63282
+ } | {
63283
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63284
+ deviceId: string;
63285
+ requestId: string;
63286
+ } | {
63287
+ kind: "support";
63288
+ requestId: string;
63289
+ };
63290
+ };
63291
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63292
+ currentRevision?: string | undefined;
63293
+ retryAfterSeconds?: number | undefined;
63294
+ }, unknown, z.core.$ZodTypeInternals<{
63295
+ traceId: string;
63296
+ recovery: {
63297
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63298
+ } | {
63299
+ action: "read_operation";
63300
+ operation: {
63301
+ kind: "command";
63302
+ serialNumber: string;
63303
+ idempotencyKey: string;
63304
+ } | {
63305
+ kind: "firmware";
63306
+ serialNumber: string;
63307
+ updateId: string;
63308
+ } | {
63309
+ kind: "bluetooth_firmware";
63310
+ deviceId: string;
63311
+ updateId: string;
63312
+ } | {
63313
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63314
+ deviceId: string;
63315
+ requestId: string;
63316
+ } | {
63317
+ kind: "support";
63318
+ requestId: string;
63319
+ };
63320
+ };
63321
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63322
+ currentRevision?: string | undefined;
63323
+ retryAfterSeconds?: number | undefined;
63324
+ }, unknown>>;
63325
+ };
63326
+ readonly request_timeout: {
63327
+ readonly status: 503;
63328
+ readonly data: z.ZodType<{
63329
+ traceId: string;
63330
+ recovery: {
63331
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63332
+ } | {
63333
+ action: "read_operation";
63334
+ operation: {
63335
+ kind: "command";
63336
+ serialNumber: string;
63337
+ idempotencyKey: string;
63338
+ } | {
63339
+ kind: "firmware";
63340
+ serialNumber: string;
63341
+ updateId: string;
63342
+ } | {
63343
+ kind: "bluetooth_firmware";
63344
+ deviceId: string;
63345
+ updateId: string;
63346
+ } | {
63347
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63348
+ deviceId: string;
63349
+ requestId: string;
63350
+ } | {
63351
+ kind: "support";
63352
+ requestId: string;
63353
+ };
63354
+ };
63355
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63356
+ currentRevision?: string | undefined;
63357
+ retryAfterSeconds?: number | undefined;
63358
+ }, unknown, z.core.$ZodTypeInternals<{
63359
+ traceId: string;
63360
+ recovery: {
63361
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63362
+ } | {
63363
+ action: "read_operation";
63364
+ operation: {
63365
+ kind: "command";
63366
+ serialNumber: string;
63367
+ idempotencyKey: string;
63368
+ } | {
63369
+ kind: "firmware";
63370
+ serialNumber: string;
63371
+ updateId: string;
63372
+ } | {
63373
+ kind: "bluetooth_firmware";
63374
+ deviceId: string;
63375
+ updateId: string;
63376
+ } | {
63377
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63378
+ deviceId: string;
63379
+ requestId: string;
63380
+ } | {
63381
+ kind: "support";
63382
+ requestId: string;
63383
+ };
63384
+ };
63385
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63386
+ currentRevision?: string | undefined;
63387
+ retryAfterSeconds?: number | undefined;
63388
+ }, unknown>>;
63389
+ };
63390
+ readonly operation_unconfirmed: {
63391
+ readonly status: 503;
63392
+ readonly data: z.ZodType<{
63393
+ traceId: string;
63394
+ recovery: {
63395
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63396
+ } | {
63397
+ action: "read_operation";
63398
+ operation: {
63399
+ kind: "command";
63400
+ serialNumber: string;
63401
+ idempotencyKey: string;
63402
+ } | {
63403
+ kind: "firmware";
63404
+ serialNumber: string;
63405
+ updateId: string;
63406
+ } | {
63407
+ kind: "bluetooth_firmware";
63408
+ deviceId: string;
63409
+ updateId: string;
63410
+ } | {
63411
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63412
+ deviceId: string;
63413
+ requestId: string;
63414
+ } | {
63415
+ kind: "support";
63416
+ requestId: string;
63417
+ };
63418
+ };
63419
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63420
+ currentRevision?: string | undefined;
63421
+ retryAfterSeconds?: number | undefined;
63422
+ }, unknown, z.core.$ZodTypeInternals<{
63423
+ traceId: string;
63424
+ recovery: {
63425
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63426
+ } | {
63427
+ action: "read_operation";
63428
+ operation: {
63429
+ kind: "command";
63430
+ serialNumber: string;
63431
+ idempotencyKey: string;
63432
+ } | {
63433
+ kind: "firmware";
63434
+ serialNumber: string;
63435
+ updateId: string;
63436
+ } | {
63437
+ kind: "bluetooth_firmware";
63438
+ deviceId: string;
63439
+ updateId: string;
63440
+ } | {
63441
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63442
+ deviceId: string;
63443
+ requestId: string;
63444
+ } | {
63445
+ kind: "support";
63446
+ requestId: string;
63447
+ };
63448
+ };
63449
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63450
+ currentRevision?: string | undefined;
63451
+ retryAfterSeconds?: number | undefined;
63452
+ }, unknown>>;
63453
+ };
63454
+ readonly directory_unavailable: {
63455
+ readonly status: 503;
63456
+ readonly data: z.ZodType<{
63457
+ traceId: string;
63458
+ recovery: {
63459
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63460
+ } | {
63461
+ action: "read_operation";
63462
+ operation: {
63463
+ kind: "command";
63464
+ serialNumber: string;
63465
+ idempotencyKey: string;
63466
+ } | {
63467
+ kind: "firmware";
63468
+ serialNumber: string;
63469
+ updateId: string;
63470
+ } | {
63471
+ kind: "bluetooth_firmware";
63472
+ deviceId: string;
63473
+ updateId: string;
63474
+ } | {
63475
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63476
+ deviceId: string;
63477
+ requestId: string;
63478
+ } | {
63479
+ kind: "support";
63480
+ requestId: string;
63481
+ };
63482
+ };
63483
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63484
+ currentRevision?: string | undefined;
63485
+ retryAfterSeconds?: number | undefined;
63486
+ }, unknown, z.core.$ZodTypeInternals<{
63487
+ traceId: string;
63488
+ recovery: {
63489
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
63490
+ } | {
63491
+ action: "read_operation";
63492
+ operation: {
63493
+ kind: "command";
63494
+ serialNumber: string;
63495
+ idempotencyKey: string;
63496
+ } | {
63497
+ kind: "firmware";
63498
+ serialNumber: string;
63499
+ updateId: string;
63500
+ } | {
63501
+ kind: "bluetooth_firmware";
63502
+ deviceId: string;
63503
+ updateId: string;
63504
+ } | {
63505
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
63506
+ deviceId: string;
63507
+ requestId: string;
63508
+ } | {
63509
+ kind: "support";
63510
+ requestId: string;
63511
+ };
63512
+ };
63513
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
63514
+ currentRevision?: string | undefined;
63515
+ retryAfterSeconds?: number | undefined;
63516
+ }, unknown>>;
63517
+ };
63518
+ }>, Record<never, never>>;
62536
63519
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
62537
63520
  limit: z.ZodDefault<z.ZodInt>;
62538
63521
  after: z.ZodOptional<z.ZodString>;